configure 682 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # 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. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME=
  637. PACKAGE_TARNAME=
  638. PACKAGE_VERSION=
  639. PACKAGE_STRING=
  640. PACKAGE_BUGREPORT=
  641. PACKAGE_URL=
  642. ac_unique_file="tcpreplay"
  643. ac_unique_file="src/tcpreplay.c"
  644. # Factoring default headers for most tests.
  645. ac_includes_default="\
  646. #include <stdio.h>
  647. #ifdef HAVE_SYS_TYPES_H
  648. # include <sys/types.h>
  649. #endif
  650. #ifdef HAVE_SYS_STAT_H
  651. # include <sys/stat.h>
  652. #endif
  653. #ifdef STDC_HEADERS
  654. # include <stdlib.h>
  655. # include <stddef.h>
  656. #else
  657. # ifdef HAVE_STDLIB_H
  658. # include <stdlib.h>
  659. # endif
  660. #endif
  661. #ifdef HAVE_STRING_H
  662. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  663. # include <memory.h>
  664. # endif
  665. # include <string.h>
  666. #endif
  667. #ifdef HAVE_STRINGS_H
  668. # include <strings.h>
  669. #endif
  670. #ifdef HAVE_INTTYPES_H
  671. # include <inttypes.h>
  672. #endif
  673. #ifdef HAVE_STDINT_H
  674. # include <stdint.h>
  675. #endif
  676. #ifdef HAVE_UNISTD_H
  677. # include <unistd.h>
  678. #endif"
  679. ac_subst_vars='am__EXEEXT_FALSE
  680. am__EXEEXT_TRUE
  681. LTLIBOBJS
  682. LIBOPTS_CFLAGS
  683. LIBOPTS_LDADD
  684. NEED_LIBOPTS_FALSE
  685. NEED_LIBOPTS_TRUE
  686. INSTALL_LIBOPTS_FALSE
  687. INSTALL_LIBOPTS_TRUE
  688. LIBOPTS_DIR
  689. nic2
  690. nic1
  691. ENABLE_OSX_FRAMEWORKS_FALSE
  692. ENABLE_OSX_FRAMEWORKS_TRUE
  693. ENABLE_TCPDUMP_FALSE
  694. ENABLE_TCPDUMP_TRUE
  695. tcpdump_path
  696. LNAV_CFLAGS
  697. LNAVLIB
  698. pcncfg
  699. PCAP_BPF_H_FILE
  700. COMPILE_FRAGROUTE_FALSE
  701. COMPILE_FRAGROUTE_TRUE
  702. LDNETLIB
  703. LDNETINC
  704. COMPILE_TCPBRIDGE_FALSE
  705. COMPILE_TCPBRIDGE_TRUE
  706. LPCAPLIB
  707. LPCAPINC
  708. DMALLOC_LIB
  709. debug_flag
  710. WORDS_BIGENDIAN_FALSE
  711. WORDS_BIGENDIAN_TRUE
  712. SYSTEM_STRLCPY_FALSE
  713. SYSTEM_STRLCPY_TRUE
  714. LIBOBJS
  715. GROFF
  716. AUTOGEN
  717. CUT
  718. ECHO
  719. PRINTF
  720. CXXCPP
  721. am__fastdepCXX_FALSE
  722. am__fastdepCXX_TRUE
  723. CXXDEPMODE
  724. ac_ct_CXX
  725. CXXFLAGS
  726. CXX
  727. CPP
  728. OTOOL64
  729. OTOOL
  730. LIPO
  731. NMEDIT
  732. DSYMUTIL
  733. lt_ECHO
  734. RANLIB
  735. AR
  736. OBJDUMP
  737. LN_S
  738. NM
  739. ac_ct_DUMPBIN
  740. DUMPBIN
  741. LD
  742. FGREP
  743. EGREP
  744. GREP
  745. SED
  746. am__fastdepCC_FALSE
  747. am__fastdepCC_TRUE
  748. CCDEPMODE
  749. AMDEPBACKSLASH
  750. AMDEP_FALSE
  751. AMDEP_TRUE
  752. am__quote
  753. am__include
  754. DEPDIR
  755. OBJEXT
  756. EXEEXT
  757. ac_ct_CC
  758. CPPFLAGS
  759. LDFLAGS
  760. CFLAGS
  761. CC
  762. LIBTOOL
  763. am__untar
  764. am__tar
  765. AMTAR
  766. am__leading_dot
  767. SET_MAKE
  768. AWK
  769. mkdir_p
  770. MKDIR_P
  771. INSTALL_STRIP_PROGRAM
  772. STRIP
  773. install_sh
  774. MAKEINFO
  775. AUTOHEADER
  776. AUTOMAKE
  777. AUTOCONF
  778. ACLOCAL
  779. VERSION
  780. PACKAGE
  781. CYGPATH_W
  782. am__isrc
  783. INSTALL_DATA
  784. INSTALL_SCRIPT
  785. INSTALL_PROGRAM
  786. target_os
  787. target_vendor
  788. target_cpu
  789. target
  790. host_os
  791. host_vendor
  792. host_cpu
  793. host
  794. build_os
  795. build_vendor
  796. build_cpu
  797. build
  798. TCPREPLAY_RELEASE
  799. TCPREPLAY_VERSION
  800. MAINT
  801. MAINTAINER_MODE_FALSE
  802. MAINTAINER_MODE_TRUE
  803. target_alias
  804. host_alias
  805. build_alias
  806. LIBS
  807. ECHO_T
  808. ECHO_N
  809. ECHO_C
  810. DEFS
  811. mandir
  812. localedir
  813. libdir
  814. psdir
  815. pdfdir
  816. dvidir
  817. htmldir
  818. infodir
  819. docdir
  820. oldincludedir
  821. includedir
  822. localstatedir
  823. sharedstatedir
  824. sysconfdir
  825. datadir
  826. datarootdir
  827. libexecdir
  828. sbindir
  829. bindir
  830. program_transform_name
  831. prefix
  832. exec_prefix
  833. PACKAGE_URL
  834. PACKAGE_BUGREPORT
  835. PACKAGE_STRING
  836. PACKAGE_VERSION
  837. PACKAGE_TARNAME
  838. PACKAGE_NAME
  839. PATH_SEPARATOR
  840. SHELL'
  841. ac_subst_files=''
  842. ac_user_opts='
  843. enable_option_checking
  844. enable_maintainer_mode
  845. with_dmalloc
  846. enable_shared
  847. enable_static
  848. with_pic
  849. enable_fast_install
  850. enable_dependency_tracking
  851. with_gnu_ld
  852. enable_libtool_lock
  853. enable_largefile
  854. enable_debug
  855. enable_dmalloc
  856. enable_pedantic
  857. enable_efence
  858. enable_gprof
  859. enable_64bits
  860. enable_force_bpf
  861. enable_force_pf
  862. enable_force_libdnet
  863. enable_force_inject
  864. enable_force_sendpacket
  865. enable_dynamic_link
  866. with_libpcap
  867. with_libdnet
  868. with_pcapnav_config
  869. with_tcpdump
  870. with_testnic
  871. with_testnic2
  872. enable_local_libopts
  873. enable_libopts_install
  874. with_autoopts_config
  875. with_regex_header
  876. with_libregex
  877. with_libregex_cflags
  878. with_libregex_libs
  879. enable_optional_args
  880. '
  881. ac_precious_vars='build_alias
  882. host_alias
  883. target_alias
  884. CC
  885. CFLAGS
  886. LDFLAGS
  887. LIBS
  888. CPPFLAGS
  889. CPP
  890. CXX
  891. CXXFLAGS
  892. CCC
  893. CXXCPP'
  894. # Initialize some variables set by options.
  895. ac_init_help=
  896. ac_init_version=false
  897. ac_unrecognized_opts=
  898. ac_unrecognized_sep=
  899. # The variables have the same names as the options, with
  900. # dashes changed to underlines.
  901. cache_file=/dev/null
  902. exec_prefix=NONE
  903. no_create=
  904. no_recursion=
  905. prefix=NONE
  906. program_prefix=NONE
  907. program_suffix=NONE
  908. program_transform_name=s,x,x,
  909. silent=
  910. site=
  911. srcdir=
  912. verbose=
  913. x_includes=NONE
  914. x_libraries=NONE
  915. # Installation directory options.
  916. # These are left unexpanded so users can "make install exec_prefix=/foo"
  917. # and all the variables that are supposed to be based on exec_prefix
  918. # by default will actually change.
  919. # Use braces instead of parens because sh, perl, etc. also accept them.
  920. # (The list follows the same order as the GNU Coding Standards.)
  921. bindir='${exec_prefix}/bin'
  922. sbindir='${exec_prefix}/sbin'
  923. libexecdir='${exec_prefix}/libexec'
  924. datarootdir='${prefix}/share'
  925. datadir='${datarootdir}'
  926. sysconfdir='${prefix}/etc'
  927. sharedstatedir='${prefix}/com'
  928. localstatedir='${prefix}/var'
  929. includedir='${prefix}/include'
  930. oldincludedir='/usr/include'
  931. docdir='${datarootdir}/doc/${PACKAGE}'
  932. infodir='${datarootdir}/info'
  933. htmldir='${docdir}'
  934. dvidir='${docdir}'
  935. pdfdir='${docdir}'
  936. psdir='${docdir}'
  937. libdir='${exec_prefix}/lib'
  938. localedir='${datarootdir}/locale'
  939. mandir='${datarootdir}/man'
  940. ac_prev=
  941. ac_dashdash=
  942. for ac_option
  943. do
  944. # If the previous option needs an argument, assign it.
  945. if test -n "$ac_prev"; then
  946. eval $ac_prev=\$ac_option
  947. ac_prev=
  948. continue
  949. fi
  950. case $ac_option in
  951. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  952. *) ac_optarg=yes ;;
  953. esac
  954. # Accept the important Cygnus configure options, so we can diagnose typos.
  955. case $ac_dashdash$ac_option in
  956. --)
  957. ac_dashdash=yes ;;
  958. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  959. ac_prev=bindir ;;
  960. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  961. bindir=$ac_optarg ;;
  962. -build | --build | --buil | --bui | --bu)
  963. ac_prev=build_alias ;;
  964. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  965. build_alias=$ac_optarg ;;
  966. -cache-file | --cache-file | --cache-fil | --cache-fi \
  967. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  968. ac_prev=cache_file ;;
  969. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  970. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  971. cache_file=$ac_optarg ;;
  972. --config-cache | -C)
  973. cache_file=config.cache ;;
  974. -datadir | --datadir | --datadi | --datad)
  975. ac_prev=datadir ;;
  976. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  977. datadir=$ac_optarg ;;
  978. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  979. | --dataroo | --dataro | --datar)
  980. ac_prev=datarootdir ;;
  981. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  982. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  983. datarootdir=$ac_optarg ;;
  984. -disable-* | --disable-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error "invalid feature name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "enable_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval enable_$ac_useropt=no ;;
  999. -docdir | --docdir | --docdi | --doc | --do)
  1000. ac_prev=docdir ;;
  1001. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1002. docdir=$ac_optarg ;;
  1003. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1004. ac_prev=dvidir ;;
  1005. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1006. dvidir=$ac_optarg ;;
  1007. -enable-* | --enable-*)
  1008. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1009. # Reject names that are not valid shell variable names.
  1010. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1011. as_fn_error "invalid feature name: $ac_useropt"
  1012. ac_useropt_orig=$ac_useropt
  1013. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1014. case $ac_user_opts in
  1015. *"
  1016. "enable_$ac_useropt"
  1017. "*) ;;
  1018. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1019. ac_unrecognized_sep=', ';;
  1020. esac
  1021. eval enable_$ac_useropt=\$ac_optarg ;;
  1022. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1023. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1024. | --exec | --exe | --ex)
  1025. ac_prev=exec_prefix ;;
  1026. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1027. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1028. | --exec=* | --exe=* | --ex=*)
  1029. exec_prefix=$ac_optarg ;;
  1030. -gas | --gas | --ga | --g)
  1031. # Obsolete; use --with-gas.
  1032. with_gas=yes ;;
  1033. -help | --help | --hel | --he | -h)
  1034. ac_init_help=long ;;
  1035. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1036. ac_init_help=recursive ;;
  1037. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1038. ac_init_help=short ;;
  1039. -host | --host | --hos | --ho)
  1040. ac_prev=host_alias ;;
  1041. -host=* | --host=* | --hos=* | --ho=*)
  1042. host_alias=$ac_optarg ;;
  1043. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1044. ac_prev=htmldir ;;
  1045. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1046. | --ht=*)
  1047. htmldir=$ac_optarg ;;
  1048. -includedir | --includedir | --includedi | --included | --include \
  1049. | --includ | --inclu | --incl | --inc)
  1050. ac_prev=includedir ;;
  1051. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1052. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1053. includedir=$ac_optarg ;;
  1054. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1055. ac_prev=infodir ;;
  1056. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1057. infodir=$ac_optarg ;;
  1058. -libdir | --libdir | --libdi | --libd)
  1059. ac_prev=libdir ;;
  1060. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1061. libdir=$ac_optarg ;;
  1062. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1063. | --libexe | --libex | --libe)
  1064. ac_prev=libexecdir ;;
  1065. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1066. | --libexe=* | --libex=* | --libe=*)
  1067. libexecdir=$ac_optarg ;;
  1068. -localedir | --localedir | --localedi | --localed | --locale)
  1069. ac_prev=localedir ;;
  1070. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1071. localedir=$ac_optarg ;;
  1072. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1073. | --localstate | --localstat | --localsta | --localst | --locals)
  1074. ac_prev=localstatedir ;;
  1075. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1076. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1077. localstatedir=$ac_optarg ;;
  1078. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1079. ac_prev=mandir ;;
  1080. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1081. mandir=$ac_optarg ;;
  1082. -nfp | --nfp | --nf)
  1083. # Obsolete; use --without-fp.
  1084. with_fp=no ;;
  1085. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1086. | --no-cr | --no-c | -n)
  1087. no_create=yes ;;
  1088. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1089. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1090. no_recursion=yes ;;
  1091. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1092. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1093. | --oldin | --oldi | --old | --ol | --o)
  1094. ac_prev=oldincludedir ;;
  1095. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1096. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1097. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1098. oldincludedir=$ac_optarg ;;
  1099. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1100. ac_prev=prefix ;;
  1101. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1102. prefix=$ac_optarg ;;
  1103. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1104. | --program-pre | --program-pr | --program-p)
  1105. ac_prev=program_prefix ;;
  1106. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1107. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1108. program_prefix=$ac_optarg ;;
  1109. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1110. | --program-suf | --program-su | --program-s)
  1111. ac_prev=program_suffix ;;
  1112. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1113. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1114. program_suffix=$ac_optarg ;;
  1115. -program-transform-name | --program-transform-name \
  1116. | --program-transform-nam | --program-transform-na \
  1117. | --program-transform-n | --program-transform- \
  1118. | --program-transform | --program-transfor \
  1119. | --program-transfo | --program-transf \
  1120. | --program-trans | --program-tran \
  1121. | --progr-tra | --program-tr | --program-t)
  1122. ac_prev=program_transform_name ;;
  1123. -program-transform-name=* | --program-transform-name=* \
  1124. | --program-transform-nam=* | --program-transform-na=* \
  1125. | --program-transform-n=* | --program-transform-=* \
  1126. | --program-transform=* | --program-transfor=* \
  1127. | --program-transfo=* | --program-transf=* \
  1128. | --program-trans=* | --program-tran=* \
  1129. | --progr-tra=* | --program-tr=* | --program-t=*)
  1130. program_transform_name=$ac_optarg ;;
  1131. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1132. ac_prev=pdfdir ;;
  1133. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1134. pdfdir=$ac_optarg ;;
  1135. -psdir | --psdir | --psdi | --psd | --ps)
  1136. ac_prev=psdir ;;
  1137. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1138. psdir=$ac_optarg ;;
  1139. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1140. | -silent | --silent | --silen | --sile | --sil)
  1141. silent=yes ;;
  1142. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1143. ac_prev=sbindir ;;
  1144. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1145. | --sbi=* | --sb=*)
  1146. sbindir=$ac_optarg ;;
  1147. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1148. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1149. | --sharedst | --shareds | --shared | --share | --shar \
  1150. | --sha | --sh)
  1151. ac_prev=sharedstatedir ;;
  1152. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1153. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1154. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1155. | --sha=* | --sh=*)
  1156. sharedstatedir=$ac_optarg ;;
  1157. -site | --site | --sit)
  1158. ac_prev=site ;;
  1159. -site=* | --site=* | --sit=*)
  1160. site=$ac_optarg ;;
  1161. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1162. ac_prev=srcdir ;;
  1163. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1164. srcdir=$ac_optarg ;;
  1165. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1166. | --syscon | --sysco | --sysc | --sys | --sy)
  1167. ac_prev=sysconfdir ;;
  1168. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1169. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1170. sysconfdir=$ac_optarg ;;
  1171. -target | --target | --targe | --targ | --tar | --ta | --t)
  1172. ac_prev=target_alias ;;
  1173. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1174. target_alias=$ac_optarg ;;
  1175. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1176. verbose=yes ;;
  1177. -version | --version | --versio | --versi | --vers | -V)
  1178. ac_init_version=: ;;
  1179. -with-* | --with-*)
  1180. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1181. # Reject names that are not valid shell variable names.
  1182. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1183. as_fn_error "invalid package name: $ac_useropt"
  1184. ac_useropt_orig=$ac_useropt
  1185. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1186. case $ac_user_opts in
  1187. *"
  1188. "with_$ac_useropt"
  1189. "*) ;;
  1190. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1191. ac_unrecognized_sep=', ';;
  1192. esac
  1193. eval with_$ac_useropt=\$ac_optarg ;;
  1194. -without-* | --without-*)
  1195. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1196. # Reject names that are not valid shell variable names.
  1197. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1198. as_fn_error "invalid package name: $ac_useropt"
  1199. ac_useropt_orig=$ac_useropt
  1200. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1201. case $ac_user_opts in
  1202. *"
  1203. "with_$ac_useropt"
  1204. "*) ;;
  1205. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1206. ac_unrecognized_sep=', ';;
  1207. esac
  1208. eval with_$ac_useropt=no ;;
  1209. --x)
  1210. # Obsolete; use --with-x.
  1211. with_x=yes ;;
  1212. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1213. | --x-incl | --x-inc | --x-in | --x-i)
  1214. ac_prev=x_includes ;;
  1215. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1216. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1217. x_includes=$ac_optarg ;;
  1218. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1219. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1220. ac_prev=x_libraries ;;
  1221. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1222. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1223. x_libraries=$ac_optarg ;;
  1224. -*) as_fn_error "unrecognized option: \`$ac_option'
  1225. Try \`$0 --help' for more information."
  1226. ;;
  1227. *=*)
  1228. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1229. # Reject names that are not valid shell variable names.
  1230. case $ac_envvar in #(
  1231. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1232. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1233. esac
  1234. eval $ac_envvar=\$ac_optarg
  1235. export $ac_envvar ;;
  1236. *)
  1237. # FIXME: should be removed in autoconf 3.0.
  1238. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1239. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1240. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1241. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1242. ;;
  1243. esac
  1244. done
  1245. if test -n "$ac_prev"; then
  1246. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1247. as_fn_error "missing argument to $ac_option"
  1248. fi
  1249. if test -n "$ac_unrecognized_opts"; then
  1250. case $enable_option_checking in
  1251. no) ;;
  1252. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1253. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1254. esac
  1255. fi
  1256. # Check all directory arguments for consistency.
  1257. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1258. datadir sysconfdir sharedstatedir localstatedir includedir \
  1259. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1260. libdir localedir mandir
  1261. do
  1262. eval ac_val=\$$ac_var
  1263. # Remove trailing slashes.
  1264. case $ac_val in
  1265. */ )
  1266. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1267. eval $ac_var=\$ac_val;;
  1268. esac
  1269. # Be sure to have absolute directory names.
  1270. case $ac_val in
  1271. [\\/$]* | ?:[\\/]* ) continue;;
  1272. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1273. esac
  1274. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1275. done
  1276. # There might be people who depend on the old broken behavior: `$host'
  1277. # used to hold the argument of --host etc.
  1278. # FIXME: To remove some day.
  1279. build=$build_alias
  1280. host=$host_alias
  1281. target=$target_alias
  1282. # FIXME: To remove some day.
  1283. if test "x$host_alias" != x; then
  1284. if test "x$build_alias" = x; then
  1285. cross_compiling=maybe
  1286. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1287. If a cross compiler is detected then cross compile mode will be used." >&2
  1288. elif test "x$build_alias" != "x$host_alias"; then
  1289. cross_compiling=yes
  1290. fi
  1291. fi
  1292. ac_tool_prefix=
  1293. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1294. test "$silent" = yes && exec 6>/dev/null
  1295. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1296. ac_ls_di=`ls -di .` &&
  1297. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1298. as_fn_error "working directory cannot be determined"
  1299. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1300. as_fn_error "pwd does not report name of working directory"
  1301. # Find the source files, if location was not specified.
  1302. if test -z "$srcdir"; then
  1303. ac_srcdir_defaulted=yes
  1304. # Try the directory containing this script, then the parent directory.
  1305. ac_confdir=`$as_dirname -- "$as_myself" ||
  1306. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1307. X"$as_myself" : 'X\(//\)[^/]' \| \
  1308. X"$as_myself" : 'X\(//\)$' \| \
  1309. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1310. $as_echo X"$as_myself" |
  1311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1312. s//\1/
  1313. q
  1314. }
  1315. /^X\(\/\/\)[^/].*/{
  1316. s//\1/
  1317. q
  1318. }
  1319. /^X\(\/\/\)$/{
  1320. s//\1/
  1321. q
  1322. }
  1323. /^X\(\/\).*/{
  1324. s//\1/
  1325. q
  1326. }
  1327. s/.*/./; q'`
  1328. srcdir=$ac_confdir
  1329. if test ! -r "$srcdir/$ac_unique_file"; then
  1330. srcdir=..
  1331. fi
  1332. else
  1333. ac_srcdir_defaulted=no
  1334. fi
  1335. if test ! -r "$srcdir/$ac_unique_file"; then
  1336. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1337. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1338. fi
  1339. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1340. ac_abs_confdir=`(
  1341. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1342. pwd)`
  1343. # When building in place, set srcdir=.
  1344. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1345. srcdir=.
  1346. fi
  1347. # Remove unnecessary trailing slashes from srcdir.
  1348. # Double slashes in file names in object file debugging info
  1349. # mess up M-x gdb in Emacs.
  1350. case $srcdir in
  1351. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1352. esac
  1353. for ac_var in $ac_precious_vars; do
  1354. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1355. eval ac_env_${ac_var}_value=\$${ac_var}
  1356. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1357. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1358. done
  1359. #
  1360. # Report the --help message.
  1361. #
  1362. if test "$ac_init_help" = "long"; then
  1363. # Omit some internal or obsolete options to make the list less imposing.
  1364. # This message is too long to be a string in the A/UX 3.1 sh.
  1365. cat <<_ACEOF
  1366. \`configure' configures this package to adapt to many kinds of systems.
  1367. Usage: $0 [OPTION]... [VAR=VALUE]...
  1368. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1369. VAR=VALUE. See below for descriptions of some of the useful variables.
  1370. Defaults for the options are specified in brackets.
  1371. Configuration:
  1372. -h, --help display this help and exit
  1373. --help=short display options specific to this package
  1374. --help=recursive display the short help of all the included packages
  1375. -V, --version display version information and exit
  1376. -q, --quiet, --silent do not print \`checking...' messages
  1377. --cache-file=FILE cache test results in FILE [disabled]
  1378. -C, --config-cache alias for \`--cache-file=config.cache'
  1379. -n, --no-create do not create output files
  1380. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1381. Installation directories:
  1382. --prefix=PREFIX install architecture-independent files in PREFIX
  1383. [$ac_default_prefix]
  1384. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1385. [PREFIX]
  1386. By default, \`make install' will install all the files in
  1387. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1388. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1389. for instance \`--prefix=\$HOME'.
  1390. For better control, use the options below.
  1391. Fine tuning of the installation directories:
  1392. --bindir=DIR user executables [EPREFIX/bin]
  1393. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1394. --libexecdir=DIR program executables [EPREFIX/libexec]
  1395. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1396. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1397. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1398. --libdir=DIR object code libraries [EPREFIX/lib]
  1399. --includedir=DIR C header files [PREFIX/include]
  1400. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1401. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1402. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1403. --infodir=DIR info documentation [DATAROOTDIR/info]
  1404. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1405. --mandir=DIR man documentation [DATAROOTDIR/man]
  1406. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1407. --htmldir=DIR html documentation [DOCDIR]
  1408. --dvidir=DIR dvi documentation [DOCDIR]
  1409. --pdfdir=DIR pdf documentation [DOCDIR]
  1410. --psdir=DIR ps documentation [DOCDIR]
  1411. _ACEOF
  1412. cat <<\_ACEOF
  1413. Program names:
  1414. --program-prefix=PREFIX prepend PREFIX to installed program names
  1415. --program-suffix=SUFFIX append SUFFIX to installed program names
  1416. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1417. System types:
  1418. --build=BUILD configure for building on BUILD [guessed]
  1419. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1420. --target=TARGET configure for building compilers for TARGET [HOST]
  1421. _ACEOF
  1422. fi
  1423. if test -n "$ac_init_help"; then
  1424. cat <<\_ACEOF
  1425. Optional Features:
  1426. --disable-option-checking ignore unrecognized --enable/--with options
  1427. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1428. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1429. --enable-maintainer-mode enable make rules and dependencies not useful
  1430. (and sometimes confusing) to the casual installer
  1431. --enable-shared[=PKGS] build shared libraries [default=yes]
  1432. --enable-static[=PKGS] build static libraries [default=yes]
  1433. --enable-fast-install[=PKGS]
  1434. optimize for fast installation [default=yes]
  1435. --disable-dependency-tracking speeds up one-time build
  1436. --enable-dependency-tracking do not reject slow dependency extractors
  1437. --disable-libtool-lock avoid locking (might break parallel builds)
  1438. --disable-largefile omit support for large files
  1439. --enable-debug Enable debugging code and support for the -d option
  1440. --enable-dmalloc Enable linking to dmalloc for better memory
  1441. debugging
  1442. --enable-pedantic Enable gcc's -pedantic option
  1443. --enable-efence Enable Electric Fence memory debugger
  1444. --enable-gprof Enable GNU Profiler
  1445. --disable-64bits Do not use 64bit packet counters
  1446. --enable-force-bpf Force using BPF for sending packets
  1447. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1448. --enable-force-libdnet Force using libdnet for sending packets
  1449. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1450. packets
  1451. --enable-force-sendpacket
  1452. Force using libpcap's pcap_sendpacket() for sending
  1453. packets
  1454. --enable-dynamic-link Dynamically link libraries
  1455. --enable-local-libopts Force using the supplied libopts tearoff code
  1456. --disable-libopts-install
  1457. Do not install libopts with client installation
  1458. --disable-optional-args not wanting optional option args
  1459. Optional Packages:
  1460. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1461. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1462. --with-dmalloc use dmalloc, as in
  1463. http://www.dmalloc.com/dmalloc.tar.gz
  1464. --with-pic try to use only PIC/non-PIC objects [default=use
  1465. both]
  1466. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1467. --with-libpcap=DIR Use libpcap in DIR
  1468. --with-libdnet=DIR Use libdnet in DIR
  1469. --with-pcapnav-config=FILE
  1470. Use given pcapnav-config
  1471. --with-tcpdump=FILE Path to tcpdump binary
  1472. --with-testnic=NIC Select which network card to use for testing
  1473. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1474. testing
  1475. --with-autoopts-config specify the config-info script
  1476. --with-regex-header a reg expr header is specified
  1477. --with-libregex libregex installation prefix
  1478. --with-libregex-cflags libregex compile flags
  1479. --with-libregex-libs libregex link command arguments
  1480. Some influential environment variables:
  1481. CC C compiler command
  1482. CFLAGS C compiler flags
  1483. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1484. nonstandard directory <lib dir>
  1485. LIBS libraries to pass to the linker, e.g. -l<library>
  1486. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1487. you have headers in a nonstandard directory <include dir>
  1488. CPP C preprocessor
  1489. CXX C++ compiler command
  1490. CXXFLAGS C++ compiler flags
  1491. CXXCPP C++ preprocessor
  1492. Use these variables to override the choices made by `configure' or to help
  1493. it to find libraries and programs with nonstandard names/locations.
  1494. Report bugs to the package provider.
  1495. _ACEOF
  1496. ac_status=$?
  1497. fi
  1498. if test "$ac_init_help" = "recursive"; then
  1499. # If there are subdirs, report their specific --help.
  1500. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1501. test -d "$ac_dir" ||
  1502. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1503. continue
  1504. ac_builddir=.
  1505. case "$ac_dir" in
  1506. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1507. *)
  1508. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1509. # A ".." for each directory in $ac_dir_suffix.
  1510. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1511. case $ac_top_builddir_sub in
  1512. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1513. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1514. esac ;;
  1515. esac
  1516. ac_abs_top_builddir=$ac_pwd
  1517. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1518. # for backward compatibility:
  1519. ac_top_builddir=$ac_top_build_prefix
  1520. case $srcdir in
  1521. .) # We are building in place.
  1522. ac_srcdir=.
  1523. ac_top_srcdir=$ac_top_builddir_sub
  1524. ac_abs_top_srcdir=$ac_pwd ;;
  1525. [\\/]* | ?:[\\/]* ) # Absolute name.
  1526. ac_srcdir=$srcdir$ac_dir_suffix;
  1527. ac_top_srcdir=$srcdir
  1528. ac_abs_top_srcdir=$srcdir ;;
  1529. *) # Relative name.
  1530. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1531. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1532. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1533. esac
  1534. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1535. cd "$ac_dir" || { ac_status=$?; continue; }
  1536. # Check for guested configure.
  1537. if test -f "$ac_srcdir/configure.gnu"; then
  1538. echo &&
  1539. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1540. elif test -f "$ac_srcdir/configure"; then
  1541. echo &&
  1542. $SHELL "$ac_srcdir/configure" --help=recursive
  1543. else
  1544. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1545. fi || ac_status=$?
  1546. cd "$ac_pwd" || { ac_status=$?; break; }
  1547. done
  1548. fi
  1549. test -n "$ac_init_help" && exit $ac_status
  1550. if $ac_init_version; then
  1551. cat <<\_ACEOF
  1552. configure
  1553. generated by GNU Autoconf 2.65
  1554. Copyright (C) 2009 Free Software Foundation, Inc.
  1555. This configure script is free software; the Free Software Foundation
  1556. gives unlimited permission to copy, distribute and modify it.
  1557. _ACEOF
  1558. exit
  1559. fi
  1560. ## ------------------------ ##
  1561. ## Autoconf initialization. ##
  1562. ## ------------------------ ##
  1563. # ac_fn_c_try_compile LINENO
  1564. # --------------------------
  1565. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1566. ac_fn_c_try_compile ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. rm -f conftest.$ac_objext
  1570. if { { ac_try="$ac_compile"
  1571. case "(($ac_try" in
  1572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1573. *) ac_try_echo=$ac_try;;
  1574. esac
  1575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1576. $as_echo "$ac_try_echo"; } >&5
  1577. (eval "$ac_compile") 2>conftest.err
  1578. ac_status=$?
  1579. if test -s conftest.err; then
  1580. grep -v '^ *+' conftest.err >conftest.er1
  1581. cat conftest.er1 >&5
  1582. mv -f conftest.er1 conftest.err
  1583. fi
  1584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1585. test $ac_status = 0; } && {
  1586. test -z "$ac_c_werror_flag" ||
  1587. test ! -s conftest.err
  1588. } && test -s conftest.$ac_objext; then :
  1589. ac_retval=0
  1590. else
  1591. $as_echo "$as_me: failed program was:" >&5
  1592. sed 's/^/| /' conftest.$ac_ext >&5
  1593. ac_retval=1
  1594. fi
  1595. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1596. as_fn_set_status $ac_retval
  1597. } # ac_fn_c_try_compile
  1598. # ac_fn_c_try_link LINENO
  1599. # -----------------------
  1600. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1601. ac_fn_c_try_link ()
  1602. {
  1603. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1604. rm -f conftest.$ac_objext conftest$ac_exeext
  1605. if { { ac_try="$ac_link"
  1606. case "(($ac_try" in
  1607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1608. *) ac_try_echo=$ac_try;;
  1609. esac
  1610. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1611. $as_echo "$ac_try_echo"; } >&5
  1612. (eval "$ac_link") 2>conftest.err
  1613. ac_status=$?
  1614. if test -s conftest.err; then
  1615. grep -v '^ *+' conftest.err >conftest.er1
  1616. cat conftest.er1 >&5
  1617. mv -f conftest.er1 conftest.err
  1618. fi
  1619. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1620. test $ac_status = 0; } && {
  1621. test -z "$ac_c_werror_flag" ||
  1622. test ! -s conftest.err
  1623. } && test -s conftest$ac_exeext && {
  1624. test "$cross_compiling" = yes ||
  1625. $as_test_x conftest$ac_exeext
  1626. }; then :
  1627. ac_retval=0
  1628. else
  1629. $as_echo "$as_me: failed program was:" >&5
  1630. sed 's/^/| /' conftest.$ac_ext >&5
  1631. ac_retval=1
  1632. fi
  1633. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1634. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1635. # interfere with the next link command; also delete a directory that is
  1636. # left behind by Apple's compiler. We do this before executing the actions.
  1637. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1638. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1639. as_fn_set_status $ac_retval
  1640. } # ac_fn_c_try_link
  1641. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1642. # -------------------------------------------------------
  1643. # Tests whether HEADER exists and can be compiled using the include files in
  1644. # INCLUDES, setting the cache variable VAR accordingly.
  1645. ac_fn_c_check_header_compile ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1649. $as_echo_n "checking for $2... " >&6; }
  1650. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1651. $as_echo_n "(cached) " >&6
  1652. else
  1653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1654. /* end confdefs.h. */
  1655. $4
  1656. #include <$2>
  1657. _ACEOF
  1658. if ac_fn_c_try_compile "$LINENO"; then :
  1659. eval "$3=yes"
  1660. else
  1661. eval "$3=no"
  1662. fi
  1663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1664. fi
  1665. eval ac_res=\$$3
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1667. $as_echo "$ac_res" >&6; }
  1668. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1669. } # ac_fn_c_check_header_compile
  1670. # ac_fn_c_try_cpp LINENO
  1671. # ----------------------
  1672. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1673. ac_fn_c_try_cpp ()
  1674. {
  1675. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1676. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1677. case "(($ac_try" in
  1678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679. *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1684. ac_status=$?
  1685. if test -s conftest.err; then
  1686. grep -v '^ *+' conftest.err >conftest.er1
  1687. cat conftest.er1 >&5
  1688. mv -f conftest.er1 conftest.err
  1689. fi
  1690. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1691. test $ac_status = 0; } >/dev/null && {
  1692. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1693. test ! -s conftest.err
  1694. }; then :
  1695. ac_retval=0
  1696. else
  1697. $as_echo "$as_me: failed program was:" >&5
  1698. sed 's/^/| /' conftest.$ac_ext >&5
  1699. ac_retval=1
  1700. fi
  1701. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1702. as_fn_set_status $ac_retval
  1703. } # ac_fn_c_try_cpp
  1704. # ac_fn_c_try_run LINENO
  1705. # ----------------------
  1706. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1707. # that executables *can* be run.
  1708. ac_fn_c_try_run ()
  1709. {
  1710. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1711. if { { ac_try="$ac_link"
  1712. case "(($ac_try" in
  1713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1714. *) ac_try_echo=$ac_try;;
  1715. esac
  1716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1717. $as_echo "$ac_try_echo"; } >&5
  1718. (eval "$ac_link") 2>&5
  1719. ac_status=$?
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1722. { { case "(($ac_try" in
  1723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1724. *) ac_try_echo=$ac_try;;
  1725. esac
  1726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1727. $as_echo "$ac_try_echo"; } >&5
  1728. (eval "$ac_try") 2>&5
  1729. ac_status=$?
  1730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1731. test $ac_status = 0; }; }; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: program exited with status $ac_status" >&5
  1735. $as_echo "$as_me: failed program was:" >&5
  1736. sed 's/^/| /' conftest.$ac_ext >&5
  1737. ac_retval=$ac_status
  1738. fi
  1739. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1740. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1741. as_fn_set_status $ac_retval
  1742. } # ac_fn_c_try_run
  1743. # ac_fn_c_check_func LINENO FUNC VAR
  1744. # ----------------------------------
  1745. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1746. ac_fn_c_check_func ()
  1747. {
  1748. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1750. $as_echo_n "checking for $2... " >&6; }
  1751. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1752. $as_echo_n "(cached) " >&6
  1753. else
  1754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1755. /* end confdefs.h. */
  1756. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1757. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1758. #define $2 innocuous_$2
  1759. /* System header to define __stub macros and hopefully few prototypes,
  1760. which can conflict with char $2 (); below.
  1761. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1762. <limits.h> exists even on freestanding compilers. */
  1763. #ifdef __STDC__
  1764. # include <limits.h>
  1765. #else
  1766. # include <assert.h>
  1767. #endif
  1768. #undef $2
  1769. /* Override any GCC internal prototype to avoid an error.
  1770. Use char because int might match the return type of a GCC
  1771. builtin and then its argument prototype would still apply. */
  1772. #ifdef __cplusplus
  1773. extern "C"
  1774. #endif
  1775. char $2 ();
  1776. /* The GNU C library defines this for functions which it implements
  1777. to always fail with ENOSYS. Some functions are actually named
  1778. something starting with __ and the normal name is an alias. */
  1779. #if defined __stub_$2 || defined __stub___$2
  1780. choke me
  1781. #endif
  1782. int
  1783. main ()
  1784. {
  1785. return $2 ();
  1786. ;
  1787. return 0;
  1788. }
  1789. _ACEOF
  1790. if ac_fn_c_try_link "$LINENO"; then :
  1791. eval "$3=yes"
  1792. else
  1793. eval "$3=no"
  1794. fi
  1795. rm -f core conftest.err conftest.$ac_objext \
  1796. conftest$ac_exeext conftest.$ac_ext
  1797. fi
  1798. eval ac_res=\$$3
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1800. $as_echo "$ac_res" >&6; }
  1801. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1802. } # ac_fn_c_check_func
  1803. # ac_fn_cxx_try_compile LINENO
  1804. # ----------------------------
  1805. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1806. ac_fn_cxx_try_compile ()
  1807. {
  1808. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1809. rm -f conftest.$ac_objext
  1810. if { { ac_try="$ac_compile"
  1811. case "(($ac_try" in
  1812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1813. *) ac_try_echo=$ac_try;;
  1814. esac
  1815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1816. $as_echo "$ac_try_echo"; } >&5
  1817. (eval "$ac_compile") 2>conftest.err
  1818. ac_status=$?
  1819. if test -s conftest.err; then
  1820. grep -v '^ *+' conftest.err >conftest.er1
  1821. cat conftest.er1 >&5
  1822. mv -f conftest.er1 conftest.err
  1823. fi
  1824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1825. test $ac_status = 0; } && {
  1826. test -z "$ac_cxx_werror_flag" ||
  1827. test ! -s conftest.err
  1828. } && test -s conftest.$ac_objext; then :
  1829. ac_retval=0
  1830. else
  1831. $as_echo "$as_me: failed program was:" >&5
  1832. sed 's/^/| /' conftest.$ac_ext >&5
  1833. ac_retval=1
  1834. fi
  1835. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1836. as_fn_set_status $ac_retval
  1837. } # ac_fn_cxx_try_compile
  1838. # ac_fn_cxx_try_cpp LINENO
  1839. # ------------------------
  1840. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1841. ac_fn_cxx_try_cpp ()
  1842. {
  1843. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1844. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1845. case "(($ac_try" in
  1846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1847. *) ac_try_echo=$ac_try;;
  1848. esac
  1849. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1850. $as_echo "$ac_try_echo"; } >&5
  1851. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1852. ac_status=$?
  1853. if test -s conftest.err; then
  1854. grep -v '^ *+' conftest.err >conftest.er1
  1855. cat conftest.er1 >&5
  1856. mv -f conftest.er1 conftest.err
  1857. fi
  1858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1859. test $ac_status = 0; } >/dev/null && {
  1860. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1861. test ! -s conftest.err
  1862. }; then :
  1863. ac_retval=0
  1864. else
  1865. $as_echo "$as_me: failed program was:" >&5
  1866. sed 's/^/| /' conftest.$ac_ext >&5
  1867. ac_retval=1
  1868. fi
  1869. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1870. as_fn_set_status $ac_retval
  1871. } # ac_fn_cxx_try_cpp
  1872. # ac_fn_cxx_try_link LINENO
  1873. # -------------------------
  1874. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1875. ac_fn_cxx_try_link ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. rm -f conftest.$ac_objext conftest$ac_exeext
  1879. if { { ac_try="$ac_link"
  1880. case "(($ac_try" in
  1881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1882. *) ac_try_echo=$ac_try;;
  1883. esac
  1884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1885. $as_echo "$ac_try_echo"; } >&5
  1886. (eval "$ac_link") 2>conftest.err
  1887. ac_status=$?
  1888. if test -s conftest.err; then
  1889. grep -v '^ *+' conftest.err >conftest.er1
  1890. cat conftest.er1 >&5
  1891. mv -f conftest.er1 conftest.err
  1892. fi
  1893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1894. test $ac_status = 0; } && {
  1895. test -z "$ac_cxx_werror_flag" ||
  1896. test ! -s conftest.err
  1897. } && test -s conftest$ac_exeext && {
  1898. test "$cross_compiling" = yes ||
  1899. $as_test_x conftest$ac_exeext
  1900. }; then :
  1901. ac_retval=0
  1902. else
  1903. $as_echo "$as_me: failed program was:" >&5
  1904. sed 's/^/| /' conftest.$ac_ext >&5
  1905. ac_retval=1
  1906. fi
  1907. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1908. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1909. # interfere with the next link command; also delete a directory that is
  1910. # left behind by Apple's compiler. We do this before executing the actions.
  1911. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1912. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1913. as_fn_set_status $ac_retval
  1914. } # ac_fn_cxx_try_link
  1915. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1916. # -------------------------------------------------------
  1917. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1918. # the include files in INCLUDES and setting the cache variable VAR
  1919. # accordingly.
  1920. ac_fn_c_check_header_mongrel ()
  1921. {
  1922. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1923. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1925. $as_echo_n "checking for $2... " >&6; }
  1926. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1927. $as_echo_n "(cached) " >&6
  1928. fi
  1929. eval ac_res=\$$3
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1931. $as_echo "$ac_res" >&6; }
  1932. else
  1933. # Is the header compilable?
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1935. $as_echo_n "checking $2 usability... " >&6; }
  1936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1937. /* end confdefs.h. */
  1938. $4
  1939. #include <$2>
  1940. _ACEOF
  1941. if ac_fn_c_try_compile "$LINENO"; then :
  1942. ac_header_compiler=yes
  1943. else
  1944. ac_header_compiler=no
  1945. fi
  1946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1948. $as_echo "$ac_header_compiler" >&6; }
  1949. # Is the header present?
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1951. $as_echo_n "checking $2 presence... " >&6; }
  1952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1953. /* end confdefs.h. */
  1954. #include <$2>
  1955. _ACEOF
  1956. if ac_fn_c_try_cpp "$LINENO"; then :
  1957. ac_header_preproc=yes
  1958. else
  1959. ac_header_preproc=no
  1960. fi
  1961. rm -f conftest.err conftest.$ac_ext
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1963. $as_echo "$ac_header_preproc" >&6; }
  1964. # So? What about this header?
  1965. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1966. yes:no: )
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1968. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1970. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1971. ;;
  1972. no:yes:* )
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1974. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1976. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1978. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1980. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1982. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1983. ;;
  1984. esac
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1986. $as_echo_n "checking for $2... " >&6; }
  1987. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1988. $as_echo_n "(cached) " >&6
  1989. else
  1990. eval "$3=\$ac_header_compiler"
  1991. fi
  1992. eval ac_res=\$$3
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1994. $as_echo "$ac_res" >&6; }
  1995. fi
  1996. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1997. } # ac_fn_c_check_header_mongrel
  1998. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1999. # -------------------------------------------
  2000. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2001. # variable VAR accordingly.
  2002. ac_fn_c_check_type ()
  2003. {
  2004. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2006. $as_echo_n "checking for $2... " >&6; }
  2007. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2008. $as_echo_n "(cached) " >&6
  2009. else
  2010. eval "$3=no"
  2011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2012. /* end confdefs.h. */
  2013. $4
  2014. int
  2015. main ()
  2016. {
  2017. if (sizeof ($2))
  2018. return 0;
  2019. ;
  2020. return 0;
  2021. }
  2022. _ACEOF
  2023. if ac_fn_c_try_compile "$LINENO"; then :
  2024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2025. /* end confdefs.h. */
  2026. $4
  2027. int
  2028. main ()
  2029. {
  2030. if (sizeof (($2)))
  2031. return 0;
  2032. ;
  2033. return 0;
  2034. }
  2035. _ACEOF
  2036. if ac_fn_c_try_compile "$LINENO"; then :
  2037. else
  2038. eval "$3=yes"
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. fi
  2042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2043. fi
  2044. eval ac_res=\$$3
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2046. $as_echo "$ac_res" >&6; }
  2047. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2048. } # ac_fn_c_check_type
  2049. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2050. # ----------------------------------------------------
  2051. # Tries to find if the field MEMBER exists in type AGGR, after including
  2052. # INCLUDES, setting cache variable VAR accordingly.
  2053. ac_fn_c_check_member ()
  2054. {
  2055. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2057. $as_echo_n "checking for $2.$3... " >&6; }
  2058. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2059. $as_echo_n "(cached) " >&6
  2060. else
  2061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2062. /* end confdefs.h. */
  2063. $5
  2064. int
  2065. main ()
  2066. {
  2067. static $2 ac_aggr;
  2068. if (ac_aggr.$3)
  2069. return 0;
  2070. ;
  2071. return 0;
  2072. }
  2073. _ACEOF
  2074. if ac_fn_c_try_compile "$LINENO"; then :
  2075. eval "$4=yes"
  2076. else
  2077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2078. /* end confdefs.h. */
  2079. $5
  2080. int
  2081. main ()
  2082. {
  2083. static $2 ac_aggr;
  2084. if (sizeof ac_aggr.$3)
  2085. return 0;
  2086. ;
  2087. return 0;
  2088. }
  2089. _ACEOF
  2090. if ac_fn_c_try_compile "$LINENO"; then :
  2091. eval "$4=yes"
  2092. else
  2093. eval "$4=no"
  2094. fi
  2095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2096. fi
  2097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2098. fi
  2099. eval ac_res=\$$4
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2101. $as_echo "$ac_res" >&6; }
  2102. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2103. } # ac_fn_c_check_member
  2104. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2105. # --------------------------------------------
  2106. # Tries to find the compile-time value of EXPR in a program that includes
  2107. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2108. # computed
  2109. ac_fn_c_compute_int ()
  2110. {
  2111. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2112. if test "$cross_compiling" = yes; then
  2113. # Depending upon the size, compute the lo and hi bounds.
  2114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2115. /* end confdefs.h. */
  2116. $4
  2117. int
  2118. main ()
  2119. {
  2120. static int test_array [1 - 2 * !(($2) >= 0)];
  2121. test_array [0] = 0
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"; then :
  2127. ac_lo=0 ac_mid=0
  2128. while :; do
  2129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2130. /* end confdefs.h. */
  2131. $4
  2132. int
  2133. main ()
  2134. {
  2135. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2136. test_array [0] = 0
  2137. ;
  2138. return 0;
  2139. }
  2140. _ACEOF
  2141. if ac_fn_c_try_compile "$LINENO"; then :
  2142. ac_hi=$ac_mid; break
  2143. else
  2144. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2145. if test $ac_lo -le $ac_mid; then
  2146. ac_lo= ac_hi=
  2147. break
  2148. fi
  2149. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2152. done
  2153. else
  2154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2155. /* end confdefs.h. */
  2156. $4
  2157. int
  2158. main ()
  2159. {
  2160. static int test_array [1 - 2 * !(($2) < 0)];
  2161. test_array [0] = 0
  2162. ;
  2163. return 0;
  2164. }
  2165. _ACEOF
  2166. if ac_fn_c_try_compile "$LINENO"; then :
  2167. ac_hi=-1 ac_mid=-1
  2168. while :; do
  2169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2170. /* end confdefs.h. */
  2171. $4
  2172. int
  2173. main ()
  2174. {
  2175. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2176. test_array [0] = 0
  2177. ;
  2178. return 0;
  2179. }
  2180. _ACEOF
  2181. if ac_fn_c_try_compile "$LINENO"; then :
  2182. ac_lo=$ac_mid; break
  2183. else
  2184. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2185. if test $ac_mid -le $ac_hi; then
  2186. ac_lo= ac_hi=
  2187. break
  2188. fi
  2189. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2190. fi
  2191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2192. done
  2193. else
  2194. ac_lo= ac_hi=
  2195. fi
  2196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2197. fi
  2198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2199. # Binary search between lo and hi bounds.
  2200. while test "x$ac_lo" != "x$ac_hi"; do
  2201. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2203. /* end confdefs.h. */
  2204. $4
  2205. int
  2206. main ()
  2207. {
  2208. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2209. test_array [0] = 0
  2210. ;
  2211. return 0;
  2212. }
  2213. _ACEOF
  2214. if ac_fn_c_try_compile "$LINENO"; then :
  2215. ac_hi=$ac_mid
  2216. else
  2217. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2218. fi
  2219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2220. done
  2221. case $ac_lo in #((
  2222. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2223. '') ac_retval=1 ;;
  2224. esac
  2225. else
  2226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2227. /* end confdefs.h. */
  2228. $4
  2229. static long int longval () { return $2; }
  2230. static unsigned long int ulongval () { return $2; }
  2231. #include <stdio.h>
  2232. #include <stdlib.h>
  2233. int
  2234. main ()
  2235. {
  2236. FILE *f = fopen ("conftest.val", "w");
  2237. if (! f)
  2238. return 1;
  2239. if (($2) < 0)
  2240. {
  2241. long int i = longval ();
  2242. if (i != ($2))
  2243. return 1;
  2244. fprintf (f, "%ld", i);
  2245. }
  2246. else
  2247. {
  2248. unsigned long int i = ulongval ();
  2249. if (i != ($2))
  2250. return 1;
  2251. fprintf (f, "%lu", i);
  2252. }
  2253. /* Do not output a trailing newline, as this causes \r\n confusion
  2254. on some platforms. */
  2255. return ferror (f) || fclose (f) != 0;
  2256. ;
  2257. return 0;
  2258. }
  2259. _ACEOF
  2260. if ac_fn_c_try_run "$LINENO"; then :
  2261. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2262. else
  2263. ac_retval=1
  2264. fi
  2265. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2266. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2267. rm -f conftest.val
  2268. fi
  2269. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2270. as_fn_set_status $ac_retval
  2271. } # ac_fn_c_compute_int
  2272. cat >config.log <<_ACEOF
  2273. This file contains any messages produced by compilers while
  2274. running configure, to aid debugging if configure makes a mistake.
  2275. It was created by $as_me, which was
  2276. generated by GNU Autoconf 2.65. Invocation command line was
  2277. $ $0 $@
  2278. _ACEOF
  2279. exec 5>>config.log
  2280. {
  2281. cat <<_ASUNAME
  2282. ## --------- ##
  2283. ## Platform. ##
  2284. ## --------- ##
  2285. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2286. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2287. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2288. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2289. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2290. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2291. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2292. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2293. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2294. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2295. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2296. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2297. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2298. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2299. _ASUNAME
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. $as_echo "PATH: $as_dir"
  2306. done
  2307. IFS=$as_save_IFS
  2308. } >&5
  2309. cat >&5 <<_ACEOF
  2310. ## ----------- ##
  2311. ## Core tests. ##
  2312. ## ----------- ##
  2313. _ACEOF
  2314. # Keep a trace of the command line.
  2315. # Strip out --no-create and --no-recursion so they do not pile up.
  2316. # Strip out --silent because we don't want to record it for future runs.
  2317. # Also quote any args containing shell meta-characters.
  2318. # Make two passes to allow for proper duplicate-argument suppression.
  2319. ac_configure_args=
  2320. ac_configure_args0=
  2321. ac_configure_args1=
  2322. ac_must_keep_next=false
  2323. for ac_pass in 1 2
  2324. do
  2325. for ac_arg
  2326. do
  2327. case $ac_arg in
  2328. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2329. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2330. | -silent | --silent | --silen | --sile | --sil)
  2331. continue ;;
  2332. *\'*)
  2333. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2334. esac
  2335. case $ac_pass in
  2336. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2337. 2)
  2338. as_fn_append ac_configure_args1 " '$ac_arg'"
  2339. if test $ac_must_keep_next = true; then
  2340. ac_must_keep_next=false # Got value, back to normal.
  2341. else
  2342. case $ac_arg in
  2343. *=* | --config-cache | -C | -disable-* | --disable-* \
  2344. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2345. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2346. | -with-* | --with-* | -without-* | --without-* | --x)
  2347. case "$ac_configure_args0 " in
  2348. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2349. esac
  2350. ;;
  2351. -* ) ac_must_keep_next=true ;;
  2352. esac
  2353. fi
  2354. as_fn_append ac_configure_args " '$ac_arg'"
  2355. ;;
  2356. esac
  2357. done
  2358. done
  2359. { ac_configure_args0=; unset ac_configure_args0;}
  2360. { ac_configure_args1=; unset ac_configure_args1;}
  2361. # When interrupted or exit'd, cleanup temporary files, and complete
  2362. # config.log. We remove comments because anyway the quotes in there
  2363. # would cause problems or look ugly.
  2364. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2365. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2366. trap 'exit_status=$?
  2367. # Save into config.log some information that might help in debugging.
  2368. {
  2369. echo
  2370. cat <<\_ASBOX
  2371. ## ---------------- ##
  2372. ## Cache variables. ##
  2373. ## ---------------- ##
  2374. _ASBOX
  2375. echo
  2376. # The following way of writing the cache mishandles newlines in values,
  2377. (
  2378. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2379. eval ac_val=\$$ac_var
  2380. case $ac_val in #(
  2381. *${as_nl}*)
  2382. case $ac_var in #(
  2383. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2384. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2385. esac
  2386. case $ac_var in #(
  2387. _ | IFS | as_nl) ;; #(
  2388. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2389. *) { eval $ac_var=; unset $ac_var;} ;;
  2390. esac ;;
  2391. esac
  2392. done
  2393. (set) 2>&1 |
  2394. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2395. *${as_nl}ac_space=\ *)
  2396. sed -n \
  2397. "s/'\''/'\''\\\\'\'''\''/g;
  2398. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2399. ;; #(
  2400. *)
  2401. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2402. ;;
  2403. esac |
  2404. sort
  2405. )
  2406. echo
  2407. cat <<\_ASBOX
  2408. ## ----------------- ##
  2409. ## Output variables. ##
  2410. ## ----------------- ##
  2411. _ASBOX
  2412. echo
  2413. for ac_var in $ac_subst_vars
  2414. do
  2415. eval ac_val=\$$ac_var
  2416. case $ac_val in
  2417. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2418. esac
  2419. $as_echo "$ac_var='\''$ac_val'\''"
  2420. done | sort
  2421. echo
  2422. if test -n "$ac_subst_files"; then
  2423. cat <<\_ASBOX
  2424. ## ------------------- ##
  2425. ## File substitutions. ##
  2426. ## ------------------- ##
  2427. _ASBOX
  2428. echo
  2429. for ac_var in $ac_subst_files
  2430. do
  2431. eval ac_val=\$$ac_var
  2432. case $ac_val in
  2433. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2434. esac
  2435. $as_echo "$ac_var='\''$ac_val'\''"
  2436. done | sort
  2437. echo
  2438. fi
  2439. if test -s confdefs.h; then
  2440. cat <<\_ASBOX
  2441. ## ----------- ##
  2442. ## confdefs.h. ##
  2443. ## ----------- ##
  2444. _ASBOX
  2445. echo
  2446. cat confdefs.h
  2447. echo
  2448. fi
  2449. test "$ac_signal" != 0 &&
  2450. $as_echo "$as_me: caught signal $ac_signal"
  2451. $as_echo "$as_me: exit $exit_status"
  2452. } >&5
  2453. rm -f core *.core core.conftest.* &&
  2454. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2455. exit $exit_status
  2456. ' 0
  2457. for ac_signal in 1 2 13 15; do
  2458. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2459. done
  2460. ac_signal=0
  2461. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2462. rm -f -r conftest* confdefs.h
  2463. $as_echo "/* confdefs.h */" > confdefs.h
  2464. # Predefined preprocessor variables.
  2465. cat >>confdefs.h <<_ACEOF
  2466. #define PACKAGE_NAME "$PACKAGE_NAME"
  2467. _ACEOF
  2468. cat >>confdefs.h <<_ACEOF
  2469. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2470. _ACEOF
  2471. cat >>confdefs.h <<_ACEOF
  2472. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2473. _ACEOF
  2474. cat >>confdefs.h <<_ACEOF
  2475. #define PACKAGE_STRING "$PACKAGE_STRING"
  2476. _ACEOF
  2477. cat >>confdefs.h <<_ACEOF
  2478. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2479. _ACEOF
  2480. cat >>confdefs.h <<_ACEOF
  2481. #define PACKAGE_URL "$PACKAGE_URL"
  2482. _ACEOF
  2483. # Let the site file select an alternate cache file if it wants to.
  2484. # Prefer an explicitly selected file to automatically selected ones.
  2485. ac_site_file1=NONE
  2486. ac_site_file2=NONE
  2487. if test -n "$CONFIG_SITE"; then
  2488. ac_site_file1=$CONFIG_SITE
  2489. elif test "x$prefix" != xNONE; then
  2490. ac_site_file1=$prefix/share/config.site
  2491. ac_site_file2=$prefix/etc/config.site
  2492. else
  2493. ac_site_file1=$ac_default_prefix/share/config.site
  2494. ac_site_file2=$ac_default_prefix/etc/config.site
  2495. fi
  2496. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2497. do
  2498. test "x$ac_site_file" = xNONE && continue
  2499. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2501. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2502. sed 's/^/| /' "$ac_site_file" >&5
  2503. . "$ac_site_file"
  2504. fi
  2505. done
  2506. if test -r "$cache_file"; then
  2507. # Some versions of bash will fail to source /dev/null (special files
  2508. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2509. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2511. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2512. case $cache_file in
  2513. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2514. *) . "./$cache_file";;
  2515. esac
  2516. fi
  2517. else
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2519. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2520. >$cache_file
  2521. fi
  2522. # Check that the precious variables saved in the cache have kept the same
  2523. # value.
  2524. ac_cache_corrupted=false
  2525. for ac_var in $ac_precious_vars; do
  2526. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2527. eval ac_new_set=\$ac_env_${ac_var}_set
  2528. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2529. eval ac_new_val=\$ac_env_${ac_var}_value
  2530. case $ac_old_set,$ac_new_set in
  2531. set,)
  2532. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2533. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2534. ac_cache_corrupted=: ;;
  2535. ,set)
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2537. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2538. ac_cache_corrupted=: ;;
  2539. ,);;
  2540. *)
  2541. if test "x$ac_old_val" != "x$ac_new_val"; then
  2542. # differences in whitespace do not lead to failure.
  2543. ac_old_val_w=`echo x $ac_old_val`
  2544. ac_new_val_w=`echo x $ac_new_val`
  2545. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2547. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2548. ac_cache_corrupted=:
  2549. else
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2551. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2552. eval $ac_var=\$ac_old_val
  2553. fi
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2555. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2557. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2558. fi;;
  2559. esac
  2560. # Pass precious variables to config.status.
  2561. if test "$ac_new_set" = set; then
  2562. case $ac_new_val in
  2563. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2564. *) ac_arg=$ac_var=$ac_new_val ;;
  2565. esac
  2566. case " $ac_configure_args " in
  2567. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2568. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2569. esac
  2570. fi
  2571. done
  2572. if $ac_cache_corrupted; then
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2576. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2577. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2578. fi
  2579. ## -------------------- ##
  2580. ## Main body of script. ##
  2581. ## -------------------- ##
  2582. ac_ext=c
  2583. ac_cpp='$CPP $CPPFLAGS'
  2584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2587. ac_config_headers="$ac_config_headers src/config.h"
  2588. ac_aux_dir=
  2589. for ac_dir in config "$srcdir"/config; do
  2590. for ac_t in install-sh install.sh shtool; do
  2591. if test -f "$ac_dir/$ac_t"; then
  2592. ac_aux_dir=$ac_dir
  2593. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2594. break 2
  2595. fi
  2596. done
  2597. done
  2598. if test -z "$ac_aux_dir"; then
  2599. as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2600. fi
  2601. # These three variables are undocumented and unsupported,
  2602. # and are intended to be withdrawn in a future Autoconf release.
  2603. # They can cause serious problems if a builder's source tree is in a directory
  2604. # whose full name contains unusual characters.
  2605. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2606. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2607. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2609. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2610. # Check whether --enable-maintainer-mode was given.
  2611. if test "${enable_maintainer_mode+set}" = set; then :
  2612. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2613. else
  2614. USE_MAINTAINER_MODE=no
  2615. fi
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2617. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2618. if test $USE_MAINTAINER_MODE = yes; then
  2619. MAINTAINER_MODE_TRUE=
  2620. MAINTAINER_MODE_FALSE='#'
  2621. else
  2622. MAINTAINER_MODE_TRUE='#'
  2623. MAINTAINER_MODE_FALSE=
  2624. fi
  2625. MAINT=$MAINTAINER_MODE_TRUE
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
  2627. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  2628. # Check whether --with-dmalloc was given.
  2629. if test "${with_dmalloc+set}" = set; then :
  2630. withval=$with_dmalloc; if test "$withval" = yes; then
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2632. $as_echo "yes" >&6; }
  2633. $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
  2634. LIBS="$LIBS -ldmalloc"
  2635. LDFLAGS="$LDFLAGS -g"
  2636. else
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2638. $as_echo "no" >&6; }
  2639. fi
  2640. else
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2642. $as_echo "no" >&6; }
  2643. fi
  2644. MAINTAINER_AUTOGEN_VERSION=5.9.7
  2645. MAJOR_VERSION=3
  2646. MINOR_VERSION=4
  2647. MICRO_VERSION=4
  2648. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  2649. PACKAGE_URL=http://tcpreplay.synfin.net/
  2650. TCPREPLAY_RELEASE=1
  2651. $as_echo "#define PACKAGE tcpreplay" >>confdefs.h
  2652. cat >>confdefs.h <<_ACEOF
  2653. #define VERSION "$TCPREPLAY_VERSION"
  2654. _ACEOF
  2655. USER_CFLAGS=$CFLAGS
  2656. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  2657. # Make sure we can run config.sub.
  2658. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2659. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2661. $as_echo_n "checking build system type... " >&6; }
  2662. if test "${ac_cv_build+set}" = set; then :
  2663. $as_echo_n "(cached) " >&6
  2664. else
  2665. ac_build_alias=$build_alias
  2666. test "x$ac_build_alias" = x &&
  2667. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2668. test "x$ac_build_alias" = x &&
  2669. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2670. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2671. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2672. fi
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2674. $as_echo "$ac_cv_build" >&6; }
  2675. case $ac_cv_build in
  2676. *-*-*) ;;
  2677. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2678. esac
  2679. build=$ac_cv_build
  2680. ac_save_IFS=$IFS; IFS='-'
  2681. set x $ac_cv_build
  2682. shift
  2683. build_cpu=$1
  2684. build_vendor=$2
  2685. shift; shift
  2686. # Remember, the first character of IFS is used to create $*,
  2687. # except with old shells:
  2688. build_os=$*
  2689. IFS=$ac_save_IFS
  2690. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2692. $as_echo_n "checking host system type... " >&6; }
  2693. if test "${ac_cv_host+set}" = set; then :
  2694. $as_echo_n "(cached) " >&6
  2695. else
  2696. if test "x$host_alias" = x; then
  2697. ac_cv_host=$ac_cv_build
  2698. else
  2699. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2700. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2701. fi
  2702. fi
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2704. $as_echo "$ac_cv_host" >&6; }
  2705. case $ac_cv_host in
  2706. *-*-*) ;;
  2707. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2708. esac
  2709. host=$ac_cv_host
  2710. ac_save_IFS=$IFS; IFS='-'
  2711. set x $ac_cv_host
  2712. shift
  2713. host_cpu=$1
  2714. host_vendor=$2
  2715. shift; shift
  2716. # Remember, the first character of IFS is used to create $*,
  2717. # except with old shells:
  2718. host_os=$*
  2719. IFS=$ac_save_IFS
  2720. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2722. $as_echo_n "checking target system type... " >&6; }
  2723. if test "${ac_cv_target+set}" = set; then :
  2724. $as_echo_n "(cached) " >&6
  2725. else
  2726. if test "x$target_alias" = x; then
  2727. ac_cv_target=$ac_cv_host
  2728. else
  2729. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2730. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2731. fi
  2732. fi
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2734. $as_echo "$ac_cv_target" >&6; }
  2735. case $ac_cv_target in
  2736. *-*-*) ;;
  2737. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2738. esac
  2739. target=$ac_cv_target
  2740. ac_save_IFS=$IFS; IFS='-'
  2741. set x $ac_cv_target
  2742. shift
  2743. target_cpu=$1
  2744. target_vendor=$2
  2745. shift; shift
  2746. # Remember, the first character of IFS is used to create $*,
  2747. # except with old shells:
  2748. target_os=$*
  2749. IFS=$ac_save_IFS
  2750. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2751. # The aliases save the names the user supplied, while $host etc.
  2752. # will get canonicalized.
  2753. test -n "$target_alias" &&
  2754. test "$program_prefix$program_suffix$program_transform_name" = \
  2755. NONENONEs,x,x, &&
  2756. program_prefix=${target_alias}-
  2757. have_cygwin=no
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin development environment" >&5
  2759. $as_echo_n "checking for cygwin development environment... " >&6; }
  2760. if test `echo $target | grep -c cygwin` -gt 0 ; then
  2761. $as_echo "#define HAVE_WIN32 1" >>confdefs.h
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2763. $as_echo "yes" >&6; }
  2764. have_cygwin=yes
  2765. else
  2766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2767. $as_echo "no" >&6; }
  2768. fi
  2769. am__api_version='1.11'
  2770. # Find a good install program. We prefer a C program (faster),
  2771. # so one script is as good as another. But avoid the broken or
  2772. # incompatible versions:
  2773. # SysV /etc/install, /usr/sbin/install
  2774. # SunOS /usr/etc/install
  2775. # IRIX /sbin/install
  2776. # AIX /bin/install
  2777. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2778. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2779. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2780. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2781. # OS/2's system install, which has a completely different semantic
  2782. # ./install, which can be erroneously created by make from ./install.sh.
  2783. # Reject install programs that cannot install multiple files.
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2785. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2786. if test -z "$INSTALL"; then
  2787. if test "${ac_cv_path_install+set}" = set; then :
  2788. $as_echo_n "(cached) " >&6
  2789. else
  2790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2791. for as_dir in $PATH
  2792. do
  2793. IFS=$as_save_IFS
  2794. test -z "$as_dir" && as_dir=.
  2795. # Account for people who put trailing slashes in PATH elements.
  2796. case $as_dir/ in #((
  2797. ./ | .// | /[cC]/* | \
  2798. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2799. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2800. /usr/ucb/* ) ;;
  2801. *)
  2802. # OSF1 and SCO ODT 3.0 have their own names for install.
  2803. # Don't use installbsd from OSF since it installs stuff as root
  2804. # by default.
  2805. for ac_prog in ginstall scoinst install; do
  2806. for ac_exec_ext in '' $ac_executable_extensions; do
  2807. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2808. if test $ac_prog = install &&
  2809. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2810. # AIX install. It has an incompatible calling convention.
  2811. :
  2812. elif test $ac_prog = install &&
  2813. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2814. # program-specific install script used by HP pwplus--don't use.
  2815. :
  2816. else
  2817. rm -rf conftest.one conftest.two conftest.dir
  2818. echo one > conftest.one
  2819. echo two > conftest.two
  2820. mkdir conftest.dir
  2821. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2822. test -s conftest.one && test -s conftest.two &&
  2823. test -s conftest.dir/conftest.one &&
  2824. test -s conftest.dir/conftest.two
  2825. then
  2826. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2827. break 3
  2828. fi
  2829. fi
  2830. fi
  2831. done
  2832. done
  2833. ;;
  2834. esac
  2835. done
  2836. IFS=$as_save_IFS
  2837. rm -rf conftest.one conftest.two conftest.dir
  2838. fi
  2839. if test "${ac_cv_path_install+set}" = set; then
  2840. INSTALL=$ac_cv_path_install
  2841. else
  2842. # As a last resort, use the slow shell script. Don't cache a
  2843. # value for INSTALL within a source directory, because that will
  2844. # break other packages using the cache if that directory is
  2845. # removed, or if the value is a relative name.
  2846. INSTALL=$ac_install_sh
  2847. fi
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2850. $as_echo "$INSTALL" >&6; }
  2851. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2852. # It thinks the first close brace ends the variable substitution.
  2853. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2854. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2855. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2857. $as_echo_n "checking whether build environment is sane... " >&6; }
  2858. # Just in case
  2859. sleep 1
  2860. echo timestamp > conftest.file
  2861. # Reject unsafe characters in $srcdir or the absolute working directory
  2862. # name. Accept space and tab only in the latter.
  2863. am_lf='
  2864. '
  2865. case `pwd` in
  2866. *[\\\"\#\$\&\'\`$am_lf]*)
  2867. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2868. esac
  2869. case $srcdir in
  2870. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2871. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2872. esac
  2873. # Do `set' in a subshell so we don't clobber the current shell's
  2874. # arguments. Must try -L first in case configure is actually a
  2875. # symlink; some systems play weird games with the mod time of symlinks
  2876. # (eg FreeBSD returns the mod time of the symlink's containing
  2877. # directory).
  2878. if (
  2879. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2880. if test "$*" = "X"; then
  2881. # -L didn't work.
  2882. set X `ls -t "$srcdir/configure" conftest.file`
  2883. fi
  2884. rm -f conftest.file
  2885. if test "$*" != "X $srcdir/configure conftest.file" \
  2886. && test "$*" != "X conftest.file $srcdir/configure"; then
  2887. # If neither matched, then we have a broken ls. This can happen
  2888. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2889. # broken ls alias from the environment. This has actually
  2890. # happened. Such a system could not be considered "sane".
  2891. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2892. alias in your environment" "$LINENO" 5
  2893. fi
  2894. test "$2" = conftest.file
  2895. )
  2896. then
  2897. # Ok.
  2898. :
  2899. else
  2900. as_fn_error "newly created file is older than distributed files!
  2901. Check your system clock" "$LINENO" 5
  2902. fi
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2904. $as_echo "yes" >&6; }
  2905. test "$program_prefix" != NONE &&
  2906. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2907. # Use a double $ so make ignores it.
  2908. test "$program_suffix" != NONE &&
  2909. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2910. # Double any \ or $.
  2911. # By default was `s,x,x', remove it if useless.
  2912. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2913. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2914. # expand $ac_aux_dir to an absolute path
  2915. am_aux_dir=`cd $ac_aux_dir && pwd`
  2916. if test x"${MISSING+set}" != xset; then
  2917. case $am_aux_dir in
  2918. *\ * | *\ *)
  2919. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2920. *)
  2921. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2922. esac
  2923. fi
  2924. # Use eval to expand $SHELL
  2925. if eval "$MISSING --run true"; then
  2926. am_missing_run="$MISSING --run "
  2927. else
  2928. am_missing_run=
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2930. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2931. fi
  2932. if test x"${install_sh}" != xset; then
  2933. case $am_aux_dir in
  2934. *\ * | *\ *)
  2935. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2936. *)
  2937. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2938. esac
  2939. fi
  2940. # Installed binaries are usually stripped using `strip' when the user
  2941. # run `make install-strip'. However `strip' might not be the right
  2942. # tool to use in cross-compilation environments, therefore Automake
  2943. # will honor the `STRIP' environment variable to overrule this program.
  2944. if test "$cross_compiling" != no; then
  2945. if test -n "$ac_tool_prefix"; then
  2946. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2947. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2949. $as_echo_n "checking for $ac_word... " >&6; }
  2950. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2951. $as_echo_n "(cached) " >&6
  2952. else
  2953. if test -n "$STRIP"; then
  2954. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2955. else
  2956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2957. for as_dir in $PATH
  2958. do
  2959. IFS=$as_save_IFS
  2960. test -z "$as_dir" && as_dir=.
  2961. for ac_exec_ext in '' $ac_executable_extensions; do
  2962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2963. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2965. break 2
  2966. fi
  2967. done
  2968. done
  2969. IFS=$as_save_IFS
  2970. fi
  2971. fi
  2972. STRIP=$ac_cv_prog_STRIP
  2973. if test -n "$STRIP"; then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2975. $as_echo "$STRIP" >&6; }
  2976. else
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2978. $as_echo "no" >&6; }
  2979. fi
  2980. fi
  2981. if test -z "$ac_cv_prog_STRIP"; then
  2982. ac_ct_STRIP=$STRIP
  2983. # Extract the first word of "strip", so it can be a program name with args.
  2984. set dummy strip; ac_word=$2
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2986. $as_echo_n "checking for $ac_word... " >&6; }
  2987. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2988. $as_echo_n "(cached) " >&6
  2989. else
  2990. if test -n "$ac_ct_STRIP"; then
  2991. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2992. else
  2993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2994. for as_dir in $PATH
  2995. do
  2996. IFS=$as_save_IFS
  2997. test -z "$as_dir" && as_dir=.
  2998. for ac_exec_ext in '' $ac_executable_extensions; do
  2999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3000. ac_cv_prog_ac_ct_STRIP="strip"
  3001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3002. break 2
  3003. fi
  3004. done
  3005. done
  3006. IFS=$as_save_IFS
  3007. fi
  3008. fi
  3009. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3010. if test -n "$ac_ct_STRIP"; then
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3012. $as_echo "$ac_ct_STRIP" >&6; }
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3015. $as_echo "no" >&6; }
  3016. fi
  3017. if test "x$ac_ct_STRIP" = x; then
  3018. STRIP=":"
  3019. else
  3020. case $cross_compiling:$ac_tool_warned in
  3021. yes:)
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3024. ac_tool_warned=yes ;;
  3025. esac
  3026. STRIP=$ac_ct_STRIP
  3027. fi
  3028. else
  3029. STRIP="$ac_cv_prog_STRIP"
  3030. fi
  3031. fi
  3032. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3034. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3035. if test -z "$MKDIR_P"; then
  3036. if test "${ac_cv_path_mkdir+set}" = set; then :
  3037. $as_echo_n "(cached) " >&6
  3038. else
  3039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3040. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3041. do
  3042. IFS=$as_save_IFS
  3043. test -z "$as_dir" && as_dir=.
  3044. for ac_prog in mkdir gmkdir; do
  3045. for ac_exec_ext in '' $ac_executable_extensions; do
  3046. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3047. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3048. 'mkdir (GNU coreutils) '* | \
  3049. 'mkdir (coreutils) '* | \
  3050. 'mkdir (fileutils) '4.1*)
  3051. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3052. break 3;;
  3053. esac
  3054. done
  3055. done
  3056. done
  3057. IFS=$as_save_IFS
  3058. fi
  3059. test -d ./--version && rmdir ./--version
  3060. if test "${ac_cv_path_mkdir+set}" = set; then
  3061. MKDIR_P="$ac_cv_path_mkdir -p"
  3062. else
  3063. # As a last resort, use the slow shell script. Don't cache a
  3064. # value for MKDIR_P within a source directory, because that will
  3065. # break other packages using the cache if that directory is
  3066. # removed, or if the value is a relative name.
  3067. MKDIR_P="$ac_install_sh -d"
  3068. fi
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3071. $as_echo "$MKDIR_P" >&6; }
  3072. mkdir_p="$MKDIR_P"
  3073. case $mkdir_p in
  3074. [\\/$]* | ?:[\\/]*) ;;
  3075. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3076. esac
  3077. for ac_prog in gawk mawk nawk awk
  3078. do
  3079. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3080. set dummy $ac_prog; ac_word=$2
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3082. $as_echo_n "checking for $ac_word... " >&6; }
  3083. if test "${ac_cv_prog_AWK+set}" = set; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. if test -n "$AWK"; then
  3087. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3088. else
  3089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3090. for as_dir in $PATH
  3091. do
  3092. IFS=$as_save_IFS
  3093. test -z "$as_dir" && as_dir=.
  3094. for ac_exec_ext in '' $ac_executable_extensions; do
  3095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3096. ac_cv_prog_AWK="$ac_prog"
  3097. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3098. break 2
  3099. fi
  3100. done
  3101. done
  3102. IFS=$as_save_IFS
  3103. fi
  3104. fi
  3105. AWK=$ac_cv_prog_AWK
  3106. if test -n "$AWK"; then
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3108. $as_echo "$AWK" >&6; }
  3109. else
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3111. $as_echo "no" >&6; }
  3112. fi
  3113. test -n "$AWK" && break
  3114. done
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3116. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3117. set x ${MAKE-make}
  3118. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3119. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3120. $as_echo_n "(cached) " >&6
  3121. else
  3122. cat >conftest.make <<\_ACEOF
  3123. SHELL = /bin/sh
  3124. all:
  3125. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3126. _ACEOF
  3127. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3128. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3129. *@@@%%%=?*=@@@%%%*)
  3130. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3131. *)
  3132. eval ac_cv_prog_make_${ac_make}_set=no;;
  3133. esac
  3134. rm -f conftest.make
  3135. fi
  3136. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3138. $as_echo "yes" >&6; }
  3139. SET_MAKE=
  3140. else
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3142. $as_echo "no" >&6; }
  3143. SET_MAKE="MAKE=${MAKE-make}"
  3144. fi
  3145. rm -rf .tst 2>/dev/null
  3146. mkdir .tst 2>/dev/null
  3147. if test -d .tst; then
  3148. am__leading_dot=.
  3149. else
  3150. am__leading_dot=_
  3151. fi
  3152. rmdir .tst 2>/dev/null
  3153. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3154. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3155. # is not polluted with repeated "-I."
  3156. am__isrc=' -I$(srcdir)'
  3157. # test to see if srcdir already configured
  3158. if test -f $srcdir/config.status; then
  3159. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3160. fi
  3161. fi
  3162. # test whether we have cygpath
  3163. if test -z "$CYGPATH_W"; then
  3164. if (cygpath --version) >/dev/null 2>/dev/null; then
  3165. CYGPATH_W='cygpath -w'
  3166. else
  3167. CYGPATH_W=echo
  3168. fi
  3169. fi
  3170. # Define the identity of the package.
  3171. PACKAGE=tcpreplay
  3172. VERSION=$TCPREPLAY_VERSION
  3173. # Some tools Automake needs.
  3174. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3175. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3176. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3177. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3178. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3179. # We need awk for the "check" target. The system "awk" is bad on
  3180. # some platforms.
  3181. # Always define AMTAR for backward compatibility.
  3182. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3183. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3184. case `pwd` in
  3185. *\ * | *\ *)
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3187. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3188. esac
  3189. macro_version='2.2.6b'
  3190. macro_revision='1.3017'
  3191. ltmain="$ac_aux_dir/ltmain.sh"
  3192. DEPDIR="${am__leading_dot}deps"
  3193. ac_config_commands="$ac_config_commands depfiles"
  3194. am_make=${MAKE-make}
  3195. cat > confinc << 'END'
  3196. am__doit:
  3197. @echo this is the am__doit target
  3198. .PHONY: am__doit
  3199. END
  3200. # If we don't find an include directive, just comment out the code.
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3202. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3203. am__include="#"
  3204. am__quote=
  3205. _am_result=none
  3206. # First try GNU make style include.
  3207. echo "include confinc" > confmf
  3208. # Ignore all kinds of additional output from `make'.
  3209. case `$am_make -s -f confmf 2> /dev/null` in #(
  3210. *the\ am__doit\ target*)
  3211. am__include=include
  3212. am__quote=
  3213. _am_result=GNU
  3214. ;;
  3215. esac
  3216. # Now try BSD make style include.
  3217. if test "$am__include" = "#"; then
  3218. echo '.include "confinc"' > confmf
  3219. case `$am_make -s -f confmf 2> /dev/null` in #(
  3220. *the\ am__doit\ target*)
  3221. am__include=.include
  3222. am__quote="\""
  3223. _am_result=BSD
  3224. ;;
  3225. esac
  3226. fi
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3228. $as_echo "$_am_result" >&6; }
  3229. rm -f confinc confmf
  3230. # Check whether --enable-dependency-tracking was given.
  3231. if test "${enable_dependency_tracking+set}" = set; then :
  3232. enableval=$enable_dependency_tracking;
  3233. fi
  3234. if test "x$enable_dependency_tracking" != xno; then
  3235. am_depcomp="$ac_aux_dir/depcomp"
  3236. AMDEPBACKSLASH='\'
  3237. fi
  3238. if test "x$enable_dependency_tracking" != xno; then
  3239. AMDEP_TRUE=
  3240. AMDEP_FALSE='#'
  3241. else
  3242. AMDEP_TRUE='#'
  3243. AMDEP_FALSE=
  3244. fi
  3245. ac_ext=c
  3246. ac_cpp='$CPP $CPPFLAGS'
  3247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3250. if test -n "$ac_tool_prefix"; then
  3251. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3252. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3254. $as_echo_n "checking for $ac_word... " >&6; }
  3255. if test "${ac_cv_prog_CC+set}" = set; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. if test -n "$CC"; then
  3259. ac_cv_prog_CC="$CC" # Let the user override the test.
  3260. else
  3261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3262. for as_dir in $PATH
  3263. do
  3264. IFS=$as_save_IFS
  3265. test -z "$as_dir" && as_dir=.
  3266. for ac_exec_ext in '' $ac_executable_extensions; do
  3267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3268. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3270. break 2
  3271. fi
  3272. done
  3273. done
  3274. IFS=$as_save_IFS
  3275. fi
  3276. fi
  3277. CC=$ac_cv_prog_CC
  3278. if test -n "$CC"; then
  3279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3280. $as_echo "$CC" >&6; }
  3281. else
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3283. $as_echo "no" >&6; }
  3284. fi
  3285. fi
  3286. if test -z "$ac_cv_prog_CC"; then
  3287. ac_ct_CC=$CC
  3288. # Extract the first word of "gcc", so it can be a program name with args.
  3289. set dummy gcc; ac_word=$2
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3291. $as_echo_n "checking for $ac_word... " >&6; }
  3292. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3293. $as_echo_n "(cached) " >&6
  3294. else
  3295. if test -n "$ac_ct_CC"; then
  3296. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3297. else
  3298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3299. for as_dir in $PATH
  3300. do
  3301. IFS=$as_save_IFS
  3302. test -z "$as_dir" && as_dir=.
  3303. for ac_exec_ext in '' $ac_executable_extensions; do
  3304. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3305. ac_cv_prog_ac_ct_CC="gcc"
  3306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3307. break 2
  3308. fi
  3309. done
  3310. done
  3311. IFS=$as_save_IFS
  3312. fi
  3313. fi
  3314. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3315. if test -n "$ac_ct_CC"; then
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3317. $as_echo "$ac_ct_CC" >&6; }
  3318. else
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3320. $as_echo "no" >&6; }
  3321. fi
  3322. if test "x$ac_ct_CC" = x; then
  3323. CC=""
  3324. else
  3325. case $cross_compiling:$ac_tool_warned in
  3326. yes:)
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3328. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3329. ac_tool_warned=yes ;;
  3330. esac
  3331. CC=$ac_ct_CC
  3332. fi
  3333. else
  3334. CC="$ac_cv_prog_CC"
  3335. fi
  3336. if test -z "$CC"; then
  3337. if test -n "$ac_tool_prefix"; then
  3338. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3339. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3341. $as_echo_n "checking for $ac_word... " >&6; }
  3342. if test "${ac_cv_prog_CC+set}" = set; then :
  3343. $as_echo_n "(cached) " >&6
  3344. else
  3345. if test -n "$CC"; then
  3346. ac_cv_prog_CC="$CC" # Let the user override the test.
  3347. else
  3348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3349. for as_dir in $PATH
  3350. do
  3351. IFS=$as_save_IFS
  3352. test -z "$as_dir" && as_dir=.
  3353. for ac_exec_ext in '' $ac_executable_extensions; do
  3354. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3355. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3357. break 2
  3358. fi
  3359. done
  3360. done
  3361. IFS=$as_save_IFS
  3362. fi
  3363. fi
  3364. CC=$ac_cv_prog_CC
  3365. if test -n "$CC"; then
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3367. $as_echo "$CC" >&6; }
  3368. else
  3369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3370. $as_echo "no" >&6; }
  3371. fi
  3372. fi
  3373. fi
  3374. if test -z "$CC"; then
  3375. # Extract the first word of "cc", so it can be a program name with args.
  3376. set dummy cc; ac_word=$2
  3377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3378. $as_echo_n "checking for $ac_word... " >&6; }
  3379. if test "${ac_cv_prog_CC+set}" = set; then :
  3380. $as_echo_n "(cached) " >&6
  3381. else
  3382. if test -n "$CC"; then
  3383. ac_cv_prog_CC="$CC" # Let the user override the test.
  3384. else
  3385. ac_prog_rejected=no
  3386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3387. for as_dir in $PATH
  3388. do
  3389. IFS=$as_save_IFS
  3390. test -z "$as_dir" && as_dir=.
  3391. for ac_exec_ext in '' $ac_executable_extensions; do
  3392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3393. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3394. ac_prog_rejected=yes
  3395. continue
  3396. fi
  3397. ac_cv_prog_CC="cc"
  3398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3399. break 2
  3400. fi
  3401. done
  3402. done
  3403. IFS=$as_save_IFS
  3404. if test $ac_prog_rejected = yes; then
  3405. # We found a bogon in the path, so make sure we never use it.
  3406. set dummy $ac_cv_prog_CC
  3407. shift
  3408. if test $# != 0; then
  3409. # We chose a different compiler from the bogus one.
  3410. # However, it has the same basename, so the bogon will be chosen
  3411. # first if we set CC to just the basename; use the full file name.
  3412. shift
  3413. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3414. fi
  3415. fi
  3416. fi
  3417. fi
  3418. CC=$ac_cv_prog_CC
  3419. if test -n "$CC"; then
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3421. $as_echo "$CC" >&6; }
  3422. else
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3424. $as_echo "no" >&6; }
  3425. fi
  3426. fi
  3427. if test -z "$CC"; then
  3428. if test -n "$ac_tool_prefix"; then
  3429. for ac_prog in cl.exe
  3430. do
  3431. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3432. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3434. $as_echo_n "checking for $ac_word... " >&6; }
  3435. if test "${ac_cv_prog_CC+set}" = set; then :
  3436. $as_echo_n "(cached) " >&6
  3437. else
  3438. if test -n "$CC"; then
  3439. ac_cv_prog_CC="$CC" # Let the user override the test.
  3440. else
  3441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3442. for as_dir in $PATH
  3443. do
  3444. IFS=$as_save_IFS
  3445. test -z "$as_dir" && as_dir=.
  3446. for ac_exec_ext in '' $ac_executable_extensions; do
  3447. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3448. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3450. break 2
  3451. fi
  3452. done
  3453. done
  3454. IFS=$as_save_IFS
  3455. fi
  3456. fi
  3457. CC=$ac_cv_prog_CC
  3458. if test -n "$CC"; then
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3460. $as_echo "$CC" >&6; }
  3461. else
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3463. $as_echo "no" >&6; }
  3464. fi
  3465. test -n "$CC" && break
  3466. done
  3467. fi
  3468. if test -z "$CC"; then
  3469. ac_ct_CC=$CC
  3470. for ac_prog in cl.exe
  3471. do
  3472. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3473. set dummy $ac_prog; ac_word=$2
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3475. $as_echo_n "checking for $ac_word... " >&6; }
  3476. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. if test -n "$ac_ct_CC"; then
  3480. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. test -z "$as_dir" && as_dir=.
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3489. ac_cv_prog_ac_ct_CC="$ac_prog"
  3490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3491. break 2
  3492. fi
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. fi
  3497. fi
  3498. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3499. if test -n "$ac_ct_CC"; then
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3501. $as_echo "$ac_ct_CC" >&6; }
  3502. else
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3504. $as_echo "no" >&6; }
  3505. fi
  3506. test -n "$ac_ct_CC" && break
  3507. done
  3508. if test "x$ac_ct_CC" = x; then
  3509. CC=""
  3510. else
  3511. case $cross_compiling:$ac_tool_warned in
  3512. yes:)
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3514. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3515. ac_tool_warned=yes ;;
  3516. esac
  3517. CC=$ac_ct_CC
  3518. fi
  3519. fi
  3520. fi
  3521. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3522. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3523. as_fn_error "no acceptable C compiler found in \$PATH
  3524. See \`config.log' for more details." "$LINENO" 5; }
  3525. # Provide some information about the compiler.
  3526. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3527. set X $ac_compile
  3528. ac_compiler=$2
  3529. for ac_option in --version -v -V -qversion; do
  3530. { { ac_try="$ac_compiler $ac_option >&5"
  3531. case "(($ac_try" in
  3532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3533. *) ac_try_echo=$ac_try;;
  3534. esac
  3535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3536. $as_echo "$ac_try_echo"; } >&5
  3537. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3538. ac_status=$?
  3539. if test -s conftest.err; then
  3540. sed '10a\
  3541. ... rest of stderr output deleted ...
  3542. 10q' conftest.err >conftest.er1
  3543. cat conftest.er1 >&5
  3544. fi
  3545. rm -f conftest.er1 conftest.err
  3546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3547. test $ac_status = 0; }
  3548. done
  3549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3550. /* end confdefs.h. */
  3551. int
  3552. main ()
  3553. {
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. ac_clean_files_save=$ac_clean_files
  3559. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3560. # Try to create an executable without -o first, disregard a.out.
  3561. # It will help us diagnose broken compilers, and finding out an intuition
  3562. # of exeext.
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3564. $as_echo_n "checking whether the C compiler works... " >&6; }
  3565. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3566. # The possible output files:
  3567. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3568. ac_rmfiles=
  3569. for ac_file in $ac_files
  3570. do
  3571. case $ac_file in
  3572. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3573. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3574. esac
  3575. done
  3576. rm -f $ac_rmfiles
  3577. if { { ac_try="$ac_link_default"
  3578. case "(($ac_try" in
  3579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3580. *) ac_try_echo=$ac_try;;
  3581. esac
  3582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3583. $as_echo "$ac_try_echo"; } >&5
  3584. (eval "$ac_link_default") 2>&5
  3585. ac_status=$?
  3586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3587. test $ac_status = 0; }; then :
  3588. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3589. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3590. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3591. # so that the user can short-circuit this test for compilers unknown to
  3592. # Autoconf.
  3593. for ac_file in $ac_files ''
  3594. do
  3595. test -f "$ac_file" || continue
  3596. case $ac_file in
  3597. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3598. ;;
  3599. [ab].out )
  3600. # We found the default executable, but exeext='' is most
  3601. # certainly right.
  3602. break;;
  3603. *.* )
  3604. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3605. then :; else
  3606. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3607. fi
  3608. # We set ac_cv_exeext here because the later test for it is not
  3609. # safe: cross compilers may not add the suffix if given an `-o'
  3610. # argument, so we may need to know it at that point already.
  3611. # Even if this section looks crufty: it has the advantage of
  3612. # actually working.
  3613. break;;
  3614. * )
  3615. break;;
  3616. esac
  3617. done
  3618. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3619. else
  3620. ac_file=''
  3621. fi
  3622. if test -z "$ac_file"; then :
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3624. $as_echo "no" >&6; }
  3625. $as_echo "$as_me: failed program was:" >&5
  3626. sed 's/^/| /' conftest.$ac_ext >&5
  3627. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3628. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3629. { as_fn_set_status 77
  3630. as_fn_error "C compiler cannot create executables
  3631. See \`config.log' for more details." "$LINENO" 5; }; }
  3632. else
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3634. $as_echo "yes" >&6; }
  3635. fi
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3637. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3639. $as_echo "$ac_file" >&6; }
  3640. ac_exeext=$ac_cv_exeext
  3641. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3642. ac_clean_files=$ac_clean_files_save
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3644. $as_echo_n "checking for suffix of executables... " >&6; }
  3645. if { { ac_try="$ac_link"
  3646. case "(($ac_try" in
  3647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3648. *) ac_try_echo=$ac_try;;
  3649. esac
  3650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3651. $as_echo "$ac_try_echo"; } >&5
  3652. (eval "$ac_link") 2>&5
  3653. ac_status=$?
  3654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3655. test $ac_status = 0; }; then :
  3656. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3657. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3658. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3659. # `rm'.
  3660. for ac_file in conftest.exe conftest conftest.*; do
  3661. test -f "$ac_file" || continue
  3662. case $ac_file in
  3663. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3664. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3665. break;;
  3666. * ) break;;
  3667. esac
  3668. done
  3669. else
  3670. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3671. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3672. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3673. See \`config.log' for more details." "$LINENO" 5; }
  3674. fi
  3675. rm -f conftest conftest$ac_cv_exeext
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3677. $as_echo "$ac_cv_exeext" >&6; }
  3678. rm -f conftest.$ac_ext
  3679. EXEEXT=$ac_cv_exeext
  3680. ac_exeext=$EXEEXT
  3681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3682. /* end confdefs.h. */
  3683. #include <stdio.h>
  3684. int
  3685. main ()
  3686. {
  3687. FILE *f = fopen ("conftest.out", "w");
  3688. return ferror (f) || fclose (f) != 0;
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. ac_clean_files="$ac_clean_files conftest.out"
  3694. # Check that the compiler produces executables we can run. If not, either
  3695. # the compiler is broken, or we cross compile.
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3697. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3698. if test "$cross_compiling" != yes; then
  3699. { { ac_try="$ac_link"
  3700. case "(($ac_try" in
  3701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3702. *) ac_try_echo=$ac_try;;
  3703. esac
  3704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3705. $as_echo "$ac_try_echo"; } >&5
  3706. (eval "$ac_link") 2>&5
  3707. ac_status=$?
  3708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3709. test $ac_status = 0; }
  3710. if { ac_try='./conftest$ac_cv_exeext'
  3711. { { case "(($ac_try" in
  3712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3713. *) ac_try_echo=$ac_try;;
  3714. esac
  3715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3716. $as_echo "$ac_try_echo"; } >&5
  3717. (eval "$ac_try") 2>&5
  3718. ac_status=$?
  3719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3720. test $ac_status = 0; }; }; then
  3721. cross_compiling=no
  3722. else
  3723. if test "$cross_compiling" = maybe; then
  3724. cross_compiling=yes
  3725. else
  3726. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3728. as_fn_error "cannot run C compiled programs.
  3729. If you meant to cross compile, use \`--host'.
  3730. See \`config.log' for more details." "$LINENO" 5; }
  3731. fi
  3732. fi
  3733. fi
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3735. $as_echo "$cross_compiling" >&6; }
  3736. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3737. ac_clean_files=$ac_clean_files_save
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3739. $as_echo_n "checking for suffix of object files... " >&6; }
  3740. if test "${ac_cv_objext+set}" = set; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3744. /* end confdefs.h. */
  3745. int
  3746. main ()
  3747. {
  3748. ;
  3749. return 0;
  3750. }
  3751. _ACEOF
  3752. rm -f conftest.o conftest.obj
  3753. if { { ac_try="$ac_compile"
  3754. case "(($ac_try" in
  3755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3756. *) ac_try_echo=$ac_try;;
  3757. esac
  3758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3759. $as_echo "$ac_try_echo"; } >&5
  3760. (eval "$ac_compile") 2>&5
  3761. ac_status=$?
  3762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3763. test $ac_status = 0; }; then :
  3764. for ac_file in conftest.o conftest.obj conftest.*; do
  3765. test -f "$ac_file" || continue;
  3766. case $ac_file in
  3767. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3768. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3769. break;;
  3770. esac
  3771. done
  3772. else
  3773. $as_echo "$as_me: failed program was:" >&5
  3774. sed 's/^/| /' conftest.$ac_ext >&5
  3775. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3776. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3777. as_fn_error "cannot compute suffix of object files: cannot compile
  3778. See \`config.log' for more details." "$LINENO" 5; }
  3779. fi
  3780. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3781. fi
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3783. $as_echo "$ac_cv_objext" >&6; }
  3784. OBJEXT=$ac_cv_objext
  3785. ac_objext=$OBJEXT
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3787. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3788. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3789. $as_echo_n "(cached) " >&6
  3790. else
  3791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3792. /* end confdefs.h. */
  3793. int
  3794. main ()
  3795. {
  3796. #ifndef __GNUC__
  3797. choke me
  3798. #endif
  3799. ;
  3800. return 0;
  3801. }
  3802. _ACEOF
  3803. if ac_fn_c_try_compile "$LINENO"; then :
  3804. ac_compiler_gnu=yes
  3805. else
  3806. ac_compiler_gnu=no
  3807. fi
  3808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3809. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3810. fi
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3812. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3813. if test $ac_compiler_gnu = yes; then
  3814. GCC=yes
  3815. else
  3816. GCC=
  3817. fi
  3818. ac_test_CFLAGS=${CFLAGS+set}
  3819. ac_save_CFLAGS=$CFLAGS
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3821. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3822. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. ac_save_c_werror_flag=$ac_c_werror_flag
  3826. ac_c_werror_flag=yes
  3827. ac_cv_prog_cc_g=no
  3828. CFLAGS="-g"
  3829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3830. /* end confdefs.h. */
  3831. int
  3832. main ()
  3833. {
  3834. ;
  3835. return 0;
  3836. }
  3837. _ACEOF
  3838. if ac_fn_c_try_compile "$LINENO"; then :
  3839. ac_cv_prog_cc_g=yes
  3840. else
  3841. CFLAGS=""
  3842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3843. /* end confdefs.h. */
  3844. int
  3845. main ()
  3846. {
  3847. ;
  3848. return 0;
  3849. }
  3850. _ACEOF
  3851. if ac_fn_c_try_compile "$LINENO"; then :
  3852. else
  3853. ac_c_werror_flag=$ac_save_c_werror_flag
  3854. CFLAGS="-g"
  3855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3856. /* end confdefs.h. */
  3857. int
  3858. main ()
  3859. {
  3860. ;
  3861. return 0;
  3862. }
  3863. _ACEOF
  3864. if ac_fn_c_try_compile "$LINENO"; then :
  3865. ac_cv_prog_cc_g=yes
  3866. fi
  3867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3868. fi
  3869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3870. fi
  3871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3872. ac_c_werror_flag=$ac_save_c_werror_flag
  3873. fi
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3875. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3876. if test "$ac_test_CFLAGS" = set; then
  3877. CFLAGS=$ac_save_CFLAGS
  3878. elif test $ac_cv_prog_cc_g = yes; then
  3879. if test "$GCC" = yes; then
  3880. CFLAGS="-g -O2"
  3881. else
  3882. CFLAGS="-g"
  3883. fi
  3884. else
  3885. if test "$GCC" = yes; then
  3886. CFLAGS="-O2"
  3887. else
  3888. CFLAGS=
  3889. fi
  3890. fi
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3892. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3893. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3894. $as_echo_n "(cached) " >&6
  3895. else
  3896. ac_cv_prog_cc_c89=no
  3897. ac_save_CC=$CC
  3898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3899. /* end confdefs.h. */
  3900. #include <stdarg.h>
  3901. #include <stdio.h>
  3902. #include <sys/types.h>
  3903. #include <sys/stat.h>
  3904. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3905. struct buf { int x; };
  3906. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3907. static char *e (p, i)
  3908. char **p;
  3909. int i;
  3910. {
  3911. return p[i];
  3912. }
  3913. static char *f (char * (*g) (char **, int), char **p, ...)
  3914. {
  3915. char *s;
  3916. va_list v;
  3917. va_start (v,p);
  3918. s = g (p, va_arg (v,int));
  3919. va_end (v);
  3920. return s;
  3921. }
  3922. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3923. function prototypes and stuff, but not '\xHH' hex character constants.
  3924. These don't provoke an error unfortunately, instead are silently treated
  3925. as 'x'. The following induces an error, until -std is added to get
  3926. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3927. array size at least. It's necessary to write '\x00'==0 to get something
  3928. that's true only with -std. */
  3929. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3930. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3931. inside strings and character constants. */
  3932. #define FOO(x) 'x'
  3933. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3934. int test (int i, double x);
  3935. struct s1 {int (*f) (int a);};
  3936. struct s2 {int (*f) (double a);};
  3937. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3938. int argc;
  3939. char **argv;
  3940. int
  3941. main ()
  3942. {
  3943. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3949. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3950. do
  3951. CC="$ac_save_CC $ac_arg"
  3952. if ac_fn_c_try_compile "$LINENO"; then :
  3953. ac_cv_prog_cc_c89=$ac_arg
  3954. fi
  3955. rm -f core conftest.err conftest.$ac_objext
  3956. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3957. done
  3958. rm -f conftest.$ac_ext
  3959. CC=$ac_save_CC
  3960. fi
  3961. # AC_CACHE_VAL
  3962. case "x$ac_cv_prog_cc_c89" in
  3963. x)
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3965. $as_echo "none needed" >&6; } ;;
  3966. xno)
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3968. $as_echo "unsupported" >&6; } ;;
  3969. *)
  3970. CC="$CC $ac_cv_prog_cc_c89"
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3972. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3973. esac
  3974. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3975. fi
  3976. ac_ext=c
  3977. ac_cpp='$CPP $CPPFLAGS'
  3978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3981. depcc="$CC" am_compiler_list=
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3983. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3984. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3985. $as_echo_n "(cached) " >&6
  3986. else
  3987. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3988. # We make a subdir and do the tests there. Otherwise we can end up
  3989. # making bogus files that we don't know about and never remove. For
  3990. # instance it was reported that on HP-UX the gcc test will end up
  3991. # making a dummy file named `D' -- because `-MD' means `put the output
  3992. # in D'.
  3993. mkdir conftest.dir
  3994. # Copy depcomp to subdir because otherwise we won't find it if we're
  3995. # using a relative directory.
  3996. cp "$am_depcomp" conftest.dir
  3997. cd conftest.dir
  3998. # We will build objects and dependencies in a subdirectory because
  3999. # it helps to detect inapplicable dependency modes. For instance
  4000. # both Tru64's cc and ICC support -MD to output dependencies as a
  4001. # side effect of compilation, but ICC will put the dependencies in
  4002. # the current directory while Tru64 will put them in the object
  4003. # directory.
  4004. mkdir sub
  4005. am_cv_CC_dependencies_compiler_type=none
  4006. if test "$am_compiler_list" = ""; then
  4007. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4008. fi
  4009. am__universal=false
  4010. case " $depcc " in #(
  4011. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4012. esac
  4013. for depmode in $am_compiler_list; do
  4014. # Setup a source with many dependencies, because some compilers
  4015. # like to wrap large dependency lists on column 80 (with \), and
  4016. # we should not choose a depcomp mode which is confused by this.
  4017. #
  4018. # We need to recreate these files for each test, as the compiler may
  4019. # overwrite some of them when testing with obscure command lines.
  4020. # This happens at least with the AIX C compiler.
  4021. : > sub/conftest.c
  4022. for i in 1 2 3 4 5 6; do
  4023. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4024. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4025. # Solaris 8's {/usr,}/bin/sh.
  4026. touch sub/conftst$i.h
  4027. done
  4028. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4029. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4030. # mode. It turns out that the SunPro C++ compiler does not properly
  4031. # handle `-M -o', and we need to detect this. Also, some Intel
  4032. # versions had trouble with output in subdirs
  4033. am__obj=sub/conftest.${OBJEXT-o}
  4034. am__minus_obj="-o $am__obj"
  4035. case $depmode in
  4036. gcc)
  4037. # This depmode causes a compiler race in universal mode.
  4038. test "$am__universal" = false || continue
  4039. ;;
  4040. nosideeffect)
  4041. # after this tag, mechanisms are not by side-effect, so they'll
  4042. # only be used when explicitly requested
  4043. if test "x$enable_dependency_tracking" = xyes; then
  4044. continue
  4045. else
  4046. break
  4047. fi
  4048. ;;
  4049. msvisualcpp | msvcmsys)
  4050. # This compiler won't grok `-c -o', but also, the minuso test has
  4051. # not run yet. These depmodes are late enough in the game, and
  4052. # so weak that their functioning should not be impacted.
  4053. am__obj=conftest.${OBJEXT-o}
  4054. am__minus_obj=
  4055. ;;
  4056. none) break ;;
  4057. esac
  4058. if depmode=$depmode \
  4059. source=sub/conftest.c object=$am__obj \
  4060. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4061. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4062. >/dev/null 2>conftest.err &&
  4063. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4064. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4065. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4066. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4067. # icc doesn't choke on unknown options, it will just issue warnings
  4068. # or remarks (even with -Werror). So we grep stderr for any message
  4069. # that says an option was ignored or not supported.
  4070. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4071. # icc: Command line warning: ignoring option '-M'; no argument required
  4072. # The diagnosis changed in icc 8.0:
  4073. # icc: Command line remark: option '-MP' not supported
  4074. if (grep 'ignoring option' conftest.err ||
  4075. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4076. am_cv_CC_dependencies_compiler_type=$depmode
  4077. break
  4078. fi
  4079. fi
  4080. done
  4081. cd ..
  4082. rm -rf conftest.dir
  4083. else
  4084. am_cv_CC_dependencies_compiler_type=none
  4085. fi
  4086. fi
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4088. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4089. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4090. if
  4091. test "x$enable_dependency_tracking" != xno \
  4092. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4093. am__fastdepCC_TRUE=
  4094. am__fastdepCC_FALSE='#'
  4095. else
  4096. am__fastdepCC_TRUE='#'
  4097. am__fastdepCC_FALSE=
  4098. fi
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4100. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4101. if test "${ac_cv_path_SED+set}" = set; then :
  4102. $as_echo_n "(cached) " >&6
  4103. else
  4104. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4105. for ac_i in 1 2 3 4 5 6 7; do
  4106. ac_script="$ac_script$as_nl$ac_script"
  4107. done
  4108. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4109. { ac_script=; unset ac_script;}
  4110. if test -z "$SED"; then
  4111. ac_path_SED_found=false
  4112. # Loop through the user's path and test for each of PROGNAME-LIST
  4113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4114. for as_dir in $PATH
  4115. do
  4116. IFS=$as_save_IFS
  4117. test -z "$as_dir" && as_dir=.
  4118. for ac_prog in sed gsed; do
  4119. for ac_exec_ext in '' $ac_executable_extensions; do
  4120. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4121. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4122. # Check for GNU ac_path_SED and select it if it is found.
  4123. # Check for GNU $ac_path_SED
  4124. case `"$ac_path_SED" --version 2>&1` in
  4125. *GNU*)
  4126. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4127. *)
  4128. ac_count=0
  4129. $as_echo_n 0123456789 >"conftest.in"
  4130. while :
  4131. do
  4132. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4133. mv "conftest.tmp" "conftest.in"
  4134. cp "conftest.in" "conftest.nl"
  4135. $as_echo '' >> "conftest.nl"
  4136. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4137. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4138. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4139. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4140. # Best one so far, save it but keep looking for a better one
  4141. ac_cv_path_SED="$ac_path_SED"
  4142. ac_path_SED_max=$ac_count
  4143. fi
  4144. # 10*(2^10) chars as input seems more than enough
  4145. test $ac_count -gt 10 && break
  4146. done
  4147. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4148. esac
  4149. $ac_path_SED_found && break 3
  4150. done
  4151. done
  4152. done
  4153. IFS=$as_save_IFS
  4154. if test -z "$ac_cv_path_SED"; then
  4155. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4156. fi
  4157. else
  4158. ac_cv_path_SED=$SED
  4159. fi
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4162. $as_echo "$ac_cv_path_SED" >&6; }
  4163. SED="$ac_cv_path_SED"
  4164. rm -f conftest.sed
  4165. test -z "$SED" && SED=sed
  4166. Xsed="$SED -e 1s/^X//"
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4168. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4169. if test "${ac_cv_path_GREP+set}" = set; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. if test -z "$GREP"; then
  4173. ac_path_GREP_found=false
  4174. # Loop through the user's path and test for each of PROGNAME-LIST
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_prog in grep ggrep; do
  4181. for ac_exec_ext in '' $ac_executable_extensions; do
  4182. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4183. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4184. # Check for GNU ac_path_GREP and select it if it is found.
  4185. # Check for GNU $ac_path_GREP
  4186. case `"$ac_path_GREP" --version 2>&1` in
  4187. *GNU*)
  4188. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4189. *)
  4190. ac_count=0
  4191. $as_echo_n 0123456789 >"conftest.in"
  4192. while :
  4193. do
  4194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4195. mv "conftest.tmp" "conftest.in"
  4196. cp "conftest.in" "conftest.nl"
  4197. $as_echo 'GREP' >> "conftest.nl"
  4198. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4201. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4202. # Best one so far, save it but keep looking for a better one
  4203. ac_cv_path_GREP="$ac_path_GREP"
  4204. ac_path_GREP_max=$ac_count
  4205. fi
  4206. # 10*(2^10) chars as input seems more than enough
  4207. test $ac_count -gt 10 && break
  4208. done
  4209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4210. esac
  4211. $ac_path_GREP_found && break 3
  4212. done
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. if test -z "$ac_cv_path_GREP"; then
  4217. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4218. fi
  4219. else
  4220. ac_cv_path_GREP=$GREP
  4221. fi
  4222. fi
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4224. $as_echo "$ac_cv_path_GREP" >&6; }
  4225. GREP="$ac_cv_path_GREP"
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4227. $as_echo_n "checking for egrep... " >&6; }
  4228. if test "${ac_cv_path_EGREP+set}" = set; then :
  4229. $as_echo_n "(cached) " >&6
  4230. else
  4231. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4232. then ac_cv_path_EGREP="$GREP -E"
  4233. else
  4234. if test -z "$EGREP"; then
  4235. ac_path_EGREP_found=false
  4236. # Loop through the user's path and test for each of PROGNAME-LIST
  4237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4238. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4239. do
  4240. IFS=$as_save_IFS
  4241. test -z "$as_dir" && as_dir=.
  4242. for ac_prog in egrep; do
  4243. for ac_exec_ext in '' $ac_executable_extensions; do
  4244. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4245. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4246. # Check for GNU ac_path_EGREP and select it if it is found.
  4247. # Check for GNU $ac_path_EGREP
  4248. case `"$ac_path_EGREP" --version 2>&1` in
  4249. *GNU*)
  4250. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4251. *)
  4252. ac_count=0
  4253. $as_echo_n 0123456789 >"conftest.in"
  4254. while :
  4255. do
  4256. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4257. mv "conftest.tmp" "conftest.in"
  4258. cp "conftest.in" "conftest.nl"
  4259. $as_echo 'EGREP' >> "conftest.nl"
  4260. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4261. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4262. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4263. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4264. # Best one so far, save it but keep looking for a better one
  4265. ac_cv_path_EGREP="$ac_path_EGREP"
  4266. ac_path_EGREP_max=$ac_count
  4267. fi
  4268. # 10*(2^10) chars as input seems more than enough
  4269. test $ac_count -gt 10 && break
  4270. done
  4271. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4272. esac
  4273. $ac_path_EGREP_found && break 3
  4274. done
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. if test -z "$ac_cv_path_EGREP"; then
  4279. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4280. fi
  4281. else
  4282. ac_cv_path_EGREP=$EGREP
  4283. fi
  4284. fi
  4285. fi
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4287. $as_echo "$ac_cv_path_EGREP" >&6; }
  4288. EGREP="$ac_cv_path_EGREP"
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4290. $as_echo_n "checking for fgrep... " >&6; }
  4291. if test "${ac_cv_path_FGREP+set}" = set; then :
  4292. $as_echo_n "(cached) " >&6
  4293. else
  4294. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4295. then ac_cv_path_FGREP="$GREP -F"
  4296. else
  4297. if test -z "$FGREP"; then
  4298. ac_path_FGREP_found=false
  4299. # Loop through the user's path and test for each of PROGNAME-LIST
  4300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4301. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4302. do
  4303. IFS=$as_save_IFS
  4304. test -z "$as_dir" && as_dir=.
  4305. for ac_prog in fgrep; do
  4306. for ac_exec_ext in '' $ac_executable_extensions; do
  4307. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4308. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4309. # Check for GNU ac_path_FGREP and select it if it is found.
  4310. # Check for GNU $ac_path_FGREP
  4311. case `"$ac_path_FGREP" --version 2>&1` in
  4312. *GNU*)
  4313. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4314. *)
  4315. ac_count=0
  4316. $as_echo_n 0123456789 >"conftest.in"
  4317. while :
  4318. do
  4319. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4320. mv "conftest.tmp" "conftest.in"
  4321. cp "conftest.in" "conftest.nl"
  4322. $as_echo 'FGREP' >> "conftest.nl"
  4323. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4324. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4325. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4326. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4327. # Best one so far, save it but keep looking for a better one
  4328. ac_cv_path_FGREP="$ac_path_FGREP"
  4329. ac_path_FGREP_max=$ac_count
  4330. fi
  4331. # 10*(2^10) chars as input seems more than enough
  4332. test $ac_count -gt 10 && break
  4333. done
  4334. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4335. esac
  4336. $ac_path_FGREP_found && break 3
  4337. done
  4338. done
  4339. done
  4340. IFS=$as_save_IFS
  4341. if test -z "$ac_cv_path_FGREP"; then
  4342. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4343. fi
  4344. else
  4345. ac_cv_path_FGREP=$FGREP
  4346. fi
  4347. fi
  4348. fi
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4350. $as_echo "$ac_cv_path_FGREP" >&6; }
  4351. FGREP="$ac_cv_path_FGREP"
  4352. test -z "$GREP" && GREP=grep
  4353. # Check whether --with-gnu-ld was given.
  4354. if test "${with_gnu_ld+set}" = set; then :
  4355. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4356. else
  4357. with_gnu_ld=no
  4358. fi
  4359. ac_prog=ld
  4360. if test "$GCC" = yes; then
  4361. # Check if gcc -print-prog-name=ld gives a path.
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4363. $as_echo_n "checking for ld used by $CC... " >&6; }
  4364. case $host in
  4365. *-*-mingw*)
  4366. # gcc leaves a trailing carriage return which upsets mingw
  4367. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4368. *)
  4369. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4370. esac
  4371. case $ac_prog in
  4372. # Accept absolute paths.
  4373. [\\/]* | ?:[\\/]*)
  4374. re_direlt='/[^/][^/]*/\.\./'
  4375. # Canonicalize the pathname of ld
  4376. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4377. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4378. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4379. done
  4380. test -z "$LD" && LD="$ac_prog"
  4381. ;;
  4382. "")
  4383. # If it fails, then pretend we aren't using GCC.
  4384. ac_prog=ld
  4385. ;;
  4386. *)
  4387. # If it is relative, then search for the first ld in PATH.
  4388. with_gnu_ld=unknown
  4389. ;;
  4390. esac
  4391. elif test "$with_gnu_ld" = yes; then
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4393. $as_echo_n "checking for GNU ld... " >&6; }
  4394. else
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4396. $as_echo_n "checking for non-GNU ld... " >&6; }
  4397. fi
  4398. if test "${lt_cv_path_LD+set}" = set; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. if test -z "$LD"; then
  4402. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4403. for ac_dir in $PATH; do
  4404. IFS="$lt_save_ifs"
  4405. test -z "$ac_dir" && ac_dir=.
  4406. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4407. lt_cv_path_LD="$ac_dir/$ac_prog"
  4408. # Check to see if the program is GNU ld. I'd rather use --version,
  4409. # but apparently some variants of GNU ld only accept -v.
  4410. # Break only if it was the GNU/non-GNU ld that we prefer.
  4411. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4412. *GNU* | *'with BFD'*)
  4413. test "$with_gnu_ld" != no && break
  4414. ;;
  4415. *)
  4416. test "$with_gnu_ld" != yes && break
  4417. ;;
  4418. esac
  4419. fi
  4420. done
  4421. IFS="$lt_save_ifs"
  4422. else
  4423. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4424. fi
  4425. fi
  4426. LD="$lt_cv_path_LD"
  4427. if test -n "$LD"; then
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4429. $as_echo "$LD" >&6; }
  4430. else
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4432. $as_echo "no" >&6; }
  4433. fi
  4434. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4436. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4437. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4441. case `$LD -v 2>&1 </dev/null` in
  4442. *GNU* | *'with BFD'*)
  4443. lt_cv_prog_gnu_ld=yes
  4444. ;;
  4445. *)
  4446. lt_cv_prog_gnu_ld=no
  4447. ;;
  4448. esac
  4449. fi
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4451. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4452. with_gnu_ld=$lt_cv_prog_gnu_ld
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4454. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4455. if test "${lt_cv_path_NM+set}" = set; then :
  4456. $as_echo_n "(cached) " >&6
  4457. else
  4458. if test -n "$NM"; then
  4459. # Let the user override the test.
  4460. lt_cv_path_NM="$NM"
  4461. else
  4462. lt_nm_to_check="${ac_tool_prefix}nm"
  4463. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4464. lt_nm_to_check="$lt_nm_to_check nm"
  4465. fi
  4466. for lt_tmp_nm in $lt_nm_to_check; do
  4467. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4468. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4469. IFS="$lt_save_ifs"
  4470. test -z "$ac_dir" && ac_dir=.
  4471. tmp_nm="$ac_dir/$lt_tmp_nm"
  4472. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4473. # Check to see if the nm accepts a BSD-compat flag.
  4474. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4475. # nm: unknown option "B" ignored
  4476. # Tru64's nm complains that /dev/null is an invalid object file
  4477. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4478. */dev/null* | *'Invalid file or object type'*)
  4479. lt_cv_path_NM="$tmp_nm -B"
  4480. break
  4481. ;;
  4482. *)
  4483. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4484. */dev/null*)
  4485. lt_cv_path_NM="$tmp_nm -p"
  4486. break
  4487. ;;
  4488. *)
  4489. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4490. continue # so that we can try to find one that supports BSD flags
  4491. ;;
  4492. esac
  4493. ;;
  4494. esac
  4495. fi
  4496. done
  4497. IFS="$lt_save_ifs"
  4498. done
  4499. : ${lt_cv_path_NM=no}
  4500. fi
  4501. fi
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4503. $as_echo "$lt_cv_path_NM" >&6; }
  4504. if test "$lt_cv_path_NM" != "no"; then
  4505. NM="$lt_cv_path_NM"
  4506. else
  4507. # Didn't find any BSD compatible name lister, look for dumpbin.
  4508. if test -n "$ac_tool_prefix"; then
  4509. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4510. do
  4511. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4512. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4514. $as_echo_n "checking for $ac_word... " >&6; }
  4515. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4516. $as_echo_n "(cached) " >&6
  4517. else
  4518. if test -n "$DUMPBIN"; then
  4519. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4520. else
  4521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4522. for as_dir in $PATH
  4523. do
  4524. IFS=$as_save_IFS
  4525. test -z "$as_dir" && as_dir=.
  4526. for ac_exec_ext in '' $ac_executable_extensions; do
  4527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4528. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4530. break 2
  4531. fi
  4532. done
  4533. done
  4534. IFS=$as_save_IFS
  4535. fi
  4536. fi
  4537. DUMPBIN=$ac_cv_prog_DUMPBIN
  4538. if test -n "$DUMPBIN"; then
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4540. $as_echo "$DUMPBIN" >&6; }
  4541. else
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4543. $as_echo "no" >&6; }
  4544. fi
  4545. test -n "$DUMPBIN" && break
  4546. done
  4547. fi
  4548. if test -z "$DUMPBIN"; then
  4549. ac_ct_DUMPBIN=$DUMPBIN
  4550. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4551. do
  4552. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4553. set dummy $ac_prog; ac_word=$2
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4555. $as_echo_n "checking for $ac_word... " >&6; }
  4556. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4557. $as_echo_n "(cached) " >&6
  4558. else
  4559. if test -n "$ac_ct_DUMPBIN"; then
  4560. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4561. else
  4562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4563. for as_dir in $PATH
  4564. do
  4565. IFS=$as_save_IFS
  4566. test -z "$as_dir" && as_dir=.
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4569. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4571. break 2
  4572. fi
  4573. done
  4574. done
  4575. IFS=$as_save_IFS
  4576. fi
  4577. fi
  4578. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4579. if test -n "$ac_ct_DUMPBIN"; then
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4581. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4582. else
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4584. $as_echo "no" >&6; }
  4585. fi
  4586. test -n "$ac_ct_DUMPBIN" && break
  4587. done
  4588. if test "x$ac_ct_DUMPBIN" = x; then
  4589. DUMPBIN=":"
  4590. else
  4591. case $cross_compiling:$ac_tool_warned in
  4592. yes:)
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4594. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4595. ac_tool_warned=yes ;;
  4596. esac
  4597. DUMPBIN=$ac_ct_DUMPBIN
  4598. fi
  4599. fi
  4600. if test "$DUMPBIN" != ":"; then
  4601. NM="$DUMPBIN"
  4602. fi
  4603. fi
  4604. test -z "$NM" && NM=nm
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4606. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4607. if test "${lt_cv_nm_interface+set}" = set; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. lt_cv_nm_interface="BSD nm"
  4611. echo "int some_variable = 0;" > conftest.$ac_ext
  4612. (eval echo "\"\$as_me:5120: $ac_compile\"" >&5)
  4613. (eval "$ac_compile" 2>conftest.err)
  4614. cat conftest.err >&5
  4615. (eval echo "\"\$as_me:5123: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4616. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4617. cat conftest.err >&5
  4618. (eval echo "\"\$as_me:5126: output\"" >&5)
  4619. cat conftest.out >&5
  4620. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4621. lt_cv_nm_interface="MS dumpbin"
  4622. fi
  4623. rm -f conftest*
  4624. fi
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4626. $as_echo "$lt_cv_nm_interface" >&6; }
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4628. $as_echo_n "checking whether ln -s works... " >&6; }
  4629. LN_S=$as_ln_s
  4630. if test "$LN_S" = "ln -s"; then
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4632. $as_echo "yes" >&6; }
  4633. else
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4635. $as_echo "no, using $LN_S" >&6; }
  4636. fi
  4637. # find the maximum length of command line arguments
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4639. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4640. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4641. $as_echo_n "(cached) " >&6
  4642. else
  4643. i=0
  4644. teststring="ABCD"
  4645. case $build_os in
  4646. msdosdjgpp*)
  4647. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4648. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4649. # during glob expansion). Even if it were fixed, the result of this
  4650. # check would be larger than it should be.
  4651. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4652. ;;
  4653. gnu*)
  4654. # Under GNU Hurd, this test is not required because there is
  4655. # no limit to the length of command line arguments.
  4656. # Libtool will interpret -1 as no limit whatsoever
  4657. lt_cv_sys_max_cmd_len=-1;
  4658. ;;
  4659. cygwin* | mingw* | cegcc*)
  4660. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4661. # about 5 minutes as the teststring grows exponentially.
  4662. # Worse, since 9x/ME are not pre-emptively multitasking,
  4663. # you end up with a "frozen" computer, even though with patience
  4664. # the test eventually succeeds (with a max line length of 256k).
  4665. # Instead, let's just punt: use the minimum linelength reported by
  4666. # all of the supported platforms: 8192 (on NT/2K/XP).
  4667. lt_cv_sys_max_cmd_len=8192;
  4668. ;;
  4669. amigaos*)
  4670. # On AmigaOS with pdksh, this test takes hours, literally.
  4671. # So we just punt and use a minimum line length of 8192.
  4672. lt_cv_sys_max_cmd_len=8192;
  4673. ;;
  4674. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4675. # This has been around since 386BSD, at least. Likely further.
  4676. if test -x /sbin/sysctl; then
  4677. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4678. elif test -x /usr/sbin/sysctl; then
  4679. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4680. else
  4681. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4682. fi
  4683. # And add a safety zone
  4684. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4685. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4686. ;;
  4687. interix*)
  4688. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4689. lt_cv_sys_max_cmd_len=196608
  4690. ;;
  4691. osf*)
  4692. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4693. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4694. # nice to cause kernel panics so lets avoid the loop below.
  4695. # First set a reasonable default.
  4696. lt_cv_sys_max_cmd_len=16384
  4697. #
  4698. if test -x /sbin/sysconfig; then
  4699. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4700. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4701. esac
  4702. fi
  4703. ;;
  4704. sco3.2v5*)
  4705. lt_cv_sys_max_cmd_len=102400
  4706. ;;
  4707. sysv5* | sco5v6* | sysv4.2uw2*)
  4708. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4709. if test -n "$kargmax"; then
  4710. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4711. else
  4712. lt_cv_sys_max_cmd_len=32768
  4713. fi
  4714. ;;
  4715. *)
  4716. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4717. if test -n "$lt_cv_sys_max_cmd_len"; then
  4718. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4719. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4720. else
  4721. # Make teststring a little bigger before we do anything with it.
  4722. # a 1K string should be a reasonable start.
  4723. for i in 1 2 3 4 5 6 7 8 ; do
  4724. teststring=$teststring$teststring
  4725. done
  4726. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4727. # If test is not a shell built-in, we'll probably end up computing a
  4728. # maximum length that is only half of the actual maximum length, but
  4729. # we can't tell.
  4730. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4731. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4732. test $i != 17 # 1/2 MB should be enough
  4733. do
  4734. i=`expr $i + 1`
  4735. teststring=$teststring$teststring
  4736. done
  4737. # Only check the string length outside the loop.
  4738. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4739. teststring=
  4740. # Add a significant safety factor because C++ compilers can tack on
  4741. # massive amounts of additional arguments before passing them to the
  4742. # linker. It appears as though 1/2 is a usable value.
  4743. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4744. fi
  4745. ;;
  4746. esac
  4747. fi
  4748. if test -n $lt_cv_sys_max_cmd_len ; then
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4750. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4751. else
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4753. $as_echo "none" >&6; }
  4754. fi
  4755. max_cmd_len=$lt_cv_sys_max_cmd_len
  4756. : ${CP="cp -f"}
  4757. : ${MV="mv -f"}
  4758. : ${RM="rm -f"}
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4760. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4761. # Try some XSI features
  4762. xsi_shell=no
  4763. ( _lt_dummy="a/b/c"
  4764. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4765. = c,a/b,, \
  4766. && eval 'test $(( 1 + 1 )) -eq 2 \
  4767. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4768. && xsi_shell=yes
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4770. $as_echo "$xsi_shell" >&6; }
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4772. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4773. lt_shell_append=no
  4774. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4775. >/dev/null 2>&1 \
  4776. && lt_shell_append=yes
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4778. $as_echo "$lt_shell_append" >&6; }
  4779. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4780. lt_unset=unset
  4781. else
  4782. lt_unset=false
  4783. fi
  4784. # test EBCDIC or ASCII
  4785. case `echo X|tr X '\101'` in
  4786. A) # ASCII based system
  4787. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4788. lt_SP2NL='tr \040 \012'
  4789. lt_NL2SP='tr \015\012 \040\040'
  4790. ;;
  4791. *) # EBCDIC based system
  4792. lt_SP2NL='tr \100 \n'
  4793. lt_NL2SP='tr \r\n \100\100'
  4794. ;;
  4795. esac
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4797. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4798. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. lt_cv_ld_reload_flag='-r'
  4802. fi
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4804. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4805. reload_flag=$lt_cv_ld_reload_flag
  4806. case $reload_flag in
  4807. "" | " "*) ;;
  4808. *) reload_flag=" $reload_flag" ;;
  4809. esac
  4810. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4811. case $host_os in
  4812. darwin*)
  4813. if test "$GCC" = yes; then
  4814. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4815. else
  4816. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4817. fi
  4818. ;;
  4819. esac
  4820. if test -n "$ac_tool_prefix"; then
  4821. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4822. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4824. $as_echo_n "checking for $ac_word... " >&6; }
  4825. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4826. $as_echo_n "(cached) " >&6
  4827. else
  4828. if test -n "$OBJDUMP"; then
  4829. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4830. else
  4831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4832. for as_dir in $PATH
  4833. do
  4834. IFS=$as_save_IFS
  4835. test -z "$as_dir" && as_dir=.
  4836. for ac_exec_ext in '' $ac_executable_extensions; do
  4837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4838. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4840. break 2
  4841. fi
  4842. done
  4843. done
  4844. IFS=$as_save_IFS
  4845. fi
  4846. fi
  4847. OBJDUMP=$ac_cv_prog_OBJDUMP
  4848. if test -n "$OBJDUMP"; then
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4850. $as_echo "$OBJDUMP" >&6; }
  4851. else
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4853. $as_echo "no" >&6; }
  4854. fi
  4855. fi
  4856. if test -z "$ac_cv_prog_OBJDUMP"; then
  4857. ac_ct_OBJDUMP=$OBJDUMP
  4858. # Extract the first word of "objdump", so it can be a program name with args.
  4859. set dummy objdump; ac_word=$2
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4861. $as_echo_n "checking for $ac_word... " >&6; }
  4862. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4863. $as_echo_n "(cached) " >&6
  4864. else
  4865. if test -n "$ac_ct_OBJDUMP"; then
  4866. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4867. else
  4868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4869. for as_dir in $PATH
  4870. do
  4871. IFS=$as_save_IFS
  4872. test -z "$as_dir" && as_dir=.
  4873. for ac_exec_ext in '' $ac_executable_extensions; do
  4874. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4875. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4877. break 2
  4878. fi
  4879. done
  4880. done
  4881. IFS=$as_save_IFS
  4882. fi
  4883. fi
  4884. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4885. if test -n "$ac_ct_OBJDUMP"; then
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4887. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4888. else
  4889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4890. $as_echo "no" >&6; }
  4891. fi
  4892. if test "x$ac_ct_OBJDUMP" = x; then
  4893. OBJDUMP="false"
  4894. else
  4895. case $cross_compiling:$ac_tool_warned in
  4896. yes:)
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4898. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4899. ac_tool_warned=yes ;;
  4900. esac
  4901. OBJDUMP=$ac_ct_OBJDUMP
  4902. fi
  4903. else
  4904. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4905. fi
  4906. test -z "$OBJDUMP" && OBJDUMP=objdump
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4908. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4909. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4913. lt_cv_file_magic_test_file=
  4914. lt_cv_deplibs_check_method='unknown'
  4915. # Need to set the preceding variable on all platforms that support
  4916. # interlibrary dependencies.
  4917. # 'none' -- dependencies not supported.
  4918. # `unknown' -- same as none, but documents that we really don't know.
  4919. # 'pass_all' -- all dependencies passed with no checks.
  4920. # 'test_compile' -- check by making test program.
  4921. # 'file_magic [[regex]]' -- check by looking for files in library path
  4922. # which responds to the $file_magic_cmd with a given extended regex.
  4923. # If you have `file' or equivalent on your system and you're not sure
  4924. # whether `pass_all' will *always* work, you probably want this one.
  4925. case $host_os in
  4926. aix[4-9]*)
  4927. lt_cv_deplibs_check_method=pass_all
  4928. ;;
  4929. beos*)
  4930. lt_cv_deplibs_check_method=pass_all
  4931. ;;
  4932. bsdi[45]*)
  4933. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4934. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4935. lt_cv_file_magic_test_file=/shlib/libc.so
  4936. ;;
  4937. cygwin*)
  4938. # func_win32_libid is a shell function defined in ltmain.sh
  4939. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4940. lt_cv_file_magic_cmd='func_win32_libid'
  4941. ;;
  4942. mingw* | pw32*)
  4943. # Base MSYS/MinGW do not provide the 'file' command needed by
  4944. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4945. # unless we find 'file', for example because we are cross-compiling.
  4946. if ( file / ) >/dev/null 2>&1; then
  4947. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4948. lt_cv_file_magic_cmd='func_win32_libid'
  4949. else
  4950. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4951. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4952. fi
  4953. ;;
  4954. cegcc)
  4955. # use the weaker test based on 'objdump'. See mingw*.
  4956. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4957. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4958. ;;
  4959. darwin* | rhapsody*)
  4960. lt_cv_deplibs_check_method=pass_all
  4961. ;;
  4962. freebsd* | dragonfly*)
  4963. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4964. case $host_cpu in
  4965. i*86 )
  4966. # Not sure whether the presence of OpenBSD here was a mistake.
  4967. # Let's accept both of them until this is cleared up.
  4968. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4969. lt_cv_file_magic_cmd=/usr/bin/file
  4970. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4971. ;;
  4972. esac
  4973. else
  4974. lt_cv_deplibs_check_method=pass_all
  4975. fi
  4976. ;;
  4977. gnu*)
  4978. lt_cv_deplibs_check_method=pass_all
  4979. ;;
  4980. hpux10.20* | hpux11*)
  4981. lt_cv_file_magic_cmd=/usr/bin/file
  4982. case $host_cpu in
  4983. ia64*)
  4984. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4985. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4986. ;;
  4987. hppa*64*)
  4988. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4989. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4990. ;;
  4991. *)
  4992. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4993. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4994. ;;
  4995. esac
  4996. ;;
  4997. interix[3-9]*)
  4998. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4999. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5000. ;;
  5001. irix5* | irix6* | nonstopux*)
  5002. case $LD in
  5003. *-32|*"-32 ") libmagic=32-bit;;
  5004. *-n32|*"-n32 ") libmagic=N32;;
  5005. *-64|*"-64 ") libmagic=64-bit;;
  5006. *) libmagic=never-match;;
  5007. esac
  5008. lt_cv_deplibs_check_method=pass_all
  5009. ;;
  5010. # This must be Linux ELF.
  5011. linux* | k*bsd*-gnu)
  5012. lt_cv_deplibs_check_method=pass_all
  5013. ;;
  5014. netbsd*)
  5015. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5016. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5017. else
  5018. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5019. fi
  5020. ;;
  5021. newos6*)
  5022. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5023. lt_cv_file_magic_cmd=/usr/bin/file
  5024. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5025. ;;
  5026. *nto* | *qnx*)
  5027. lt_cv_deplibs_check_method=pass_all
  5028. ;;
  5029. openbsd*)
  5030. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5031. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5032. else
  5033. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5034. fi
  5035. ;;
  5036. osf3* | osf4* | osf5*)
  5037. lt_cv_deplibs_check_method=pass_all
  5038. ;;
  5039. rdos*)
  5040. lt_cv_deplibs_check_method=pass_all
  5041. ;;
  5042. solaris*)
  5043. lt_cv_deplibs_check_method=pass_all
  5044. ;;
  5045. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5046. lt_cv_deplibs_check_method=pass_all
  5047. ;;
  5048. sysv4 | sysv4.3*)
  5049. case $host_vendor in
  5050. motorola)
  5051. 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]'
  5052. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5053. ;;
  5054. ncr)
  5055. lt_cv_deplibs_check_method=pass_all
  5056. ;;
  5057. sequent)
  5058. lt_cv_file_magic_cmd='/bin/file'
  5059. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5060. ;;
  5061. sni)
  5062. lt_cv_file_magic_cmd='/bin/file'
  5063. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5064. lt_cv_file_magic_test_file=/lib/libc.so
  5065. ;;
  5066. siemens)
  5067. lt_cv_deplibs_check_method=pass_all
  5068. ;;
  5069. pc)
  5070. lt_cv_deplibs_check_method=pass_all
  5071. ;;
  5072. esac
  5073. ;;
  5074. tpf*)
  5075. lt_cv_deplibs_check_method=pass_all
  5076. ;;
  5077. esac
  5078. fi
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5080. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5081. file_magic_cmd=$lt_cv_file_magic_cmd
  5082. deplibs_check_method=$lt_cv_deplibs_check_method
  5083. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5084. if test -n "$ac_tool_prefix"; then
  5085. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5086. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5088. $as_echo_n "checking for $ac_word... " >&6; }
  5089. if test "${ac_cv_prog_AR+set}" = set; then :
  5090. $as_echo_n "(cached) " >&6
  5091. else
  5092. if test -n "$AR"; then
  5093. ac_cv_prog_AR="$AR" # Let the user override the test.
  5094. else
  5095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5096. for as_dir in $PATH
  5097. do
  5098. IFS=$as_save_IFS
  5099. test -z "$as_dir" && as_dir=.
  5100. for ac_exec_ext in '' $ac_executable_extensions; do
  5101. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5102. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5104. break 2
  5105. fi
  5106. done
  5107. done
  5108. IFS=$as_save_IFS
  5109. fi
  5110. fi
  5111. AR=$ac_cv_prog_AR
  5112. if test -n "$AR"; then
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5114. $as_echo "$AR" >&6; }
  5115. else
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5117. $as_echo "no" >&6; }
  5118. fi
  5119. fi
  5120. if test -z "$ac_cv_prog_AR"; then
  5121. ac_ct_AR=$AR
  5122. # Extract the first word of "ar", so it can be a program name with args.
  5123. set dummy ar; ac_word=$2
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5125. $as_echo_n "checking for $ac_word... " >&6; }
  5126. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5127. $as_echo_n "(cached) " >&6
  5128. else
  5129. if test -n "$ac_ct_AR"; then
  5130. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5131. else
  5132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5133. for as_dir in $PATH
  5134. do
  5135. IFS=$as_save_IFS
  5136. test -z "$as_dir" && as_dir=.
  5137. for ac_exec_ext in '' $ac_executable_extensions; do
  5138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5139. ac_cv_prog_ac_ct_AR="ar"
  5140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5141. break 2
  5142. fi
  5143. done
  5144. done
  5145. IFS=$as_save_IFS
  5146. fi
  5147. fi
  5148. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5149. if test -n "$ac_ct_AR"; then
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5151. $as_echo "$ac_ct_AR" >&6; }
  5152. else
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5154. $as_echo "no" >&6; }
  5155. fi
  5156. if test "x$ac_ct_AR" = x; then
  5157. AR="false"
  5158. else
  5159. case $cross_compiling:$ac_tool_warned in
  5160. yes:)
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5163. ac_tool_warned=yes ;;
  5164. esac
  5165. AR=$ac_ct_AR
  5166. fi
  5167. else
  5168. AR="$ac_cv_prog_AR"
  5169. fi
  5170. test -z "$AR" && AR=ar
  5171. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5172. if test -n "$ac_tool_prefix"; then
  5173. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5174. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5176. $as_echo_n "checking for $ac_word... " >&6; }
  5177. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5178. $as_echo_n "(cached) " >&6
  5179. else
  5180. if test -n "$STRIP"; then
  5181. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5182. else
  5183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5184. for as_dir in $PATH
  5185. do
  5186. IFS=$as_save_IFS
  5187. test -z "$as_dir" && as_dir=.
  5188. for ac_exec_ext in '' $ac_executable_extensions; do
  5189. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5190. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5191. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5192. break 2
  5193. fi
  5194. done
  5195. done
  5196. IFS=$as_save_IFS
  5197. fi
  5198. fi
  5199. STRIP=$ac_cv_prog_STRIP
  5200. if test -n "$STRIP"; then
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5202. $as_echo "$STRIP" >&6; }
  5203. else
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5205. $as_echo "no" >&6; }
  5206. fi
  5207. fi
  5208. if test -z "$ac_cv_prog_STRIP"; then
  5209. ac_ct_STRIP=$STRIP
  5210. # Extract the first word of "strip", so it can be a program name with args.
  5211. set dummy strip; ac_word=$2
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5213. $as_echo_n "checking for $ac_word... " >&6; }
  5214. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$ac_ct_STRIP"; then
  5218. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5219. else
  5220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5221. for as_dir in $PATH
  5222. do
  5223. IFS=$as_save_IFS
  5224. test -z "$as_dir" && as_dir=.
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5227. ac_cv_prog_ac_ct_STRIP="strip"
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5229. break 2
  5230. fi
  5231. done
  5232. done
  5233. IFS=$as_save_IFS
  5234. fi
  5235. fi
  5236. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5237. if test -n "$ac_ct_STRIP"; then
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5239. $as_echo "$ac_ct_STRIP" >&6; }
  5240. else
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5242. $as_echo "no" >&6; }
  5243. fi
  5244. if test "x$ac_ct_STRIP" = x; then
  5245. STRIP=":"
  5246. else
  5247. case $cross_compiling:$ac_tool_warned in
  5248. yes:)
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5250. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5251. ac_tool_warned=yes ;;
  5252. esac
  5253. STRIP=$ac_ct_STRIP
  5254. fi
  5255. else
  5256. STRIP="$ac_cv_prog_STRIP"
  5257. fi
  5258. test -z "$STRIP" && STRIP=:
  5259. if test -n "$ac_tool_prefix"; then
  5260. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5261. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5263. $as_echo_n "checking for $ac_word... " >&6; }
  5264. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. if test -n "$RANLIB"; then
  5268. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5269. else
  5270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5271. for as_dir in $PATH
  5272. do
  5273. IFS=$as_save_IFS
  5274. test -z "$as_dir" && as_dir=.
  5275. for ac_exec_ext in '' $ac_executable_extensions; do
  5276. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5277. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5279. break 2
  5280. fi
  5281. done
  5282. done
  5283. IFS=$as_save_IFS
  5284. fi
  5285. fi
  5286. RANLIB=$ac_cv_prog_RANLIB
  5287. if test -n "$RANLIB"; then
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5289. $as_echo "$RANLIB" >&6; }
  5290. else
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5292. $as_echo "no" >&6; }
  5293. fi
  5294. fi
  5295. if test -z "$ac_cv_prog_RANLIB"; then
  5296. ac_ct_RANLIB=$RANLIB
  5297. # Extract the first word of "ranlib", so it can be a program name with args.
  5298. set dummy ranlib; ac_word=$2
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5300. $as_echo_n "checking for $ac_word... " >&6; }
  5301. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5302. $as_echo_n "(cached) " >&6
  5303. else
  5304. if test -n "$ac_ct_RANLIB"; then
  5305. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5306. else
  5307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5308. for as_dir in $PATH
  5309. do
  5310. IFS=$as_save_IFS
  5311. test -z "$as_dir" && as_dir=.
  5312. for ac_exec_ext in '' $ac_executable_extensions; do
  5313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5314. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5316. break 2
  5317. fi
  5318. done
  5319. done
  5320. IFS=$as_save_IFS
  5321. fi
  5322. fi
  5323. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5324. if test -n "$ac_ct_RANLIB"; then
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5326. $as_echo "$ac_ct_RANLIB" >&6; }
  5327. else
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5329. $as_echo "no" >&6; }
  5330. fi
  5331. if test "x$ac_ct_RANLIB" = x; then
  5332. RANLIB=":"
  5333. else
  5334. case $cross_compiling:$ac_tool_warned in
  5335. yes:)
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5337. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5338. ac_tool_warned=yes ;;
  5339. esac
  5340. RANLIB=$ac_ct_RANLIB
  5341. fi
  5342. else
  5343. RANLIB="$ac_cv_prog_RANLIB"
  5344. fi
  5345. test -z "$RANLIB" && RANLIB=:
  5346. # Determine commands to create old-style static archives.
  5347. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5348. old_postinstall_cmds='chmod 644 $oldlib'
  5349. old_postuninstall_cmds=
  5350. if test -n "$RANLIB"; then
  5351. case $host_os in
  5352. openbsd*)
  5353. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5354. ;;
  5355. *)
  5356. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5357. ;;
  5358. esac
  5359. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5360. fi
  5361. # If no C compiler was specified, use CC.
  5362. LTCC=${LTCC-"$CC"}
  5363. # If no C compiler flags were specified, use CFLAGS.
  5364. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5365. # Allow CC to be a program name with arguments.
  5366. compiler=$CC
  5367. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5369. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5370. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5371. $as_echo_n "(cached) " >&6
  5372. else
  5373. # These are sane defaults that work on at least a few old systems.
  5374. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5375. # Character class describing NM global symbol codes.
  5376. symcode='[BCDEGRST]'
  5377. # Regexp to match symbols that can be accessed directly from C.
  5378. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5379. # Define system-specific variables.
  5380. case $host_os in
  5381. aix*)
  5382. symcode='[BCDT]'
  5383. ;;
  5384. cygwin* | mingw* | pw32* | cegcc*)
  5385. symcode='[ABCDGISTW]'
  5386. ;;
  5387. hpux*)
  5388. if test "$host_cpu" = ia64; then
  5389. symcode='[ABCDEGRST]'
  5390. fi
  5391. ;;
  5392. irix* | nonstopux*)
  5393. symcode='[BCDEGRST]'
  5394. ;;
  5395. osf*)
  5396. symcode='[BCDEGQRST]'
  5397. ;;
  5398. solaris*)
  5399. symcode='[BDRT]'
  5400. ;;
  5401. sco3.2v5*)
  5402. symcode='[DT]'
  5403. ;;
  5404. sysv4.2uw2*)
  5405. symcode='[DT]'
  5406. ;;
  5407. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5408. symcode='[ABDT]'
  5409. ;;
  5410. sysv4)
  5411. symcode='[DFNSTU]'
  5412. ;;
  5413. esac
  5414. # If we're using GNU nm, then use its standard symbol codes.
  5415. case `$NM -V 2>&1` in
  5416. *GNU* | *'with BFD'*)
  5417. symcode='[ABCDGIRSTW]' ;;
  5418. esac
  5419. # Transform an extracted symbol line into a proper C declaration.
  5420. # Some systems (esp. on ia64) link data and code symbols differently,
  5421. # so use this general approach.
  5422. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5423. # Transform an extracted symbol line into symbol name and symbol address
  5424. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5425. 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'"
  5426. # Handle CRLF in mingw tool chain
  5427. opt_cr=
  5428. case $build_os in
  5429. mingw*)
  5430. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5431. ;;
  5432. esac
  5433. # Try without a prefix underscore, then with it.
  5434. for ac_symprfx in "" "_"; do
  5435. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5436. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5437. # Write the raw and C identifiers.
  5438. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5439. # Fake it for dumpbin and say T for any non-static function
  5440. # and D for any global variable.
  5441. # Also find C++ and __fastcall symbols from MSVC++,
  5442. # which start with @ or ?.
  5443. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5444. " {last_section=section; section=\$ 3};"\
  5445. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5446. " \$ 0!~/External *\|/{next};"\
  5447. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5448. " {if(hide[section]) next};"\
  5449. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5450. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5451. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5452. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5453. " ' prfx=^$ac_symprfx"
  5454. else
  5455. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5456. fi
  5457. # Check to see that the pipe works correctly.
  5458. pipe_works=no
  5459. rm -f conftest*
  5460. cat > conftest.$ac_ext <<_LT_EOF
  5461. #ifdef __cplusplus
  5462. extern "C" {
  5463. #endif
  5464. char nm_test_var;
  5465. void nm_test_func(void);
  5466. void nm_test_func(void){}
  5467. #ifdef __cplusplus
  5468. }
  5469. #endif
  5470. int main(){nm_test_var='a';nm_test_func();return(0);}
  5471. _LT_EOF
  5472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5473. (eval $ac_compile) 2>&5
  5474. ac_status=$?
  5475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5476. test $ac_status = 0; }; then
  5477. # Now try to grab the symbols.
  5478. nlist=conftest.nm
  5479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5480. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5481. ac_status=$?
  5482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5483. test $ac_status = 0; } && test -s "$nlist"; then
  5484. # Try sorting and uniquifying the output.
  5485. if sort "$nlist" | uniq > "$nlist"T; then
  5486. mv -f "$nlist"T "$nlist"
  5487. else
  5488. rm -f "$nlist"T
  5489. fi
  5490. # Make sure that we snagged all the symbols we need.
  5491. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5492. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5493. cat <<_LT_EOF > conftest.$ac_ext
  5494. #ifdef __cplusplus
  5495. extern "C" {
  5496. #endif
  5497. _LT_EOF
  5498. # Now generate the symbol file.
  5499. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5500. cat <<_LT_EOF >> conftest.$ac_ext
  5501. /* The mapping between symbol names and symbols. */
  5502. const struct {
  5503. const char *name;
  5504. void *address;
  5505. }
  5506. lt__PROGRAM__LTX_preloaded_symbols[] =
  5507. {
  5508. { "@PROGRAM@", (void *) 0 },
  5509. _LT_EOF
  5510. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5511. cat <<\_LT_EOF >> conftest.$ac_ext
  5512. {0, (void *) 0}
  5513. };
  5514. /* This works around a problem in FreeBSD linker */
  5515. #ifdef FREEBSD_WORKAROUND
  5516. static const void *lt_preloaded_setup() {
  5517. return lt__PROGRAM__LTX_preloaded_symbols;
  5518. }
  5519. #endif
  5520. #ifdef __cplusplus
  5521. }
  5522. #endif
  5523. _LT_EOF
  5524. # Now try linking the two files.
  5525. mv conftest.$ac_objext conftstm.$ac_objext
  5526. lt_save_LIBS="$LIBS"
  5527. lt_save_CFLAGS="$CFLAGS"
  5528. LIBS="conftstm.$ac_objext"
  5529. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5530. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5531. (eval $ac_link) 2>&5
  5532. ac_status=$?
  5533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5534. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5535. pipe_works=yes
  5536. fi
  5537. LIBS="$lt_save_LIBS"
  5538. CFLAGS="$lt_save_CFLAGS"
  5539. else
  5540. echo "cannot find nm_test_func in $nlist" >&5
  5541. fi
  5542. else
  5543. echo "cannot find nm_test_var in $nlist" >&5
  5544. fi
  5545. else
  5546. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5547. fi
  5548. else
  5549. echo "$progname: failed program was:" >&5
  5550. cat conftest.$ac_ext >&5
  5551. fi
  5552. rm -rf conftest* conftst*
  5553. # Do not use the global_symbol_pipe unless it works.
  5554. if test "$pipe_works" = yes; then
  5555. break
  5556. else
  5557. lt_cv_sys_global_symbol_pipe=
  5558. fi
  5559. done
  5560. fi
  5561. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5562. lt_cv_sys_global_symbol_to_cdecl=
  5563. fi
  5564. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5566. $as_echo "failed" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5569. $as_echo "ok" >&6; }
  5570. fi
  5571. # Check whether --enable-libtool-lock was given.
  5572. if test "${enable_libtool_lock+set}" = set; then :
  5573. enableval=$enable_libtool_lock;
  5574. fi
  5575. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5576. # Some flags need to be propagated to the compiler or linker for good
  5577. # libtool support.
  5578. case $host in
  5579. ia64-*-hpux*)
  5580. # Find out which ABI we are using.
  5581. echo 'int i;' > conftest.$ac_ext
  5582. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5583. (eval $ac_compile) 2>&5
  5584. ac_status=$?
  5585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5586. test $ac_status = 0; }; then
  5587. case `/usr/bin/file conftest.$ac_objext` in
  5588. *ELF-32*)
  5589. HPUX_IA64_MODE="32"
  5590. ;;
  5591. *ELF-64*)
  5592. HPUX_IA64_MODE="64"
  5593. ;;
  5594. esac
  5595. fi
  5596. rm -rf conftest*
  5597. ;;
  5598. *-*-irix6*)
  5599. # Find out which ABI we are using.
  5600. echo '#line 6332 "configure"' > conftest.$ac_ext
  5601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5602. (eval $ac_compile) 2>&5
  5603. ac_status=$?
  5604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5605. test $ac_status = 0; }; then
  5606. if test "$lt_cv_prog_gnu_ld" = yes; then
  5607. case `/usr/bin/file conftest.$ac_objext` in
  5608. *32-bit*)
  5609. LD="${LD-ld} -melf32bsmip"
  5610. ;;
  5611. *N32*)
  5612. LD="${LD-ld} -melf32bmipn32"
  5613. ;;
  5614. *64-bit*)
  5615. LD="${LD-ld} -melf64bmip"
  5616. ;;
  5617. esac
  5618. else
  5619. case `/usr/bin/file conftest.$ac_objext` in
  5620. *32-bit*)
  5621. LD="${LD-ld} -32"
  5622. ;;
  5623. *N32*)
  5624. LD="${LD-ld} -n32"
  5625. ;;
  5626. *64-bit*)
  5627. LD="${LD-ld} -64"
  5628. ;;
  5629. esac
  5630. fi
  5631. fi
  5632. rm -rf conftest*
  5633. ;;
  5634. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5635. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5636. # Find out which ABI we are using.
  5637. echo 'int i;' > conftest.$ac_ext
  5638. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5639. (eval $ac_compile) 2>&5
  5640. ac_status=$?
  5641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5642. test $ac_status = 0; }; then
  5643. case `/usr/bin/file conftest.o` in
  5644. *32-bit*)
  5645. case $host in
  5646. x86_64-*kfreebsd*-gnu)
  5647. LD="${LD-ld} -m elf_i386_fbsd"
  5648. ;;
  5649. x86_64-*linux*)
  5650. LD="${LD-ld} -m elf_i386"
  5651. ;;
  5652. ppc64-*linux*|powerpc64-*linux*)
  5653. LD="${LD-ld} -m elf32ppclinux"
  5654. ;;
  5655. s390x-*linux*)
  5656. LD="${LD-ld} -m elf_s390"
  5657. ;;
  5658. sparc64-*linux*)
  5659. LD="${LD-ld} -m elf32_sparc"
  5660. ;;
  5661. esac
  5662. ;;
  5663. *64-bit*)
  5664. case $host in
  5665. x86_64-*kfreebsd*-gnu)
  5666. LD="${LD-ld} -m elf_x86_64_fbsd"
  5667. ;;
  5668. x86_64-*linux*)
  5669. LD="${LD-ld} -m elf_x86_64"
  5670. ;;
  5671. ppc*-*linux*|powerpc*-*linux*)
  5672. LD="${LD-ld} -m elf64ppc"
  5673. ;;
  5674. s390*-*linux*|s390*-*tpf*)
  5675. LD="${LD-ld} -m elf64_s390"
  5676. ;;
  5677. sparc*-*linux*)
  5678. LD="${LD-ld} -m elf64_sparc"
  5679. ;;
  5680. esac
  5681. ;;
  5682. esac
  5683. fi
  5684. rm -rf conftest*
  5685. ;;
  5686. *-*-sco3.2v5*)
  5687. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5688. SAVE_CFLAGS="$CFLAGS"
  5689. CFLAGS="$CFLAGS -belf"
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5691. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5692. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. ac_ext=c
  5696. ac_cpp='$CPP $CPPFLAGS'
  5697. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5698. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5699. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5701. /* end confdefs.h. */
  5702. int
  5703. main ()
  5704. {
  5705. ;
  5706. return 0;
  5707. }
  5708. _ACEOF
  5709. if ac_fn_c_try_link "$LINENO"; then :
  5710. lt_cv_cc_needs_belf=yes
  5711. else
  5712. lt_cv_cc_needs_belf=no
  5713. fi
  5714. rm -f core conftest.err conftest.$ac_objext \
  5715. conftest$ac_exeext conftest.$ac_ext
  5716. ac_ext=c
  5717. ac_cpp='$CPP $CPPFLAGS'
  5718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5721. fi
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5723. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5724. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5725. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5726. CFLAGS="$SAVE_CFLAGS"
  5727. fi
  5728. ;;
  5729. sparc*-*solaris*)
  5730. # Find out which ABI we are using.
  5731. echo 'int i;' > conftest.$ac_ext
  5732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5733. (eval $ac_compile) 2>&5
  5734. ac_status=$?
  5735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5736. test $ac_status = 0; }; then
  5737. case `/usr/bin/file conftest.o` in
  5738. *64-bit*)
  5739. case $lt_cv_prog_gnu_ld in
  5740. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5741. *)
  5742. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5743. LD="${LD-ld} -64"
  5744. fi
  5745. ;;
  5746. esac
  5747. ;;
  5748. esac
  5749. fi
  5750. rm -rf conftest*
  5751. ;;
  5752. esac
  5753. need_locks="$enable_libtool_lock"
  5754. case $host_os in
  5755. rhapsody* | darwin*)
  5756. if test -n "$ac_tool_prefix"; then
  5757. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5758. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5760. $as_echo_n "checking for $ac_word... " >&6; }
  5761. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. if test -n "$DSYMUTIL"; then
  5765. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5766. else
  5767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5768. for as_dir in $PATH
  5769. do
  5770. IFS=$as_save_IFS
  5771. test -z "$as_dir" && as_dir=.
  5772. for ac_exec_ext in '' $ac_executable_extensions; do
  5773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5774. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5776. break 2
  5777. fi
  5778. done
  5779. done
  5780. IFS=$as_save_IFS
  5781. fi
  5782. fi
  5783. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5784. if test -n "$DSYMUTIL"; then
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5786. $as_echo "$DSYMUTIL" >&6; }
  5787. else
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5789. $as_echo "no" >&6; }
  5790. fi
  5791. fi
  5792. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5793. ac_ct_DSYMUTIL=$DSYMUTIL
  5794. # Extract the first word of "dsymutil", so it can be a program name with args.
  5795. set dummy dsymutil; ac_word=$2
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5797. $as_echo_n "checking for $ac_word... " >&6; }
  5798. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5799. $as_echo_n "(cached) " >&6
  5800. else
  5801. if test -n "$ac_ct_DSYMUTIL"; then
  5802. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5803. else
  5804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5805. for as_dir in $PATH
  5806. do
  5807. IFS=$as_save_IFS
  5808. test -z "$as_dir" && as_dir=.
  5809. for ac_exec_ext in '' $ac_executable_extensions; do
  5810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5811. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5813. break 2
  5814. fi
  5815. done
  5816. done
  5817. IFS=$as_save_IFS
  5818. fi
  5819. fi
  5820. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5821. if test -n "$ac_ct_DSYMUTIL"; then
  5822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5823. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5824. else
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5826. $as_echo "no" >&6; }
  5827. fi
  5828. if test "x$ac_ct_DSYMUTIL" = x; then
  5829. DSYMUTIL=":"
  5830. else
  5831. case $cross_compiling:$ac_tool_warned in
  5832. yes:)
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5834. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5835. ac_tool_warned=yes ;;
  5836. esac
  5837. DSYMUTIL=$ac_ct_DSYMUTIL
  5838. fi
  5839. else
  5840. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5841. fi
  5842. if test -n "$ac_tool_prefix"; then
  5843. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5844. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5846. $as_echo_n "checking for $ac_word... " >&6; }
  5847. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. if test -n "$NMEDIT"; then
  5851. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5852. else
  5853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5854. for as_dir in $PATH
  5855. do
  5856. IFS=$as_save_IFS
  5857. test -z "$as_dir" && as_dir=.
  5858. for ac_exec_ext in '' $ac_executable_extensions; do
  5859. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5860. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5862. break 2
  5863. fi
  5864. done
  5865. done
  5866. IFS=$as_save_IFS
  5867. fi
  5868. fi
  5869. NMEDIT=$ac_cv_prog_NMEDIT
  5870. if test -n "$NMEDIT"; then
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5872. $as_echo "$NMEDIT" >&6; }
  5873. else
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5875. $as_echo "no" >&6; }
  5876. fi
  5877. fi
  5878. if test -z "$ac_cv_prog_NMEDIT"; then
  5879. ac_ct_NMEDIT=$NMEDIT
  5880. # Extract the first word of "nmedit", so it can be a program name with args.
  5881. set dummy nmedit; ac_word=$2
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5883. $as_echo_n "checking for $ac_word... " >&6; }
  5884. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5885. $as_echo_n "(cached) " >&6
  5886. else
  5887. if test -n "$ac_ct_NMEDIT"; then
  5888. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5889. else
  5890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5891. for as_dir in $PATH
  5892. do
  5893. IFS=$as_save_IFS
  5894. test -z "$as_dir" && as_dir=.
  5895. for ac_exec_ext in '' $ac_executable_extensions; do
  5896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5897. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5898. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5899. break 2
  5900. fi
  5901. done
  5902. done
  5903. IFS=$as_save_IFS
  5904. fi
  5905. fi
  5906. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5907. if test -n "$ac_ct_NMEDIT"; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5909. $as_echo "$ac_ct_NMEDIT" >&6; }
  5910. else
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5912. $as_echo "no" >&6; }
  5913. fi
  5914. if test "x$ac_ct_NMEDIT" = x; then
  5915. NMEDIT=":"
  5916. else
  5917. case $cross_compiling:$ac_tool_warned in
  5918. yes:)
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5921. ac_tool_warned=yes ;;
  5922. esac
  5923. NMEDIT=$ac_ct_NMEDIT
  5924. fi
  5925. else
  5926. NMEDIT="$ac_cv_prog_NMEDIT"
  5927. fi
  5928. if test -n "$ac_tool_prefix"; then
  5929. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5930. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5932. $as_echo_n "checking for $ac_word... " >&6; }
  5933. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. if test -n "$LIPO"; then
  5937. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5938. else
  5939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5940. for as_dir in $PATH
  5941. do
  5942. IFS=$as_save_IFS
  5943. test -z "$as_dir" && as_dir=.
  5944. for ac_exec_ext in '' $ac_executable_extensions; do
  5945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5946. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5948. break 2
  5949. fi
  5950. done
  5951. done
  5952. IFS=$as_save_IFS
  5953. fi
  5954. fi
  5955. LIPO=$ac_cv_prog_LIPO
  5956. if test -n "$LIPO"; then
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5958. $as_echo "$LIPO" >&6; }
  5959. else
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5961. $as_echo "no" >&6; }
  5962. fi
  5963. fi
  5964. if test -z "$ac_cv_prog_LIPO"; then
  5965. ac_ct_LIPO=$LIPO
  5966. # Extract the first word of "lipo", so it can be a program name with args.
  5967. set dummy lipo; ac_word=$2
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5969. $as_echo_n "checking for $ac_word... " >&6; }
  5970. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. if test -n "$ac_ct_LIPO"; then
  5974. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5975. else
  5976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5977. for as_dir in $PATH
  5978. do
  5979. IFS=$as_save_IFS
  5980. test -z "$as_dir" && as_dir=.
  5981. for ac_exec_ext in '' $ac_executable_extensions; do
  5982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5983. ac_cv_prog_ac_ct_LIPO="lipo"
  5984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5985. break 2
  5986. fi
  5987. done
  5988. done
  5989. IFS=$as_save_IFS
  5990. fi
  5991. fi
  5992. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5993. if test -n "$ac_ct_LIPO"; then
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5995. $as_echo "$ac_ct_LIPO" >&6; }
  5996. else
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5998. $as_echo "no" >&6; }
  5999. fi
  6000. if test "x$ac_ct_LIPO" = x; then
  6001. LIPO=":"
  6002. else
  6003. case $cross_compiling:$ac_tool_warned in
  6004. yes:)
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6007. ac_tool_warned=yes ;;
  6008. esac
  6009. LIPO=$ac_ct_LIPO
  6010. fi
  6011. else
  6012. LIPO="$ac_cv_prog_LIPO"
  6013. fi
  6014. if test -n "$ac_tool_prefix"; then
  6015. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6016. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6018. $as_echo_n "checking for $ac_word... " >&6; }
  6019. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6020. $as_echo_n "(cached) " >&6
  6021. else
  6022. if test -n "$OTOOL"; then
  6023. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6024. else
  6025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6026. for as_dir in $PATH
  6027. do
  6028. IFS=$as_save_IFS
  6029. test -z "$as_dir" && as_dir=.
  6030. for ac_exec_ext in '' $ac_executable_extensions; do
  6031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6032. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6034. break 2
  6035. fi
  6036. done
  6037. done
  6038. IFS=$as_save_IFS
  6039. fi
  6040. fi
  6041. OTOOL=$ac_cv_prog_OTOOL
  6042. if test -n "$OTOOL"; then
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6044. $as_echo "$OTOOL" >&6; }
  6045. else
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6047. $as_echo "no" >&6; }
  6048. fi
  6049. fi
  6050. if test -z "$ac_cv_prog_OTOOL"; then
  6051. ac_ct_OTOOL=$OTOOL
  6052. # Extract the first word of "otool", so it can be a program name with args.
  6053. set dummy otool; ac_word=$2
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6055. $as_echo_n "checking for $ac_word... " >&6; }
  6056. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. if test -n "$ac_ct_OTOOL"; then
  6060. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6061. else
  6062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6063. for as_dir in $PATH
  6064. do
  6065. IFS=$as_save_IFS
  6066. test -z "$as_dir" && as_dir=.
  6067. for ac_exec_ext in '' $ac_executable_extensions; do
  6068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6069. ac_cv_prog_ac_ct_OTOOL="otool"
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6071. break 2
  6072. fi
  6073. done
  6074. done
  6075. IFS=$as_save_IFS
  6076. fi
  6077. fi
  6078. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6079. if test -n "$ac_ct_OTOOL"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6081. $as_echo "$ac_ct_OTOOL" >&6; }
  6082. else
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6084. $as_echo "no" >&6; }
  6085. fi
  6086. if test "x$ac_ct_OTOOL" = x; then
  6087. OTOOL=":"
  6088. else
  6089. case $cross_compiling:$ac_tool_warned in
  6090. yes:)
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6092. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6093. ac_tool_warned=yes ;;
  6094. esac
  6095. OTOOL=$ac_ct_OTOOL
  6096. fi
  6097. else
  6098. OTOOL="$ac_cv_prog_OTOOL"
  6099. fi
  6100. if test -n "$ac_tool_prefix"; then
  6101. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6102. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6104. $as_echo_n "checking for $ac_word... " >&6; }
  6105. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6106. $as_echo_n "(cached) " >&6
  6107. else
  6108. if test -n "$OTOOL64"; then
  6109. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6110. else
  6111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6112. for as_dir in $PATH
  6113. do
  6114. IFS=$as_save_IFS
  6115. test -z "$as_dir" && as_dir=.
  6116. for ac_exec_ext in '' $ac_executable_extensions; do
  6117. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6118. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6119. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6120. break 2
  6121. fi
  6122. done
  6123. done
  6124. IFS=$as_save_IFS
  6125. fi
  6126. fi
  6127. OTOOL64=$ac_cv_prog_OTOOL64
  6128. if test -n "$OTOOL64"; then
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6130. $as_echo "$OTOOL64" >&6; }
  6131. else
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6133. $as_echo "no" >&6; }
  6134. fi
  6135. fi
  6136. if test -z "$ac_cv_prog_OTOOL64"; then
  6137. ac_ct_OTOOL64=$OTOOL64
  6138. # Extract the first word of "otool64", so it can be a program name with args.
  6139. set dummy otool64; ac_word=$2
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6141. $as_echo_n "checking for $ac_word... " >&6; }
  6142. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. if test -n "$ac_ct_OTOOL64"; then
  6146. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6147. else
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6155. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. fi
  6163. fi
  6164. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6165. if test -n "$ac_ct_OTOOL64"; then
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6167. $as_echo "$ac_ct_OTOOL64" >&6; }
  6168. else
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6170. $as_echo "no" >&6; }
  6171. fi
  6172. if test "x$ac_ct_OTOOL64" = x; then
  6173. OTOOL64=":"
  6174. else
  6175. case $cross_compiling:$ac_tool_warned in
  6176. yes:)
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6178. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6179. ac_tool_warned=yes ;;
  6180. esac
  6181. OTOOL64=$ac_ct_OTOOL64
  6182. fi
  6183. else
  6184. OTOOL64="$ac_cv_prog_OTOOL64"
  6185. fi
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6187. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6188. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. lt_cv_apple_cc_single_mod=no
  6192. if test -z "${LT_MULTI_MODULE}"; then
  6193. # By default we will add the -single_module flag. You can override
  6194. # by either setting the environment variable LT_MULTI_MODULE
  6195. # non-empty at configure time, or by adding -multi_module to the
  6196. # link flags.
  6197. rm -rf libconftest.dylib*
  6198. echo "int foo(void){return 1;}" > conftest.c
  6199. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6200. -dynamiclib -Wl,-single_module conftest.c" >&5
  6201. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6202. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6203. _lt_result=$?
  6204. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6205. lt_cv_apple_cc_single_mod=yes
  6206. else
  6207. cat conftest.err >&5
  6208. fi
  6209. rm -rf libconftest.dylib*
  6210. rm -f conftest.*
  6211. fi
  6212. fi
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6214. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6216. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6217. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. lt_cv_ld_exported_symbols_list=no
  6221. save_LDFLAGS=$LDFLAGS
  6222. echo "_main" > conftest.sym
  6223. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6225. /* end confdefs.h. */
  6226. int
  6227. main ()
  6228. {
  6229. ;
  6230. return 0;
  6231. }
  6232. _ACEOF
  6233. if ac_fn_c_try_link "$LINENO"; then :
  6234. lt_cv_ld_exported_symbols_list=yes
  6235. else
  6236. lt_cv_ld_exported_symbols_list=no
  6237. fi
  6238. rm -f core conftest.err conftest.$ac_objext \
  6239. conftest$ac_exeext conftest.$ac_ext
  6240. LDFLAGS="$save_LDFLAGS"
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6243. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6244. case $host_os in
  6245. rhapsody* | darwin1.[012])
  6246. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6247. darwin1.*)
  6248. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6249. darwin*) # darwin 5.x on
  6250. # if running on 10.5 or later, the deployment target defaults
  6251. # to the OS version, if on x86, and 10.4, the deployment
  6252. # target defaults to 10.4. Don't you love it?
  6253. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6254. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6255. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6256. 10.[012]*)
  6257. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6258. 10.*)
  6259. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6260. esac
  6261. ;;
  6262. esac
  6263. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6264. _lt_dar_single_mod='$single_module'
  6265. fi
  6266. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6267. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6268. else
  6269. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6270. fi
  6271. if test "$DSYMUTIL" != ":"; then
  6272. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6273. else
  6274. _lt_dsymutil=
  6275. fi
  6276. ;;
  6277. esac
  6278. ac_ext=c
  6279. ac_cpp='$CPP $CPPFLAGS'
  6280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6284. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6285. # On Suns, sometimes $CPP names a directory.
  6286. if test -n "$CPP" && test -d "$CPP"; then
  6287. CPP=
  6288. fi
  6289. if test -z "$CPP"; then
  6290. if test "${ac_cv_prog_CPP+set}" = set; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. # Double quotes because CPP needs to be expanded
  6294. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6295. do
  6296. ac_preproc_ok=false
  6297. for ac_c_preproc_warn_flag in '' yes
  6298. do
  6299. # Use a header file that comes with gcc, so configuring glibc
  6300. # with a fresh cross-compiler works.
  6301. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6302. # <limits.h> exists even on freestanding compilers.
  6303. # On the NeXT, cc -E runs the code through the compiler's parser,
  6304. # not just through cpp. "Syntax error" is here to catch this case.
  6305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6306. /* end confdefs.h. */
  6307. #ifdef __STDC__
  6308. # include <limits.h>
  6309. #else
  6310. # include <assert.h>
  6311. #endif
  6312. Syntax error
  6313. _ACEOF
  6314. if ac_fn_c_try_cpp "$LINENO"; then :
  6315. else
  6316. # Broken: fails on valid input.
  6317. continue
  6318. fi
  6319. rm -f conftest.err conftest.$ac_ext
  6320. # OK, works on sane cases. Now check whether nonexistent headers
  6321. # can be detected and how.
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. #include <ac_nonexistent.h>
  6325. _ACEOF
  6326. if ac_fn_c_try_cpp "$LINENO"; then :
  6327. # Broken: success on invalid input.
  6328. continue
  6329. else
  6330. # Passes both tests.
  6331. ac_preproc_ok=:
  6332. break
  6333. fi
  6334. rm -f conftest.err conftest.$ac_ext
  6335. done
  6336. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6337. rm -f conftest.err conftest.$ac_ext
  6338. if $ac_preproc_ok; then :
  6339. break
  6340. fi
  6341. done
  6342. ac_cv_prog_CPP=$CPP
  6343. fi
  6344. CPP=$ac_cv_prog_CPP
  6345. else
  6346. ac_cv_prog_CPP=$CPP
  6347. fi
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6349. $as_echo "$CPP" >&6; }
  6350. ac_preproc_ok=false
  6351. for ac_c_preproc_warn_flag in '' yes
  6352. do
  6353. # Use a header file that comes with gcc, so configuring glibc
  6354. # with a fresh cross-compiler works.
  6355. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6356. # <limits.h> exists even on freestanding compilers.
  6357. # On the NeXT, cc -E runs the code through the compiler's parser,
  6358. # not just through cpp. "Syntax error" is here to catch this case.
  6359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6360. /* end confdefs.h. */
  6361. #ifdef __STDC__
  6362. # include <limits.h>
  6363. #else
  6364. # include <assert.h>
  6365. #endif
  6366. Syntax error
  6367. _ACEOF
  6368. if ac_fn_c_try_cpp "$LINENO"; then :
  6369. else
  6370. # Broken: fails on valid input.
  6371. continue
  6372. fi
  6373. rm -f conftest.err conftest.$ac_ext
  6374. # OK, works on sane cases. Now check whether nonexistent headers
  6375. # can be detected and how.
  6376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6377. /* end confdefs.h. */
  6378. #include <ac_nonexistent.h>
  6379. _ACEOF
  6380. if ac_fn_c_try_cpp "$LINENO"; then :
  6381. # Broken: success on invalid input.
  6382. continue
  6383. else
  6384. # Passes both tests.
  6385. ac_preproc_ok=:
  6386. break
  6387. fi
  6388. rm -f conftest.err conftest.$ac_ext
  6389. done
  6390. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6391. rm -f conftest.err conftest.$ac_ext
  6392. if $ac_preproc_ok; then :
  6393. else
  6394. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6396. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6397. See \`config.log' for more details." "$LINENO" 5; }
  6398. fi
  6399. ac_ext=c
  6400. ac_cpp='$CPP $CPPFLAGS'
  6401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6405. $as_echo_n "checking for ANSI C header files... " >&6; }
  6406. if test "${ac_cv_header_stdc+set}" = set; then :
  6407. $as_echo_n "(cached) " >&6
  6408. else
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. #include <stdlib.h>
  6412. #include <stdarg.h>
  6413. #include <string.h>
  6414. #include <float.h>
  6415. int
  6416. main ()
  6417. {
  6418. ;
  6419. return 0;
  6420. }
  6421. _ACEOF
  6422. if ac_fn_c_try_compile "$LINENO"; then :
  6423. ac_cv_header_stdc=yes
  6424. else
  6425. ac_cv_header_stdc=no
  6426. fi
  6427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6428. if test $ac_cv_header_stdc = yes; then
  6429. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6431. /* end confdefs.h. */
  6432. #include <string.h>
  6433. _ACEOF
  6434. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6435. $EGREP "memchr" >/dev/null 2>&1; then :
  6436. else
  6437. ac_cv_header_stdc=no
  6438. fi
  6439. rm -f conftest*
  6440. fi
  6441. if test $ac_cv_header_stdc = yes; then
  6442. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6444. /* end confdefs.h. */
  6445. #include <stdlib.h>
  6446. _ACEOF
  6447. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6448. $EGREP "free" >/dev/null 2>&1; then :
  6449. else
  6450. ac_cv_header_stdc=no
  6451. fi
  6452. rm -f conftest*
  6453. fi
  6454. if test $ac_cv_header_stdc = yes; then
  6455. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6456. if test "$cross_compiling" = yes; then :
  6457. :
  6458. else
  6459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6460. /* end confdefs.h. */
  6461. #include <ctype.h>
  6462. #include <stdlib.h>
  6463. #if ((' ' & 0x0FF) == 0x020)
  6464. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6465. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6466. #else
  6467. # define ISLOWER(c) \
  6468. (('a' <= (c) && (c) <= 'i') \
  6469. || ('j' <= (c) && (c) <= 'r') \
  6470. || ('s' <= (c) && (c) <= 'z'))
  6471. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6472. #endif
  6473. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6474. int
  6475. main ()
  6476. {
  6477. int i;
  6478. for (i = 0; i < 256; i++)
  6479. if (XOR (islower (i), ISLOWER (i))
  6480. || toupper (i) != TOUPPER (i))
  6481. return 2;
  6482. return 0;
  6483. }
  6484. _ACEOF
  6485. if ac_fn_c_try_run "$LINENO"; then :
  6486. else
  6487. ac_cv_header_stdc=no
  6488. fi
  6489. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6490. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6491. fi
  6492. fi
  6493. fi
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6495. $as_echo "$ac_cv_header_stdc" >&6; }
  6496. if test $ac_cv_header_stdc = yes; then
  6497. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6498. fi
  6499. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6500. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6501. inttypes.h stdint.h unistd.h
  6502. do :
  6503. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6504. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6505. "
  6506. eval as_val=\$$as_ac_Header
  6507. if test "x$as_val" = x""yes; then :
  6508. cat >>confdefs.h <<_ACEOF
  6509. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6510. _ACEOF
  6511. fi
  6512. done
  6513. for ac_header in dlfcn.h
  6514. do :
  6515. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6516. "
  6517. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6518. cat >>confdefs.h <<_ACEOF
  6519. #define HAVE_DLFCN_H 1
  6520. _ACEOF
  6521. fi
  6522. done
  6523. # Set options
  6524. enable_dlopen=no
  6525. enable_win32_dll=no
  6526. # Check whether --enable-shared was given.
  6527. if test "${enable_shared+set}" = set; then :
  6528. enableval=$enable_shared; p=${PACKAGE-default}
  6529. case $enableval in
  6530. yes) enable_shared=yes ;;
  6531. no) enable_shared=no ;;
  6532. *)
  6533. enable_shared=no
  6534. # Look at the argument we got. We use all the common list separators.
  6535. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6536. for pkg in $enableval; do
  6537. IFS="$lt_save_ifs"
  6538. if test "X$pkg" = "X$p"; then
  6539. enable_shared=yes
  6540. fi
  6541. done
  6542. IFS="$lt_save_ifs"
  6543. ;;
  6544. esac
  6545. else
  6546. enable_shared=yes
  6547. fi
  6548. # Check whether --enable-static was given.
  6549. if test "${enable_static+set}" = set; then :
  6550. enableval=$enable_static; p=${PACKAGE-default}
  6551. case $enableval in
  6552. yes) enable_static=yes ;;
  6553. no) enable_static=no ;;
  6554. *)
  6555. enable_static=no
  6556. # Look at the argument we got. We use all the common list separators.
  6557. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6558. for pkg in $enableval; do
  6559. IFS="$lt_save_ifs"
  6560. if test "X$pkg" = "X$p"; then
  6561. enable_static=yes
  6562. fi
  6563. done
  6564. IFS="$lt_save_ifs"
  6565. ;;
  6566. esac
  6567. else
  6568. enable_static=yes
  6569. fi
  6570. # Check whether --with-pic was given.
  6571. if test "${with_pic+set}" = set; then :
  6572. withval=$with_pic; pic_mode="$withval"
  6573. else
  6574. pic_mode=default
  6575. fi
  6576. test -z "$pic_mode" && pic_mode=default
  6577. # Check whether --enable-fast-install was given.
  6578. if test "${enable_fast_install+set}" = set; then :
  6579. enableval=$enable_fast_install; p=${PACKAGE-default}
  6580. case $enableval in
  6581. yes) enable_fast_install=yes ;;
  6582. no) enable_fast_install=no ;;
  6583. *)
  6584. enable_fast_install=no
  6585. # Look at the argument we got. We use all the common list separators.
  6586. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6587. for pkg in $enableval; do
  6588. IFS="$lt_save_ifs"
  6589. if test "X$pkg" = "X$p"; then
  6590. enable_fast_install=yes
  6591. fi
  6592. done
  6593. IFS="$lt_save_ifs"
  6594. ;;
  6595. esac
  6596. else
  6597. enable_fast_install=yes
  6598. fi
  6599. # This can be used to rebuild libtool when needed
  6600. LIBTOOL_DEPS="$ltmain"
  6601. # Always use our own libtool.
  6602. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6603. test -z "$LN_S" && LN_S="ln -s"
  6604. if test -n "${ZSH_VERSION+set}" ; then
  6605. setopt NO_GLOB_SUBST
  6606. fi
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6608. $as_echo_n "checking for objdir... " >&6; }
  6609. if test "${lt_cv_objdir+set}" = set; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. rm -f .libs 2>/dev/null
  6613. mkdir .libs 2>/dev/null
  6614. if test -d .libs; then
  6615. lt_cv_objdir=.libs
  6616. else
  6617. # MS-DOS does not allow filenames that begin with a dot.
  6618. lt_cv_objdir=_libs
  6619. fi
  6620. rmdir .libs 2>/dev/null
  6621. fi
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6623. $as_echo "$lt_cv_objdir" >&6; }
  6624. objdir=$lt_cv_objdir
  6625. cat >>confdefs.h <<_ACEOF
  6626. #define LT_OBJDIR "$lt_cv_objdir/"
  6627. _ACEOF
  6628. case $host_os in
  6629. aix3*)
  6630. # AIX sometimes has problems with the GCC collect2 program. For some
  6631. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6632. # vanish in a puff of smoke.
  6633. if test "X${COLLECT_NAMES+set}" != Xset; then
  6634. COLLECT_NAMES=
  6635. export COLLECT_NAMES
  6636. fi
  6637. ;;
  6638. esac
  6639. # Sed substitution that helps us do robust quoting. It backslashifies
  6640. # metacharacters that are still active within double-quoted strings.
  6641. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6642. # Same as above, but do not quote variable references.
  6643. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6644. # Sed substitution to delay expansion of an escaped shell variable in a
  6645. # double_quote_subst'ed string.
  6646. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6647. # Sed substitution to delay expansion of an escaped single quote.
  6648. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6649. # Sed substitution to avoid accidental globbing in evaled expressions
  6650. no_glob_subst='s/\*/\\\*/g'
  6651. # Global variables:
  6652. ofile=libtool
  6653. can_build_shared=yes
  6654. # All known linkers require a `.a' archive for static linking (except MSVC,
  6655. # which needs '.lib').
  6656. libext=a
  6657. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6658. old_CC="$CC"
  6659. old_CFLAGS="$CFLAGS"
  6660. # Set sane defaults for various variables
  6661. test -z "$CC" && CC=cc
  6662. test -z "$LTCC" && LTCC=$CC
  6663. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6664. test -z "$LD" && LD=ld
  6665. test -z "$ac_objext" && ac_objext=o
  6666. for cc_temp in $compiler""; do
  6667. case $cc_temp in
  6668. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6669. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6670. \-*) ;;
  6671. *) break;;
  6672. esac
  6673. done
  6674. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6675. # Only perform the check for file, if the check method requires it
  6676. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6677. case $deplibs_check_method in
  6678. file_magic*)
  6679. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6681. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6682. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6683. $as_echo_n "(cached) " >&6
  6684. else
  6685. case $MAGIC_CMD in
  6686. [\\/*] | ?:[\\/]*)
  6687. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6688. ;;
  6689. *)
  6690. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6691. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6692. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6693. for ac_dir in $ac_dummy; do
  6694. IFS="$lt_save_ifs"
  6695. test -z "$ac_dir" && ac_dir=.
  6696. if test -f $ac_dir/${ac_tool_prefix}file; then
  6697. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6698. if test -n "$file_magic_test_file"; then
  6699. case $deplibs_check_method in
  6700. "file_magic "*)
  6701. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6702. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6703. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6704. $EGREP "$file_magic_regex" > /dev/null; then
  6705. :
  6706. else
  6707. cat <<_LT_EOF 1>&2
  6708. *** Warning: the command libtool uses to detect shared libraries,
  6709. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6710. *** The result is that libtool may fail to recognize shared libraries
  6711. *** as such. This will affect the creation of libtool libraries that
  6712. *** depend on shared libraries, but programs linked with such libtool
  6713. *** libraries will work regardless of this problem. Nevertheless, you
  6714. *** may want to report the problem to your system manager and/or to
  6715. *** bug-libtool@gnu.org
  6716. _LT_EOF
  6717. fi ;;
  6718. esac
  6719. fi
  6720. break
  6721. fi
  6722. done
  6723. IFS="$lt_save_ifs"
  6724. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6725. ;;
  6726. esac
  6727. fi
  6728. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6729. if test -n "$MAGIC_CMD"; then
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6731. $as_echo "$MAGIC_CMD" >&6; }
  6732. else
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6734. $as_echo "no" >&6; }
  6735. fi
  6736. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6737. if test -n "$ac_tool_prefix"; then
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6739. $as_echo_n "checking for file... " >&6; }
  6740. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. case $MAGIC_CMD in
  6744. [\\/*] | ?:[\\/]*)
  6745. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6746. ;;
  6747. *)
  6748. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6749. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6750. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6751. for ac_dir in $ac_dummy; do
  6752. IFS="$lt_save_ifs"
  6753. test -z "$ac_dir" && ac_dir=.
  6754. if test -f $ac_dir/file; then
  6755. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6756. if test -n "$file_magic_test_file"; then
  6757. case $deplibs_check_method in
  6758. "file_magic "*)
  6759. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6760. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6761. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6762. $EGREP "$file_magic_regex" > /dev/null; then
  6763. :
  6764. else
  6765. cat <<_LT_EOF 1>&2
  6766. *** Warning: the command libtool uses to detect shared libraries,
  6767. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6768. *** The result is that libtool may fail to recognize shared libraries
  6769. *** as such. This will affect the creation of libtool libraries that
  6770. *** depend on shared libraries, but programs linked with such libtool
  6771. *** libraries will work regardless of this problem. Nevertheless, you
  6772. *** may want to report the problem to your system manager and/or to
  6773. *** bug-libtool@gnu.org
  6774. _LT_EOF
  6775. fi ;;
  6776. esac
  6777. fi
  6778. break
  6779. fi
  6780. done
  6781. IFS="$lt_save_ifs"
  6782. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6783. ;;
  6784. esac
  6785. fi
  6786. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6787. if test -n "$MAGIC_CMD"; then
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6789. $as_echo "$MAGIC_CMD" >&6; }
  6790. else
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6792. $as_echo "no" >&6; }
  6793. fi
  6794. else
  6795. MAGIC_CMD=:
  6796. fi
  6797. fi
  6798. fi
  6799. ;;
  6800. esac
  6801. # Use C for the default configuration in the libtool script
  6802. lt_save_CC="$CC"
  6803. ac_ext=c
  6804. ac_cpp='$CPP $CPPFLAGS'
  6805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6808. # Source file extension for C test sources.
  6809. ac_ext=c
  6810. # Object file extension for compiled C test sources.
  6811. objext=o
  6812. objext=$objext
  6813. # Code to be used in simple compile tests
  6814. lt_simple_compile_test_code="int some_variable = 0;"
  6815. # Code to be used in simple link tests
  6816. lt_simple_link_test_code='int main(){return(0);}'
  6817. # If no C compiler was specified, use CC.
  6818. LTCC=${LTCC-"$CC"}
  6819. # If no C compiler flags were specified, use CFLAGS.
  6820. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6821. # Allow CC to be a program name with arguments.
  6822. compiler=$CC
  6823. # Save the default compiler, since it gets overwritten when the other
  6824. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6825. compiler_DEFAULT=$CC
  6826. # save warnings/boilerplate of simple test code
  6827. ac_outfile=conftest.$ac_objext
  6828. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6829. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6830. _lt_compiler_boilerplate=`cat conftest.err`
  6831. $RM conftest*
  6832. ac_outfile=conftest.$ac_objext
  6833. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6834. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6835. _lt_linker_boilerplate=`cat conftest.err`
  6836. $RM -r conftest*
  6837. if test -n "$compiler"; then
  6838. lt_prog_compiler_no_builtin_flag=
  6839. if test "$GCC" = yes; then
  6840. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6842. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6843. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. lt_cv_prog_compiler_rtti_exceptions=no
  6847. ac_outfile=conftest.$ac_objext
  6848. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6849. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6850. # Insert the option either (1) after the last *FLAGS variable, or
  6851. # (2) before a word containing "conftest.", or (3) at the end.
  6852. # Note that $ac_compile itself does not contain backslashes and begins
  6853. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6854. # The option is referenced via a variable to avoid confusing sed.
  6855. lt_compile=`echo "$ac_compile" | $SED \
  6856. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6857. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6858. -e 's:$: $lt_compiler_flag:'`
  6859. (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
  6860. (eval "$lt_compile" 2>conftest.err)
  6861. ac_status=$?
  6862. cat conftest.err >&5
  6863. echo "$as_me:7862: \$? = $ac_status" >&5
  6864. if (exit $ac_status) && test -s "$ac_outfile"; then
  6865. # The compiler can only warn and ignore the option if not recognized
  6866. # So say no if there are warnings other than the usual output.
  6867. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6868. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6869. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6870. lt_cv_prog_compiler_rtti_exceptions=yes
  6871. fi
  6872. fi
  6873. $RM conftest*
  6874. fi
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6876. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6877. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6878. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6879. else
  6880. :
  6881. fi
  6882. fi
  6883. lt_prog_compiler_wl=
  6884. lt_prog_compiler_pic=
  6885. lt_prog_compiler_static=
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6887. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6888. if test "$GCC" = yes; then
  6889. lt_prog_compiler_wl='-Wl,'
  6890. lt_prog_compiler_static='-static'
  6891. case $host_os in
  6892. aix*)
  6893. # All AIX code is PIC.
  6894. if test "$host_cpu" = ia64; then
  6895. # AIX 5 now supports IA64 processor
  6896. lt_prog_compiler_static='-Bstatic'
  6897. fi
  6898. ;;
  6899. amigaos*)
  6900. case $host_cpu in
  6901. powerpc)
  6902. # see comment about AmigaOS4 .so support
  6903. lt_prog_compiler_pic='-fPIC'
  6904. ;;
  6905. m68k)
  6906. # FIXME: we need at least 68020 code to build shared libraries, but
  6907. # adding the `-m68020' flag to GCC prevents building anything better,
  6908. # like `-m68040'.
  6909. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6910. ;;
  6911. esac
  6912. ;;
  6913. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6914. # PIC is the default for these OSes.
  6915. ;;
  6916. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6917. # This hack is so that the source file can tell whether it is being
  6918. # built for inclusion in a dll (and should export symbols for example).
  6919. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6920. # (--disable-auto-import) libraries
  6921. lt_prog_compiler_pic='-DDLL_EXPORT'
  6922. ;;
  6923. darwin* | rhapsody*)
  6924. # PIC is the default on this platform
  6925. # Common symbols not allowed in MH_DYLIB files
  6926. lt_prog_compiler_pic='-fno-common'
  6927. ;;
  6928. hpux*)
  6929. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6930. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6931. # sets the default TLS model and affects inlining.
  6932. case $host_cpu in
  6933. hppa*64*)
  6934. # +Z the default
  6935. ;;
  6936. *)
  6937. lt_prog_compiler_pic='-fPIC'
  6938. ;;
  6939. esac
  6940. ;;
  6941. interix[3-9]*)
  6942. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6943. # Instead, we relocate shared libraries at runtime.
  6944. ;;
  6945. msdosdjgpp*)
  6946. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6947. # on systems that don't support them.
  6948. lt_prog_compiler_can_build_shared=no
  6949. enable_shared=no
  6950. ;;
  6951. *nto* | *qnx*)
  6952. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6953. # it will coredump.
  6954. lt_prog_compiler_pic='-fPIC -shared'
  6955. ;;
  6956. sysv4*MP*)
  6957. if test -d /usr/nec; then
  6958. lt_prog_compiler_pic=-Kconform_pic
  6959. fi
  6960. ;;
  6961. *)
  6962. lt_prog_compiler_pic='-fPIC'
  6963. ;;
  6964. esac
  6965. else
  6966. # PORTME Check for flag to pass linker flags through the system compiler.
  6967. case $host_os in
  6968. aix*)
  6969. lt_prog_compiler_wl='-Wl,'
  6970. if test "$host_cpu" = ia64; then
  6971. # AIX 5 now supports IA64 processor
  6972. lt_prog_compiler_static='-Bstatic'
  6973. else
  6974. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6975. fi
  6976. ;;
  6977. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6978. # This hack is so that the source file can tell whether it is being
  6979. # built for inclusion in a dll (and should export symbols for example).
  6980. lt_prog_compiler_pic='-DDLL_EXPORT'
  6981. ;;
  6982. hpux9* | hpux10* | hpux11*)
  6983. lt_prog_compiler_wl='-Wl,'
  6984. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6985. # not for PA HP-UX.
  6986. case $host_cpu in
  6987. hppa*64*|ia64*)
  6988. # +Z the default
  6989. ;;
  6990. *)
  6991. lt_prog_compiler_pic='+Z'
  6992. ;;
  6993. esac
  6994. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6995. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6996. ;;
  6997. irix5* | irix6* | nonstopux*)
  6998. lt_prog_compiler_wl='-Wl,'
  6999. # PIC (with -KPIC) is the default.
  7000. lt_prog_compiler_static='-non_shared'
  7001. ;;
  7002. linux* | k*bsd*-gnu)
  7003. case $cc_basename in
  7004. # old Intel for x86_64 which still supported -KPIC.
  7005. ecc*)
  7006. lt_prog_compiler_wl='-Wl,'
  7007. lt_prog_compiler_pic='-KPIC'
  7008. lt_prog_compiler_static='-static'
  7009. ;;
  7010. # icc used to be incompatible with GCC.
  7011. # ICC 10 doesn't accept -KPIC any more.
  7012. icc* | ifort*)
  7013. lt_prog_compiler_wl='-Wl,'
  7014. lt_prog_compiler_pic='-fPIC'
  7015. lt_prog_compiler_static='-static'
  7016. ;;
  7017. # Lahey Fortran 8.1.
  7018. lf95*)
  7019. lt_prog_compiler_wl='-Wl,'
  7020. lt_prog_compiler_pic='--shared'
  7021. lt_prog_compiler_static='--static'
  7022. ;;
  7023. pgcc* | pgf77* | pgf90* | pgf95*)
  7024. # Portland Group compilers (*not* the Pentium gcc compiler,
  7025. # which looks to be a dead project)
  7026. lt_prog_compiler_wl='-Wl,'
  7027. lt_prog_compiler_pic='-fpic'
  7028. lt_prog_compiler_static='-Bstatic'
  7029. ;;
  7030. ccc*)
  7031. lt_prog_compiler_wl='-Wl,'
  7032. # All Alpha code is PIC.
  7033. lt_prog_compiler_static='-non_shared'
  7034. ;;
  7035. xl*)
  7036. # IBM XL C 8.0/Fortran 10.1 on PPC
  7037. lt_prog_compiler_wl='-Wl,'
  7038. lt_prog_compiler_pic='-qpic'
  7039. lt_prog_compiler_static='-qstaticlink'
  7040. ;;
  7041. *)
  7042. case `$CC -V 2>&1 | sed 5q` in
  7043. *Sun\ C*)
  7044. # Sun C 5.9
  7045. lt_prog_compiler_pic='-KPIC'
  7046. lt_prog_compiler_static='-Bstatic'
  7047. lt_prog_compiler_wl='-Wl,'
  7048. ;;
  7049. *Sun\ F*)
  7050. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7051. lt_prog_compiler_pic='-KPIC'
  7052. lt_prog_compiler_static='-Bstatic'
  7053. lt_prog_compiler_wl=''
  7054. ;;
  7055. esac
  7056. ;;
  7057. esac
  7058. ;;
  7059. newsos6)
  7060. lt_prog_compiler_pic='-KPIC'
  7061. lt_prog_compiler_static='-Bstatic'
  7062. ;;
  7063. *nto* | *qnx*)
  7064. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7065. # it will coredump.
  7066. lt_prog_compiler_pic='-fPIC -shared'
  7067. ;;
  7068. osf3* | osf4* | osf5*)
  7069. lt_prog_compiler_wl='-Wl,'
  7070. # All OSF/1 code is PIC.
  7071. lt_prog_compiler_static='-non_shared'
  7072. ;;
  7073. rdos*)
  7074. lt_prog_compiler_static='-non_shared'
  7075. ;;
  7076. solaris*)
  7077. lt_prog_compiler_pic='-KPIC'
  7078. lt_prog_compiler_static='-Bstatic'
  7079. case $cc_basename in
  7080. f77* | f90* | f95*)
  7081. lt_prog_compiler_wl='-Qoption ld ';;
  7082. *)
  7083. lt_prog_compiler_wl='-Wl,';;
  7084. esac
  7085. ;;
  7086. sunos4*)
  7087. lt_prog_compiler_wl='-Qoption ld '
  7088. lt_prog_compiler_pic='-PIC'
  7089. lt_prog_compiler_static='-Bstatic'
  7090. ;;
  7091. sysv4 | sysv4.2uw2* | sysv4.3*)
  7092. lt_prog_compiler_wl='-Wl,'
  7093. lt_prog_compiler_pic='-KPIC'
  7094. lt_prog_compiler_static='-Bstatic'
  7095. ;;
  7096. sysv4*MP*)
  7097. if test -d /usr/nec ;then
  7098. lt_prog_compiler_pic='-Kconform_pic'
  7099. lt_prog_compiler_static='-Bstatic'
  7100. fi
  7101. ;;
  7102. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7103. lt_prog_compiler_wl='-Wl,'
  7104. lt_prog_compiler_pic='-KPIC'
  7105. lt_prog_compiler_static='-Bstatic'
  7106. ;;
  7107. unicos*)
  7108. lt_prog_compiler_wl='-Wl,'
  7109. lt_prog_compiler_can_build_shared=no
  7110. ;;
  7111. uts4*)
  7112. lt_prog_compiler_pic='-pic'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. ;;
  7115. *)
  7116. lt_prog_compiler_can_build_shared=no
  7117. ;;
  7118. esac
  7119. fi
  7120. case $host_os in
  7121. # For platforms which do not support PIC, -DPIC is meaningless:
  7122. *djgpp*)
  7123. lt_prog_compiler_pic=
  7124. ;;
  7125. *)
  7126. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7127. ;;
  7128. esac
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7130. $as_echo "$lt_prog_compiler_pic" >&6; }
  7131. #
  7132. # Check to make sure the PIC flag actually works.
  7133. #
  7134. if test -n "$lt_prog_compiler_pic"; then
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7136. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7137. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7138. $as_echo_n "(cached) " >&6
  7139. else
  7140. lt_cv_prog_compiler_pic_works=no
  7141. ac_outfile=conftest.$ac_objext
  7142. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7143. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7144. # Insert the option either (1) after the last *FLAGS variable, or
  7145. # (2) before a word containing "conftest.", or (3) at the end.
  7146. # Note that $ac_compile itself does not contain backslashes and begins
  7147. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7148. # The option is referenced via a variable to avoid confusing sed.
  7149. lt_compile=`echo "$ac_compile" | $SED \
  7150. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7151. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7152. -e 's:$: $lt_compiler_flag:'`
  7153. (eval echo "\"\$as_me:8197: $lt_compile\"" >&5)
  7154. (eval "$lt_compile" 2>conftest.err)
  7155. ac_status=$?
  7156. cat conftest.err >&5
  7157. echo "$as_me:8201: \$? = $ac_status" >&5
  7158. if (exit $ac_status) && test -s "$ac_outfile"; then
  7159. # The compiler can only warn and ignore the option if not recognized
  7160. # So say no if there are warnings other than the usual output.
  7161. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7162. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7163. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7164. lt_cv_prog_compiler_pic_works=yes
  7165. fi
  7166. fi
  7167. $RM conftest*
  7168. fi
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7170. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7171. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7172. case $lt_prog_compiler_pic in
  7173. "" | " "*) ;;
  7174. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7175. esac
  7176. else
  7177. lt_prog_compiler_pic=
  7178. lt_prog_compiler_can_build_shared=no
  7179. fi
  7180. fi
  7181. #
  7182. # Check to make sure the static flag actually works.
  7183. #
  7184. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7186. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7187. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7188. $as_echo_n "(cached) " >&6
  7189. else
  7190. lt_cv_prog_compiler_static_works=no
  7191. save_LDFLAGS="$LDFLAGS"
  7192. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7193. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7194. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7195. # The linker can only warn and ignore the option if not recognized
  7196. # So say no if there are warnings
  7197. if test -s conftest.err; then
  7198. # Append any errors to the config.log.
  7199. cat conftest.err 1>&5
  7200. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7201. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7202. if diff conftest.exp conftest.er2 >/dev/null; then
  7203. lt_cv_prog_compiler_static_works=yes
  7204. fi
  7205. else
  7206. lt_cv_prog_compiler_static_works=yes
  7207. fi
  7208. fi
  7209. $RM -r conftest*
  7210. LDFLAGS="$save_LDFLAGS"
  7211. fi
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7213. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7214. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7215. :
  7216. else
  7217. lt_prog_compiler_static=
  7218. fi
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7220. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7221. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_c_o=no
  7225. $RM -r conftest 2>/dev/null
  7226. mkdir conftest
  7227. cd conftest
  7228. mkdir out
  7229. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7230. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7231. # Insert the option either (1) after the last *FLAGS variable, or
  7232. # (2) before a word containing "conftest.", or (3) at the end.
  7233. # Note that $ac_compile itself does not contain backslashes and begins
  7234. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7235. lt_compile=`echo "$ac_compile" | $SED \
  7236. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7237. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7238. -e 's:$: $lt_compiler_flag:'`
  7239. (eval echo "\"\$as_me:8302: $lt_compile\"" >&5)
  7240. (eval "$lt_compile" 2>out/conftest.err)
  7241. ac_status=$?
  7242. cat out/conftest.err >&5
  7243. echo "$as_me:8306: \$? = $ac_status" >&5
  7244. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7245. then
  7246. # The compiler can only warn and ignore the option if not recognized
  7247. # So say no if there are warnings
  7248. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7249. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7250. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7251. lt_cv_prog_compiler_c_o=yes
  7252. fi
  7253. fi
  7254. chmod u+w . 2>&5
  7255. $RM conftest*
  7256. # SGI C++ compiler will create directory out/ii_files/ for
  7257. # template instantiation
  7258. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7259. $RM out/* && rmdir out
  7260. cd ..
  7261. $RM -r conftest
  7262. $RM conftest*
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7265. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7267. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7268. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7269. $as_echo_n "(cached) " >&6
  7270. else
  7271. lt_cv_prog_compiler_c_o=no
  7272. $RM -r conftest 2>/dev/null
  7273. mkdir conftest
  7274. cd conftest
  7275. mkdir out
  7276. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7277. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7278. # Insert the option either (1) after the last *FLAGS variable, or
  7279. # (2) before a word containing "conftest.", or (3) at the end.
  7280. # Note that $ac_compile itself does not contain backslashes and begins
  7281. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7282. lt_compile=`echo "$ac_compile" | $SED \
  7283. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7284. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7285. -e 's:$: $lt_compiler_flag:'`
  7286. (eval echo "\"\$as_me:8357: $lt_compile\"" >&5)
  7287. (eval "$lt_compile" 2>out/conftest.err)
  7288. ac_status=$?
  7289. cat out/conftest.err >&5
  7290. echo "$as_me:8361: \$? = $ac_status" >&5
  7291. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7292. then
  7293. # The compiler can only warn and ignore the option if not recognized
  7294. # So say no if there are warnings
  7295. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7296. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7297. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7298. lt_cv_prog_compiler_c_o=yes
  7299. fi
  7300. fi
  7301. chmod u+w . 2>&5
  7302. $RM conftest*
  7303. # SGI C++ compiler will create directory out/ii_files/ for
  7304. # template instantiation
  7305. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7306. $RM out/* && rmdir out
  7307. cd ..
  7308. $RM -r conftest
  7309. $RM conftest*
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7312. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7313. hard_links="nottested"
  7314. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7315. # do not overwrite the value of need_locks provided by the user
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7317. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7318. hard_links=yes
  7319. $RM conftest*
  7320. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7321. touch conftest.a
  7322. ln conftest.a conftest.b 2>&5 || hard_links=no
  7323. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7325. $as_echo "$hard_links" >&6; }
  7326. if test "$hard_links" = no; then
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7328. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7329. need_locks=warn
  7330. fi
  7331. else
  7332. need_locks=no
  7333. fi
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7335. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7336. runpath_var=
  7337. allow_undefined_flag=
  7338. always_export_symbols=no
  7339. archive_cmds=
  7340. archive_expsym_cmds=
  7341. compiler_needs_object=no
  7342. enable_shared_with_static_runtimes=no
  7343. export_dynamic_flag_spec=
  7344. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7345. hardcode_automatic=no
  7346. hardcode_direct=no
  7347. hardcode_direct_absolute=no
  7348. hardcode_libdir_flag_spec=
  7349. hardcode_libdir_flag_spec_ld=
  7350. hardcode_libdir_separator=
  7351. hardcode_minus_L=no
  7352. hardcode_shlibpath_var=unsupported
  7353. inherit_rpath=no
  7354. link_all_deplibs=unknown
  7355. module_cmds=
  7356. module_expsym_cmds=
  7357. old_archive_from_new_cmds=
  7358. old_archive_from_expsyms_cmds=
  7359. thread_safe_flag_spec=
  7360. whole_archive_flag_spec=
  7361. # include_expsyms should be a list of space-separated symbols to be *always*
  7362. # included in the symbol list
  7363. include_expsyms=
  7364. # exclude_expsyms can be an extended regexp of symbols to exclude
  7365. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7366. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7367. # as well as any symbol that contains `d'.
  7368. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7369. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7370. # platforms (ab)use it in PIC code, but their linkers get confused if
  7371. # the symbol is explicitly referenced. Since portable code cannot
  7372. # rely on this symbol name, it's probably fine to never include it in
  7373. # preloaded symbol tables.
  7374. # Exclude shared library initialization/finalization symbols.
  7375. extract_expsyms_cmds=
  7376. case $host_os in
  7377. cygwin* | mingw* | pw32* | cegcc*)
  7378. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7379. # When not using gcc, we currently assume that we are using
  7380. # Microsoft Visual C++.
  7381. if test "$GCC" != yes; then
  7382. with_gnu_ld=no
  7383. fi
  7384. ;;
  7385. interix*)
  7386. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7387. with_gnu_ld=yes
  7388. ;;
  7389. openbsd*)
  7390. with_gnu_ld=no
  7391. ;;
  7392. esac
  7393. ld_shlibs=yes
  7394. if test "$with_gnu_ld" = yes; then
  7395. # If archive_cmds runs LD, not CC, wlarc should be empty
  7396. wlarc='${wl}'
  7397. # Set some defaults for GNU ld with shared library support. These
  7398. # are reset later if shared libraries are not supported. Putting them
  7399. # here allows them to be overridden if necessary.
  7400. runpath_var=LD_RUN_PATH
  7401. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7402. export_dynamic_flag_spec='${wl}--export-dynamic'
  7403. # ancient GNU ld didn't support --whole-archive et. al.
  7404. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7405. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7406. else
  7407. whole_archive_flag_spec=
  7408. fi
  7409. supports_anon_versioning=no
  7410. case `$LD -v 2>&1` in
  7411. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7412. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7413. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7414. *\ 2.11.*) ;; # other 2.11 versions
  7415. *) supports_anon_versioning=yes ;;
  7416. esac
  7417. # See if GNU ld supports shared libraries.
  7418. case $host_os in
  7419. aix[3-9]*)
  7420. # On AIX/PPC, the GNU linker is very broken
  7421. if test "$host_cpu" != ia64; then
  7422. ld_shlibs=no
  7423. cat <<_LT_EOF 1>&2
  7424. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7425. *** to be unable to reliably create shared libraries on AIX.
  7426. *** Therefore, libtool is disabling shared libraries support. If you
  7427. *** really care for shared libraries, you may want to modify your PATH
  7428. *** so that a non-GNU linker is found, and then restart.
  7429. _LT_EOF
  7430. fi
  7431. ;;
  7432. amigaos*)
  7433. case $host_cpu in
  7434. powerpc)
  7435. # see comment about AmigaOS4 .so support
  7436. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7437. archive_expsym_cmds=''
  7438. ;;
  7439. m68k)
  7440. 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)'
  7441. hardcode_libdir_flag_spec='-L$libdir'
  7442. hardcode_minus_L=yes
  7443. ;;
  7444. esac
  7445. ;;
  7446. beos*)
  7447. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7448. allow_undefined_flag=unsupported
  7449. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7450. # support --undefined. This deserves some investigation. FIXME
  7451. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7452. else
  7453. ld_shlibs=no
  7454. fi
  7455. ;;
  7456. cygwin* | mingw* | pw32* | cegcc*)
  7457. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7458. # as there is no search path for DLLs.
  7459. hardcode_libdir_flag_spec='-L$libdir'
  7460. allow_undefined_flag=unsupported
  7461. always_export_symbols=no
  7462. enable_shared_with_static_runtimes=yes
  7463. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7464. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7465. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7466. # If the export-symbols file already is a .def file (1st line
  7467. # is EXPORTS), use it as is; otherwise, prepend...
  7468. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7469. cp $export_symbols $output_objdir/$soname.def;
  7470. else
  7471. echo EXPORTS > $output_objdir/$soname.def;
  7472. cat $export_symbols >> $output_objdir/$soname.def;
  7473. fi~
  7474. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7475. else
  7476. ld_shlibs=no
  7477. fi
  7478. ;;
  7479. interix[3-9]*)
  7480. hardcode_direct=no
  7481. hardcode_shlibpath_var=no
  7482. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7483. export_dynamic_flag_spec='${wl}-E'
  7484. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7485. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7486. # default) and relocated if they conflict, which is a slow very memory
  7487. # consuming and fragmenting process. To avoid this, we pick a random,
  7488. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7489. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7490. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7491. 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'
  7492. ;;
  7493. gnu* | linux* | tpf* | k*bsd*-gnu)
  7494. tmp_diet=no
  7495. if test "$host_os" = linux-dietlibc; then
  7496. case $cc_basename in
  7497. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7498. esac
  7499. fi
  7500. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7501. && test "$tmp_diet" = no
  7502. then
  7503. tmp_addflag=
  7504. tmp_sharedflag='-shared'
  7505. case $cc_basename,$host_cpu in
  7506. pgcc*) # Portland Group C compiler
  7507. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7508. tmp_addflag=' $pic_flag'
  7509. ;;
  7510. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7511. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7512. tmp_addflag=' $pic_flag -Mnomain' ;;
  7513. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7514. tmp_addflag=' -i_dynamic' ;;
  7515. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7516. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7517. ifc* | ifort*) # Intel Fortran compiler
  7518. tmp_addflag=' -nofor_main' ;;
  7519. lf95*) # Lahey Fortran 8.1
  7520. whole_archive_flag_spec=
  7521. tmp_sharedflag='--shared' ;;
  7522. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7523. tmp_sharedflag='-qmkshrobj'
  7524. tmp_addflag= ;;
  7525. esac
  7526. case `$CC -V 2>&1 | sed 5q` in
  7527. *Sun\ C*) # Sun C 5.9
  7528. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7529. compiler_needs_object=yes
  7530. tmp_sharedflag='-G' ;;
  7531. *Sun\ F*) # Sun Fortran 8.3
  7532. tmp_sharedflag='-G' ;;
  7533. esac
  7534. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7535. if test "x$supports_anon_versioning" = xyes; then
  7536. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7537. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7538. echo "local: *; };" >> $output_objdir/$libname.ver~
  7539. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7540. fi
  7541. case $cc_basename in
  7542. xlf*)
  7543. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7544. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7545. hardcode_libdir_flag_spec=
  7546. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7547. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7548. if test "x$supports_anon_versioning" = xyes; then
  7549. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7550. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7551. echo "local: *; };" >> $output_objdir/$libname.ver~
  7552. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7553. fi
  7554. ;;
  7555. esac
  7556. else
  7557. ld_shlibs=no
  7558. fi
  7559. ;;
  7560. netbsd*)
  7561. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7562. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7563. wlarc=
  7564. else
  7565. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7566. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7567. fi
  7568. ;;
  7569. solaris*)
  7570. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7571. ld_shlibs=no
  7572. cat <<_LT_EOF 1>&2
  7573. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7574. *** create shared libraries on Solaris systems. Therefore, libtool
  7575. *** is disabling shared libraries support. We urge you to upgrade GNU
  7576. *** binutils to release 2.9.1 or newer. Another option is to modify
  7577. *** your PATH or compiler configuration so that the native linker is
  7578. *** used, and then restart.
  7579. _LT_EOF
  7580. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7581. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7582. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7583. else
  7584. ld_shlibs=no
  7585. fi
  7586. ;;
  7587. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7588. case `$LD -v 2>&1` in
  7589. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7590. ld_shlibs=no
  7591. cat <<_LT_EOF 1>&2
  7592. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7593. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7594. *** is disabling shared libraries support. We urge you to upgrade GNU
  7595. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7596. *** your PATH or compiler configuration so that the native linker is
  7597. *** used, and then restart.
  7598. _LT_EOF
  7599. ;;
  7600. *)
  7601. # For security reasons, it is highly recommended that you always
  7602. # use absolute paths for naming shared libraries, and exclude the
  7603. # DT_RUNPATH tag from executables and libraries. But doing so
  7604. # requires that you compile everything twice, which is a pain.
  7605. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7606. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7607. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7608. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7609. else
  7610. ld_shlibs=no
  7611. fi
  7612. ;;
  7613. esac
  7614. ;;
  7615. sunos4*)
  7616. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7617. wlarc=
  7618. hardcode_direct=yes
  7619. hardcode_shlibpath_var=no
  7620. ;;
  7621. *)
  7622. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7623. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7624. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7625. else
  7626. ld_shlibs=no
  7627. fi
  7628. ;;
  7629. esac
  7630. if test "$ld_shlibs" = no; then
  7631. runpath_var=
  7632. hardcode_libdir_flag_spec=
  7633. export_dynamic_flag_spec=
  7634. whole_archive_flag_spec=
  7635. fi
  7636. else
  7637. # PORTME fill in a description of your system's linker (not GNU ld)
  7638. case $host_os in
  7639. aix3*)
  7640. allow_undefined_flag=unsupported
  7641. always_export_symbols=yes
  7642. 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'
  7643. # Note: this linker hardcodes the directories in LIBPATH if there
  7644. # are no directories specified by -L.
  7645. hardcode_minus_L=yes
  7646. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7647. # Neither direct hardcoding nor static linking is supported with a
  7648. # broken collect2.
  7649. hardcode_direct=unsupported
  7650. fi
  7651. ;;
  7652. aix[4-9]*)
  7653. if test "$host_cpu" = ia64; then
  7654. # On IA64, the linker does run time linking by default, so we don't
  7655. # have to do anything special.
  7656. aix_use_runtimelinking=no
  7657. exp_sym_flag='-Bexport'
  7658. no_entry_flag=""
  7659. else
  7660. # If we're using GNU nm, then we don't want the "-C" option.
  7661. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7662. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7663. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7664. else
  7665. 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'
  7666. fi
  7667. aix_use_runtimelinking=no
  7668. # Test if we are trying to use run time linking or normal
  7669. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7670. # need to do runtime linking.
  7671. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7672. for ld_flag in $LDFLAGS; do
  7673. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7674. aix_use_runtimelinking=yes
  7675. break
  7676. fi
  7677. done
  7678. ;;
  7679. esac
  7680. exp_sym_flag='-bexport'
  7681. no_entry_flag='-bnoentry'
  7682. fi
  7683. # When large executables or shared objects are built, AIX ld can
  7684. # have problems creating the table of contents. If linking a library
  7685. # or program results in "error TOC overflow" add -mminimal-toc to
  7686. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7687. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7688. archive_cmds=''
  7689. hardcode_direct=yes
  7690. hardcode_direct_absolute=yes
  7691. hardcode_libdir_separator=':'
  7692. link_all_deplibs=yes
  7693. file_list_spec='${wl}-f,'
  7694. if test "$GCC" = yes; then
  7695. case $host_os in aix4.[012]|aix4.[012].*)
  7696. # We only want to do this on AIX 4.2 and lower, the check
  7697. # below for broken collect2 doesn't work under 4.3+
  7698. collect2name=`${CC} -print-prog-name=collect2`
  7699. if test -f "$collect2name" &&
  7700. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7701. then
  7702. # We have reworked collect2
  7703. :
  7704. else
  7705. # We have old collect2
  7706. hardcode_direct=unsupported
  7707. # It fails to find uninstalled libraries when the uninstalled
  7708. # path is not listed in the libpath. Setting hardcode_minus_L
  7709. # to unsupported forces relinking
  7710. hardcode_minus_L=yes
  7711. hardcode_libdir_flag_spec='-L$libdir'
  7712. hardcode_libdir_separator=
  7713. fi
  7714. ;;
  7715. esac
  7716. shared_flag='-shared'
  7717. if test "$aix_use_runtimelinking" = yes; then
  7718. shared_flag="$shared_flag "'${wl}-G'
  7719. fi
  7720. else
  7721. # not using gcc
  7722. if test "$host_cpu" = ia64; then
  7723. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7724. # chokes on -Wl,-G. The following line is correct:
  7725. shared_flag='-G'
  7726. else
  7727. if test "$aix_use_runtimelinking" = yes; then
  7728. shared_flag='${wl}-G'
  7729. else
  7730. shared_flag='${wl}-bM:SRE'
  7731. fi
  7732. fi
  7733. fi
  7734. export_dynamic_flag_spec='${wl}-bexpall'
  7735. # It seems that -bexpall does not export symbols beginning with
  7736. # underscore (_), so it is better to generate a list of symbols to export.
  7737. always_export_symbols=yes
  7738. if test "$aix_use_runtimelinking" = yes; then
  7739. # Warning - without using the other runtime loading flags (-brtl),
  7740. # -berok will link without error, but may produce a broken library.
  7741. allow_undefined_flag='-berok'
  7742. # Determine the default libpath from the value encoded in an
  7743. # empty executable.
  7744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7745. /* end confdefs.h. */
  7746. int
  7747. main ()
  7748. {
  7749. ;
  7750. return 0;
  7751. }
  7752. _ACEOF
  7753. if ac_fn_c_try_link "$LINENO"; then :
  7754. lt_aix_libpath_sed='
  7755. /Import File Strings/,/^$/ {
  7756. /^0/ {
  7757. s/^0 *\(.*\)$/\1/
  7758. p
  7759. }
  7760. }'
  7761. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7762. # Check for a 64-bit object if we didn't find anything.
  7763. if test -z "$aix_libpath"; then
  7764. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7765. fi
  7766. fi
  7767. rm -f core conftest.err conftest.$ac_objext \
  7768. conftest$ac_exeext conftest.$ac_ext
  7769. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7770. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7771. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7772. else
  7773. if test "$host_cpu" = ia64; then
  7774. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7775. allow_undefined_flag="-z nodefs"
  7776. 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"
  7777. else
  7778. # Determine the default libpath from the value encoded in an
  7779. # empty executable.
  7780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7781. /* end confdefs.h. */
  7782. int
  7783. main ()
  7784. {
  7785. ;
  7786. return 0;
  7787. }
  7788. _ACEOF
  7789. if ac_fn_c_try_link "$LINENO"; then :
  7790. lt_aix_libpath_sed='
  7791. /Import File Strings/,/^$/ {
  7792. /^0/ {
  7793. s/^0 *\(.*\)$/\1/
  7794. p
  7795. }
  7796. }'
  7797. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7798. # Check for a 64-bit object if we didn't find anything.
  7799. if test -z "$aix_libpath"; then
  7800. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7801. fi
  7802. fi
  7803. rm -f core conftest.err conftest.$ac_objext \
  7804. conftest$ac_exeext conftest.$ac_ext
  7805. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7806. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7807. # Warning - without using the other run time loading flags,
  7808. # -berok will link without error, but may produce a broken library.
  7809. no_undefined_flag=' ${wl}-bernotok'
  7810. allow_undefined_flag=' ${wl}-berok'
  7811. # Exported symbols can be pulled into shared objects from archives
  7812. whole_archive_flag_spec='$convenience'
  7813. archive_cmds_need_lc=yes
  7814. # This is similar to how AIX traditionally builds its shared libraries.
  7815. 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'
  7816. fi
  7817. fi
  7818. ;;
  7819. amigaos*)
  7820. case $host_cpu in
  7821. powerpc)
  7822. # see comment about AmigaOS4 .so support
  7823. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7824. archive_expsym_cmds=''
  7825. ;;
  7826. m68k)
  7827. 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)'
  7828. hardcode_libdir_flag_spec='-L$libdir'
  7829. hardcode_minus_L=yes
  7830. ;;
  7831. esac
  7832. ;;
  7833. bsdi[45]*)
  7834. export_dynamic_flag_spec=-rdynamic
  7835. ;;
  7836. cygwin* | mingw* | pw32* | cegcc*)
  7837. # When not using gcc, we currently assume that we are using
  7838. # Microsoft Visual C++.
  7839. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7840. # no search path for DLLs.
  7841. hardcode_libdir_flag_spec=' '
  7842. allow_undefined_flag=unsupported
  7843. # Tell ltmain to make .lib files, not .a files.
  7844. libext=lib
  7845. # Tell ltmain to make .dll files, not .so files.
  7846. shrext_cmds=".dll"
  7847. # FIXME: Setting linknames here is a bad hack.
  7848. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7849. # The linker will automatically build a .lib file if we build a DLL.
  7850. old_archive_from_new_cmds='true'
  7851. # FIXME: Should let the user specify the lib program.
  7852. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7853. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7854. enable_shared_with_static_runtimes=yes
  7855. ;;
  7856. darwin* | rhapsody*)
  7857. archive_cmds_need_lc=no
  7858. hardcode_direct=no
  7859. hardcode_automatic=yes
  7860. hardcode_shlibpath_var=unsupported
  7861. whole_archive_flag_spec=''
  7862. link_all_deplibs=yes
  7863. allow_undefined_flag="$_lt_dar_allow_undefined"
  7864. case $cc_basename in
  7865. ifort*) _lt_dar_can_shared=yes ;;
  7866. *) _lt_dar_can_shared=$GCC ;;
  7867. esac
  7868. if test "$_lt_dar_can_shared" = "yes"; then
  7869. output_verbose_link_cmd=echo
  7870. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7871. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7872. 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}"
  7873. 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}"
  7874. else
  7875. ld_shlibs=no
  7876. fi
  7877. ;;
  7878. dgux*)
  7879. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7880. hardcode_libdir_flag_spec='-L$libdir'
  7881. hardcode_shlibpath_var=no
  7882. ;;
  7883. freebsd1*)
  7884. ld_shlibs=no
  7885. ;;
  7886. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7887. # support. Future versions do this automatically, but an explicit c++rt0.o
  7888. # does not break anything, and helps significantly (at the cost of a little
  7889. # extra space).
  7890. freebsd2.2*)
  7891. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7892. hardcode_libdir_flag_spec='-R$libdir'
  7893. hardcode_direct=yes
  7894. hardcode_shlibpath_var=no
  7895. ;;
  7896. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7897. freebsd2*)
  7898. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7899. hardcode_direct=yes
  7900. hardcode_minus_L=yes
  7901. hardcode_shlibpath_var=no
  7902. ;;
  7903. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7904. freebsd* | dragonfly*)
  7905. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7906. hardcode_libdir_flag_spec='-R$libdir'
  7907. hardcode_direct=yes
  7908. hardcode_shlibpath_var=no
  7909. ;;
  7910. hpux9*)
  7911. if test "$GCC" = yes; then
  7912. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7913. else
  7914. 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'
  7915. fi
  7916. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7917. hardcode_libdir_separator=:
  7918. hardcode_direct=yes
  7919. # hardcode_minus_L: Not really in the search PATH,
  7920. # but as the default location of the library.
  7921. hardcode_minus_L=yes
  7922. export_dynamic_flag_spec='${wl}-E'
  7923. ;;
  7924. hpux10*)
  7925. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7926. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7927. else
  7928. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7929. fi
  7930. if test "$with_gnu_ld" = no; then
  7931. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7932. hardcode_libdir_flag_spec_ld='+b $libdir'
  7933. hardcode_libdir_separator=:
  7934. hardcode_direct=yes
  7935. hardcode_direct_absolute=yes
  7936. export_dynamic_flag_spec='${wl}-E'
  7937. # hardcode_minus_L: Not really in the search PATH,
  7938. # but as the default location of the library.
  7939. hardcode_minus_L=yes
  7940. fi
  7941. ;;
  7942. hpux11*)
  7943. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7944. case $host_cpu in
  7945. hppa*64*)
  7946. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7947. ;;
  7948. ia64*)
  7949. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7950. ;;
  7951. *)
  7952. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7953. ;;
  7954. esac
  7955. else
  7956. case $host_cpu in
  7957. hppa*64*)
  7958. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7959. ;;
  7960. ia64*)
  7961. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7962. ;;
  7963. *)
  7964. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7965. ;;
  7966. esac
  7967. fi
  7968. if test "$with_gnu_ld" = no; then
  7969. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7970. hardcode_libdir_separator=:
  7971. case $host_cpu in
  7972. hppa*64*|ia64*)
  7973. hardcode_direct=no
  7974. hardcode_shlibpath_var=no
  7975. ;;
  7976. *)
  7977. hardcode_direct=yes
  7978. hardcode_direct_absolute=yes
  7979. export_dynamic_flag_spec='${wl}-E'
  7980. # hardcode_minus_L: Not really in the search PATH,
  7981. # but as the default location of the library.
  7982. hardcode_minus_L=yes
  7983. ;;
  7984. esac
  7985. fi
  7986. ;;
  7987. irix5* | irix6* | nonstopux*)
  7988. if test "$GCC" = yes; then
  7989. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7990. # Try to use the -exported_symbol ld option, if it does not
  7991. # work, assume that -exports_file does not work either and
  7992. # implicitly export all symbols.
  7993. save_LDFLAGS="$LDFLAGS"
  7994. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7996. /* end confdefs.h. */
  7997. int foo(void) {}
  7998. _ACEOF
  7999. if ac_fn_c_try_link "$LINENO"; then :
  8000. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8001. fi
  8002. rm -f core conftest.err conftest.$ac_objext \
  8003. conftest$ac_exeext conftest.$ac_ext
  8004. LDFLAGS="$save_LDFLAGS"
  8005. else
  8006. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8007. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8008. fi
  8009. archive_cmds_need_lc='no'
  8010. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8011. hardcode_libdir_separator=:
  8012. inherit_rpath=yes
  8013. link_all_deplibs=yes
  8014. ;;
  8015. netbsd*)
  8016. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8017. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8018. else
  8019. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8020. fi
  8021. hardcode_libdir_flag_spec='-R$libdir'
  8022. hardcode_direct=yes
  8023. hardcode_shlibpath_var=no
  8024. ;;
  8025. newsos6)
  8026. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8027. hardcode_direct=yes
  8028. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8029. hardcode_libdir_separator=:
  8030. hardcode_shlibpath_var=no
  8031. ;;
  8032. *nto* | *qnx*)
  8033. ;;
  8034. openbsd*)
  8035. if test -f /usr/libexec/ld.so; then
  8036. hardcode_direct=yes
  8037. hardcode_shlibpath_var=no
  8038. hardcode_direct_absolute=yes
  8039. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8040. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8041. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8042. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8043. export_dynamic_flag_spec='${wl}-E'
  8044. else
  8045. case $host_os in
  8046. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8047. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8048. hardcode_libdir_flag_spec='-R$libdir'
  8049. ;;
  8050. *)
  8051. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8052. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8053. ;;
  8054. esac
  8055. fi
  8056. else
  8057. ld_shlibs=no
  8058. fi
  8059. ;;
  8060. os2*)
  8061. hardcode_libdir_flag_spec='-L$libdir'
  8062. hardcode_minus_L=yes
  8063. allow_undefined_flag=unsupported
  8064. 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'
  8065. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8066. ;;
  8067. osf3*)
  8068. if test "$GCC" = yes; then
  8069. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8070. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8071. else
  8072. allow_undefined_flag=' -expect_unresolved \*'
  8073. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8074. fi
  8075. archive_cmds_need_lc='no'
  8076. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8077. hardcode_libdir_separator=:
  8078. ;;
  8079. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8080. if test "$GCC" = yes; then
  8081. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8082. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8083. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8084. else
  8085. allow_undefined_flag=' -expect_unresolved \*'
  8086. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8087. 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~
  8088. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8089. # Both c and cxx compiler support -rpath directly
  8090. hardcode_libdir_flag_spec='-rpath $libdir'
  8091. fi
  8092. archive_cmds_need_lc='no'
  8093. hardcode_libdir_separator=:
  8094. ;;
  8095. solaris*)
  8096. no_undefined_flag=' -z defs'
  8097. if test "$GCC" = yes; then
  8098. wlarc='${wl}'
  8099. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8100. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8101. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8102. else
  8103. case `$CC -V 2>&1` in
  8104. *"Compilers 5.0"*)
  8105. wlarc=''
  8106. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8107. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8108. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8109. ;;
  8110. *)
  8111. wlarc='${wl}'
  8112. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8113. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8114. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8115. ;;
  8116. esac
  8117. fi
  8118. hardcode_libdir_flag_spec='-R$libdir'
  8119. hardcode_shlibpath_var=no
  8120. case $host_os in
  8121. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8122. *)
  8123. # The compiler driver will combine and reorder linker options,
  8124. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8125. # but is careful enough not to reorder.
  8126. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8127. if test "$GCC" = yes; then
  8128. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8129. else
  8130. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8131. fi
  8132. ;;
  8133. esac
  8134. link_all_deplibs=yes
  8135. ;;
  8136. sunos4*)
  8137. if test "x$host_vendor" = xsequent; then
  8138. # Use $CC to link under sequent, because it throws in some extra .o
  8139. # files that make .init and .fini sections work.
  8140. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8141. else
  8142. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8143. fi
  8144. hardcode_libdir_flag_spec='-L$libdir'
  8145. hardcode_direct=yes
  8146. hardcode_minus_L=yes
  8147. hardcode_shlibpath_var=no
  8148. ;;
  8149. sysv4)
  8150. case $host_vendor in
  8151. sni)
  8152. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8153. hardcode_direct=yes # is this really true???
  8154. ;;
  8155. siemens)
  8156. ## LD is ld it makes a PLAMLIB
  8157. ## CC just makes a GrossModule.
  8158. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8159. reload_cmds='$CC -r -o $output$reload_objs'
  8160. hardcode_direct=no
  8161. ;;
  8162. motorola)
  8163. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8164. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8165. ;;
  8166. esac
  8167. runpath_var='LD_RUN_PATH'
  8168. hardcode_shlibpath_var=no
  8169. ;;
  8170. sysv4.3*)
  8171. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8172. hardcode_shlibpath_var=no
  8173. export_dynamic_flag_spec='-Bexport'
  8174. ;;
  8175. sysv4*MP*)
  8176. if test -d /usr/nec; then
  8177. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8178. hardcode_shlibpath_var=no
  8179. runpath_var=LD_RUN_PATH
  8180. hardcode_runpath_var=yes
  8181. ld_shlibs=yes
  8182. fi
  8183. ;;
  8184. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8185. no_undefined_flag='${wl}-z,text'
  8186. archive_cmds_need_lc=no
  8187. hardcode_shlibpath_var=no
  8188. runpath_var='LD_RUN_PATH'
  8189. if test "$GCC" = yes; then
  8190. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8191. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8192. else
  8193. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8194. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8195. fi
  8196. ;;
  8197. sysv5* | sco3.2v5* | sco5v6*)
  8198. # Note: We can NOT use -z defs as we might desire, because we do not
  8199. # link with -lc, and that would cause any symbols used from libc to
  8200. # always be unresolved, which means just about no library would
  8201. # ever link correctly. If we're not using GNU ld we use -z text
  8202. # though, which does catch some bad symbols but isn't as heavy-handed
  8203. # as -z defs.
  8204. no_undefined_flag='${wl}-z,text'
  8205. allow_undefined_flag='${wl}-z,nodefs'
  8206. archive_cmds_need_lc=no
  8207. hardcode_shlibpath_var=no
  8208. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8209. hardcode_libdir_separator=':'
  8210. link_all_deplibs=yes
  8211. export_dynamic_flag_spec='${wl}-Bexport'
  8212. runpath_var='LD_RUN_PATH'
  8213. if test "$GCC" = yes; then
  8214. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8215. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8216. else
  8217. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8218. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8219. fi
  8220. ;;
  8221. uts4*)
  8222. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8223. hardcode_libdir_flag_spec='-L$libdir'
  8224. hardcode_shlibpath_var=no
  8225. ;;
  8226. *)
  8227. ld_shlibs=no
  8228. ;;
  8229. esac
  8230. if test x$host_vendor = xsni; then
  8231. case $host in
  8232. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8233. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8234. ;;
  8235. esac
  8236. fi
  8237. fi
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8239. $as_echo "$ld_shlibs" >&6; }
  8240. test "$ld_shlibs" = no && can_build_shared=no
  8241. with_gnu_ld=$with_gnu_ld
  8242. #
  8243. # Do we need to explicitly link libc?
  8244. #
  8245. case "x$archive_cmds_need_lc" in
  8246. x|xyes)
  8247. # Assume -lc should be added
  8248. archive_cmds_need_lc=yes
  8249. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8250. case $archive_cmds in
  8251. *'~'*)
  8252. # FIXME: we may have to deal with multi-command sequences.
  8253. ;;
  8254. '$CC '*)
  8255. # Test whether the compiler implicitly links with -lc since on some
  8256. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8257. # to ld, don't add -lc before -lgcc.
  8258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8259. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8260. $RM conftest*
  8261. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8262. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8263. (eval $ac_compile) 2>&5
  8264. ac_status=$?
  8265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8266. test $ac_status = 0; } 2>conftest.err; then
  8267. soname=conftest
  8268. lib=conftest
  8269. libobjs=conftest.$ac_objext
  8270. deplibs=
  8271. wl=$lt_prog_compiler_wl
  8272. pic_flag=$lt_prog_compiler_pic
  8273. compiler_flags=-v
  8274. linker_flags=-v
  8275. verstring=
  8276. output_objdir=.
  8277. libname=conftest
  8278. lt_save_allow_undefined_flag=$allow_undefined_flag
  8279. allow_undefined_flag=
  8280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8281. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8282. ac_status=$?
  8283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8284. test $ac_status = 0; }
  8285. then
  8286. archive_cmds_need_lc=no
  8287. else
  8288. archive_cmds_need_lc=yes
  8289. fi
  8290. allow_undefined_flag=$lt_save_allow_undefined_flag
  8291. else
  8292. cat conftest.err 1>&5
  8293. fi
  8294. $RM conftest*
  8295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8296. $as_echo "$archive_cmds_need_lc" >&6; }
  8297. ;;
  8298. esac
  8299. fi
  8300. ;;
  8301. esac
  8302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8303. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8304. if test "$GCC" = yes; then
  8305. case $host_os in
  8306. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8307. *) lt_awk_arg="/^libraries:/" ;;
  8308. esac
  8309. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8310. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8311. # if the path contains ";" then we assume it to be the separator
  8312. # otherwise default to the standard path separator (i.e. ":") - it is
  8313. # assumed that no part of a normal pathname contains ";" but that should
  8314. # okay in the real world where ";" in dirpaths is itself problematic.
  8315. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8316. else
  8317. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8318. fi
  8319. # Ok, now we have the path, separated by spaces, we can step through it
  8320. # and add multilib dir if necessary.
  8321. lt_tmp_lt_search_path_spec=
  8322. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8323. for lt_sys_path in $lt_search_path_spec; do
  8324. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8325. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8326. else
  8327. test -d "$lt_sys_path" && \
  8328. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8329. fi
  8330. done
  8331. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8332. BEGIN {RS=" "; FS="/|\n";} {
  8333. lt_foo="";
  8334. lt_count=0;
  8335. for (lt_i = NF; lt_i > 0; lt_i--) {
  8336. if ($lt_i != "" && $lt_i != ".") {
  8337. if ($lt_i == "..") {
  8338. lt_count++;
  8339. } else {
  8340. if (lt_count == 0) {
  8341. lt_foo="/" $lt_i lt_foo;
  8342. } else {
  8343. lt_count--;
  8344. }
  8345. }
  8346. }
  8347. }
  8348. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8349. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8350. }'`
  8351. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8352. else
  8353. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8354. fi
  8355. library_names_spec=
  8356. libname_spec='lib$name'
  8357. soname_spec=
  8358. shrext_cmds=".so"
  8359. postinstall_cmds=
  8360. postuninstall_cmds=
  8361. finish_cmds=
  8362. finish_eval=
  8363. shlibpath_var=
  8364. shlibpath_overrides_runpath=unknown
  8365. version_type=none
  8366. dynamic_linker="$host_os ld.so"
  8367. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8368. need_lib_prefix=unknown
  8369. hardcode_into_libs=no
  8370. # when you set need_version to no, make sure it does not cause -set_version
  8371. # flags to be left without arguments
  8372. need_version=unknown
  8373. case $host_os in
  8374. aix3*)
  8375. version_type=linux
  8376. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8377. shlibpath_var=LIBPATH
  8378. # AIX 3 has no versioning support, so we append a major version to the name.
  8379. soname_spec='${libname}${release}${shared_ext}$major'
  8380. ;;
  8381. aix[4-9]*)
  8382. version_type=linux
  8383. need_lib_prefix=no
  8384. need_version=no
  8385. hardcode_into_libs=yes
  8386. if test "$host_cpu" = ia64; then
  8387. # AIX 5 supports IA64
  8388. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8389. shlibpath_var=LD_LIBRARY_PATH
  8390. else
  8391. # With GCC up to 2.95.x, collect2 would create an import file
  8392. # for dependence libraries. The import file would start with
  8393. # the line `#! .'. This would cause the generated library to
  8394. # depend on `.', always an invalid library. This was fixed in
  8395. # development snapshots of GCC prior to 3.0.
  8396. case $host_os in
  8397. aix4 | aix4.[01] | aix4.[01].*)
  8398. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8399. echo ' yes '
  8400. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8401. :
  8402. else
  8403. can_build_shared=no
  8404. fi
  8405. ;;
  8406. esac
  8407. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8408. # soname into executable. Probably we can add versioning support to
  8409. # collect2, so additional links can be useful in future.
  8410. if test "$aix_use_runtimelinking" = yes; then
  8411. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8412. # instead of lib<name>.a to let people know that these are not
  8413. # typical AIX shared libraries.
  8414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8415. else
  8416. # We preserve .a as extension for shared libraries through AIX4.2
  8417. # and later when we are not doing run time linking.
  8418. library_names_spec='${libname}${release}.a $libname.a'
  8419. soname_spec='${libname}${release}${shared_ext}$major'
  8420. fi
  8421. shlibpath_var=LIBPATH
  8422. fi
  8423. ;;
  8424. amigaos*)
  8425. case $host_cpu in
  8426. powerpc)
  8427. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8428. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8430. ;;
  8431. m68k)
  8432. library_names_spec='$libname.ixlibrary $libname.a'
  8433. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8434. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8435. ;;
  8436. esac
  8437. ;;
  8438. beos*)
  8439. library_names_spec='${libname}${shared_ext}'
  8440. dynamic_linker="$host_os ld.so"
  8441. shlibpath_var=LIBRARY_PATH
  8442. ;;
  8443. bsdi[45]*)
  8444. version_type=linux
  8445. need_version=no
  8446. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8447. soname_spec='${libname}${release}${shared_ext}$major'
  8448. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8449. shlibpath_var=LD_LIBRARY_PATH
  8450. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8451. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8452. # the default ld.so.conf also contains /usr/contrib/lib and
  8453. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8454. # libtool to hard-code these into programs
  8455. ;;
  8456. cygwin* | mingw* | pw32* | cegcc*)
  8457. version_type=windows
  8458. shrext_cmds=".dll"
  8459. need_version=no
  8460. need_lib_prefix=no
  8461. case $GCC,$host_os in
  8462. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8463. library_names_spec='$libname.dll.a'
  8464. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8465. postinstall_cmds='base_file=`basename \${file}`~
  8466. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8467. dldir=$destdir/`dirname \$dlpath`~
  8468. test -d \$dldir || mkdir -p \$dldir~
  8469. $install_prog $dir/$dlname \$dldir/$dlname~
  8470. chmod a+x \$dldir/$dlname~
  8471. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8472. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8473. fi'
  8474. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8475. dlpath=$dir/\$dldll~
  8476. $RM \$dlpath'
  8477. shlibpath_overrides_runpath=yes
  8478. case $host_os in
  8479. cygwin*)
  8480. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8481. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8482. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8483. ;;
  8484. mingw* | cegcc*)
  8485. # MinGW DLLs use traditional 'lib' prefix
  8486. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8487. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8488. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8489. # It is most probably a Windows format PATH printed by
  8490. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8491. # path with ; separators, and with drive letters. We can handle the
  8492. # drive letters (cygwin fileutils understands them), so leave them,
  8493. # especially as we might pass files found there to a mingw objdump,
  8494. # which wouldn't understand a cygwinified path. Ahh.
  8495. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8496. else
  8497. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8498. fi
  8499. ;;
  8500. pw32*)
  8501. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8502. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8503. ;;
  8504. esac
  8505. ;;
  8506. *)
  8507. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8508. ;;
  8509. esac
  8510. dynamic_linker='Win32 ld.exe'
  8511. # FIXME: first we should search . and the directory the executable is in
  8512. shlibpath_var=PATH
  8513. ;;
  8514. darwin* | rhapsody*)
  8515. dynamic_linker="$host_os dyld"
  8516. version_type=darwin
  8517. need_lib_prefix=no
  8518. need_version=no
  8519. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8520. soname_spec='${libname}${release}${major}$shared_ext'
  8521. shlibpath_overrides_runpath=yes
  8522. shlibpath_var=DYLD_LIBRARY_PATH
  8523. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8524. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8525. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8526. ;;
  8527. dgux*)
  8528. version_type=linux
  8529. need_lib_prefix=no
  8530. need_version=no
  8531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8532. soname_spec='${libname}${release}${shared_ext}$major'
  8533. shlibpath_var=LD_LIBRARY_PATH
  8534. ;;
  8535. freebsd1*)
  8536. dynamic_linker=no
  8537. ;;
  8538. freebsd* | dragonfly*)
  8539. # DragonFly does not have aout. When/if they implement a new
  8540. # versioning mechanism, adjust this.
  8541. if test -x /usr/bin/objformat; then
  8542. objformat=`/usr/bin/objformat`
  8543. else
  8544. case $host_os in
  8545. freebsd[123]*) objformat=aout ;;
  8546. *) objformat=elf ;;
  8547. esac
  8548. fi
  8549. version_type=freebsd-$objformat
  8550. case $version_type in
  8551. freebsd-elf*)
  8552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8553. need_version=no
  8554. need_lib_prefix=no
  8555. ;;
  8556. freebsd-*)
  8557. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8558. need_version=yes
  8559. ;;
  8560. esac
  8561. shlibpath_var=LD_LIBRARY_PATH
  8562. case $host_os in
  8563. freebsd2*)
  8564. shlibpath_overrides_runpath=yes
  8565. ;;
  8566. freebsd3.[01]* | freebsdelf3.[01]*)
  8567. shlibpath_overrides_runpath=yes
  8568. hardcode_into_libs=yes
  8569. ;;
  8570. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8571. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8572. shlibpath_overrides_runpath=no
  8573. hardcode_into_libs=yes
  8574. ;;
  8575. *) # from 4.6 on, and DragonFly
  8576. shlibpath_overrides_runpath=yes
  8577. hardcode_into_libs=yes
  8578. ;;
  8579. esac
  8580. ;;
  8581. gnu*)
  8582. version_type=linux
  8583. need_lib_prefix=no
  8584. need_version=no
  8585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8586. soname_spec='${libname}${release}${shared_ext}$major'
  8587. shlibpath_var=LD_LIBRARY_PATH
  8588. hardcode_into_libs=yes
  8589. ;;
  8590. hpux9* | hpux10* | hpux11*)
  8591. # Give a soname corresponding to the major version so that dld.sl refuses to
  8592. # link against other versions.
  8593. version_type=sunos
  8594. need_lib_prefix=no
  8595. need_version=no
  8596. case $host_cpu in
  8597. ia64*)
  8598. shrext_cmds='.so'
  8599. hardcode_into_libs=yes
  8600. dynamic_linker="$host_os dld.so"
  8601. shlibpath_var=LD_LIBRARY_PATH
  8602. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8603. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8604. soname_spec='${libname}${release}${shared_ext}$major'
  8605. if test "X$HPUX_IA64_MODE" = X32; then
  8606. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8607. else
  8608. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8609. fi
  8610. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8611. ;;
  8612. hppa*64*)
  8613. shrext_cmds='.sl'
  8614. hardcode_into_libs=yes
  8615. dynamic_linker="$host_os dld.sl"
  8616. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8617. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8619. soname_spec='${libname}${release}${shared_ext}$major'
  8620. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8621. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8622. ;;
  8623. *)
  8624. shrext_cmds='.sl'
  8625. dynamic_linker="$host_os dld.sl"
  8626. shlibpath_var=SHLIB_PATH
  8627. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8629. soname_spec='${libname}${release}${shared_ext}$major'
  8630. ;;
  8631. esac
  8632. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8633. postinstall_cmds='chmod 555 $lib'
  8634. ;;
  8635. interix[3-9]*)
  8636. version_type=linux
  8637. need_lib_prefix=no
  8638. need_version=no
  8639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8640. soname_spec='${libname}${release}${shared_ext}$major'
  8641. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8642. shlibpath_var=LD_LIBRARY_PATH
  8643. shlibpath_overrides_runpath=no
  8644. hardcode_into_libs=yes
  8645. ;;
  8646. irix5* | irix6* | nonstopux*)
  8647. case $host_os in
  8648. nonstopux*) version_type=nonstopux ;;
  8649. *)
  8650. if test "$lt_cv_prog_gnu_ld" = yes; then
  8651. version_type=linux
  8652. else
  8653. version_type=irix
  8654. fi ;;
  8655. esac
  8656. need_lib_prefix=no
  8657. need_version=no
  8658. soname_spec='${libname}${release}${shared_ext}$major'
  8659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8660. case $host_os in
  8661. irix5* | nonstopux*)
  8662. libsuff= shlibsuff=
  8663. ;;
  8664. *)
  8665. case $LD in # libtool.m4 will add one of these switches to LD
  8666. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8667. libsuff= shlibsuff= libmagic=32-bit;;
  8668. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8669. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8670. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8671. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8672. *) libsuff= shlibsuff= libmagic=never-match;;
  8673. esac
  8674. ;;
  8675. esac
  8676. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8677. shlibpath_overrides_runpath=no
  8678. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8679. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8680. hardcode_into_libs=yes
  8681. ;;
  8682. # No shared lib support for Linux oldld, aout, or coff.
  8683. linux*oldld* | linux*aout* | linux*coff*)
  8684. dynamic_linker=no
  8685. ;;
  8686. # This must be Linux ELF.
  8687. linux* | k*bsd*-gnu)
  8688. version_type=linux
  8689. need_lib_prefix=no
  8690. need_version=no
  8691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8692. soname_spec='${libname}${release}${shared_ext}$major'
  8693. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8694. shlibpath_var=LD_LIBRARY_PATH
  8695. shlibpath_overrides_runpath=no
  8696. # Some binutils ld are patched to set DT_RUNPATH
  8697. save_LDFLAGS=$LDFLAGS
  8698. save_libdir=$libdir
  8699. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8700. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8702. /* end confdefs.h. */
  8703. int
  8704. main ()
  8705. {
  8706. ;
  8707. return 0;
  8708. }
  8709. _ACEOF
  8710. if ac_fn_c_try_link "$LINENO"; then :
  8711. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8712. shlibpath_overrides_runpath=yes
  8713. fi
  8714. fi
  8715. rm -f core conftest.err conftest.$ac_objext \
  8716. conftest$ac_exeext conftest.$ac_ext
  8717. LDFLAGS=$save_LDFLAGS
  8718. libdir=$save_libdir
  8719. # This implies no fast_install, which is unacceptable.
  8720. # Some rework will be needed to allow for fast_install
  8721. # before this can be enabled.
  8722. hardcode_into_libs=yes
  8723. # Append ld.so.conf contents to the search path
  8724. if test -f /etc/ld.so.conf; then
  8725. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8726. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8727. fi
  8728. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8729. # powerpc, because MkLinux only supported shared libraries with the
  8730. # GNU dynamic linker. Since this was broken with cross compilers,
  8731. # most powerpc-linux boxes support dynamic linking these days and
  8732. # people can always --disable-shared, the test was removed, and we
  8733. # assume the GNU/Linux dynamic linker is in use.
  8734. dynamic_linker='GNU/Linux ld.so'
  8735. ;;
  8736. netbsd*)
  8737. version_type=sunos
  8738. need_lib_prefix=no
  8739. need_version=no
  8740. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8742. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8743. dynamic_linker='NetBSD (a.out) ld.so'
  8744. else
  8745. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8746. soname_spec='${libname}${release}${shared_ext}$major'
  8747. dynamic_linker='NetBSD ld.elf_so'
  8748. fi
  8749. shlibpath_var=LD_LIBRARY_PATH
  8750. shlibpath_overrides_runpath=yes
  8751. hardcode_into_libs=yes
  8752. ;;
  8753. newsos6)
  8754. version_type=linux
  8755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8756. shlibpath_var=LD_LIBRARY_PATH
  8757. shlibpath_overrides_runpath=yes
  8758. ;;
  8759. *nto* | *qnx*)
  8760. version_type=qnx
  8761. need_lib_prefix=no
  8762. need_version=no
  8763. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8764. soname_spec='${libname}${release}${shared_ext}$major'
  8765. shlibpath_var=LD_LIBRARY_PATH
  8766. shlibpath_overrides_runpath=no
  8767. hardcode_into_libs=yes
  8768. dynamic_linker='ldqnx.so'
  8769. ;;
  8770. openbsd*)
  8771. version_type=sunos
  8772. sys_lib_dlsearch_path_spec="/usr/lib"
  8773. need_lib_prefix=no
  8774. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8775. case $host_os in
  8776. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8777. *) need_version=no ;;
  8778. esac
  8779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8780. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8783. case $host_os in
  8784. openbsd2.[89] | openbsd2.[89].*)
  8785. shlibpath_overrides_runpath=no
  8786. ;;
  8787. *)
  8788. shlibpath_overrides_runpath=yes
  8789. ;;
  8790. esac
  8791. else
  8792. shlibpath_overrides_runpath=yes
  8793. fi
  8794. ;;
  8795. os2*)
  8796. libname_spec='$name'
  8797. shrext_cmds=".dll"
  8798. need_lib_prefix=no
  8799. library_names_spec='$libname${shared_ext} $libname.a'
  8800. dynamic_linker='OS/2 ld.exe'
  8801. shlibpath_var=LIBPATH
  8802. ;;
  8803. osf3* | osf4* | osf5*)
  8804. version_type=osf
  8805. need_lib_prefix=no
  8806. need_version=no
  8807. soname_spec='${libname}${release}${shared_ext}$major'
  8808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8809. shlibpath_var=LD_LIBRARY_PATH
  8810. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8811. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8812. ;;
  8813. rdos*)
  8814. dynamic_linker=no
  8815. ;;
  8816. solaris*)
  8817. version_type=linux
  8818. need_lib_prefix=no
  8819. need_version=no
  8820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8821. soname_spec='${libname}${release}${shared_ext}$major'
  8822. shlibpath_var=LD_LIBRARY_PATH
  8823. shlibpath_overrides_runpath=yes
  8824. hardcode_into_libs=yes
  8825. # ldd complains unless libraries are executable
  8826. postinstall_cmds='chmod +x $lib'
  8827. ;;
  8828. sunos4*)
  8829. version_type=sunos
  8830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8831. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. shlibpath_overrides_runpath=yes
  8834. if test "$with_gnu_ld" = yes; then
  8835. need_lib_prefix=no
  8836. fi
  8837. need_version=yes
  8838. ;;
  8839. sysv4 | sysv4.3*)
  8840. version_type=linux
  8841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8842. soname_spec='${libname}${release}${shared_ext}$major'
  8843. shlibpath_var=LD_LIBRARY_PATH
  8844. case $host_vendor in
  8845. sni)
  8846. shlibpath_overrides_runpath=no
  8847. need_lib_prefix=no
  8848. runpath_var=LD_RUN_PATH
  8849. ;;
  8850. siemens)
  8851. need_lib_prefix=no
  8852. ;;
  8853. motorola)
  8854. need_lib_prefix=no
  8855. need_version=no
  8856. shlibpath_overrides_runpath=no
  8857. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8858. ;;
  8859. esac
  8860. ;;
  8861. sysv4*MP*)
  8862. if test -d /usr/nec ;then
  8863. version_type=linux
  8864. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8865. soname_spec='$libname${shared_ext}.$major'
  8866. shlibpath_var=LD_LIBRARY_PATH
  8867. fi
  8868. ;;
  8869. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8870. version_type=freebsd-elf
  8871. need_lib_prefix=no
  8872. need_version=no
  8873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8874. soname_spec='${libname}${release}${shared_ext}$major'
  8875. shlibpath_var=LD_LIBRARY_PATH
  8876. shlibpath_overrides_runpath=yes
  8877. hardcode_into_libs=yes
  8878. if test "$with_gnu_ld" = yes; then
  8879. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8880. else
  8881. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8882. case $host_os in
  8883. sco3.2v5*)
  8884. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8885. ;;
  8886. esac
  8887. fi
  8888. sys_lib_dlsearch_path_spec='/usr/lib'
  8889. ;;
  8890. tpf*)
  8891. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8892. version_type=linux
  8893. need_lib_prefix=no
  8894. need_version=no
  8895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8896. shlibpath_var=LD_LIBRARY_PATH
  8897. shlibpath_overrides_runpath=no
  8898. hardcode_into_libs=yes
  8899. ;;
  8900. uts4*)
  8901. version_type=linux
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. shlibpath_var=LD_LIBRARY_PATH
  8905. ;;
  8906. *)
  8907. dynamic_linker=no
  8908. ;;
  8909. esac
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8911. $as_echo "$dynamic_linker" >&6; }
  8912. test "$dynamic_linker" = no && can_build_shared=no
  8913. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8914. if test "$GCC" = yes; then
  8915. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8916. fi
  8917. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8918. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8919. fi
  8920. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8921. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8922. fi
  8923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8924. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8925. hardcode_action=
  8926. if test -n "$hardcode_libdir_flag_spec" ||
  8927. test -n "$runpath_var" ||
  8928. test "X$hardcode_automatic" = "Xyes" ; then
  8929. # We can hardcode non-existent directories.
  8930. if test "$hardcode_direct" != no &&
  8931. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8932. # have to relink, otherwise we might link with an installed library
  8933. # when we should be linking with a yet-to-be-installed one
  8934. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8935. test "$hardcode_minus_L" != no; then
  8936. # Linking always hardcodes the temporary library directory.
  8937. hardcode_action=relink
  8938. else
  8939. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8940. hardcode_action=immediate
  8941. fi
  8942. else
  8943. # We cannot hardcode anything, or else we can only hardcode existing
  8944. # directories.
  8945. hardcode_action=unsupported
  8946. fi
  8947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8948. $as_echo "$hardcode_action" >&6; }
  8949. if test "$hardcode_action" = relink ||
  8950. test "$inherit_rpath" = yes; then
  8951. # Fast installation is not supported
  8952. enable_fast_install=no
  8953. elif test "$shlibpath_overrides_runpath" = yes ||
  8954. test "$enable_shared" = no; then
  8955. # Fast installation is not necessary
  8956. enable_fast_install=needless
  8957. fi
  8958. if test "x$enable_dlopen" != xyes; then
  8959. enable_dlopen=unknown
  8960. enable_dlopen_self=unknown
  8961. enable_dlopen_self_static=unknown
  8962. else
  8963. lt_cv_dlopen=no
  8964. lt_cv_dlopen_libs=
  8965. case $host_os in
  8966. beos*)
  8967. lt_cv_dlopen="load_add_on"
  8968. lt_cv_dlopen_libs=
  8969. lt_cv_dlopen_self=yes
  8970. ;;
  8971. mingw* | pw32* | cegcc*)
  8972. lt_cv_dlopen="LoadLibrary"
  8973. lt_cv_dlopen_libs=
  8974. ;;
  8975. cygwin*)
  8976. lt_cv_dlopen="dlopen"
  8977. lt_cv_dlopen_libs=
  8978. ;;
  8979. darwin*)
  8980. # if libdl is installed we need to link against it
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8982. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8983. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. ac_check_lib_save_LIBS=$LIBS
  8987. LIBS="-ldl $LIBS"
  8988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8989. /* end confdefs.h. */
  8990. /* Override any GCC internal prototype to avoid an error.
  8991. Use char because int might match the return type of a GCC
  8992. builtin and then its argument prototype would still apply. */
  8993. #ifdef __cplusplus
  8994. extern "C"
  8995. #endif
  8996. char dlopen ();
  8997. int
  8998. main ()
  8999. {
  9000. return dlopen ();
  9001. ;
  9002. return 0;
  9003. }
  9004. _ACEOF
  9005. if ac_fn_c_try_link "$LINENO"; then :
  9006. ac_cv_lib_dl_dlopen=yes
  9007. else
  9008. ac_cv_lib_dl_dlopen=no
  9009. fi
  9010. rm -f core conftest.err conftest.$ac_objext \
  9011. conftest$ac_exeext conftest.$ac_ext
  9012. LIBS=$ac_check_lib_save_LIBS
  9013. fi
  9014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9015. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9016. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9017. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9018. else
  9019. lt_cv_dlopen="dyld"
  9020. lt_cv_dlopen_libs=
  9021. lt_cv_dlopen_self=yes
  9022. fi
  9023. ;;
  9024. *)
  9025. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9026. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9027. lt_cv_dlopen="shl_load"
  9028. else
  9029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9030. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9031. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9032. $as_echo_n "(cached) " >&6
  9033. else
  9034. ac_check_lib_save_LIBS=$LIBS
  9035. LIBS="-ldld $LIBS"
  9036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9037. /* end confdefs.h. */
  9038. /* Override any GCC internal prototype to avoid an error.
  9039. Use char because int might match the return type of a GCC
  9040. builtin and then its argument prototype would still apply. */
  9041. #ifdef __cplusplus
  9042. extern "C"
  9043. #endif
  9044. char shl_load ();
  9045. int
  9046. main ()
  9047. {
  9048. return shl_load ();
  9049. ;
  9050. return 0;
  9051. }
  9052. _ACEOF
  9053. if ac_fn_c_try_link "$LINENO"; then :
  9054. ac_cv_lib_dld_shl_load=yes
  9055. else
  9056. ac_cv_lib_dld_shl_load=no
  9057. fi
  9058. rm -f core conftest.err conftest.$ac_objext \
  9059. conftest$ac_exeext conftest.$ac_ext
  9060. LIBS=$ac_check_lib_save_LIBS
  9061. fi
  9062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9063. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9064. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9065. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9066. else
  9067. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9068. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9069. lt_cv_dlopen="dlopen"
  9070. else
  9071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9072. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9073. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9074. $as_echo_n "(cached) " >&6
  9075. else
  9076. ac_check_lib_save_LIBS=$LIBS
  9077. LIBS="-ldl $LIBS"
  9078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9079. /* end confdefs.h. */
  9080. /* Override any GCC internal prototype to avoid an error.
  9081. Use char because int might match the return type of a GCC
  9082. builtin and then its argument prototype would still apply. */
  9083. #ifdef __cplusplus
  9084. extern "C"
  9085. #endif
  9086. char dlopen ();
  9087. int
  9088. main ()
  9089. {
  9090. return dlopen ();
  9091. ;
  9092. return 0;
  9093. }
  9094. _ACEOF
  9095. if ac_fn_c_try_link "$LINENO"; then :
  9096. ac_cv_lib_dl_dlopen=yes
  9097. else
  9098. ac_cv_lib_dl_dlopen=no
  9099. fi
  9100. rm -f core conftest.err conftest.$ac_objext \
  9101. conftest$ac_exeext conftest.$ac_ext
  9102. LIBS=$ac_check_lib_save_LIBS
  9103. fi
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9105. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9106. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9107. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9108. else
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9110. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9111. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9112. $as_echo_n "(cached) " >&6
  9113. else
  9114. ac_check_lib_save_LIBS=$LIBS
  9115. LIBS="-lsvld $LIBS"
  9116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9117. /* end confdefs.h. */
  9118. /* Override any GCC internal prototype to avoid an error.
  9119. Use char because int might match the return type of a GCC
  9120. builtin and then its argument prototype would still apply. */
  9121. #ifdef __cplusplus
  9122. extern "C"
  9123. #endif
  9124. char dlopen ();
  9125. int
  9126. main ()
  9127. {
  9128. return dlopen ();
  9129. ;
  9130. return 0;
  9131. }
  9132. _ACEOF
  9133. if ac_fn_c_try_link "$LINENO"; then :
  9134. ac_cv_lib_svld_dlopen=yes
  9135. else
  9136. ac_cv_lib_svld_dlopen=no
  9137. fi
  9138. rm -f core conftest.err conftest.$ac_objext \
  9139. conftest$ac_exeext conftest.$ac_ext
  9140. LIBS=$ac_check_lib_save_LIBS
  9141. fi
  9142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9143. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9144. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9145. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9146. else
  9147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9148. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9149. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9150. $as_echo_n "(cached) " >&6
  9151. else
  9152. ac_check_lib_save_LIBS=$LIBS
  9153. LIBS="-ldld $LIBS"
  9154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9155. /* end confdefs.h. */
  9156. /* Override any GCC internal prototype to avoid an error.
  9157. Use char because int might match the return type of a GCC
  9158. builtin and then its argument prototype would still apply. */
  9159. #ifdef __cplusplus
  9160. extern "C"
  9161. #endif
  9162. char dld_link ();
  9163. int
  9164. main ()
  9165. {
  9166. return dld_link ();
  9167. ;
  9168. return 0;
  9169. }
  9170. _ACEOF
  9171. if ac_fn_c_try_link "$LINENO"; then :
  9172. ac_cv_lib_dld_dld_link=yes
  9173. else
  9174. ac_cv_lib_dld_dld_link=no
  9175. fi
  9176. rm -f core conftest.err conftest.$ac_objext \
  9177. conftest$ac_exeext conftest.$ac_ext
  9178. LIBS=$ac_check_lib_save_LIBS
  9179. fi
  9180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9181. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9182. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9183. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9184. fi
  9185. fi
  9186. fi
  9187. fi
  9188. fi
  9189. fi
  9190. ;;
  9191. esac
  9192. if test "x$lt_cv_dlopen" != xno; then
  9193. enable_dlopen=yes
  9194. else
  9195. enable_dlopen=no
  9196. fi
  9197. case $lt_cv_dlopen in
  9198. dlopen)
  9199. save_CPPFLAGS="$CPPFLAGS"
  9200. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9201. save_LDFLAGS="$LDFLAGS"
  9202. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9203. save_LIBS="$LIBS"
  9204. LIBS="$lt_cv_dlopen_libs $LIBS"
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9206. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9207. if test "${lt_cv_dlopen_self+set}" = set; then :
  9208. $as_echo_n "(cached) " >&6
  9209. else
  9210. if test "$cross_compiling" = yes; then :
  9211. lt_cv_dlopen_self=cross
  9212. else
  9213. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9214. lt_status=$lt_dlunknown
  9215. cat > conftest.$ac_ext <<_LT_EOF
  9216. #line 10724 "configure"
  9217. #include "confdefs.h"
  9218. #if HAVE_DLFCN_H
  9219. #include <dlfcn.h>
  9220. #endif
  9221. #include <stdio.h>
  9222. #ifdef RTLD_GLOBAL
  9223. # define LT_DLGLOBAL RTLD_GLOBAL
  9224. #else
  9225. # ifdef DL_GLOBAL
  9226. # define LT_DLGLOBAL DL_GLOBAL
  9227. # else
  9228. # define LT_DLGLOBAL 0
  9229. # endif
  9230. #endif
  9231. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9232. find out it does not work in some platform. */
  9233. #ifndef LT_DLLAZY_OR_NOW
  9234. # ifdef RTLD_LAZY
  9235. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9236. # else
  9237. # ifdef DL_LAZY
  9238. # define LT_DLLAZY_OR_NOW DL_LAZY
  9239. # else
  9240. # ifdef RTLD_NOW
  9241. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9242. # else
  9243. # ifdef DL_NOW
  9244. # define LT_DLLAZY_OR_NOW DL_NOW
  9245. # else
  9246. # define LT_DLLAZY_OR_NOW 0
  9247. # endif
  9248. # endif
  9249. # endif
  9250. # endif
  9251. #endif
  9252. void fnord() { int i=42;}
  9253. int main ()
  9254. {
  9255. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9256. int status = $lt_dlunknown;
  9257. if (self)
  9258. {
  9259. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9260. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9261. /* dlclose (self); */
  9262. }
  9263. else
  9264. puts (dlerror ());
  9265. return status;
  9266. }
  9267. _LT_EOF
  9268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9269. (eval $ac_link) 2>&5
  9270. ac_status=$?
  9271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9272. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9273. (./conftest; exit; ) >&5 2>/dev/null
  9274. lt_status=$?
  9275. case x$lt_status in
  9276. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9277. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9278. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9279. esac
  9280. else :
  9281. # compilation failed
  9282. lt_cv_dlopen_self=no
  9283. fi
  9284. fi
  9285. rm -fr conftest*
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9288. $as_echo "$lt_cv_dlopen_self" >&6; }
  9289. if test "x$lt_cv_dlopen_self" = xyes; then
  9290. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9292. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9293. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9294. $as_echo_n "(cached) " >&6
  9295. else
  9296. if test "$cross_compiling" = yes; then :
  9297. lt_cv_dlopen_self_static=cross
  9298. else
  9299. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9300. lt_status=$lt_dlunknown
  9301. cat > conftest.$ac_ext <<_LT_EOF
  9302. #line 10820 "configure"
  9303. #include "confdefs.h"
  9304. #if HAVE_DLFCN_H
  9305. #include <dlfcn.h>
  9306. #endif
  9307. #include <stdio.h>
  9308. #ifdef RTLD_GLOBAL
  9309. # define LT_DLGLOBAL RTLD_GLOBAL
  9310. #else
  9311. # ifdef DL_GLOBAL
  9312. # define LT_DLGLOBAL DL_GLOBAL
  9313. # else
  9314. # define LT_DLGLOBAL 0
  9315. # endif
  9316. #endif
  9317. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9318. find out it does not work in some platform. */
  9319. #ifndef LT_DLLAZY_OR_NOW
  9320. # ifdef RTLD_LAZY
  9321. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9322. # else
  9323. # ifdef DL_LAZY
  9324. # define LT_DLLAZY_OR_NOW DL_LAZY
  9325. # else
  9326. # ifdef RTLD_NOW
  9327. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9328. # else
  9329. # ifdef DL_NOW
  9330. # define LT_DLLAZY_OR_NOW DL_NOW
  9331. # else
  9332. # define LT_DLLAZY_OR_NOW 0
  9333. # endif
  9334. # endif
  9335. # endif
  9336. # endif
  9337. #endif
  9338. void fnord() { int i=42;}
  9339. int main ()
  9340. {
  9341. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9342. int status = $lt_dlunknown;
  9343. if (self)
  9344. {
  9345. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9346. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9347. /* dlclose (self); */
  9348. }
  9349. else
  9350. puts (dlerror ());
  9351. return status;
  9352. }
  9353. _LT_EOF
  9354. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9355. (eval $ac_link) 2>&5
  9356. ac_status=$?
  9357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9358. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9359. (./conftest; exit; ) >&5 2>/dev/null
  9360. lt_status=$?
  9361. case x$lt_status in
  9362. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9363. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9364. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9365. esac
  9366. else :
  9367. # compilation failed
  9368. lt_cv_dlopen_self_static=no
  9369. fi
  9370. fi
  9371. rm -fr conftest*
  9372. fi
  9373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9374. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9375. fi
  9376. CPPFLAGS="$save_CPPFLAGS"
  9377. LDFLAGS="$save_LDFLAGS"
  9378. LIBS="$save_LIBS"
  9379. ;;
  9380. esac
  9381. case $lt_cv_dlopen_self in
  9382. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9383. *) enable_dlopen_self=unknown ;;
  9384. esac
  9385. case $lt_cv_dlopen_self_static in
  9386. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9387. *) enable_dlopen_self_static=unknown ;;
  9388. esac
  9389. fi
  9390. striplib=
  9391. old_striplib=
  9392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9393. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9394. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9395. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9396. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9398. $as_echo "yes" >&6; }
  9399. else
  9400. # FIXME - insert some real tests, host_os isn't really good enough
  9401. case $host_os in
  9402. darwin*)
  9403. if test -n "$STRIP" ; then
  9404. striplib="$STRIP -x"
  9405. old_striplib="$STRIP -S"
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9407. $as_echo "yes" >&6; }
  9408. else
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9410. $as_echo "no" >&6; }
  9411. fi
  9412. ;;
  9413. *)
  9414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9415. $as_echo "no" >&6; }
  9416. ;;
  9417. esac
  9418. fi
  9419. # Report which library types will actually be built
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9421. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9423. $as_echo "$can_build_shared" >&6; }
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9425. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9426. test "$can_build_shared" = "no" && enable_shared=no
  9427. # On AIX, shared libraries and static libraries use the same namespace, and
  9428. # are all built from PIC.
  9429. case $host_os in
  9430. aix3*)
  9431. test "$enable_shared" = yes && enable_static=no
  9432. if test -n "$RANLIB"; then
  9433. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9434. postinstall_cmds='$RANLIB $lib'
  9435. fi
  9436. ;;
  9437. aix[4-9]*)
  9438. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9439. test "$enable_shared" = yes && enable_static=no
  9440. fi
  9441. ;;
  9442. esac
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9444. $as_echo "$enable_shared" >&6; }
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9446. $as_echo_n "checking whether to build static libraries... " >&6; }
  9447. # Make sure either enable_shared or enable_static is yes.
  9448. test "$enable_shared" = yes || enable_static=yes
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9450. $as_echo "$enable_static" >&6; }
  9451. fi
  9452. ac_ext=c
  9453. ac_cpp='$CPP $CPPFLAGS'
  9454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9457. CC="$lt_save_CC"
  9458. ac_config_commands="$ac_config_commands libtool"
  9459. # Only expand once:
  9460. if test "x$CC" != xcc; then
  9461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  9462. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9463. else
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  9465. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9466. fi
  9467. set dummy $CC; ac_cc=`$as_echo "$2" |
  9468. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9469. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  9470. $as_echo_n "(cached) " >&6
  9471. else
  9472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9473. /* end confdefs.h. */
  9474. int
  9475. main ()
  9476. {
  9477. ;
  9478. return 0;
  9479. }
  9480. _ACEOF
  9481. # Make sure it works both with $CC and with simple cc.
  9482. # We do the test twice because some compilers refuse to overwrite an
  9483. # existing .o file with -o, though they will create one.
  9484. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9485. rm -f conftest2.*
  9486. if { { case "(($ac_try" in
  9487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9488. *) ac_try_echo=$ac_try;;
  9489. esac
  9490. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9491. $as_echo "$ac_try_echo"; } >&5
  9492. (eval "$ac_try") 2>&5
  9493. ac_status=$?
  9494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9495. test $ac_status = 0; } &&
  9496. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9498. *) ac_try_echo=$ac_try;;
  9499. esac
  9500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9501. $as_echo "$ac_try_echo"; } >&5
  9502. (eval "$ac_try") 2>&5
  9503. ac_status=$?
  9504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9505. test $ac_status = 0; };
  9506. then
  9507. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9508. if test "x$CC" != xcc; then
  9509. # Test first that cc exists at all.
  9510. if { ac_try='cc -c conftest.$ac_ext >&5'
  9511. { { case "(($ac_try" in
  9512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9513. *) ac_try_echo=$ac_try;;
  9514. esac
  9515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9516. $as_echo "$ac_try_echo"; } >&5
  9517. (eval "$ac_try") 2>&5
  9518. ac_status=$?
  9519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9520. test $ac_status = 0; }; }; then
  9521. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9522. rm -f conftest2.*
  9523. if { { case "(($ac_try" in
  9524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9525. *) ac_try_echo=$ac_try;;
  9526. esac
  9527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9528. $as_echo "$ac_try_echo"; } >&5
  9529. (eval "$ac_try") 2>&5
  9530. ac_status=$?
  9531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9532. test $ac_status = 0; } &&
  9533. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  9534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9535. *) ac_try_echo=$ac_try;;
  9536. esac
  9537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9538. $as_echo "$ac_try_echo"; } >&5
  9539. (eval "$ac_try") 2>&5
  9540. ac_status=$?
  9541. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9542. test $ac_status = 0; };
  9543. then
  9544. # cc works too.
  9545. :
  9546. else
  9547. # cc exists but doesn't like -o.
  9548. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9549. fi
  9550. fi
  9551. fi
  9552. else
  9553. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9554. fi
  9555. rm -f core conftest*
  9556. fi
  9557. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9559. $as_echo "yes" >&6; }
  9560. else
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9562. $as_echo "no" >&6; }
  9563. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  9564. fi
  9565. # FIXME: we rely on the cache variable name because
  9566. # there is no other way.
  9567. set dummy $CC
  9568. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9569. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9570. if test "$am_t" != yes; then
  9571. # Losing compiler, so override with the script.
  9572. # FIXME: It is wrong to rewrite CC.
  9573. # But if we don't then we get into trouble of one sort or another.
  9574. # A longer-term fix would be to have automake use am__CC in this case,
  9575. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9576. CC="$am_aux_dir/compile $CC"
  9577. fi
  9578. case $ac_cv_prog_cc_stdc in #(
  9579. no) :
  9580. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  9581. *) :
  9582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  9583. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  9584. if test "${ac_cv_prog_cc_c99+set}" = set; then :
  9585. $as_echo_n "(cached) " >&6
  9586. else
  9587. ac_cv_prog_cc_c99=no
  9588. ac_save_CC=$CC
  9589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9590. /* end confdefs.h. */
  9591. #include <stdarg.h>
  9592. #include <stdbool.h>
  9593. #include <stdlib.h>
  9594. #include <wchar.h>
  9595. #include <stdio.h>
  9596. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  9597. #define debug(...) fprintf (stderr, __VA_ARGS__)
  9598. #define showlist(...) puts (#__VA_ARGS__)
  9599. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  9600. static void
  9601. test_varargs_macros (void)
  9602. {
  9603. int x = 1234;
  9604. int y = 5678;
  9605. debug ("Flag");
  9606. debug ("X = %d\n", x);
  9607. showlist (The first, second, and third items.);
  9608. report (x>y, "x is %d but y is %d", x, y);
  9609. }
  9610. // Check long long types.
  9611. #define BIG64 18446744073709551615ull
  9612. #define BIG32 4294967295ul
  9613. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  9614. #if !BIG_OK
  9615. your preprocessor is broken;
  9616. #endif
  9617. #if BIG_OK
  9618. #else
  9619. your preprocessor is broken;
  9620. #endif
  9621. static long long int bignum = -9223372036854775807LL;
  9622. static unsigned long long int ubignum = BIG64;
  9623. struct incomplete_array
  9624. {
  9625. int datasize;
  9626. double data[];
  9627. };
  9628. struct named_init {
  9629. int number;
  9630. const wchar_t *name;
  9631. double average;
  9632. };
  9633. typedef const char *ccp;
  9634. static inline int
  9635. test_restrict (ccp restrict text)
  9636. {
  9637. // See if C++-style comments work.
  9638. // Iterate through items via the restricted pointer.
  9639. // Also check for declarations in for loops.
  9640. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  9641. continue;
  9642. return 0;
  9643. }
  9644. // Check varargs and va_copy.
  9645. static void
  9646. test_varargs (const char *format, ...)
  9647. {
  9648. va_list args;
  9649. va_start (args, format);
  9650. va_list args_copy;
  9651. va_copy (args_copy, args);
  9652. const char *str;
  9653. int number;
  9654. float fnumber;
  9655. while (*format)
  9656. {
  9657. switch (*format++)
  9658. {
  9659. case 's': // string
  9660. str = va_arg (args_copy, const char *);
  9661. break;
  9662. case 'd': // int
  9663. number = va_arg (args_copy, int);
  9664. break;
  9665. case 'f': // float
  9666. fnumber = va_arg (args_copy, double);
  9667. break;
  9668. default:
  9669. break;
  9670. }
  9671. }
  9672. va_end (args_copy);
  9673. va_end (args);
  9674. }
  9675. int
  9676. main ()
  9677. {
  9678. // Check bool.
  9679. _Bool success = false;
  9680. // Check restrict.
  9681. if (test_restrict ("String literal") == 0)
  9682. success = true;
  9683. char *restrict newvar = "Another string";
  9684. // Check varargs.
  9685. test_varargs ("s, d' f .", "string", 65, 34.234);
  9686. test_varargs_macros ();
  9687. // Check flexible array members.
  9688. struct incomplete_array *ia =
  9689. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  9690. ia->datasize = 10;
  9691. for (int i = 0; i < ia->datasize; ++i)
  9692. ia->data[i] = i * 1.234;
  9693. // Check named initializers.
  9694. struct named_init ni = {
  9695. .number = 34,
  9696. .name = L"Test wide string",
  9697. .average = 543.34343,
  9698. };
  9699. ni.number = 58;
  9700. int dynamic_array[ni.number];
  9701. dynamic_array[ni.number - 1] = 543;
  9702. // work around unused variable warnings
  9703. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  9704. || dynamic_array[ni.number - 1] != 543);
  9705. ;
  9706. return 0;
  9707. }
  9708. _ACEOF
  9709. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  9710. do
  9711. CC="$ac_save_CC $ac_arg"
  9712. if ac_fn_c_try_compile "$LINENO"; then :
  9713. ac_cv_prog_cc_c99=$ac_arg
  9714. fi
  9715. rm -f core conftest.err conftest.$ac_objext
  9716. test "x$ac_cv_prog_cc_c99" != "xno" && break
  9717. done
  9718. rm -f conftest.$ac_ext
  9719. CC=$ac_save_CC
  9720. fi
  9721. # AC_CACHE_VAL
  9722. case "x$ac_cv_prog_cc_c99" in
  9723. x)
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9725. $as_echo "none needed" >&6; } ;;
  9726. xno)
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9728. $as_echo "unsupported" >&6; } ;;
  9729. *)
  9730. CC="$CC $ac_cv_prog_cc_c99"
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  9732. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  9733. esac
  9734. if test "x$ac_cv_prog_cc_c99" != xno; then :
  9735. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  9736. else
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  9738. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9739. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  9740. $as_echo_n "(cached) " >&6
  9741. else
  9742. ac_cv_prog_cc_c89=no
  9743. ac_save_CC=$CC
  9744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9745. /* end confdefs.h. */
  9746. #include <stdarg.h>
  9747. #include <stdio.h>
  9748. #include <sys/types.h>
  9749. #include <sys/stat.h>
  9750. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9751. struct buf { int x; };
  9752. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9753. static char *e (p, i)
  9754. char **p;
  9755. int i;
  9756. {
  9757. return p[i];
  9758. }
  9759. static char *f (char * (*g) (char **, int), char **p, ...)
  9760. {
  9761. char *s;
  9762. va_list v;
  9763. va_start (v,p);
  9764. s = g (p, va_arg (v,int));
  9765. va_end (v);
  9766. return s;
  9767. }
  9768. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9769. function prototypes and stuff, but not '\xHH' hex character constants.
  9770. These don't provoke an error unfortunately, instead are silently treated
  9771. as 'x'. The following induces an error, until -std is added to get
  9772. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9773. array size at least. It's necessary to write '\x00'==0 to get something
  9774. that's true only with -std. */
  9775. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9776. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  9777. inside strings and character constants. */
  9778. #define FOO(x) 'x'
  9779. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  9780. int test (int i, double x);
  9781. struct s1 {int (*f) (int a);};
  9782. struct s2 {int (*f) (double a);};
  9783. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9784. int argc;
  9785. char **argv;
  9786. int
  9787. main ()
  9788. {
  9789. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9790. ;
  9791. return 0;
  9792. }
  9793. _ACEOF
  9794. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  9795. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9796. do
  9797. CC="$ac_save_CC $ac_arg"
  9798. if ac_fn_c_try_compile "$LINENO"; then :
  9799. ac_cv_prog_cc_c89=$ac_arg
  9800. fi
  9801. rm -f core conftest.err conftest.$ac_objext
  9802. test "x$ac_cv_prog_cc_c89" != "xno" && break
  9803. done
  9804. rm -f conftest.$ac_ext
  9805. CC=$ac_save_CC
  9806. fi
  9807. # AC_CACHE_VAL
  9808. case "x$ac_cv_prog_cc_c89" in
  9809. x)
  9810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9811. $as_echo "none needed" >&6; } ;;
  9812. xno)
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9814. $as_echo "unsupported" >&6; } ;;
  9815. *)
  9816. CC="$CC $ac_cv_prog_cc_c89"
  9817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  9818. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  9819. esac
  9820. if test "x$ac_cv_prog_cc_c89" != xno; then :
  9821. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  9822. else
  9823. ac_cv_prog_cc_stdc=no
  9824. fi
  9825. fi
  9826. ;;
  9827. esac
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  9829. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  9830. if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  9831. $as_echo_n "(cached) " >&6
  9832. fi
  9833. case $ac_cv_prog_cc_stdc in #(
  9834. no) :
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  9836. $as_echo "unsupported" >&6; } ;; #(
  9837. '') :
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  9839. $as_echo "none needed" >&6; } ;; #(
  9840. *) :
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  9842. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  9843. esac
  9844. ac_ext=cpp
  9845. ac_cpp='$CXXCPP $CPPFLAGS'
  9846. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9847. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9848. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9849. if test -z "$CXX"; then
  9850. if test -n "$CCC"; then
  9851. CXX=$CCC
  9852. else
  9853. if test -n "$ac_tool_prefix"; then
  9854. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9855. do
  9856. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9857. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9859. $as_echo_n "checking for $ac_word... " >&6; }
  9860. if test "${ac_cv_prog_CXX+set}" = set; then :
  9861. $as_echo_n "(cached) " >&6
  9862. else
  9863. if test -n "$CXX"; then
  9864. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9865. else
  9866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9867. for as_dir in $PATH
  9868. do
  9869. IFS=$as_save_IFS
  9870. test -z "$as_dir" && as_dir=.
  9871. for ac_exec_ext in '' $ac_executable_extensions; do
  9872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9873. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9875. break 2
  9876. fi
  9877. done
  9878. done
  9879. IFS=$as_save_IFS
  9880. fi
  9881. fi
  9882. CXX=$ac_cv_prog_CXX
  9883. if test -n "$CXX"; then
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  9885. $as_echo "$CXX" >&6; }
  9886. else
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9888. $as_echo "no" >&6; }
  9889. fi
  9890. test -n "$CXX" && break
  9891. done
  9892. fi
  9893. if test -z "$CXX"; then
  9894. ac_ct_CXX=$CXX
  9895. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  9896. do
  9897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9898. set dummy $ac_prog; ac_word=$2
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9900. $as_echo_n "checking for $ac_word... " >&6; }
  9901. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  9902. $as_echo_n "(cached) " >&6
  9903. else
  9904. if test -n "$ac_ct_CXX"; then
  9905. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9906. else
  9907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9908. for as_dir in $PATH
  9909. do
  9910. IFS=$as_save_IFS
  9911. test -z "$as_dir" && as_dir=.
  9912. for ac_exec_ext in '' $ac_executable_extensions; do
  9913. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9914. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9916. break 2
  9917. fi
  9918. done
  9919. done
  9920. IFS=$as_save_IFS
  9921. fi
  9922. fi
  9923. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9924. if test -n "$ac_ct_CXX"; then
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  9926. $as_echo "$ac_ct_CXX" >&6; }
  9927. else
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9929. $as_echo "no" >&6; }
  9930. fi
  9931. test -n "$ac_ct_CXX" && break
  9932. done
  9933. if test "x$ac_ct_CXX" = x; then
  9934. CXX="g++"
  9935. else
  9936. case $cross_compiling:$ac_tool_warned in
  9937. yes:)
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9940. ac_tool_warned=yes ;;
  9941. esac
  9942. CXX=$ac_ct_CXX
  9943. fi
  9944. fi
  9945. fi
  9946. fi
  9947. # Provide some information about the compiler.
  9948. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  9949. set X $ac_compile
  9950. ac_compiler=$2
  9951. for ac_option in --version -v -V -qversion; do
  9952. { { ac_try="$ac_compiler $ac_option >&5"
  9953. case "(($ac_try" in
  9954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9955. *) ac_try_echo=$ac_try;;
  9956. esac
  9957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9958. $as_echo "$ac_try_echo"; } >&5
  9959. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9960. ac_status=$?
  9961. if test -s conftest.err; then
  9962. sed '10a\
  9963. ... rest of stderr output deleted ...
  9964. 10q' conftest.err >conftest.er1
  9965. cat conftest.er1 >&5
  9966. fi
  9967. rm -f conftest.er1 conftest.err
  9968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9969. test $ac_status = 0; }
  9970. done
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  9972. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  9973. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  9974. $as_echo_n "(cached) " >&6
  9975. else
  9976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9977. /* end confdefs.h. */
  9978. int
  9979. main ()
  9980. {
  9981. #ifndef __GNUC__
  9982. choke me
  9983. #endif
  9984. ;
  9985. return 0;
  9986. }
  9987. _ACEOF
  9988. if ac_fn_cxx_try_compile "$LINENO"; then :
  9989. ac_compiler_gnu=yes
  9990. else
  9991. ac_compiler_gnu=no
  9992. fi
  9993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9994. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9995. fi
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  9997. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  9998. if test $ac_compiler_gnu = yes; then
  9999. GXX=yes
  10000. else
  10001. GXX=
  10002. fi
  10003. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10004. ac_save_CXXFLAGS=$CXXFLAGS
  10005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10006. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10007. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  10008. $as_echo_n "(cached) " >&6
  10009. else
  10010. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10011. ac_cxx_werror_flag=yes
  10012. ac_cv_prog_cxx_g=no
  10013. CXXFLAGS="-g"
  10014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10015. /* end confdefs.h. */
  10016. int
  10017. main ()
  10018. {
  10019. ;
  10020. return 0;
  10021. }
  10022. _ACEOF
  10023. if ac_fn_cxx_try_compile "$LINENO"; then :
  10024. ac_cv_prog_cxx_g=yes
  10025. else
  10026. CXXFLAGS=""
  10027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10028. /* end confdefs.h. */
  10029. int
  10030. main ()
  10031. {
  10032. ;
  10033. return 0;
  10034. }
  10035. _ACEOF
  10036. if ac_fn_cxx_try_compile "$LINENO"; then :
  10037. else
  10038. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10039. CXXFLAGS="-g"
  10040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10041. /* end confdefs.h. */
  10042. int
  10043. main ()
  10044. {
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_cxx_try_compile "$LINENO"; then :
  10050. ac_cv_prog_cxx_g=yes
  10051. fi
  10052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10053. fi
  10054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10055. fi
  10056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10057. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10058. fi
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10060. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10061. if test "$ac_test_CXXFLAGS" = set; then
  10062. CXXFLAGS=$ac_save_CXXFLAGS
  10063. elif test $ac_cv_prog_cxx_g = yes; then
  10064. if test "$GXX" = yes; then
  10065. CXXFLAGS="-g -O2"
  10066. else
  10067. CXXFLAGS="-g"
  10068. fi
  10069. else
  10070. if test "$GXX" = yes; then
  10071. CXXFLAGS="-O2"
  10072. else
  10073. CXXFLAGS=
  10074. fi
  10075. fi
  10076. ac_ext=c
  10077. ac_cpp='$CPP $CPPFLAGS'
  10078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10081. depcc="$CXX" am_compiler_list=
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10083. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10084. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  10085. $as_echo_n "(cached) " >&6
  10086. else
  10087. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10088. # We make a subdir and do the tests there. Otherwise we can end up
  10089. # making bogus files that we don't know about and never remove. For
  10090. # instance it was reported that on HP-UX the gcc test will end up
  10091. # making a dummy file named `D' -- because `-MD' means `put the output
  10092. # in D'.
  10093. mkdir conftest.dir
  10094. # Copy depcomp to subdir because otherwise we won't find it if we're
  10095. # using a relative directory.
  10096. cp "$am_depcomp" conftest.dir
  10097. cd conftest.dir
  10098. # We will build objects and dependencies in a subdirectory because
  10099. # it helps to detect inapplicable dependency modes. For instance
  10100. # both Tru64's cc and ICC support -MD to output dependencies as a
  10101. # side effect of compilation, but ICC will put the dependencies in
  10102. # the current directory while Tru64 will put them in the object
  10103. # directory.
  10104. mkdir sub
  10105. am_cv_CXX_dependencies_compiler_type=none
  10106. if test "$am_compiler_list" = ""; then
  10107. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10108. fi
  10109. am__universal=false
  10110. case " $depcc " in #(
  10111. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10112. esac
  10113. for depmode in $am_compiler_list; do
  10114. # Setup a source with many dependencies, because some compilers
  10115. # like to wrap large dependency lists on column 80 (with \), and
  10116. # we should not choose a depcomp mode which is confused by this.
  10117. #
  10118. # We need to recreate these files for each test, as the compiler may
  10119. # overwrite some of them when testing with obscure command lines.
  10120. # This happens at least with the AIX C compiler.
  10121. : > sub/conftest.c
  10122. for i in 1 2 3 4 5 6; do
  10123. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10124. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10125. # Solaris 8's {/usr,}/bin/sh.
  10126. touch sub/conftst$i.h
  10127. done
  10128. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10129. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10130. # mode. It turns out that the SunPro C++ compiler does not properly
  10131. # handle `-M -o', and we need to detect this. Also, some Intel
  10132. # versions had trouble with output in subdirs
  10133. am__obj=sub/conftest.${OBJEXT-o}
  10134. am__minus_obj="-o $am__obj"
  10135. case $depmode in
  10136. gcc)
  10137. # This depmode causes a compiler race in universal mode.
  10138. test "$am__universal" = false || continue
  10139. ;;
  10140. nosideeffect)
  10141. # after this tag, mechanisms are not by side-effect, so they'll
  10142. # only be used when explicitly requested
  10143. if test "x$enable_dependency_tracking" = xyes; then
  10144. continue
  10145. else
  10146. break
  10147. fi
  10148. ;;
  10149. msvisualcpp | msvcmsys)
  10150. # This compiler won't grok `-c -o', but also, the minuso test has
  10151. # not run yet. These depmodes are late enough in the game, and
  10152. # so weak that their functioning should not be impacted.
  10153. am__obj=conftest.${OBJEXT-o}
  10154. am__minus_obj=
  10155. ;;
  10156. none) break ;;
  10157. esac
  10158. if depmode=$depmode \
  10159. source=sub/conftest.c object=$am__obj \
  10160. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10161. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10162. >/dev/null 2>conftest.err &&
  10163. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10164. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10165. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10166. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10167. # icc doesn't choke on unknown options, it will just issue warnings
  10168. # or remarks (even with -Werror). So we grep stderr for any message
  10169. # that says an option was ignored or not supported.
  10170. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10171. # icc: Command line warning: ignoring option '-M'; no argument required
  10172. # The diagnosis changed in icc 8.0:
  10173. # icc: Command line remark: option '-MP' not supported
  10174. if (grep 'ignoring option' conftest.err ||
  10175. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10176. am_cv_CXX_dependencies_compiler_type=$depmode
  10177. break
  10178. fi
  10179. fi
  10180. done
  10181. cd ..
  10182. rm -rf conftest.dir
  10183. else
  10184. am_cv_CXX_dependencies_compiler_type=none
  10185. fi
  10186. fi
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10188. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  10189. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10190. if
  10191. test "x$enable_dependency_tracking" != xno \
  10192. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10193. am__fastdepCXX_TRUE=
  10194. am__fastdepCXX_FALSE='#'
  10195. else
  10196. am__fastdepCXX_TRUE='#'
  10197. am__fastdepCXX_FALSE=
  10198. fi
  10199. ac_ext=cpp
  10200. ac_cpp='$CXXCPP $CPPFLAGS'
  10201. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10202. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10203. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10204. if test -z "$CXX"; then
  10205. if test -n "$CCC"; then
  10206. CXX=$CCC
  10207. else
  10208. if test -n "$ac_tool_prefix"; then
  10209. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10210. do
  10211. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10212. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10214. $as_echo_n "checking for $ac_word... " >&6; }
  10215. if test "${ac_cv_prog_CXX+set}" = set; then :
  10216. $as_echo_n "(cached) " >&6
  10217. else
  10218. if test -n "$CXX"; then
  10219. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10220. else
  10221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10222. for as_dir in $PATH
  10223. do
  10224. IFS=$as_save_IFS
  10225. test -z "$as_dir" && as_dir=.
  10226. for ac_exec_ext in '' $ac_executable_extensions; do
  10227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10228. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10230. break 2
  10231. fi
  10232. done
  10233. done
  10234. IFS=$as_save_IFS
  10235. fi
  10236. fi
  10237. CXX=$ac_cv_prog_CXX
  10238. if test -n "$CXX"; then
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10240. $as_echo "$CXX" >&6; }
  10241. else
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10243. $as_echo "no" >&6; }
  10244. fi
  10245. test -n "$CXX" && break
  10246. done
  10247. fi
  10248. if test -z "$CXX"; then
  10249. ac_ct_CXX=$CXX
  10250. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10251. do
  10252. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10253. set dummy $ac_prog; ac_word=$2
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10255. $as_echo_n "checking for $ac_word... " >&6; }
  10256. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  10257. $as_echo_n "(cached) " >&6
  10258. else
  10259. if test -n "$ac_ct_CXX"; then
  10260. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10261. else
  10262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10263. for as_dir in $PATH
  10264. do
  10265. IFS=$as_save_IFS
  10266. test -z "$as_dir" && as_dir=.
  10267. for ac_exec_ext in '' $ac_executable_extensions; do
  10268. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10269. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10271. break 2
  10272. fi
  10273. done
  10274. done
  10275. IFS=$as_save_IFS
  10276. fi
  10277. fi
  10278. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10279. if test -n "$ac_ct_CXX"; then
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10281. $as_echo "$ac_ct_CXX" >&6; }
  10282. else
  10283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10284. $as_echo "no" >&6; }
  10285. fi
  10286. test -n "$ac_ct_CXX" && break
  10287. done
  10288. if test "x$ac_ct_CXX" = x; then
  10289. CXX="g++"
  10290. else
  10291. case $cross_compiling:$ac_tool_warned in
  10292. yes:)
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10294. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10295. ac_tool_warned=yes ;;
  10296. esac
  10297. CXX=$ac_ct_CXX
  10298. fi
  10299. fi
  10300. fi
  10301. fi
  10302. # Provide some information about the compiler.
  10303. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10304. set X $ac_compile
  10305. ac_compiler=$2
  10306. for ac_option in --version -v -V -qversion; do
  10307. { { ac_try="$ac_compiler $ac_option >&5"
  10308. case "(($ac_try" in
  10309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10310. *) ac_try_echo=$ac_try;;
  10311. esac
  10312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10313. $as_echo "$ac_try_echo"; } >&5
  10314. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10315. ac_status=$?
  10316. if test -s conftest.err; then
  10317. sed '10a\
  10318. ... rest of stderr output deleted ...
  10319. 10q' conftest.err >conftest.er1
  10320. cat conftest.er1 >&5
  10321. fi
  10322. rm -f conftest.er1 conftest.err
  10323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10324. test $ac_status = 0; }
  10325. done
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10327. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10328. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  10329. $as_echo_n "(cached) " >&6
  10330. else
  10331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10332. /* end confdefs.h. */
  10333. int
  10334. main ()
  10335. {
  10336. #ifndef __GNUC__
  10337. choke me
  10338. #endif
  10339. ;
  10340. return 0;
  10341. }
  10342. _ACEOF
  10343. if ac_fn_cxx_try_compile "$LINENO"; then :
  10344. ac_compiler_gnu=yes
  10345. else
  10346. ac_compiler_gnu=no
  10347. fi
  10348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10349. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10352. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10353. if test $ac_compiler_gnu = yes; then
  10354. GXX=yes
  10355. else
  10356. GXX=
  10357. fi
  10358. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10359. ac_save_CXXFLAGS=$CXXFLAGS
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10361. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10362. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  10363. $as_echo_n "(cached) " >&6
  10364. else
  10365. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10366. ac_cxx_werror_flag=yes
  10367. ac_cv_prog_cxx_g=no
  10368. CXXFLAGS="-g"
  10369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10370. /* end confdefs.h. */
  10371. int
  10372. main ()
  10373. {
  10374. ;
  10375. return 0;
  10376. }
  10377. _ACEOF
  10378. if ac_fn_cxx_try_compile "$LINENO"; then :
  10379. ac_cv_prog_cxx_g=yes
  10380. else
  10381. CXXFLAGS=""
  10382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10383. /* end confdefs.h. */
  10384. int
  10385. main ()
  10386. {
  10387. ;
  10388. return 0;
  10389. }
  10390. _ACEOF
  10391. if ac_fn_cxx_try_compile "$LINENO"; then :
  10392. else
  10393. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10394. CXXFLAGS="-g"
  10395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10396. /* end confdefs.h. */
  10397. int
  10398. main ()
  10399. {
  10400. ;
  10401. return 0;
  10402. }
  10403. _ACEOF
  10404. if ac_fn_cxx_try_compile "$LINENO"; then :
  10405. ac_cv_prog_cxx_g=yes
  10406. fi
  10407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10408. fi
  10409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10410. fi
  10411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10412. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10413. fi
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10415. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10416. if test "$ac_test_CXXFLAGS" = set; then
  10417. CXXFLAGS=$ac_save_CXXFLAGS
  10418. elif test $ac_cv_prog_cxx_g = yes; then
  10419. if test "$GXX" = yes; then
  10420. CXXFLAGS="-g -O2"
  10421. else
  10422. CXXFLAGS="-g"
  10423. fi
  10424. else
  10425. if test "$GXX" = yes; then
  10426. CXXFLAGS="-O2"
  10427. else
  10428. CXXFLAGS=
  10429. fi
  10430. fi
  10431. ac_ext=c
  10432. ac_cpp='$CPP $CPPFLAGS'
  10433. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10434. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10435. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10436. depcc="$CXX" am_compiler_list=
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10438. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10439. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10443. # We make a subdir and do the tests there. Otherwise we can end up
  10444. # making bogus files that we don't know about and never remove. For
  10445. # instance it was reported that on HP-UX the gcc test will end up
  10446. # making a dummy file named `D' -- because `-MD' means `put the output
  10447. # in D'.
  10448. mkdir conftest.dir
  10449. # Copy depcomp to subdir because otherwise we won't find it if we're
  10450. # using a relative directory.
  10451. cp "$am_depcomp" conftest.dir
  10452. cd conftest.dir
  10453. # We will build objects and dependencies in a subdirectory because
  10454. # it helps to detect inapplicable dependency modes. For instance
  10455. # both Tru64's cc and ICC support -MD to output dependencies as a
  10456. # side effect of compilation, but ICC will put the dependencies in
  10457. # the current directory while Tru64 will put them in the object
  10458. # directory.
  10459. mkdir sub
  10460. am_cv_CXX_dependencies_compiler_type=none
  10461. if test "$am_compiler_list" = ""; then
  10462. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10463. fi
  10464. am__universal=false
  10465. case " $depcc " in #(
  10466. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10467. esac
  10468. for depmode in $am_compiler_list; do
  10469. # Setup a source with many dependencies, because some compilers
  10470. # like to wrap large dependency lists on column 80 (with \), and
  10471. # we should not choose a depcomp mode which is confused by this.
  10472. #
  10473. # We need to recreate these files for each test, as the compiler may
  10474. # overwrite some of them when testing with obscure command lines.
  10475. # This happens at least with the AIX C compiler.
  10476. : > sub/conftest.c
  10477. for i in 1 2 3 4 5 6; do
  10478. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10479. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10480. # Solaris 8's {/usr,}/bin/sh.
  10481. touch sub/conftst$i.h
  10482. done
  10483. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10484. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10485. # mode. It turns out that the SunPro C++ compiler does not properly
  10486. # handle `-M -o', and we need to detect this. Also, some Intel
  10487. # versions had trouble with output in subdirs
  10488. am__obj=sub/conftest.${OBJEXT-o}
  10489. am__minus_obj="-o $am__obj"
  10490. case $depmode in
  10491. gcc)
  10492. # This depmode causes a compiler race in universal mode.
  10493. test "$am__universal" = false || continue
  10494. ;;
  10495. nosideeffect)
  10496. # after this tag, mechanisms are not by side-effect, so they'll
  10497. # only be used when explicitly requested
  10498. if test "x$enable_dependency_tracking" = xyes; then
  10499. continue
  10500. else
  10501. break
  10502. fi
  10503. ;;
  10504. msvisualcpp | msvcmsys)
  10505. # This compiler won't grok `-c -o', but also, the minuso test has
  10506. # not run yet. These depmodes are late enough in the game, and
  10507. # so weak that their functioning should not be impacted.
  10508. am__obj=conftest.${OBJEXT-o}
  10509. am__minus_obj=
  10510. ;;
  10511. none) break ;;
  10512. esac
  10513. if depmode=$depmode \
  10514. source=sub/conftest.c object=$am__obj \
  10515. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10516. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10517. >/dev/null 2>conftest.err &&
  10518. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10519. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10520. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10521. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10522. # icc doesn't choke on unknown options, it will just issue warnings
  10523. # or remarks (even with -Werror). So we grep stderr for any message
  10524. # that says an option was ignored or not supported.
  10525. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10526. # icc: Command line warning: ignoring option '-M'; no argument required
  10527. # The diagnosis changed in icc 8.0:
  10528. # icc: Command line remark: option '-MP' not supported
  10529. if (grep 'ignoring option' conftest.err ||
  10530. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10531. am_cv_CXX_dependencies_compiler_type=$depmode
  10532. break
  10533. fi
  10534. fi
  10535. done
  10536. cd ..
  10537. rm -rf conftest.dir
  10538. else
  10539. am_cv_CXX_dependencies_compiler_type=none
  10540. fi
  10541. fi
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10543. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  10544. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10545. if
  10546. test "x$enable_dependency_tracking" != xno \
  10547. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10548. am__fastdepCXX_TRUE=
  10549. am__fastdepCXX_FALSE='#'
  10550. else
  10551. am__fastdepCXX_TRUE='#'
  10552. am__fastdepCXX_FALSE=
  10553. fi
  10554. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10555. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10556. (test "X$CXX" != "Xg++"))) ; then
  10557. ac_ext=cpp
  10558. ac_cpp='$CXXCPP $CPPFLAGS'
  10559. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10560. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10561. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10563. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10564. if test -z "$CXXCPP"; then
  10565. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10566. $as_echo_n "(cached) " >&6
  10567. else
  10568. # Double quotes because CXXCPP needs to be expanded
  10569. for CXXCPP in "$CXX -E" "/lib/cpp"
  10570. do
  10571. ac_preproc_ok=false
  10572. for ac_cxx_preproc_warn_flag in '' yes
  10573. do
  10574. # Use a header file that comes with gcc, so configuring glibc
  10575. # with a fresh cross-compiler works.
  10576. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10577. # <limits.h> exists even on freestanding compilers.
  10578. # On the NeXT, cc -E runs the code through the compiler's parser,
  10579. # not just through cpp. "Syntax error" is here to catch this case.
  10580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10581. /* end confdefs.h. */
  10582. #ifdef __STDC__
  10583. # include <limits.h>
  10584. #else
  10585. # include <assert.h>
  10586. #endif
  10587. Syntax error
  10588. _ACEOF
  10589. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10590. else
  10591. # Broken: fails on valid input.
  10592. continue
  10593. fi
  10594. rm -f conftest.err conftest.$ac_ext
  10595. # OK, works on sane cases. Now check whether nonexistent headers
  10596. # can be detected and how.
  10597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10598. /* end confdefs.h. */
  10599. #include <ac_nonexistent.h>
  10600. _ACEOF
  10601. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10602. # Broken: success on invalid input.
  10603. continue
  10604. else
  10605. # Passes both tests.
  10606. ac_preproc_ok=:
  10607. break
  10608. fi
  10609. rm -f conftest.err conftest.$ac_ext
  10610. done
  10611. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10612. rm -f conftest.err conftest.$ac_ext
  10613. if $ac_preproc_ok; then :
  10614. break
  10615. fi
  10616. done
  10617. ac_cv_prog_CXXCPP=$CXXCPP
  10618. fi
  10619. CXXCPP=$ac_cv_prog_CXXCPP
  10620. else
  10621. ac_cv_prog_CXXCPP=$CXXCPP
  10622. fi
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10624. $as_echo "$CXXCPP" >&6; }
  10625. ac_preproc_ok=false
  10626. for ac_cxx_preproc_warn_flag in '' yes
  10627. do
  10628. # Use a header file that comes with gcc, so configuring glibc
  10629. # with a fresh cross-compiler works.
  10630. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10631. # <limits.h> exists even on freestanding compilers.
  10632. # On the NeXT, cc -E runs the code through the compiler's parser,
  10633. # not just through cpp. "Syntax error" is here to catch this case.
  10634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10635. /* end confdefs.h. */
  10636. #ifdef __STDC__
  10637. # include <limits.h>
  10638. #else
  10639. # include <assert.h>
  10640. #endif
  10641. Syntax error
  10642. _ACEOF
  10643. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10644. else
  10645. # Broken: fails on valid input.
  10646. continue
  10647. fi
  10648. rm -f conftest.err conftest.$ac_ext
  10649. # OK, works on sane cases. Now check whether nonexistent headers
  10650. # can be detected and how.
  10651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10652. /* end confdefs.h. */
  10653. #include <ac_nonexistent.h>
  10654. _ACEOF
  10655. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10656. # Broken: success on invalid input.
  10657. continue
  10658. else
  10659. # Passes both tests.
  10660. ac_preproc_ok=:
  10661. break
  10662. fi
  10663. rm -f conftest.err conftest.$ac_ext
  10664. done
  10665. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10666. rm -f conftest.err conftest.$ac_ext
  10667. if $ac_preproc_ok; then :
  10668. else
  10669. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10670. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10671. _lt_caught_CXX_error=yes; }
  10672. fi
  10673. ac_ext=c
  10674. ac_cpp='$CPP $CPPFLAGS'
  10675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10678. else
  10679. _lt_caught_CXX_error=yes
  10680. fi
  10681. ac_ext=cpp
  10682. ac_cpp='$CXXCPP $CPPFLAGS'
  10683. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10684. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10685. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10686. archive_cmds_need_lc_CXX=no
  10687. allow_undefined_flag_CXX=
  10688. always_export_symbols_CXX=no
  10689. archive_expsym_cmds_CXX=
  10690. compiler_needs_object_CXX=no
  10691. export_dynamic_flag_spec_CXX=
  10692. hardcode_direct_CXX=no
  10693. hardcode_direct_absolute_CXX=no
  10694. hardcode_libdir_flag_spec_CXX=
  10695. hardcode_libdir_flag_spec_ld_CXX=
  10696. hardcode_libdir_separator_CXX=
  10697. hardcode_minus_L_CXX=no
  10698. hardcode_shlibpath_var_CXX=unsupported
  10699. hardcode_automatic_CXX=no
  10700. inherit_rpath_CXX=no
  10701. module_cmds_CXX=
  10702. module_expsym_cmds_CXX=
  10703. link_all_deplibs_CXX=unknown
  10704. old_archive_cmds_CXX=$old_archive_cmds
  10705. no_undefined_flag_CXX=
  10706. whole_archive_flag_spec_CXX=
  10707. enable_shared_with_static_runtimes_CXX=no
  10708. # Source file extension for C++ test sources.
  10709. ac_ext=cpp
  10710. # Object file extension for compiled C++ test sources.
  10711. objext=o
  10712. objext_CXX=$objext
  10713. # No sense in running all these tests if we already determined that
  10714. # the CXX compiler isn't working. Some variables (like enable_shared)
  10715. # are currently assumed to apply to all compilers on this platform,
  10716. # and will be corrupted by setting them based on a non-working compiler.
  10717. if test "$_lt_caught_CXX_error" != yes; then
  10718. # Code to be used in simple compile tests
  10719. lt_simple_compile_test_code="int some_variable = 0;"
  10720. # Code to be used in simple link tests
  10721. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10722. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10723. # If no C compiler was specified, use CC.
  10724. LTCC=${LTCC-"$CC"}
  10725. # If no C compiler flags were specified, use CFLAGS.
  10726. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10727. # Allow CC to be a program name with arguments.
  10728. compiler=$CC
  10729. # save warnings/boilerplate of simple test code
  10730. ac_outfile=conftest.$ac_objext
  10731. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10732. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10733. _lt_compiler_boilerplate=`cat conftest.err`
  10734. $RM conftest*
  10735. ac_outfile=conftest.$ac_objext
  10736. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10737. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10738. _lt_linker_boilerplate=`cat conftest.err`
  10739. $RM -r conftest*
  10740. # Allow CC to be a program name with arguments.
  10741. lt_save_CC=$CC
  10742. lt_save_LD=$LD
  10743. lt_save_GCC=$GCC
  10744. GCC=$GXX
  10745. lt_save_with_gnu_ld=$with_gnu_ld
  10746. lt_save_path_LD=$lt_cv_path_LD
  10747. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10748. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10749. else
  10750. $as_unset lt_cv_prog_gnu_ld
  10751. fi
  10752. if test -n "${lt_cv_path_LDCXX+set}"; then
  10753. lt_cv_path_LD=$lt_cv_path_LDCXX
  10754. else
  10755. $as_unset lt_cv_path_LD
  10756. fi
  10757. test -z "${LDCXX+set}" || LD=$LDCXX
  10758. CC=${CXX-"c++"}
  10759. compiler=$CC
  10760. compiler_CXX=$CC
  10761. for cc_temp in $compiler""; do
  10762. case $cc_temp in
  10763. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10764. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10765. \-*) ;;
  10766. *) break;;
  10767. esac
  10768. done
  10769. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10770. if test -n "$compiler"; then
  10771. # We don't want -fno-exception when compiling C++ code, so set the
  10772. # no_builtin_flag separately
  10773. if test "$GXX" = yes; then
  10774. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10775. else
  10776. lt_prog_compiler_no_builtin_flag_CXX=
  10777. fi
  10778. if test "$GXX" = yes; then
  10779. # Set up default GNU C++ configuration
  10780. # Check whether --with-gnu-ld was given.
  10781. if test "${with_gnu_ld+set}" = set; then :
  10782. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10783. else
  10784. with_gnu_ld=no
  10785. fi
  10786. ac_prog=ld
  10787. if test "$GCC" = yes; then
  10788. # Check if gcc -print-prog-name=ld gives a path.
  10789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10790. $as_echo_n "checking for ld used by $CC... " >&6; }
  10791. case $host in
  10792. *-*-mingw*)
  10793. # gcc leaves a trailing carriage return which upsets mingw
  10794. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10795. *)
  10796. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10797. esac
  10798. case $ac_prog in
  10799. # Accept absolute paths.
  10800. [\\/]* | ?:[\\/]*)
  10801. re_direlt='/[^/][^/]*/\.\./'
  10802. # Canonicalize the pathname of ld
  10803. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10804. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10805. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10806. done
  10807. test -z "$LD" && LD="$ac_prog"
  10808. ;;
  10809. "")
  10810. # If it fails, then pretend we aren't using GCC.
  10811. ac_prog=ld
  10812. ;;
  10813. *)
  10814. # If it is relative, then search for the first ld in PATH.
  10815. with_gnu_ld=unknown
  10816. ;;
  10817. esac
  10818. elif test "$with_gnu_ld" = yes; then
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10820. $as_echo_n "checking for GNU ld... " >&6; }
  10821. else
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10823. $as_echo_n "checking for non-GNU ld... " >&6; }
  10824. fi
  10825. if test "${lt_cv_path_LD+set}" = set; then :
  10826. $as_echo_n "(cached) " >&6
  10827. else
  10828. if test -z "$LD"; then
  10829. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10830. for ac_dir in $PATH; do
  10831. IFS="$lt_save_ifs"
  10832. test -z "$ac_dir" && ac_dir=.
  10833. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10834. lt_cv_path_LD="$ac_dir/$ac_prog"
  10835. # Check to see if the program is GNU ld. I'd rather use --version,
  10836. # but apparently some variants of GNU ld only accept -v.
  10837. # Break only if it was the GNU/non-GNU ld that we prefer.
  10838. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10839. *GNU* | *'with BFD'*)
  10840. test "$with_gnu_ld" != no && break
  10841. ;;
  10842. *)
  10843. test "$with_gnu_ld" != yes && break
  10844. ;;
  10845. esac
  10846. fi
  10847. done
  10848. IFS="$lt_save_ifs"
  10849. else
  10850. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10851. fi
  10852. fi
  10853. LD="$lt_cv_path_LD"
  10854. if test -n "$LD"; then
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10856. $as_echo "$LD" >&6; }
  10857. else
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10859. $as_echo "no" >&6; }
  10860. fi
  10861. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10863. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10864. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10865. $as_echo_n "(cached) " >&6
  10866. else
  10867. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10868. case `$LD -v 2>&1 </dev/null` in
  10869. *GNU* | *'with BFD'*)
  10870. lt_cv_prog_gnu_ld=yes
  10871. ;;
  10872. *)
  10873. lt_cv_prog_gnu_ld=no
  10874. ;;
  10875. esac
  10876. fi
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10878. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10879. with_gnu_ld=$lt_cv_prog_gnu_ld
  10880. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10881. # archiving commands below assume that GNU ld is being used.
  10882. if test "$with_gnu_ld" = yes; then
  10883. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10884. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10885. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10886. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10887. # If archive_cmds runs LD, not CC, wlarc should be empty
  10888. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10889. # investigate it a little bit more. (MM)
  10890. wlarc='${wl}'
  10891. # ancient GNU ld didn't support --whole-archive et. al.
  10892. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10893. $GREP 'no-whole-archive' > /dev/null; then
  10894. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10895. else
  10896. whole_archive_flag_spec_CXX=
  10897. fi
  10898. else
  10899. with_gnu_ld=no
  10900. wlarc=
  10901. # A generic and very simple default shared library creation
  10902. # command for GNU C++ for the case where it uses the native
  10903. # linker, instead of GNU ld. If possible, this setting should
  10904. # overridden to take advantage of the native linker features on
  10905. # the platform it is being used on.
  10906. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10907. fi
  10908. # Commands to make compiler produce verbose output that lists
  10909. # what "hidden" libraries, object files and flags are used when
  10910. # linking a shared library.
  10911. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10912. else
  10913. GXX=no
  10914. with_gnu_ld=no
  10915. wlarc=
  10916. fi
  10917. # PORTME: fill in a description of your system's C++ link characteristics
  10918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10919. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10920. ld_shlibs_CXX=yes
  10921. case $host_os in
  10922. aix3*)
  10923. # FIXME: insert proper C++ library support
  10924. ld_shlibs_CXX=no
  10925. ;;
  10926. aix[4-9]*)
  10927. if test "$host_cpu" = ia64; then
  10928. # On IA64, the linker does run time linking by default, so we don't
  10929. # have to do anything special.
  10930. aix_use_runtimelinking=no
  10931. exp_sym_flag='-Bexport'
  10932. no_entry_flag=""
  10933. else
  10934. aix_use_runtimelinking=no
  10935. # Test if we are trying to use run time linking or normal
  10936. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10937. # need to do runtime linking.
  10938. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10939. for ld_flag in $LDFLAGS; do
  10940. case $ld_flag in
  10941. *-brtl*)
  10942. aix_use_runtimelinking=yes
  10943. break
  10944. ;;
  10945. esac
  10946. done
  10947. ;;
  10948. esac
  10949. exp_sym_flag='-bexport'
  10950. no_entry_flag='-bnoentry'
  10951. fi
  10952. # When large executables or shared objects are built, AIX ld can
  10953. # have problems creating the table of contents. If linking a library
  10954. # or program results in "error TOC overflow" add -mminimal-toc to
  10955. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10956. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10957. archive_cmds_CXX=''
  10958. hardcode_direct_CXX=yes
  10959. hardcode_direct_absolute_CXX=yes
  10960. hardcode_libdir_separator_CXX=':'
  10961. link_all_deplibs_CXX=yes
  10962. file_list_spec_CXX='${wl}-f,'
  10963. if test "$GXX" = yes; then
  10964. case $host_os in aix4.[012]|aix4.[012].*)
  10965. # We only want to do this on AIX 4.2 and lower, the check
  10966. # below for broken collect2 doesn't work under 4.3+
  10967. collect2name=`${CC} -print-prog-name=collect2`
  10968. if test -f "$collect2name" &&
  10969. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10970. then
  10971. # We have reworked collect2
  10972. :
  10973. else
  10974. # We have old collect2
  10975. hardcode_direct_CXX=unsupported
  10976. # It fails to find uninstalled libraries when the uninstalled
  10977. # path is not listed in the libpath. Setting hardcode_minus_L
  10978. # to unsupported forces relinking
  10979. hardcode_minus_L_CXX=yes
  10980. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10981. hardcode_libdir_separator_CXX=
  10982. fi
  10983. esac
  10984. shared_flag='-shared'
  10985. if test "$aix_use_runtimelinking" = yes; then
  10986. shared_flag="$shared_flag "'${wl}-G'
  10987. fi
  10988. else
  10989. # not using gcc
  10990. if test "$host_cpu" = ia64; then
  10991. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10992. # chokes on -Wl,-G. The following line is correct:
  10993. shared_flag='-G'
  10994. else
  10995. if test "$aix_use_runtimelinking" = yes; then
  10996. shared_flag='${wl}-G'
  10997. else
  10998. shared_flag='${wl}-bM:SRE'
  10999. fi
  11000. fi
  11001. fi
  11002. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11003. # It seems that -bexpall does not export symbols beginning with
  11004. # underscore (_), so it is better to generate a list of symbols to
  11005. # export.
  11006. always_export_symbols_CXX=yes
  11007. if test "$aix_use_runtimelinking" = yes; then
  11008. # Warning - without using the other runtime loading flags (-brtl),
  11009. # -berok will link without error, but may produce a broken library.
  11010. allow_undefined_flag_CXX='-berok'
  11011. # Determine the default libpath from the value encoded in an empty
  11012. # executable.
  11013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11014. /* end confdefs.h. */
  11015. int
  11016. main ()
  11017. {
  11018. ;
  11019. return 0;
  11020. }
  11021. _ACEOF
  11022. if ac_fn_cxx_try_link "$LINENO"; then :
  11023. lt_aix_libpath_sed='
  11024. /Import File Strings/,/^$/ {
  11025. /^0/ {
  11026. s/^0 *\(.*\)$/\1/
  11027. p
  11028. }
  11029. }'
  11030. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11031. # Check for a 64-bit object if we didn't find anything.
  11032. if test -z "$aix_libpath"; then
  11033. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11034. fi
  11035. fi
  11036. rm -f core conftest.err conftest.$ac_objext \
  11037. conftest$ac_exeext conftest.$ac_ext
  11038. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11039. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11040. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11041. else
  11042. if test "$host_cpu" = ia64; then
  11043. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11044. allow_undefined_flag_CXX="-z nodefs"
  11045. archive_expsym_cmds_CXX="\$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"
  11046. else
  11047. # Determine the default libpath from the value encoded in an
  11048. # empty executable.
  11049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11050. /* end confdefs.h. */
  11051. int
  11052. main ()
  11053. {
  11054. ;
  11055. return 0;
  11056. }
  11057. _ACEOF
  11058. if ac_fn_cxx_try_link "$LINENO"; then :
  11059. lt_aix_libpath_sed='
  11060. /Import File Strings/,/^$/ {
  11061. /^0/ {
  11062. s/^0 *\(.*\)$/\1/
  11063. p
  11064. }
  11065. }'
  11066. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11067. # Check for a 64-bit object if we didn't find anything.
  11068. if test -z "$aix_libpath"; then
  11069. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11070. fi
  11071. fi
  11072. rm -f core conftest.err conftest.$ac_objext \
  11073. conftest$ac_exeext conftest.$ac_ext
  11074. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11075. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11076. # Warning - without using the other run time loading flags,
  11077. # -berok will link without error, but may produce a broken library.
  11078. no_undefined_flag_CXX=' ${wl}-bernotok'
  11079. allow_undefined_flag_CXX=' ${wl}-berok'
  11080. # Exported symbols can be pulled into shared objects from archives
  11081. whole_archive_flag_spec_CXX='$convenience'
  11082. archive_cmds_need_lc_CXX=yes
  11083. # This is similar to how AIX traditionally builds its shared
  11084. # libraries.
  11085. archive_expsym_cmds_CXX="\$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'
  11086. fi
  11087. fi
  11088. ;;
  11089. beos*)
  11090. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11091. allow_undefined_flag_CXX=unsupported
  11092. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11093. # support --undefined. This deserves some investigation. FIXME
  11094. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11095. else
  11096. ld_shlibs_CXX=no
  11097. fi
  11098. ;;
  11099. chorus*)
  11100. case $cc_basename in
  11101. *)
  11102. # FIXME: insert proper C++ library support
  11103. ld_shlibs_CXX=no
  11104. ;;
  11105. esac
  11106. ;;
  11107. cygwin* | mingw* | pw32* | cegcc*)
  11108. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11109. # as there is no search path for DLLs.
  11110. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11111. allow_undefined_flag_CXX=unsupported
  11112. always_export_symbols_CXX=no
  11113. enable_shared_with_static_runtimes_CXX=yes
  11114. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11115. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11116. # If the export-symbols file already is a .def file (1st line
  11117. # is EXPORTS), use it as is; otherwise, prepend...
  11118. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11119. cp $export_symbols $output_objdir/$soname.def;
  11120. else
  11121. echo EXPORTS > $output_objdir/$soname.def;
  11122. cat $export_symbols >> $output_objdir/$soname.def;
  11123. fi~
  11124. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11125. else
  11126. ld_shlibs_CXX=no
  11127. fi
  11128. ;;
  11129. darwin* | rhapsody*)
  11130. archive_cmds_need_lc_CXX=no
  11131. hardcode_direct_CXX=no
  11132. hardcode_automatic_CXX=yes
  11133. hardcode_shlibpath_var_CXX=unsupported
  11134. whole_archive_flag_spec_CXX=''
  11135. link_all_deplibs_CXX=yes
  11136. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11137. case $cc_basename in
  11138. ifort*) _lt_dar_can_shared=yes ;;
  11139. *) _lt_dar_can_shared=$GCC ;;
  11140. esac
  11141. if test "$_lt_dar_can_shared" = "yes"; then
  11142. output_verbose_link_cmd=echo
  11143. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11144. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11145. archive_expsym_cmds_CXX="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}"
  11146. module_expsym_cmds_CXX="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}"
  11147. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11148. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11149. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11150. fi
  11151. else
  11152. ld_shlibs_CXX=no
  11153. fi
  11154. ;;
  11155. dgux*)
  11156. case $cc_basename in
  11157. ec++*)
  11158. # FIXME: insert proper C++ library support
  11159. ld_shlibs_CXX=no
  11160. ;;
  11161. ghcx*)
  11162. # Green Hills C++ Compiler
  11163. # FIXME: insert proper C++ library support
  11164. ld_shlibs_CXX=no
  11165. ;;
  11166. *)
  11167. # FIXME: insert proper C++ library support
  11168. ld_shlibs_CXX=no
  11169. ;;
  11170. esac
  11171. ;;
  11172. freebsd[12]*)
  11173. # C++ shared libraries reported to be fairly broken before
  11174. # switch to ELF
  11175. ld_shlibs_CXX=no
  11176. ;;
  11177. freebsd-elf*)
  11178. archive_cmds_need_lc_CXX=no
  11179. ;;
  11180. freebsd* | dragonfly*)
  11181. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11182. # conventions
  11183. ld_shlibs_CXX=yes
  11184. ;;
  11185. gnu*)
  11186. ;;
  11187. hpux9*)
  11188. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11189. hardcode_libdir_separator_CXX=:
  11190. export_dynamic_flag_spec_CXX='${wl}-E'
  11191. hardcode_direct_CXX=yes
  11192. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11193. # but as the default
  11194. # location of the library.
  11195. case $cc_basename in
  11196. CC*)
  11197. # FIXME: insert proper C++ library support
  11198. ld_shlibs_CXX=no
  11199. ;;
  11200. aCC*)
  11201. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11202. # Commands to make compiler produce verbose output that lists
  11203. # what "hidden" libraries, object files and flags are used when
  11204. # linking a shared library.
  11205. #
  11206. # There doesn't appear to be a way to prevent this compiler from
  11207. # explicitly linking system object files so we need to strip them
  11208. # from the output so that they don't get included in the library
  11209. # dependencies.
  11210. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11211. ;;
  11212. *)
  11213. if test "$GXX" = yes; then
  11214. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11215. else
  11216. # FIXME: insert proper C++ library support
  11217. ld_shlibs_CXX=no
  11218. fi
  11219. ;;
  11220. esac
  11221. ;;
  11222. hpux10*|hpux11*)
  11223. if test $with_gnu_ld = no; then
  11224. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11225. hardcode_libdir_separator_CXX=:
  11226. case $host_cpu in
  11227. hppa*64*|ia64*)
  11228. ;;
  11229. *)
  11230. export_dynamic_flag_spec_CXX='${wl}-E'
  11231. ;;
  11232. esac
  11233. fi
  11234. case $host_cpu in
  11235. hppa*64*|ia64*)
  11236. hardcode_direct_CXX=no
  11237. hardcode_shlibpath_var_CXX=no
  11238. ;;
  11239. *)
  11240. hardcode_direct_CXX=yes
  11241. hardcode_direct_absolute_CXX=yes
  11242. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11243. # but as the default
  11244. # location of the library.
  11245. ;;
  11246. esac
  11247. case $cc_basename in
  11248. CC*)
  11249. # FIXME: insert proper C++ library support
  11250. ld_shlibs_CXX=no
  11251. ;;
  11252. aCC*)
  11253. case $host_cpu in
  11254. hppa*64*)
  11255. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11256. ;;
  11257. ia64*)
  11258. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11259. ;;
  11260. *)
  11261. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11262. ;;
  11263. esac
  11264. # Commands to make compiler produce verbose output that lists
  11265. # what "hidden" libraries, object files and flags are used when
  11266. # linking a shared library.
  11267. #
  11268. # There doesn't appear to be a way to prevent this compiler from
  11269. # explicitly linking system object files so we need to strip them
  11270. # from the output so that they don't get included in the library
  11271. # dependencies.
  11272. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11273. ;;
  11274. *)
  11275. if test "$GXX" = yes; then
  11276. if test $with_gnu_ld = no; then
  11277. case $host_cpu in
  11278. hppa*64*)
  11279. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11280. ;;
  11281. ia64*)
  11282. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11283. ;;
  11284. *)
  11285. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11286. ;;
  11287. esac
  11288. fi
  11289. else
  11290. # FIXME: insert proper C++ library support
  11291. ld_shlibs_CXX=no
  11292. fi
  11293. ;;
  11294. esac
  11295. ;;
  11296. interix[3-9]*)
  11297. hardcode_direct_CXX=no
  11298. hardcode_shlibpath_var_CXX=no
  11299. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11300. export_dynamic_flag_spec_CXX='${wl}-E'
  11301. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11302. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11303. # default) and relocated if they conflict, which is a slow very memory
  11304. # consuming and fragmenting process. To avoid this, we pick a random,
  11305. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11306. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11307. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11308. archive_expsym_cmds_CXX='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'
  11309. ;;
  11310. irix5* | irix6*)
  11311. case $cc_basename in
  11312. CC*)
  11313. # SGI C++
  11314. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11315. # Archives containing C++ object files must be created using
  11316. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11317. # necessary to make sure instantiated templates are included
  11318. # in the archive.
  11319. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11320. ;;
  11321. *)
  11322. if test "$GXX" = yes; then
  11323. if test "$with_gnu_ld" = no; then
  11324. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11325. else
  11326. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11327. fi
  11328. fi
  11329. link_all_deplibs_CXX=yes
  11330. ;;
  11331. esac
  11332. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11333. hardcode_libdir_separator_CXX=:
  11334. inherit_rpath_CXX=yes
  11335. ;;
  11336. linux* | k*bsd*-gnu)
  11337. case $cc_basename in
  11338. KCC*)
  11339. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11340. # KCC will only create a shared library if the output file
  11341. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11342. # to its proper name (with version) after linking.
  11343. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11344. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11345. # Commands to make compiler produce verbose output that lists
  11346. # what "hidden" libraries, object files and flags are used when
  11347. # linking a shared library.
  11348. #
  11349. # There doesn't appear to be a way to prevent this compiler from
  11350. # explicitly linking system object files so we need to strip them
  11351. # from the output so that they don't get included in the library
  11352. # dependencies.
  11353. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11354. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11355. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11356. # Archives containing C++ object files must be created using
  11357. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11358. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11359. ;;
  11360. icpc* | ecpc* )
  11361. # Intel C++
  11362. with_gnu_ld=yes
  11363. # version 8.0 and above of icpc choke on multiply defined symbols
  11364. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11365. # earlier do not add the objects themselves.
  11366. case `$CC -V 2>&1` in
  11367. *"Version 7."*)
  11368. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11369. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11370. ;;
  11371. *) # Version 8.0 or newer
  11372. tmp_idyn=
  11373. case $host_cpu in
  11374. ia64*) tmp_idyn=' -i_dynamic';;
  11375. esac
  11376. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11377. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11378. ;;
  11379. esac
  11380. archive_cmds_need_lc_CXX=no
  11381. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11382. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11383. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11384. ;;
  11385. pgCC* | pgcpp*)
  11386. # Portland Group C++ compiler
  11387. case `$CC -V` in
  11388. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11389. prelink_cmds_CXX='tpldir=Template.dir~
  11390. rm -rf $tpldir~
  11391. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11392. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11393. old_archive_cmds_CXX='tpldir=Template.dir~
  11394. rm -rf $tpldir~
  11395. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11396. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11397. $RANLIB $oldlib'
  11398. archive_cmds_CXX='tpldir=Template.dir~
  11399. rm -rf $tpldir~
  11400. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11401. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11402. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11403. rm -rf $tpldir~
  11404. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11405. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11406. ;;
  11407. *) # Version 6 will use weak symbols
  11408. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11409. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11410. ;;
  11411. esac
  11412. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11413. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11414. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11415. ;;
  11416. cxx*)
  11417. # Compaq C++
  11418. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11419. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11420. runpath_var=LD_RUN_PATH
  11421. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11422. hardcode_libdir_separator_CXX=:
  11423. # Commands to make compiler produce verbose output that lists
  11424. # what "hidden" libraries, object files and flags are used when
  11425. # linking a shared library.
  11426. #
  11427. # There doesn't appear to be a way to prevent this compiler from
  11428. # explicitly linking system object files so we need to strip them
  11429. # from the output so that they don't get included in the library
  11430. # dependencies.
  11431. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11432. ;;
  11433. xl*)
  11434. # IBM XL 8.0 on PPC, with GNU ld
  11435. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11436. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11437. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11438. if test "x$supports_anon_versioning" = xyes; then
  11439. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11440. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11441. echo "local: *; };" >> $output_objdir/$libname.ver~
  11442. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11443. fi
  11444. ;;
  11445. *)
  11446. case `$CC -V 2>&1 | sed 5q` in
  11447. *Sun\ C*)
  11448. # Sun C++ 5.9
  11449. no_undefined_flag_CXX=' -zdefs'
  11450. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11451. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11452. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11453. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11454. compiler_needs_object_CXX=yes
  11455. # Not sure whether something based on
  11456. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11457. # would be better.
  11458. output_verbose_link_cmd='echo'
  11459. # Archives containing C++ object files must be created using
  11460. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11461. # necessary to make sure instantiated templates are included
  11462. # in the archive.
  11463. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11464. ;;
  11465. esac
  11466. ;;
  11467. esac
  11468. ;;
  11469. lynxos*)
  11470. # FIXME: insert proper C++ library support
  11471. ld_shlibs_CXX=no
  11472. ;;
  11473. m88k*)
  11474. # FIXME: insert proper C++ library support
  11475. ld_shlibs_CXX=no
  11476. ;;
  11477. mvs*)
  11478. case $cc_basename in
  11479. cxx*)
  11480. # FIXME: insert proper C++ library support
  11481. ld_shlibs_CXX=no
  11482. ;;
  11483. *)
  11484. # FIXME: insert proper C++ library support
  11485. ld_shlibs_CXX=no
  11486. ;;
  11487. esac
  11488. ;;
  11489. netbsd*)
  11490. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11491. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11492. wlarc=
  11493. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11494. hardcode_direct_CXX=yes
  11495. hardcode_shlibpath_var_CXX=no
  11496. fi
  11497. # Workaround some broken pre-1.5 toolchains
  11498. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11499. ;;
  11500. *nto* | *qnx*)
  11501. ld_shlibs_CXX=yes
  11502. ;;
  11503. openbsd2*)
  11504. # C++ shared libraries are fairly broken
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. openbsd*)
  11508. if test -f /usr/libexec/ld.so; then
  11509. hardcode_direct_CXX=yes
  11510. hardcode_shlibpath_var_CXX=no
  11511. hardcode_direct_absolute_CXX=yes
  11512. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11513. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11514. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11515. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11516. export_dynamic_flag_spec_CXX='${wl}-E'
  11517. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11518. fi
  11519. output_verbose_link_cmd=echo
  11520. else
  11521. ld_shlibs_CXX=no
  11522. fi
  11523. ;;
  11524. osf3* | osf4* | osf5*)
  11525. case $cc_basename in
  11526. KCC*)
  11527. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11528. # KCC will only create a shared library if the output file
  11529. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11530. # to its proper name (with version) after linking.
  11531. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11532. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11533. hardcode_libdir_separator_CXX=:
  11534. # Archives containing C++ object files must be created using
  11535. # the KAI C++ compiler.
  11536. case $host in
  11537. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11538. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11539. esac
  11540. ;;
  11541. RCC*)
  11542. # Rational C++ 2.4.1
  11543. # FIXME: insert proper C++ library support
  11544. ld_shlibs_CXX=no
  11545. ;;
  11546. cxx*)
  11547. case $host in
  11548. osf3*)
  11549. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11550. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11551. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11552. ;;
  11553. *)
  11554. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11555. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11556. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11557. echo "-hidden">> $lib.exp~
  11558. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  11559. $RM $lib.exp'
  11560. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11561. ;;
  11562. esac
  11563. hardcode_libdir_separator_CXX=:
  11564. # Commands to make compiler produce verbose output that lists
  11565. # what "hidden" libraries, object files and flags are used when
  11566. # linking a shared library.
  11567. #
  11568. # There doesn't appear to be a way to prevent this compiler from
  11569. # explicitly linking system object files so we need to strip them
  11570. # from the output so that they don't get included in the library
  11571. # dependencies.
  11572. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11573. ;;
  11574. *)
  11575. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11576. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11577. case $host in
  11578. osf3*)
  11579. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11580. ;;
  11581. *)
  11582. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11583. ;;
  11584. esac
  11585. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11586. hardcode_libdir_separator_CXX=:
  11587. # Commands to make compiler produce verbose output that lists
  11588. # what "hidden" libraries, object files and flags are used when
  11589. # linking a shared library.
  11590. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11591. else
  11592. # FIXME: insert proper C++ library support
  11593. ld_shlibs_CXX=no
  11594. fi
  11595. ;;
  11596. esac
  11597. ;;
  11598. psos*)
  11599. # FIXME: insert proper C++ library support
  11600. ld_shlibs_CXX=no
  11601. ;;
  11602. sunos4*)
  11603. case $cc_basename in
  11604. CC*)
  11605. # Sun C++ 4.x
  11606. # FIXME: insert proper C++ library support
  11607. ld_shlibs_CXX=no
  11608. ;;
  11609. lcc*)
  11610. # Lucid
  11611. # FIXME: insert proper C++ library support
  11612. ld_shlibs_CXX=no
  11613. ;;
  11614. *)
  11615. # FIXME: insert proper C++ library support
  11616. ld_shlibs_CXX=no
  11617. ;;
  11618. esac
  11619. ;;
  11620. solaris*)
  11621. case $cc_basename in
  11622. CC*)
  11623. # Sun C++ 4.2, 5.x and Centerline C++
  11624. archive_cmds_need_lc_CXX=yes
  11625. no_undefined_flag_CXX=' -zdefs'
  11626. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11627. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11628. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11629. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11630. hardcode_shlibpath_var_CXX=no
  11631. case $host_os in
  11632. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11633. *)
  11634. # The compiler driver will combine and reorder linker options,
  11635. # but understands `-z linker_flag'.
  11636. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11637. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11638. ;;
  11639. esac
  11640. link_all_deplibs_CXX=yes
  11641. output_verbose_link_cmd='echo'
  11642. # Archives containing C++ object files must be created using
  11643. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11644. # necessary to make sure instantiated templates are included
  11645. # in the archive.
  11646. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11647. ;;
  11648. gcx*)
  11649. # Green Hills C++ Compiler
  11650. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11651. # The C++ compiler must be used to create the archive.
  11652. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11653. ;;
  11654. *)
  11655. # GNU C++ compiler with Solaris linker
  11656. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11657. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11658. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11659. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11660. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11661. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11662. # Commands to make compiler produce verbose output that lists
  11663. # what "hidden" libraries, object files and flags are used when
  11664. # linking a shared library.
  11665. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11666. else
  11667. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11668. # platform.
  11669. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11670. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11671. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11672. # Commands to make compiler produce verbose output that lists
  11673. # what "hidden" libraries, object files and flags are used when
  11674. # linking a shared library.
  11675. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11676. fi
  11677. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11678. case $host_os in
  11679. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11680. *)
  11681. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11682. ;;
  11683. esac
  11684. fi
  11685. ;;
  11686. esac
  11687. ;;
  11688. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11689. no_undefined_flag_CXX='${wl}-z,text'
  11690. archive_cmds_need_lc_CXX=no
  11691. hardcode_shlibpath_var_CXX=no
  11692. runpath_var='LD_RUN_PATH'
  11693. case $cc_basename in
  11694. CC*)
  11695. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11696. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11697. ;;
  11698. *)
  11699. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11700. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11701. ;;
  11702. esac
  11703. ;;
  11704. sysv5* | sco3.2v5* | sco5v6*)
  11705. # Note: We can NOT use -z defs as we might desire, because we do not
  11706. # link with -lc, and that would cause any symbols used from libc to
  11707. # always be unresolved, which means just about no library would
  11708. # ever link correctly. If we're not using GNU ld we use -z text
  11709. # though, which does catch some bad symbols but isn't as heavy-handed
  11710. # as -z defs.
  11711. no_undefined_flag_CXX='${wl}-z,text'
  11712. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11713. archive_cmds_need_lc_CXX=no
  11714. hardcode_shlibpath_var_CXX=no
  11715. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11716. hardcode_libdir_separator_CXX=':'
  11717. link_all_deplibs_CXX=yes
  11718. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11719. runpath_var='LD_RUN_PATH'
  11720. case $cc_basename in
  11721. CC*)
  11722. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11723. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11724. ;;
  11725. *)
  11726. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11727. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11728. ;;
  11729. esac
  11730. ;;
  11731. tandem*)
  11732. case $cc_basename in
  11733. NCC*)
  11734. # NonStop-UX NCC 3.20
  11735. # FIXME: insert proper C++ library support
  11736. ld_shlibs_CXX=no
  11737. ;;
  11738. *)
  11739. # FIXME: insert proper C++ library support
  11740. ld_shlibs_CXX=no
  11741. ;;
  11742. esac
  11743. ;;
  11744. vxworks*)
  11745. # FIXME: insert proper C++ library support
  11746. ld_shlibs_CXX=no
  11747. ;;
  11748. *)
  11749. # FIXME: insert proper C++ library support
  11750. ld_shlibs_CXX=no
  11751. ;;
  11752. esac
  11753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11754. $as_echo "$ld_shlibs_CXX" >&6; }
  11755. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11756. GCC_CXX="$GXX"
  11757. LD_CXX="$LD"
  11758. ## CAVEAT EMPTOR:
  11759. ## There is no encapsulation within the following macros, do not change
  11760. ## the running order or otherwise move them around unless you know exactly
  11761. ## what you are doing...
  11762. # Dependencies to place before and after the object being linked:
  11763. predep_objects_CXX=
  11764. postdep_objects_CXX=
  11765. predeps_CXX=
  11766. postdeps_CXX=
  11767. compiler_lib_search_path_CXX=
  11768. cat > conftest.$ac_ext <<_LT_EOF
  11769. class Foo
  11770. {
  11771. public:
  11772. Foo (void) { a = 0; }
  11773. private:
  11774. int a;
  11775. };
  11776. _LT_EOF
  11777. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11778. (eval $ac_compile) 2>&5
  11779. ac_status=$?
  11780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11781. test $ac_status = 0; }; then
  11782. # Parse the compiler output and extract the necessary
  11783. # objects, libraries and library flags.
  11784. # Sentinel used to keep track of whether or not we are before
  11785. # the conftest object file.
  11786. pre_test_object_deps_done=no
  11787. for p in `eval "$output_verbose_link_cmd"`; do
  11788. case $p in
  11789. -L* | -R* | -l*)
  11790. # Some compilers place space between "-{L,R}" and the path.
  11791. # Remove the space.
  11792. if test $p = "-L" ||
  11793. test $p = "-R"; then
  11794. prev=$p
  11795. continue
  11796. else
  11797. prev=
  11798. fi
  11799. if test "$pre_test_object_deps_done" = no; then
  11800. case $p in
  11801. -L* | -R*)
  11802. # Internal compiler library paths should come after those
  11803. # provided the user. The postdeps already come after the
  11804. # user supplied libs so there is no need to process them.
  11805. if test -z "$compiler_lib_search_path_CXX"; then
  11806. compiler_lib_search_path_CXX="${prev}${p}"
  11807. else
  11808. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11809. fi
  11810. ;;
  11811. # The "-l" case would never come before the object being
  11812. # linked, so don't bother handling this case.
  11813. esac
  11814. else
  11815. if test -z "$postdeps_CXX"; then
  11816. postdeps_CXX="${prev}${p}"
  11817. else
  11818. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11819. fi
  11820. fi
  11821. ;;
  11822. *.$objext)
  11823. # This assumes that the test object file only shows up
  11824. # once in the compiler output.
  11825. if test "$p" = "conftest.$objext"; then
  11826. pre_test_object_deps_done=yes
  11827. continue
  11828. fi
  11829. if test "$pre_test_object_deps_done" = no; then
  11830. if test -z "$predep_objects_CXX"; then
  11831. predep_objects_CXX="$p"
  11832. else
  11833. predep_objects_CXX="$predep_objects_CXX $p"
  11834. fi
  11835. else
  11836. if test -z "$postdep_objects_CXX"; then
  11837. postdep_objects_CXX="$p"
  11838. else
  11839. postdep_objects_CXX="$postdep_objects_CXX $p"
  11840. fi
  11841. fi
  11842. ;;
  11843. *) ;; # Ignore the rest.
  11844. esac
  11845. done
  11846. # Clean up.
  11847. rm -f a.out a.exe
  11848. else
  11849. echo "libtool.m4: error: problem compiling CXX test program"
  11850. fi
  11851. $RM -f confest.$objext
  11852. # PORTME: override above test on systems where it is broken
  11853. case $host_os in
  11854. interix[3-9]*)
  11855. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11856. # hack all around it, let's just trust "g++" to DTRT.
  11857. predep_objects_CXX=
  11858. postdep_objects_CXX=
  11859. postdeps_CXX=
  11860. ;;
  11861. linux*)
  11862. case `$CC -V 2>&1 | sed 5q` in
  11863. *Sun\ C*)
  11864. # Sun C++ 5.9
  11865. # The more standards-conforming stlport4 library is
  11866. # incompatible with the Cstd library. Avoid specifying
  11867. # it if it's in CXXFLAGS. Ignore libCrun as
  11868. # -library=stlport4 depends on it.
  11869. case " $CXX $CXXFLAGS " in
  11870. *" -library=stlport4 "*)
  11871. solaris_use_stlport4=yes
  11872. ;;
  11873. esac
  11874. if test "$solaris_use_stlport4" != yes; then
  11875. postdeps_CXX='-library=Cstd -library=Crun'
  11876. fi
  11877. ;;
  11878. esac
  11879. ;;
  11880. solaris*)
  11881. case $cc_basename in
  11882. CC*)
  11883. # The more standards-conforming stlport4 library is
  11884. # incompatible with the Cstd library. Avoid specifying
  11885. # it if it's in CXXFLAGS. Ignore libCrun as
  11886. # -library=stlport4 depends on it.
  11887. case " $CXX $CXXFLAGS " in
  11888. *" -library=stlport4 "*)
  11889. solaris_use_stlport4=yes
  11890. ;;
  11891. esac
  11892. # Adding this requires a known-good setup of shared libraries for
  11893. # Sun compiler versions before 5.6, else PIC objects from an old
  11894. # archive will be linked into the output, leading to subtle bugs.
  11895. if test "$solaris_use_stlport4" != yes; then
  11896. postdeps_CXX='-library=Cstd -library=Crun'
  11897. fi
  11898. ;;
  11899. esac
  11900. ;;
  11901. esac
  11902. case " $postdeps_CXX " in
  11903. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11904. esac
  11905. compiler_lib_search_dirs_CXX=
  11906. if test -n "${compiler_lib_search_path_CXX}"; then
  11907. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11908. fi
  11909. lt_prog_compiler_wl_CXX=
  11910. lt_prog_compiler_pic_CXX=
  11911. lt_prog_compiler_static_CXX=
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11913. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11914. # C++ specific cases for pic, static, wl, etc.
  11915. if test "$GXX" = yes; then
  11916. lt_prog_compiler_wl_CXX='-Wl,'
  11917. lt_prog_compiler_static_CXX='-static'
  11918. case $host_os in
  11919. aix*)
  11920. # All AIX code is PIC.
  11921. if test "$host_cpu" = ia64; then
  11922. # AIX 5 now supports IA64 processor
  11923. lt_prog_compiler_static_CXX='-Bstatic'
  11924. fi
  11925. ;;
  11926. amigaos*)
  11927. case $host_cpu in
  11928. powerpc)
  11929. # see comment about AmigaOS4 .so support
  11930. lt_prog_compiler_pic_CXX='-fPIC'
  11931. ;;
  11932. m68k)
  11933. # FIXME: we need at least 68020 code to build shared libraries, but
  11934. # adding the `-m68020' flag to GCC prevents building anything better,
  11935. # like `-m68040'.
  11936. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11937. ;;
  11938. esac
  11939. ;;
  11940. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11941. # PIC is the default for these OSes.
  11942. ;;
  11943. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11944. # This hack is so that the source file can tell whether it is being
  11945. # built for inclusion in a dll (and should export symbols for example).
  11946. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11947. # (--disable-auto-import) libraries
  11948. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11949. ;;
  11950. darwin* | rhapsody*)
  11951. # PIC is the default on this platform
  11952. # Common symbols not allowed in MH_DYLIB files
  11953. lt_prog_compiler_pic_CXX='-fno-common'
  11954. ;;
  11955. *djgpp*)
  11956. # DJGPP does not support shared libraries at all
  11957. lt_prog_compiler_pic_CXX=
  11958. ;;
  11959. interix[3-9]*)
  11960. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11961. # Instead, we relocate shared libraries at runtime.
  11962. ;;
  11963. sysv4*MP*)
  11964. if test -d /usr/nec; then
  11965. lt_prog_compiler_pic_CXX=-Kconform_pic
  11966. fi
  11967. ;;
  11968. hpux*)
  11969. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11970. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11971. # sets the default TLS model and affects inlining.
  11972. case $host_cpu in
  11973. hppa*64*)
  11974. ;;
  11975. *)
  11976. lt_prog_compiler_pic_CXX='-fPIC'
  11977. ;;
  11978. esac
  11979. ;;
  11980. *qnx* | *nto*)
  11981. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11982. # it will coredump.
  11983. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11984. ;;
  11985. *)
  11986. lt_prog_compiler_pic_CXX='-fPIC'
  11987. ;;
  11988. esac
  11989. else
  11990. case $host_os in
  11991. aix[4-9]*)
  11992. # All AIX code is PIC.
  11993. if test "$host_cpu" = ia64; then
  11994. # AIX 5 now supports IA64 processor
  11995. lt_prog_compiler_static_CXX='-Bstatic'
  11996. else
  11997. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11998. fi
  11999. ;;
  12000. chorus*)
  12001. case $cc_basename in
  12002. cxch68*)
  12003. # Green Hills C++ Compiler
  12004. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12005. ;;
  12006. esac
  12007. ;;
  12008. dgux*)
  12009. case $cc_basename in
  12010. ec++*)
  12011. lt_prog_compiler_pic_CXX='-KPIC'
  12012. ;;
  12013. ghcx*)
  12014. # Green Hills C++ Compiler
  12015. lt_prog_compiler_pic_CXX='-pic'
  12016. ;;
  12017. *)
  12018. ;;
  12019. esac
  12020. ;;
  12021. freebsd* | dragonfly*)
  12022. # FreeBSD uses GNU C++
  12023. ;;
  12024. hpux9* | hpux10* | hpux11*)
  12025. case $cc_basename in
  12026. CC*)
  12027. lt_prog_compiler_wl_CXX='-Wl,'
  12028. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12029. if test "$host_cpu" != ia64; then
  12030. lt_prog_compiler_pic_CXX='+Z'
  12031. fi
  12032. ;;
  12033. aCC*)
  12034. lt_prog_compiler_wl_CXX='-Wl,'
  12035. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12036. case $host_cpu in
  12037. hppa*64*|ia64*)
  12038. # +Z the default
  12039. ;;
  12040. *)
  12041. lt_prog_compiler_pic_CXX='+Z'
  12042. ;;
  12043. esac
  12044. ;;
  12045. *)
  12046. ;;
  12047. esac
  12048. ;;
  12049. interix*)
  12050. # This is c89, which is MS Visual C++ (no shared libs)
  12051. # Anyone wants to do a port?
  12052. ;;
  12053. irix5* | irix6* | nonstopux*)
  12054. case $cc_basename in
  12055. CC*)
  12056. lt_prog_compiler_wl_CXX='-Wl,'
  12057. lt_prog_compiler_static_CXX='-non_shared'
  12058. # CC pic flag -KPIC is the default.
  12059. ;;
  12060. *)
  12061. ;;
  12062. esac
  12063. ;;
  12064. linux* | k*bsd*-gnu)
  12065. case $cc_basename in
  12066. KCC*)
  12067. # KAI C++ Compiler
  12068. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12069. lt_prog_compiler_pic_CXX='-fPIC'
  12070. ;;
  12071. ecpc* )
  12072. # old Intel C++ for x86_64 which still supported -KPIC.
  12073. lt_prog_compiler_wl_CXX='-Wl,'
  12074. lt_prog_compiler_pic_CXX='-KPIC'
  12075. lt_prog_compiler_static_CXX='-static'
  12076. ;;
  12077. icpc* )
  12078. # Intel C++, used to be incompatible with GCC.
  12079. # ICC 10 doesn't accept -KPIC any more.
  12080. lt_prog_compiler_wl_CXX='-Wl,'
  12081. lt_prog_compiler_pic_CXX='-fPIC'
  12082. lt_prog_compiler_static_CXX='-static'
  12083. ;;
  12084. pgCC* | pgcpp*)
  12085. # Portland Group C++ compiler
  12086. lt_prog_compiler_wl_CXX='-Wl,'
  12087. lt_prog_compiler_pic_CXX='-fpic'
  12088. lt_prog_compiler_static_CXX='-Bstatic'
  12089. ;;
  12090. cxx*)
  12091. # Compaq C++
  12092. # Make sure the PIC flag is empty. It appears that all Alpha
  12093. # Linux and Compaq Tru64 Unix objects are PIC.
  12094. lt_prog_compiler_pic_CXX=
  12095. lt_prog_compiler_static_CXX='-non_shared'
  12096. ;;
  12097. xlc* | xlC*)
  12098. # IBM XL 8.0 on PPC
  12099. lt_prog_compiler_wl_CXX='-Wl,'
  12100. lt_prog_compiler_pic_CXX='-qpic'
  12101. lt_prog_compiler_static_CXX='-qstaticlink'
  12102. ;;
  12103. *)
  12104. case `$CC -V 2>&1 | sed 5q` in
  12105. *Sun\ C*)
  12106. # Sun C++ 5.9
  12107. lt_prog_compiler_pic_CXX='-KPIC'
  12108. lt_prog_compiler_static_CXX='-Bstatic'
  12109. lt_prog_compiler_wl_CXX='-Qoption ld '
  12110. ;;
  12111. esac
  12112. ;;
  12113. esac
  12114. ;;
  12115. lynxos*)
  12116. ;;
  12117. m88k*)
  12118. ;;
  12119. mvs*)
  12120. case $cc_basename in
  12121. cxx*)
  12122. lt_prog_compiler_pic_CXX='-W c,exportall'
  12123. ;;
  12124. *)
  12125. ;;
  12126. esac
  12127. ;;
  12128. netbsd*)
  12129. ;;
  12130. *qnx* | *nto*)
  12131. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12132. # it will coredump.
  12133. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12134. ;;
  12135. osf3* | osf4* | osf5*)
  12136. case $cc_basename in
  12137. KCC*)
  12138. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12139. ;;
  12140. RCC*)
  12141. # Rational C++ 2.4.1
  12142. lt_prog_compiler_pic_CXX='-pic'
  12143. ;;
  12144. cxx*)
  12145. # Digital/Compaq C++
  12146. lt_prog_compiler_wl_CXX='-Wl,'
  12147. # Make sure the PIC flag is empty. It appears that all Alpha
  12148. # Linux and Compaq Tru64 Unix objects are PIC.
  12149. lt_prog_compiler_pic_CXX=
  12150. lt_prog_compiler_static_CXX='-non_shared'
  12151. ;;
  12152. *)
  12153. ;;
  12154. esac
  12155. ;;
  12156. psos*)
  12157. ;;
  12158. solaris*)
  12159. case $cc_basename in
  12160. CC*)
  12161. # Sun C++ 4.2, 5.x and Centerline C++
  12162. lt_prog_compiler_pic_CXX='-KPIC'
  12163. lt_prog_compiler_static_CXX='-Bstatic'
  12164. lt_prog_compiler_wl_CXX='-Qoption ld '
  12165. ;;
  12166. gcx*)
  12167. # Green Hills C++ Compiler
  12168. lt_prog_compiler_pic_CXX='-PIC'
  12169. ;;
  12170. *)
  12171. ;;
  12172. esac
  12173. ;;
  12174. sunos4*)
  12175. case $cc_basename in
  12176. CC*)
  12177. # Sun C++ 4.x
  12178. lt_prog_compiler_pic_CXX='-pic'
  12179. lt_prog_compiler_static_CXX='-Bstatic'
  12180. ;;
  12181. lcc*)
  12182. # Lucid
  12183. lt_prog_compiler_pic_CXX='-pic'
  12184. ;;
  12185. *)
  12186. ;;
  12187. esac
  12188. ;;
  12189. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12190. case $cc_basename in
  12191. CC*)
  12192. lt_prog_compiler_wl_CXX='-Wl,'
  12193. lt_prog_compiler_pic_CXX='-KPIC'
  12194. lt_prog_compiler_static_CXX='-Bstatic'
  12195. ;;
  12196. esac
  12197. ;;
  12198. tandem*)
  12199. case $cc_basename in
  12200. NCC*)
  12201. # NonStop-UX NCC 3.20
  12202. lt_prog_compiler_pic_CXX='-KPIC'
  12203. ;;
  12204. *)
  12205. ;;
  12206. esac
  12207. ;;
  12208. vxworks*)
  12209. ;;
  12210. *)
  12211. lt_prog_compiler_can_build_shared_CXX=no
  12212. ;;
  12213. esac
  12214. fi
  12215. case $host_os in
  12216. # For platforms which do not support PIC, -DPIC is meaningless:
  12217. *djgpp*)
  12218. lt_prog_compiler_pic_CXX=
  12219. ;;
  12220. *)
  12221. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12222. ;;
  12223. esac
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12225. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12226. #
  12227. # Check to make sure the PIC flag actually works.
  12228. #
  12229. if test -n "$lt_prog_compiler_pic_CXX"; then
  12230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12231. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12232. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  12233. $as_echo_n "(cached) " >&6
  12234. else
  12235. lt_cv_prog_compiler_pic_works_CXX=no
  12236. ac_outfile=conftest.$ac_objext
  12237. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12238. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12239. # Insert the option either (1) after the last *FLAGS variable, or
  12240. # (2) before a word containing "conftest.", or (3) at the end.
  12241. # Note that $ac_compile itself does not contain backslashes and begins
  12242. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12243. # The option is referenced via a variable to avoid confusing sed.
  12244. lt_compile=`echo "$ac_compile" | $SED \
  12245. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12246. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12247. -e 's:$: $lt_compiler_flag:'`
  12248. (eval echo "\"\$as_me:14125: $lt_compile\"" >&5)
  12249. (eval "$lt_compile" 2>conftest.err)
  12250. ac_status=$?
  12251. cat conftest.err >&5
  12252. echo "$as_me:14129: \$? = $ac_status" >&5
  12253. if (exit $ac_status) && test -s "$ac_outfile"; then
  12254. # The compiler can only warn and ignore the option if not recognized
  12255. # So say no if there are warnings other than the usual output.
  12256. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12257. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12258. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12259. lt_cv_prog_compiler_pic_works_CXX=yes
  12260. fi
  12261. fi
  12262. $RM conftest*
  12263. fi
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12265. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12266. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12267. case $lt_prog_compiler_pic_CXX in
  12268. "" | " "*) ;;
  12269. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12270. esac
  12271. else
  12272. lt_prog_compiler_pic_CXX=
  12273. lt_prog_compiler_can_build_shared_CXX=no
  12274. fi
  12275. fi
  12276. #
  12277. # Check to make sure the static flag actually works.
  12278. #
  12279. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12281. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12282. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  12283. $as_echo_n "(cached) " >&6
  12284. else
  12285. lt_cv_prog_compiler_static_works_CXX=no
  12286. save_LDFLAGS="$LDFLAGS"
  12287. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12288. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12289. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12290. # The linker can only warn and ignore the option if not recognized
  12291. # So say no if there are warnings
  12292. if test -s conftest.err; then
  12293. # Append any errors to the config.log.
  12294. cat conftest.err 1>&5
  12295. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12296. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12297. if diff conftest.exp conftest.er2 >/dev/null; then
  12298. lt_cv_prog_compiler_static_works_CXX=yes
  12299. fi
  12300. else
  12301. lt_cv_prog_compiler_static_works_CXX=yes
  12302. fi
  12303. fi
  12304. $RM -r conftest*
  12305. LDFLAGS="$save_LDFLAGS"
  12306. fi
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12308. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12309. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12310. :
  12311. else
  12312. lt_prog_compiler_static_CXX=
  12313. fi
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12315. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12316. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12317. $as_echo_n "(cached) " >&6
  12318. else
  12319. lt_cv_prog_compiler_c_o_CXX=no
  12320. $RM -r conftest 2>/dev/null
  12321. mkdir conftest
  12322. cd conftest
  12323. mkdir out
  12324. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12325. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12326. # Insert the option either (1) after the last *FLAGS variable, or
  12327. # (2) before a word containing "conftest.", or (3) at the end.
  12328. # Note that $ac_compile itself does not contain backslashes and begins
  12329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12330. lt_compile=`echo "$ac_compile" | $SED \
  12331. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12332. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12333. -e 's:$: $lt_compiler_flag:'`
  12334. (eval echo "\"\$as_me:14224: $lt_compile\"" >&5)
  12335. (eval "$lt_compile" 2>out/conftest.err)
  12336. ac_status=$?
  12337. cat out/conftest.err >&5
  12338. echo "$as_me:14228: \$? = $ac_status" >&5
  12339. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12340. then
  12341. # The compiler can only warn and ignore the option if not recognized
  12342. # So say no if there are warnings
  12343. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12344. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12345. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12346. lt_cv_prog_compiler_c_o_CXX=yes
  12347. fi
  12348. fi
  12349. chmod u+w . 2>&5
  12350. $RM conftest*
  12351. # SGI C++ compiler will create directory out/ii_files/ for
  12352. # template instantiation
  12353. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12354. $RM out/* && rmdir out
  12355. cd ..
  12356. $RM -r conftest
  12357. $RM conftest*
  12358. fi
  12359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12360. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12362. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12363. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12364. $as_echo_n "(cached) " >&6
  12365. else
  12366. lt_cv_prog_compiler_c_o_CXX=no
  12367. $RM -r conftest 2>/dev/null
  12368. mkdir conftest
  12369. cd conftest
  12370. mkdir out
  12371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12372. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12373. # Insert the option either (1) after the last *FLAGS variable, or
  12374. # (2) before a word containing "conftest.", or (3) at the end.
  12375. # Note that $ac_compile itself does not contain backslashes and begins
  12376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12377. lt_compile=`echo "$ac_compile" | $SED \
  12378. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12379. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12380. -e 's:$: $lt_compiler_flag:'`
  12381. (eval echo "\"\$as_me:14276: $lt_compile\"" >&5)
  12382. (eval "$lt_compile" 2>out/conftest.err)
  12383. ac_status=$?
  12384. cat out/conftest.err >&5
  12385. echo "$as_me:14280: \$? = $ac_status" >&5
  12386. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12387. then
  12388. # The compiler can only warn and ignore the option if not recognized
  12389. # So say no if there are warnings
  12390. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12391. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12392. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12393. lt_cv_prog_compiler_c_o_CXX=yes
  12394. fi
  12395. fi
  12396. chmod u+w . 2>&5
  12397. $RM conftest*
  12398. # SGI C++ compiler will create directory out/ii_files/ for
  12399. # template instantiation
  12400. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12401. $RM out/* && rmdir out
  12402. cd ..
  12403. $RM -r conftest
  12404. $RM conftest*
  12405. fi
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12407. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12408. hard_links="nottested"
  12409. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12410. # do not overwrite the value of need_locks provided by the user
  12411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12412. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12413. hard_links=yes
  12414. $RM conftest*
  12415. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12416. touch conftest.a
  12417. ln conftest.a conftest.b 2>&5 || hard_links=no
  12418. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12420. $as_echo "$hard_links" >&6; }
  12421. if test "$hard_links" = no; then
  12422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12423. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12424. need_locks=warn
  12425. fi
  12426. else
  12427. need_locks=no
  12428. fi
  12429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12430. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12431. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12432. case $host_os in
  12433. aix[4-9]*)
  12434. # If we're using GNU nm, then we don't want the "-C" option.
  12435. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12436. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12437. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12438. else
  12439. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12440. fi
  12441. ;;
  12442. pw32*)
  12443. export_symbols_cmds_CXX="$ltdll_cmds"
  12444. ;;
  12445. cygwin* | mingw* | cegcc*)
  12446. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12447. ;;
  12448. *)
  12449. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12450. ;;
  12451. esac
  12452. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12454. $as_echo "$ld_shlibs_CXX" >&6; }
  12455. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12456. with_gnu_ld_CXX=$with_gnu_ld
  12457. #
  12458. # Do we need to explicitly link libc?
  12459. #
  12460. case "x$archive_cmds_need_lc_CXX" in
  12461. x|xyes)
  12462. # Assume -lc should be added
  12463. archive_cmds_need_lc_CXX=yes
  12464. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12465. case $archive_cmds_CXX in
  12466. *'~'*)
  12467. # FIXME: we may have to deal with multi-command sequences.
  12468. ;;
  12469. '$CC '*)
  12470. # Test whether the compiler implicitly links with -lc since on some
  12471. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12472. # to ld, don't add -lc before -lgcc.
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12474. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12475. $RM conftest*
  12476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12478. (eval $ac_compile) 2>&5
  12479. ac_status=$?
  12480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12481. test $ac_status = 0; } 2>conftest.err; then
  12482. soname=conftest
  12483. lib=conftest
  12484. libobjs=conftest.$ac_objext
  12485. deplibs=
  12486. wl=$lt_prog_compiler_wl_CXX
  12487. pic_flag=$lt_prog_compiler_pic_CXX
  12488. compiler_flags=-v
  12489. linker_flags=-v
  12490. verstring=
  12491. output_objdir=.
  12492. libname=conftest
  12493. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12494. allow_undefined_flag_CXX=
  12495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12496. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12497. ac_status=$?
  12498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12499. test $ac_status = 0; }
  12500. then
  12501. archive_cmds_need_lc_CXX=no
  12502. else
  12503. archive_cmds_need_lc_CXX=yes
  12504. fi
  12505. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12506. else
  12507. cat conftest.err 1>&5
  12508. fi
  12509. $RM conftest*
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  12511. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12512. ;;
  12513. esac
  12514. fi
  12515. ;;
  12516. esac
  12517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12518. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12519. library_names_spec=
  12520. libname_spec='lib$name'
  12521. soname_spec=
  12522. shrext_cmds=".so"
  12523. postinstall_cmds=
  12524. postuninstall_cmds=
  12525. finish_cmds=
  12526. finish_eval=
  12527. shlibpath_var=
  12528. shlibpath_overrides_runpath=unknown
  12529. version_type=none
  12530. dynamic_linker="$host_os ld.so"
  12531. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12532. need_lib_prefix=unknown
  12533. hardcode_into_libs=no
  12534. # when you set need_version to no, make sure it does not cause -set_version
  12535. # flags to be left without arguments
  12536. need_version=unknown
  12537. case $host_os in
  12538. aix3*)
  12539. version_type=linux
  12540. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12541. shlibpath_var=LIBPATH
  12542. # AIX 3 has no versioning support, so we append a major version to the name.
  12543. soname_spec='${libname}${release}${shared_ext}$major'
  12544. ;;
  12545. aix[4-9]*)
  12546. version_type=linux
  12547. need_lib_prefix=no
  12548. need_version=no
  12549. hardcode_into_libs=yes
  12550. if test "$host_cpu" = ia64; then
  12551. # AIX 5 supports IA64
  12552. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12553. shlibpath_var=LD_LIBRARY_PATH
  12554. else
  12555. # With GCC up to 2.95.x, collect2 would create an import file
  12556. # for dependence libraries. The import file would start with
  12557. # the line `#! .'. This would cause the generated library to
  12558. # depend on `.', always an invalid library. This was fixed in
  12559. # development snapshots of GCC prior to 3.0.
  12560. case $host_os in
  12561. aix4 | aix4.[01] | aix4.[01].*)
  12562. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12563. echo ' yes '
  12564. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12565. :
  12566. else
  12567. can_build_shared=no
  12568. fi
  12569. ;;
  12570. esac
  12571. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12572. # soname into executable. Probably we can add versioning support to
  12573. # collect2, so additional links can be useful in future.
  12574. if test "$aix_use_runtimelinking" = yes; then
  12575. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12576. # instead of lib<name>.a to let people know that these are not
  12577. # typical AIX shared libraries.
  12578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12579. else
  12580. # We preserve .a as extension for shared libraries through AIX4.2
  12581. # and later when we are not doing run time linking.
  12582. library_names_spec='${libname}${release}.a $libname.a'
  12583. soname_spec='${libname}${release}${shared_ext}$major'
  12584. fi
  12585. shlibpath_var=LIBPATH
  12586. fi
  12587. ;;
  12588. amigaos*)
  12589. case $host_cpu in
  12590. powerpc)
  12591. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12592. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12594. ;;
  12595. m68k)
  12596. library_names_spec='$libname.ixlibrary $libname.a'
  12597. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12598. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12599. ;;
  12600. esac
  12601. ;;
  12602. beos*)
  12603. library_names_spec='${libname}${shared_ext}'
  12604. dynamic_linker="$host_os ld.so"
  12605. shlibpath_var=LIBRARY_PATH
  12606. ;;
  12607. bsdi[45]*)
  12608. version_type=linux
  12609. need_version=no
  12610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12611. soname_spec='${libname}${release}${shared_ext}$major'
  12612. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12613. shlibpath_var=LD_LIBRARY_PATH
  12614. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12615. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12616. # the default ld.so.conf also contains /usr/contrib/lib and
  12617. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12618. # libtool to hard-code these into programs
  12619. ;;
  12620. cygwin* | mingw* | pw32* | cegcc*)
  12621. version_type=windows
  12622. shrext_cmds=".dll"
  12623. need_version=no
  12624. need_lib_prefix=no
  12625. case $GCC,$host_os in
  12626. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12627. library_names_spec='$libname.dll.a'
  12628. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12629. postinstall_cmds='base_file=`basename \${file}`~
  12630. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12631. dldir=$destdir/`dirname \$dlpath`~
  12632. test -d \$dldir || mkdir -p \$dldir~
  12633. $install_prog $dir/$dlname \$dldir/$dlname~
  12634. chmod a+x \$dldir/$dlname~
  12635. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12636. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12637. fi'
  12638. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12639. dlpath=$dir/\$dldll~
  12640. $RM \$dlpath'
  12641. shlibpath_overrides_runpath=yes
  12642. case $host_os in
  12643. cygwin*)
  12644. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12645. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12646. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12647. ;;
  12648. mingw* | cegcc*)
  12649. # MinGW DLLs use traditional 'lib' prefix
  12650. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12651. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12652. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12653. # It is most probably a Windows format PATH printed by
  12654. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12655. # path with ; separators, and with drive letters. We can handle the
  12656. # drive letters (cygwin fileutils understands them), so leave them,
  12657. # especially as we might pass files found there to a mingw objdump,
  12658. # which wouldn't understand a cygwinified path. Ahh.
  12659. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12660. else
  12661. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12662. fi
  12663. ;;
  12664. pw32*)
  12665. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12666. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12667. ;;
  12668. esac
  12669. ;;
  12670. *)
  12671. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12672. ;;
  12673. esac
  12674. dynamic_linker='Win32 ld.exe'
  12675. # FIXME: first we should search . and the directory the executable is in
  12676. shlibpath_var=PATH
  12677. ;;
  12678. darwin* | rhapsody*)
  12679. dynamic_linker="$host_os dyld"
  12680. version_type=darwin
  12681. need_lib_prefix=no
  12682. need_version=no
  12683. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12684. soname_spec='${libname}${release}${major}$shared_ext'
  12685. shlibpath_overrides_runpath=yes
  12686. shlibpath_var=DYLD_LIBRARY_PATH
  12687. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12688. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12689. ;;
  12690. dgux*)
  12691. version_type=linux
  12692. need_lib_prefix=no
  12693. need_version=no
  12694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12695. soname_spec='${libname}${release}${shared_ext}$major'
  12696. shlibpath_var=LD_LIBRARY_PATH
  12697. ;;
  12698. freebsd1*)
  12699. dynamic_linker=no
  12700. ;;
  12701. freebsd* | dragonfly*)
  12702. # DragonFly does not have aout. When/if they implement a new
  12703. # versioning mechanism, adjust this.
  12704. if test -x /usr/bin/objformat; then
  12705. objformat=`/usr/bin/objformat`
  12706. else
  12707. case $host_os in
  12708. freebsd[123]*) objformat=aout ;;
  12709. *) objformat=elf ;;
  12710. esac
  12711. fi
  12712. version_type=freebsd-$objformat
  12713. case $version_type in
  12714. freebsd-elf*)
  12715. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12716. need_version=no
  12717. need_lib_prefix=no
  12718. ;;
  12719. freebsd-*)
  12720. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12721. need_version=yes
  12722. ;;
  12723. esac
  12724. shlibpath_var=LD_LIBRARY_PATH
  12725. case $host_os in
  12726. freebsd2*)
  12727. shlibpath_overrides_runpath=yes
  12728. ;;
  12729. freebsd3.[01]* | freebsdelf3.[01]*)
  12730. shlibpath_overrides_runpath=yes
  12731. hardcode_into_libs=yes
  12732. ;;
  12733. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12734. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12735. shlibpath_overrides_runpath=no
  12736. hardcode_into_libs=yes
  12737. ;;
  12738. *) # from 4.6 on, and DragonFly
  12739. shlibpath_overrides_runpath=yes
  12740. hardcode_into_libs=yes
  12741. ;;
  12742. esac
  12743. ;;
  12744. gnu*)
  12745. version_type=linux
  12746. need_lib_prefix=no
  12747. need_version=no
  12748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12749. soname_spec='${libname}${release}${shared_ext}$major'
  12750. shlibpath_var=LD_LIBRARY_PATH
  12751. hardcode_into_libs=yes
  12752. ;;
  12753. hpux9* | hpux10* | hpux11*)
  12754. # Give a soname corresponding to the major version so that dld.sl refuses to
  12755. # link against other versions.
  12756. version_type=sunos
  12757. need_lib_prefix=no
  12758. need_version=no
  12759. case $host_cpu in
  12760. ia64*)
  12761. shrext_cmds='.so'
  12762. hardcode_into_libs=yes
  12763. dynamic_linker="$host_os dld.so"
  12764. shlibpath_var=LD_LIBRARY_PATH
  12765. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12767. soname_spec='${libname}${release}${shared_ext}$major'
  12768. if test "X$HPUX_IA64_MODE" = X32; then
  12769. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12770. else
  12771. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12772. fi
  12773. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12774. ;;
  12775. hppa*64*)
  12776. shrext_cmds='.sl'
  12777. hardcode_into_libs=yes
  12778. dynamic_linker="$host_os dld.sl"
  12779. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12780. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12782. soname_spec='${libname}${release}${shared_ext}$major'
  12783. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12784. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12785. ;;
  12786. *)
  12787. shrext_cmds='.sl'
  12788. dynamic_linker="$host_os dld.sl"
  12789. shlibpath_var=SHLIB_PATH
  12790. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12792. soname_spec='${libname}${release}${shared_ext}$major'
  12793. ;;
  12794. esac
  12795. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12796. postinstall_cmds='chmod 555 $lib'
  12797. ;;
  12798. interix[3-9]*)
  12799. version_type=linux
  12800. need_lib_prefix=no
  12801. need_version=no
  12802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12803. soname_spec='${libname}${release}${shared_ext}$major'
  12804. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12805. shlibpath_var=LD_LIBRARY_PATH
  12806. shlibpath_overrides_runpath=no
  12807. hardcode_into_libs=yes
  12808. ;;
  12809. irix5* | irix6* | nonstopux*)
  12810. case $host_os in
  12811. nonstopux*) version_type=nonstopux ;;
  12812. *)
  12813. if test "$lt_cv_prog_gnu_ld" = yes; then
  12814. version_type=linux
  12815. else
  12816. version_type=irix
  12817. fi ;;
  12818. esac
  12819. need_lib_prefix=no
  12820. need_version=no
  12821. soname_spec='${libname}${release}${shared_ext}$major'
  12822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12823. case $host_os in
  12824. irix5* | nonstopux*)
  12825. libsuff= shlibsuff=
  12826. ;;
  12827. *)
  12828. case $LD in # libtool.m4 will add one of these switches to LD
  12829. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12830. libsuff= shlibsuff= libmagic=32-bit;;
  12831. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12832. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12833. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12834. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12835. *) libsuff= shlibsuff= libmagic=never-match;;
  12836. esac
  12837. ;;
  12838. esac
  12839. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12840. shlibpath_overrides_runpath=no
  12841. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12842. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12843. hardcode_into_libs=yes
  12844. ;;
  12845. # No shared lib support for Linux oldld, aout, or coff.
  12846. linux*oldld* | linux*aout* | linux*coff*)
  12847. dynamic_linker=no
  12848. ;;
  12849. # This must be Linux ELF.
  12850. linux* | k*bsd*-gnu)
  12851. version_type=linux
  12852. need_lib_prefix=no
  12853. need_version=no
  12854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12855. soname_spec='${libname}${release}${shared_ext}$major'
  12856. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12857. shlibpath_var=LD_LIBRARY_PATH
  12858. shlibpath_overrides_runpath=no
  12859. # Some binutils ld are patched to set DT_RUNPATH
  12860. save_LDFLAGS=$LDFLAGS
  12861. save_libdir=$libdir
  12862. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12863. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12865. /* end confdefs.h. */
  12866. int
  12867. main ()
  12868. {
  12869. ;
  12870. return 0;
  12871. }
  12872. _ACEOF
  12873. if ac_fn_cxx_try_link "$LINENO"; then :
  12874. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12875. shlibpath_overrides_runpath=yes
  12876. fi
  12877. fi
  12878. rm -f core conftest.err conftest.$ac_objext \
  12879. conftest$ac_exeext conftest.$ac_ext
  12880. LDFLAGS=$save_LDFLAGS
  12881. libdir=$save_libdir
  12882. # This implies no fast_install, which is unacceptable.
  12883. # Some rework will be needed to allow for fast_install
  12884. # before this can be enabled.
  12885. hardcode_into_libs=yes
  12886. # Append ld.so.conf contents to the search path
  12887. if test -f /etc/ld.so.conf; then
  12888. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12889. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12890. fi
  12891. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12892. # powerpc, because MkLinux only supported shared libraries with the
  12893. # GNU dynamic linker. Since this was broken with cross compilers,
  12894. # most powerpc-linux boxes support dynamic linking these days and
  12895. # people can always --disable-shared, the test was removed, and we
  12896. # assume the GNU/Linux dynamic linker is in use.
  12897. dynamic_linker='GNU/Linux ld.so'
  12898. ;;
  12899. netbsd*)
  12900. version_type=sunos
  12901. need_lib_prefix=no
  12902. need_version=no
  12903. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12905. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12906. dynamic_linker='NetBSD (a.out) ld.so'
  12907. else
  12908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12909. soname_spec='${libname}${release}${shared_ext}$major'
  12910. dynamic_linker='NetBSD ld.elf_so'
  12911. fi
  12912. shlibpath_var=LD_LIBRARY_PATH
  12913. shlibpath_overrides_runpath=yes
  12914. hardcode_into_libs=yes
  12915. ;;
  12916. newsos6)
  12917. version_type=linux
  12918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12919. shlibpath_var=LD_LIBRARY_PATH
  12920. shlibpath_overrides_runpath=yes
  12921. ;;
  12922. *nto* | *qnx*)
  12923. version_type=qnx
  12924. need_lib_prefix=no
  12925. need_version=no
  12926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12927. soname_spec='${libname}${release}${shared_ext}$major'
  12928. shlibpath_var=LD_LIBRARY_PATH
  12929. shlibpath_overrides_runpath=no
  12930. hardcode_into_libs=yes
  12931. dynamic_linker='ldqnx.so'
  12932. ;;
  12933. openbsd*)
  12934. version_type=sunos
  12935. sys_lib_dlsearch_path_spec="/usr/lib"
  12936. need_lib_prefix=no
  12937. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12938. case $host_os in
  12939. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12940. *) need_version=no ;;
  12941. esac
  12942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12943. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12944. shlibpath_var=LD_LIBRARY_PATH
  12945. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12946. case $host_os in
  12947. openbsd2.[89] | openbsd2.[89].*)
  12948. shlibpath_overrides_runpath=no
  12949. ;;
  12950. *)
  12951. shlibpath_overrides_runpath=yes
  12952. ;;
  12953. esac
  12954. else
  12955. shlibpath_overrides_runpath=yes
  12956. fi
  12957. ;;
  12958. os2*)
  12959. libname_spec='$name'
  12960. shrext_cmds=".dll"
  12961. need_lib_prefix=no
  12962. library_names_spec='$libname${shared_ext} $libname.a'
  12963. dynamic_linker='OS/2 ld.exe'
  12964. shlibpath_var=LIBPATH
  12965. ;;
  12966. osf3* | osf4* | osf5*)
  12967. version_type=osf
  12968. need_lib_prefix=no
  12969. need_version=no
  12970. soname_spec='${libname}${release}${shared_ext}$major'
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12972. shlibpath_var=LD_LIBRARY_PATH
  12973. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12974. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12975. ;;
  12976. rdos*)
  12977. dynamic_linker=no
  12978. ;;
  12979. solaris*)
  12980. version_type=linux
  12981. need_lib_prefix=no
  12982. need_version=no
  12983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12984. soname_spec='${libname}${release}${shared_ext}$major'
  12985. shlibpath_var=LD_LIBRARY_PATH
  12986. shlibpath_overrides_runpath=yes
  12987. hardcode_into_libs=yes
  12988. # ldd complains unless libraries are executable
  12989. postinstall_cmds='chmod +x $lib'
  12990. ;;
  12991. sunos4*)
  12992. version_type=sunos
  12993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12994. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12995. shlibpath_var=LD_LIBRARY_PATH
  12996. shlibpath_overrides_runpath=yes
  12997. if test "$with_gnu_ld" = yes; then
  12998. need_lib_prefix=no
  12999. fi
  13000. need_version=yes
  13001. ;;
  13002. sysv4 | sysv4.3*)
  13003. version_type=linux
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13005. soname_spec='${libname}${release}${shared_ext}$major'
  13006. shlibpath_var=LD_LIBRARY_PATH
  13007. case $host_vendor in
  13008. sni)
  13009. shlibpath_overrides_runpath=no
  13010. need_lib_prefix=no
  13011. runpath_var=LD_RUN_PATH
  13012. ;;
  13013. siemens)
  13014. need_lib_prefix=no
  13015. ;;
  13016. motorola)
  13017. need_lib_prefix=no
  13018. need_version=no
  13019. shlibpath_overrides_runpath=no
  13020. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13021. ;;
  13022. esac
  13023. ;;
  13024. sysv4*MP*)
  13025. if test -d /usr/nec ;then
  13026. version_type=linux
  13027. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13028. soname_spec='$libname${shared_ext}.$major'
  13029. shlibpath_var=LD_LIBRARY_PATH
  13030. fi
  13031. ;;
  13032. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13033. version_type=freebsd-elf
  13034. need_lib_prefix=no
  13035. need_version=no
  13036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13037. soname_spec='${libname}${release}${shared_ext}$major'
  13038. shlibpath_var=LD_LIBRARY_PATH
  13039. shlibpath_overrides_runpath=yes
  13040. hardcode_into_libs=yes
  13041. if test "$with_gnu_ld" = yes; then
  13042. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13043. else
  13044. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13045. case $host_os in
  13046. sco3.2v5*)
  13047. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13048. ;;
  13049. esac
  13050. fi
  13051. sys_lib_dlsearch_path_spec='/usr/lib'
  13052. ;;
  13053. tpf*)
  13054. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13055. version_type=linux
  13056. need_lib_prefix=no
  13057. need_version=no
  13058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13059. shlibpath_var=LD_LIBRARY_PATH
  13060. shlibpath_overrides_runpath=no
  13061. hardcode_into_libs=yes
  13062. ;;
  13063. uts4*)
  13064. version_type=linux
  13065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13066. soname_spec='${libname}${release}${shared_ext}$major'
  13067. shlibpath_var=LD_LIBRARY_PATH
  13068. ;;
  13069. *)
  13070. dynamic_linker=no
  13071. ;;
  13072. esac
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13074. $as_echo "$dynamic_linker" >&6; }
  13075. test "$dynamic_linker" = no && can_build_shared=no
  13076. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13077. if test "$GCC" = yes; then
  13078. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13079. fi
  13080. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13081. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13082. fi
  13083. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13084. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13085. fi
  13086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13087. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13088. hardcode_action_CXX=
  13089. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13090. test -n "$runpath_var_CXX" ||
  13091. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13092. # We can hardcode non-existent directories.
  13093. if test "$hardcode_direct_CXX" != no &&
  13094. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13095. # have to relink, otherwise we might link with an installed library
  13096. # when we should be linking with a yet-to-be-installed one
  13097. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13098. test "$hardcode_minus_L_CXX" != no; then
  13099. # Linking always hardcodes the temporary library directory.
  13100. hardcode_action_CXX=relink
  13101. else
  13102. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13103. hardcode_action_CXX=immediate
  13104. fi
  13105. else
  13106. # We cannot hardcode anything, or else we can only hardcode existing
  13107. # directories.
  13108. hardcode_action_CXX=unsupported
  13109. fi
  13110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13111. $as_echo "$hardcode_action_CXX" >&6; }
  13112. if test "$hardcode_action_CXX" = relink ||
  13113. test "$inherit_rpath_CXX" = yes; then
  13114. # Fast installation is not supported
  13115. enable_fast_install=no
  13116. elif test "$shlibpath_overrides_runpath" = yes ||
  13117. test "$enable_shared" = no; then
  13118. # Fast installation is not necessary
  13119. enable_fast_install=needless
  13120. fi
  13121. fi # test -n "$compiler"
  13122. CC=$lt_save_CC
  13123. LDCXX=$LD
  13124. LD=$lt_save_LD
  13125. GCC=$lt_save_GCC
  13126. with_gnu_ld=$lt_save_with_gnu_ld
  13127. lt_cv_path_LDCXX=$lt_cv_path_LD
  13128. lt_cv_path_LD=$lt_save_path_LD
  13129. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13130. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13131. fi # test "$_lt_caught_CXX_error" != yes
  13132. ac_ext=c
  13133. ac_cpp='$CPP $CPPFLAGS'
  13134. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13135. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13136. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13137. ac_ext=c
  13138. ac_cpp='$CPP $CPPFLAGS'
  13139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  13143. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  13144. # On Suns, sometimes $CPP names a directory.
  13145. if test -n "$CPP" && test -d "$CPP"; then
  13146. CPP=
  13147. fi
  13148. if test -z "$CPP"; then
  13149. if test "${ac_cv_prog_CPP+set}" = set; then :
  13150. $as_echo_n "(cached) " >&6
  13151. else
  13152. # Double quotes because CPP needs to be expanded
  13153. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  13154. do
  13155. ac_preproc_ok=false
  13156. for ac_c_preproc_warn_flag in '' yes
  13157. do
  13158. # Use a header file that comes with gcc, so configuring glibc
  13159. # with a fresh cross-compiler works.
  13160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13161. # <limits.h> exists even on freestanding compilers.
  13162. # On the NeXT, cc -E runs the code through the compiler's parser,
  13163. # not just through cpp. "Syntax error" is here to catch this case.
  13164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13165. /* end confdefs.h. */
  13166. #ifdef __STDC__
  13167. # include <limits.h>
  13168. #else
  13169. # include <assert.h>
  13170. #endif
  13171. Syntax error
  13172. _ACEOF
  13173. if ac_fn_c_try_cpp "$LINENO"; then :
  13174. else
  13175. # Broken: fails on valid input.
  13176. continue
  13177. fi
  13178. rm -f conftest.err conftest.$ac_ext
  13179. # OK, works on sane cases. Now check whether nonexistent headers
  13180. # can be detected and how.
  13181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13182. /* end confdefs.h. */
  13183. #include <ac_nonexistent.h>
  13184. _ACEOF
  13185. if ac_fn_c_try_cpp "$LINENO"; then :
  13186. # Broken: success on invalid input.
  13187. continue
  13188. else
  13189. # Passes both tests.
  13190. ac_preproc_ok=:
  13191. break
  13192. fi
  13193. rm -f conftest.err conftest.$ac_ext
  13194. done
  13195. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13196. rm -f conftest.err conftest.$ac_ext
  13197. if $ac_preproc_ok; then :
  13198. break
  13199. fi
  13200. done
  13201. ac_cv_prog_CPP=$CPP
  13202. fi
  13203. CPP=$ac_cv_prog_CPP
  13204. else
  13205. ac_cv_prog_CPP=$CPP
  13206. fi
  13207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  13208. $as_echo "$CPP" >&6; }
  13209. ac_preproc_ok=false
  13210. for ac_c_preproc_warn_flag in '' yes
  13211. do
  13212. # Use a header file that comes with gcc, so configuring glibc
  13213. # with a fresh cross-compiler works.
  13214. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13215. # <limits.h> exists even on freestanding compilers.
  13216. # On the NeXT, cc -E runs the code through the compiler's parser,
  13217. # not just through cpp. "Syntax error" is here to catch this case.
  13218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13219. /* end confdefs.h. */
  13220. #ifdef __STDC__
  13221. # include <limits.h>
  13222. #else
  13223. # include <assert.h>
  13224. #endif
  13225. Syntax error
  13226. _ACEOF
  13227. if ac_fn_c_try_cpp "$LINENO"; then :
  13228. else
  13229. # Broken: fails on valid input.
  13230. continue
  13231. fi
  13232. rm -f conftest.err conftest.$ac_ext
  13233. # OK, works on sane cases. Now check whether nonexistent headers
  13234. # can be detected and how.
  13235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13236. /* end confdefs.h. */
  13237. #include <ac_nonexistent.h>
  13238. _ACEOF
  13239. if ac_fn_c_try_cpp "$LINENO"; then :
  13240. # Broken: success on invalid input.
  13241. continue
  13242. else
  13243. # Passes both tests.
  13244. ac_preproc_ok=:
  13245. break
  13246. fi
  13247. rm -f conftest.err conftest.$ac_ext
  13248. done
  13249. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13250. rm -f conftest.err conftest.$ac_ext
  13251. if $ac_preproc_ok; then :
  13252. else
  13253. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13254. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13255. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  13256. See \`config.log' for more details." "$LINENO" 5; }
  13257. fi
  13258. ac_ext=c
  13259. ac_cpp='$CPP $CPPFLAGS'
  13260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  13264. $as_echo_n "checking whether ln -s works... " >&6; }
  13265. LN_S=$as_ln_s
  13266. if test "$LN_S" = "ln -s"; then
  13267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13268. $as_echo "yes" >&6; }
  13269. else
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  13271. $as_echo "no, using $LN_S" >&6; }
  13272. fi
  13273. for ac_prog in gawk mawk nawk awk
  13274. do
  13275. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13276. set dummy $ac_prog; ac_word=$2
  13277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13278. $as_echo_n "checking for $ac_word... " >&6; }
  13279. if test "${ac_cv_prog_AWK+set}" = set; then :
  13280. $as_echo_n "(cached) " >&6
  13281. else
  13282. if test -n "$AWK"; then
  13283. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  13284. else
  13285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13286. for as_dir in $PATH
  13287. do
  13288. IFS=$as_save_IFS
  13289. test -z "$as_dir" && as_dir=.
  13290. for ac_exec_ext in '' $ac_executable_extensions; do
  13291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13292. ac_cv_prog_AWK="$ac_prog"
  13293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13294. break 2
  13295. fi
  13296. done
  13297. done
  13298. IFS=$as_save_IFS
  13299. fi
  13300. fi
  13301. AWK=$ac_cv_prog_AWK
  13302. if test -n "$AWK"; then
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  13304. $as_echo "$AWK" >&6; }
  13305. else
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13307. $as_echo "no" >&6; }
  13308. fi
  13309. test -n "$AWK" && break
  13310. done
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  13312. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  13313. if test "${ac_cv_path_SED+set}" = set; then :
  13314. $as_echo_n "(cached) " >&6
  13315. else
  13316. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  13317. for ac_i in 1 2 3 4 5 6 7; do
  13318. ac_script="$ac_script$as_nl$ac_script"
  13319. done
  13320. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  13321. { ac_script=; unset ac_script;}
  13322. if test -z "$SED"; then
  13323. ac_path_SED_found=false
  13324. # Loop through the user's path and test for each of PROGNAME-LIST
  13325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13326. for as_dir in $PATH
  13327. do
  13328. IFS=$as_save_IFS
  13329. test -z "$as_dir" && as_dir=.
  13330. for ac_prog in sed gsed; do
  13331. for ac_exec_ext in '' $ac_executable_extensions; do
  13332. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  13333. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  13334. # Check for GNU ac_path_SED and select it if it is found.
  13335. # Check for GNU $ac_path_SED
  13336. case `"$ac_path_SED" --version 2>&1` in
  13337. *GNU*)
  13338. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  13339. *)
  13340. ac_count=0
  13341. $as_echo_n 0123456789 >"conftest.in"
  13342. while :
  13343. do
  13344. cat "conftest.in" "conftest.in" >"conftest.tmp"
  13345. mv "conftest.tmp" "conftest.in"
  13346. cp "conftest.in" "conftest.nl"
  13347. $as_echo '' >> "conftest.nl"
  13348. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  13349. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  13350. as_fn_arith $ac_count + 1 && ac_count=$as_val
  13351. if test $ac_count -gt ${ac_path_SED_max-0}; then
  13352. # Best one so far, save it but keep looking for a better one
  13353. ac_cv_path_SED="$ac_path_SED"
  13354. ac_path_SED_max=$ac_count
  13355. fi
  13356. # 10*(2^10) chars as input seems more than enough
  13357. test $ac_count -gt 10 && break
  13358. done
  13359. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  13360. esac
  13361. $ac_path_SED_found && break 3
  13362. done
  13363. done
  13364. done
  13365. IFS=$as_save_IFS
  13366. if test -z "$ac_cv_path_SED"; then
  13367. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  13368. fi
  13369. else
  13370. ac_cv_path_SED=$SED
  13371. fi
  13372. fi
  13373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  13374. $as_echo "$ac_cv_path_SED" >&6; }
  13375. SED="$ac_cv_path_SED"
  13376. rm -f conftest.sed
  13377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13378. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13379. set x ${MAKE-make}
  13380. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13381. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  13382. $as_echo_n "(cached) " >&6
  13383. else
  13384. cat >conftest.make <<\_ACEOF
  13385. SHELL = /bin/sh
  13386. all:
  13387. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13388. _ACEOF
  13389. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  13390. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13391. *@@@%%%=?*=@@@%%%*)
  13392. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13393. *)
  13394. eval ac_cv_prog_make_${ac_make}_set=no;;
  13395. esac
  13396. rm -f conftest.make
  13397. fi
  13398. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13400. $as_echo "yes" >&6; }
  13401. SET_MAKE=
  13402. else
  13403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13404. $as_echo "no" >&6; }
  13405. SET_MAKE="MAKE=${MAKE-make}"
  13406. fi
  13407. # Extract the first word of "printf", so it can be a program name with args.
  13408. set dummy printf; ac_word=$2
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13410. $as_echo_n "checking for $ac_word... " >&6; }
  13411. if test "${ac_cv_path_PRINTF+set}" = set; then :
  13412. $as_echo_n "(cached) " >&6
  13413. else
  13414. case $PRINTF in
  13415. [\\/]* | ?:[\\/]*)
  13416. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  13417. ;;
  13418. *)
  13419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13420. for as_dir in $PATH
  13421. do
  13422. IFS=$as_save_IFS
  13423. test -z "$as_dir" && as_dir=.
  13424. for ac_exec_ext in '' $ac_executable_extensions; do
  13425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13426. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  13427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13428. break 2
  13429. fi
  13430. done
  13431. done
  13432. IFS=$as_save_IFS
  13433. ;;
  13434. esac
  13435. fi
  13436. PRINTF=$ac_cv_path_PRINTF
  13437. if test -n "$PRINTF"; then
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
  13439. $as_echo "$PRINTF" >&6; }
  13440. else
  13441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13442. $as_echo "no" >&6; }
  13443. fi
  13444. # Extract the first word of "echo", so it can be a program name with args.
  13445. set dummy echo; ac_word=$2
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13447. $as_echo_n "checking for $ac_word... " >&6; }
  13448. if test "${ac_cv_path_ECHO+set}" = set; then :
  13449. $as_echo_n "(cached) " >&6
  13450. else
  13451. case $ECHO in
  13452. [\\/]* | ?:[\\/]*)
  13453. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  13454. ;;
  13455. *)
  13456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13457. for as_dir in $PATH
  13458. do
  13459. IFS=$as_save_IFS
  13460. test -z "$as_dir" && as_dir=.
  13461. for ac_exec_ext in '' $ac_executable_extensions; do
  13462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13463. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  13464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13465. break 2
  13466. fi
  13467. done
  13468. done
  13469. IFS=$as_save_IFS
  13470. ;;
  13471. esac
  13472. fi
  13473. ECHO=$ac_cv_path_ECHO
  13474. if test -n "$ECHO"; then
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
  13476. $as_echo "$ECHO" >&6; }
  13477. else
  13478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13479. $as_echo "no" >&6; }
  13480. fi
  13481. # Extract the first word of "cut", so it can be a program name with args.
  13482. set dummy cut; ac_word=$2
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13484. $as_echo_n "checking for $ac_word... " >&6; }
  13485. if test "${ac_cv_path_CUT+set}" = set; then :
  13486. $as_echo_n "(cached) " >&6
  13487. else
  13488. case $CUT in
  13489. [\\/]* | ?:[\\/]*)
  13490. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  13491. ;;
  13492. *)
  13493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13494. for as_dir in $PATH
  13495. do
  13496. IFS=$as_save_IFS
  13497. test -z "$as_dir" && as_dir=.
  13498. for ac_exec_ext in '' $ac_executable_extensions; do
  13499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13500. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  13501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13502. break 2
  13503. fi
  13504. done
  13505. done
  13506. IFS=$as_save_IFS
  13507. ;;
  13508. esac
  13509. fi
  13510. CUT=$ac_cv_path_CUT
  13511. if test -n "$CUT"; then
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  13513. $as_echo "$CUT" >&6; }
  13514. else
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13516. $as_echo "no" >&6; }
  13517. fi
  13518. # Extract the first word of "autogen", so it can be a program name with args.
  13519. set dummy autogen; ac_word=$2
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13521. $as_echo_n "checking for $ac_word... " >&6; }
  13522. if test "${ac_cv_path_AUTOGEN+set}" = set; then :
  13523. $as_echo_n "(cached) " >&6
  13524. else
  13525. case $AUTOGEN in
  13526. [\\/]* | ?:[\\/]*)
  13527. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  13528. ;;
  13529. *)
  13530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13531. for as_dir in $PATH
  13532. do
  13533. IFS=$as_save_IFS
  13534. test -z "$as_dir" && as_dir=.
  13535. for ac_exec_ext in '' $ac_executable_extensions; do
  13536. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13537. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  13538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13539. break 2
  13540. fi
  13541. done
  13542. done
  13543. IFS=$as_save_IFS
  13544. ;;
  13545. esac
  13546. fi
  13547. AUTOGEN=$ac_cv_path_AUTOGEN
  13548. if test -n "$AUTOGEN"; then
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
  13550. $as_echo "$AUTOGEN" >&6; }
  13551. else
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13553. $as_echo "no" >&6; }
  13554. fi
  13555. # Extract the first word of "groff", so it can be a program name with args.
  13556. set dummy groff; ac_word=$2
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13558. $as_echo_n "checking for $ac_word... " >&6; }
  13559. if test "${ac_cv_path_GROFF+set}" = set; then :
  13560. $as_echo_n "(cached) " >&6
  13561. else
  13562. case $GROFF in
  13563. [\\/]* | ?:[\\/]*)
  13564. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  13565. ;;
  13566. *)
  13567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13568. for as_dir in $PATH
  13569. do
  13570. IFS=$as_save_IFS
  13571. test -z "$as_dir" && as_dir=.
  13572. for ac_exec_ext in '' $ac_executable_extensions; do
  13573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13574. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  13575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13576. break 2
  13577. fi
  13578. done
  13579. done
  13580. IFS=$as_save_IFS
  13581. ;;
  13582. esac
  13583. fi
  13584. GROFF=$ac_cv_path_GROFF
  13585. if test -n "$GROFF"; then
  13586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
  13587. $as_echo "$GROFF" >&6; }
  13588. else
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13590. $as_echo "no" >&6; }
  13591. fi
  13592. AUTOGEN_VERSION=unknown
  13593. if test -n "${AUTOGEN}" ; then
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autogen version >= 5.9.x" >&5
  13595. $as_echo_n "checking for autogen version >= 5.9.x... " >&6; }
  13596. ${AUTOGEN} -v >autogen.version
  13597. AUTOGEN_VERSION=`cat autogen.version | ${SED} 's|.*\([0-9\.]\{5,\}\).*|\1|'`
  13598. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1`
  13599. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2`
  13600. if ( test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 9 ) || test ${AUTOGEN_MAJOR} -lt 5 ; then
  13601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13602. $as_echo "no" >&6; }
  13603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&5
  13604. $as_echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&2;}
  13605. else
  13606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13607. $as_echo "yes" >&6; }
  13608. fi
  13609. rm -f autogen.version
  13610. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  13611. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  13612. as_fn_error "Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" "$LINENO" 5
  13613. fi
  13614. fi
  13615. else
  13616. if test ! -f src/tcpreplay_opts.c ; then
  13617. as_fn_error "Please install GNU autogen >= 5.9.x if you are building from SVN" "$LINENO" 5
  13618. fi
  13619. fi
  13620. $as_echo "#define AUTOGEN_VERSION \${AUTOGEN_VERSION}" >>confdefs.h
  13621. if test "x$enable_local_libopts" = "xyes" ; then
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: Using included libopts tearoff" >&5
  13623. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  13624. else
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: Using system libopts" >&5
  13626. $as_echo "$as_me: Using system libopts" >&6;}
  13627. fi
  13628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13629. $as_echo_n "checking for ANSI C header files... " >&6; }
  13630. if test "${ac_cv_header_stdc+set}" = set; then :
  13631. $as_echo_n "(cached) " >&6
  13632. else
  13633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13634. /* end confdefs.h. */
  13635. #include <stdlib.h>
  13636. #include <stdarg.h>
  13637. #include <string.h>
  13638. #include <float.h>
  13639. int
  13640. main ()
  13641. {
  13642. ;
  13643. return 0;
  13644. }
  13645. _ACEOF
  13646. if ac_fn_c_try_compile "$LINENO"; then :
  13647. ac_cv_header_stdc=yes
  13648. else
  13649. ac_cv_header_stdc=no
  13650. fi
  13651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13652. if test $ac_cv_header_stdc = yes; then
  13653. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13655. /* end confdefs.h. */
  13656. #include <string.h>
  13657. _ACEOF
  13658. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13659. $EGREP "memchr" >/dev/null 2>&1; then :
  13660. else
  13661. ac_cv_header_stdc=no
  13662. fi
  13663. rm -f conftest*
  13664. fi
  13665. if test $ac_cv_header_stdc = yes; then
  13666. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13668. /* end confdefs.h. */
  13669. #include <stdlib.h>
  13670. _ACEOF
  13671. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13672. $EGREP "free" >/dev/null 2>&1; then :
  13673. else
  13674. ac_cv_header_stdc=no
  13675. fi
  13676. rm -f conftest*
  13677. fi
  13678. if test $ac_cv_header_stdc = yes; then
  13679. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13680. if test "$cross_compiling" = yes; then :
  13681. :
  13682. else
  13683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13684. /* end confdefs.h. */
  13685. #include <ctype.h>
  13686. #include <stdlib.h>
  13687. #if ((' ' & 0x0FF) == 0x020)
  13688. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13689. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13690. #else
  13691. # define ISLOWER(c) \
  13692. (('a' <= (c) && (c) <= 'i') \
  13693. || ('j' <= (c) && (c) <= 'r') \
  13694. || ('s' <= (c) && (c) <= 'z'))
  13695. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13696. #endif
  13697. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13698. int
  13699. main ()
  13700. {
  13701. int i;
  13702. for (i = 0; i < 256; i++)
  13703. if (XOR (islower (i), ISLOWER (i))
  13704. || toupper (i) != TOUPPER (i))
  13705. return 2;
  13706. return 0;
  13707. }
  13708. _ACEOF
  13709. if ac_fn_c_try_run "$LINENO"; then :
  13710. else
  13711. ac_cv_header_stdc=no
  13712. fi
  13713. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13714. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13715. fi
  13716. fi
  13717. fi
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13719. $as_echo "$ac_cv_header_stdc" >&6; }
  13720. if test $ac_cv_header_stdc = yes; then
  13721. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13722. fi
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  13724. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  13725. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
  13726. $as_echo_n "(cached) " >&6
  13727. else
  13728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13729. /* end confdefs.h. */
  13730. #include <sys/types.h>
  13731. int
  13732. main ()
  13733. {
  13734. return makedev(0, 0);
  13735. ;
  13736. return 0;
  13737. }
  13738. _ACEOF
  13739. if ac_fn_c_try_link "$LINENO"; then :
  13740. ac_cv_header_sys_types_h_makedev=yes
  13741. else
  13742. ac_cv_header_sys_types_h_makedev=no
  13743. fi
  13744. rm -f core conftest.err conftest.$ac_objext \
  13745. conftest$ac_exeext conftest.$ac_ext
  13746. fi
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  13748. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  13749. if test $ac_cv_header_sys_types_h_makedev = no; then
  13750. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  13751. if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
  13752. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  13753. fi
  13754. if test $ac_cv_header_sys_mkdev_h = no; then
  13755. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  13756. if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
  13757. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  13758. fi
  13759. fi
  13760. fi
  13761. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13762. if test "x$ac_cv_type_size_t" = x""yes; then :
  13763. else
  13764. cat >>confdefs.h <<_ACEOF
  13765. #define size_t unsigned int
  13766. _ACEOF
  13767. fi
  13768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13769. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13770. if test "${ac_cv_header_time+set}" = set; then :
  13771. $as_echo_n "(cached) " >&6
  13772. else
  13773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13774. /* end confdefs.h. */
  13775. #include <sys/types.h>
  13776. #include <sys/time.h>
  13777. #include <time.h>
  13778. int
  13779. main ()
  13780. {
  13781. if ((struct tm *) 0)
  13782. return 0;
  13783. ;
  13784. return 0;
  13785. }
  13786. _ACEOF
  13787. if ac_fn_c_try_compile "$LINENO"; then :
  13788. ac_cv_header_time=yes
  13789. else
  13790. ac_cv_header_time=no
  13791. fi
  13792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13793. fi
  13794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13795. $as_echo "$ac_cv_header_time" >&6; }
  13796. if test $ac_cv_header_time = yes; then
  13797. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13798. fi
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13800. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13801. if test "${ac_cv_c_const+set}" = set; then :
  13802. $as_echo_n "(cached) " >&6
  13803. else
  13804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13805. /* end confdefs.h. */
  13806. int
  13807. main ()
  13808. {
  13809. /* FIXME: Include the comments suggested by Paul. */
  13810. #ifndef __cplusplus
  13811. /* Ultrix mips cc rejects this. */
  13812. typedef int charset[2];
  13813. const charset cs;
  13814. /* SunOS 4.1.1 cc rejects this. */
  13815. char const *const *pcpcc;
  13816. char **ppc;
  13817. /* NEC SVR4.0.2 mips cc rejects this. */
  13818. struct point {int x, y;};
  13819. static struct point const zero = {0,0};
  13820. /* AIX XL C 1.02.0.0 rejects this.
  13821. It does not let you subtract one const X* pointer from another in
  13822. an arm of an if-expression whose if-part is not a constant
  13823. expression */
  13824. const char *g = "string";
  13825. pcpcc = &g + (g ? g-g : 0);
  13826. /* HPUX 7.0 cc rejects these. */
  13827. ++pcpcc;
  13828. ppc = (char**) pcpcc;
  13829. pcpcc = (char const *const *) ppc;
  13830. { /* SCO 3.2v4 cc rejects this. */
  13831. char *t;
  13832. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13833. *t++ = 0;
  13834. if (s) return 0;
  13835. }
  13836. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13837. int x[] = {25, 17};
  13838. const int *foo = &x[0];
  13839. ++foo;
  13840. }
  13841. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13842. typedef const int *iptr;
  13843. iptr p = 0;
  13844. ++p;
  13845. }
  13846. { /* AIX XL C 1.02.0.0 rejects this saying
  13847. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13848. struct s { int j; const int *ap[3]; };
  13849. struct s *b; b->j = 5;
  13850. }
  13851. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13852. const int foo = 10;
  13853. if (!foo) return 0;
  13854. }
  13855. return !cs[0] && !zero.x;
  13856. #endif
  13857. ;
  13858. return 0;
  13859. }
  13860. _ACEOF
  13861. if ac_fn_c_try_compile "$LINENO"; then :
  13862. ac_cv_c_const=yes
  13863. else
  13864. ac_cv_c_const=no
  13865. fi
  13866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13867. fi
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13869. $as_echo "$ac_cv_c_const" >&6; }
  13870. if test $ac_cv_c_const = no; then
  13871. $as_echo "#define const /**/" >>confdefs.h
  13872. fi
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13874. $as_echo_n "checking for inline... " >&6; }
  13875. if test "${ac_cv_c_inline+set}" = set; then :
  13876. $as_echo_n "(cached) " >&6
  13877. else
  13878. ac_cv_c_inline=no
  13879. for ac_kw in inline __inline__ __inline; do
  13880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13881. /* end confdefs.h. */
  13882. #ifndef __cplusplus
  13883. typedef int foo_t;
  13884. static $ac_kw foo_t static_foo () {return 0; }
  13885. $ac_kw foo_t foo () {return 0; }
  13886. #endif
  13887. _ACEOF
  13888. if ac_fn_c_try_compile "$LINENO"; then :
  13889. ac_cv_c_inline=$ac_kw
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13892. test "$ac_cv_c_inline" != no && break
  13893. done
  13894. fi
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13896. $as_echo "$ac_cv_c_inline" >&6; }
  13897. case $ac_cv_c_inline in
  13898. inline | yes) ;;
  13899. *)
  13900. case $ac_cv_c_inline in
  13901. no) ac_val=;;
  13902. *) ac_val=$ac_cv_c_inline;;
  13903. esac
  13904. cat >>confdefs.h <<_ACEOF
  13905. #ifndef __cplusplus
  13906. #define inline $ac_val
  13907. #endif
  13908. _ACEOF
  13909. ;;
  13910. esac
  13911. # Check whether --enable-largefile was given.
  13912. if test "${enable_largefile+set}" = set; then :
  13913. enableval=$enable_largefile;
  13914. fi
  13915. if test "$enable_largefile" != no; then
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  13917. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  13918. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  13919. $as_echo_n "(cached) " >&6
  13920. else
  13921. ac_cv_sys_largefile_CC=no
  13922. if test "$GCC" != yes; then
  13923. ac_save_CC=$CC
  13924. while :; do
  13925. # IRIX 6.2 and later do not support large files by default,
  13926. # so use the C compiler's -n32 option if that helps.
  13927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13928. /* end confdefs.h. */
  13929. #include <sys/types.h>
  13930. /* Check that off_t can represent 2**63 - 1 correctly.
  13931. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13932. since some C++ compilers masquerading as C compilers
  13933. incorrectly reject 9223372036854775807. */
  13934. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13935. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13936. && LARGE_OFF_T % 2147483647 == 1)
  13937. ? 1 : -1];
  13938. int
  13939. main ()
  13940. {
  13941. ;
  13942. return 0;
  13943. }
  13944. _ACEOF
  13945. if ac_fn_c_try_compile "$LINENO"; then :
  13946. break
  13947. fi
  13948. rm -f core conftest.err conftest.$ac_objext
  13949. CC="$CC -n32"
  13950. if ac_fn_c_try_compile "$LINENO"; then :
  13951. ac_cv_sys_largefile_CC=' -n32'; break
  13952. fi
  13953. rm -f core conftest.err conftest.$ac_objext
  13954. break
  13955. done
  13956. CC=$ac_save_CC
  13957. rm -f conftest.$ac_ext
  13958. fi
  13959. fi
  13960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  13961. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  13962. if test "$ac_cv_sys_largefile_CC" != no; then
  13963. CC=$CC$ac_cv_sys_largefile_CC
  13964. fi
  13965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  13966. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  13967. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  13968. $as_echo_n "(cached) " >&6
  13969. else
  13970. while :; do
  13971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13972. /* end confdefs.h. */
  13973. #include <sys/types.h>
  13974. /* Check that off_t can represent 2**63 - 1 correctly.
  13975. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13976. since some C++ compilers masquerading as C compilers
  13977. incorrectly reject 9223372036854775807. */
  13978. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  13979. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13980. && LARGE_OFF_T % 2147483647 == 1)
  13981. ? 1 : -1];
  13982. int
  13983. main ()
  13984. {
  13985. ;
  13986. return 0;
  13987. }
  13988. _ACEOF
  13989. if ac_fn_c_try_compile "$LINENO"; then :
  13990. ac_cv_sys_file_offset_bits=no; break
  13991. fi
  13992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13994. /* end confdefs.h. */
  13995. #define _FILE_OFFSET_BITS 64
  13996. #include <sys/types.h>
  13997. /* Check that off_t can represent 2**63 - 1 correctly.
  13998. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13999. since some C++ compilers masquerading as C compilers
  14000. incorrectly reject 9223372036854775807. */
  14001. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14002. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14003. && LARGE_OFF_T % 2147483647 == 1)
  14004. ? 1 : -1];
  14005. int
  14006. main ()
  14007. {
  14008. ;
  14009. return 0;
  14010. }
  14011. _ACEOF
  14012. if ac_fn_c_try_compile "$LINENO"; then :
  14013. ac_cv_sys_file_offset_bits=64; break
  14014. fi
  14015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14016. ac_cv_sys_file_offset_bits=unknown
  14017. break
  14018. done
  14019. fi
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  14021. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  14022. case $ac_cv_sys_file_offset_bits in #(
  14023. no | unknown) ;;
  14024. *)
  14025. cat >>confdefs.h <<_ACEOF
  14026. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  14027. _ACEOF
  14028. ;;
  14029. esac
  14030. rm -rf conftest*
  14031. if test $ac_cv_sys_file_offset_bits = unknown; then
  14032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  14033. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  14034. if test "${ac_cv_sys_large_files+set}" = set; then :
  14035. $as_echo_n "(cached) " >&6
  14036. else
  14037. while :; do
  14038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14039. /* end confdefs.h. */
  14040. #include <sys/types.h>
  14041. /* Check that off_t can represent 2**63 - 1 correctly.
  14042. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14043. since some C++ compilers masquerading as C compilers
  14044. incorrectly reject 9223372036854775807. */
  14045. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14046. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14047. && LARGE_OFF_T % 2147483647 == 1)
  14048. ? 1 : -1];
  14049. int
  14050. main ()
  14051. {
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. if ac_fn_c_try_compile "$LINENO"; then :
  14057. ac_cv_sys_large_files=no; break
  14058. fi
  14059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14061. /* end confdefs.h. */
  14062. #define _LARGE_FILES 1
  14063. #include <sys/types.h>
  14064. /* Check that off_t can represent 2**63 - 1 correctly.
  14065. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14066. since some C++ compilers masquerading as C compilers
  14067. incorrectly reject 9223372036854775807. */
  14068. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  14069. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14070. && LARGE_OFF_T % 2147483647 == 1)
  14071. ? 1 : -1];
  14072. int
  14073. main ()
  14074. {
  14075. ;
  14076. return 0;
  14077. }
  14078. _ACEOF
  14079. if ac_fn_c_try_compile "$LINENO"; then :
  14080. ac_cv_sys_large_files=1; break
  14081. fi
  14082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14083. ac_cv_sys_large_files=unknown
  14084. break
  14085. done
  14086. fi
  14087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  14088. $as_echo "$ac_cv_sys_large_files" >&6; }
  14089. case $ac_cv_sys_large_files in #(
  14090. no | unknown) ;;
  14091. *)
  14092. cat >>confdefs.h <<_ACEOF
  14093. #define _LARGE_FILES $ac_cv_sys_large_files
  14094. _ACEOF
  14095. ;;
  14096. esac
  14097. rm -rf conftest*
  14098. fi
  14099. fi
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  14101. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  14102. if test "${ac_cv_sys_largefile_source+set}" = set; then :
  14103. $as_echo_n "(cached) " >&6
  14104. else
  14105. while :; do
  14106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14107. /* end confdefs.h. */
  14108. #include <sys/types.h> /* for off_t */
  14109. #include <stdio.h>
  14110. int
  14111. main ()
  14112. {
  14113. int (*fp) (FILE *, off_t, int) = fseeko;
  14114. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  14115. ;
  14116. return 0;
  14117. }
  14118. _ACEOF
  14119. if ac_fn_c_try_link "$LINENO"; then :
  14120. ac_cv_sys_largefile_source=no; break
  14121. fi
  14122. rm -f core conftest.err conftest.$ac_objext \
  14123. conftest$ac_exeext conftest.$ac_ext
  14124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14125. /* end confdefs.h. */
  14126. #define _LARGEFILE_SOURCE 1
  14127. #include <sys/types.h> /* for off_t */
  14128. #include <stdio.h>
  14129. int
  14130. main ()
  14131. {
  14132. int (*fp) (FILE *, off_t, int) = fseeko;
  14133. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  14134. ;
  14135. return 0;
  14136. }
  14137. _ACEOF
  14138. if ac_fn_c_try_link "$LINENO"; then :
  14139. ac_cv_sys_largefile_source=1; break
  14140. fi
  14141. rm -f core conftest.err conftest.$ac_objext \
  14142. conftest$ac_exeext conftest.$ac_ext
  14143. ac_cv_sys_largefile_source=unknown
  14144. break
  14145. done
  14146. fi
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  14148. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  14149. case $ac_cv_sys_largefile_source in #(
  14150. no | unknown) ;;
  14151. *)
  14152. cat >>confdefs.h <<_ACEOF
  14153. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  14154. _ACEOF
  14155. ;;
  14156. esac
  14157. rm -rf conftest*
  14158. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  14159. # in glibc 2.1.3, but that breaks too many other things.
  14160. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  14161. if test $ac_cv_sys_largefile_source != unknown; then
  14162. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  14163. fi
  14164. ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
  14165. if test "x$ac_cv_type_u_int8_t" = x""yes; then :
  14166. else
  14167. cat >>confdefs.h <<_ACEOF
  14168. #define u_int8_t uint8_t
  14169. _ACEOF
  14170. fi
  14171. ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  14172. if test "x$ac_cv_type_u_int16_t" = x""yes; then :
  14173. else
  14174. cat >>confdefs.h <<_ACEOF
  14175. #define u_int16_t uint16_t
  14176. _ACEOF
  14177. fi
  14178. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
  14179. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  14180. else
  14181. cat >>confdefs.h <<_ACEOF
  14182. #define u_int32_t uint32_t
  14183. _ACEOF
  14184. fi
  14185. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
  14186. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  14187. else
  14188. cat >>confdefs.h <<_ACEOF
  14189. #define u_int64_t uint64_t
  14190. _ACEOF
  14191. fi
  14192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wextra support" >&5
  14193. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  14194. OLD_CFLAGS=$CFLAGS
  14195. CFLAGS="$CFLAGS -Wextra"
  14196. wextra=""
  14197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14198. /* end confdefs.h. */
  14199. #include <stdlib.h>
  14200. int main(int argc, char *argv) { return(0); }
  14201. _ACEOF
  14202. if ac_fn_c_try_compile "$LINENO"; then :
  14203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14204. $as_echo "yes" >&6; }
  14205. wextra="-Wextra"
  14206. else
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14208. $as_echo "no" >&6; }
  14209. fi
  14210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14211. CFLAGS="$OLD_CFLAGS $wextra"
  14212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wno-variadic-macros support" >&5
  14213. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  14214. OLD_CFLAGS=$CFLAGS
  14215. CFLAGS="$CFLAGS -Wno-variadic-macros"
  14216. wno_variadic_macros=""
  14217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14218. /* end confdefs.h. */
  14219. #include <stdlib.h>
  14220. int main(int argc, char *argv) { return(0); }
  14221. _ACEOF
  14222. if ac_fn_c_try_compile "$LINENO"; then :
  14223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14224. $as_echo "yes" >&6; }
  14225. wno_variadic_macros="-Wno-variadic-macros"
  14226. else
  14227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14228. $as_echo "no" >&6; }
  14229. fi
  14230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14231. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  14232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC -Wfatal-errors support" >&5
  14233. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  14234. OLD_CFLAGS=$CFLAGS
  14235. CFLAGS="$CFLAGS -Wfatal-errors"
  14236. wfatal_errors=""
  14237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14238. /* end confdefs.h. */
  14239. #include <stdlib.h>
  14240. int main(int argc, char *argv) { return(0); }
  14241. _ACEOF
  14242. if ac_fn_c_try_compile "$LINENO"; then :
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14244. $as_echo "yes" >&6; }
  14245. wfatal_errors="-Wfatal-errors"
  14246. else
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14248. $as_echo "no" >&6; }
  14249. fi
  14250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14251. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  14252. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h stdint.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h
  14253. do :
  14254. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14255. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14256. eval as_val=\$$as_ac_Header
  14257. if test "x$as_val" = x""yes; then :
  14258. cat >>confdefs.h <<_ACEOF
  14259. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14260. _ACEOF
  14261. fi
  14262. done
  14263. for ac_header in sys/sysctl.h net/route.h
  14264. do :
  14265. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14266. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  14267. #if HAVE_SYS_PARAM_H
  14268. #include <sys/param.h>
  14269. #endif
  14270. #if HAVE_SYS_TYPES_H
  14271. #include <sys/types.h>
  14272. #endif
  14273. #if HAVE_SYS_SOCKET_H
  14274. #include <sys/socket.h>
  14275. #endif
  14276. "
  14277. eval as_val=\$$as_ac_Header
  14278. if test "x$as_val" = x""yes; then :
  14279. cat >>confdefs.h <<_ACEOF
  14280. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14281. _ACEOF
  14282. fi
  14283. done
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  14285. $as_echo_n "checking for socket in -lsocket... " >&6; }
  14286. if test "${ac_cv_lib_socket_socket+set}" = set; then :
  14287. $as_echo_n "(cached) " >&6
  14288. else
  14289. ac_check_lib_save_LIBS=$LIBS
  14290. LIBS="-lsocket $LIBS"
  14291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14292. /* end confdefs.h. */
  14293. /* Override any GCC internal prototype to avoid an error.
  14294. Use char because int might match the return type of a GCC
  14295. builtin and then its argument prototype would still apply. */
  14296. #ifdef __cplusplus
  14297. extern "C"
  14298. #endif
  14299. char socket ();
  14300. int
  14301. main ()
  14302. {
  14303. return socket ();
  14304. ;
  14305. return 0;
  14306. }
  14307. _ACEOF
  14308. if ac_fn_c_try_link "$LINENO"; then :
  14309. ac_cv_lib_socket_socket=yes
  14310. else
  14311. ac_cv_lib_socket_socket=no
  14312. fi
  14313. rm -f core conftest.err conftest.$ac_objext \
  14314. conftest$ac_exeext conftest.$ac_ext
  14315. LIBS=$ac_check_lib_save_LIBS
  14316. fi
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  14318. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  14319. if test "x$ac_cv_lib_socket_socket" = x""yes; then :
  14320. cat >>confdefs.h <<_ACEOF
  14321. #define HAVE_LIBSOCKET 1
  14322. _ACEOF
  14323. LIBS="-lsocket $LIBS"
  14324. fi
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  14326. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  14327. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  14328. $as_echo_n "(cached) " >&6
  14329. else
  14330. ac_check_lib_save_LIBS=$LIBS
  14331. LIBS="-lnsl $LIBS"
  14332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14333. /* end confdefs.h. */
  14334. /* Override any GCC internal prototype to avoid an error.
  14335. Use char because int might match the return type of a GCC
  14336. builtin and then its argument prototype would still apply. */
  14337. #ifdef __cplusplus
  14338. extern "C"
  14339. #endif
  14340. char gethostbyname ();
  14341. int
  14342. main ()
  14343. {
  14344. return gethostbyname ();
  14345. ;
  14346. return 0;
  14347. }
  14348. _ACEOF
  14349. if ac_fn_c_try_link "$LINENO"; then :
  14350. ac_cv_lib_nsl_gethostbyname=yes
  14351. else
  14352. ac_cv_lib_nsl_gethostbyname=no
  14353. fi
  14354. rm -f core conftest.err conftest.$ac_objext \
  14355. conftest$ac_exeext conftest.$ac_ext
  14356. LIBS=$ac_check_lib_save_LIBS
  14357. fi
  14358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  14359. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  14360. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  14361. cat >>confdefs.h <<_ACEOF
  14362. #define HAVE_LIBNSL 1
  14363. _ACEOF
  14364. LIBS="-lnsl $LIBS"
  14365. fi
  14366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
  14367. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  14368. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
  14369. $as_echo_n "(cached) " >&6
  14370. else
  14371. ac_check_lib_save_LIBS=$LIBS
  14372. LIBS="-lrt $LIBS"
  14373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14374. /* end confdefs.h. */
  14375. /* Override any GCC internal prototype to avoid an error.
  14376. Use char because int might match the return type of a GCC
  14377. builtin and then its argument prototype would still apply. */
  14378. #ifdef __cplusplus
  14379. extern "C"
  14380. #endif
  14381. char nanosleep ();
  14382. int
  14383. main ()
  14384. {
  14385. return nanosleep ();
  14386. ;
  14387. return 0;
  14388. }
  14389. _ACEOF
  14390. if ac_fn_c_try_link "$LINENO"; then :
  14391. ac_cv_lib_rt_nanosleep=yes
  14392. else
  14393. ac_cv_lib_rt_nanosleep=no
  14394. fi
  14395. rm -f core conftest.err conftest.$ac_objext \
  14396. conftest$ac_exeext conftest.$ac_ext
  14397. LIBS=$ac_check_lib_save_LIBS
  14398. fi
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
  14400. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  14401. if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
  14402. cat >>confdefs.h <<_ACEOF
  14403. #define HAVE_LIBRT 1
  14404. _ACEOF
  14405. LIBS="-lrt $LIBS"
  14406. fi
  14407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolv in -lresolv" >&5
  14408. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  14409. if test "${ac_cv_lib_resolv_resolv+set}" = set; then :
  14410. $as_echo_n "(cached) " >&6
  14411. else
  14412. ac_check_lib_save_LIBS=$LIBS
  14413. LIBS="-lresolv $LIBS"
  14414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14415. /* end confdefs.h. */
  14416. /* Override any GCC internal prototype to avoid an error.
  14417. Use char because int might match the return type of a GCC
  14418. builtin and then its argument prototype would still apply. */
  14419. #ifdef __cplusplus
  14420. extern "C"
  14421. #endif
  14422. char resolv ();
  14423. int
  14424. main ()
  14425. {
  14426. return resolv ();
  14427. ;
  14428. return 0;
  14429. }
  14430. _ACEOF
  14431. if ac_fn_c_try_link "$LINENO"; then :
  14432. ac_cv_lib_resolv_resolv=yes
  14433. else
  14434. ac_cv_lib_resolv_resolv=no
  14435. fi
  14436. rm -f core conftest.err conftest.$ac_objext \
  14437. conftest$ac_exeext conftest.$ac_ext
  14438. LIBS=$ac_check_lib_save_LIBS
  14439. fi
  14440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_resolv" >&5
  14441. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  14442. if test "x$ac_cv_lib_resolv_resolv" = x""yes; then :
  14443. cat >>confdefs.h <<_ACEOF
  14444. #define HAVE_LIBRESOLV 1
  14445. _ACEOF
  14446. LIBS="-lresolv $LIBS"
  14447. fi
  14448. for ac_header in stdlib.h
  14449. do :
  14450. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14451. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  14452. cat >>confdefs.h <<_ACEOF
  14453. #define HAVE_STDLIB_H 1
  14454. _ACEOF
  14455. fi
  14456. done
  14457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14458. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14459. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  14460. $as_echo_n "(cached) " >&6
  14461. else
  14462. if test "$cross_compiling" = yes; then :
  14463. ac_cv_func_malloc_0_nonnull=no
  14464. else
  14465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14466. /* end confdefs.h. */
  14467. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14468. # include <stdlib.h>
  14469. #else
  14470. char *malloc ();
  14471. #endif
  14472. int
  14473. main ()
  14474. {
  14475. return ! malloc (0);
  14476. ;
  14477. return 0;
  14478. }
  14479. _ACEOF
  14480. if ac_fn_c_try_run "$LINENO"; then :
  14481. ac_cv_func_malloc_0_nonnull=yes
  14482. else
  14483. ac_cv_func_malloc_0_nonnull=no
  14484. fi
  14485. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14486. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14487. fi
  14488. fi
  14489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14490. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14491. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14492. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14493. else
  14494. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14495. case " $LIBOBJS " in
  14496. *" malloc.$ac_objext "* ) ;;
  14497. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14498. ;;
  14499. esac
  14500. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14501. fi
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14503. $as_echo_n "checking for working memcmp... " >&6; }
  14504. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  14505. $as_echo_n "(cached) " >&6
  14506. else
  14507. if test "$cross_compiling" = yes; then :
  14508. ac_cv_func_memcmp_working=no
  14509. else
  14510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14511. /* end confdefs.h. */
  14512. $ac_includes_default
  14513. int
  14514. main ()
  14515. {
  14516. /* Some versions of memcmp are not 8-bit clean. */
  14517. char c0 = '\100', c1 = '\200', c2 = '\201';
  14518. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14519. return 1;
  14520. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14521. or more and with at least one buffer not starting on a 4-byte boundary.
  14522. William Lewis provided this test program. */
  14523. {
  14524. char foo[21];
  14525. char bar[21];
  14526. int i;
  14527. for (i = 0; i < 4; i++)
  14528. {
  14529. char *a = foo + i;
  14530. char *b = bar + i;
  14531. strcpy (a, "--------01111111");
  14532. strcpy (b, "--------10000000");
  14533. if (memcmp (a, b, 16) >= 0)
  14534. return 1;
  14535. }
  14536. return 0;
  14537. }
  14538. ;
  14539. return 0;
  14540. }
  14541. _ACEOF
  14542. if ac_fn_c_try_run "$LINENO"; then :
  14543. ac_cv_func_memcmp_working=yes
  14544. else
  14545. ac_cv_func_memcmp_working=no
  14546. fi
  14547. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14548. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14549. fi
  14550. fi
  14551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14552. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14553. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14554. *" memcmp.$ac_objext "* ) ;;
  14555. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14556. ;;
  14557. esac
  14558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14559. $as_echo_n "checking return type of signal handlers... " >&6; }
  14560. if test "${ac_cv_type_signal+set}" = set; then :
  14561. $as_echo_n "(cached) " >&6
  14562. else
  14563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14564. /* end confdefs.h. */
  14565. #include <sys/types.h>
  14566. #include <signal.h>
  14567. int
  14568. main ()
  14569. {
  14570. return *(signal (0, 0)) (0) == 1;
  14571. ;
  14572. return 0;
  14573. }
  14574. _ACEOF
  14575. if ac_fn_c_try_compile "$LINENO"; then :
  14576. ac_cv_type_signal=int
  14577. else
  14578. ac_cv_type_signal=void
  14579. fi
  14580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14581. fi
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14583. $as_echo "$ac_cv_type_signal" >&6; }
  14584. cat >>confdefs.h <<_ACEOF
  14585. #define RETSIGTYPE $ac_cv_type_signal
  14586. _ACEOF
  14587. for ac_func in vprintf
  14588. do :
  14589. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  14590. if test "x$ac_cv_func_vprintf" = x""yes; then :
  14591. cat >>confdefs.h <<_ACEOF
  14592. #define HAVE_VPRINTF 1
  14593. _ACEOF
  14594. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  14595. if test "x$ac_cv_func__doprnt" = x""yes; then :
  14596. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  14597. fi
  14598. fi
  14599. done
  14600. ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "$ac_includes_default"
  14601. if test "x$ac_cv_member_struct_timeval_tv_sec" = x""yes; then :
  14602. cat >>confdefs.h <<_ACEOF
  14603. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  14604. _ACEOF
  14605. fi
  14606. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf strsignal
  14607. do :
  14608. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14609. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14610. eval as_val=\$$as_ac_var
  14611. if test "x$as_val" = x""yes; then :
  14612. cat >>confdefs.h <<_ACEOF
  14613. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14614. _ACEOF
  14615. fi
  14616. done
  14617. for ac_func in strlcpy
  14618. do :
  14619. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  14620. if test "x$ac_cv_func_strlcpy" = x""yes; then :
  14621. cat >>confdefs.h <<_ACEOF
  14622. #define HAVE_STRLCPY 1
  14623. _ACEOF
  14624. have_strlcpy=true
  14625. else
  14626. have_strlcpy=false
  14627. fi
  14628. done
  14629. if test x$have_strlcpy = xtrue; then
  14630. SYSTEM_STRLCPY_TRUE=
  14631. SYSTEM_STRLCPY_FALSE='#'
  14632. else
  14633. SYSTEM_STRLCPY_TRUE='#'
  14634. SYSTEM_STRLCPY_FALSE=
  14635. fi
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  14637. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  14638. if test "${ac_cv_c_bigendian+set}" = set; then :
  14639. $as_echo_n "(cached) " >&6
  14640. else
  14641. ac_cv_c_bigendian=unknown
  14642. # See if we're dealing with a universal compiler.
  14643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14644. /* end confdefs.h. */
  14645. #ifndef __APPLE_CC__
  14646. not a universal capable compiler
  14647. #endif
  14648. typedef int dummy;
  14649. _ACEOF
  14650. if ac_fn_c_try_compile "$LINENO"; then :
  14651. # Check for potential -arch flags. It is not universal unless
  14652. # there are at least two -arch flags with different values.
  14653. ac_arch=
  14654. ac_prev=
  14655. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  14656. if test -n "$ac_prev"; then
  14657. case $ac_word in
  14658. i?86 | x86_64 | ppc | ppc64)
  14659. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  14660. ac_arch=$ac_word
  14661. else
  14662. ac_cv_c_bigendian=universal
  14663. break
  14664. fi
  14665. ;;
  14666. esac
  14667. ac_prev=
  14668. elif test "x$ac_word" = "x-arch"; then
  14669. ac_prev=arch
  14670. fi
  14671. done
  14672. fi
  14673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14674. if test $ac_cv_c_bigendian = unknown; then
  14675. # See if sys/param.h defines the BYTE_ORDER macro.
  14676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14677. /* end confdefs.h. */
  14678. #include <sys/types.h>
  14679. #include <sys/param.h>
  14680. int
  14681. main ()
  14682. {
  14683. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  14684. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  14685. && LITTLE_ENDIAN)
  14686. bogus endian macros
  14687. #endif
  14688. ;
  14689. return 0;
  14690. }
  14691. _ACEOF
  14692. if ac_fn_c_try_compile "$LINENO"; then :
  14693. # It does; now see whether it defined to BIG_ENDIAN or not.
  14694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14695. /* end confdefs.h. */
  14696. #include <sys/types.h>
  14697. #include <sys/param.h>
  14698. int
  14699. main ()
  14700. {
  14701. #if BYTE_ORDER != BIG_ENDIAN
  14702. not big endian
  14703. #endif
  14704. ;
  14705. return 0;
  14706. }
  14707. _ACEOF
  14708. if ac_fn_c_try_compile "$LINENO"; then :
  14709. ac_cv_c_bigendian=yes
  14710. else
  14711. ac_cv_c_bigendian=no
  14712. fi
  14713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14714. fi
  14715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14716. fi
  14717. if test $ac_cv_c_bigendian = unknown; then
  14718. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  14719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14720. /* end confdefs.h. */
  14721. #include <limits.h>
  14722. int
  14723. main ()
  14724. {
  14725. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  14726. bogus endian macros
  14727. #endif
  14728. ;
  14729. return 0;
  14730. }
  14731. _ACEOF
  14732. if ac_fn_c_try_compile "$LINENO"; then :
  14733. # It does; now see whether it defined to _BIG_ENDIAN or not.
  14734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14735. /* end confdefs.h. */
  14736. #include <limits.h>
  14737. int
  14738. main ()
  14739. {
  14740. #ifndef _BIG_ENDIAN
  14741. not big endian
  14742. #endif
  14743. ;
  14744. return 0;
  14745. }
  14746. _ACEOF
  14747. if ac_fn_c_try_compile "$LINENO"; then :
  14748. ac_cv_c_bigendian=yes
  14749. else
  14750. ac_cv_c_bigendian=no
  14751. fi
  14752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14753. fi
  14754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14755. fi
  14756. if test $ac_cv_c_bigendian = unknown; then
  14757. # Compile a test program.
  14758. if test "$cross_compiling" = yes; then :
  14759. # Try to guess by grepping values from an object file.
  14760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14761. /* end confdefs.h. */
  14762. short int ascii_mm[] =
  14763. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  14764. short int ascii_ii[] =
  14765. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  14766. int use_ascii (int i) {
  14767. return ascii_mm[i] + ascii_ii[i];
  14768. }
  14769. short int ebcdic_ii[] =
  14770. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  14771. short int ebcdic_mm[] =
  14772. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  14773. int use_ebcdic (int i) {
  14774. return ebcdic_mm[i] + ebcdic_ii[i];
  14775. }
  14776. extern int foo;
  14777. int
  14778. main ()
  14779. {
  14780. return use_ascii (foo) == use_ebcdic (foo);
  14781. ;
  14782. return 0;
  14783. }
  14784. _ACEOF
  14785. if ac_fn_c_try_compile "$LINENO"; then :
  14786. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  14787. ac_cv_c_bigendian=yes
  14788. fi
  14789. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  14790. if test "$ac_cv_c_bigendian" = unknown; then
  14791. ac_cv_c_bigendian=no
  14792. else
  14793. # finding both strings is unlikely to happen, but who knows?
  14794. ac_cv_c_bigendian=unknown
  14795. fi
  14796. fi
  14797. fi
  14798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14799. else
  14800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14801. /* end confdefs.h. */
  14802. $ac_includes_default
  14803. int
  14804. main ()
  14805. {
  14806. /* Are we little or big endian? From Harbison&Steele. */
  14807. union
  14808. {
  14809. long int l;
  14810. char c[sizeof (long int)];
  14811. } u;
  14812. u.l = 1;
  14813. return u.c[sizeof (long int) - 1] == 1;
  14814. ;
  14815. return 0;
  14816. }
  14817. _ACEOF
  14818. if ac_fn_c_try_run "$LINENO"; then :
  14819. ac_cv_c_bigendian=no
  14820. else
  14821. ac_cv_c_bigendian=yes
  14822. fi
  14823. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14824. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14825. fi
  14826. fi
  14827. fi
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14829. $as_echo "$ac_cv_c_bigendian" >&6; }
  14830. case $ac_cv_c_bigendian in #(
  14831. yes)
  14832. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  14833. ;; #(
  14834. no)
  14835. ;; #(
  14836. universal)
  14837. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  14838. ;; #(
  14839. *)
  14840. as_fn_error "unknown endianness
  14841. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  14842. esac
  14843. if test x$ac_cv_c_bigendian = xyes ; then
  14844. WORDS_BIGENDIAN_TRUE=
  14845. WORDS_BIGENDIAN_FALSE='#'
  14846. else
  14847. WORDS_BIGENDIAN_TRUE='#'
  14848. WORDS_BIGENDIAN_FALSE=
  14849. fi
  14850. debug=no
  14851. # Check whether --enable-debug was given.
  14852. if test "${enable_debug+set}" = set; then :
  14853. enableval=$enable_debug; if test x$enableval = xyes; then
  14854. debug=yes
  14855. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  14856. # We may also want to add:
  14857. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  14858. $as_echo "#define DEBUG 1" >>confdefs.h
  14859. fi
  14860. fi
  14861. # Check whether --enable-dmalloc was given.
  14862. if test "${enable_dmalloc+set}" = set; then :
  14863. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  14864. dmalloc=yes
  14865. $as_echo "#define ENABLE_DMALLOC 1" >>confdefs.h
  14866. $as_echo "#define DMALLOC_FUNC_CHECK 1" >>confdefs.h
  14867. CFLAGS="${CFLAGS} -I/opt/local/include"
  14868. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  14869. fi
  14870. fi
  14871. # Check whether --enable-pedantic was given.
  14872. if test "${enable_pedantic+set}" = set; then :
  14873. enableval=$enable_pedantic; if test x$enableval = xyes; then
  14874. CFLAGS="$CFLAGS -pedantic"
  14875. fi
  14876. fi
  14877. # Check whether --enable-efence was given.
  14878. if test "${enable_efence+set}" = set; then :
  14879. enableval=$enable_efence; if test x$enableval = xyes; then
  14880. CFLAGS="$CFLAGS -lefence"
  14881. $as_echo "#define EFENCE 1" >>confdefs.h
  14882. fi
  14883. fi
  14884. # Check whether --enable-gprof was given.
  14885. if test "${enable_gprof+set}" = set; then :
  14886. enableval=$enable_gprof; if test x$enableval = xyes; then
  14887. if test $debug = yes; then
  14888. CFLAGS="$CFLAGS -pg"
  14889. else
  14890. # GPROF requires gdb
  14891. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  14892. fi
  14893. $as_echo "#define GPROF 1" >>confdefs.h
  14894. fi
  14895. fi
  14896. use64bit_counters=yes
  14897. # Check whether --enable-64bits was given.
  14898. if test "${enable_64bits+set}" = set; then :
  14899. enableval=$enable_64bits;
  14900. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int32_t for packet counters" >&5
  14901. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  14902. else
  14903. $as_echo "#define ENABLE_64BITS 1" >>confdefs.h
  14904. { $as_echo "$as_me:${as_lineno-$LINENO}: Using u_int64_t for packet counters" >&5
  14905. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  14906. fi
  14907. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  14908. # so we can use _U_ to flag unused function arguments and not get warnings
  14909. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  14910. # function argument will compile with non-GCC compilers.
  14911. #
  14912. if test "x$GCC" = "xyes" ; then
  14913. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  14914. else
  14915. CFLAGS="-D_U_=\"\" $CFLAGS"
  14916. fi
  14917. # Check whether --enable-force-bpf was given.
  14918. if test "${enable_force_bpf+set}" = set; then :
  14919. enableval=$enable_force_bpf;
  14920. $as_echo "#define FORCE_INJECT_BPF 1" >>confdefs.h
  14921. fi
  14922. # Check whether --enable-force-pf was given.
  14923. if test "${enable_force_pf+set}" = set; then :
  14924. enableval=$enable_force_pf;
  14925. $as_echo "#define FORCE_INJECT_PF 1" >>confdefs.h
  14926. fi
  14927. # Check whether --enable-force-libdnet was given.
  14928. if test "${enable_force_libdnet+set}" = set; then :
  14929. enableval=$enable_force_libdnet;
  14930. $as_echo "#define FORCE_INJECT_LIBDNET 1" >>confdefs.h
  14931. fi
  14932. # Check whether --enable-force-inject was given.
  14933. if test "${enable_force_inject+set}" = set; then :
  14934. enableval=$enable_force_inject;
  14935. $as_echo "#define FORCE_INJECT_PCAP_INJECT 1" >>confdefs.h
  14936. fi
  14937. # Check whether --enable-force-sendpacket was given.
  14938. if test "${enable_force_sendpacket+set}" = set; then :
  14939. enableval=$enable_force_sendpacket;
  14940. $as_echo "#define FORCE_INJECT_PCAP_SENDPACKET 1" >>confdefs.h
  14941. fi
  14942. dynamic_link=no
  14943. # Check whether --enable-dynamic-link was given.
  14944. if test "${enable_dynamic_link+set}" = set; then :
  14945. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  14946. $as_echo "#define ENABLE_DYNAMIC_LINK 1" >>confdefs.h
  14947. dynamic_link=yes
  14948. fi
  14949. fi
  14950. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  14951. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  14952. $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
  14953. inet_aton=yes
  14954. else
  14955. inet_aton=no
  14956. fi
  14957. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  14958. if test "x$ac_cv_func_inet_pton" = x""yes; then :
  14959. $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
  14960. inet_pton=yes
  14961. else
  14962. inet_pton=no
  14963. fi
  14964. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  14965. if test "x$ac_cv_func_inet_ntop" = x""yes; then :
  14966. $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
  14967. inet_ntop=yes
  14968. else
  14969. inet_ntop=no
  14970. fi
  14971. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  14972. as_fn_error "We need either inet_ntop or inet_pton" "$LINENO" 5
  14973. fi
  14974. ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
  14975. if test "x$ac_cv_func_inet_addr" = x""yes; then :
  14976. $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h
  14977. inet_addr=yes
  14978. else
  14979. inet_addr=no
  14980. fi
  14981. if test x$inet_addr = no ; then
  14982. as_fn_error "We need inet_addr. See bug 26" "$LINENO" 5
  14983. fi
  14984. foundpcap=no
  14985. trypcapdir=/usr/local
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap" >&5
  14987. $as_echo_n "checking for libpcap... " >&6; }
  14988. # Check whether --with-libpcap was given.
  14989. if test "${with_libpcap+set}" = set; then :
  14990. withval=$with_libpcap; trypcapdir=$withval
  14991. fi
  14992. for testdir in $trypcapdir /usr/local /opt/local /usr /wpdpack ; do
  14993. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  14994. LPCAPINC="${testdir}/include/pcap.h"
  14995. LPCAPINCDIR="${testdir}/include"
  14996. if test $dynamic_link = yes; then
  14997. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  14998. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  14999. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  15000. LPCAPLIB="-L${testdir}/lib -lpcap"
  15001. else
  15002. as_fn_error "Unable to find libpcap in ${testdir}" "$LINENO" 5
  15003. fi
  15004. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  15005. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  15006. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  15007. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  15008. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  15009. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  15010. $as_echo "#define HAVE_WINPCAP 1" >>confdefs.h
  15011. else
  15012. as_fn_error "Unable to find matching library for header file in ${testdir}" "$LINENO" 5
  15013. fi
  15014. foundpcap=$testdir
  15015. fi
  15016. done
  15017. if test $foundpcap = no ; then
  15018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15019. $as_echo "no" >&6; }
  15020. as_fn_error "libpcap not found" "$LINENO" 5
  15021. else
  15022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $foundpcap" >&5
  15023. $as_echo "$foundpcap" >&6; }
  15024. fi
  15025. OLDLIBS="$LIBS"
  15026. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  15027. LIBS="$LPCAPLIB"
  15028. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  15029. # Does libpcap require libnl?
  15030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcap_close" >&5
  15031. $as_echo_n "checking for library containing pcap_close... " >&6; }
  15032. if test "${ac_cv_search_pcap_close+set}" = set; then :
  15033. $as_echo_n "(cached) " >&6
  15034. else
  15035. ac_func_search_save_LIBS=$LIBS
  15036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15037. /* end confdefs.h. */
  15038. /* Override any GCC internal prototype to avoid an error.
  15039. Use char because int might match the return type of a GCC
  15040. builtin and then its argument prototype would still apply. */
  15041. #ifdef __cplusplus
  15042. extern "C"
  15043. #endif
  15044. char pcap_close ();
  15045. int
  15046. main ()
  15047. {
  15048. return pcap_close ();
  15049. ;
  15050. return 0;
  15051. }
  15052. _ACEOF
  15053. for ac_lib in '' pcap; do
  15054. if test -z "$ac_lib"; then
  15055. ac_res="none required"
  15056. else
  15057. ac_res=-l$ac_lib
  15058. LIBS="-l$ac_lib -lnl $ac_func_search_save_LIBS"
  15059. fi
  15060. if ac_fn_c_try_link "$LINENO"; then :
  15061. ac_cv_search_pcap_close=$ac_res
  15062. fi
  15063. rm -f core conftest.err conftest.$ac_objext \
  15064. conftest$ac_exeext
  15065. if test "${ac_cv_search_pcap_close+set}" = set; then :
  15066. break
  15067. fi
  15068. done
  15069. if test "${ac_cv_search_pcap_close+set}" = set; then :
  15070. else
  15071. ac_cv_search_pcap_close=no
  15072. fi
  15073. rm conftest.$ac_ext
  15074. LIBS=$ac_func_search_save_LIBS
  15075. fi
  15076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcap_close" >&5
  15077. $as_echo "$ac_cv_search_pcap_close" >&6; }
  15078. ac_res=$ac_cv_search_pcap_close
  15079. if test "$ac_res" != no; then :
  15080. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15081. LPCAPLIB="$LIBS"
  15082. else
  15083. as_fn_error "Unable to link libpcap in ${foundpcap}" "$LINENO" 5
  15084. fi
  15085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap version" >&5
  15086. $as_echo_n "checking for libpcap version... " >&6; }
  15087. libpcap_version_096=no
  15088. if test "$cross_compiling" = yes; then :
  15089. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15091. as_fn_error "cannot run test program while cross compiling
  15092. See \`config.log' for more details." "$LINENO" 5; }
  15093. else
  15094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15095. /* end confdefs.h. */
  15096. #include <string.h>
  15097. #include <stdlib.h>
  15098. #include <stdio.h>
  15099. #include "$LPCAPINC"
  15100. #define PCAP_TEST "0.9.6"
  15101. int
  15102. main ()
  15103. {
  15104. /*
  15105. * simple proggy to test the version of libpcap
  15106. * returns zero if version >= 0.9.6
  15107. * or one otherwise
  15108. */
  15109. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  15110. exit(0);
  15111. exit(1);
  15112. ;
  15113. return 0;
  15114. }
  15115. _ACEOF
  15116. if ac_fn_c_try_run "$LINENO"; then :
  15117. libpcap_version_096=yes
  15118. fi
  15119. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15120. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15121. fi
  15122. libpcap_ver8=no
  15123. if test "$cross_compiling" = yes; then :
  15124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15126. as_fn_error "cannot run test program while cross compiling
  15127. See \`config.log' for more details." "$LINENO" 5; }
  15128. else
  15129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15130. /* end confdefs.h. */
  15131. #include <string.h>
  15132. #include <stdlib.h>
  15133. #include <stdio.h>
  15134. #include "$LPCAPINC"
  15135. #define PCAP_TEST "0.8"
  15136. int
  15137. main ()
  15138. {
  15139. /*
  15140. * simple proggy to test the version of libpcap
  15141. * returns zero if version >= 0.8.0
  15142. * or one otherwise
  15143. */
  15144. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  15145. exit(0);
  15146. /* winpcap? */
  15147. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  15148. exit(0);
  15149. exit(1);
  15150. ;
  15151. return 0;
  15152. }
  15153. _ACEOF
  15154. if ac_fn_c_try_run "$LINENO"; then :
  15155. libpcap_ver8=yes
  15156. else
  15157. libpcap_ver8=no
  15158. fi
  15159. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15160. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15161. fi
  15162. libpcap_ver7=no
  15163. if test "$cross_compiling" = yes; then :
  15164. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15166. as_fn_error "cannot run test program while cross compiling
  15167. See \`config.log' for more details." "$LINENO" 5; }
  15168. else
  15169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15170. /* end confdefs.h. */
  15171. #include <string.h>
  15172. #include <stdlib.h>
  15173. #include <stdio.h>
  15174. #include "$LPCAPINC"
  15175. #define PCAP_TEST "0.7.2"
  15176. extern const char pcap_version[]; /* double up since autoconf escapes things */
  15177. int
  15178. main ()
  15179. {
  15180. /*
  15181. * simple proggy to test the version of libpcap
  15182. * returns zero if version >= 0.7.2
  15183. * or one otherwise
  15184. */
  15185. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  15186. exit(0);
  15187. exit(1);
  15188. ;
  15189. return 0;
  15190. }
  15191. _ACEOF
  15192. if ac_fn_c_try_run "$LINENO"; then :
  15193. libpcap_ver7=yes
  15194. else
  15195. libpcap_ver7=no
  15196. fi
  15197. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15198. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15199. fi
  15200. if test x$libpcap_ver8 = xyes ; then
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.8.0" >&5
  15202. $as_echo ">= 0.8.0" >&6; }
  15203. elif test x$libpcap_ver7 = xyes ; then
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.7.2" >&5
  15205. $as_echo ">= 0.7.2" >&6; }
  15206. else
  15207. as_fn_error "Libpcap versions < 0.7.2 are not supported
  15208. Please upgrade to version 0.7.2 or better" "$LINENO" 5
  15209. fi
  15210. libpcap_version=unknown
  15211. if test x$libpcap_version_096 = xyes ; then
  15212. libpcap_version=">= 0.9.6"
  15213. elif test x$libpcap_ver8 = xyes ; then
  15214. libpcap_version=">= 0.8.0"
  15215. elif test x$libcap_ver7 = xyes ; then
  15216. libpcap_version=">= 0.7.0"
  15217. fi
  15218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setnonblock" >&5
  15219. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  15220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15221. /* end confdefs.h. */
  15222. #include <stdio.h>
  15223. #include <stdlib.h>
  15224. #include <string.h>
  15225. #include "$LPCAPINC"
  15226. int
  15227. main ()
  15228. {
  15229. pcap_t *p;
  15230. char *errbuf;
  15231. pcap_setnonblock(p, 1, errbuf);
  15232. exit(0);
  15233. ;
  15234. return 0;
  15235. }
  15236. _ACEOF
  15237. if ac_fn_c_try_link "$LINENO"; then :
  15238. have_pcap_setnonblock=yes
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15240. $as_echo "yes" >&6; }
  15241. else
  15242. have_pcap_setnonblock=no
  15243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15244. $as_echo "no" >&6; }
  15245. fi
  15246. rm -f core conftest.err conftest.$ac_objext \
  15247. conftest$ac_exeext conftest.$ac_ext
  15248. if test $have_pcap_setnonblock = yes ; then
  15249. $as_echo "#define HAVE_PCAP_SETNONBLOCK 1" >>confdefs.h
  15250. fi
  15251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description" >&5
  15252. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  15253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15254. /* end confdefs.h. */
  15255. #include <stdio.h>
  15256. #include <stdlib.h>
  15257. #include <string.h>
  15258. #include "$LPCAPINC"
  15259. int
  15260. main ()
  15261. {
  15262. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  15263. exit(0);
  15264. exit(1);
  15265. ;
  15266. return 0;
  15267. }
  15268. _ACEOF
  15269. if ac_fn_c_try_link "$LINENO"; then :
  15270. have_dlt_to_desc=yes
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15272. $as_echo "yes" >&6; }
  15273. else
  15274. have_dlt_to_desc=no
  15275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15276. $as_echo "no" >&6; }
  15277. fi
  15278. rm -f core conftest.err conftest.$ac_objext \
  15279. conftest$ac_exeext conftest.$ac_ext
  15280. if test $have_dlt_to_desc = yes ; then
  15281. $as_echo "#define HAVE_DLT_VAL_TO_DESC 1" >>confdefs.h
  15282. fi
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_get_selectable_fd" >&5
  15284. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  15285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15286. /* end confdefs.h. */
  15287. #include <stdio.h>
  15288. #include <stdlib.h>
  15289. #include <string.h>
  15290. #include "$LPCAPINC"
  15291. int
  15292. main ()
  15293. {
  15294. int f;
  15295. pcap_t *p;
  15296. f = pcap_get_selectable_fd(p);
  15297. exit(0);
  15298. ;
  15299. return 0;
  15300. }
  15301. _ACEOF
  15302. if ac_fn_c_try_link "$LINENO"; then :
  15303. have_pcap_get_selectable_fd=yes
  15304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15305. $as_echo "yes" >&6; }
  15306. else
  15307. have_pcap_get_selectable_fd=no
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15309. $as_echo "no" >&6; }
  15310. fi
  15311. rm -f core conftest.err conftest.$ac_objext \
  15312. conftest$ac_exeext conftest.$ac_ext
  15313. if test x$have_pcap_get_selectable_fd = xyes ; then
  15314. $as_echo "#define HAVE_PCAP_GET_SELECTABLE_FD 1" >>confdefs.h
  15315. fi
  15316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen" >&5
  15317. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  15318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15319. /* end confdefs.h. */
  15320. #include <stdio.h>
  15321. #include <stdlib.h>
  15322. #include <string.h>
  15323. #include "$LPCAPINC"
  15324. int
  15325. main ()
  15326. {
  15327. pcap_dumper_t *dump;
  15328. pcap_t *pcap;
  15329. FILE *foo;
  15330. dump = pcap_dump_fopen(pcap, foo);
  15331. ;
  15332. return 0;
  15333. }
  15334. _ACEOF
  15335. if ac_fn_c_try_link "$LINENO"; then :
  15336. have_pcap_dump_fopen=yes
  15337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15338. $as_echo "yes" >&6; }
  15339. else
  15340. have_pcap_dump_fopen=no
  15341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15342. $as_echo "no" >&6; }
  15343. fi
  15344. rm -f core conftest.err conftest.$ac_objext \
  15345. conftest$ac_exeext conftest.$ac_ext
  15346. if test $have_pcap_dump_fopen = yes ; then
  15347. $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
  15348. else
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: --verbose mode requires libpcap >= 0.9.0" >&5
  15350. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  15351. fi
  15352. have_pcap_inject=no
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_inject sending support" >&5
  15354. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  15355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15356. /* end confdefs.h. */
  15357. #include <stdio.h>
  15358. #include <stdlib.h>
  15359. #include <string.h>
  15360. #include "$LPCAPINC"
  15361. int
  15362. main ()
  15363. {
  15364. pcap_t *pcap;
  15365. char *buf;
  15366. pcap_inject(pcap, (void *)buf, 0);
  15367. ;
  15368. return 0;
  15369. }
  15370. _ACEOF
  15371. if ac_fn_c_try_link "$LINENO"; then :
  15372. have_pcap_inject=yes
  15373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15374. $as_echo "yes" >&6; }
  15375. else
  15376. have_pcap_inject=no
  15377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15378. $as_echo "no" >&6; }
  15379. fi
  15380. rm -f core conftest.err conftest.$ac_objext \
  15381. conftest$ac_exeext conftest.$ac_ext
  15382. if test $have_pcap_inject = yes ; then
  15383. $as_echo "#define HAVE_PCAP_INJECT 1" >>confdefs.h
  15384. fi
  15385. have_pcap_sendpacket=no
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_sendpacket sending support" >&5
  15387. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  15388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15389. /* end confdefs.h. */
  15390. #include <stdio.h>
  15391. #include <stdlib.h>
  15392. #include <string.h>
  15393. #include "$LPCAPINC"
  15394. int
  15395. main ()
  15396. {
  15397. pcap_t *pcap;
  15398. u_char *buf;
  15399. pcap_sendpacket(pcap, buf, 0);
  15400. ;
  15401. return 0;
  15402. }
  15403. _ACEOF
  15404. if ac_fn_c_try_link "$LINENO"; then :
  15405. have_pcap_sendpacket=yes
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15407. $as_echo "yes" >&6; }
  15408. else
  15409. have_pcap_sendpacket=no
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15411. $as_echo "no" >&6; }
  15412. fi
  15413. rm -f core conftest.err conftest.$ac_objext \
  15414. conftest$ac_exeext conftest.$ac_ext
  15415. if test $have_pcap_sendpacket = yes ; then
  15416. $as_echo "#define HAVE_PCAP_SENDPACKET 1" >>confdefs.h
  15417. fi
  15418. have_pcap_breakloop=no
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_breakloop" >&5
  15420. $as_echo_n "checking for pcap_breakloop... " >&6; }
  15421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15422. /* end confdefs.h. */
  15423. #include <stdio.h>
  15424. #include <stdlib.h>
  15425. #include <string.h>
  15426. #include "$LPCAPINC"
  15427. int
  15428. main ()
  15429. {
  15430. pcap_t *pcap;
  15431. pcap_sendpacket(pcap);
  15432. ;
  15433. return 0;
  15434. }
  15435. _ACEOF
  15436. if ac_fn_c_try_link "$LINENO"; then :
  15437. have_pcap_breakloop=yes
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15439. $as_echo "yes" >&6; }
  15440. else
  15441. have_pcap_breakloop=no
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15443. $as_echo "no" >&6; }
  15444. fi
  15445. rm -f core conftest.err conftest.$ac_objext \
  15446. conftest$ac_exeext conftest.$ac_ext
  15447. if test $have_pcap_breakloop = yes ; then
  15448. $as_echo "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h
  15449. fi
  15450. have_pcap_version=no
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_version" >&5
  15452. $as_echo_n "checking for pcap_version... " >&6; }
  15453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15454. /* end confdefs.h. */
  15455. #include <stdio.h>
  15456. #include <stdlib.h>
  15457. #include <string.h>
  15458. #include "$LPCAPINC"
  15459. extern char pcap_version[];
  15460. int
  15461. main ()
  15462. {
  15463. printf("%s", pcap_version);
  15464. ;
  15465. return 0;
  15466. }
  15467. _ACEOF
  15468. if ac_fn_c_try_compile "$LINENO"; then :
  15469. $as_echo "#define HAVE_PCAP_VERSION 1" >>confdefs.h
  15470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15471. $as_echo "yes" >&6; }
  15472. else
  15473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15474. $as_echo "no" >&6; }
  15475. fi
  15476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15477. have_pcap_snapshot=no
  15478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_snapshot" >&5
  15479. $as_echo_n "checking for pcap_snapshot... " >&6; }
  15480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15481. /* end confdefs.h. */
  15482. #include <stdio.h>
  15483. #include <stdlib.h>
  15484. #include <string.h>
  15485. #include "$LPCAPINC"
  15486. int
  15487. main ()
  15488. {
  15489. pcap_t *p;
  15490. int len;
  15491. len = pcap_snapshot(p);
  15492. exit(0);
  15493. ;
  15494. return 0;
  15495. }
  15496. _ACEOF
  15497. if ac_fn_c_try_link "$LINENO"; then :
  15498. have_pcap_snapshot=yes
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15500. $as_echo "yes" >&6; }
  15501. else
  15502. have_pcap_snapshot=no
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15504. $as_echo "no" >&6; }
  15505. fi
  15506. rm -f core conftest.err conftest.$ac_objext \
  15507. conftest$ac_exeext conftest.$ac_ext
  15508. if test $have_pcap_snapshot = yes ; then
  15509. $as_echo "#define HAVE_PCAP_SNAPSHOT 1" >>confdefs.h
  15510. fi
  15511. # Tcpbridge requires libpcap and pcap_sendpacket()
  15512. enable_tcpbridge=no
  15513. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  15514. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  15515. if test x$have_bpf = xno; then
  15516. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  15517. enable_tcpbridge=yes
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  15519. $as_echo "$as_me: Building tcpbridge" >&6;}
  15520. # BPF systems need to also have pcap_setnonblock()
  15521. elif test x$have_pcap_setnonblock = xyes ; then
  15522. $as_echo "#define ENABLE_TCPBRIDGE 1" >>confdefs.h
  15523. enable_tcpbridge=yes
  15524. { $as_echo "$as_me:${as_lineno-$LINENO}: Building tcpbridge" >&5
  15525. $as_echo "$as_me: Building tcpbridge" >&6;}
  15526. else
  15527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  15528. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  15529. fi
  15530. fi
  15531. if test x$enable_tcpbridge = xyes ; then
  15532. COMPILE_TCPBRIDGE_TRUE=
  15533. COMPILE_TCPBRIDGE_FALSE='#'
  15534. else
  15535. COMPILE_TCPBRIDGE_TRUE='#'
  15536. COMPILE_TCPBRIDGE_FALSE=
  15537. fi
  15538. have_pf=no
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_PACKET socket sending support" >&5
  15540. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  15541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15542. /* end confdefs.h. */
  15543. #include <sys/socket.h>
  15544. #include <netpacket/packet.h>
  15545. #include <net/ethernet.h> /* the L2 protocols */
  15546. #include <netinet/in.h> /* htons */
  15547. int
  15548. main ()
  15549. {
  15550. int pf_socket;
  15551. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  15552. ;
  15553. return 0;
  15554. }
  15555. _ACEOF
  15556. if ac_fn_c_try_compile "$LINENO"; then :
  15557. $as_echo "#define HAVE_PF_PACKET 1" >>confdefs.h
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15559. $as_echo "yes" >&6; }
  15560. have_pf=yes
  15561. else
  15562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15563. $as_echo "no" >&6; }
  15564. fi
  15565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15566. have_bpf=no
  15567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BPF device sending support" >&5
  15568. $as_echo_n "checking for BPF device sending support... " >&6; }
  15569. if test "$cross_compiling" = yes; then :
  15570. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15571. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15572. as_fn_error "cannot run test program while cross compiling
  15573. See \`config.log' for more details." "$LINENO" 5; }
  15574. else
  15575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15576. /* end confdefs.h. */
  15577. #include <stdio.h>
  15578. #include <stdlib.h>
  15579. #include <sys/types.h>
  15580. #include <sys/socket.h>
  15581. #include <fcntl.h>
  15582. #include <sys/time.h>
  15583. #include <sys/ioctl.h>
  15584. #include <stdint.h>
  15585. #include <net/bpf.h>
  15586. #include <errno.h>
  15587. int
  15588. main(int argc, char *argv[]) {
  15589. int fd;
  15590. fd = open("/dev/bpf0", O_RDONLY, 0);
  15591. /* if we opened it, we're good */
  15592. if (fd > 1)
  15593. exit(0);
  15594. /* if we got EBUSY or permission denied it exists, so we're good */
  15595. if (fd < 0 && (errno == EBUSY || errno == 13))
  15596. exit(0);
  15597. /* else suck, no good */
  15598. exit(-1);
  15599. }
  15600. _ACEOF
  15601. if ac_fn_c_try_run "$LINENO"; then :
  15602. $as_echo "#define HAVE_BPF 1" >>confdefs.h
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15604. $as_echo "yes" >&6; }
  15605. have_bpf=yes
  15606. else
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15608. $as_echo "no" >&6; }
  15609. fi
  15610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15611. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15612. fi
  15613. founddnet=no
  15614. have_libdnet=no
  15615. libdnet_version=
  15616. enable_fragroute=no
  15617. trydnetdir=/usr/local
  15618. if test $have_cygwin == no ; then
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdnet" >&5
  15620. $as_echo_n "checking for libdnet... " >&6; }
  15621. # Check whether --with-libdnet was given.
  15622. if test "${with_libdnet+set}" = set; then :
  15623. withval=$with_libdnet; trydnetdir=$withval
  15624. fi
  15625. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  15626. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  15627. LDNETINC="`$testdir/bin/dnet-config --cflags`"
  15628. LDNETLIB="`$testdir/bin/dnet-config --libs`"
  15629. libdnet_version="`$testdir/bin/dnet-config --version`"
  15630. founddnet=$testdir
  15631. fi
  15632. done
  15633. if test $founddnet = no ; then
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15635. $as_echo "no" >&6; }
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdnet not found, disabling fragroute feature" >&5
  15637. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  15638. else
  15639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $founddnet" >&5
  15640. $as_echo "$founddnet" >&6; }
  15641. enable_fragroute=yes
  15642. have_libdnet=yes
  15643. $as_echo "#define HAVE_LIBDNET 1" >>confdefs.h
  15644. fi
  15645. else
  15646. { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  15647. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  15648. fi
  15649. cat >>confdefs.h <<_ACEOF
  15650. #define LIBDNET_VERSION "$libdnet_version"
  15651. _ACEOF
  15652. if test x$founddnet != xno; then
  15653. COMPILE_FRAGROUTE_TRUE=
  15654. COMPILE_FRAGROUTE_FALSE='#'
  15655. else
  15656. COMPILE_FRAGROUTE_TRUE='#'
  15657. COMPILE_FRAGROUTE_FALSE=
  15658. fi
  15659. if test x$founddnet != xno ; then
  15660. $as_echo "#define ENABLE_FRAGROUTE 1" >>confdefs.h
  15661. fi
  15662. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  15663. -a $have_libdnet = no -a $have_pf = no ; then
  15664. as_fn_error "Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" "$LINENO" 5
  15665. fi
  15666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_LINUX_SLL in libpcap" >&5
  15667. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  15668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15669. /* end confdefs.h. */
  15670. #include "$LPCAPINC"
  15671. int
  15672. main ()
  15673. {
  15674. int foo;
  15675. foo = DLT_LINUX_SLL
  15676. ;
  15677. return 0;
  15678. }
  15679. _ACEOF
  15680. if ac_fn_c_try_compile "$LINENO"; then :
  15681. $as_echo "#define HAVE_DLT_LINUX_SLL 1" >>confdefs.h
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15683. $as_echo "yes" >&6; }
  15684. else
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15686. $as_echo "no" >&6; }
  15687. fi
  15688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLT_C_HDLC in libpcap" >&5
  15690. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  15691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15692. /* end confdefs.h. */
  15693. #include "$LPCAPINC"
  15694. int
  15695. main ()
  15696. {
  15697. int foo;
  15698. foo = DLT_C_HDLC
  15699. ;
  15700. return 0;
  15701. }
  15702. _ACEOF
  15703. if ac_fn_c_try_compile "$LINENO"; then :
  15704. $as_echo "#define HAVE_DLT_C_HDLC 1" >>confdefs.h
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15706. $as_echo "yes" >&6; }
  15707. else
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15709. $as_echo "no" >&6; }
  15710. fi
  15711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15712. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PCAP_BPF_H_FILE" >&5
  15714. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  15715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15716. /* end confdefs.h. */
  15717. #include <sys/types.h>
  15718. #include <sys/time.h>
  15719. #include <stdint.h>
  15720. #include "$PCAP_BPF_H_FILE"
  15721. int
  15722. main ()
  15723. {
  15724. int foo;
  15725. foo = BPF_MAJOR_VERSION;
  15726. ;
  15727. return 0;
  15728. }
  15729. _ACEOF
  15730. if ac_fn_c_try_compile "$LINENO"; then :
  15731. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15733. $as_echo "yes" >&6; }
  15734. else
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15736. $as_echo "no" >&6; }
  15737. fi
  15738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15739. foundbpfheader=no
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcap bpf header" >&5
  15741. $as_echo_n "checking for libpcap bpf header... " >&6; }
  15742. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  15743. if test -f "${testfile}" -a $foundbpfheader = no ; then
  15744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15745. /* end confdefs.h. */
  15746. #include <sys/types.h>
  15747. #include <sys/time.h>
  15748. #include <stdint.h>
  15749. #include "$testfile"
  15750. int
  15751. main ()
  15752. {
  15753. int foo;
  15754. foo = BPF_MAJOR_VERSION;
  15755. ;
  15756. return 0;
  15757. }
  15758. _ACEOF
  15759. if ac_fn_c_try_compile "$LINENO"; then :
  15760. foundbpfheader=yes
  15761. PCAP_BPF_H_FILE=$testfile
  15762. $as_echo "#define INCLUDE_PCAP_BPF_HEADER 1" >>confdefs.h
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testfile" >&5
  15764. $as_echo "$testfile" >&6; }
  15765. else
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15767. $as_echo "no" >&6; }
  15768. fi
  15769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15770. fi
  15771. done
  15772. LIBS="$OLDLIBS"
  15773. CFLAGS="$OLDCFLAGS"
  15774. pcapnav_ver=no
  15775. pcncfg=no
  15776. # Check whether --with-pcapnav-config was given.
  15777. if test "${with_pcapnav_config+set}" = set; then :
  15778. withval=$with_pcapnav_config; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcapnav-config" >&5
  15779. $as_echo_n "checking for pcapnav-config... " >&6; }
  15780. if test -x $withval ; then
  15781. pcncfg=$withval
  15782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  15783. $as_echo "$pcncfg" >&6; }
  15784. elif test x$withval = xno ; then
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15786. $as_echo "no" >&6; }
  15787. else
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  15789. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  15790. fi
  15791. else
  15792. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  15793. set dummy pcapnav-config; ac_word=$2
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15795. $as_echo_n "checking for $ac_word... " >&6; }
  15796. if test "${ac_cv_path_pcncfg+set}" = set; then :
  15797. $as_echo_n "(cached) " >&6
  15798. else
  15799. case $pcncfg in
  15800. [\\/]* | ?:[\\/]*)
  15801. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  15802. ;;
  15803. *)
  15804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15805. for as_dir in $PATH
  15806. do
  15807. IFS=$as_save_IFS
  15808. test -z "$as_dir" && as_dir=.
  15809. for ac_exec_ext in '' $ac_executable_extensions; do
  15810. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15811. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  15812. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15813. break 2
  15814. fi
  15815. done
  15816. done
  15817. IFS=$as_save_IFS
  15818. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  15819. ;;
  15820. esac
  15821. fi
  15822. pcncfg=$ac_cv_path_pcncfg
  15823. if test -n "$pcncfg"; then
  15824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcncfg" >&5
  15825. $as_echo "$pcncfg" >&6; }
  15826. else
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15828. $as_echo "no" >&6; }
  15829. fi
  15830. fi
  15831. if test $pcncfg != no ; then
  15832. LNAVLIB=`$pcncfg --libs`
  15833. LNAV_CFLAGS=`$pcncfg --cflags`
  15834. PCAPNAV_VERSION=`$pcncfg --version`
  15835. cat >>confdefs.h <<_ACEOF
  15836. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  15837. _ACEOF
  15838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcapnav version" >&5
  15839. $as_echo_n "checking for libpcapnav version... " >&6; }
  15840. if test "$cross_compiling" = yes; then :
  15841. libpcapnav_ver=no
  15842. else
  15843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15844. /* end confdefs.h. */
  15845. #include <string.h>
  15846. #define PCAPNAV_TEST "0.4"
  15847. /*
  15848. * simple proggy to test the version of libpcapnav
  15849. * returns zero if version >= 0.4
  15850. * or one otherwise
  15851. */
  15852. int
  15853. main (int argc, char *argv[])
  15854. {
  15855. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  15856. exit(0);
  15857. exit(1);
  15858. }
  15859. _ACEOF
  15860. if ac_fn_c_try_run "$LINENO"; then :
  15861. libpcapnav_ver=yes
  15862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 0.4" >&5
  15863. $as_echo ">= 0.4" >&6; }
  15864. else
  15865. libpcapnav_ver=no
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 0.4" >&5
  15867. $as_echo "< 0.4" >&6; }
  15868. fi
  15869. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15870. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15871. fi
  15872. if test x$libpcapnav_ver = xno ; then
  15873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libpcapnav versions < 0.4 are not supported.
  15874. Please upgrade to version 0.4 or better.
  15875. Disabling offset jump feature." >&5
  15876. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  15877. Please upgrade to version 0.4 or better.
  15878. Disabling offset jump feature." >&2;}
  15879. else
  15880. $as_echo "#define HAVE_PCAPNAV 1" >>confdefs.h
  15881. fi
  15882. fi # checking pcapnav version
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requires strict byte alignment" >&5
  15884. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  15885. if test "${unaligned_cv_fail+set}" = set; then :
  15886. $as_echo_n "(cached) " >&6
  15887. else
  15888. case "$host_cpu" in
  15889. # XXX: should also check that they don't do weird things (like on arm)
  15890. alpha*|arm*|hp*|mips*|sparc*|ia64)
  15891. unaligned_cv_fail=yes
  15892. ;;
  15893. *)
  15894. cat >conftest.c <<EOF
  15895. #include <sys/types.h>
  15896. #include <sys/wait.h>
  15897. #include <stdio.h>
  15898. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  15899. main() {
  15900. unsigned int i;
  15901. pid_t pid;
  15902. int status;
  15903. /* avoid "core dumped" message */
  15904. pid = fork();
  15905. if (pid < 0)
  15906. exit(2);
  15907. if (pid > 0) {
  15908. /* parent */
  15909. pid = waitpid(pid, &status, 0);
  15910. if (pid < 0)
  15911. exit(3);
  15912. exit(!WIFEXITED(status));
  15913. }
  15914. /* child */
  15915. i = *(unsigned int *)&a[1];
  15916. printf("%d\n", i);
  15917. exit(0);
  15918. }
  15919. EOF
  15920. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  15921. conftest.c $LIBS >/dev/null 2>&1
  15922. if test ! -x conftest ; then
  15923. unaligned_cv_fail=yes
  15924. else
  15925. ./conftest >conftest.out
  15926. if test ! -s conftest.out ; then
  15927. unaligned_cv_fail=yes
  15928. else
  15929. unaligned_cv_fail=no
  15930. fi
  15931. fi
  15932. rm -f conftest* core core.conftest
  15933. ;;
  15934. esac
  15935. fi
  15936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unaligned_cv_fail" >&5
  15937. $as_echo "$unaligned_cv_fail" >&6; }
  15938. if test $unaligned_cv_fail = yes ; then
  15939. $as_echo "#define FORCE_ALIGN 1" >>confdefs.h
  15940. fi
  15941. tcpdump_path=no
  15942. # Check whether --with-tcpdump was given.
  15943. if test "${with_tcpdump+set}" = set; then :
  15944. withval=$with_tcpdump; if test -x $withval ; then
  15945. tcpdump_path=$withval
  15946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using tcpdump in $tcpdump_path" >&5
  15947. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  15948. else
  15949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error: $withval does not exist or is not executable" >&5
  15950. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  15951. fi
  15952. else
  15953. # Extract the first word of "tcpdump", so it can be a program name with args.
  15954. set dummy tcpdump; ac_word=$2
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15956. $as_echo_n "checking for $ac_word... " >&6; }
  15957. if test "${ac_cv_path_tcpdump_path+set}" = set; then :
  15958. $as_echo_n "(cached) " >&6
  15959. else
  15960. case $tcpdump_path in
  15961. [\\/]* | ?:[\\/]*)
  15962. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  15963. ;;
  15964. *)
  15965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15966. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  15967. for as_dir in $as_dummy
  15968. do
  15969. IFS=$as_save_IFS
  15970. test -z "$as_dir" && as_dir=.
  15971. for ac_exec_ext in '' $ac_executable_extensions; do
  15972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15973. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  15974. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15975. break 2
  15976. fi
  15977. done
  15978. done
  15979. IFS=$as_save_IFS
  15980. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  15981. ;;
  15982. esac
  15983. fi
  15984. tcpdump_path=$ac_cv_path_tcpdump_path
  15985. if test -n "$tcpdump_path"; then
  15986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcpdump_path" >&5
  15987. $as_echo "$tcpdump_path" >&6; }
  15988. else
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15990. $as_echo "no" >&6; }
  15991. fi
  15992. fi
  15993. if test "$tcpdump_path" = "no"; then
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  15995. Disabling --verbose" >&5
  15996. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  15997. Disabling --verbose" >&2;}
  15998. else
  15999. $as_echo "#define HAVE_TCPDUMP 1" >>confdefs.h
  16000. cat >>confdefs.h <<_ACEOF
  16001. #define TCPDUMP_BINARY "$tcpdump_path"
  16002. _ACEOF
  16003. fi
  16004. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  16005. ENABLE_TCPDUMP_TRUE=
  16006. ENABLE_TCPDUMP_FALSE='#'
  16007. else
  16008. ENABLE_TCPDUMP_TRUE='#'
  16009. ENABLE_TCPDUMP_FALSE=
  16010. fi
  16011. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  16012. $as_echo "#define ENABLE_VERBOSE 1" >>confdefs.h
  16013. else
  16014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of libpcap is too old for --verbose support" >&5
  16015. $as_echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  16016. fi
  16017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'make test' profile" >&5
  16018. $as_echo_n "checking for 'make test' profile... " >&6; }
  16019. if test "$host" != "$build" ; then
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to do tests when cross-compiling" >&5
  16021. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  16022. fi
  16023. # Check whether --with-testnic was given.
  16024. if test "${with_testnic+set}" = set; then :
  16025. withval=$with_testnic; nic1=$withval
  16026. nic2=$withval
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using --with-testnic=$withval" >&5
  16028. $as_echo "Using --with-testnic=$withval" >&6; }
  16029. else
  16030. disable_pcap_findalldevs=no
  16031. osx_frameworks=no
  16032. case $host in
  16033. *-*-linux*)
  16034. nic1=eth0
  16035. nic2=eth0
  16036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  16037. $as_echo "Linux" >&6; }
  16038. ;;
  16039. *-*-solaris*)
  16040. nic1=hme0
  16041. nic2=hme0
  16042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
  16043. $as_echo "Solaris" >&6; }
  16044. ;;
  16045. *-*-sunos*)
  16046. nic1=hme0
  16047. nic2=hme0
  16048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS" >&5
  16049. $as_echo "SunOS" >&6; }
  16050. ;;
  16051. *-apple-darwin*)
  16052. nic1=en0
  16053. nic2=en0
  16054. if test x$libpcap_version_096 = xno ; then
  16055. disable_pcap_findalldevs=yes
  16056. fi
  16057. $as_echo "#define HAVE_ABSOLUTE_TIME 1" >>confdefs.h
  16058. osx_frameworks=yes
  16059. $as_echo "#define HAVE_DARWIN 1" >>confdefs.h
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Apple OS X" >&5
  16061. $as_echo "Apple OS X" >&6; }
  16062. ;;
  16063. *-*-openbsd*)
  16064. nic1=xl0
  16065. nic2=xl0
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
  16067. $as_echo "OpenBSD" >&6; }
  16068. ;;
  16069. *-*-cygwin)
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32/Cygwin" >&5
  16071. $as_echo "Win32/Cygwin" >&6; }
  16072. nic1=%0
  16073. nic2=%0
  16074. ;;
  16075. *)
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host is unknown! Using first non-loopback interface" >&5
  16077. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  16078. nic1=%0
  16079. nic2=%0
  16080. ;;
  16081. esac
  16082. fi
  16083. if test "$osx_frameworks" == "yes"; then
  16084. ENABLE_OSX_FRAMEWORKS_TRUE=
  16085. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  16086. else
  16087. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  16088. ENABLE_OSX_FRAMEWORKS_FALSE=
  16089. fi
  16090. # Check whether --with-testnic2 was given.
  16091. if test "${with_testnic2+set}" = set; then :
  16092. withval=$with_testnic2; nic2=$withval
  16093. fi
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic1 for 1st test network interface card" >&5
  16095. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: Using $nic2 for 2nd test network interface card" >&5
  16097. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  16098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if it's ok to use pcap_findalldevs()" >&5
  16099. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  16100. if test x$disable_pcap_findalldevs = xno ; then
  16101. $as_echo "#define ENABLE_PCAP_FINDALLDEVS 1" >>confdefs.h
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16103. $as_echo "yes" >&6; }
  16104. else
  16105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16106. $as_echo "no" >&6; }
  16107. fi
  16108. case "${enable_local_libopts+set}" in
  16109. set) ;;
  16110. *) enable_local_libopts=yes ;;
  16111. esac
  16112. case "${enable_libopts_install+set}" in
  16113. set) ;;
  16114. *) enable_libopts_install=no ;;
  16115. esac
  16116. NEED_LIBOPTS_DIR=''
  16117. LIBOPTS_DIR=libopts
  16118. # Check whether --enable-local-libopts was given.
  16119. if test "${enable_local_libopts+set}" = set; then :
  16120. enableval=$enable_local_libopts;
  16121. if test x$enableval = xyes ; then
  16122. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  16123. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  16124. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  16125. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  16126. NEED_LIBOPTS_DIR=true
  16127. fi
  16128. fi
  16129. # Check whether --enable-libopts-install was given.
  16130. if test "${enable_libopts_install+set}" = set; then :
  16131. enableval=$enable_libopts_install;
  16132. fi
  16133. if test "X${enable_libopts_install}" != Xno; then
  16134. INSTALL_LIBOPTS_TRUE=
  16135. INSTALL_LIBOPTS_FALSE='#'
  16136. else
  16137. INSTALL_LIBOPTS_TRUE='#'
  16138. INSTALL_LIBOPTS_FALSE=
  16139. fi
  16140. if test -z "${NEED_LIBOPTS_DIR}" ; then
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  16142. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  16143. # Check whether --with-autoopts-config was given.
  16144. if test "${with_autoopts_config+set}" = set; then :
  16145. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  16146. else
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  16148. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  16149. if test "${lo_cv_with_autoopts_config+set}" = set; then :
  16150. $as_echo_n "(cached) " >&6
  16151. else
  16152. if autoopts-config --help 2>/dev/null 1>&2
  16153. then lo_cv_with_autoopts_config=autoopts-config
  16154. elif libopts-config --help 2>/dev/null 1>&2
  16155. then lo_cv_with_autoopts_config=libopts-config
  16156. else lo_cv_with_autoopts_config=no ; fi
  16157. fi
  16158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  16159. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  16160. fi
  16161. # end of AC_ARG_WITH
  16162. if test "${lo_cv_test_autoopts+set}" = set; then :
  16163. $as_echo_n "(cached) " >&6
  16164. else
  16165. if test -z "${lo_cv_with_autoopts_config}" \
  16166. -o X"${lo_cv_with_autoopts_config}" = Xno
  16167. then
  16168. if autoopts-config --help 2>/dev/null 1>&2
  16169. then lo_cv_with_autoopts_config=autoopts-config
  16170. elif libopts-config --help 2>/dev/null 1>&2
  16171. then lo_cv_with_autoopts_config=libopts-config
  16172. else lo_cv_with_autoopts_config=false ; fi
  16173. fi
  16174. lo_cv_test_autoopts=`
  16175. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  16176. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  16177. then lo_cv_test_autoopts=no ; fi
  16178. fi
  16179. # end of CACHE_VAL
  16180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  16181. $as_echo "${lo_cv_test_autoopts}" >&6; }
  16182. if test "X${lo_cv_test_autoopts}" != Xno
  16183. then
  16184. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  16185. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  16186. else
  16187. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  16188. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  16189. NEED_LIBOPTS_DIR=true
  16190. fi
  16191. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  16192. if test -n "${NEED_LIBOPTS_DIR}"; then
  16193. NEED_LIBOPTS_TRUE=
  16194. NEED_LIBOPTS_FALSE='#'
  16195. else
  16196. NEED_LIBOPTS_TRUE='#'
  16197. NEED_LIBOPTS_FALSE=
  16198. fi
  16199. LIBOPTS_DIR=libopts
  16200. ac_config_files="$ac_config_files libopts/Makefile"
  16201. if test -n "${NEED_LIBOPTS_DIR}" ; then
  16202. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  16203. # =================
  16204. # AC_HEADER_STDC
  16205. # =================
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  16207. $as_echo_n "checking for ANSI C header files... " >&6; }
  16208. if test "${ac_cv_header_stdc+set}" = set; then :
  16209. $as_echo_n "(cached) " >&6
  16210. else
  16211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16212. /* end confdefs.h. */
  16213. #include <stdlib.h>
  16214. #include <stdarg.h>
  16215. #include <string.h>
  16216. #include <float.h>
  16217. int
  16218. main ()
  16219. {
  16220. ;
  16221. return 0;
  16222. }
  16223. _ACEOF
  16224. if ac_fn_c_try_compile "$LINENO"; then :
  16225. ac_cv_header_stdc=yes
  16226. else
  16227. ac_cv_header_stdc=no
  16228. fi
  16229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16230. if test $ac_cv_header_stdc = yes; then
  16231. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16233. /* end confdefs.h. */
  16234. #include <string.h>
  16235. _ACEOF
  16236. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16237. $EGREP "memchr" >/dev/null 2>&1; then :
  16238. else
  16239. ac_cv_header_stdc=no
  16240. fi
  16241. rm -f conftest*
  16242. fi
  16243. if test $ac_cv_header_stdc = yes; then
  16244. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16246. /* end confdefs.h. */
  16247. #include <stdlib.h>
  16248. _ACEOF
  16249. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16250. $EGREP "free" >/dev/null 2>&1; then :
  16251. else
  16252. ac_cv_header_stdc=no
  16253. fi
  16254. rm -f conftest*
  16255. fi
  16256. if test $ac_cv_header_stdc = yes; then
  16257. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16258. if test "$cross_compiling" = yes; then :
  16259. :
  16260. else
  16261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16262. /* end confdefs.h. */
  16263. #include <ctype.h>
  16264. #include <stdlib.h>
  16265. #if ((' ' & 0x0FF) == 0x020)
  16266. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  16267. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  16268. #else
  16269. # define ISLOWER(c) \
  16270. (('a' <= (c) && (c) <= 'i') \
  16271. || ('j' <= (c) && (c) <= 'r') \
  16272. || ('s' <= (c) && (c) <= 'z'))
  16273. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  16274. #endif
  16275. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  16276. int
  16277. main ()
  16278. {
  16279. int i;
  16280. for (i = 0; i < 256; i++)
  16281. if (XOR (islower (i), ISLOWER (i))
  16282. || toupper (i) != TOUPPER (i))
  16283. return 2;
  16284. return 0;
  16285. }
  16286. _ACEOF
  16287. if ac_fn_c_try_run "$LINENO"; then :
  16288. else
  16289. ac_cv_header_stdc=no
  16290. fi
  16291. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16292. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16293. fi
  16294. fi
  16295. fi
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  16297. $as_echo "$ac_cv_header_stdc" >&6; }
  16298. if test $ac_cv_header_stdc = yes; then
  16299. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  16300. fi
  16301. # =================
  16302. # AC_HEADER_DIRENT
  16303. # =================
  16304. ac_header_dirent=no
  16305. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16306. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  16308. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  16309. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  16310. $as_echo_n "(cached) " >&6
  16311. else
  16312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16313. /* end confdefs.h. */
  16314. #include <sys/types.h>
  16315. #include <$ac_hdr>
  16316. int
  16317. main ()
  16318. {
  16319. if ((DIR *) 0)
  16320. return 0;
  16321. ;
  16322. return 0;
  16323. }
  16324. _ACEOF
  16325. if ac_fn_c_try_compile "$LINENO"; then :
  16326. eval "$as_ac_Header=yes"
  16327. else
  16328. eval "$as_ac_Header=no"
  16329. fi
  16330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16331. fi
  16332. eval ac_res=\$$as_ac_Header
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16334. $as_echo "$ac_res" >&6; }
  16335. eval as_val=\$$as_ac_Header
  16336. if test "x$as_val" = x""yes; then :
  16337. cat >>confdefs.h <<_ACEOF
  16338. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16339. _ACEOF
  16340. ac_header_dirent=$ac_hdr; break
  16341. fi
  16342. done
  16343. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16344. if test $ac_header_dirent = dirent.h; then
  16345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  16346. $as_echo_n "checking for library containing opendir... " >&6; }
  16347. if test "${ac_cv_search_opendir+set}" = set; then :
  16348. $as_echo_n "(cached) " >&6
  16349. else
  16350. ac_func_search_save_LIBS=$LIBS
  16351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16352. /* end confdefs.h. */
  16353. /* Override any GCC internal prototype to avoid an error.
  16354. Use char because int might match the return type of a GCC
  16355. builtin and then its argument prototype would still apply. */
  16356. #ifdef __cplusplus
  16357. extern "C"
  16358. #endif
  16359. char opendir ();
  16360. int
  16361. main ()
  16362. {
  16363. return opendir ();
  16364. ;
  16365. return 0;
  16366. }
  16367. _ACEOF
  16368. for ac_lib in '' dir; do
  16369. if test -z "$ac_lib"; then
  16370. ac_res="none required"
  16371. else
  16372. ac_res=-l$ac_lib
  16373. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16374. fi
  16375. if ac_fn_c_try_link "$LINENO"; then :
  16376. ac_cv_search_opendir=$ac_res
  16377. fi
  16378. rm -f core conftest.err conftest.$ac_objext \
  16379. conftest$ac_exeext
  16380. if test "${ac_cv_search_opendir+set}" = set; then :
  16381. break
  16382. fi
  16383. done
  16384. if test "${ac_cv_search_opendir+set}" = set; then :
  16385. else
  16386. ac_cv_search_opendir=no
  16387. fi
  16388. rm conftest.$ac_ext
  16389. LIBS=$ac_func_search_save_LIBS
  16390. fi
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  16392. $as_echo "$ac_cv_search_opendir" >&6; }
  16393. ac_res=$ac_cv_search_opendir
  16394. if test "$ac_res" != no; then :
  16395. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16396. fi
  16397. else
  16398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  16399. $as_echo_n "checking for library containing opendir... " >&6; }
  16400. if test "${ac_cv_search_opendir+set}" = set; then :
  16401. $as_echo_n "(cached) " >&6
  16402. else
  16403. ac_func_search_save_LIBS=$LIBS
  16404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16405. /* end confdefs.h. */
  16406. /* Override any GCC internal prototype to avoid an error.
  16407. Use char because int might match the return type of a GCC
  16408. builtin and then its argument prototype would still apply. */
  16409. #ifdef __cplusplus
  16410. extern "C"
  16411. #endif
  16412. char opendir ();
  16413. int
  16414. main ()
  16415. {
  16416. return opendir ();
  16417. ;
  16418. return 0;
  16419. }
  16420. _ACEOF
  16421. for ac_lib in '' x; do
  16422. if test -z "$ac_lib"; then
  16423. ac_res="none required"
  16424. else
  16425. ac_res=-l$ac_lib
  16426. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16427. fi
  16428. if ac_fn_c_try_link "$LINENO"; then :
  16429. ac_cv_search_opendir=$ac_res
  16430. fi
  16431. rm -f core conftest.err conftest.$ac_objext \
  16432. conftest$ac_exeext
  16433. if test "${ac_cv_search_opendir+set}" = set; then :
  16434. break
  16435. fi
  16436. done
  16437. if test "${ac_cv_search_opendir+set}" = set; then :
  16438. else
  16439. ac_cv_search_opendir=no
  16440. fi
  16441. rm conftest.$ac_ext
  16442. LIBS=$ac_func_search_save_LIBS
  16443. fi
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  16445. $as_echo "$ac_cv_search_opendir" >&6; }
  16446. ac_res=$ac_cv_search_opendir
  16447. if test "$ac_res" != no; then :
  16448. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16449. fi
  16450. fi
  16451. # =================
  16452. # AC_CHECK_HEADERS
  16453. # =================
  16454. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  16455. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  16456. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  16457. utime.h sysexits.h
  16458. do :
  16459. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16460. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16461. eval as_val=\$$as_ac_Header
  16462. if test "x$as_val" = x""yes; then :
  16463. cat >>confdefs.h <<_ACEOF
  16464. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16465. _ACEOF
  16466. fi
  16467. done
  16468. # --------------------------------------------
  16469. # Verify certain entries from AC_CHECK_HEADERS
  16470. # --------------------------------------------
  16471. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  16472. string errno stdlib memory setjmp
  16473. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  16474. test "${as_ac_var}" = set || \
  16475. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  16476. done
  16477. # ================================================
  16478. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  16479. # if varargs.h is present define HAVE_VARARGS_H.
  16480. # ================================================
  16481. for ac_header in stdarg.h varargs.h
  16482. do :
  16483. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16484. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16485. eval as_val=\$$as_ac_Header
  16486. if test "x$as_val" = x""yes; then :
  16487. cat >>confdefs.h <<_ACEOF
  16488. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16489. _ACEOF
  16490. break
  16491. fi
  16492. done
  16493. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  16494. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  16495. fi
  16496. # ================================================
  16497. # Similarly for the string.h and strings.h headers
  16498. # ================================================
  16499. for ac_header in string.h strings.h
  16500. do :
  16501. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16502. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16503. eval as_val=\$$as_ac_Header
  16504. if test "x$as_val" = x""yes; then :
  16505. cat >>confdefs.h <<_ACEOF
  16506. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16507. _ACEOF
  16508. break
  16509. fi
  16510. done
  16511. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  16512. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  16513. fi
  16514. # =====================
  16515. # ...and limits headers
  16516. # =====================
  16517. for ac_header in limits.h sys/limits.h values.h
  16518. do :
  16519. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16520. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16521. eval as_val=\$$as_ac_Header
  16522. if test "x$as_val" = x""yes; then :
  16523. cat >>confdefs.h <<_ACEOF
  16524. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16525. _ACEOF
  16526. break
  16527. fi
  16528. done
  16529. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  16530. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  16531. fi
  16532. # ----------------------------------------------------------------------
  16533. # check for various programs used during the build.
  16534. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  16535. # ----------------------------------------------------------------------
  16536. for ac_header in runetype.h wchar.h
  16537. do :
  16538. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16539. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  16540. $ac_includes_default
  16541. #if HAVE_RUNETYPE_H
  16542. # include <runetype.h>
  16543. #endif
  16544. "
  16545. eval as_val=\$$as_ac_Header
  16546. if test "x$as_val" = x""yes; then :
  16547. cat >>confdefs.h <<_ACEOF
  16548. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16549. _ACEOF
  16550. fi
  16551. done
  16552. # ----------------------------------------------------------------------
  16553. # Checks for typedefs
  16554. # ----------------------------------------------------------------------
  16555. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  16556. if test "x$ac_cv_type_wchar_t" = x""yes; then :
  16557. cat >>confdefs.h <<_ACEOF
  16558. #define HAVE_WCHAR_T 1
  16559. _ACEOF
  16560. fi
  16561. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  16562. $ac_includes_default
  16563. #if HAVE_RUNETYPE_H
  16564. # include <runetype.h>
  16565. #endif
  16566. #if HAVE_WCHAR_H
  16567. # include <wchar.h>
  16568. #endif
  16569. "
  16570. if test "x$ac_cv_type_wint_t" = x""yes; then :
  16571. cat >>confdefs.h <<_ACEOF
  16572. #define HAVE_WINT_T 1
  16573. _ACEOF
  16574. fi
  16575. # ========================
  16576. # ...and int types headers
  16577. # ========================
  16578. for ac_header in stdint.h inttypes.h
  16579. do :
  16580. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16581. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16582. eval as_val=\$$as_ac_Header
  16583. if test "x$as_val" = x""yes; then :
  16584. cat >>confdefs.h <<_ACEOF
  16585. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16586. _ACEOF
  16587. break
  16588. fi
  16589. done
  16590. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  16591. if test "x$ac_cv_type_int8_t" = x""yes; then :
  16592. cat >>confdefs.h <<_ACEOF
  16593. #define HAVE_INT8_T 1
  16594. _ACEOF
  16595. fi
  16596. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  16597. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  16598. cat >>confdefs.h <<_ACEOF
  16599. #define HAVE_UINT8_T 1
  16600. _ACEOF
  16601. fi
  16602. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  16603. if test "x$ac_cv_type_int16_t" = x""yes; then :
  16604. cat >>confdefs.h <<_ACEOF
  16605. #define HAVE_INT16_T 1
  16606. _ACEOF
  16607. fi
  16608. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  16609. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  16610. cat >>confdefs.h <<_ACEOF
  16611. #define HAVE_UINT16_T 1
  16612. _ACEOF
  16613. fi
  16614. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  16615. if test "x$ac_cv_type_int32_t" = x""yes; then :
  16616. cat >>confdefs.h <<_ACEOF
  16617. #define HAVE_INT32_T 1
  16618. _ACEOF
  16619. fi
  16620. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  16621. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  16622. cat >>confdefs.h <<_ACEOF
  16623. #define HAVE_UINT32_T 1
  16624. _ACEOF
  16625. fi
  16626. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  16627. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  16628. cat >>confdefs.h <<_ACEOF
  16629. #define HAVE_INTPTR_T 1
  16630. _ACEOF
  16631. fi
  16632. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  16633. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  16634. cat >>confdefs.h <<_ACEOF
  16635. #define HAVE_UINTPTR_T 1
  16636. _ACEOF
  16637. fi
  16638. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  16639. if test "x$ac_cv_type_uint_t" = x""yes; then :
  16640. cat >>confdefs.h <<_ACEOF
  16641. #define HAVE_UINT_T 1
  16642. _ACEOF
  16643. fi
  16644. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  16645. if test "x$ac_cv_type_pid_t" = x""yes; then :
  16646. cat >>confdefs.h <<_ACEOF
  16647. #define HAVE_PID_T 1
  16648. _ACEOF
  16649. fi
  16650. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16651. if test "x$ac_cv_type_size_t" = x""yes; then :
  16652. cat >>confdefs.h <<_ACEOF
  16653. #define HAVE_SIZE_T 1
  16654. _ACEOF
  16655. fi
  16656. # =====
  16657. # sizes
  16658. # =====
  16659. # The cast to long int works around a bug in the HP C Compiler
  16660. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16661. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16662. # This bug is HP SR number 8606223364.
  16663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  16664. $as_echo_n "checking size of char*... " >&6; }
  16665. if test "${ac_cv_sizeof_charp+set}" = set; then :
  16666. $as_echo_n "(cached) " >&6
  16667. else
  16668. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  16669. else
  16670. if test "$ac_cv_type_charp" = yes; then
  16671. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16672. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16673. { as_fn_set_status 77
  16674. as_fn_error "cannot compute sizeof (char*)
  16675. See \`config.log' for more details." "$LINENO" 5; }; }
  16676. else
  16677. ac_cv_sizeof_charp=0
  16678. fi
  16679. fi
  16680. fi
  16681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  16682. $as_echo "$ac_cv_sizeof_charp" >&6; }
  16683. cat >>confdefs.h <<_ACEOF
  16684. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  16685. _ACEOF
  16686. # The cast to long int works around a bug in the HP C Compiler
  16687. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16688. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16689. # This bug is HP SR number 8606223364.
  16690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  16691. $as_echo_n "checking size of int... " >&6; }
  16692. if test "${ac_cv_sizeof_int+set}" = set; then :
  16693. $as_echo_n "(cached) " >&6
  16694. else
  16695. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  16696. else
  16697. if test "$ac_cv_type_int" = yes; then
  16698. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16699. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16700. { as_fn_set_status 77
  16701. as_fn_error "cannot compute sizeof (int)
  16702. See \`config.log' for more details." "$LINENO" 5; }; }
  16703. else
  16704. ac_cv_sizeof_int=0
  16705. fi
  16706. fi
  16707. fi
  16708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  16709. $as_echo "$ac_cv_sizeof_int" >&6; }
  16710. cat >>confdefs.h <<_ACEOF
  16711. #define SIZEOF_INT $ac_cv_sizeof_int
  16712. _ACEOF
  16713. # The cast to long int works around a bug in the HP C Compiler
  16714. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16715. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16716. # This bug is HP SR number 8606223364.
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  16718. $as_echo_n "checking size of long... " >&6; }
  16719. if test "${ac_cv_sizeof_long+set}" = set; then :
  16720. $as_echo_n "(cached) " >&6
  16721. else
  16722. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  16723. else
  16724. if test "$ac_cv_type_long" = yes; then
  16725. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16726. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16727. { as_fn_set_status 77
  16728. as_fn_error "cannot compute sizeof (long)
  16729. See \`config.log' for more details." "$LINENO" 5; }; }
  16730. else
  16731. ac_cv_sizeof_long=0
  16732. fi
  16733. fi
  16734. fi
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  16736. $as_echo "$ac_cv_sizeof_long" >&6; }
  16737. cat >>confdefs.h <<_ACEOF
  16738. #define SIZEOF_LONG $ac_cv_sizeof_long
  16739. _ACEOF
  16740. # The cast to long int works around a bug in the HP C Compiler
  16741. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16742. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16743. # This bug is HP SR number 8606223364.
  16744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  16745. $as_echo_n "checking size of short... " >&6; }
  16746. if test "${ac_cv_sizeof_short+set}" = set; then :
  16747. $as_echo_n "(cached) " >&6
  16748. else
  16749. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  16750. else
  16751. if test "$ac_cv_type_short" = yes; then
  16752. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16753. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16754. { as_fn_set_status 77
  16755. as_fn_error "cannot compute sizeof (short)
  16756. See \`config.log' for more details." "$LINENO" 5; }; }
  16757. else
  16758. ac_cv_sizeof_short=0
  16759. fi
  16760. fi
  16761. fi
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  16763. $as_echo "$ac_cv_sizeof_short" >&6; }
  16764. cat >>confdefs.h <<_ACEOF
  16765. #define SIZEOF_SHORT $ac_cv_sizeof_short
  16766. _ACEOF
  16767. # ----------------------------------------------------------------------
  16768. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  16769. # ----------------------------------------------------------------------
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  16771. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  16772. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  16773. $as_echo_n "(cached) " >&6
  16774. else
  16775. ac_check_lib_save_LIBS=$LIBS
  16776. LIBS="-lgen $LIBS"
  16777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16778. /* end confdefs.h. */
  16779. /* Override any GCC internal prototype to avoid an error.
  16780. Use char because int might match the return type of a GCC
  16781. builtin and then its argument prototype would still apply. */
  16782. #ifdef __cplusplus
  16783. extern "C"
  16784. #endif
  16785. char pathfind ();
  16786. int
  16787. main ()
  16788. {
  16789. return pathfind ();
  16790. ;
  16791. return 0;
  16792. }
  16793. _ACEOF
  16794. if ac_fn_c_try_link "$LINENO"; then :
  16795. ac_cv_lib_gen_pathfind=yes
  16796. else
  16797. ac_cv_lib_gen_pathfind=no
  16798. fi
  16799. rm -f core conftest.err conftest.$ac_objext \
  16800. conftest$ac_exeext conftest.$ac_ext
  16801. LIBS=$ac_check_lib_save_LIBS
  16802. fi
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  16804. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  16805. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  16806. cat >>confdefs.h <<_ACEOF
  16807. #define HAVE_LIBGEN 1
  16808. _ACEOF
  16809. LIBS="-lgen $LIBS"
  16810. fi
  16811. for ac_func in vprintf
  16812. do :
  16813. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  16814. if test "x$ac_cv_func_vprintf" = x""yes; then :
  16815. cat >>confdefs.h <<_ACEOF
  16816. #define HAVE_VPRINTF 1
  16817. _ACEOF
  16818. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  16819. if test "x$ac_cv_func__doprnt" = x""yes; then :
  16820. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  16821. fi
  16822. fi
  16823. done
  16824. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  16825. strrchr strsignal
  16826. do :
  16827. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16828. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16829. eval as_val=\$$as_ac_var
  16830. if test "x$as_val" = x""yes; then :
  16831. cat >>confdefs.h <<_ACEOF
  16832. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16833. _ACEOF
  16834. fi
  16835. done
  16836. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  16837. fi
  16838. # Check to see if a reg expr header is specified.
  16839. # Check whether --with-regex-header was given.
  16840. if test "${with_regex_header+set}" = set; then :
  16841. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  16842. else
  16843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  16844. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  16845. if test "${libopts_cv_with_regex_header+set}" = set; then :
  16846. $as_echo_n "(cached) " >&6
  16847. else
  16848. libopts_cv_with_regex_header=no
  16849. fi
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  16851. $as_echo "$libopts_cv_with_regex_header" >&6; }
  16852. fi
  16853. # end of AC_ARG_WITH
  16854. if test "X${libopts_cv_with_regex_header}" != Xno
  16855. then
  16856. cat >>confdefs.h <<_ACEOF
  16857. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  16858. _ACEOF
  16859. else
  16860. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  16861. fi
  16862. # Check to see if a working libregex can be found.
  16863. # Check whether --with-libregex was given.
  16864. if test "${with_libregex+set}" = set; then :
  16865. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  16866. else
  16867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  16868. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  16869. if test "${libopts_cv_with_libregex_root+set}" = set; then :
  16870. $as_echo_n "(cached) " >&6
  16871. else
  16872. libopts_cv_with_libregex_root=no
  16873. fi
  16874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  16875. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  16876. fi
  16877. # end of AC_ARG_WITH libregex
  16878. if test "${with_libguile+set}" = set && \
  16879. test "${withval}" = no
  16880. then ## disabled by request
  16881. libopts_cv_with_libregex_root=no
  16882. libopts_cv_with_libregex_cflags=no
  16883. libopts_cv_with_libregex_libs=no
  16884. else
  16885. # Check whether --with-libregex-cflags was given.
  16886. if test "${with_libregex_cflags+set}" = set; then :
  16887. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  16888. else
  16889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  16890. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  16891. if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
  16892. $as_echo_n "(cached) " >&6
  16893. else
  16894. libopts_cv_with_libregex_cflags=no
  16895. fi
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  16897. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  16898. fi
  16899. # end of AC_ARG_WITH libregex-cflags
  16900. # Check whether --with-libregex-libs was given.
  16901. if test "${with_libregex_libs+set}" = set; then :
  16902. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  16903. else
  16904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  16905. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  16906. if test "${libopts_cv_with_libregex_libs+set}" = set; then :
  16907. $as_echo_n "(cached) " >&6
  16908. else
  16909. libopts_cv_with_libregex_libs=no
  16910. fi
  16911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  16912. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  16913. fi
  16914. # end of AC_ARG_WITH libregex-libs
  16915. case "X${libopts_cv_with_libregex_cflags}" in
  16916. Xyes|Xno|X )
  16917. case "X${libopts_cv_with_libregex_root}" in
  16918. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  16919. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  16920. esac
  16921. esac
  16922. case "X${libopts_cv_with_libregex_libs}" in
  16923. Xyes|Xno|X )
  16924. case "X${libopts_cv_with_libregex_root}" in
  16925. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  16926. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  16927. esac
  16928. esac
  16929. libopts_save_CPPFLAGS="${CPPFLAGS}"
  16930. libopts_save_LIBS="${LIBS}"
  16931. fi ## disabled by request
  16932. case "X${libopts_cv_with_libregex_cflags}" in
  16933. Xyes|Xno|X )
  16934. libopts_cv_with_libregex_cflags="" ;;
  16935. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  16936. esac
  16937. case "X${libopts_cv_with_libregex_libs}" in
  16938. Xyes|Xno|X )
  16939. libopts_cv_with_libregex_libs="" ;;
  16940. * )
  16941. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  16942. esac
  16943. LIBREGEX_CFLAGS=""
  16944. LIBREGEX_LIBS=""
  16945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  16946. $as_echo_n "checking whether libregex functions properly... " >&6; }
  16947. if test "${libopts_cv_with_libregex+set}" = set; then :
  16948. $as_echo_n "(cached) " >&6
  16949. else
  16950. if test "$cross_compiling" = yes; then :
  16951. libopts_cv_with_libregex=no
  16952. else
  16953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16954. /* end confdefs.h. */
  16955. #include <stdio.h>
  16956. #include <stdlib.h>
  16957. #include <sys/types.h>
  16958. #include REGEX_HEADER
  16959. static regex_t re;
  16960. void comp_re( char const* pzPat ) {
  16961. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  16962. if (res == 0) return;
  16963. exit( res ); }
  16964. int main() {
  16965. regmatch_t m[2];
  16966. comp_re( "^.*\$" );
  16967. comp_re( "()|no.*" );
  16968. comp_re( "." );
  16969. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  16970. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  16971. fputs( "error: regex -->.<-- did not match\n", stderr );
  16972. return 1;
  16973. }
  16974. return 0; }
  16975. _ACEOF
  16976. if ac_fn_c_try_run "$LINENO"; then :
  16977. libopts_cv_with_libregex=yes
  16978. else
  16979. libopts_cv_with_libregex=no
  16980. fi
  16981. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16982. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16983. fi
  16984. # end of AC_TRY_RUN
  16985. fi
  16986. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  16988. $as_echo "${libopts_cv_with_libregex}" >&6; }
  16989. if test "X${libopts_cv_with_libregex}" != Xno
  16990. then
  16991. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  16992. else
  16993. CPPFLAGS="${libopts_save_CPPFLAGS}"
  16994. LIBS="${libopts_save_LIBS}"
  16995. fi
  16996. # Check to see if pathfind(3) works.
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  16998. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  16999. if test "${libopts_cv_run_pathfind+set}" = set; then :
  17000. $as_echo_n "(cached) " >&6
  17001. else
  17002. if test "$cross_compiling" = yes; then :
  17003. libopts_cv_run_pathfind=no
  17004. else
  17005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17006. /* end confdefs.h. */
  17007. #include <string.h>
  17008. #include <stdlib.h>
  17009. int main (int argc, char** argv) {
  17010. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  17011. return (pz == 0) ? 1 : 0;
  17012. }
  17013. _ACEOF
  17014. if ac_fn_c_try_run "$LINENO"; then :
  17015. libopts_cv_run_pathfind=yes
  17016. else
  17017. libopts_cv_run_pathfind=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. # end of TRY_RUN
  17023. fi
  17024. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  17026. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  17027. if test "X${libopts_cv_run_pathfind}" != Xno
  17028. then
  17029. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  17030. fi
  17031. # Check to see if /dev/zero is readable device.
  17032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  17033. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  17034. if test "${libopts_cv_test_dev_zero+set}" = set; then :
  17035. $as_echo_n "(cached) " >&6
  17036. else
  17037. libopts_cv_test_dev_zero=`exec 2> /dev/null
  17038. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  17039. test -z "${dzero}" && exit 1
  17040. echo ${dzero}`
  17041. if test $? -ne 0
  17042. then libopts_cv_test_dev_zero=no
  17043. elif test -z "$libopts_cv_test_dev_zero"
  17044. then libopts_cv_test_dev_zero=no
  17045. fi
  17046. fi
  17047. # end of CACHE_VAL of libopts_cv_test_dev_zero
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  17049. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  17050. if test "X${libopts_cv_test_dev_zero}" != Xno
  17051. then
  17052. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  17053. fi
  17054. # Check to see if we have a functional realpath(3C).
  17055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  17056. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  17057. if test "${libopts_cv_run_realpath+set}" = set; then :
  17058. $as_echo_n "(cached) " >&6
  17059. else
  17060. if test "$cross_compiling" = yes; then :
  17061. libopts_cv_run_realpath=no
  17062. else
  17063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17064. /* end confdefs.h. */
  17065. #include <limits.h>
  17066. #include <stdlib.h>
  17067. int main (int argc, char** argv) {
  17068. #ifndef PATH_MAX
  17069. choke me!!
  17070. #else
  17071. char zPath[PATH_MAX+1];
  17072. #endif
  17073. char *pz = realpath(argv[0], zPath);
  17074. return (pz == zPath) ? 0 : 1;
  17075. }
  17076. _ACEOF
  17077. if ac_fn_c_try_run "$LINENO"; then :
  17078. libopts_cv_run_realpath=yes
  17079. else
  17080. libopts_cv_run_realpath=no
  17081. fi
  17082. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17083. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17084. fi
  17085. # end of TRY_RUN
  17086. fi
  17087. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  17088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  17089. $as_echo "${libopts_cv_run_realpath}" >&6; }
  17090. if test "X${libopts_cv_run_realpath}" != Xno
  17091. then
  17092. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  17093. fi
  17094. # Check to see if strftime() works.
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  17096. $as_echo_n "checking whether strftime() works... " >&6; }
  17097. if test "${libopts_cv_run_strftime+set}" = set; then :
  17098. $as_echo_n "(cached) " >&6
  17099. else
  17100. if test "$cross_compiling" = yes; then :
  17101. libopts_cv_run_strftime=no
  17102. else
  17103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17104. /* end confdefs.h. */
  17105. #include <time.h>
  17106. #include <string.h>
  17107. char t_buf[ 64 ];
  17108. int main() {
  17109. static char const z[] = "Thursday Aug 28 240";
  17110. struct tm tm;
  17111. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  17112. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  17113. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  17114. tm.tm_mday = 28; /* day of the month [1, 31] */
  17115. tm.tm_mon = 7; /* months since January [0, 11] */
  17116. tm.tm_year = 86; /* years since 1900 */
  17117. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  17118. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  17119. tm.tm_isdst = 1; /* flag for daylight savings time */
  17120. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  17121. return (strcmp( t_buf, z ) != 0); }
  17122. _ACEOF
  17123. if ac_fn_c_try_run "$LINENO"; then :
  17124. libopts_cv_run_strftime=yes
  17125. else
  17126. libopts_cv_run_strftime=no
  17127. fi
  17128. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17129. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17130. fi
  17131. # end of TRY_RUN
  17132. fi
  17133. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  17134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  17135. $as_echo "${libopts_cv_run_strftime}" >&6; }
  17136. if test "X${libopts_cv_run_strftime}" != Xno
  17137. then
  17138. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  17139. fi
  17140. # Check to see if fopen accepts "b" mode.
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  17142. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  17143. if test "${libopts_cv_run_fopen_binary+set}" = set; then :
  17144. $as_echo_n "(cached) " >&6
  17145. else
  17146. if test "$cross_compiling" = yes; then :
  17147. libopts_cv_run_fopen_binary=no
  17148. else
  17149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17150. /* end confdefs.h. */
  17151. #include <stdio.h>
  17152. int main (int argc, char** argv) {
  17153. FILE* fp = fopen("conftest.$ac_ext", "rb");
  17154. return (fp == NULL) ? 1 : fclose(fp); }
  17155. _ACEOF
  17156. if ac_fn_c_try_run "$LINENO"; then :
  17157. libopts_cv_run_fopen_binary=yes
  17158. else
  17159. libopts_cv_run_fopen_binary=no
  17160. fi
  17161. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17162. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17163. fi
  17164. # end of TRY_RUN
  17165. fi
  17166. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  17167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  17168. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  17169. if test "X${libopts_cv_run_fopen_binary}" != Xno
  17170. then
  17171. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  17172. else
  17173. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  17174. fi
  17175. # Check to see if fopen accepts "t" mode.
  17176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  17177. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  17178. if test "${libopts_cv_run_fopen_text+set}" = set; then :
  17179. $as_echo_n "(cached) " >&6
  17180. else
  17181. if test "$cross_compiling" = yes; then :
  17182. libopts_cv_run_fopen_text=no
  17183. else
  17184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17185. /* end confdefs.h. */
  17186. #include <stdio.h>
  17187. int main (int argc, char** argv) {
  17188. FILE* fp = fopen("conftest.$ac_ext", "rt");
  17189. return (fp == NULL) ? 1 : fclose(fp); }
  17190. _ACEOF
  17191. if ac_fn_c_try_run "$LINENO"; then :
  17192. libopts_cv_run_fopen_text=yes
  17193. else
  17194. libopts_cv_run_fopen_text=no
  17195. fi
  17196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17197. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17198. fi
  17199. # end of TRY_RUN
  17200. fi
  17201. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  17203. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  17204. if test "X${libopts_cv_run_fopen_text}" != Xno
  17205. then
  17206. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  17207. else
  17208. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  17209. fi
  17210. # Check to see if not wanting optional option args.
  17211. # Check whether --enable-optional-args was given.
  17212. if test "${enable_optional_args+set}" = set; then :
  17213. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  17214. else
  17215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  17216. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  17217. if test "${libopts_cv_enable_optional_args+set}" = set; then :
  17218. $as_echo_n "(cached) " >&6
  17219. else
  17220. libopts_cv_enable_optional_args=yes
  17221. fi
  17222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  17223. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  17224. fi
  17225. # end of AC_ARG_ENABLE
  17226. if test "X${libopts_cv_enable_optional_args}" = Xno
  17227. then
  17228. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  17229. fi
  17230. else
  17231. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  17232. # =================
  17233. # AC_HEADER_STDC
  17234. # =================
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  17236. $as_echo_n "checking for ANSI C header files... " >&6; }
  17237. if test "${ac_cv_header_stdc+set}" = set; then :
  17238. $as_echo_n "(cached) " >&6
  17239. else
  17240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17241. /* end confdefs.h. */
  17242. #include <stdlib.h>
  17243. #include <stdarg.h>
  17244. #include <string.h>
  17245. #include <float.h>
  17246. int
  17247. main ()
  17248. {
  17249. ;
  17250. return 0;
  17251. }
  17252. _ACEOF
  17253. if ac_fn_c_try_compile "$LINENO"; then :
  17254. ac_cv_header_stdc=yes
  17255. else
  17256. ac_cv_header_stdc=no
  17257. fi
  17258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17259. if test $ac_cv_header_stdc = yes; then
  17260. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17262. /* end confdefs.h. */
  17263. #include <string.h>
  17264. _ACEOF
  17265. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17266. $EGREP "memchr" >/dev/null 2>&1; then :
  17267. else
  17268. ac_cv_header_stdc=no
  17269. fi
  17270. rm -f conftest*
  17271. fi
  17272. if test $ac_cv_header_stdc = yes; then
  17273. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17275. /* end confdefs.h. */
  17276. #include <stdlib.h>
  17277. _ACEOF
  17278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17279. $EGREP "free" >/dev/null 2>&1; then :
  17280. else
  17281. ac_cv_header_stdc=no
  17282. fi
  17283. rm -f conftest*
  17284. fi
  17285. if test $ac_cv_header_stdc = yes; then
  17286. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17287. if test "$cross_compiling" = yes; then :
  17288. :
  17289. else
  17290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17291. /* end confdefs.h. */
  17292. #include <ctype.h>
  17293. #include <stdlib.h>
  17294. #if ((' ' & 0x0FF) == 0x020)
  17295. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17296. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17297. #else
  17298. # define ISLOWER(c) \
  17299. (('a' <= (c) && (c) <= 'i') \
  17300. || ('j' <= (c) && (c) <= 'r') \
  17301. || ('s' <= (c) && (c) <= 'z'))
  17302. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17303. #endif
  17304. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17305. int
  17306. main ()
  17307. {
  17308. int i;
  17309. for (i = 0; i < 256; i++)
  17310. if (XOR (islower (i), ISLOWER (i))
  17311. || toupper (i) != TOUPPER (i))
  17312. return 2;
  17313. return 0;
  17314. }
  17315. _ACEOF
  17316. if ac_fn_c_try_run "$LINENO"; then :
  17317. else
  17318. ac_cv_header_stdc=no
  17319. fi
  17320. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17321. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17322. fi
  17323. fi
  17324. fi
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  17326. $as_echo "$ac_cv_header_stdc" >&6; }
  17327. if test $ac_cv_header_stdc = yes; then
  17328. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  17329. fi
  17330. # =================
  17331. # AC_HEADER_DIRENT
  17332. # =================
  17333. ac_header_dirent=no
  17334. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  17335. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  17337. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  17338. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  17339. $as_echo_n "(cached) " >&6
  17340. else
  17341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17342. /* end confdefs.h. */
  17343. #include <sys/types.h>
  17344. #include <$ac_hdr>
  17345. int
  17346. main ()
  17347. {
  17348. if ((DIR *) 0)
  17349. return 0;
  17350. ;
  17351. return 0;
  17352. }
  17353. _ACEOF
  17354. if ac_fn_c_try_compile "$LINENO"; then :
  17355. eval "$as_ac_Header=yes"
  17356. else
  17357. eval "$as_ac_Header=no"
  17358. fi
  17359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17360. fi
  17361. eval ac_res=\$$as_ac_Header
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17363. $as_echo "$ac_res" >&6; }
  17364. eval as_val=\$$as_ac_Header
  17365. if test "x$as_val" = x""yes; then :
  17366. cat >>confdefs.h <<_ACEOF
  17367. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  17368. _ACEOF
  17369. ac_header_dirent=$ac_hdr; break
  17370. fi
  17371. done
  17372. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  17373. if test $ac_header_dirent = dirent.h; then
  17374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  17375. $as_echo_n "checking for library containing opendir... " >&6; }
  17376. if test "${ac_cv_search_opendir+set}" = set; then :
  17377. $as_echo_n "(cached) " >&6
  17378. else
  17379. ac_func_search_save_LIBS=$LIBS
  17380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17381. /* end confdefs.h. */
  17382. /* Override any GCC internal prototype to avoid an error.
  17383. Use char because int might match the return type of a GCC
  17384. builtin and then its argument prototype would still apply. */
  17385. #ifdef __cplusplus
  17386. extern "C"
  17387. #endif
  17388. char opendir ();
  17389. int
  17390. main ()
  17391. {
  17392. return opendir ();
  17393. ;
  17394. return 0;
  17395. }
  17396. _ACEOF
  17397. for ac_lib in '' dir; do
  17398. if test -z "$ac_lib"; then
  17399. ac_res="none required"
  17400. else
  17401. ac_res=-l$ac_lib
  17402. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17403. fi
  17404. if ac_fn_c_try_link "$LINENO"; then :
  17405. ac_cv_search_opendir=$ac_res
  17406. fi
  17407. rm -f core conftest.err conftest.$ac_objext \
  17408. conftest$ac_exeext
  17409. if test "${ac_cv_search_opendir+set}" = set; then :
  17410. break
  17411. fi
  17412. done
  17413. if test "${ac_cv_search_opendir+set}" = set; then :
  17414. else
  17415. ac_cv_search_opendir=no
  17416. fi
  17417. rm conftest.$ac_ext
  17418. LIBS=$ac_func_search_save_LIBS
  17419. fi
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  17421. $as_echo "$ac_cv_search_opendir" >&6; }
  17422. ac_res=$ac_cv_search_opendir
  17423. if test "$ac_res" != no; then :
  17424. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17425. fi
  17426. else
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  17428. $as_echo_n "checking for library containing opendir... " >&6; }
  17429. if test "${ac_cv_search_opendir+set}" = set; then :
  17430. $as_echo_n "(cached) " >&6
  17431. else
  17432. ac_func_search_save_LIBS=$LIBS
  17433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17434. /* end confdefs.h. */
  17435. /* Override any GCC internal prototype to avoid an error.
  17436. Use char because int might match the return type of a GCC
  17437. builtin and then its argument prototype would still apply. */
  17438. #ifdef __cplusplus
  17439. extern "C"
  17440. #endif
  17441. char opendir ();
  17442. int
  17443. main ()
  17444. {
  17445. return opendir ();
  17446. ;
  17447. return 0;
  17448. }
  17449. _ACEOF
  17450. for ac_lib in '' x; do
  17451. if test -z "$ac_lib"; then
  17452. ac_res="none required"
  17453. else
  17454. ac_res=-l$ac_lib
  17455. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17456. fi
  17457. if ac_fn_c_try_link "$LINENO"; then :
  17458. ac_cv_search_opendir=$ac_res
  17459. fi
  17460. rm -f core conftest.err conftest.$ac_objext \
  17461. conftest$ac_exeext
  17462. if test "${ac_cv_search_opendir+set}" = set; then :
  17463. break
  17464. fi
  17465. done
  17466. if test "${ac_cv_search_opendir+set}" = set; then :
  17467. else
  17468. ac_cv_search_opendir=no
  17469. fi
  17470. rm conftest.$ac_ext
  17471. LIBS=$ac_func_search_save_LIBS
  17472. fi
  17473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  17474. $as_echo "$ac_cv_search_opendir" >&6; }
  17475. ac_res=$ac_cv_search_opendir
  17476. if test "$ac_res" != no; then :
  17477. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17478. fi
  17479. fi
  17480. # =================
  17481. # AC_CHECK_HEADERS
  17482. # =================
  17483. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  17484. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  17485. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  17486. utime.h sysexits.h
  17487. do :
  17488. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17489. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17490. eval as_val=\$$as_ac_Header
  17491. if test "x$as_val" = x""yes; then :
  17492. cat >>confdefs.h <<_ACEOF
  17493. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17494. _ACEOF
  17495. fi
  17496. done
  17497. # --------------------------------------------
  17498. # Verify certain entries from AC_CHECK_HEADERS
  17499. # --------------------------------------------
  17500. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  17501. string errno stdlib memory setjmp
  17502. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  17503. test "${as_ac_var}" = set || \
  17504. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  17505. done
  17506. # ================================================
  17507. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  17508. # if varargs.h is present define HAVE_VARARGS_H.
  17509. # ================================================
  17510. for ac_header in stdarg.h varargs.h
  17511. do :
  17512. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17513. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17514. eval as_val=\$$as_ac_Header
  17515. if test "x$as_val" = x""yes; then :
  17516. cat >>confdefs.h <<_ACEOF
  17517. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17518. _ACEOF
  17519. break
  17520. fi
  17521. done
  17522. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  17523. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  17524. fi
  17525. # ================================================
  17526. # Similarly for the string.h and strings.h headers
  17527. # ================================================
  17528. for ac_header in string.h strings.h
  17529. do :
  17530. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17531. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17532. eval as_val=\$$as_ac_Header
  17533. if test "x$as_val" = x""yes; then :
  17534. cat >>confdefs.h <<_ACEOF
  17535. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17536. _ACEOF
  17537. break
  17538. fi
  17539. done
  17540. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  17541. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  17542. fi
  17543. # =====================
  17544. # ...and limits headers
  17545. # =====================
  17546. for ac_header in limits.h sys/limits.h values.h
  17547. do :
  17548. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17549. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17550. eval as_val=\$$as_ac_Header
  17551. if test "x$as_val" = x""yes; then :
  17552. cat >>confdefs.h <<_ACEOF
  17553. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17554. _ACEOF
  17555. break
  17556. fi
  17557. done
  17558. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  17559. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  17560. fi
  17561. # ----------------------------------------------------------------------
  17562. # check for various programs used during the build.
  17563. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  17564. # ----------------------------------------------------------------------
  17565. for ac_header in runetype.h wchar.h
  17566. do :
  17567. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17568. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  17569. $ac_includes_default
  17570. #if HAVE_RUNETYPE_H
  17571. # include <runetype.h>
  17572. #endif
  17573. "
  17574. eval as_val=\$$as_ac_Header
  17575. if test "x$as_val" = x""yes; then :
  17576. cat >>confdefs.h <<_ACEOF
  17577. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17578. _ACEOF
  17579. fi
  17580. done
  17581. # ----------------------------------------------------------------------
  17582. # Checks for typedefs
  17583. # ----------------------------------------------------------------------
  17584. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  17585. if test "x$ac_cv_type_wchar_t" = x""yes; then :
  17586. cat >>confdefs.h <<_ACEOF
  17587. #define HAVE_WCHAR_T 1
  17588. _ACEOF
  17589. fi
  17590. ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
  17591. $ac_includes_default
  17592. #if HAVE_RUNETYPE_H
  17593. # include <runetype.h>
  17594. #endif
  17595. #if HAVE_WCHAR_H
  17596. # include <wchar.h>
  17597. #endif
  17598. "
  17599. if test "x$ac_cv_type_wint_t" = x""yes; then :
  17600. cat >>confdefs.h <<_ACEOF
  17601. #define HAVE_WINT_T 1
  17602. _ACEOF
  17603. fi
  17604. # ========================
  17605. # ...and int types headers
  17606. # ========================
  17607. for ac_header in stdint.h inttypes.h
  17608. do :
  17609. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17610. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17611. eval as_val=\$$as_ac_Header
  17612. if test "x$as_val" = x""yes; then :
  17613. cat >>confdefs.h <<_ACEOF
  17614. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17615. _ACEOF
  17616. break
  17617. fi
  17618. done
  17619. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  17620. if test "x$ac_cv_type_int8_t" = x""yes; then :
  17621. cat >>confdefs.h <<_ACEOF
  17622. #define HAVE_INT8_T 1
  17623. _ACEOF
  17624. fi
  17625. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  17626. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  17627. cat >>confdefs.h <<_ACEOF
  17628. #define HAVE_UINT8_T 1
  17629. _ACEOF
  17630. fi
  17631. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  17632. if test "x$ac_cv_type_int16_t" = x""yes; then :
  17633. cat >>confdefs.h <<_ACEOF
  17634. #define HAVE_INT16_T 1
  17635. _ACEOF
  17636. fi
  17637. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  17638. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  17639. cat >>confdefs.h <<_ACEOF
  17640. #define HAVE_UINT16_T 1
  17641. _ACEOF
  17642. fi
  17643. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  17644. if test "x$ac_cv_type_int32_t" = x""yes; then :
  17645. cat >>confdefs.h <<_ACEOF
  17646. #define HAVE_INT32_T 1
  17647. _ACEOF
  17648. fi
  17649. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  17650. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  17651. cat >>confdefs.h <<_ACEOF
  17652. #define HAVE_UINT32_T 1
  17653. _ACEOF
  17654. fi
  17655. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  17656. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  17657. cat >>confdefs.h <<_ACEOF
  17658. #define HAVE_INTPTR_T 1
  17659. _ACEOF
  17660. fi
  17661. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  17662. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  17663. cat >>confdefs.h <<_ACEOF
  17664. #define HAVE_UINTPTR_T 1
  17665. _ACEOF
  17666. fi
  17667. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  17668. if test "x$ac_cv_type_uint_t" = x""yes; then :
  17669. cat >>confdefs.h <<_ACEOF
  17670. #define HAVE_UINT_T 1
  17671. _ACEOF
  17672. fi
  17673. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  17674. if test "x$ac_cv_type_pid_t" = x""yes; then :
  17675. cat >>confdefs.h <<_ACEOF
  17676. #define HAVE_PID_T 1
  17677. _ACEOF
  17678. fi
  17679. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  17680. if test "x$ac_cv_type_size_t" = x""yes; then :
  17681. cat >>confdefs.h <<_ACEOF
  17682. #define HAVE_SIZE_T 1
  17683. _ACEOF
  17684. fi
  17685. # =====
  17686. # sizes
  17687. # =====
  17688. # The cast to long int works around a bug in the HP C Compiler
  17689. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17690. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17691. # This bug is HP SR number 8606223364.
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  17693. $as_echo_n "checking size of char*... " >&6; }
  17694. if test "${ac_cv_sizeof_charp+set}" = set; then :
  17695. $as_echo_n "(cached) " >&6
  17696. else
  17697. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  17698. else
  17699. if test "$ac_cv_type_charp" = yes; then
  17700. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17701. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17702. { as_fn_set_status 77
  17703. as_fn_error "cannot compute sizeof (char*)
  17704. See \`config.log' for more details." "$LINENO" 5; }; }
  17705. else
  17706. ac_cv_sizeof_charp=0
  17707. fi
  17708. fi
  17709. fi
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  17711. $as_echo "$ac_cv_sizeof_charp" >&6; }
  17712. cat >>confdefs.h <<_ACEOF
  17713. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  17714. _ACEOF
  17715. # The cast to long int works around a bug in the HP C Compiler
  17716. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17717. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17718. # This bug is HP SR number 8606223364.
  17719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  17720. $as_echo_n "checking size of int... " >&6; }
  17721. if test "${ac_cv_sizeof_int+set}" = set; then :
  17722. $as_echo_n "(cached) " >&6
  17723. else
  17724. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  17725. else
  17726. if test "$ac_cv_type_int" = yes; then
  17727. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17728. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17729. { as_fn_set_status 77
  17730. as_fn_error "cannot compute sizeof (int)
  17731. See \`config.log' for more details." "$LINENO" 5; }; }
  17732. else
  17733. ac_cv_sizeof_int=0
  17734. fi
  17735. fi
  17736. fi
  17737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  17738. $as_echo "$ac_cv_sizeof_int" >&6; }
  17739. cat >>confdefs.h <<_ACEOF
  17740. #define SIZEOF_INT $ac_cv_sizeof_int
  17741. _ACEOF
  17742. # The cast to long int works around a bug in the HP C Compiler
  17743. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17744. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17745. # This bug is HP SR number 8606223364.
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  17747. $as_echo_n "checking size of long... " >&6; }
  17748. if test "${ac_cv_sizeof_long+set}" = set; then :
  17749. $as_echo_n "(cached) " >&6
  17750. else
  17751. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  17752. else
  17753. if test "$ac_cv_type_long" = yes; then
  17754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17756. { as_fn_set_status 77
  17757. as_fn_error "cannot compute sizeof (long)
  17758. See \`config.log' for more details." "$LINENO" 5; }; }
  17759. else
  17760. ac_cv_sizeof_long=0
  17761. fi
  17762. fi
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  17765. $as_echo "$ac_cv_sizeof_long" >&6; }
  17766. cat >>confdefs.h <<_ACEOF
  17767. #define SIZEOF_LONG $ac_cv_sizeof_long
  17768. _ACEOF
  17769. # The cast to long int works around a bug in the HP C Compiler
  17770. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17771. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17772. # This bug is HP SR number 8606223364.
  17773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  17774. $as_echo_n "checking size of short... " >&6; }
  17775. if test "${ac_cv_sizeof_short+set}" = set; then :
  17776. $as_echo_n "(cached) " >&6
  17777. else
  17778. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  17779. else
  17780. if test "$ac_cv_type_short" = yes; then
  17781. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17782. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17783. { as_fn_set_status 77
  17784. as_fn_error "cannot compute sizeof (short)
  17785. See \`config.log' for more details." "$LINENO" 5; }; }
  17786. else
  17787. ac_cv_sizeof_short=0
  17788. fi
  17789. fi
  17790. fi
  17791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  17792. $as_echo "$ac_cv_sizeof_short" >&6; }
  17793. cat >>confdefs.h <<_ACEOF
  17794. #define SIZEOF_SHORT $ac_cv_sizeof_short
  17795. _ACEOF
  17796. # ----------------------------------------------------------------------
  17797. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  17798. # ----------------------------------------------------------------------
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  17800. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  17801. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  17802. $as_echo_n "(cached) " >&6
  17803. else
  17804. ac_check_lib_save_LIBS=$LIBS
  17805. LIBS="-lgen $LIBS"
  17806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17807. /* end confdefs.h. */
  17808. /* Override any GCC internal prototype to avoid an error.
  17809. Use char because int might match the return type of a GCC
  17810. builtin and then its argument prototype would still apply. */
  17811. #ifdef __cplusplus
  17812. extern "C"
  17813. #endif
  17814. char pathfind ();
  17815. int
  17816. main ()
  17817. {
  17818. return pathfind ();
  17819. ;
  17820. return 0;
  17821. }
  17822. _ACEOF
  17823. if ac_fn_c_try_link "$LINENO"; then :
  17824. ac_cv_lib_gen_pathfind=yes
  17825. else
  17826. ac_cv_lib_gen_pathfind=no
  17827. fi
  17828. rm -f core conftest.err conftest.$ac_objext \
  17829. conftest$ac_exeext conftest.$ac_ext
  17830. LIBS=$ac_check_lib_save_LIBS
  17831. fi
  17832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  17833. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  17834. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  17835. cat >>confdefs.h <<_ACEOF
  17836. #define HAVE_LIBGEN 1
  17837. _ACEOF
  17838. LIBS="-lgen $LIBS"
  17839. fi
  17840. for ac_func in vprintf
  17841. do :
  17842. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  17843. if test "x$ac_cv_func_vprintf" = x""yes; then :
  17844. cat >>confdefs.h <<_ACEOF
  17845. #define HAVE_VPRINTF 1
  17846. _ACEOF
  17847. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  17848. if test "x$ac_cv_func__doprnt" = x""yes; then :
  17849. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  17850. fi
  17851. fi
  17852. done
  17853. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  17854. strrchr strsignal
  17855. do :
  17856. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17857. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17858. eval as_val=\$$as_ac_var
  17859. if test "x$as_val" = x""yes; then :
  17860. cat >>confdefs.h <<_ACEOF
  17861. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17862. _ACEOF
  17863. fi
  17864. done
  17865. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  17866. fi
  17867. fi
  17868. # end of AC_DEFUN of LIBOPTS_CHECK
  17869. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/fragroute/Makefile src/defines.h test/Makefile test/config scripts/Makefile"
  17870. cat >confcache <<\_ACEOF
  17871. # This file is a shell script that caches the results of configure
  17872. # tests run on this system so they can be shared between configure
  17873. # scripts and configure runs, see configure's option --config-cache.
  17874. # It is not useful on other systems. If it contains results you don't
  17875. # want to keep, you may remove or edit it.
  17876. #
  17877. # config.status only pays attention to the cache file if you give it
  17878. # the --recheck option to rerun configure.
  17879. #
  17880. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17881. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17882. # following values.
  17883. _ACEOF
  17884. # The following way of writing the cache mishandles newlines in values,
  17885. # but we know of no workaround that is simple, portable, and efficient.
  17886. # So, we kill variables containing newlines.
  17887. # Ultrix sh set writes to stderr and can't be redirected directly,
  17888. # and sets the high bit in the cache file unless we assign to the vars.
  17889. (
  17890. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17891. eval ac_val=\$$ac_var
  17892. case $ac_val in #(
  17893. *${as_nl}*)
  17894. case $ac_var in #(
  17895. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17896. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17897. esac
  17898. case $ac_var in #(
  17899. _ | IFS | as_nl) ;; #(
  17900. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17901. *) { eval $ac_var=; unset $ac_var;} ;;
  17902. esac ;;
  17903. esac
  17904. done
  17905. (set) 2>&1 |
  17906. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17907. *${as_nl}ac_space=\ *)
  17908. # `set' does not quote correctly, so add quotes: double-quote
  17909. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17910. sed -n \
  17911. "s/'/'\\\\''/g;
  17912. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17913. ;; #(
  17914. *)
  17915. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17916. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17917. ;;
  17918. esac |
  17919. sort
  17920. ) |
  17921. sed '
  17922. /^ac_cv_env_/b end
  17923. t clear
  17924. :clear
  17925. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17926. t end
  17927. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17928. :end' >>confcache
  17929. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17930. if test -w "$cache_file"; then
  17931. test "x$cache_file" != "x/dev/null" &&
  17932. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17933. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17934. cat confcache >$cache_file
  17935. else
  17936. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17937. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17938. fi
  17939. fi
  17940. rm -f confcache
  17941. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17942. # Let make expand exec_prefix.
  17943. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17944. DEFS=-DHAVE_CONFIG_H
  17945. ac_libobjs=
  17946. ac_ltlibobjs=
  17947. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17948. # 1. Remove the extension, and $U if already installed.
  17949. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17950. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17951. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17952. # will be set to the directory where LIBOBJS objects are built.
  17953. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17954. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17955. done
  17956. LIBOBJS=$ac_libobjs
  17957. LTLIBOBJS=$ac_ltlibobjs
  17958. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17959. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  17960. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17961. fi
  17962. if test -n "$EXEEXT"; then
  17963. am__EXEEXT_TRUE=
  17964. am__EXEEXT_FALSE='#'
  17965. else
  17966. am__EXEEXT_TRUE='#'
  17967. am__EXEEXT_FALSE=
  17968. fi
  17969. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17970. as_fn_error "conditional \"AMDEP\" was never defined.
  17971. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17972. fi
  17973. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17974. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  17975. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17976. fi
  17977. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17978. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  17979. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17980. fi
  17981. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17982. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  17983. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17984. fi
  17985. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  17986. as_fn_error "conditional \"SYSTEM_STRLCPY\" was never defined.
  17987. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17988. fi
  17989. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  17990. as_fn_error "conditional \"WORDS_BIGENDIAN\" was never defined.
  17991. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17992. fi
  17993. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  17994. as_fn_error "conditional \"COMPILE_TCPBRIDGE\" was never defined.
  17995. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17996. fi
  17997. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  17998. as_fn_error "conditional \"COMPILE_FRAGROUTE\" was never defined.
  17999. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18000. fi
  18001. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  18002. as_fn_error "conditional \"ENABLE_TCPDUMP\" was never defined.
  18003. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18004. fi
  18005. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  18006. as_fn_error "conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  18007. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18008. fi
  18009. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  18010. as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
  18011. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18012. fi
  18013. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  18014. as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
  18015. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18016. fi
  18017. : ${CONFIG_STATUS=./config.status}
  18018. ac_write_fail=0
  18019. ac_clean_files_save=$ac_clean_files
  18020. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18022. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18023. as_write_fail=0
  18024. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18025. #! $SHELL
  18026. # Generated by $as_me.
  18027. # Run this file to recreate the current configuration.
  18028. # Compiler output produced by configure, useful for debugging
  18029. # configure, is in config.log if it exists.
  18030. debug=false
  18031. ac_cs_recheck=false
  18032. ac_cs_silent=false
  18033. SHELL=\${CONFIG_SHELL-$SHELL}
  18034. export SHELL
  18035. _ASEOF
  18036. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18037. ## -------------------- ##
  18038. ## M4sh Initialization. ##
  18039. ## -------------------- ##
  18040. # Be more Bourne compatible
  18041. DUALCASE=1; export DUALCASE # for MKS sh
  18042. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18043. emulate sh
  18044. NULLCMD=:
  18045. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18046. # is contrary to our usage. Disable this feature.
  18047. alias -g '${1+"$@"}'='"$@"'
  18048. setopt NO_GLOB_SUBST
  18049. else
  18050. case `(set -o) 2>/dev/null` in #(
  18051. *posix*) :
  18052. set -o posix ;; #(
  18053. *) :
  18054. ;;
  18055. esac
  18056. fi
  18057. as_nl='
  18058. '
  18059. export as_nl
  18060. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18061. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18062. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18063. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18064. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18065. # but without wasting forks for bash or zsh.
  18066. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18067. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18068. as_echo='print -r --'
  18069. as_echo_n='print -rn --'
  18070. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18071. as_echo='printf %s\n'
  18072. as_echo_n='printf %s'
  18073. else
  18074. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18075. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18076. as_echo_n='/usr/ucb/echo -n'
  18077. else
  18078. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18079. as_echo_n_body='eval
  18080. arg=$1;
  18081. case $arg in #(
  18082. *"$as_nl"*)
  18083. expr "X$arg" : "X\\(.*\\)$as_nl";
  18084. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18085. esac;
  18086. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18087. '
  18088. export as_echo_n_body
  18089. as_echo_n='sh -c $as_echo_n_body as_echo'
  18090. fi
  18091. export as_echo_body
  18092. as_echo='sh -c $as_echo_body as_echo'
  18093. fi
  18094. # The user is always right.
  18095. if test "${PATH_SEPARATOR+set}" != set; then
  18096. PATH_SEPARATOR=:
  18097. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18098. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18099. PATH_SEPARATOR=';'
  18100. }
  18101. fi
  18102. # IFS
  18103. # We need space, tab and new line, in precisely that order. Quoting is
  18104. # there to prevent editors from complaining about space-tab.
  18105. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18106. # splitting by setting IFS to empty value.)
  18107. IFS=" "" $as_nl"
  18108. # Find who we are. Look in the path if we contain no directory separator.
  18109. case $0 in #((
  18110. *[\\/]* ) as_myself=$0 ;;
  18111. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18112. for as_dir in $PATH
  18113. do
  18114. IFS=$as_save_IFS
  18115. test -z "$as_dir" && as_dir=.
  18116. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18117. done
  18118. IFS=$as_save_IFS
  18119. ;;
  18120. esac
  18121. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18122. # in which case we are not to be found in the path.
  18123. if test "x$as_myself" = x; then
  18124. as_myself=$0
  18125. fi
  18126. if test ! -f "$as_myself"; then
  18127. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18128. exit 1
  18129. fi
  18130. # Unset variables that we do not need and which cause bugs (e.g. in
  18131. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18132. # suppresses any "Segmentation fault" message there. '((' could
  18133. # trigger a bug in pdksh 5.2.14.
  18134. for as_var in BASH_ENV ENV MAIL MAILPATH
  18135. do eval test x\${$as_var+set} = xset \
  18136. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18137. done
  18138. PS1='$ '
  18139. PS2='> '
  18140. PS4='+ '
  18141. # NLS nuisances.
  18142. LC_ALL=C
  18143. export LC_ALL
  18144. LANGUAGE=C
  18145. export LANGUAGE
  18146. # CDPATH.
  18147. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18148. # as_fn_error ERROR [LINENO LOG_FD]
  18149. # ---------------------------------
  18150. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18151. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18152. # script with status $?, using 1 if that was 0.
  18153. as_fn_error ()
  18154. {
  18155. as_status=$?; test $as_status -eq 0 && as_status=1
  18156. if test "$3"; then
  18157. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18158. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  18159. fi
  18160. $as_echo "$as_me: error: $1" >&2
  18161. as_fn_exit $as_status
  18162. } # as_fn_error
  18163. # as_fn_set_status STATUS
  18164. # -----------------------
  18165. # Set $? to STATUS, without forking.
  18166. as_fn_set_status ()
  18167. {
  18168. return $1
  18169. } # as_fn_set_status
  18170. # as_fn_exit STATUS
  18171. # -----------------
  18172. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18173. as_fn_exit ()
  18174. {
  18175. set +e
  18176. as_fn_set_status $1
  18177. exit $1
  18178. } # as_fn_exit
  18179. # as_fn_unset VAR
  18180. # ---------------
  18181. # Portably unset VAR.
  18182. as_fn_unset ()
  18183. {
  18184. { eval $1=; unset $1;}
  18185. }
  18186. as_unset=as_fn_unset
  18187. # as_fn_append VAR VALUE
  18188. # ----------------------
  18189. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18190. # advantage of any shell optimizations that allow amortized linear growth over
  18191. # repeated appends, instead of the typical quadratic growth present in naive
  18192. # implementations.
  18193. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18194. eval 'as_fn_append ()
  18195. {
  18196. eval $1+=\$2
  18197. }'
  18198. else
  18199. as_fn_append ()
  18200. {
  18201. eval $1=\$$1\$2
  18202. }
  18203. fi # as_fn_append
  18204. # as_fn_arith ARG...
  18205. # ------------------
  18206. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18207. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18208. # must be portable across $(()) and expr.
  18209. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18210. eval 'as_fn_arith ()
  18211. {
  18212. as_val=$(( $* ))
  18213. }'
  18214. else
  18215. as_fn_arith ()
  18216. {
  18217. as_val=`expr "$@" || test $? -eq 1`
  18218. }
  18219. fi # as_fn_arith
  18220. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18221. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18222. as_expr=expr
  18223. else
  18224. as_expr=false
  18225. fi
  18226. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18227. as_basename=basename
  18228. else
  18229. as_basename=false
  18230. fi
  18231. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18232. as_dirname=dirname
  18233. else
  18234. as_dirname=false
  18235. fi
  18236. as_me=`$as_basename -- "$0" ||
  18237. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18238. X"$0" : 'X\(//\)$' \| \
  18239. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18240. $as_echo X/"$0" |
  18241. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18242. s//\1/
  18243. q
  18244. }
  18245. /^X\/\(\/\/\)$/{
  18246. s//\1/
  18247. q
  18248. }
  18249. /^X\/\(\/\).*/{
  18250. s//\1/
  18251. q
  18252. }
  18253. s/.*/./; q'`
  18254. # Avoid depending upon Character Ranges.
  18255. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18256. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18257. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18258. as_cr_digits='0123456789'
  18259. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18260. ECHO_C= ECHO_N= ECHO_T=
  18261. case `echo -n x` in #(((((
  18262. -n*)
  18263. case `echo 'xy\c'` in
  18264. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18265. xy) ECHO_C='\c';;
  18266. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18267. ECHO_T=' ';;
  18268. esac;;
  18269. *)
  18270. ECHO_N='-n';;
  18271. esac
  18272. rm -f conf$$ conf$$.exe conf$$.file
  18273. if test -d conf$$.dir; then
  18274. rm -f conf$$.dir/conf$$.file
  18275. else
  18276. rm -f conf$$.dir
  18277. mkdir conf$$.dir 2>/dev/null
  18278. fi
  18279. if (echo >conf$$.file) 2>/dev/null; then
  18280. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18281. as_ln_s='ln -s'
  18282. # ... but there are two gotchas:
  18283. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18284. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18285. # In both cases, we have to default to `cp -p'.
  18286. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18287. as_ln_s='cp -p'
  18288. elif ln conf$$.file conf$$ 2>/dev/null; then
  18289. as_ln_s=ln
  18290. else
  18291. as_ln_s='cp -p'
  18292. fi
  18293. else
  18294. as_ln_s='cp -p'
  18295. fi
  18296. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18297. rmdir conf$$.dir 2>/dev/null
  18298. # as_fn_mkdir_p
  18299. # -------------
  18300. # Create "$as_dir" as a directory, including parents if necessary.
  18301. as_fn_mkdir_p ()
  18302. {
  18303. case $as_dir in #(
  18304. -*) as_dir=./$as_dir;;
  18305. esac
  18306. test -d "$as_dir" || eval $as_mkdir_p || {
  18307. as_dirs=
  18308. while :; do
  18309. case $as_dir in #(
  18310. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18311. *) as_qdir=$as_dir;;
  18312. esac
  18313. as_dirs="'$as_qdir' $as_dirs"
  18314. as_dir=`$as_dirname -- "$as_dir" ||
  18315. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18316. X"$as_dir" : 'X\(//\)[^/]' \| \
  18317. X"$as_dir" : 'X\(//\)$' \| \
  18318. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18319. $as_echo X"$as_dir" |
  18320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18321. s//\1/
  18322. q
  18323. }
  18324. /^X\(\/\/\)[^/].*/{
  18325. s//\1/
  18326. q
  18327. }
  18328. /^X\(\/\/\)$/{
  18329. s//\1/
  18330. q
  18331. }
  18332. /^X\(\/\).*/{
  18333. s//\1/
  18334. q
  18335. }
  18336. s/.*/./; q'`
  18337. test -d "$as_dir" && break
  18338. done
  18339. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18340. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  18341. } # as_fn_mkdir_p
  18342. if mkdir -p . 2>/dev/null; then
  18343. as_mkdir_p='mkdir -p "$as_dir"'
  18344. else
  18345. test -d ./-p && rmdir ./-p
  18346. as_mkdir_p=false
  18347. fi
  18348. if test -x / >/dev/null 2>&1; then
  18349. as_test_x='test -x'
  18350. else
  18351. if ls -dL / >/dev/null 2>&1; then
  18352. as_ls_L_option=L
  18353. else
  18354. as_ls_L_option=
  18355. fi
  18356. as_test_x='
  18357. eval sh -c '\''
  18358. if test -d "$1"; then
  18359. test -d "$1/.";
  18360. else
  18361. case $1 in #(
  18362. -*)set "./$1";;
  18363. esac;
  18364. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  18365. ???[sx]*):;;*)false;;esac;fi
  18366. '\'' sh
  18367. '
  18368. fi
  18369. as_executable_p=$as_test_x
  18370. # Sed expression to map a string onto a valid CPP name.
  18371. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18372. # Sed expression to map a string onto a valid variable name.
  18373. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18374. exec 6>&1
  18375. ## ----------------------------------- ##
  18376. ## Main body of $CONFIG_STATUS script. ##
  18377. ## ----------------------------------- ##
  18378. _ASEOF
  18379. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18380. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18381. # Save the log message, to keep $0 and so on meaningful, and to
  18382. # report actual input values of CONFIG_FILES etc. instead of their
  18383. # values after options handling.
  18384. ac_log="
  18385. This file was extended by $as_me, which was
  18386. generated by GNU Autoconf 2.65. Invocation command line was
  18387. CONFIG_FILES = $CONFIG_FILES
  18388. CONFIG_HEADERS = $CONFIG_HEADERS
  18389. CONFIG_LINKS = $CONFIG_LINKS
  18390. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18391. $ $0 $@
  18392. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18393. "
  18394. _ACEOF
  18395. case $ac_config_files in *"
  18396. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18397. esac
  18398. case $ac_config_headers in *"
  18399. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18400. esac
  18401. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18402. # Files that config.status was made for.
  18403. config_files="$ac_config_files"
  18404. config_headers="$ac_config_headers"
  18405. config_commands="$ac_config_commands"
  18406. _ACEOF
  18407. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18408. ac_cs_usage="\
  18409. \`$as_me' instantiates files and other configuration actions
  18410. from templates according to the current configuration. Unless the files
  18411. and actions are specified as TAGs, all are instantiated by default.
  18412. Usage: $0 [OPTION]... [TAG]...
  18413. -h, --help print this help, then exit
  18414. -V, --version print version number and configuration settings, then exit
  18415. --config print configuration, then exit
  18416. -q, --quiet, --silent
  18417. do not print progress messages
  18418. -d, --debug don't remove temporary files
  18419. --recheck update $as_me by reconfiguring in the same conditions
  18420. --file=FILE[:TEMPLATE]
  18421. instantiate the configuration file FILE
  18422. --header=FILE[:TEMPLATE]
  18423. instantiate the configuration header FILE
  18424. Configuration files:
  18425. $config_files
  18426. Configuration headers:
  18427. $config_headers
  18428. Configuration commands:
  18429. $config_commands
  18430. Report bugs to the package provider."
  18431. _ACEOF
  18432. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18433. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18434. ac_cs_version="\\
  18435. config.status
  18436. configured by $0, generated by GNU Autoconf 2.65,
  18437. with options \\"\$ac_cs_config\\"
  18438. Copyright (C) 2009 Free Software Foundation, Inc.
  18439. This config.status script is free software; the Free Software Foundation
  18440. gives unlimited permission to copy, distribute and modify it."
  18441. ac_pwd='$ac_pwd'
  18442. srcdir='$srcdir'
  18443. INSTALL='$INSTALL'
  18444. MKDIR_P='$MKDIR_P'
  18445. AWK='$AWK'
  18446. test -n "\$AWK" || AWK=awk
  18447. _ACEOF
  18448. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18449. # The default lists apply if the user does not specify any file.
  18450. ac_need_defaults=:
  18451. while test $# != 0
  18452. do
  18453. case $1 in
  18454. --*=*)
  18455. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18456. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18457. ac_shift=:
  18458. ;;
  18459. *)
  18460. ac_option=$1
  18461. ac_optarg=$2
  18462. ac_shift=shift
  18463. ;;
  18464. esac
  18465. case $ac_option in
  18466. # Handling of the options.
  18467. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18468. ac_cs_recheck=: ;;
  18469. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18470. $as_echo "$ac_cs_version"; exit ;;
  18471. --config | --confi | --conf | --con | --co | --c )
  18472. $as_echo "$ac_cs_config"; exit ;;
  18473. --debug | --debu | --deb | --de | --d | -d )
  18474. debug=: ;;
  18475. --file | --fil | --fi | --f )
  18476. $ac_shift
  18477. case $ac_optarg in
  18478. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18479. esac
  18480. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18481. ac_need_defaults=false;;
  18482. --header | --heade | --head | --hea )
  18483. $ac_shift
  18484. case $ac_optarg in
  18485. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18486. esac
  18487. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18488. ac_need_defaults=false;;
  18489. --he | --h)
  18490. # Conflict between --help and --header
  18491. as_fn_error "ambiguous option: \`$1'
  18492. Try \`$0 --help' for more information.";;
  18493. --help | --hel | -h )
  18494. $as_echo "$ac_cs_usage"; exit ;;
  18495. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18496. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18497. ac_cs_silent=: ;;
  18498. # This is an error.
  18499. -*) as_fn_error "unrecognized option: \`$1'
  18500. Try \`$0 --help' for more information." ;;
  18501. *) as_fn_append ac_config_targets " $1"
  18502. ac_need_defaults=false ;;
  18503. esac
  18504. shift
  18505. done
  18506. ac_configure_extra_args=
  18507. if $ac_cs_silent; then
  18508. exec 6>/dev/null
  18509. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18510. fi
  18511. _ACEOF
  18512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18513. if \$ac_cs_recheck; then
  18514. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18515. shift
  18516. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18517. CONFIG_SHELL='$SHELL'
  18518. export CONFIG_SHELL
  18519. exec "\$@"
  18520. fi
  18521. _ACEOF
  18522. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18523. exec 5>>config.log
  18524. {
  18525. echo
  18526. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18527. ## Running $as_me. ##
  18528. _ASBOX
  18529. $as_echo "$ac_log"
  18530. } >&5
  18531. _ACEOF
  18532. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18533. #
  18534. # INIT-COMMANDS
  18535. #
  18536. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18537. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18538. # if CDPATH is set.
  18539. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18540. sed_quote_subst='$sed_quote_subst'
  18541. double_quote_subst='$double_quote_subst'
  18542. delay_variable_subst='$delay_variable_subst'
  18543. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  18544. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  18545. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  18546. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  18547. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  18548. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  18549. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  18550. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  18551. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  18552. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  18553. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  18554. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  18555. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  18556. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  18557. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  18558. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  18559. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  18560. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  18561. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  18562. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  18563. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  18564. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  18565. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  18566. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  18567. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  18568. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  18569. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18570. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18571. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  18572. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  18573. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  18574. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  18575. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  18576. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  18577. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  18578. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18579. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18580. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18581. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  18582. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  18583. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  18584. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  18585. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  18586. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  18587. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  18588. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  18589. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  18590. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  18591. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  18592. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  18593. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18594. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  18595. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  18596. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  18597. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  18598. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  18599. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  18600. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  18601. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  18602. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  18603. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  18604. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  18605. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18606. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18607. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  18608. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  18609. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18610. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18611. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  18612. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18613. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18614. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18615. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18616. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18617. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18618. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  18619. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18620. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  18621. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18622. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  18623. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  18624. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  18625. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  18626. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  18627. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18628. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  18629. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  18630. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  18631. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  18632. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  18633. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18634. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  18635. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  18636. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18637. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18638. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  18639. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  18640. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  18641. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  18642. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18643. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18644. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  18645. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18646. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18647. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18648. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18649. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18650. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18651. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  18652. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  18653. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18654. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18655. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  18656. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  18657. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  18658. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  18659. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  18660. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  18661. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  18662. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  18663. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  18664. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  18665. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  18666. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  18667. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18668. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18669. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18670. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18671. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18672. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18673. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18674. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18675. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18676. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18677. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18678. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18679. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18680. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18681. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18682. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18683. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18684. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18685. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18686. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18687. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18688. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18689. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18690. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18691. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18692. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18693. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18694. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18695. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18696. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18697. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18698. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18699. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18700. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18701. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18702. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18703. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18704. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18705. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18706. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18707. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18708. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18709. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18710. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18711. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18712. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18713. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18714. LTCC='$LTCC'
  18715. LTCFLAGS='$LTCFLAGS'
  18716. compiler='$compiler_DEFAULT'
  18717. # Quote evaled strings.
  18718. for var in SED \
  18719. GREP \
  18720. EGREP \
  18721. FGREP \
  18722. LD \
  18723. NM \
  18724. LN_S \
  18725. lt_SP2NL \
  18726. lt_NL2SP \
  18727. reload_flag \
  18728. OBJDUMP \
  18729. deplibs_check_method \
  18730. file_magic_cmd \
  18731. AR \
  18732. AR_FLAGS \
  18733. STRIP \
  18734. RANLIB \
  18735. CC \
  18736. CFLAGS \
  18737. compiler \
  18738. lt_cv_sys_global_symbol_pipe \
  18739. lt_cv_sys_global_symbol_to_cdecl \
  18740. lt_cv_sys_global_symbol_to_c_name_address \
  18741. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18742. SHELL \
  18743. ECHO \
  18744. lt_prog_compiler_no_builtin_flag \
  18745. lt_prog_compiler_wl \
  18746. lt_prog_compiler_pic \
  18747. lt_prog_compiler_static \
  18748. lt_cv_prog_compiler_c_o \
  18749. need_locks \
  18750. DSYMUTIL \
  18751. NMEDIT \
  18752. LIPO \
  18753. OTOOL \
  18754. OTOOL64 \
  18755. shrext_cmds \
  18756. export_dynamic_flag_spec \
  18757. whole_archive_flag_spec \
  18758. compiler_needs_object \
  18759. with_gnu_ld \
  18760. allow_undefined_flag \
  18761. no_undefined_flag \
  18762. hardcode_libdir_flag_spec \
  18763. hardcode_libdir_flag_spec_ld \
  18764. hardcode_libdir_separator \
  18765. fix_srcfile_path \
  18766. exclude_expsyms \
  18767. include_expsyms \
  18768. file_list_spec \
  18769. variables_saved_for_relink \
  18770. libname_spec \
  18771. library_names_spec \
  18772. soname_spec \
  18773. finish_eval \
  18774. old_striplib \
  18775. striplib \
  18776. compiler_lib_search_dirs \
  18777. predep_objects \
  18778. postdep_objects \
  18779. predeps \
  18780. postdeps \
  18781. compiler_lib_search_path \
  18782. LD_CXX \
  18783. compiler_CXX \
  18784. lt_prog_compiler_no_builtin_flag_CXX \
  18785. lt_prog_compiler_wl_CXX \
  18786. lt_prog_compiler_pic_CXX \
  18787. lt_prog_compiler_static_CXX \
  18788. lt_cv_prog_compiler_c_o_CXX \
  18789. export_dynamic_flag_spec_CXX \
  18790. whole_archive_flag_spec_CXX \
  18791. compiler_needs_object_CXX \
  18792. with_gnu_ld_CXX \
  18793. allow_undefined_flag_CXX \
  18794. no_undefined_flag_CXX \
  18795. hardcode_libdir_flag_spec_CXX \
  18796. hardcode_libdir_flag_spec_ld_CXX \
  18797. hardcode_libdir_separator_CXX \
  18798. fix_srcfile_path_CXX \
  18799. exclude_expsyms_CXX \
  18800. include_expsyms_CXX \
  18801. file_list_spec_CXX \
  18802. compiler_lib_search_dirs_CXX \
  18803. predep_objects_CXX \
  18804. postdep_objects_CXX \
  18805. predeps_CXX \
  18806. postdeps_CXX \
  18807. compiler_lib_search_path_CXX; do
  18808. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  18809. *[\\\\\\\`\\"\\\$]*)
  18810. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  18811. ;;
  18812. *)
  18813. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18814. ;;
  18815. esac
  18816. done
  18817. # Double-quote double-evaled strings.
  18818. for var in reload_cmds \
  18819. old_postinstall_cmds \
  18820. old_postuninstall_cmds \
  18821. old_archive_cmds \
  18822. extract_expsyms_cmds \
  18823. old_archive_from_new_cmds \
  18824. old_archive_from_expsyms_cmds \
  18825. archive_cmds \
  18826. archive_expsym_cmds \
  18827. module_cmds \
  18828. module_expsym_cmds \
  18829. export_symbols_cmds \
  18830. prelink_cmds \
  18831. postinstall_cmds \
  18832. postuninstall_cmds \
  18833. finish_cmds \
  18834. sys_lib_search_path_spec \
  18835. sys_lib_dlsearch_path_spec \
  18836. old_archive_cmds_CXX \
  18837. old_archive_from_new_cmds_CXX \
  18838. old_archive_from_expsyms_cmds_CXX \
  18839. archive_cmds_CXX \
  18840. archive_expsym_cmds_CXX \
  18841. module_cmds_CXX \
  18842. module_expsym_cmds_CXX \
  18843. export_symbols_cmds_CXX \
  18844. prelink_cmds_CXX; do
  18845. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  18846. *[\\\\\\\`\\"\\\$]*)
  18847. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  18848. ;;
  18849. *)
  18850. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18851. ;;
  18852. esac
  18853. done
  18854. # Fix-up fallback echo if it was mangled by the above quoting rules.
  18855. case \$lt_ECHO in
  18856. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  18857. ;;
  18858. esac
  18859. ac_aux_dir='$ac_aux_dir'
  18860. xsi_shell='$xsi_shell'
  18861. lt_shell_append='$lt_shell_append'
  18862. # See if we are running on zsh, and set the options which allow our
  18863. # commands through without removal of \ escapes INIT.
  18864. if test -n "\${ZSH_VERSION+set}" ; then
  18865. setopt NO_GLOB_SUBST
  18866. fi
  18867. PACKAGE='$PACKAGE'
  18868. VERSION='$VERSION'
  18869. TIMESTAMP='$TIMESTAMP'
  18870. RM='$RM'
  18871. ofile='$ofile'
  18872. _ACEOF
  18873. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18874. # Handling of arguments.
  18875. for ac_config_target in $ac_config_targets
  18876. do
  18877. case $ac_config_target in
  18878. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  18879. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18880. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18881. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  18882. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18883. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  18884. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  18885. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  18886. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  18887. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  18888. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  18889. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  18890. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  18891. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  18892. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  18893. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  18894. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18895. esac
  18896. done
  18897. # If the user did not use the arguments to specify the items to instantiate,
  18898. # then the envvar interface is used. Set only those that are not.
  18899. # We use the long form for the default assignment because of an extremely
  18900. # bizarre bug on SunOS 4.1.3.
  18901. if $ac_need_defaults; then
  18902. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18903. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18904. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18905. fi
  18906. # Have a temporary directory for convenience. Make it in the build tree
  18907. # simply because there is no reason against having it here, and in addition,
  18908. # creating and moving files from /tmp can sometimes cause problems.
  18909. # Hook for its removal unless debugging.
  18910. # Note that there is a small window in which the directory will not be cleaned:
  18911. # after its creation but before its name has been assigned to `$tmp'.
  18912. $debug ||
  18913. {
  18914. tmp=
  18915. trap 'exit_status=$?
  18916. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  18917. ' 0
  18918. trap 'as_fn_exit 1' 1 2 13 15
  18919. }
  18920. # Create a (secure) tmp directory for tmp files.
  18921. {
  18922. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18923. test -n "$tmp" && test -d "$tmp"
  18924. } ||
  18925. {
  18926. tmp=./conf$$-$RANDOM
  18927. (umask 077 && mkdir "$tmp")
  18928. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  18929. # Set up the scripts for CONFIG_FILES section.
  18930. # No need to generate them if there are no CONFIG_FILES.
  18931. # This happens for instance with `./config.status config.h'.
  18932. if test -n "$CONFIG_FILES"; then
  18933. ac_cr=`echo X | tr X '\015'`
  18934. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18935. # But we know of no other shell where ac_cr would be empty at this
  18936. # point, so we can use a bashism as a fallback.
  18937. if test "x$ac_cr" = x; then
  18938. eval ac_cr=\$\'\\r\'
  18939. fi
  18940. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18941. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18942. ac_cs_awk_cr='\r'
  18943. else
  18944. ac_cs_awk_cr=$ac_cr
  18945. fi
  18946. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  18947. _ACEOF
  18948. {
  18949. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18950. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18951. echo "_ACEOF"
  18952. } >conf$$subs.sh ||
  18953. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18954. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  18955. ac_delim='%!_!# '
  18956. for ac_last_try in false false false false false :; do
  18957. . ./conf$$subs.sh ||
  18958. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18959. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18960. if test $ac_delim_n = $ac_delim_num; then
  18961. break
  18962. elif $ac_last_try; then
  18963. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18964. else
  18965. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18966. fi
  18967. done
  18968. rm -f conf$$subs.sh
  18969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18970. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  18971. _ACEOF
  18972. sed -n '
  18973. h
  18974. s/^/S["/; s/!.*/"]=/
  18975. p
  18976. g
  18977. s/^[^!]*!//
  18978. :repl
  18979. t repl
  18980. s/'"$ac_delim"'$//
  18981. t delim
  18982. :nl
  18983. h
  18984. s/\(.\{148\}\)..*/\1/
  18985. t more1
  18986. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18987. p
  18988. n
  18989. b repl
  18990. :more1
  18991. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18992. p
  18993. g
  18994. s/.\{148\}//
  18995. t nl
  18996. :delim
  18997. h
  18998. s/\(.\{148\}\)..*/\1/
  18999. t more2
  19000. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19001. p
  19002. b
  19003. :more2
  19004. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19005. p
  19006. g
  19007. s/.\{148\}//
  19008. t delim
  19009. ' <conf$$subs.awk | sed '
  19010. /^[^""]/{
  19011. N
  19012. s/\n//
  19013. }
  19014. ' >>$CONFIG_STATUS || ac_write_fail=1
  19015. rm -f conf$$subs.awk
  19016. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19017. _ACAWK
  19018. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  19019. for (key in S) S_is_set[key] = 1
  19020. FS = ""
  19021. }
  19022. {
  19023. line = $ 0
  19024. nfields = split(line, field, "@")
  19025. substed = 0
  19026. len = length(field[1])
  19027. for (i = 2; i < nfields; i++) {
  19028. key = field[i]
  19029. keylen = length(key)
  19030. if (S_is_set[key]) {
  19031. value = S[key]
  19032. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19033. len += length(value) + length(field[++i])
  19034. substed = 1
  19035. } else
  19036. len += 1 + keylen
  19037. }
  19038. print line
  19039. }
  19040. _ACAWK
  19041. _ACEOF
  19042. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19043. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19044. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19045. else
  19046. cat
  19047. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  19048. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  19049. _ACEOF
  19050. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19051. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19052. # trailing colons and then remove the whole line if VPATH becomes empty
  19053. # (actually we leave an empty line to preserve line numbers).
  19054. if test "x$srcdir" = x.; then
  19055. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19056. s/:*\$(srcdir):*/:/
  19057. s/:*\${srcdir}:*/:/
  19058. s/:*@srcdir@:*/:/
  19059. s/^\([^=]*=[ ]*\):*/\1/
  19060. s/:*$//
  19061. s/^[^=]*=[ ]*$//
  19062. }'
  19063. fi
  19064. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19065. fi # test -n "$CONFIG_FILES"
  19066. # Set up the scripts for CONFIG_HEADERS section.
  19067. # No need to generate them if there are no CONFIG_HEADERS.
  19068. # This happens for instance with `./config.status Makefile'.
  19069. if test -n "$CONFIG_HEADERS"; then
  19070. cat >"$tmp/defines.awk" <<\_ACAWK ||
  19071. BEGIN {
  19072. _ACEOF
  19073. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19074. # here-document in config.status, that substitutes the proper values into
  19075. # config.h.in to produce config.h.
  19076. # Create a delimiter string that does not exist in confdefs.h, to ease
  19077. # handling of long lines.
  19078. ac_delim='%!_!# '
  19079. for ac_last_try in false false :; do
  19080. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  19081. if test -z "$ac_t"; then
  19082. break
  19083. elif $ac_last_try; then
  19084. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  19085. else
  19086. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19087. fi
  19088. done
  19089. # For the awk script, D is an array of macro values keyed by name,
  19090. # likewise P contains macro parameters if any. Preserve backslash
  19091. # newline sequences.
  19092. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19093. sed -n '
  19094. s/.\{148\}/&'"$ac_delim"'/g
  19095. t rset
  19096. :rset
  19097. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19098. t def
  19099. d
  19100. :def
  19101. s/\\$//
  19102. t bsnl
  19103. s/["\\]/\\&/g
  19104. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19105. D["\1"]=" \3"/p
  19106. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19107. d
  19108. :bsnl
  19109. s/["\\]/\\&/g
  19110. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19111. D["\1"]=" \3\\\\\\n"\\/p
  19112. t cont
  19113. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19114. t cont
  19115. d
  19116. :cont
  19117. n
  19118. s/.\{148\}/&'"$ac_delim"'/g
  19119. t clear
  19120. :clear
  19121. s/\\$//
  19122. t bsnlc
  19123. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19124. d
  19125. :bsnlc
  19126. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19127. b cont
  19128. ' <confdefs.h | sed '
  19129. s/'"$ac_delim"'/"\\\
  19130. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19131. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19132. for (key in D) D_is_set[key] = 1
  19133. FS = ""
  19134. }
  19135. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19136. line = \$ 0
  19137. split(line, arg, " ")
  19138. if (arg[1] == "#") {
  19139. defundef = arg[2]
  19140. mac1 = arg[3]
  19141. } else {
  19142. defundef = substr(arg[1], 2)
  19143. mac1 = arg[2]
  19144. }
  19145. split(mac1, mac2, "(") #)
  19146. macro = mac2[1]
  19147. prefix = substr(line, 1, index(line, defundef) - 1)
  19148. if (D_is_set[macro]) {
  19149. # Preserve the white space surrounding the "#".
  19150. print prefix "define", macro P[macro] D[macro]
  19151. next
  19152. } else {
  19153. # Replace #undef with comments. This is necessary, for example,
  19154. # in the case of _POSIX_SOURCE, which is predefined and required
  19155. # on some systems where configure will not decide to define it.
  19156. if (defundef == "undef") {
  19157. print "/*", prefix defundef, macro, "*/"
  19158. next
  19159. }
  19160. }
  19161. }
  19162. { print }
  19163. _ACAWK
  19164. _ACEOF
  19165. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19166. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  19167. fi # test -n "$CONFIG_HEADERS"
  19168. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19169. shift
  19170. for ac_tag
  19171. do
  19172. case $ac_tag in
  19173. :[FHLC]) ac_mode=$ac_tag; continue;;
  19174. esac
  19175. case $ac_mode$ac_tag in
  19176. :[FHL]*:*);;
  19177. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19178. :[FH]-) ac_tag=-:-;;
  19179. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19180. esac
  19181. ac_save_IFS=$IFS
  19182. IFS=:
  19183. set x $ac_tag
  19184. IFS=$ac_save_IFS
  19185. shift
  19186. ac_file=$1
  19187. shift
  19188. case $ac_mode in
  19189. :L) ac_source=$1;;
  19190. :[FH])
  19191. ac_file_inputs=
  19192. for ac_f
  19193. do
  19194. case $ac_f in
  19195. -) ac_f="$tmp/stdin";;
  19196. *) # Look for the file first in the build tree, then in the source tree
  19197. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19198. # because $ac_f cannot contain `:'.
  19199. test -f "$ac_f" ||
  19200. case $ac_f in
  19201. [\\/$]*) false;;
  19202. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19203. esac ||
  19204. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19205. esac
  19206. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19207. as_fn_append ac_file_inputs " '$ac_f'"
  19208. done
  19209. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19210. # use $as_me), people would be surprised to read:
  19211. # /* config.h. Generated by config.status. */
  19212. configure_input='Generated from '`
  19213. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19214. `' by configure.'
  19215. if test x"$ac_file" != x-; then
  19216. configure_input="$ac_file. $configure_input"
  19217. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19218. $as_echo "$as_me: creating $ac_file" >&6;}
  19219. fi
  19220. # Neutralize special characters interpreted by sed in replacement strings.
  19221. case $configure_input in #(
  19222. *\&* | *\|* | *\\* )
  19223. ac_sed_conf_input=`$as_echo "$configure_input" |
  19224. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19225. *) ac_sed_conf_input=$configure_input;;
  19226. esac
  19227. case $ac_tag in
  19228. *:-:* | *:-) cat >"$tmp/stdin" \
  19229. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  19230. esac
  19231. ;;
  19232. esac
  19233. ac_dir=`$as_dirname -- "$ac_file" ||
  19234. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19235. X"$ac_file" : 'X\(//\)[^/]' \| \
  19236. X"$ac_file" : 'X\(//\)$' \| \
  19237. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19238. $as_echo X"$ac_file" |
  19239. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19240. s//\1/
  19241. q
  19242. }
  19243. /^X\(\/\/\)[^/].*/{
  19244. s//\1/
  19245. q
  19246. }
  19247. /^X\(\/\/\)$/{
  19248. s//\1/
  19249. q
  19250. }
  19251. /^X\(\/\).*/{
  19252. s//\1/
  19253. q
  19254. }
  19255. s/.*/./; q'`
  19256. as_dir="$ac_dir"; as_fn_mkdir_p
  19257. ac_builddir=.
  19258. case "$ac_dir" in
  19259. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19260. *)
  19261. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19262. # A ".." for each directory in $ac_dir_suffix.
  19263. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19264. case $ac_top_builddir_sub in
  19265. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19266. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19267. esac ;;
  19268. esac
  19269. ac_abs_top_builddir=$ac_pwd
  19270. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19271. # for backward compatibility:
  19272. ac_top_builddir=$ac_top_build_prefix
  19273. case $srcdir in
  19274. .) # We are building in place.
  19275. ac_srcdir=.
  19276. ac_top_srcdir=$ac_top_builddir_sub
  19277. ac_abs_top_srcdir=$ac_pwd ;;
  19278. [\\/]* | ?:[\\/]* ) # Absolute name.
  19279. ac_srcdir=$srcdir$ac_dir_suffix;
  19280. ac_top_srcdir=$srcdir
  19281. ac_abs_top_srcdir=$srcdir ;;
  19282. *) # Relative name.
  19283. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19284. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19285. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19286. esac
  19287. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19288. case $ac_mode in
  19289. :F)
  19290. #
  19291. # CONFIG_FILE
  19292. #
  19293. case $INSTALL in
  19294. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19295. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19296. esac
  19297. ac_MKDIR_P=$MKDIR_P
  19298. case $MKDIR_P in
  19299. [\\/$]* | ?:[\\/]* ) ;;
  19300. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19301. esac
  19302. _ACEOF
  19303. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19304. # If the template does not know about datarootdir, expand it.
  19305. # FIXME: This hack should be removed a few years after 2.60.
  19306. ac_datarootdir_hack=; ac_datarootdir_seen=
  19307. ac_sed_dataroot='
  19308. /datarootdir/ {
  19309. p
  19310. q
  19311. }
  19312. /@datadir@/p
  19313. /@docdir@/p
  19314. /@infodir@/p
  19315. /@localedir@/p
  19316. /@mandir@/p'
  19317. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19318. *datarootdir*) ac_datarootdir_seen=yes;;
  19319. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19321. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19322. _ACEOF
  19323. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19324. ac_datarootdir_hack='
  19325. s&@datadir@&$datadir&g
  19326. s&@docdir@&$docdir&g
  19327. s&@infodir@&$infodir&g
  19328. s&@localedir@&$localedir&g
  19329. s&@mandir@&$mandir&g
  19330. s&\\\${datarootdir}&$datarootdir&g' ;;
  19331. esac
  19332. _ACEOF
  19333. # Neutralize VPATH when `$srcdir' = `.'.
  19334. # Shell code in configure.ac might set extrasub.
  19335. # FIXME: do we really want to maintain this feature?
  19336. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19337. ac_sed_extra="$ac_vpsub
  19338. $extrasub
  19339. _ACEOF
  19340. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19341. :t
  19342. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19343. s|@configure_input@|$ac_sed_conf_input|;t t
  19344. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19345. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19346. s&@srcdir@&$ac_srcdir&;t t
  19347. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19348. s&@top_srcdir@&$ac_top_srcdir&;t t
  19349. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19350. s&@builddir@&$ac_builddir&;t t
  19351. s&@abs_builddir@&$ac_abs_builddir&;t t
  19352. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19353. s&@INSTALL@&$ac_INSTALL&;t t
  19354. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19355. $ac_datarootdir_hack
  19356. "
  19357. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  19358. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19359. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19360. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  19361. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  19362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19363. which seems to be undefined. Please make sure it is defined." >&5
  19364. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19365. which seems to be undefined. Please make sure it is defined." >&2;}
  19366. rm -f "$tmp/stdin"
  19367. case $ac_file in
  19368. -) cat "$tmp/out" && rm -f "$tmp/out";;
  19369. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  19370. esac \
  19371. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19372. ;;
  19373. :H)
  19374. #
  19375. # CONFIG_HEADER
  19376. #
  19377. if test x"$ac_file" != x-; then
  19378. {
  19379. $as_echo "/* $configure_input */" \
  19380. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  19381. } >"$tmp/config.h" \
  19382. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19383. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  19384. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19385. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19386. else
  19387. rm -f "$ac_file"
  19388. mv "$tmp/config.h" "$ac_file" \
  19389. || as_fn_error "could not create $ac_file" "$LINENO" 5
  19390. fi
  19391. else
  19392. $as_echo "/* $configure_input */" \
  19393. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  19394. || as_fn_error "could not create -" "$LINENO" 5
  19395. fi
  19396. # Compute "$ac_file"'s index in $config_headers.
  19397. _am_arg="$ac_file"
  19398. _am_stamp_count=1
  19399. for _am_header in $config_headers :; do
  19400. case $_am_header in
  19401. $_am_arg | $_am_arg:* )
  19402. break ;;
  19403. * )
  19404. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19405. esac
  19406. done
  19407. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19408. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19409. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19410. X"$_am_arg" : 'X\(//\)$' \| \
  19411. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19412. $as_echo X"$_am_arg" |
  19413. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19414. s//\1/
  19415. q
  19416. }
  19417. /^X\(\/\/\)[^/].*/{
  19418. s//\1/
  19419. q
  19420. }
  19421. /^X\(\/\/\)$/{
  19422. s//\1/
  19423. q
  19424. }
  19425. /^X\(\/\).*/{
  19426. s//\1/
  19427. q
  19428. }
  19429. s/.*/./; q'`/stamp-h$_am_stamp_count
  19430. ;;
  19431. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19432. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19433. ;;
  19434. esac
  19435. case $ac_file$ac_mode in
  19436. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19437. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19438. # are listed without --file. Let's play safe and only enable the eval
  19439. # if we detect the quoting.
  19440. case $CONFIG_FILES in
  19441. *\'*) eval set x "$CONFIG_FILES" ;;
  19442. *) set x $CONFIG_FILES ;;
  19443. esac
  19444. shift
  19445. for mf
  19446. do
  19447. # Strip MF so we end up with the name of the file.
  19448. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19449. # Check whether this is an Automake generated Makefile or not.
  19450. # We used to match only the files named `Makefile.in', but
  19451. # some people rename them; so instead we look at the file content.
  19452. # Grep'ing the first line is not enough: some people post-process
  19453. # each Makefile.in and add a new line on top of each file to say so.
  19454. # Grep'ing the whole file is not good either: AIX grep has a line
  19455. # limit of 2048, but all sed's we know have understand at least 4000.
  19456. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19457. dirpart=`$as_dirname -- "$mf" ||
  19458. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19459. X"$mf" : 'X\(//\)[^/]' \| \
  19460. X"$mf" : 'X\(//\)$' \| \
  19461. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19462. $as_echo X"$mf" |
  19463. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19464. s//\1/
  19465. q
  19466. }
  19467. /^X\(\/\/\)[^/].*/{
  19468. s//\1/
  19469. q
  19470. }
  19471. /^X\(\/\/\)$/{
  19472. s//\1/
  19473. q
  19474. }
  19475. /^X\(\/\).*/{
  19476. s//\1/
  19477. q
  19478. }
  19479. s/.*/./; q'`
  19480. else
  19481. continue
  19482. fi
  19483. # Extract the definition of DEPDIR, am__include, and am__quote
  19484. # from the Makefile without running `make'.
  19485. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19486. test -z "$DEPDIR" && continue
  19487. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19488. test -z "am__include" && continue
  19489. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19490. # When using ansi2knr, U may be empty or an underscore; expand it
  19491. U=`sed -n 's/^U = //p' < "$mf"`
  19492. # Find all dependency output files, they are included files with
  19493. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19494. # simplest approach to changing $(DEPDIR) to its actual value in the
  19495. # expansion.
  19496. for file in `sed -n "
  19497. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19498. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  19499. # Make sure the directory exists.
  19500. test -f "$dirpart/$file" && continue
  19501. fdir=`$as_dirname -- "$file" ||
  19502. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19503. X"$file" : 'X\(//\)[^/]' \| \
  19504. X"$file" : 'X\(//\)$' \| \
  19505. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19506. $as_echo X"$file" |
  19507. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19508. s//\1/
  19509. q
  19510. }
  19511. /^X\(\/\/\)[^/].*/{
  19512. s//\1/
  19513. q
  19514. }
  19515. /^X\(\/\/\)$/{
  19516. s//\1/
  19517. q
  19518. }
  19519. /^X\(\/\).*/{
  19520. s//\1/
  19521. q
  19522. }
  19523. s/.*/./; q'`
  19524. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19525. # echo "creating $dirpart/$file"
  19526. echo '# dummy' > "$dirpart/$file"
  19527. done
  19528. done
  19529. }
  19530. ;;
  19531. "libtool":C)
  19532. # See if we are running on zsh, and set the options which allow our
  19533. # commands through without removal of \ escapes.
  19534. if test -n "${ZSH_VERSION+set}" ; then
  19535. setopt NO_GLOB_SUBST
  19536. fi
  19537. cfgfile="${ofile}T"
  19538. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19539. $RM "$cfgfile"
  19540. cat <<_LT_EOF >> "$cfgfile"
  19541. #! $SHELL
  19542. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19543. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19544. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19545. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19546. #
  19547. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19548. # 2006, 2007, 2008 Free Software Foundation, Inc.
  19549. # Written by Gordon Matzigkeit, 1996
  19550. #
  19551. # This file is part of GNU Libtool.
  19552. #
  19553. # GNU Libtool is free software; you can redistribute it and/or
  19554. # modify it under the terms of the GNU General Public License as
  19555. # published by the Free Software Foundation; either version 2 of
  19556. # the License, or (at your option) any later version.
  19557. #
  19558. # As a special exception to the GNU General Public License,
  19559. # if you distribute this file as part of a program or library that
  19560. # is built using GNU Libtool, you may include this file under the
  19561. # same distribution terms that you use for the rest of that program.
  19562. #
  19563. # GNU Libtool is distributed in the hope that it will be useful,
  19564. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19565. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19566. # GNU General Public License for more details.
  19567. #
  19568. # You should have received a copy of the GNU General Public License
  19569. # along with GNU Libtool; see the file COPYING. If not, a copy
  19570. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19571. # obtained by writing to the Free Software Foundation, Inc.,
  19572. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19573. # The names of the tagged configurations supported by this script.
  19574. available_tags="CXX "
  19575. # ### BEGIN LIBTOOL CONFIG
  19576. # Which release of libtool.m4 was used?
  19577. macro_version=$macro_version
  19578. macro_revision=$macro_revision
  19579. # Whether or not to build shared libraries.
  19580. build_libtool_libs=$enable_shared
  19581. # Whether or not to build static libraries.
  19582. build_old_libs=$enable_static
  19583. # What type of objects to build.
  19584. pic_mode=$pic_mode
  19585. # Whether or not to optimize for fast installation.
  19586. fast_install=$enable_fast_install
  19587. # The host system.
  19588. host_alias=$host_alias
  19589. host=$host
  19590. host_os=$host_os
  19591. # The build system.
  19592. build_alias=$build_alias
  19593. build=$build
  19594. build_os=$build_os
  19595. # A sed program that does not truncate output.
  19596. SED=$lt_SED
  19597. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19598. Xsed="\$SED -e 1s/^X//"
  19599. # A grep program that handles long lines.
  19600. GREP=$lt_GREP
  19601. # An ERE matcher.
  19602. EGREP=$lt_EGREP
  19603. # A literal string matcher.
  19604. FGREP=$lt_FGREP
  19605. # A BSD- or MS-compatible name lister.
  19606. NM=$lt_NM
  19607. # Whether we need soft or hard links.
  19608. LN_S=$lt_LN_S
  19609. # What is the maximum length of a command?
  19610. max_cmd_len=$max_cmd_len
  19611. # Object file suffix (normally "o").
  19612. objext=$ac_objext
  19613. # Executable file suffix (normally "").
  19614. exeext=$exeext
  19615. # whether the shell understands "unset".
  19616. lt_unset=$lt_unset
  19617. # turn spaces into newlines.
  19618. SP2NL=$lt_lt_SP2NL
  19619. # turn newlines into spaces.
  19620. NL2SP=$lt_lt_NL2SP
  19621. # How to create reloadable object files.
  19622. reload_flag=$lt_reload_flag
  19623. reload_cmds=$lt_reload_cmds
  19624. # An object symbol dumper.
  19625. OBJDUMP=$lt_OBJDUMP
  19626. # Method to check whether dependent libraries are shared objects.
  19627. deplibs_check_method=$lt_deplibs_check_method
  19628. # Command to use when deplibs_check_method == "file_magic".
  19629. file_magic_cmd=$lt_file_magic_cmd
  19630. # The archiver.
  19631. AR=$lt_AR
  19632. AR_FLAGS=$lt_AR_FLAGS
  19633. # A symbol stripping program.
  19634. STRIP=$lt_STRIP
  19635. # Commands used to install an old-style archive.
  19636. RANLIB=$lt_RANLIB
  19637. old_postinstall_cmds=$lt_old_postinstall_cmds
  19638. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19639. # A C compiler.
  19640. LTCC=$lt_CC
  19641. # LTCC compiler flags.
  19642. LTCFLAGS=$lt_CFLAGS
  19643. # Take the output of nm and produce a listing of raw symbols and C names.
  19644. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19645. # Transform the output of nm in a proper C declaration.
  19646. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19647. # Transform the output of nm in a C name address pair.
  19648. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19649. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19650. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19651. # The name of the directory that contains temporary libtool files.
  19652. objdir=$objdir
  19653. # Shell to use when invoking shell scripts.
  19654. SHELL=$lt_SHELL
  19655. # An echo program that does not interpret backslashes.
  19656. ECHO=$lt_ECHO
  19657. # Used to examine libraries when file_magic_cmd begins with "file".
  19658. MAGIC_CMD=$MAGIC_CMD
  19659. # Must we lock files when doing compilation?
  19660. need_locks=$lt_need_locks
  19661. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19662. DSYMUTIL=$lt_DSYMUTIL
  19663. # Tool to change global to local symbols on Mac OS X.
  19664. NMEDIT=$lt_NMEDIT
  19665. # Tool to manipulate fat objects and archives on Mac OS X.
  19666. LIPO=$lt_LIPO
  19667. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19668. OTOOL=$lt_OTOOL
  19669. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19670. OTOOL64=$lt_OTOOL64
  19671. # Old archive suffix (normally "a").
  19672. libext=$libext
  19673. # Shared library suffix (normally ".so").
  19674. shrext_cmds=$lt_shrext_cmds
  19675. # The commands to extract the exported symbol list from a shared archive.
  19676. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19677. # Variables whose values should be saved in libtool wrapper scripts and
  19678. # restored at link time.
  19679. variables_saved_for_relink=$lt_variables_saved_for_relink
  19680. # Do we need the "lib" prefix for modules?
  19681. need_lib_prefix=$need_lib_prefix
  19682. # Do we need a version for libraries?
  19683. need_version=$need_version
  19684. # Library versioning type.
  19685. version_type=$version_type
  19686. # Shared library runtime path variable.
  19687. runpath_var=$runpath_var
  19688. # Shared library path variable.
  19689. shlibpath_var=$shlibpath_var
  19690. # Is shlibpath searched before the hard-coded library search path?
  19691. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19692. # Format of library name prefix.
  19693. libname_spec=$lt_libname_spec
  19694. # List of archive names. First name is the real one, the rest are links.
  19695. # The last name is the one that the linker finds with -lNAME
  19696. library_names_spec=$lt_library_names_spec
  19697. # The coded name of the library, if different from the real name.
  19698. soname_spec=$lt_soname_spec
  19699. # Command to use after installation of a shared archive.
  19700. postinstall_cmds=$lt_postinstall_cmds
  19701. # Command to use after uninstallation of a shared archive.
  19702. postuninstall_cmds=$lt_postuninstall_cmds
  19703. # Commands used to finish a libtool library installation in a directory.
  19704. finish_cmds=$lt_finish_cmds
  19705. # As "finish_cmds", except a single script fragment to be evaled but
  19706. # not shown.
  19707. finish_eval=$lt_finish_eval
  19708. # Whether we should hardcode library paths into libraries.
  19709. hardcode_into_libs=$hardcode_into_libs
  19710. # Compile-time system search path for libraries.
  19711. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19712. # Run-time system search path for libraries.
  19713. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19714. # Whether dlopen is supported.
  19715. dlopen_support=$enable_dlopen
  19716. # Whether dlopen of programs is supported.
  19717. dlopen_self=$enable_dlopen_self
  19718. # Whether dlopen of statically linked programs is supported.
  19719. dlopen_self_static=$enable_dlopen_self_static
  19720. # Commands to strip libraries.
  19721. old_striplib=$lt_old_striplib
  19722. striplib=$lt_striplib
  19723. # The linker used to build libraries.
  19724. LD=$lt_LD
  19725. # Commands used to build an old-style archive.
  19726. old_archive_cmds=$lt_old_archive_cmds
  19727. # A language specific compiler.
  19728. CC=$lt_compiler
  19729. # Is the compiler the GNU compiler?
  19730. with_gcc=$GCC
  19731. # Compiler flag to turn off builtin functions.
  19732. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19733. # How to pass a linker flag through the compiler.
  19734. wl=$lt_lt_prog_compiler_wl
  19735. # Additional compiler flags for building library objects.
  19736. pic_flag=$lt_lt_prog_compiler_pic
  19737. # Compiler flag to prevent dynamic linking.
  19738. link_static_flag=$lt_lt_prog_compiler_static
  19739. # Does compiler simultaneously support -c and -o options?
  19740. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19741. # Whether or not to add -lc for building shared libraries.
  19742. build_libtool_need_lc=$archive_cmds_need_lc
  19743. # Whether or not to disallow shared libs when runtime libs are static.
  19744. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19745. # Compiler flag to allow reflexive dlopens.
  19746. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19747. # Compiler flag to generate shared objects directly from archives.
  19748. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19749. # Whether the compiler copes with passing no objects directly.
  19750. compiler_needs_object=$lt_compiler_needs_object
  19751. # Create an old-style archive from a shared archive.
  19752. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19753. # Create a temporary old-style archive to link instead of a shared archive.
  19754. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19755. # Commands used to build a shared archive.
  19756. archive_cmds=$lt_archive_cmds
  19757. archive_expsym_cmds=$lt_archive_expsym_cmds
  19758. # Commands used to build a loadable module if different from building
  19759. # a shared archive.
  19760. module_cmds=$lt_module_cmds
  19761. module_expsym_cmds=$lt_module_expsym_cmds
  19762. # Whether we are building with GNU ld or not.
  19763. with_gnu_ld=$lt_with_gnu_ld
  19764. # Flag that allows shared libraries with undefined symbols to be built.
  19765. allow_undefined_flag=$lt_allow_undefined_flag
  19766. # Flag that enforces no undefined symbols.
  19767. no_undefined_flag=$lt_no_undefined_flag
  19768. # Flag to hardcode \$libdir into a binary during linking.
  19769. # This must work even if \$libdir does not exist
  19770. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19771. # If ld is used when linking, flag to hardcode \$libdir into a binary
  19772. # during linking. This must work even if \$libdir does not exist.
  19773. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  19774. # Whether we need a single "-rpath" flag with a separated argument.
  19775. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19776. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19777. # DIR into the resulting binary.
  19778. hardcode_direct=$hardcode_direct
  19779. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19780. # DIR into the resulting binary and the resulting library dependency is
  19781. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  19782. # library is relocated.
  19783. hardcode_direct_absolute=$hardcode_direct_absolute
  19784. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19785. # into the resulting binary.
  19786. hardcode_minus_L=$hardcode_minus_L
  19787. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19788. # into the resulting binary.
  19789. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19790. # Set to "yes" if building a shared library automatically hardcodes DIR
  19791. # into the library and all subsequent libraries and executables linked
  19792. # against it.
  19793. hardcode_automatic=$hardcode_automatic
  19794. # Set to yes if linker adds runtime paths of dependent libraries
  19795. # to runtime path list.
  19796. inherit_rpath=$inherit_rpath
  19797. # Whether libtool must link a program against all its dependency libraries.
  19798. link_all_deplibs=$link_all_deplibs
  19799. # Fix the shell variable \$srcfile for the compiler.
  19800. fix_srcfile_path=$lt_fix_srcfile_path
  19801. # Set to "yes" if exported symbols are required.
  19802. always_export_symbols=$always_export_symbols
  19803. # The commands to list exported symbols.
  19804. export_symbols_cmds=$lt_export_symbols_cmds
  19805. # Symbols that should not be listed in the preloaded symbols.
  19806. exclude_expsyms=$lt_exclude_expsyms
  19807. # Symbols that must always be exported.
  19808. include_expsyms=$lt_include_expsyms
  19809. # Commands necessary for linking programs (against libraries) with templates.
  19810. prelink_cmds=$lt_prelink_cmds
  19811. # Specify filename containing input files.
  19812. file_list_spec=$lt_file_list_spec
  19813. # How to hardcode a shared library path into an executable.
  19814. hardcode_action=$hardcode_action
  19815. # The directories searched by this compiler when creating a shared library.
  19816. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19817. # Dependencies to place before and after the objects being linked to
  19818. # create a shared library.
  19819. predep_objects=$lt_predep_objects
  19820. postdep_objects=$lt_postdep_objects
  19821. predeps=$lt_predeps
  19822. postdeps=$lt_postdeps
  19823. # The library search path used internally by the compiler when linking
  19824. # a shared library.
  19825. compiler_lib_search_path=$lt_compiler_lib_search_path
  19826. # ### END LIBTOOL CONFIG
  19827. _LT_EOF
  19828. case $host_os in
  19829. aix3*)
  19830. cat <<\_LT_EOF >> "$cfgfile"
  19831. # AIX sometimes has problems with the GCC collect2 program. For some
  19832. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19833. # vanish in a puff of smoke.
  19834. if test "X${COLLECT_NAMES+set}" != Xset; then
  19835. COLLECT_NAMES=
  19836. export COLLECT_NAMES
  19837. fi
  19838. _LT_EOF
  19839. ;;
  19840. esac
  19841. ltmain="$ac_aux_dir/ltmain.sh"
  19842. # We use sed instead of cat because bash on DJGPP gets confused if
  19843. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19844. # text mode, it properly converts lines to CR/LF. This bash problem
  19845. # is reportedly fixed, but why not run on old versions too?
  19846. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  19847. || (rm -f "$cfgfile"; exit 1)
  19848. case $xsi_shell in
  19849. yes)
  19850. cat << \_LT_EOF >> "$cfgfile"
  19851. # func_dirname file append nondir_replacement
  19852. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19853. # otherwise set result to NONDIR_REPLACEMENT.
  19854. func_dirname ()
  19855. {
  19856. case ${1} in
  19857. */*) func_dirname_result="${1%/*}${2}" ;;
  19858. * ) func_dirname_result="${3}" ;;
  19859. esac
  19860. }
  19861. # func_basename file
  19862. func_basename ()
  19863. {
  19864. func_basename_result="${1##*/}"
  19865. }
  19866. # func_dirname_and_basename file append nondir_replacement
  19867. # perform func_basename and func_dirname in a single function
  19868. # call:
  19869. # dirname: Compute the dirname of FILE. If nonempty,
  19870. # add APPEND to the result, otherwise set result
  19871. # to NONDIR_REPLACEMENT.
  19872. # value returned in "$func_dirname_result"
  19873. # basename: Compute filename of FILE.
  19874. # value retuned in "$func_basename_result"
  19875. # Implementation must be kept synchronized with func_dirname
  19876. # and func_basename. For efficiency, we do not delegate to
  19877. # those functions but instead duplicate the functionality here.
  19878. func_dirname_and_basename ()
  19879. {
  19880. case ${1} in
  19881. */*) func_dirname_result="${1%/*}${2}" ;;
  19882. * ) func_dirname_result="${3}" ;;
  19883. esac
  19884. func_basename_result="${1##*/}"
  19885. }
  19886. # func_stripname prefix suffix name
  19887. # strip PREFIX and SUFFIX off of NAME.
  19888. # PREFIX and SUFFIX must not contain globbing or regex special
  19889. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19890. # dot (in which case that matches only a dot).
  19891. func_stripname ()
  19892. {
  19893. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  19894. # positional parameters, so assign one to ordinary parameter first.
  19895. func_stripname_result=${3}
  19896. func_stripname_result=${func_stripname_result#"${1}"}
  19897. func_stripname_result=${func_stripname_result%"${2}"}
  19898. }
  19899. # func_opt_split
  19900. func_opt_split ()
  19901. {
  19902. func_opt_split_opt=${1%%=*}
  19903. func_opt_split_arg=${1#*=}
  19904. }
  19905. # func_lo2o object
  19906. func_lo2o ()
  19907. {
  19908. case ${1} in
  19909. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  19910. *) func_lo2o_result=${1} ;;
  19911. esac
  19912. }
  19913. # func_xform libobj-or-source
  19914. func_xform ()
  19915. {
  19916. func_xform_result=${1%.*}.lo
  19917. }
  19918. # func_arith arithmetic-term...
  19919. func_arith ()
  19920. {
  19921. func_arith_result=$(( $* ))
  19922. }
  19923. # func_len string
  19924. # STRING may not start with a hyphen.
  19925. func_len ()
  19926. {
  19927. func_len_result=${#1}
  19928. }
  19929. _LT_EOF
  19930. ;;
  19931. *) # Bourne compatible functions.
  19932. cat << \_LT_EOF >> "$cfgfile"
  19933. # func_dirname file append nondir_replacement
  19934. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19935. # otherwise set result to NONDIR_REPLACEMENT.
  19936. func_dirname ()
  19937. {
  19938. # Extract subdirectory from the argument.
  19939. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  19940. if test "X$func_dirname_result" = "X${1}"; then
  19941. func_dirname_result="${3}"
  19942. else
  19943. func_dirname_result="$func_dirname_result${2}"
  19944. fi
  19945. }
  19946. # func_basename file
  19947. func_basename ()
  19948. {
  19949. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  19950. }
  19951. # func_stripname prefix suffix name
  19952. # strip PREFIX and SUFFIX off of NAME.
  19953. # PREFIX and SUFFIX must not contain globbing or regex special
  19954. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19955. # dot (in which case that matches only a dot).
  19956. # func_strip_suffix prefix name
  19957. func_stripname ()
  19958. {
  19959. case ${2} in
  19960. .*) func_stripname_result=`$ECHO "X${3}" \
  19961. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  19962. *) func_stripname_result=`$ECHO "X${3}" \
  19963. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  19964. esac
  19965. }
  19966. # sed scripts:
  19967. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  19968. my_sed_long_arg='1s/^-[^=]*=//'
  19969. # func_opt_split
  19970. func_opt_split ()
  19971. {
  19972. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  19973. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  19974. }
  19975. # func_lo2o object
  19976. func_lo2o ()
  19977. {
  19978. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  19979. }
  19980. # func_xform libobj-or-source
  19981. func_xform ()
  19982. {
  19983. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  19984. }
  19985. # func_arith arithmetic-term...
  19986. func_arith ()
  19987. {
  19988. func_arith_result=`expr "$@"`
  19989. }
  19990. # func_len string
  19991. # STRING may not start with a hyphen.
  19992. func_len ()
  19993. {
  19994. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  19995. }
  19996. _LT_EOF
  19997. esac
  19998. case $lt_shell_append in
  19999. yes)
  20000. cat << \_LT_EOF >> "$cfgfile"
  20001. # func_append var value
  20002. # Append VALUE to the end of shell variable VAR.
  20003. func_append ()
  20004. {
  20005. eval "$1+=\$2"
  20006. }
  20007. _LT_EOF
  20008. ;;
  20009. *)
  20010. cat << \_LT_EOF >> "$cfgfile"
  20011. # func_append var value
  20012. # Append VALUE to the end of shell variable VAR.
  20013. func_append ()
  20014. {
  20015. eval "$1=\$$1\$2"
  20016. }
  20017. _LT_EOF
  20018. ;;
  20019. esac
  20020. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  20021. || (rm -f "$cfgfile"; exit 1)
  20022. mv -f "$cfgfile" "$ofile" ||
  20023. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20024. chmod +x "$ofile"
  20025. cat <<_LT_EOF >> "$ofile"
  20026. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20027. # The linker used to build libraries.
  20028. LD=$lt_LD_CXX
  20029. # Commands used to build an old-style archive.
  20030. old_archive_cmds=$lt_old_archive_cmds_CXX
  20031. # A language specific compiler.
  20032. CC=$lt_compiler_CXX
  20033. # Is the compiler the GNU compiler?
  20034. with_gcc=$GCC_CXX
  20035. # Compiler flag to turn off builtin functions.
  20036. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20037. # How to pass a linker flag through the compiler.
  20038. wl=$lt_lt_prog_compiler_wl_CXX
  20039. # Additional compiler flags for building library objects.
  20040. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20041. # Compiler flag to prevent dynamic linking.
  20042. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20043. # Does compiler simultaneously support -c and -o options?
  20044. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20045. # Whether or not to add -lc for building shared libraries.
  20046. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20047. # Whether or not to disallow shared libs when runtime libs are static.
  20048. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20049. # Compiler flag to allow reflexive dlopens.
  20050. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20051. # Compiler flag to generate shared objects directly from archives.
  20052. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20053. # Whether the compiler copes with passing no objects directly.
  20054. compiler_needs_object=$lt_compiler_needs_object_CXX
  20055. # Create an old-style archive from a shared archive.
  20056. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20057. # Create a temporary old-style archive to link instead of a shared archive.
  20058. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20059. # Commands used to build a shared archive.
  20060. archive_cmds=$lt_archive_cmds_CXX
  20061. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20062. # Commands used to build a loadable module if different from building
  20063. # a shared archive.
  20064. module_cmds=$lt_module_cmds_CXX
  20065. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20066. # Whether we are building with GNU ld or not.
  20067. with_gnu_ld=$lt_with_gnu_ld_CXX
  20068. # Flag that allows shared libraries with undefined symbols to be built.
  20069. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20070. # Flag that enforces no undefined symbols.
  20071. no_undefined_flag=$lt_no_undefined_flag_CXX
  20072. # Flag to hardcode \$libdir into a binary during linking.
  20073. # This must work even if \$libdir does not exist
  20074. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20075. # If ld is used when linking, flag to hardcode \$libdir into a binary
  20076. # during linking. This must work even if \$libdir does not exist.
  20077. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  20078. # Whether we need a single "-rpath" flag with a separated argument.
  20079. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20080. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20081. # DIR into the resulting binary.
  20082. hardcode_direct=$hardcode_direct_CXX
  20083. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20084. # DIR into the resulting binary and the resulting library dependency is
  20085. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20086. # library is relocated.
  20087. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20088. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20089. # into the resulting binary.
  20090. hardcode_minus_L=$hardcode_minus_L_CXX
  20091. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20092. # into the resulting binary.
  20093. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20094. # Set to "yes" if building a shared library automatically hardcodes DIR
  20095. # into the library and all subsequent libraries and executables linked
  20096. # against it.
  20097. hardcode_automatic=$hardcode_automatic_CXX
  20098. # Set to yes if linker adds runtime paths of dependent libraries
  20099. # to runtime path list.
  20100. inherit_rpath=$inherit_rpath_CXX
  20101. # Whether libtool must link a program against all its dependency libraries.
  20102. link_all_deplibs=$link_all_deplibs_CXX
  20103. # Fix the shell variable \$srcfile for the compiler.
  20104. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  20105. # Set to "yes" if exported symbols are required.
  20106. always_export_symbols=$always_export_symbols_CXX
  20107. # The commands to list exported symbols.
  20108. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20109. # Symbols that should not be listed in the preloaded symbols.
  20110. exclude_expsyms=$lt_exclude_expsyms_CXX
  20111. # Symbols that must always be exported.
  20112. include_expsyms=$lt_include_expsyms_CXX
  20113. # Commands necessary for linking programs (against libraries) with templates.
  20114. prelink_cmds=$lt_prelink_cmds_CXX
  20115. # Specify filename containing input files.
  20116. file_list_spec=$lt_file_list_spec_CXX
  20117. # How to hardcode a shared library path into an executable.
  20118. hardcode_action=$hardcode_action_CXX
  20119. # The directories searched by this compiler when creating a shared library.
  20120. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20121. # Dependencies to place before and after the objects being linked to
  20122. # create a shared library.
  20123. predep_objects=$lt_predep_objects_CXX
  20124. postdep_objects=$lt_postdep_objects_CXX
  20125. predeps=$lt_predeps_CXX
  20126. postdeps=$lt_postdeps_CXX
  20127. # The library search path used internally by the compiler when linking
  20128. # a shared library.
  20129. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20130. # ### END LIBTOOL TAG CONFIG: CXX
  20131. _LT_EOF
  20132. ;;
  20133. esac
  20134. done # for ac_tag
  20135. as_fn_exit 0
  20136. _ACEOF
  20137. ac_clean_files=$ac_clean_files_save
  20138. test $ac_write_fail = 0 ||
  20139. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20140. # configure is writing to config.log, and then calls config.status.
  20141. # config.status does its own redirection, appending to config.log.
  20142. # Unfortunately, on DOS this fails, as config.log is still kept open
  20143. # by configure, so config.status won't be able to write to it; its
  20144. # output is simply discarded. So we exec the FD to /dev/null,
  20145. # effectively closing config.log, so it can be properly (re)opened and
  20146. # appended to by config.status. When coming back to configure, we
  20147. # need to make the FD available again.
  20148. if test "$no_create" != yes; then
  20149. ac_cs_success=:
  20150. ac_config_status_args=
  20151. test "$silent" = yes &&
  20152. ac_config_status_args="$ac_config_status_args --quiet"
  20153. exec 5>/dev/null
  20154. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20155. exec 5>>config.log
  20156. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20157. # would make configure fail if this is the last instruction.
  20158. $ac_cs_success || as_fn_exit $?
  20159. fi
  20160. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20162. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20163. fi
  20164. # Configuration results
  20165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ##########################################################################
  20166. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  20167. ##########################################################################
  20168. libpcap: ${foundpcap} (${libpcap_version})
  20169. libdnet: ${founddnet} (${libdnet_version})
  20170. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  20171. Use libopts tearoff: ${enable_local_libopts}
  20172. 64bit counter support: ${use64bit_counters}
  20173. tcpdump binary path: ${tcpdump_path}
  20174. tcpreplay edit support: ${tcpreplay_edit}
  20175. fragroute support: ${enable_fragroute}
  20176. tcpbridge support: ${enable_tcpbridge}
  20177. Supported Packet Injection Methods (*):
  20178. Linux PF_PACKET: ${have_pf}
  20179. BSD BPF: ${have_bpf}
  20180. libdnet: ${have_libdnet}
  20181. pcap_inject: ${have_pcap_inject}
  20182. pcap_sendpacket: ${have_pcap_sendpacket} **
  20183. * In order of preference; see configure --help to override
  20184. ** Required for tcpbridge
  20185. " >&5
  20186. $as_echo "##########################################################################
  20187. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  20188. ##########################################################################
  20189. libpcap: ${foundpcap} (${libpcap_version})
  20190. libdnet: ${founddnet} (${libdnet_version})
  20191. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  20192. Use libopts tearoff: ${enable_local_libopts}
  20193. 64bit counter support: ${use64bit_counters}
  20194. tcpdump binary path: ${tcpdump_path}
  20195. tcpreplay edit support: ${tcpreplay_edit}
  20196. fragroute support: ${enable_fragroute}
  20197. tcpbridge support: ${enable_tcpbridge}
  20198. Supported Packet Injection Methods (*):
  20199. Linux PF_PACKET: ${have_pf}
  20200. BSD BPF: ${have_bpf}
  20201. libdnet: ${have_libdnet}
  20202. pcap_inject: ${have_pcap_inject}
  20203. pcap_sendpacket: ${have_pcap_sendpacket} **
  20204. * In order of preference; see configure --help to override
  20205. ** Required for tcpbridge
  20206. " >&6; }
  20207. case $host in
  20208. *-apple-darwin*)
  20209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  20210. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  20211. $as_echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  20212. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  20213. ;;
  20214. *-*-cygwin)
  20215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/Cygwin support is still somewhat experimental.
  20216. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&5
  20217. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  20218. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&2;}
  20219. ;;
  20220. esac