configure 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  512. echo_test_string=`eval $cmd` &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME=
  628. PACKAGE_TARNAME=
  629. PACKAGE_VERSION=
  630. PACKAGE_STRING=
  631. PACKAGE_BUGREPORT=
  632. ac_unique_file="tcpreplay"
  633. ac_unique_file="src/tcpreplay.c"
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. MAINTAINER_MODE_TRUE
  707. MAINTAINER_MODE_FALSE
  708. MAINT
  709. TCPREPLAY_VERSION
  710. TCPREPLAY_RELEASE
  711. build
  712. build_cpu
  713. build_vendor
  714. build_os
  715. host
  716. host_cpu
  717. host_vendor
  718. host_os
  719. target
  720. target_cpu
  721. target_vendor
  722. target_os
  723. INSTALL_PROGRAM
  724. INSTALL_SCRIPT
  725. INSTALL_DATA
  726. am__isrc
  727. CYGPATH_W
  728. PACKAGE
  729. VERSION
  730. ACLOCAL
  731. AUTOCONF
  732. AUTOMAKE
  733. AUTOHEADER
  734. MAKEINFO
  735. install_sh
  736. STRIP
  737. INSTALL_STRIP_PROGRAM
  738. mkdir_p
  739. AWK
  740. SET_MAKE
  741. am__leading_dot
  742. AMTAR
  743. am__tar
  744. am__untar
  745. CC
  746. CFLAGS
  747. LDFLAGS
  748. CPPFLAGS
  749. ac_ct_CC
  750. EXEEXT
  751. OBJEXT
  752. DEPDIR
  753. am__include
  754. am__quote
  755. AMDEP_TRUE
  756. AMDEP_FALSE
  757. AMDEPBACKSLASH
  758. CCDEPMODE
  759. am__fastdepCC_TRUE
  760. am__fastdepCC_FALSE
  761. SED
  762. GREP
  763. EGREP
  764. LN_S
  765. ECHO
  766. AR
  767. RANLIB
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. ac_ct_CXX
  772. CXXDEPMODE
  773. am__fastdepCXX_TRUE
  774. am__fastdepCXX_FALSE
  775. CXXCPP
  776. F77
  777. FFLAGS
  778. ac_ct_F77
  779. LIBTOOL
  780. PRINTF
  781. AUTOGEN
  782. LIBOBJS
  783. SYSTEM_STRLCPY_TRUE
  784. SYSTEM_STRLCPY_FALSE
  785. WORDS_BIGENDIAN_TRUE
  786. WORDS_BIGENDIAN_FALSE
  787. debug_flag
  788. ENABLE_TCPREPLAY_EDIT_TRUE
  789. ENABLE_TCPREPLAY_EDIT_FALSE
  790. ENABLE_FLOWREPLAY_TRUE
  791. ENABLE_FLOWREPLAY_FALSE
  792. LNETINC
  793. LNETLIB
  794. LPCAPINC
  795. LPCAPLIB
  796. PCAP_BPF_H_FILE
  797. pcncfg
  798. LNAVLIB
  799. LNAV_CFLAGS
  800. tcpdump_path
  801. ENABLE_TCPDUMP_TRUE
  802. ENABLE_TCPDUMP_FALSE
  803. nic1
  804. nic2
  805. LIBOPTS_DIR
  806. INSTALL_LIBOPTS_TRUE
  807. INSTALL_LIBOPTS_FALSE
  808. NEED_LIBOPTS_TRUE
  809. NEED_LIBOPTS_FALSE
  810. LIBOPTS_LDADD
  811. LIBOPTS_CFLAGS
  812. LTLIBOBJS'
  813. ac_subst_files=''
  814. ac_precious_vars='build_alias
  815. host_alias
  816. target_alias
  817. CC
  818. CFLAGS
  819. LDFLAGS
  820. LIBS
  821. CPPFLAGS
  822. CPP
  823. CXX
  824. CXXFLAGS
  825. CCC
  826. CXXCPP
  827. F77
  828. FFLAGS'
  829. # Initialize some variables set by options.
  830. ac_init_help=
  831. ac_init_version=false
  832. # The variables have the same names as the options, with
  833. # dashes changed to underlines.
  834. cache_file=/dev/null
  835. exec_prefix=NONE
  836. no_create=
  837. no_recursion=
  838. prefix=NONE
  839. program_prefix=NONE
  840. program_suffix=NONE
  841. program_transform_name=s,x,x,
  842. silent=
  843. site=
  844. srcdir=
  845. verbose=
  846. x_includes=NONE
  847. x_libraries=NONE
  848. # Installation directory options.
  849. # These are left unexpanded so users can "make install exec_prefix=/foo"
  850. # and all the variables that are supposed to be based on exec_prefix
  851. # by default will actually change.
  852. # Use braces instead of parens because sh, perl, etc. also accept them.
  853. # (The list follows the same order as the GNU Coding Standards.)
  854. bindir='${exec_prefix}/bin'
  855. sbindir='${exec_prefix}/sbin'
  856. libexecdir='${exec_prefix}/libexec'
  857. datarootdir='${prefix}/share'
  858. datadir='${datarootdir}'
  859. sysconfdir='${prefix}/etc'
  860. sharedstatedir='${prefix}/com'
  861. localstatedir='${prefix}/var'
  862. includedir='${prefix}/include'
  863. oldincludedir='/usr/include'
  864. docdir='${datarootdir}/doc/${PACKAGE}'
  865. infodir='${datarootdir}/info'
  866. htmldir='${docdir}'
  867. dvidir='${docdir}'
  868. pdfdir='${docdir}'
  869. psdir='${docdir}'
  870. libdir='${exec_prefix}/lib'
  871. localedir='${datarootdir}/locale'
  872. mandir='${datarootdir}/man'
  873. ac_prev=
  874. ac_dashdash=
  875. for ac_option
  876. do
  877. # If the previous option needs an argument, assign it.
  878. if test -n "$ac_prev"; then
  879. eval $ac_prev=\$ac_option
  880. ac_prev=
  881. continue
  882. fi
  883. case $ac_option in
  884. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  885. *) ac_optarg=yes ;;
  886. esac
  887. # Accept the important Cygnus configure options, so we can diagnose typos.
  888. case $ac_dashdash$ac_option in
  889. --)
  890. ac_dashdash=yes ;;
  891. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  892. ac_prev=bindir ;;
  893. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  894. bindir=$ac_optarg ;;
  895. -build | --build | --buil | --bui | --bu)
  896. ac_prev=build_alias ;;
  897. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  898. build_alias=$ac_optarg ;;
  899. -cache-file | --cache-file | --cache-fil | --cache-fi \
  900. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  901. ac_prev=cache_file ;;
  902. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  903. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  904. cache_file=$ac_optarg ;;
  905. --config-cache | -C)
  906. cache_file=config.cache ;;
  907. -datadir | --datadir | --datadi | --datad)
  908. ac_prev=datadir ;;
  909. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  910. datadir=$ac_optarg ;;
  911. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  912. | --dataroo | --dataro | --datar)
  913. ac_prev=datarootdir ;;
  914. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  915. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  916. datarootdir=$ac_optarg ;;
  917. -disable-* | --disable-*)
  918. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  921. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  922. { (exit 1); exit 1; }; }
  923. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  924. eval enable_$ac_feature=no ;;
  925. -docdir | --docdir | --docdi | --doc | --do)
  926. ac_prev=docdir ;;
  927. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  928. docdir=$ac_optarg ;;
  929. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  930. ac_prev=dvidir ;;
  931. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  932. dvidir=$ac_optarg ;;
  933. -enable-* | --enable-*)
  934. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  937. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  938. { (exit 1); exit 1; }; }
  939. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  940. eval enable_$ac_feature=\$ac_optarg ;;
  941. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  942. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  943. | --exec | --exe | --ex)
  944. ac_prev=exec_prefix ;;
  945. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  946. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  947. | --exec=* | --exe=* | --ex=*)
  948. exec_prefix=$ac_optarg ;;
  949. -gas | --gas | --ga | --g)
  950. # Obsolete; use --with-gas.
  951. with_gas=yes ;;
  952. -help | --help | --hel | --he | -h)
  953. ac_init_help=long ;;
  954. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  955. ac_init_help=recursive ;;
  956. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  957. ac_init_help=short ;;
  958. -host | --host | --hos | --ho)
  959. ac_prev=host_alias ;;
  960. -host=* | --host=* | --hos=* | --ho=*)
  961. host_alias=$ac_optarg ;;
  962. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  963. ac_prev=htmldir ;;
  964. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  965. | --ht=*)
  966. htmldir=$ac_optarg ;;
  967. -includedir | --includedir | --includedi | --included | --include \
  968. | --includ | --inclu | --incl | --inc)
  969. ac_prev=includedir ;;
  970. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  971. | --includ=* | --inclu=* | --incl=* | --inc=*)
  972. includedir=$ac_optarg ;;
  973. -infodir | --infodir | --infodi | --infod | --info | --inf)
  974. ac_prev=infodir ;;
  975. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  976. infodir=$ac_optarg ;;
  977. -libdir | --libdir | --libdi | --libd)
  978. ac_prev=libdir ;;
  979. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  980. libdir=$ac_optarg ;;
  981. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  982. | --libexe | --libex | --libe)
  983. ac_prev=libexecdir ;;
  984. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  985. | --libexe=* | --libex=* | --libe=*)
  986. libexecdir=$ac_optarg ;;
  987. -localedir | --localedir | --localedi | --localed | --locale)
  988. ac_prev=localedir ;;
  989. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  990. localedir=$ac_optarg ;;
  991. -localstatedir | --localstatedir | --localstatedi | --localstated \
  992. | --localstate | --localstat | --localsta | --localst | --locals)
  993. ac_prev=localstatedir ;;
  994. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  995. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  996. localstatedir=$ac_optarg ;;
  997. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  998. ac_prev=mandir ;;
  999. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1000. mandir=$ac_optarg ;;
  1001. -nfp | --nfp | --nf)
  1002. # Obsolete; use --without-fp.
  1003. with_fp=no ;;
  1004. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1005. | --no-cr | --no-c | -n)
  1006. no_create=yes ;;
  1007. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1008. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1009. no_recursion=yes ;;
  1010. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1011. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1012. | --oldin | --oldi | --old | --ol | --o)
  1013. ac_prev=oldincludedir ;;
  1014. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1015. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1016. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1017. oldincludedir=$ac_optarg ;;
  1018. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1019. ac_prev=prefix ;;
  1020. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1021. prefix=$ac_optarg ;;
  1022. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1023. | --program-pre | --program-pr | --program-p)
  1024. ac_prev=program_prefix ;;
  1025. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1026. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1027. program_prefix=$ac_optarg ;;
  1028. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1029. | --program-suf | --program-su | --program-s)
  1030. ac_prev=program_suffix ;;
  1031. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1032. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1033. program_suffix=$ac_optarg ;;
  1034. -program-transform-name | --program-transform-name \
  1035. | --program-transform-nam | --program-transform-na \
  1036. | --program-transform-n | --program-transform- \
  1037. | --program-transform | --program-transfor \
  1038. | --program-transfo | --program-transf \
  1039. | --program-trans | --program-tran \
  1040. | --progr-tra | --program-tr | --program-t)
  1041. ac_prev=program_transform_name ;;
  1042. -program-transform-name=* | --program-transform-name=* \
  1043. | --program-transform-nam=* | --program-transform-na=* \
  1044. | --program-transform-n=* | --program-transform-=* \
  1045. | --program-transform=* | --program-transfor=* \
  1046. | --program-transfo=* | --program-transf=* \
  1047. | --program-trans=* | --program-tran=* \
  1048. | --progr-tra=* | --program-tr=* | --program-t=*)
  1049. program_transform_name=$ac_optarg ;;
  1050. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1051. ac_prev=pdfdir ;;
  1052. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1053. pdfdir=$ac_optarg ;;
  1054. -psdir | --psdir | --psdi | --psd | --ps)
  1055. ac_prev=psdir ;;
  1056. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1057. psdir=$ac_optarg ;;
  1058. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1059. | -silent | --silent | --silen | --sile | --sil)
  1060. silent=yes ;;
  1061. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1062. ac_prev=sbindir ;;
  1063. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1064. | --sbi=* | --sb=*)
  1065. sbindir=$ac_optarg ;;
  1066. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1067. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1068. | --sharedst | --shareds | --shared | --share | --shar \
  1069. | --sha | --sh)
  1070. ac_prev=sharedstatedir ;;
  1071. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1072. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1073. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1074. | --sha=* | --sh=*)
  1075. sharedstatedir=$ac_optarg ;;
  1076. -site | --site | --sit)
  1077. ac_prev=site ;;
  1078. -site=* | --site=* | --sit=*)
  1079. site=$ac_optarg ;;
  1080. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1081. ac_prev=srcdir ;;
  1082. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1083. srcdir=$ac_optarg ;;
  1084. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1085. | --syscon | --sysco | --sysc | --sys | --sy)
  1086. ac_prev=sysconfdir ;;
  1087. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1088. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1089. sysconfdir=$ac_optarg ;;
  1090. -target | --target | --targe | --targ | --tar | --ta | --t)
  1091. ac_prev=target_alias ;;
  1092. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1093. target_alias=$ac_optarg ;;
  1094. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1095. verbose=yes ;;
  1096. -version | --version | --versio | --versi | --vers | -V)
  1097. ac_init_version=: ;;
  1098. -with-* | --with-*)
  1099. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1103. { (exit 1); exit 1; }; }
  1104. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1105. eval with_$ac_package=\$ac_optarg ;;
  1106. -without-* | --without-*)
  1107. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1111. { (exit 1); exit 1; }; }
  1112. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1113. eval with_$ac_package=no ;;
  1114. --x)
  1115. # Obsolete; use --with-x.
  1116. with_x=yes ;;
  1117. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1118. | --x-incl | --x-inc | --x-in | --x-i)
  1119. ac_prev=x_includes ;;
  1120. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1121. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1122. x_includes=$ac_optarg ;;
  1123. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1124. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1125. ac_prev=x_libraries ;;
  1126. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1127. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1128. x_libraries=$ac_optarg ;;
  1129. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1130. Try \`$0 --help' for more information." >&2
  1131. { (exit 1); exit 1; }; }
  1132. ;;
  1133. *=*)
  1134. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1135. # Reject names that are not valid shell variable names.
  1136. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1137. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1138. { (exit 1); exit 1; }; }
  1139. eval $ac_envvar=\$ac_optarg
  1140. export $ac_envvar ;;
  1141. *)
  1142. # FIXME: should be removed in autoconf 3.0.
  1143. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1144. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1145. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1146. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1147. ;;
  1148. esac
  1149. done
  1150. if test -n "$ac_prev"; then
  1151. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1152. { echo "$as_me: error: missing argument to $ac_option" >&2
  1153. { (exit 1); exit 1; }; }
  1154. fi
  1155. # Be sure to have absolute directory names.
  1156. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1157. datadir sysconfdir sharedstatedir localstatedir includedir \
  1158. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1159. libdir localedir mandir
  1160. do
  1161. eval ac_val=\$$ac_var
  1162. case $ac_val in
  1163. [\\/$]* | ?:[\\/]* ) continue;;
  1164. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1165. esac
  1166. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1167. { (exit 1); exit 1; }; }
  1168. done
  1169. # There might be people who depend on the old broken behavior: `$host'
  1170. # used to hold the argument of --host etc.
  1171. # FIXME: To remove some day.
  1172. build=$build_alias
  1173. host=$host_alias
  1174. target=$target_alias
  1175. # FIXME: To remove some day.
  1176. if test "x$host_alias" != x; then
  1177. if test "x$build_alias" = x; then
  1178. cross_compiling=maybe
  1179. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1180. If a cross compiler is detected then cross compile mode will be used." >&2
  1181. elif test "x$build_alias" != "x$host_alias"; then
  1182. cross_compiling=yes
  1183. fi
  1184. fi
  1185. ac_tool_prefix=
  1186. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1187. test "$silent" = yes && exec 6>/dev/null
  1188. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1189. ac_ls_di=`ls -di .` &&
  1190. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1191. { echo "$as_me: error: Working directory cannot be determined" >&2
  1192. { (exit 1); exit 1; }; }
  1193. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1194. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1195. { (exit 1); exit 1; }; }
  1196. # Find the source files, if location was not specified.
  1197. if test -z "$srcdir"; then
  1198. ac_srcdir_defaulted=yes
  1199. # Try the directory containing this script, then the parent directory.
  1200. ac_confdir=`$as_dirname -- "$0" ||
  1201. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1202. X"$0" : 'X\(//\)[^/]' \| \
  1203. X"$0" : 'X\(//\)$' \| \
  1204. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1205. echo X"$0" |
  1206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1207. s//\1/
  1208. q
  1209. }
  1210. /^X\(\/\/\)[^/].*/{
  1211. s//\1/
  1212. q
  1213. }
  1214. /^X\(\/\/\)$/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\).*/{
  1219. s//\1/
  1220. q
  1221. }
  1222. s/.*/./; q'`
  1223. srcdir=$ac_confdir
  1224. if test ! -r "$srcdir/$ac_unique_file"; then
  1225. srcdir=..
  1226. fi
  1227. else
  1228. ac_srcdir_defaulted=no
  1229. fi
  1230. if test ! -r "$srcdir/$ac_unique_file"; then
  1231. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1232. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1233. { (exit 1); exit 1; }; }
  1234. fi
  1235. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1236. ac_abs_confdir=`(
  1237. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1238. { (exit 1); exit 1; }; }
  1239. pwd)`
  1240. # When building in place, set srcdir=.
  1241. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1242. srcdir=.
  1243. fi
  1244. # Remove unnecessary trailing slashes from srcdir.
  1245. # Double slashes in file names in object file debugging info
  1246. # mess up M-x gdb in Emacs.
  1247. case $srcdir in
  1248. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1249. esac
  1250. for ac_var in $ac_precious_vars; do
  1251. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_env_${ac_var}_value=\$${ac_var}
  1253. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1254. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1255. done
  1256. #
  1257. # Report the --help message.
  1258. #
  1259. if test "$ac_init_help" = "long"; then
  1260. # Omit some internal or obsolete options to make the list less imposing.
  1261. # This message is too long to be a string in the A/UX 3.1 sh.
  1262. cat <<_ACEOF
  1263. \`configure' configures this package to adapt to many kinds of systems.
  1264. Usage: $0 [OPTION]... [VAR=VALUE]...
  1265. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1266. VAR=VALUE. See below for descriptions of some of the useful variables.
  1267. Defaults for the options are specified in brackets.
  1268. Configuration:
  1269. -h, --help display this help and exit
  1270. --help=short display options specific to this package
  1271. --help=recursive display the short help of all the included packages
  1272. -V, --version display version information and exit
  1273. -q, --quiet, --silent do not print \`checking...' messages
  1274. --cache-file=FILE cache test results in FILE [disabled]
  1275. -C, --config-cache alias for \`--cache-file=config.cache'
  1276. -n, --no-create do not create output files
  1277. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1278. Installation directories:
  1279. --prefix=PREFIX install architecture-independent files in PREFIX
  1280. [$ac_default_prefix]
  1281. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1282. [PREFIX]
  1283. By default, \`make install' will install all the files in
  1284. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1285. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1286. for instance \`--prefix=\$HOME'.
  1287. For better control, use the options below.
  1288. Fine tuning of the installation directories:
  1289. --bindir=DIR user executables [EPREFIX/bin]
  1290. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1291. --libexecdir=DIR program executables [EPREFIX/libexec]
  1292. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1293. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1294. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1295. --libdir=DIR object code libraries [EPREFIX/lib]
  1296. --includedir=DIR C header files [PREFIX/include]
  1297. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1298. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1299. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1300. --infodir=DIR info documentation [DATAROOTDIR/info]
  1301. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1302. --mandir=DIR man documentation [DATAROOTDIR/man]
  1303. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1304. --htmldir=DIR html documentation [DOCDIR]
  1305. --dvidir=DIR dvi documentation [DOCDIR]
  1306. --pdfdir=DIR pdf documentation [DOCDIR]
  1307. --psdir=DIR ps documentation [DOCDIR]
  1308. _ACEOF
  1309. cat <<\_ACEOF
  1310. Program names:
  1311. --program-prefix=PREFIX prepend PREFIX to installed program names
  1312. --program-suffix=SUFFIX append SUFFIX to installed program names
  1313. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1314. System types:
  1315. --build=BUILD configure for building on BUILD [guessed]
  1316. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1317. --target=TARGET configure for building compilers for TARGET [HOST]
  1318. _ACEOF
  1319. fi
  1320. if test -n "$ac_init_help"; then
  1321. cat <<\_ACEOF
  1322. Optional Features:
  1323. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1324. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1325. --enable-maintainer-mode enable make rules and dependencies not useful
  1326. (and sometimes confusing) to the casual installer
  1327. --enable-shared[=PKGS] build shared libraries [default=yes]
  1328. --enable-static[=PKGS] build static libraries [default=yes]
  1329. --enable-fast-install[=PKGS]
  1330. optimize for fast installation [default=yes]
  1331. --disable-dependency-tracking speeds up one-time build
  1332. --enable-dependency-tracking do not reject slow dependency extractors
  1333. --disable-libtool-lock avoid locking (might break parallel builds)
  1334. --disable-largefile omit support for large files
  1335. --enable-debug Enable debugging code and support for the -d option
  1336. --enable-pedantic Enable gcc's -pedantic option
  1337. --enable-efence Enable Electric Fence memory debugger
  1338. --enable-gprof Enable GNU Profiler
  1339. --disable-64bits Do not use 64bit packet counters
  1340. --enable-force-bpf Force using BPF for sending packets
  1341. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1342. --enable-force-libnet Force using libnet for sending packets
  1343. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1344. packets
  1345. --enable-force-sendpacket
  1346. Force using libpcap's pcap_sendpacket() for sending
  1347. packets
  1348. --enable-tcpreplay-edit Link packet editing code with tcpreplay
  1349. --enable-dynamic-link Dynamically link libraries
  1350. --enable-flowreplay Enable building flowreplay (alpha)
  1351. --enable-libnet Enable using the libnet 1.1.x library (deprecated)
  1352. --enable-local-libopts Force using the supplied libopts tearoff code
  1353. --disable-libopts-install
  1354. Do not install libopts with client installation
  1355. --disable-optional-args not wanting optional option args
  1356. Optional Packages:
  1357. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1358. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1359. --with-dmalloc use dmalloc, as in
  1360. http://www.dmalloc.com/dmalloc.tar.gz
  1361. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1362. --with-pic try to use only PIC/non-PIC objects [default=use
  1363. both]
  1364. --with-tags[=TAGS] include additional configurations [automatic]
  1365. --with-libnet=DIR Use libnet in DIR
  1366. --with-libpcap=DIR Use libpcap in DIR
  1367. --with-pcapnav-config=FILE
  1368. Use given pcapnav-config
  1369. --with-tcpdump=FILE Path to tcpdump binary
  1370. --with-testnic=NIC Select which network card to use for testing
  1371. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1372. testing
  1373. --with-autoopts-config specify the config-info script
  1374. --with-regex-header a reg expr header is specified
  1375. --with-libregex libregex installation prefix
  1376. --with-libregex-cflags libregex compile flags
  1377. --with-libregex-libs libregex link command arguments
  1378. Some influential environment variables:
  1379. CC C compiler command
  1380. CFLAGS C compiler flags
  1381. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1382. nonstandard directory <lib dir>
  1383. LIBS libraries to pass to the linker, e.g. -l<library>
  1384. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1385. you have headers in a nonstandard directory <include dir>
  1386. CPP C preprocessor
  1387. CXX C++ compiler command
  1388. CXXFLAGS C++ compiler flags
  1389. CXXCPP C++ preprocessor
  1390. F77 Fortran 77 compiler command
  1391. FFLAGS Fortran 77 compiler flags
  1392. Use these variables to override the choices made by `configure' or to help
  1393. it to find libraries and programs with nonstandard names/locations.
  1394. _ACEOF
  1395. ac_status=$?
  1396. fi
  1397. if test "$ac_init_help" = "recursive"; then
  1398. # If there are subdirs, report their specific --help.
  1399. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1400. test -d "$ac_dir" || continue
  1401. ac_builddir=.
  1402. case "$ac_dir" in
  1403. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *)
  1405. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1406. # A ".." for each directory in $ac_dir_suffix.
  1407. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1408. case $ac_top_builddir_sub in
  1409. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1410. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1411. esac ;;
  1412. esac
  1413. ac_abs_top_builddir=$ac_pwd
  1414. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1415. # for backward compatibility:
  1416. ac_top_builddir=$ac_top_build_prefix
  1417. case $srcdir in
  1418. .) # We are building in place.
  1419. ac_srcdir=.
  1420. ac_top_srcdir=$ac_top_builddir_sub
  1421. ac_abs_top_srcdir=$ac_pwd ;;
  1422. [\\/]* | ?:[\\/]* ) # Absolute name.
  1423. ac_srcdir=$srcdir$ac_dir_suffix;
  1424. ac_top_srcdir=$srcdir
  1425. ac_abs_top_srcdir=$srcdir ;;
  1426. *) # Relative name.
  1427. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1428. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1429. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1430. esac
  1431. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1432. cd "$ac_dir" || { ac_status=$?; continue; }
  1433. # Check for guested configure.
  1434. if test -f "$ac_srcdir/configure.gnu"; then
  1435. echo &&
  1436. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1437. elif test -f "$ac_srcdir/configure"; then
  1438. echo &&
  1439. $SHELL "$ac_srcdir/configure" --help=recursive
  1440. else
  1441. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1442. fi || ac_status=$?
  1443. cd "$ac_pwd" || { ac_status=$?; break; }
  1444. done
  1445. fi
  1446. test -n "$ac_init_help" && exit $ac_status
  1447. if $ac_init_version; then
  1448. cat <<\_ACEOF
  1449. configure
  1450. generated by GNU Autoconf 2.61
  1451. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1452. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1453. This configure script is free software; the Free Software Foundation
  1454. gives unlimited permission to copy, distribute and modify it.
  1455. _ACEOF
  1456. exit
  1457. fi
  1458. cat >config.log <<_ACEOF
  1459. This file contains any messages produced by compilers while
  1460. running configure, to aid debugging if configure makes a mistake.
  1461. It was created by $as_me, which was
  1462. generated by GNU Autoconf 2.61. Invocation command line was
  1463. $ $0 $@
  1464. _ACEOF
  1465. exec 5>>config.log
  1466. {
  1467. cat <<_ASUNAME
  1468. ## --------- ##
  1469. ## Platform. ##
  1470. ## --------- ##
  1471. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1472. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1473. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1474. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1475. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1476. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1477. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1478. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1479. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1480. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1481. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1482. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1483. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1484. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1485. _ASUNAME
  1486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1487. for as_dir in $PATH
  1488. do
  1489. IFS=$as_save_IFS
  1490. test -z "$as_dir" && as_dir=.
  1491. echo "PATH: $as_dir"
  1492. done
  1493. IFS=$as_save_IFS
  1494. } >&5
  1495. cat >&5 <<_ACEOF
  1496. ## ----------- ##
  1497. ## Core tests. ##
  1498. ## ----------- ##
  1499. _ACEOF
  1500. # Keep a trace of the command line.
  1501. # Strip out --no-create and --no-recursion so they do not pile up.
  1502. # Strip out --silent because we don't want to record it for future runs.
  1503. # Also quote any args containing shell meta-characters.
  1504. # Make two passes to allow for proper duplicate-argument suppression.
  1505. ac_configure_args=
  1506. ac_configure_args0=
  1507. ac_configure_args1=
  1508. ac_must_keep_next=false
  1509. for ac_pass in 1 2
  1510. do
  1511. for ac_arg
  1512. do
  1513. case $ac_arg in
  1514. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1515. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1516. | -silent | --silent | --silen | --sile | --sil)
  1517. continue ;;
  1518. *\'*)
  1519. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1520. esac
  1521. case $ac_pass in
  1522. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1523. 2)
  1524. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1525. if test $ac_must_keep_next = true; then
  1526. ac_must_keep_next=false # Got value, back to normal.
  1527. else
  1528. case $ac_arg in
  1529. *=* | --config-cache | -C | -disable-* | --disable-* \
  1530. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1531. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1532. | -with-* | --with-* | -without-* | --without-* | --x)
  1533. case "$ac_configure_args0 " in
  1534. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1535. esac
  1536. ;;
  1537. -* ) ac_must_keep_next=true ;;
  1538. esac
  1539. fi
  1540. ac_configure_args="$ac_configure_args '$ac_arg'"
  1541. ;;
  1542. esac
  1543. done
  1544. done
  1545. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1546. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1547. # When interrupted or exit'd, cleanup temporary files, and complete
  1548. # config.log. We remove comments because anyway the quotes in there
  1549. # would cause problems or look ugly.
  1550. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1551. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1552. trap 'exit_status=$?
  1553. # Save into config.log some information that might help in debugging.
  1554. {
  1555. echo
  1556. cat <<\_ASBOX
  1557. ## ---------------- ##
  1558. ## Cache variables. ##
  1559. ## ---------------- ##
  1560. _ASBOX
  1561. echo
  1562. # The following way of writing the cache mishandles newlines in values,
  1563. (
  1564. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1565. eval ac_val=\$$ac_var
  1566. case $ac_val in #(
  1567. *${as_nl}*)
  1568. case $ac_var in #(
  1569. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1570. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1571. esac
  1572. case $ac_var in #(
  1573. _ | IFS | as_nl) ;; #(
  1574. *) $as_unset $ac_var ;;
  1575. esac ;;
  1576. esac
  1577. done
  1578. (set) 2>&1 |
  1579. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1580. *${as_nl}ac_space=\ *)
  1581. sed -n \
  1582. "s/'\''/'\''\\\\'\'''\''/g;
  1583. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1584. ;; #(
  1585. *)
  1586. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1587. ;;
  1588. esac |
  1589. sort
  1590. )
  1591. echo
  1592. cat <<\_ASBOX
  1593. ## ----------------- ##
  1594. ## Output variables. ##
  1595. ## ----------------- ##
  1596. _ASBOX
  1597. echo
  1598. for ac_var in $ac_subst_vars
  1599. do
  1600. eval ac_val=\$$ac_var
  1601. case $ac_val in
  1602. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1603. esac
  1604. echo "$ac_var='\''$ac_val'\''"
  1605. done | sort
  1606. echo
  1607. if test -n "$ac_subst_files"; then
  1608. cat <<\_ASBOX
  1609. ## ------------------- ##
  1610. ## File substitutions. ##
  1611. ## ------------------- ##
  1612. _ASBOX
  1613. echo
  1614. for ac_var in $ac_subst_files
  1615. do
  1616. eval ac_val=\$$ac_var
  1617. case $ac_val in
  1618. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1619. esac
  1620. echo "$ac_var='\''$ac_val'\''"
  1621. done | sort
  1622. echo
  1623. fi
  1624. if test -s confdefs.h; then
  1625. cat <<\_ASBOX
  1626. ## ----------- ##
  1627. ## confdefs.h. ##
  1628. ## ----------- ##
  1629. _ASBOX
  1630. echo
  1631. cat confdefs.h
  1632. echo
  1633. fi
  1634. test "$ac_signal" != 0 &&
  1635. echo "$as_me: caught signal $ac_signal"
  1636. echo "$as_me: exit $exit_status"
  1637. } >&5
  1638. rm -f core *.core core.conftest.* &&
  1639. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1640. exit $exit_status
  1641. ' 0
  1642. for ac_signal in 1 2 13 15; do
  1643. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1644. done
  1645. ac_signal=0
  1646. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1647. rm -f -r conftest* confdefs.h
  1648. # Predefined preprocessor variables.
  1649. cat >>confdefs.h <<_ACEOF
  1650. #define PACKAGE_NAME "$PACKAGE_NAME"
  1651. _ACEOF
  1652. cat >>confdefs.h <<_ACEOF
  1653. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1654. _ACEOF
  1655. cat >>confdefs.h <<_ACEOF
  1656. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1657. _ACEOF
  1658. cat >>confdefs.h <<_ACEOF
  1659. #define PACKAGE_STRING "$PACKAGE_STRING"
  1660. _ACEOF
  1661. cat >>confdefs.h <<_ACEOF
  1662. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1663. _ACEOF
  1664. # Let the site file select an alternate cache file if it wants to.
  1665. # Prefer explicitly selected file to automatically selected ones.
  1666. if test -n "$CONFIG_SITE"; then
  1667. set x "$CONFIG_SITE"
  1668. elif test "x$prefix" != xNONE; then
  1669. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1670. else
  1671. set x "$ac_default_prefix/share/config.site" \
  1672. "$ac_default_prefix/etc/config.site"
  1673. fi
  1674. shift
  1675. for ac_site_file
  1676. do
  1677. if test -r "$ac_site_file"; then
  1678. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1679. echo "$as_me: loading site script $ac_site_file" >&6;}
  1680. sed 's/^/| /' "$ac_site_file" >&5
  1681. . "$ac_site_file"
  1682. fi
  1683. done
  1684. if test -r "$cache_file"; then
  1685. # Some versions of bash will fail to source /dev/null (special
  1686. # files actually), so we avoid doing that.
  1687. if test -f "$cache_file"; then
  1688. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1689. echo "$as_me: loading cache $cache_file" >&6;}
  1690. case $cache_file in
  1691. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1692. *) . "./$cache_file";;
  1693. esac
  1694. fi
  1695. else
  1696. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1697. echo "$as_me: creating cache $cache_file" >&6;}
  1698. >$cache_file
  1699. fi
  1700. # Check that the precious variables saved in the cache have kept the same
  1701. # value.
  1702. ac_cache_corrupted=false
  1703. for ac_var in $ac_precious_vars; do
  1704. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1705. eval ac_new_set=\$ac_env_${ac_var}_set
  1706. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1707. eval ac_new_val=\$ac_env_${ac_var}_value
  1708. case $ac_old_set,$ac_new_set in
  1709. set,)
  1710. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1711. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1712. ac_cache_corrupted=: ;;
  1713. ,set)
  1714. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1715. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1716. ac_cache_corrupted=: ;;
  1717. ,);;
  1718. *)
  1719. if test "x$ac_old_val" != "x$ac_new_val"; then
  1720. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1721. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1722. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1723. echo "$as_me: former value: $ac_old_val" >&2;}
  1724. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1725. echo "$as_me: current value: $ac_new_val" >&2;}
  1726. ac_cache_corrupted=:
  1727. fi;;
  1728. esac
  1729. # Pass precious variables to config.status.
  1730. if test "$ac_new_set" = set; then
  1731. case $ac_new_val in
  1732. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1733. *) ac_arg=$ac_var=$ac_new_val ;;
  1734. esac
  1735. case " $ac_configure_args " in
  1736. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1737. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1738. esac
  1739. fi
  1740. done
  1741. if $ac_cache_corrupted; then
  1742. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1743. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1744. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1745. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1746. { (exit 1); exit 1; }; }
  1747. fi
  1748. ac_ext=c
  1749. ac_cpp='$CPP $CPPFLAGS'
  1750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1753. ac_config_headers="$ac_config_headers src/config.h"
  1754. ac_aux_dir=
  1755. for ac_dir in config "$srcdir"/config; do
  1756. if test -f "$ac_dir/install-sh"; then
  1757. ac_aux_dir=$ac_dir
  1758. ac_install_sh="$ac_aux_dir/install-sh -c"
  1759. break
  1760. elif test -f "$ac_dir/install.sh"; then
  1761. ac_aux_dir=$ac_dir
  1762. ac_install_sh="$ac_aux_dir/install.sh -c"
  1763. break
  1764. elif test -f "$ac_dir/shtool"; then
  1765. ac_aux_dir=$ac_dir
  1766. ac_install_sh="$ac_aux_dir/shtool install -c"
  1767. break
  1768. fi
  1769. done
  1770. if test -z "$ac_aux_dir"; then
  1771. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1772. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1773. { (exit 1); exit 1; }; }
  1774. fi
  1775. # These three variables are undocumented and unsupported,
  1776. # and are intended to be withdrawn in a future Autoconf release.
  1777. # They can cause serious problems if a builder's source tree is in a directory
  1778. # whose full name contains unusual characters.
  1779. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1780. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1781. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1782. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1783. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  1784. # Check whether --enable-maintainer-mode was given.
  1785. if test "${enable_maintainer_mode+set}" = set; then
  1786. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1787. else
  1788. USE_MAINTAINER_MODE=no
  1789. fi
  1790. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1791. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  1792. if test $USE_MAINTAINER_MODE = yes; then
  1793. MAINTAINER_MODE_TRUE=
  1794. MAINTAINER_MODE_FALSE='#'
  1795. else
  1796. MAINTAINER_MODE_TRUE='#'
  1797. MAINTAINER_MODE_FALSE=
  1798. fi
  1799. MAINT=$MAINTAINER_MODE_TRUE
  1800. { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1801. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
  1802. # Check whether --with-dmalloc was given.
  1803. if test "${with_dmalloc+set}" = set; then
  1804. withval=$with_dmalloc; if test "$withval" = yes; then
  1805. { echo "$as_me:$LINENO: result: yes" >&5
  1806. echo "${ECHO_T}yes" >&6; }
  1807. cat >>confdefs.h <<\_ACEOF
  1808. #define WITH_DMALLOC 1
  1809. _ACEOF
  1810. LIBS="$LIBS -ldmalloc"
  1811. LDFLAGS="$LDFLAGS -g"
  1812. else
  1813. { echo "$as_me:$LINENO: result: no" >&5
  1814. echo "${ECHO_T}no" >&6; }
  1815. fi
  1816. else
  1817. { echo "$as_me:$LINENO: result: no" >&5
  1818. echo "${ECHO_T}no" >&6; }
  1819. fi
  1820. MAJOR_VERSION=3
  1821. MINOR_VERSION=2
  1822. MICRO_VERSION=0
  1823. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1824. TCPREPLAY_RELEASE=1
  1825. cat >>confdefs.h <<\_ACEOF
  1826. #define PACKAGE tcpreplay
  1827. _ACEOF
  1828. cat >>confdefs.h <<_ACEOF
  1829. #define VERSION "$TCPREPLAY_VERSION"
  1830. _ACEOF
  1831. USER_CFLAGS=$CFLAGS
  1832. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1833. # Make sure we can run config.sub.
  1834. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1835. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1836. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1837. { (exit 1); exit 1; }; }
  1838. { echo "$as_me:$LINENO: checking build system type" >&5
  1839. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1840. if test "${ac_cv_build+set}" = set; then
  1841. echo $ECHO_N "(cached) $ECHO_C" >&6
  1842. else
  1843. ac_build_alias=$build_alias
  1844. test "x$ac_build_alias" = x &&
  1845. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1846. test "x$ac_build_alias" = x &&
  1847. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1848. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1849. { (exit 1); exit 1; }; }
  1850. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1851. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1852. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1853. { (exit 1); exit 1; }; }
  1854. fi
  1855. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1856. echo "${ECHO_T}$ac_cv_build" >&6; }
  1857. case $ac_cv_build in
  1858. *-*-*) ;;
  1859. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1860. echo "$as_me: error: invalid value of canonical build" >&2;}
  1861. { (exit 1); exit 1; }; };;
  1862. esac
  1863. build=$ac_cv_build
  1864. ac_save_IFS=$IFS; IFS='-'
  1865. set x $ac_cv_build
  1866. shift
  1867. build_cpu=$1
  1868. build_vendor=$2
  1869. shift; shift
  1870. # Remember, the first character of IFS is used to create $*,
  1871. # except with old shells:
  1872. build_os=$*
  1873. IFS=$ac_save_IFS
  1874. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1875. { echo "$as_me:$LINENO: checking host system type" >&5
  1876. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1877. if test "${ac_cv_host+set}" = set; then
  1878. echo $ECHO_N "(cached) $ECHO_C" >&6
  1879. else
  1880. if test "x$host_alias" = x; then
  1881. ac_cv_host=$ac_cv_build
  1882. else
  1883. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1884. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1885. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1886. { (exit 1); exit 1; }; }
  1887. fi
  1888. fi
  1889. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1890. echo "${ECHO_T}$ac_cv_host" >&6; }
  1891. case $ac_cv_host in
  1892. *-*-*) ;;
  1893. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1894. echo "$as_me: error: invalid value of canonical host" >&2;}
  1895. { (exit 1); exit 1; }; };;
  1896. esac
  1897. host=$ac_cv_host
  1898. ac_save_IFS=$IFS; IFS='-'
  1899. set x $ac_cv_host
  1900. shift
  1901. host_cpu=$1
  1902. host_vendor=$2
  1903. shift; shift
  1904. # Remember, the first character of IFS is used to create $*,
  1905. # except with old shells:
  1906. host_os=$*
  1907. IFS=$ac_save_IFS
  1908. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1909. { echo "$as_me:$LINENO: checking target system type" >&5
  1910. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1911. if test "${ac_cv_target+set}" = set; then
  1912. echo $ECHO_N "(cached) $ECHO_C" >&6
  1913. else
  1914. if test "x$target_alias" = x; then
  1915. ac_cv_target=$ac_cv_host
  1916. else
  1917. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1918. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1919. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1920. { (exit 1); exit 1; }; }
  1921. fi
  1922. fi
  1923. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1924. echo "${ECHO_T}$ac_cv_target" >&6; }
  1925. case $ac_cv_target in
  1926. *-*-*) ;;
  1927. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1928. echo "$as_me: error: invalid value of canonical target" >&2;}
  1929. { (exit 1); exit 1; }; };;
  1930. esac
  1931. target=$ac_cv_target
  1932. ac_save_IFS=$IFS; IFS='-'
  1933. set x $ac_cv_target
  1934. shift
  1935. target_cpu=$1
  1936. target_vendor=$2
  1937. shift; shift
  1938. # Remember, the first character of IFS is used to create $*,
  1939. # except with old shells:
  1940. target_os=$*
  1941. IFS=$ac_save_IFS
  1942. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1943. # The aliases save the names the user supplied, while $host etc.
  1944. # will get canonicalized.
  1945. test -n "$target_alias" &&
  1946. test "$program_prefix$program_suffix$program_transform_name" = \
  1947. NONENONEs,x,x, &&
  1948. program_prefix=${target_alias}-
  1949. { echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  1950. echo $ECHO_N "checking for cygwin development environment... $ECHO_C" >&6; }
  1951. if test `echo $target | grep -c cygwin` -gt 0 ; then
  1952. cat >>confdefs.h <<\_ACEOF
  1953. #define HAVE_WIN32 1
  1954. _ACEOF
  1955. { echo "$as_me:$LINENO: result: yes" >&5
  1956. echo "${ECHO_T}yes" >&6; }
  1957. else
  1958. { echo "$as_me:$LINENO: result: no" >&5
  1959. echo "${ECHO_T}no" >&6; }
  1960. fi
  1961. am__api_version='1.10'
  1962. # Find a good install program. We prefer a C program (faster),
  1963. # so one script is as good as another. But avoid the broken or
  1964. # incompatible versions:
  1965. # SysV /etc/install, /usr/sbin/install
  1966. # SunOS /usr/etc/install
  1967. # IRIX /sbin/install
  1968. # AIX /bin/install
  1969. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1970. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1971. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1972. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1973. # OS/2's system install, which has a completely different semantic
  1974. # ./install, which can be erroneously created by make from ./install.sh.
  1975. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1976. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1977. if test -z "$INSTALL"; then
  1978. if test "${ac_cv_path_install+set}" = set; then
  1979. echo $ECHO_N "(cached) $ECHO_C" >&6
  1980. else
  1981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1982. for as_dir in $PATH
  1983. do
  1984. IFS=$as_save_IFS
  1985. test -z "$as_dir" && as_dir=.
  1986. # Account for people who put trailing slashes in PATH elements.
  1987. case $as_dir/ in
  1988. ./ | .// | /cC/* | \
  1989. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1990. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1991. /usr/ucb/* ) ;;
  1992. *)
  1993. # OSF1 and SCO ODT 3.0 have their own names for install.
  1994. # Don't use installbsd from OSF since it installs stuff as root
  1995. # by default.
  1996. for ac_prog in ginstall scoinst install; do
  1997. for ac_exec_ext in '' $ac_executable_extensions; do
  1998. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1999. if test $ac_prog = install &&
  2000. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2001. # AIX install. It has an incompatible calling convention.
  2002. :
  2003. elif test $ac_prog = install &&
  2004. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2005. # program-specific install script used by HP pwplus--don't use.
  2006. :
  2007. else
  2008. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2009. break 3
  2010. fi
  2011. fi
  2012. done
  2013. done
  2014. ;;
  2015. esac
  2016. done
  2017. IFS=$as_save_IFS
  2018. fi
  2019. if test "${ac_cv_path_install+set}" = set; then
  2020. INSTALL=$ac_cv_path_install
  2021. else
  2022. # As a last resort, use the slow shell script. Don't cache a
  2023. # value for INSTALL within a source directory, because that will
  2024. # break other packages using the cache if that directory is
  2025. # removed, or if the value is a relative name.
  2026. INSTALL=$ac_install_sh
  2027. fi
  2028. fi
  2029. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2030. echo "${ECHO_T}$INSTALL" >&6; }
  2031. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2032. # It thinks the first close brace ends the variable substitution.
  2033. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2034. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2035. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2036. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2037. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2038. # Just in case
  2039. sleep 1
  2040. echo timestamp > conftest.file
  2041. # Do `set' in a subshell so we don't clobber the current shell's
  2042. # arguments. Must try -L first in case configure is actually a
  2043. # symlink; some systems play weird games with the mod time of symlinks
  2044. # (eg FreeBSD returns the mod time of the symlink's containing
  2045. # directory).
  2046. if (
  2047. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2048. if test "$*" = "X"; then
  2049. # -L didn't work.
  2050. set X `ls -t $srcdir/configure conftest.file`
  2051. fi
  2052. rm -f conftest.file
  2053. if test "$*" != "X $srcdir/configure conftest.file" \
  2054. && test "$*" != "X conftest.file $srcdir/configure"; then
  2055. # If neither matched, then we have a broken ls. This can happen
  2056. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2057. # broken ls alias from the environment. This has actually
  2058. # happened. Such a system could not be considered "sane".
  2059. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2060. alias in your environment" >&5
  2061. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2062. alias in your environment" >&2;}
  2063. { (exit 1); exit 1; }; }
  2064. fi
  2065. test "$2" = conftest.file
  2066. )
  2067. then
  2068. # Ok.
  2069. :
  2070. else
  2071. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2072. Check your system clock" >&5
  2073. echo "$as_me: error: newly created file is older than distributed files!
  2074. Check your system clock" >&2;}
  2075. { (exit 1); exit 1; }; }
  2076. fi
  2077. { echo "$as_me:$LINENO: result: yes" >&5
  2078. echo "${ECHO_T}yes" >&6; }
  2079. test "$program_prefix" != NONE &&
  2080. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2081. # Use a double $ so make ignores it.
  2082. test "$program_suffix" != NONE &&
  2083. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2084. # Double any \ or $. echo might interpret backslashes.
  2085. # By default was `s,x,x', remove it if useless.
  2086. cat <<\_ACEOF >conftest.sed
  2087. s/[\\$]/&&/g;s/;s,x,x,$//
  2088. _ACEOF
  2089. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2090. rm -f conftest.sed
  2091. # expand $ac_aux_dir to an absolute path
  2092. am_aux_dir=`cd $ac_aux_dir && pwd`
  2093. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2094. # Use eval to expand $SHELL
  2095. if eval "$MISSING --run true"; then
  2096. am_missing_run="$MISSING --run "
  2097. else
  2098. am_missing_run=
  2099. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2100. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2101. fi
  2102. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2103. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2104. if test -z "$MKDIR_P"; then
  2105. if test "${ac_cv_path_mkdir+set}" = set; then
  2106. echo $ECHO_N "(cached) $ECHO_C" >&6
  2107. else
  2108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2109. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2110. do
  2111. IFS=$as_save_IFS
  2112. test -z "$as_dir" && as_dir=.
  2113. for ac_prog in mkdir gmkdir; do
  2114. for ac_exec_ext in '' $ac_executable_extensions; do
  2115. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2116. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2117. 'mkdir (GNU coreutils) '* | \
  2118. 'mkdir (coreutils) '* | \
  2119. 'mkdir (fileutils) '4.1*)
  2120. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2121. break 3;;
  2122. esac
  2123. done
  2124. done
  2125. done
  2126. IFS=$as_save_IFS
  2127. fi
  2128. if test "${ac_cv_path_mkdir+set}" = set; then
  2129. MKDIR_P="$ac_cv_path_mkdir -p"
  2130. else
  2131. # As a last resort, use the slow shell script. Don't cache a
  2132. # value for MKDIR_P within a source directory, because that will
  2133. # break other packages using the cache if that directory is
  2134. # removed, or if the value is a relative name.
  2135. test -d ./--version && rmdir ./--version
  2136. MKDIR_P="$ac_install_sh -d"
  2137. fi
  2138. fi
  2139. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2140. echo "${ECHO_T}$MKDIR_P" >&6; }
  2141. mkdir_p="$MKDIR_P"
  2142. case $mkdir_p in
  2143. [\\/$]* | ?:[\\/]*) ;;
  2144. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2145. esac
  2146. for ac_prog in gawk mawk nawk awk
  2147. do
  2148. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2149. set dummy $ac_prog; ac_word=$2
  2150. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2152. if test "${ac_cv_prog_AWK+set}" = set; then
  2153. echo $ECHO_N "(cached) $ECHO_C" >&6
  2154. else
  2155. if test -n "$AWK"; then
  2156. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2157. else
  2158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2159. for as_dir in $PATH
  2160. do
  2161. IFS=$as_save_IFS
  2162. test -z "$as_dir" && as_dir=.
  2163. for ac_exec_ext in '' $ac_executable_extensions; do
  2164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2165. ac_cv_prog_AWK="$ac_prog"
  2166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2167. break 2
  2168. fi
  2169. done
  2170. done
  2171. IFS=$as_save_IFS
  2172. fi
  2173. fi
  2174. AWK=$ac_cv_prog_AWK
  2175. if test -n "$AWK"; then
  2176. { echo "$as_me:$LINENO: result: $AWK" >&5
  2177. echo "${ECHO_T}$AWK" >&6; }
  2178. else
  2179. { echo "$as_me:$LINENO: result: no" >&5
  2180. echo "${ECHO_T}no" >&6; }
  2181. fi
  2182. test -n "$AWK" && break
  2183. done
  2184. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2185. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2186. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2187. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2188. echo $ECHO_N "(cached) $ECHO_C" >&6
  2189. else
  2190. cat >conftest.make <<\_ACEOF
  2191. SHELL = /bin/sh
  2192. all:
  2193. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2194. _ACEOF
  2195. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2196. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2197. *@@@%%%=?*=@@@%%%*)
  2198. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2199. *)
  2200. eval ac_cv_prog_make_${ac_make}_set=no;;
  2201. esac
  2202. rm -f conftest.make
  2203. fi
  2204. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2205. { echo "$as_me:$LINENO: result: yes" >&5
  2206. echo "${ECHO_T}yes" >&6; }
  2207. SET_MAKE=
  2208. else
  2209. { echo "$as_me:$LINENO: result: no" >&5
  2210. echo "${ECHO_T}no" >&6; }
  2211. SET_MAKE="MAKE=${MAKE-make}"
  2212. fi
  2213. rm -rf .tst 2>/dev/null
  2214. mkdir .tst 2>/dev/null
  2215. if test -d .tst; then
  2216. am__leading_dot=.
  2217. else
  2218. am__leading_dot=_
  2219. fi
  2220. rmdir .tst 2>/dev/null
  2221. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2222. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2223. # is not polluted with repeated "-I."
  2224. am__isrc=' -I$(srcdir)'
  2225. # test to see if srcdir already configured
  2226. if test -f $srcdir/config.status; then
  2227. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2228. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2229. { (exit 1); exit 1; }; }
  2230. fi
  2231. fi
  2232. # test whether we have cygpath
  2233. if test -z "$CYGPATH_W"; then
  2234. if (cygpath --version) >/dev/null 2>/dev/null; then
  2235. CYGPATH_W='cygpath -w'
  2236. else
  2237. CYGPATH_W=echo
  2238. fi
  2239. fi
  2240. # Define the identity of the package.
  2241. PACKAGE=tcpreplay
  2242. VERSION=$TCPREPLAY_VERSION
  2243. # Some tools Automake needs.
  2244. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2245. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2246. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2247. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2248. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2249. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2250. # Installed binaries are usually stripped using `strip' when the user
  2251. # run `make install-strip'. However `strip' might not be the right
  2252. # tool to use in cross-compilation environments, therefore Automake
  2253. # will honor the `STRIP' environment variable to overrule this program.
  2254. if test "$cross_compiling" != no; then
  2255. if test -n "$ac_tool_prefix"; then
  2256. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2257. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2258. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2259. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2260. if test "${ac_cv_prog_STRIP+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if test -n "$STRIP"; then
  2264. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2265. else
  2266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2267. for as_dir in $PATH
  2268. do
  2269. IFS=$as_save_IFS
  2270. test -z "$as_dir" && as_dir=.
  2271. for ac_exec_ext in '' $ac_executable_extensions; do
  2272. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2273. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2274. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2275. break 2
  2276. fi
  2277. done
  2278. done
  2279. IFS=$as_save_IFS
  2280. fi
  2281. fi
  2282. STRIP=$ac_cv_prog_STRIP
  2283. if test -n "$STRIP"; then
  2284. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2285. echo "${ECHO_T}$STRIP" >&6; }
  2286. else
  2287. { echo "$as_me:$LINENO: result: no" >&5
  2288. echo "${ECHO_T}no" >&6; }
  2289. fi
  2290. fi
  2291. if test -z "$ac_cv_prog_STRIP"; then
  2292. ac_ct_STRIP=$STRIP
  2293. # Extract the first word of "strip", so it can be a program name with args.
  2294. set dummy strip; ac_word=$2
  2295. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2296. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2297. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. if test -n "$ac_ct_STRIP"; then
  2301. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2302. else
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. test -z "$as_dir" && as_dir=.
  2308. for ac_exec_ext in '' $ac_executable_extensions; do
  2309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2310. ac_cv_prog_ac_ct_STRIP="strip"
  2311. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2312. break 2
  2313. fi
  2314. done
  2315. done
  2316. IFS=$as_save_IFS
  2317. fi
  2318. fi
  2319. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2320. if test -n "$ac_ct_STRIP"; then
  2321. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2322. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2323. else
  2324. { echo "$as_me:$LINENO: result: no" >&5
  2325. echo "${ECHO_T}no" >&6; }
  2326. fi
  2327. if test "x$ac_ct_STRIP" = x; then
  2328. STRIP=":"
  2329. else
  2330. case $cross_compiling:$ac_tool_warned in
  2331. yes:)
  2332. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2333. whose name does not start with the host triplet. If you think this
  2334. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2335. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2336. whose name does not start with the host triplet. If you think this
  2337. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2338. ac_tool_warned=yes ;;
  2339. esac
  2340. STRIP=$ac_ct_STRIP
  2341. fi
  2342. else
  2343. STRIP="$ac_cv_prog_STRIP"
  2344. fi
  2345. fi
  2346. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2347. # We need awk for the "check" target. The system "awk" is bad on
  2348. # some platforms.
  2349. # Always define AMTAR for backward compatibility.
  2350. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2351. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2352. # Find a good install program. We prefer a C program (faster),
  2353. # so one script is as good as another. But avoid the broken or
  2354. # incompatible versions:
  2355. # SysV /etc/install, /usr/sbin/install
  2356. # SunOS /usr/etc/install
  2357. # IRIX /sbin/install
  2358. # AIX /bin/install
  2359. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2360. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2361. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2362. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2363. # OS/2's system install, which has a completely different semantic
  2364. # ./install, which can be erroneously created by make from ./install.sh.
  2365. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2366. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2367. if test -z "$INSTALL"; then
  2368. if test "${ac_cv_path_install+set}" = set; then
  2369. echo $ECHO_N "(cached) $ECHO_C" >&6
  2370. else
  2371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2372. for as_dir in $PATH
  2373. do
  2374. IFS=$as_save_IFS
  2375. test -z "$as_dir" && as_dir=.
  2376. # Account for people who put trailing slashes in PATH elements.
  2377. case $as_dir/ in
  2378. ./ | .// | /cC/* | \
  2379. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2380. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2381. /usr/ucb/* ) ;;
  2382. *)
  2383. # OSF1 and SCO ODT 3.0 have their own names for install.
  2384. # Don't use installbsd from OSF since it installs stuff as root
  2385. # by default.
  2386. for ac_prog in ginstall scoinst install; do
  2387. for ac_exec_ext in '' $ac_executable_extensions; do
  2388. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2389. if test $ac_prog = install &&
  2390. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2391. # AIX install. It has an incompatible calling convention.
  2392. :
  2393. elif test $ac_prog = install &&
  2394. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2395. # program-specific install script used by HP pwplus--don't use.
  2396. :
  2397. else
  2398. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2399. break 3
  2400. fi
  2401. fi
  2402. done
  2403. done
  2404. ;;
  2405. esac
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. if test "${ac_cv_path_install+set}" = set; then
  2410. INSTALL=$ac_cv_path_install
  2411. else
  2412. # As a last resort, use the slow shell script. Don't cache a
  2413. # value for INSTALL within a source directory, because that will
  2414. # break other packages using the cache if that directory is
  2415. # removed, or if the value is a relative name.
  2416. INSTALL=$ac_install_sh
  2417. fi
  2418. fi
  2419. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2420. echo "${ECHO_T}$INSTALL" >&6; }
  2421. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2422. # It thinks the first close brace ends the variable substitution.
  2423. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2424. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2425. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2426. # Check whether --enable-shared was given.
  2427. if test "${enable_shared+set}" = set; then
  2428. enableval=$enable_shared; p=${PACKAGE-default}
  2429. case $enableval in
  2430. yes) enable_shared=yes ;;
  2431. no) enable_shared=no ;;
  2432. *)
  2433. enable_shared=no
  2434. # Look at the argument we got. We use all the common list separators.
  2435. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2436. for pkg in $enableval; do
  2437. IFS="$lt_save_ifs"
  2438. if test "X$pkg" = "X$p"; then
  2439. enable_shared=yes
  2440. fi
  2441. done
  2442. IFS="$lt_save_ifs"
  2443. ;;
  2444. esac
  2445. else
  2446. enable_shared=yes
  2447. fi
  2448. # Check whether --enable-static was given.
  2449. if test "${enable_static+set}" = set; then
  2450. enableval=$enable_static; p=${PACKAGE-default}
  2451. case $enableval in
  2452. yes) enable_static=yes ;;
  2453. no) enable_static=no ;;
  2454. *)
  2455. enable_static=no
  2456. # Look at the argument we got. We use all the common list separators.
  2457. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2458. for pkg in $enableval; do
  2459. IFS="$lt_save_ifs"
  2460. if test "X$pkg" = "X$p"; then
  2461. enable_static=yes
  2462. fi
  2463. done
  2464. IFS="$lt_save_ifs"
  2465. ;;
  2466. esac
  2467. else
  2468. enable_static=yes
  2469. fi
  2470. # Check whether --enable-fast-install was given.
  2471. if test "${enable_fast_install+set}" = set; then
  2472. enableval=$enable_fast_install; p=${PACKAGE-default}
  2473. case $enableval in
  2474. yes) enable_fast_install=yes ;;
  2475. no) enable_fast_install=no ;;
  2476. *)
  2477. enable_fast_install=no
  2478. # Look at the argument we got. We use all the common list separators.
  2479. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2480. for pkg in $enableval; do
  2481. IFS="$lt_save_ifs"
  2482. if test "X$pkg" = "X$p"; then
  2483. enable_fast_install=yes
  2484. fi
  2485. done
  2486. IFS="$lt_save_ifs"
  2487. ;;
  2488. esac
  2489. else
  2490. enable_fast_install=yes
  2491. fi
  2492. DEPDIR="${am__leading_dot}deps"
  2493. ac_config_commands="$ac_config_commands depfiles"
  2494. am_make=${MAKE-make}
  2495. cat > confinc << 'END'
  2496. am__doit:
  2497. @echo done
  2498. .PHONY: am__doit
  2499. END
  2500. # If we don't find an include directive, just comment out the code.
  2501. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2502. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2503. am__include="#"
  2504. am__quote=
  2505. _am_result=none
  2506. # First try GNU make style include.
  2507. echo "include confinc" > confmf
  2508. # We grep out `Entering directory' and `Leaving directory'
  2509. # messages which can occur if `w' ends up in MAKEFLAGS.
  2510. # In particular we don't look at `^make:' because GNU make might
  2511. # be invoked under some other name (usually "gmake"), in which
  2512. # case it prints its new name instead of `make'.
  2513. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2514. am__include=include
  2515. am__quote=
  2516. _am_result=GNU
  2517. fi
  2518. # Now try BSD make style include.
  2519. if test "$am__include" = "#"; then
  2520. echo '.include "confinc"' > confmf
  2521. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2522. am__include=.include
  2523. am__quote="\""
  2524. _am_result=BSD
  2525. fi
  2526. fi
  2527. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2528. echo "${ECHO_T}$_am_result" >&6; }
  2529. rm -f confinc confmf
  2530. # Check whether --enable-dependency-tracking was given.
  2531. if test "${enable_dependency_tracking+set}" = set; then
  2532. enableval=$enable_dependency_tracking;
  2533. fi
  2534. if test "x$enable_dependency_tracking" != xno; then
  2535. am_depcomp="$ac_aux_dir/depcomp"
  2536. AMDEPBACKSLASH='\'
  2537. fi
  2538. if test "x$enable_dependency_tracking" != xno; then
  2539. AMDEP_TRUE=
  2540. AMDEP_FALSE='#'
  2541. else
  2542. AMDEP_TRUE='#'
  2543. AMDEP_FALSE=
  2544. fi
  2545. ac_ext=c
  2546. ac_cpp='$CPP $CPPFLAGS'
  2547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2550. if test -n "$ac_tool_prefix"; then
  2551. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2552. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2553. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2554. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2555. if test "${ac_cv_prog_CC+set}" = set; then
  2556. echo $ECHO_N "(cached) $ECHO_C" >&6
  2557. else
  2558. if test -n "$CC"; then
  2559. ac_cv_prog_CC="$CC" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2568. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2569. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. IFS=$as_save_IFS
  2575. fi
  2576. fi
  2577. CC=$ac_cv_prog_CC
  2578. if test -n "$CC"; then
  2579. { echo "$as_me:$LINENO: result: $CC" >&5
  2580. echo "${ECHO_T}$CC" >&6; }
  2581. else
  2582. { echo "$as_me:$LINENO: result: no" >&5
  2583. echo "${ECHO_T}no" >&6; }
  2584. fi
  2585. fi
  2586. if test -z "$ac_cv_prog_CC"; then
  2587. ac_ct_CC=$CC
  2588. # Extract the first word of "gcc", so it can be a program name with args.
  2589. set dummy gcc; ac_word=$2
  2590. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2591. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2592. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2593. echo $ECHO_N "(cached) $ECHO_C" >&6
  2594. else
  2595. if test -n "$ac_ct_CC"; then
  2596. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2597. else
  2598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2599. for as_dir in $PATH
  2600. do
  2601. IFS=$as_save_IFS
  2602. test -z "$as_dir" && as_dir=.
  2603. for ac_exec_ext in '' $ac_executable_extensions; do
  2604. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2605. ac_cv_prog_ac_ct_CC="gcc"
  2606. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2607. break 2
  2608. fi
  2609. done
  2610. done
  2611. IFS=$as_save_IFS
  2612. fi
  2613. fi
  2614. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2615. if test -n "$ac_ct_CC"; then
  2616. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2617. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2618. else
  2619. { echo "$as_me:$LINENO: result: no" >&5
  2620. echo "${ECHO_T}no" >&6; }
  2621. fi
  2622. if test "x$ac_ct_CC" = x; then
  2623. CC=""
  2624. else
  2625. case $cross_compiling:$ac_tool_warned in
  2626. yes:)
  2627. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2628. whose name does not start with the host triplet. If you think this
  2629. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2630. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2631. whose name does not start with the host triplet. If you think this
  2632. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2633. ac_tool_warned=yes ;;
  2634. esac
  2635. CC=$ac_ct_CC
  2636. fi
  2637. else
  2638. CC="$ac_cv_prog_CC"
  2639. fi
  2640. if test -z "$CC"; then
  2641. if test -n "$ac_tool_prefix"; then
  2642. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2643. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2644. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2645. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2646. if test "${ac_cv_prog_CC+set}" = set; then
  2647. echo $ECHO_N "(cached) $ECHO_C" >&6
  2648. else
  2649. if test -n "$CC"; then
  2650. ac_cv_prog_CC="$CC" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2659. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2660. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. CC=$ac_cv_prog_CC
  2669. if test -n "$CC"; then
  2670. { echo "$as_me:$LINENO: result: $CC" >&5
  2671. echo "${ECHO_T}$CC" >&6; }
  2672. else
  2673. { echo "$as_me:$LINENO: result: no" >&5
  2674. echo "${ECHO_T}no" >&6; }
  2675. fi
  2676. fi
  2677. fi
  2678. if test -z "$CC"; then
  2679. # Extract the first word of "cc", so it can be a program name with args.
  2680. set dummy cc; ac_word=$2
  2681. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2682. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2683. if test "${ac_cv_prog_CC+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. if test -n "$CC"; then
  2687. ac_cv_prog_CC="$CC" # Let the user override the test.
  2688. else
  2689. ac_prog_rejected=no
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2697. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2698. ac_prog_rejected=yes
  2699. continue
  2700. fi
  2701. ac_cv_prog_CC="cc"
  2702. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2703. break 2
  2704. fi
  2705. done
  2706. done
  2707. IFS=$as_save_IFS
  2708. if test $ac_prog_rejected = yes; then
  2709. # We found a bogon in the path, so make sure we never use it.
  2710. set dummy $ac_cv_prog_CC
  2711. shift
  2712. if test $# != 0; then
  2713. # We chose a different compiler from the bogus one.
  2714. # However, it has the same basename, so the bogon will be chosen
  2715. # first if we set CC to just the basename; use the full file name.
  2716. shift
  2717. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2718. fi
  2719. fi
  2720. fi
  2721. fi
  2722. CC=$ac_cv_prog_CC
  2723. if test -n "$CC"; then
  2724. { echo "$as_me:$LINENO: result: $CC" >&5
  2725. echo "${ECHO_T}$CC" >&6; }
  2726. else
  2727. { echo "$as_me:$LINENO: result: no" >&5
  2728. echo "${ECHO_T}no" >&6; }
  2729. fi
  2730. fi
  2731. if test -z "$CC"; then
  2732. if test -n "$ac_tool_prefix"; then
  2733. for ac_prog in cl.exe
  2734. do
  2735. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2736. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2737. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2738. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2739. if test "${ac_cv_prog_CC+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. if test -n "$CC"; then
  2743. ac_cv_prog_CC="$CC" # Let the user override the test.
  2744. else
  2745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2746. for as_dir in $PATH
  2747. do
  2748. IFS=$as_save_IFS
  2749. test -z "$as_dir" && as_dir=.
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2752. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2753. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2754. break 2
  2755. fi
  2756. done
  2757. done
  2758. IFS=$as_save_IFS
  2759. fi
  2760. fi
  2761. CC=$ac_cv_prog_CC
  2762. if test -n "$CC"; then
  2763. { echo "$as_me:$LINENO: result: $CC" >&5
  2764. echo "${ECHO_T}$CC" >&6; }
  2765. else
  2766. { echo "$as_me:$LINENO: result: no" >&5
  2767. echo "${ECHO_T}no" >&6; }
  2768. fi
  2769. test -n "$CC" && break
  2770. done
  2771. fi
  2772. if test -z "$CC"; then
  2773. ac_ct_CC=$CC
  2774. for ac_prog in cl.exe
  2775. do
  2776. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2777. set dummy $ac_prog; ac_word=$2
  2778. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2779. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2780. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2781. echo $ECHO_N "(cached) $ECHO_C" >&6
  2782. else
  2783. if test -n "$ac_ct_CC"; then
  2784. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2785. else
  2786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2787. for as_dir in $PATH
  2788. do
  2789. IFS=$as_save_IFS
  2790. test -z "$as_dir" && as_dir=.
  2791. for ac_exec_ext in '' $ac_executable_extensions; do
  2792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2793. ac_cv_prog_ac_ct_CC="$ac_prog"
  2794. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2795. break 2
  2796. fi
  2797. done
  2798. done
  2799. IFS=$as_save_IFS
  2800. fi
  2801. fi
  2802. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2803. if test -n "$ac_ct_CC"; then
  2804. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2805. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2806. else
  2807. { echo "$as_me:$LINENO: result: no" >&5
  2808. echo "${ECHO_T}no" >&6; }
  2809. fi
  2810. test -n "$ac_ct_CC" && break
  2811. done
  2812. if test "x$ac_ct_CC" = x; then
  2813. CC=""
  2814. else
  2815. case $cross_compiling:$ac_tool_warned in
  2816. yes:)
  2817. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2818. whose name does not start with the host triplet. If you think this
  2819. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2820. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2821. whose name does not start with the host triplet. If you think this
  2822. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2823. ac_tool_warned=yes ;;
  2824. esac
  2825. CC=$ac_ct_CC
  2826. fi
  2827. fi
  2828. fi
  2829. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2830. See \`config.log' for more details." >&5
  2831. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2832. See \`config.log' for more details." >&2;}
  2833. { (exit 1); exit 1; }; }
  2834. # Provide some information about the compiler.
  2835. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2836. ac_compiler=`set X $ac_compile; echo $2`
  2837. { (ac_try="$ac_compiler --version >&5"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2843. (eval "$ac_compiler --version >&5") 2>&5
  2844. ac_status=$?
  2845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846. (exit $ac_status); }
  2847. { (ac_try="$ac_compiler -v >&5"
  2848. case "(($ac_try" in
  2849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2850. *) ac_try_echo=$ac_try;;
  2851. esac
  2852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2853. (eval "$ac_compiler -v >&5") 2>&5
  2854. ac_status=$?
  2855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. (exit $ac_status); }
  2857. { (ac_try="$ac_compiler -V >&5"
  2858. case "(($ac_try" in
  2859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2860. *) ac_try_echo=$ac_try;;
  2861. esac
  2862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2863. (eval "$ac_compiler -V >&5") 2>&5
  2864. ac_status=$?
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); }
  2867. cat >conftest.$ac_ext <<_ACEOF
  2868. /* confdefs.h. */
  2869. _ACEOF
  2870. cat confdefs.h >>conftest.$ac_ext
  2871. cat >>conftest.$ac_ext <<_ACEOF
  2872. /* end confdefs.h. */
  2873. int
  2874. main ()
  2875. {
  2876. ;
  2877. return 0;
  2878. }
  2879. _ACEOF
  2880. ac_clean_files_save=$ac_clean_files
  2881. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2882. # Try to create an executable without -o first, disregard a.out.
  2883. # It will help us diagnose broken compilers, and finding out an intuition
  2884. # of exeext.
  2885. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2886. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2887. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2888. #
  2889. # List of possible output files, starting from the most likely.
  2890. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2891. # only as a last resort. b.out is created by i960 compilers.
  2892. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2893. #
  2894. # The IRIX 6 linker writes into existing files which may not be
  2895. # executable, retaining their permissions. Remove them first so a
  2896. # subsequent execution test works.
  2897. ac_rmfiles=
  2898. for ac_file in $ac_files
  2899. do
  2900. case $ac_file in
  2901. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2902. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2903. esac
  2904. done
  2905. rm -f $ac_rmfiles
  2906. if { (ac_try="$ac_link_default"
  2907. case "(($ac_try" in
  2908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2909. *) ac_try_echo=$ac_try;;
  2910. esac
  2911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2912. (eval "$ac_link_default") 2>&5
  2913. ac_status=$?
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); }; then
  2916. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2917. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2918. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2919. # so that the user can short-circuit this test for compilers unknown to
  2920. # Autoconf.
  2921. for ac_file in $ac_files ''
  2922. do
  2923. test -f "$ac_file" || continue
  2924. case $ac_file in
  2925. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2926. ;;
  2927. [ab].out )
  2928. # We found the default executable, but exeext='' is most
  2929. # certainly right.
  2930. break;;
  2931. *.* )
  2932. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2933. then :; else
  2934. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2935. fi
  2936. # We set ac_cv_exeext here because the later test for it is not
  2937. # safe: cross compilers may not add the suffix if given an `-o'
  2938. # argument, so we may need to know it at that point already.
  2939. # Even if this section looks crufty: it has the advantage of
  2940. # actually working.
  2941. break;;
  2942. * )
  2943. break;;
  2944. esac
  2945. done
  2946. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2947. else
  2948. ac_file=''
  2949. fi
  2950. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2951. echo "${ECHO_T}$ac_file" >&6; }
  2952. if test -z "$ac_file"; then
  2953. echo "$as_me: failed program was:" >&5
  2954. sed 's/^/| /' conftest.$ac_ext >&5
  2955. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2956. See \`config.log' for more details." >&5
  2957. echo "$as_me: error: C compiler cannot create executables
  2958. See \`config.log' for more details." >&2;}
  2959. { (exit 77); exit 77; }; }
  2960. fi
  2961. ac_exeext=$ac_cv_exeext
  2962. # Check that the compiler produces executables we can run. If not, either
  2963. # the compiler is broken, or we cross compile.
  2964. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2965. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2966. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2967. # If not cross compiling, check that we can run a simple program.
  2968. if test "$cross_compiling" != yes; then
  2969. if { ac_try='./$ac_file'
  2970. { (case "(($ac_try" in
  2971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972. *) ac_try_echo=$ac_try;;
  2973. esac
  2974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2975. (eval "$ac_try") 2>&5
  2976. ac_status=$?
  2977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2978. (exit $ac_status); }; }; then
  2979. cross_compiling=no
  2980. else
  2981. if test "$cross_compiling" = maybe; then
  2982. cross_compiling=yes
  2983. else
  2984. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2985. If you meant to cross compile, use \`--host'.
  2986. See \`config.log' for more details." >&5
  2987. echo "$as_me: error: cannot run C compiled programs.
  2988. If you meant to cross compile, use \`--host'.
  2989. See \`config.log' for more details." >&2;}
  2990. { (exit 1); exit 1; }; }
  2991. fi
  2992. fi
  2993. fi
  2994. { echo "$as_me:$LINENO: result: yes" >&5
  2995. echo "${ECHO_T}yes" >&6; }
  2996. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2997. ac_clean_files=$ac_clean_files_save
  2998. # Check that the compiler produces executables we can run. If not, either
  2999. # the compiler is broken, or we cross compile.
  3000. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3001. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3002. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3003. echo "${ECHO_T}$cross_compiling" >&6; }
  3004. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3005. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3006. if { (ac_try="$ac_link"
  3007. case "(($ac_try" in
  3008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3009. *) ac_try_echo=$ac_try;;
  3010. esac
  3011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3012. (eval "$ac_link") 2>&5
  3013. ac_status=$?
  3014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. (exit $ac_status); }; then
  3016. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3017. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3018. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3019. # `rm'.
  3020. for ac_file in conftest.exe conftest conftest.*; do
  3021. test -f "$ac_file" || continue
  3022. case $ac_file in
  3023. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3024. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3025. break;;
  3026. * ) break;;
  3027. esac
  3028. done
  3029. else
  3030. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3031. See \`config.log' for more details." >&5
  3032. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3033. See \`config.log' for more details." >&2;}
  3034. { (exit 1); exit 1; }; }
  3035. fi
  3036. rm -f conftest$ac_cv_exeext
  3037. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3038. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3039. rm -f conftest.$ac_ext
  3040. EXEEXT=$ac_cv_exeext
  3041. ac_exeext=$EXEEXT
  3042. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3043. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3044. if test "${ac_cv_objext+set}" = set; then
  3045. echo $ECHO_N "(cached) $ECHO_C" >&6
  3046. else
  3047. cat >conftest.$ac_ext <<_ACEOF
  3048. /* confdefs.h. */
  3049. _ACEOF
  3050. cat confdefs.h >>conftest.$ac_ext
  3051. cat >>conftest.$ac_ext <<_ACEOF
  3052. /* end confdefs.h. */
  3053. int
  3054. main ()
  3055. {
  3056. ;
  3057. return 0;
  3058. }
  3059. _ACEOF
  3060. rm -f conftest.o conftest.obj
  3061. if { (ac_try="$ac_compile"
  3062. case "(($ac_try" in
  3063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3064. *) ac_try_echo=$ac_try;;
  3065. esac
  3066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3067. (eval "$ac_compile") 2>&5
  3068. ac_status=$?
  3069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3070. (exit $ac_status); }; then
  3071. for ac_file in conftest.o conftest.obj conftest.*; do
  3072. test -f "$ac_file" || continue;
  3073. case $ac_file in
  3074. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3075. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3076. break;;
  3077. esac
  3078. done
  3079. else
  3080. echo "$as_me: failed program was:" >&5
  3081. sed 's/^/| /' conftest.$ac_ext >&5
  3082. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3083. See \`config.log' for more details." >&5
  3084. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3085. See \`config.log' for more details." >&2;}
  3086. { (exit 1); exit 1; }; }
  3087. fi
  3088. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3089. fi
  3090. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3091. echo "${ECHO_T}$ac_cv_objext" >&6; }
  3092. OBJEXT=$ac_cv_objext
  3093. ac_objext=$OBJEXT
  3094. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3095. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3096. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3097. echo $ECHO_N "(cached) $ECHO_C" >&6
  3098. else
  3099. cat >conftest.$ac_ext <<_ACEOF
  3100. /* confdefs.h. */
  3101. _ACEOF
  3102. cat confdefs.h >>conftest.$ac_ext
  3103. cat >>conftest.$ac_ext <<_ACEOF
  3104. /* end confdefs.h. */
  3105. int
  3106. main ()
  3107. {
  3108. #ifndef __GNUC__
  3109. choke me
  3110. #endif
  3111. ;
  3112. return 0;
  3113. }
  3114. _ACEOF
  3115. rm -f conftest.$ac_objext
  3116. if { (ac_try="$ac_compile"
  3117. case "(($ac_try" in
  3118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3119. *) ac_try_echo=$ac_try;;
  3120. esac
  3121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3122. (eval "$ac_compile") 2>conftest.er1
  3123. ac_status=$?
  3124. grep -v '^ *+' conftest.er1 >conftest.err
  3125. rm -f conftest.er1
  3126. cat conftest.err >&5
  3127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3128. (exit $ac_status); } && {
  3129. test -z "$ac_c_werror_flag" ||
  3130. test ! -s conftest.err
  3131. } && test -s conftest.$ac_objext; then
  3132. ac_compiler_gnu=yes
  3133. else
  3134. echo "$as_me: failed program was:" >&5
  3135. sed 's/^/| /' conftest.$ac_ext >&5
  3136. ac_compiler_gnu=no
  3137. fi
  3138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3139. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3140. fi
  3141. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3142. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3143. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3144. ac_test_CFLAGS=${CFLAGS+set}
  3145. ac_save_CFLAGS=$CFLAGS
  3146. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3147. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3148. if test "${ac_cv_prog_cc_g+set}" = set; then
  3149. echo $ECHO_N "(cached) $ECHO_C" >&6
  3150. else
  3151. ac_save_c_werror_flag=$ac_c_werror_flag
  3152. ac_c_werror_flag=yes
  3153. ac_cv_prog_cc_g=no
  3154. CFLAGS="-g"
  3155. cat >conftest.$ac_ext <<_ACEOF
  3156. /* confdefs.h. */
  3157. _ACEOF
  3158. cat confdefs.h >>conftest.$ac_ext
  3159. cat >>conftest.$ac_ext <<_ACEOF
  3160. /* end confdefs.h. */
  3161. int
  3162. main ()
  3163. {
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. rm -f conftest.$ac_objext
  3169. if { (ac_try="$ac_compile"
  3170. case "(($ac_try" in
  3171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3172. *) ac_try_echo=$ac_try;;
  3173. esac
  3174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3175. (eval "$ac_compile") 2>conftest.er1
  3176. ac_status=$?
  3177. grep -v '^ *+' conftest.er1 >conftest.err
  3178. rm -f conftest.er1
  3179. cat conftest.err >&5
  3180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3181. (exit $ac_status); } && {
  3182. test -z "$ac_c_werror_flag" ||
  3183. test ! -s conftest.err
  3184. } && test -s conftest.$ac_objext; then
  3185. ac_cv_prog_cc_g=yes
  3186. else
  3187. echo "$as_me: failed program was:" >&5
  3188. sed 's/^/| /' conftest.$ac_ext >&5
  3189. CFLAGS=""
  3190. cat >conftest.$ac_ext <<_ACEOF
  3191. /* confdefs.h. */
  3192. _ACEOF
  3193. cat confdefs.h >>conftest.$ac_ext
  3194. cat >>conftest.$ac_ext <<_ACEOF
  3195. /* end confdefs.h. */
  3196. int
  3197. main ()
  3198. {
  3199. ;
  3200. return 0;
  3201. }
  3202. _ACEOF
  3203. rm -f conftest.$ac_objext
  3204. if { (ac_try="$ac_compile"
  3205. case "(($ac_try" in
  3206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3207. *) ac_try_echo=$ac_try;;
  3208. esac
  3209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3210. (eval "$ac_compile") 2>conftest.er1
  3211. ac_status=$?
  3212. grep -v '^ *+' conftest.er1 >conftest.err
  3213. rm -f conftest.er1
  3214. cat conftest.err >&5
  3215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3216. (exit $ac_status); } && {
  3217. test -z "$ac_c_werror_flag" ||
  3218. test ! -s conftest.err
  3219. } && test -s conftest.$ac_objext; then
  3220. :
  3221. else
  3222. echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224. ac_c_werror_flag=$ac_save_c_werror_flag
  3225. CFLAGS="-g"
  3226. cat >conftest.$ac_ext <<_ACEOF
  3227. /* confdefs.h. */
  3228. _ACEOF
  3229. cat confdefs.h >>conftest.$ac_ext
  3230. cat >>conftest.$ac_ext <<_ACEOF
  3231. /* end confdefs.h. */
  3232. int
  3233. main ()
  3234. {
  3235. ;
  3236. return 0;
  3237. }
  3238. _ACEOF
  3239. rm -f conftest.$ac_objext
  3240. if { (ac_try="$ac_compile"
  3241. case "(($ac_try" in
  3242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3243. *) ac_try_echo=$ac_try;;
  3244. esac
  3245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3246. (eval "$ac_compile") 2>conftest.er1
  3247. ac_status=$?
  3248. grep -v '^ *+' conftest.er1 >conftest.err
  3249. rm -f conftest.er1
  3250. cat conftest.err >&5
  3251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3252. (exit $ac_status); } && {
  3253. test -z "$ac_c_werror_flag" ||
  3254. test ! -s conftest.err
  3255. } && test -s conftest.$ac_objext; then
  3256. ac_cv_prog_cc_g=yes
  3257. else
  3258. echo "$as_me: failed program was:" >&5
  3259. sed 's/^/| /' conftest.$ac_ext >&5
  3260. fi
  3261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3262. fi
  3263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3264. fi
  3265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3266. ac_c_werror_flag=$ac_save_c_werror_flag
  3267. fi
  3268. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3269. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3270. if test "$ac_test_CFLAGS" = set; then
  3271. CFLAGS=$ac_save_CFLAGS
  3272. elif test $ac_cv_prog_cc_g = yes; then
  3273. if test "$GCC" = yes; then
  3274. CFLAGS="-g -O2"
  3275. else
  3276. CFLAGS="-g"
  3277. fi
  3278. else
  3279. if test "$GCC" = yes; then
  3280. CFLAGS="-O2"
  3281. else
  3282. CFLAGS=
  3283. fi
  3284. fi
  3285. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3286. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3287. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3288. echo $ECHO_N "(cached) $ECHO_C" >&6
  3289. else
  3290. ac_cv_prog_cc_c89=no
  3291. ac_save_CC=$CC
  3292. cat >conftest.$ac_ext <<_ACEOF
  3293. /* confdefs.h. */
  3294. _ACEOF
  3295. cat confdefs.h >>conftest.$ac_ext
  3296. cat >>conftest.$ac_ext <<_ACEOF
  3297. /* end confdefs.h. */
  3298. #include <stdarg.h>
  3299. #include <stdio.h>
  3300. #include <sys/types.h>
  3301. #include <sys/stat.h>
  3302. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3303. struct buf { int x; };
  3304. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3305. static char *e (p, i)
  3306. char **p;
  3307. int i;
  3308. {
  3309. return p[i];
  3310. }
  3311. static char *f (char * (*g) (char **, int), char **p, ...)
  3312. {
  3313. char *s;
  3314. va_list v;
  3315. va_start (v,p);
  3316. s = g (p, va_arg (v,int));
  3317. va_end (v);
  3318. return s;
  3319. }
  3320. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3321. function prototypes and stuff, but not '\xHH' hex character constants.
  3322. These don't provoke an error unfortunately, instead are silently treated
  3323. as 'x'. The following induces an error, until -std is added to get
  3324. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3325. array size at least. It's necessary to write '\x00'==0 to get something
  3326. that's true only with -std. */
  3327. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3328. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3329. inside strings and character constants. */
  3330. #define FOO(x) 'x'
  3331. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3332. int test (int i, double x);
  3333. struct s1 {int (*f) (int a);};
  3334. struct s2 {int (*f) (double a);};
  3335. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3336. int argc;
  3337. char **argv;
  3338. int
  3339. main ()
  3340. {
  3341. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3342. ;
  3343. return 0;
  3344. }
  3345. _ACEOF
  3346. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3347. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3348. do
  3349. CC="$ac_save_CC $ac_arg"
  3350. rm -f conftest.$ac_objext
  3351. if { (ac_try="$ac_compile"
  3352. case "(($ac_try" in
  3353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3354. *) ac_try_echo=$ac_try;;
  3355. esac
  3356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3357. (eval "$ac_compile") 2>conftest.er1
  3358. ac_status=$?
  3359. grep -v '^ *+' conftest.er1 >conftest.err
  3360. rm -f conftest.er1
  3361. cat conftest.err >&5
  3362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3363. (exit $ac_status); } && {
  3364. test -z "$ac_c_werror_flag" ||
  3365. test ! -s conftest.err
  3366. } && test -s conftest.$ac_objext; then
  3367. ac_cv_prog_cc_c89=$ac_arg
  3368. else
  3369. echo "$as_me: failed program was:" >&5
  3370. sed 's/^/| /' conftest.$ac_ext >&5
  3371. fi
  3372. rm -f core conftest.err conftest.$ac_objext
  3373. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3374. done
  3375. rm -f conftest.$ac_ext
  3376. CC=$ac_save_CC
  3377. fi
  3378. # AC_CACHE_VAL
  3379. case "x$ac_cv_prog_cc_c89" in
  3380. x)
  3381. { echo "$as_me:$LINENO: result: none needed" >&5
  3382. echo "${ECHO_T}none needed" >&6; } ;;
  3383. xno)
  3384. { echo "$as_me:$LINENO: result: unsupported" >&5
  3385. echo "${ECHO_T}unsupported" >&6; } ;;
  3386. *)
  3387. CC="$CC $ac_cv_prog_cc_c89"
  3388. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3389. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3390. esac
  3391. ac_ext=c
  3392. ac_cpp='$CPP $CPPFLAGS'
  3393. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3394. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3395. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3396. depcc="$CC" am_compiler_list=
  3397. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3398. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3399. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3400. echo $ECHO_N "(cached) $ECHO_C" >&6
  3401. else
  3402. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3403. # We make a subdir and do the tests there. Otherwise we can end up
  3404. # making bogus files that we don't know about and never remove. For
  3405. # instance it was reported that on HP-UX the gcc test will end up
  3406. # making a dummy file named `D' -- because `-MD' means `put the output
  3407. # in D'.
  3408. mkdir conftest.dir
  3409. # Copy depcomp to subdir because otherwise we won't find it if we're
  3410. # using a relative directory.
  3411. cp "$am_depcomp" conftest.dir
  3412. cd conftest.dir
  3413. # We will build objects and dependencies in a subdirectory because
  3414. # it helps to detect inapplicable dependency modes. For instance
  3415. # both Tru64's cc and ICC support -MD to output dependencies as a
  3416. # side effect of compilation, but ICC will put the dependencies in
  3417. # the current directory while Tru64 will put them in the object
  3418. # directory.
  3419. mkdir sub
  3420. am_cv_CC_dependencies_compiler_type=none
  3421. if test "$am_compiler_list" = ""; then
  3422. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3423. fi
  3424. for depmode in $am_compiler_list; do
  3425. # Setup a source with many dependencies, because some compilers
  3426. # like to wrap large dependency lists on column 80 (with \), and
  3427. # we should not choose a depcomp mode which is confused by this.
  3428. #
  3429. # We need to recreate these files for each test, as the compiler may
  3430. # overwrite some of them when testing with obscure command lines.
  3431. # This happens at least with the AIX C compiler.
  3432. : > sub/conftest.c
  3433. for i in 1 2 3 4 5 6; do
  3434. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3435. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3436. # Solaris 8's {/usr,}/bin/sh.
  3437. touch sub/conftst$i.h
  3438. done
  3439. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3440. case $depmode in
  3441. nosideeffect)
  3442. # after this tag, mechanisms are not by side-effect, so they'll
  3443. # only be used when explicitly requested
  3444. if test "x$enable_dependency_tracking" = xyes; then
  3445. continue
  3446. else
  3447. break
  3448. fi
  3449. ;;
  3450. none) break ;;
  3451. esac
  3452. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3453. # mode. It turns out that the SunPro C++ compiler does not properly
  3454. # handle `-M -o', and we need to detect this.
  3455. if depmode=$depmode \
  3456. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3457. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3458. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3459. >/dev/null 2>conftest.err &&
  3460. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3461. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3462. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3463. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3464. # icc doesn't choke on unknown options, it will just issue warnings
  3465. # or remarks (even with -Werror). So we grep stderr for any message
  3466. # that says an option was ignored or not supported.
  3467. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3468. # icc: Command line warning: ignoring option '-M'; no argument required
  3469. # The diagnosis changed in icc 8.0:
  3470. # icc: Command line remark: option '-MP' not supported
  3471. if (grep 'ignoring option' conftest.err ||
  3472. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3473. am_cv_CC_dependencies_compiler_type=$depmode
  3474. break
  3475. fi
  3476. fi
  3477. done
  3478. cd ..
  3479. rm -rf conftest.dir
  3480. else
  3481. am_cv_CC_dependencies_compiler_type=none
  3482. fi
  3483. fi
  3484. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3485. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3486. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3487. if
  3488. test "x$enable_dependency_tracking" != xno \
  3489. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3490. am__fastdepCC_TRUE=
  3491. am__fastdepCC_FALSE='#'
  3492. else
  3493. am__fastdepCC_TRUE='#'
  3494. am__fastdepCC_FALSE=
  3495. fi
  3496. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3497. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3498. if test "${lt_cv_path_SED+set}" = set; then
  3499. echo $ECHO_N "(cached) $ECHO_C" >&6
  3500. else
  3501. # Loop through the user's path and test for sed and gsed.
  3502. # Then use that list of sed's as ones to test for truncation.
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506. IFS=$as_save_IFS
  3507. test -z "$as_dir" && as_dir=.
  3508. for lt_ac_prog in sed gsed; do
  3509. for ac_exec_ext in '' $ac_executable_extensions; do
  3510. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3511. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3512. fi
  3513. done
  3514. done
  3515. done
  3516. IFS=$as_save_IFS
  3517. lt_ac_max=0
  3518. lt_ac_count=0
  3519. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3520. # along with /bin/sed that truncates output.
  3521. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3522. test ! -f $lt_ac_sed && continue
  3523. cat /dev/null > conftest.in
  3524. lt_ac_count=0
  3525. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3526. # Check for GNU sed and select it if it is found.
  3527. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3528. lt_cv_path_SED=$lt_ac_sed
  3529. break
  3530. fi
  3531. while true; do
  3532. cat conftest.in conftest.in >conftest.tmp
  3533. mv conftest.tmp conftest.in
  3534. cp conftest.in conftest.nl
  3535. echo >>conftest.nl
  3536. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3537. cmp -s conftest.out conftest.nl || break
  3538. # 10000 chars as input seems more than enough
  3539. test $lt_ac_count -gt 10 && break
  3540. lt_ac_count=`expr $lt_ac_count + 1`
  3541. if test $lt_ac_count -gt $lt_ac_max; then
  3542. lt_ac_max=$lt_ac_count
  3543. lt_cv_path_SED=$lt_ac_sed
  3544. fi
  3545. done
  3546. done
  3547. fi
  3548. SED=$lt_cv_path_SED
  3549. { echo "$as_me:$LINENO: result: $SED" >&5
  3550. echo "${ECHO_T}$SED" >&6; }
  3551. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3552. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3553. if test "${ac_cv_path_GREP+set}" = set; then
  3554. echo $ECHO_N "(cached) $ECHO_C" >&6
  3555. else
  3556. # Extract the first word of "grep ggrep" to use in msg output
  3557. if test -z "$GREP"; then
  3558. set dummy grep ggrep; ac_prog_name=$2
  3559. if test "${ac_cv_path_GREP+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. ac_path_GREP_found=false
  3563. # Loop through the user's path and test for each of PROGNAME-LIST
  3564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3565. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3566. do
  3567. IFS=$as_save_IFS
  3568. test -z "$as_dir" && as_dir=.
  3569. for ac_prog in grep ggrep; do
  3570. for ac_exec_ext in '' $ac_executable_extensions; do
  3571. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3572. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3573. # Check for GNU ac_path_GREP and select it if it is found.
  3574. # Check for GNU $ac_path_GREP
  3575. case `"$ac_path_GREP" --version 2>&1` in
  3576. *GNU*)
  3577. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3578. *)
  3579. ac_count=0
  3580. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3581. while :
  3582. do
  3583. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3584. mv "conftest.tmp" "conftest.in"
  3585. cp "conftest.in" "conftest.nl"
  3586. echo 'GREP' >> "conftest.nl"
  3587. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3588. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3589. ac_count=`expr $ac_count + 1`
  3590. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3591. # Best one so far, save it but keep looking for a better one
  3592. ac_cv_path_GREP="$ac_path_GREP"
  3593. ac_path_GREP_max=$ac_count
  3594. fi
  3595. # 10*(2^10) chars as input seems more than enough
  3596. test $ac_count -gt 10 && break
  3597. done
  3598. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3599. esac
  3600. $ac_path_GREP_found && break 3
  3601. done
  3602. done
  3603. done
  3604. IFS=$as_save_IFS
  3605. fi
  3606. GREP="$ac_cv_path_GREP"
  3607. if test -z "$GREP"; then
  3608. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3609. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3610. { (exit 1); exit 1; }; }
  3611. fi
  3612. else
  3613. ac_cv_path_GREP=$GREP
  3614. fi
  3615. fi
  3616. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3617. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3618. GREP="$ac_cv_path_GREP"
  3619. { echo "$as_me:$LINENO: checking for egrep" >&5
  3620. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3621. if test "${ac_cv_path_EGREP+set}" = set; then
  3622. echo $ECHO_N "(cached) $ECHO_C" >&6
  3623. else
  3624. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3625. then ac_cv_path_EGREP="$GREP -E"
  3626. else
  3627. # Extract the first word of "egrep" to use in msg output
  3628. if test -z "$EGREP"; then
  3629. set dummy egrep; ac_prog_name=$2
  3630. if test "${ac_cv_path_EGREP+set}" = set; then
  3631. echo $ECHO_N "(cached) $ECHO_C" >&6
  3632. else
  3633. ac_path_EGREP_found=false
  3634. # Loop through the user's path and test for each of PROGNAME-LIST
  3635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3636. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3637. do
  3638. IFS=$as_save_IFS
  3639. test -z "$as_dir" && as_dir=.
  3640. for ac_prog in egrep; do
  3641. for ac_exec_ext in '' $ac_executable_extensions; do
  3642. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3643. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3644. # Check for GNU ac_path_EGREP and select it if it is found.
  3645. # Check for GNU $ac_path_EGREP
  3646. case `"$ac_path_EGREP" --version 2>&1` in
  3647. *GNU*)
  3648. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3649. *)
  3650. ac_count=0
  3651. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3652. while :
  3653. do
  3654. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3655. mv "conftest.tmp" "conftest.in"
  3656. cp "conftest.in" "conftest.nl"
  3657. echo 'EGREP' >> "conftest.nl"
  3658. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3659. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3660. ac_count=`expr $ac_count + 1`
  3661. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3662. # Best one so far, save it but keep looking for a better one
  3663. ac_cv_path_EGREP="$ac_path_EGREP"
  3664. ac_path_EGREP_max=$ac_count
  3665. fi
  3666. # 10*(2^10) chars as input seems more than enough
  3667. test $ac_count -gt 10 && break
  3668. done
  3669. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3670. esac
  3671. $ac_path_EGREP_found && break 3
  3672. done
  3673. done
  3674. done
  3675. IFS=$as_save_IFS
  3676. fi
  3677. EGREP="$ac_cv_path_EGREP"
  3678. if test -z "$EGREP"; then
  3679. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3680. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3681. { (exit 1); exit 1; }; }
  3682. fi
  3683. else
  3684. ac_cv_path_EGREP=$EGREP
  3685. fi
  3686. fi
  3687. fi
  3688. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3689. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3690. EGREP="$ac_cv_path_EGREP"
  3691. # Check whether --with-gnu-ld was given.
  3692. if test "${with_gnu_ld+set}" = set; then
  3693. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3694. else
  3695. with_gnu_ld=no
  3696. fi
  3697. ac_prog=ld
  3698. if test "$GCC" = yes; then
  3699. # Check if gcc -print-prog-name=ld gives a path.
  3700. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3701. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3702. case $host in
  3703. *-*-mingw*)
  3704. # gcc leaves a trailing carriage return which upsets mingw
  3705. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3706. *)
  3707. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3708. esac
  3709. case $ac_prog in
  3710. # Accept absolute paths.
  3711. [\\/]* | ?:[\\/]*)
  3712. re_direlt='/[^/][^/]*/\.\./'
  3713. # Canonicalize the pathname of ld
  3714. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3715. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3716. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3717. done
  3718. test -z "$LD" && LD="$ac_prog"
  3719. ;;
  3720. "")
  3721. # If it fails, then pretend we aren't using GCC.
  3722. ac_prog=ld
  3723. ;;
  3724. *)
  3725. # If it is relative, then search for the first ld in PATH.
  3726. with_gnu_ld=unknown
  3727. ;;
  3728. esac
  3729. elif test "$with_gnu_ld" = yes; then
  3730. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3731. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3732. else
  3733. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3734. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3735. fi
  3736. if test "${lt_cv_path_LD+set}" = set; then
  3737. echo $ECHO_N "(cached) $ECHO_C" >&6
  3738. else
  3739. if test -z "$LD"; then
  3740. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3741. for ac_dir in $PATH; do
  3742. IFS="$lt_save_ifs"
  3743. test -z "$ac_dir" && ac_dir=.
  3744. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3745. lt_cv_path_LD="$ac_dir/$ac_prog"
  3746. # Check to see if the program is GNU ld. I'd rather use --version,
  3747. # but apparently some variants of GNU ld only accept -v.
  3748. # Break only if it was the GNU/non-GNU ld that we prefer.
  3749. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3750. *GNU* | *'with BFD'*)
  3751. test "$with_gnu_ld" != no && break
  3752. ;;
  3753. *)
  3754. test "$with_gnu_ld" != yes && break
  3755. ;;
  3756. esac
  3757. fi
  3758. done
  3759. IFS="$lt_save_ifs"
  3760. else
  3761. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3762. fi
  3763. fi
  3764. LD="$lt_cv_path_LD"
  3765. if test -n "$LD"; then
  3766. { echo "$as_me:$LINENO: result: $LD" >&5
  3767. echo "${ECHO_T}$LD" >&6; }
  3768. else
  3769. { echo "$as_me:$LINENO: result: no" >&5
  3770. echo "${ECHO_T}no" >&6; }
  3771. fi
  3772. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3773. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3774. { (exit 1); exit 1; }; }
  3775. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3776. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3777. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3778. echo $ECHO_N "(cached) $ECHO_C" >&6
  3779. else
  3780. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3781. case `$LD -v 2>&1 </dev/null` in
  3782. *GNU* | *'with BFD'*)
  3783. lt_cv_prog_gnu_ld=yes
  3784. ;;
  3785. *)
  3786. lt_cv_prog_gnu_ld=no
  3787. ;;
  3788. esac
  3789. fi
  3790. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3791. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3792. with_gnu_ld=$lt_cv_prog_gnu_ld
  3793. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3794. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3795. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3796. echo $ECHO_N "(cached) $ECHO_C" >&6
  3797. else
  3798. lt_cv_ld_reload_flag='-r'
  3799. fi
  3800. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3801. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3802. reload_flag=$lt_cv_ld_reload_flag
  3803. case $reload_flag in
  3804. "" | " "*) ;;
  3805. *) reload_flag=" $reload_flag" ;;
  3806. esac
  3807. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3808. case $host_os in
  3809. darwin*)
  3810. if test "$GCC" = yes; then
  3811. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3812. else
  3813. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3814. fi
  3815. ;;
  3816. esac
  3817. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3818. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3819. if test "${lt_cv_path_NM+set}" = set; then
  3820. echo $ECHO_N "(cached) $ECHO_C" >&6
  3821. else
  3822. if test -n "$NM"; then
  3823. # Let the user override the test.
  3824. lt_cv_path_NM="$NM"
  3825. else
  3826. lt_nm_to_check="${ac_tool_prefix}nm"
  3827. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3828. lt_nm_to_check="$lt_nm_to_check nm"
  3829. fi
  3830. for lt_tmp_nm in $lt_nm_to_check; do
  3831. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3832. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3833. IFS="$lt_save_ifs"
  3834. test -z "$ac_dir" && ac_dir=.
  3835. tmp_nm="$ac_dir/$lt_tmp_nm"
  3836. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3837. # Check to see if the nm accepts a BSD-compat flag.
  3838. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3839. # nm: unknown option "B" ignored
  3840. # Tru64's nm complains that /dev/null is an invalid object file
  3841. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3842. */dev/null* | *'Invalid file or object type'*)
  3843. lt_cv_path_NM="$tmp_nm -B"
  3844. break
  3845. ;;
  3846. *)
  3847. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3848. */dev/null*)
  3849. lt_cv_path_NM="$tmp_nm -p"
  3850. break
  3851. ;;
  3852. *)
  3853. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3854. continue # so that we can try to find one that supports BSD flags
  3855. ;;
  3856. esac
  3857. ;;
  3858. esac
  3859. fi
  3860. done
  3861. IFS="$lt_save_ifs"
  3862. done
  3863. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3864. fi
  3865. fi
  3866. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3867. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3868. NM="$lt_cv_path_NM"
  3869. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3870. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3871. LN_S=$as_ln_s
  3872. if test "$LN_S" = "ln -s"; then
  3873. { echo "$as_me:$LINENO: result: yes" >&5
  3874. echo "${ECHO_T}yes" >&6; }
  3875. else
  3876. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3877. echo "${ECHO_T}no, using $LN_S" >&6; }
  3878. fi
  3879. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3880. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3881. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3882. echo $ECHO_N "(cached) $ECHO_C" >&6
  3883. else
  3884. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3885. lt_cv_file_magic_test_file=
  3886. lt_cv_deplibs_check_method='unknown'
  3887. # Need to set the preceding variable on all platforms that support
  3888. # interlibrary dependencies.
  3889. # 'none' -- dependencies not supported.
  3890. # `unknown' -- same as none, but documents that we really don't know.
  3891. # 'pass_all' -- all dependencies passed with no checks.
  3892. # 'test_compile' -- check by making test program.
  3893. # 'file_magic [[regex]]' -- check by looking for files in library path
  3894. # which responds to the $file_magic_cmd with a given extended regex.
  3895. # If you have `file' or equivalent on your system and you're not sure
  3896. # whether `pass_all' will *always* work, you probably want this one.
  3897. case $host_os in
  3898. aix4* | aix5*)
  3899. lt_cv_deplibs_check_method=pass_all
  3900. ;;
  3901. beos*)
  3902. lt_cv_deplibs_check_method=pass_all
  3903. ;;
  3904. bsdi[45]*)
  3905. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3906. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3907. lt_cv_file_magic_test_file=/shlib/libc.so
  3908. ;;
  3909. cygwin*)
  3910. # func_win32_libid is a shell function defined in ltmain.sh
  3911. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3912. lt_cv_file_magic_cmd='func_win32_libid'
  3913. ;;
  3914. mingw* | pw32*)
  3915. # Base MSYS/MinGW do not provide the 'file' command needed by
  3916. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3917. # unless we find 'file', for example because we are cross-compiling.
  3918. if ( file / ) >/dev/null 2>&1; then
  3919. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3920. lt_cv_file_magic_cmd='func_win32_libid'
  3921. else
  3922. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3923. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3924. fi
  3925. ;;
  3926. darwin* | rhapsody*)
  3927. lt_cv_deplibs_check_method=pass_all
  3928. ;;
  3929. freebsd* | dragonfly*)
  3930. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3931. case $host_cpu in
  3932. i*86 )
  3933. # Not sure whether the presence of OpenBSD here was a mistake.
  3934. # Let's accept both of them until this is cleared up.
  3935. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3936. lt_cv_file_magic_cmd=/usr/bin/file
  3937. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3938. ;;
  3939. esac
  3940. else
  3941. lt_cv_deplibs_check_method=pass_all
  3942. fi
  3943. ;;
  3944. gnu*)
  3945. lt_cv_deplibs_check_method=pass_all
  3946. ;;
  3947. hpux10.20* | hpux11*)
  3948. lt_cv_file_magic_cmd=/usr/bin/file
  3949. case $host_cpu in
  3950. ia64*)
  3951. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3952. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3953. ;;
  3954. hppa*64*)
  3955. 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]'
  3956. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3957. ;;
  3958. *)
  3959. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3960. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3961. ;;
  3962. esac
  3963. ;;
  3964. interix[3-9]*)
  3965. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3966. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3967. ;;
  3968. irix5* | irix6* | nonstopux*)
  3969. case $LD in
  3970. *-32|*"-32 ") libmagic=32-bit;;
  3971. *-n32|*"-n32 ") libmagic=N32;;
  3972. *-64|*"-64 ") libmagic=64-bit;;
  3973. *) libmagic=never-match;;
  3974. esac
  3975. lt_cv_deplibs_check_method=pass_all
  3976. ;;
  3977. # This must be Linux ELF.
  3978. linux* | k*bsd*-gnu)
  3979. lt_cv_deplibs_check_method=pass_all
  3980. ;;
  3981. netbsd*)
  3982. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3983. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3984. else
  3985. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3986. fi
  3987. ;;
  3988. newos6*)
  3989. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3990. lt_cv_file_magic_cmd=/usr/bin/file
  3991. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3992. ;;
  3993. nto-qnx*)
  3994. lt_cv_deplibs_check_method=unknown
  3995. ;;
  3996. openbsd*)
  3997. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3998. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3999. else
  4000. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4001. fi
  4002. ;;
  4003. osf3* | osf4* | osf5*)
  4004. lt_cv_deplibs_check_method=pass_all
  4005. ;;
  4006. rdos*)
  4007. lt_cv_deplibs_check_method=pass_all
  4008. ;;
  4009. solaris*)
  4010. lt_cv_deplibs_check_method=pass_all
  4011. ;;
  4012. sysv4 | sysv4.3*)
  4013. case $host_vendor in
  4014. motorola)
  4015. 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]'
  4016. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4017. ;;
  4018. ncr)
  4019. lt_cv_deplibs_check_method=pass_all
  4020. ;;
  4021. sequent)
  4022. lt_cv_file_magic_cmd='/bin/file'
  4023. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4024. ;;
  4025. sni)
  4026. lt_cv_file_magic_cmd='/bin/file'
  4027. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4028. lt_cv_file_magic_test_file=/lib/libc.so
  4029. ;;
  4030. siemens)
  4031. lt_cv_deplibs_check_method=pass_all
  4032. ;;
  4033. pc)
  4034. lt_cv_deplibs_check_method=pass_all
  4035. ;;
  4036. esac
  4037. ;;
  4038. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4039. lt_cv_deplibs_check_method=pass_all
  4040. ;;
  4041. esac
  4042. fi
  4043. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4044. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4045. file_magic_cmd=$lt_cv_file_magic_cmd
  4046. deplibs_check_method=$lt_cv_deplibs_check_method
  4047. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4048. # If no C compiler was specified, use CC.
  4049. LTCC=${LTCC-"$CC"}
  4050. # If no C compiler flags were specified, use CFLAGS.
  4051. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4052. # Allow CC to be a program name with arguments.
  4053. compiler=$CC
  4054. # Check whether --enable-libtool-lock was given.
  4055. if test "${enable_libtool_lock+set}" = set; then
  4056. enableval=$enable_libtool_lock;
  4057. fi
  4058. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4059. # Some flags need to be propagated to the compiler or linker for good
  4060. # libtool support.
  4061. case $host in
  4062. ia64-*-hpux*)
  4063. # Find out which ABI we are using.
  4064. echo 'int i;' > conftest.$ac_ext
  4065. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4066. (eval $ac_compile) 2>&5
  4067. ac_status=$?
  4068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4069. (exit $ac_status); }; then
  4070. case `/usr/bin/file conftest.$ac_objext` in
  4071. *ELF-32*)
  4072. HPUX_IA64_MODE="32"
  4073. ;;
  4074. *ELF-64*)
  4075. HPUX_IA64_MODE="64"
  4076. ;;
  4077. esac
  4078. fi
  4079. rm -rf conftest*
  4080. ;;
  4081. *-*-irix6*)
  4082. # Find out which ABI we are using.
  4083. echo '#line 4590 "configure"' > conftest.$ac_ext
  4084. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4085. (eval $ac_compile) 2>&5
  4086. ac_status=$?
  4087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4088. (exit $ac_status); }; then
  4089. if test "$lt_cv_prog_gnu_ld" = yes; then
  4090. case `/usr/bin/file conftest.$ac_objext` in
  4091. *32-bit*)
  4092. LD="${LD-ld} -melf32bsmip"
  4093. ;;
  4094. *N32*)
  4095. LD="${LD-ld} -melf32bmipn32"
  4096. ;;
  4097. *64-bit*)
  4098. LD="${LD-ld} -melf64bmip"
  4099. ;;
  4100. esac
  4101. else
  4102. case `/usr/bin/file conftest.$ac_objext` in
  4103. *32-bit*)
  4104. LD="${LD-ld} -32"
  4105. ;;
  4106. *N32*)
  4107. LD="${LD-ld} -n32"
  4108. ;;
  4109. *64-bit*)
  4110. LD="${LD-ld} -64"
  4111. ;;
  4112. esac
  4113. fi
  4114. fi
  4115. rm -rf conftest*
  4116. ;;
  4117. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4118. s390*-*linux*|sparc*-*linux*)
  4119. # Find out which ABI we are using.
  4120. echo 'int i;' > conftest.$ac_ext
  4121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4122. (eval $ac_compile) 2>&5
  4123. ac_status=$?
  4124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4125. (exit $ac_status); }; then
  4126. case `/usr/bin/file conftest.o` in
  4127. *32-bit*)
  4128. case $host in
  4129. x86_64-*kfreebsd*-gnu)
  4130. LD="${LD-ld} -m elf_i386_fbsd"
  4131. ;;
  4132. x86_64-*linux*)
  4133. LD="${LD-ld} -m elf_i386"
  4134. ;;
  4135. ppc64-*linux*|powerpc64-*linux*)
  4136. LD="${LD-ld} -m elf32ppclinux"
  4137. ;;
  4138. s390x-*linux*)
  4139. LD="${LD-ld} -m elf_s390"
  4140. ;;
  4141. sparc64-*linux*)
  4142. LD="${LD-ld} -m elf32_sparc"
  4143. ;;
  4144. esac
  4145. ;;
  4146. *64-bit*)
  4147. case $host in
  4148. x86_64-*kfreebsd*-gnu)
  4149. LD="${LD-ld} -m elf_x86_64_fbsd"
  4150. ;;
  4151. x86_64-*linux*)
  4152. LD="${LD-ld} -m elf_x86_64"
  4153. ;;
  4154. ppc*-*linux*|powerpc*-*linux*)
  4155. LD="${LD-ld} -m elf64ppc"
  4156. ;;
  4157. s390*-*linux*)
  4158. LD="${LD-ld} -m elf64_s390"
  4159. ;;
  4160. sparc*-*linux*)
  4161. LD="${LD-ld} -m elf64_sparc"
  4162. ;;
  4163. esac
  4164. ;;
  4165. esac
  4166. fi
  4167. rm -rf conftest*
  4168. ;;
  4169. *-*-sco3.2v5*)
  4170. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4171. SAVE_CFLAGS="$CFLAGS"
  4172. CFLAGS="$CFLAGS -belf"
  4173. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4174. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4175. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4176. echo $ECHO_N "(cached) $ECHO_C" >&6
  4177. else
  4178. ac_ext=c
  4179. ac_cpp='$CPP $CPPFLAGS'
  4180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4183. cat >conftest.$ac_ext <<_ACEOF
  4184. /* confdefs.h. */
  4185. _ACEOF
  4186. cat confdefs.h >>conftest.$ac_ext
  4187. cat >>conftest.$ac_ext <<_ACEOF
  4188. /* end confdefs.h. */
  4189. int
  4190. main ()
  4191. {
  4192. ;
  4193. return 0;
  4194. }
  4195. _ACEOF
  4196. rm -f conftest.$ac_objext conftest$ac_exeext
  4197. if { (ac_try="$ac_link"
  4198. case "(($ac_try" in
  4199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4200. *) ac_try_echo=$ac_try;;
  4201. esac
  4202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4203. (eval "$ac_link") 2>conftest.er1
  4204. ac_status=$?
  4205. grep -v '^ *+' conftest.er1 >conftest.err
  4206. rm -f conftest.er1
  4207. cat conftest.err >&5
  4208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4209. (exit $ac_status); } && {
  4210. test -z "$ac_c_werror_flag" ||
  4211. test ! -s conftest.err
  4212. } && test -s conftest$ac_exeext &&
  4213. $as_test_x conftest$ac_exeext; then
  4214. lt_cv_cc_needs_belf=yes
  4215. else
  4216. echo "$as_me: failed program was:" >&5
  4217. sed 's/^/| /' conftest.$ac_ext >&5
  4218. lt_cv_cc_needs_belf=no
  4219. fi
  4220. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4221. conftest$ac_exeext conftest.$ac_ext
  4222. ac_ext=c
  4223. ac_cpp='$CPP $CPPFLAGS'
  4224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4227. fi
  4228. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4229. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4230. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4231. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4232. CFLAGS="$SAVE_CFLAGS"
  4233. fi
  4234. ;;
  4235. sparc*-*solaris*)
  4236. # Find out which ABI we are using.
  4237. echo 'int i;' > conftest.$ac_ext
  4238. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4239. (eval $ac_compile) 2>&5
  4240. ac_status=$?
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); }; then
  4243. case `/usr/bin/file conftest.o` in
  4244. *64-bit*)
  4245. case $lt_cv_prog_gnu_ld in
  4246. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4247. *) LD="${LD-ld} -64" ;;
  4248. esac
  4249. ;;
  4250. esac
  4251. fi
  4252. rm -rf conftest*
  4253. ;;
  4254. esac
  4255. need_locks="$enable_libtool_lock"
  4256. ac_ext=c
  4257. ac_cpp='$CPP $CPPFLAGS'
  4258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4261. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4262. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4263. # On Suns, sometimes $CPP names a directory.
  4264. if test -n "$CPP" && test -d "$CPP"; then
  4265. CPP=
  4266. fi
  4267. if test -z "$CPP"; then
  4268. if test "${ac_cv_prog_CPP+set}" = set; then
  4269. echo $ECHO_N "(cached) $ECHO_C" >&6
  4270. else
  4271. # Double quotes because CPP needs to be expanded
  4272. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4273. do
  4274. ac_preproc_ok=false
  4275. for ac_c_preproc_warn_flag in '' yes
  4276. do
  4277. # Use a header file that comes with gcc, so configuring glibc
  4278. # with a fresh cross-compiler works.
  4279. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4280. # <limits.h> exists even on freestanding compilers.
  4281. # On the NeXT, cc -E runs the code through the compiler's parser,
  4282. # not just through cpp. "Syntax error" is here to catch this case.
  4283. cat >conftest.$ac_ext <<_ACEOF
  4284. /* confdefs.h. */
  4285. _ACEOF
  4286. cat confdefs.h >>conftest.$ac_ext
  4287. cat >>conftest.$ac_ext <<_ACEOF
  4288. /* end confdefs.h. */
  4289. #ifdef __STDC__
  4290. # include <limits.h>
  4291. #else
  4292. # include <assert.h>
  4293. #endif
  4294. Syntax error
  4295. _ACEOF
  4296. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4297. case "(($ac_try" in
  4298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4299. *) ac_try_echo=$ac_try;;
  4300. esac
  4301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4302. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } >/dev/null && {
  4309. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4310. test ! -s conftest.err
  4311. }; then
  4312. :
  4313. else
  4314. echo "$as_me: failed program was:" >&5
  4315. sed 's/^/| /' conftest.$ac_ext >&5
  4316. # Broken: fails on valid input.
  4317. continue
  4318. fi
  4319. rm -f conftest.err conftest.$ac_ext
  4320. # OK, works on sane cases. Now check whether nonexistent headers
  4321. # can be detected and how.
  4322. cat >conftest.$ac_ext <<_ACEOF
  4323. /* confdefs.h. */
  4324. _ACEOF
  4325. cat confdefs.h >>conftest.$ac_ext
  4326. cat >>conftest.$ac_ext <<_ACEOF
  4327. /* end confdefs.h. */
  4328. #include <ac_nonexistent.h>
  4329. _ACEOF
  4330. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4331. case "(($ac_try" in
  4332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4333. *) ac_try_echo=$ac_try;;
  4334. esac
  4335. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4336. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4337. ac_status=$?
  4338. grep -v '^ *+' conftest.er1 >conftest.err
  4339. rm -f conftest.er1
  4340. cat conftest.err >&5
  4341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4342. (exit $ac_status); } >/dev/null && {
  4343. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4344. test ! -s conftest.err
  4345. }; then
  4346. # Broken: success on invalid input.
  4347. continue
  4348. else
  4349. echo "$as_me: failed program was:" >&5
  4350. sed 's/^/| /' conftest.$ac_ext >&5
  4351. # Passes both tests.
  4352. ac_preproc_ok=:
  4353. break
  4354. fi
  4355. rm -f conftest.err conftest.$ac_ext
  4356. done
  4357. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4358. rm -f conftest.err conftest.$ac_ext
  4359. if $ac_preproc_ok; then
  4360. break
  4361. fi
  4362. done
  4363. ac_cv_prog_CPP=$CPP
  4364. fi
  4365. CPP=$ac_cv_prog_CPP
  4366. else
  4367. ac_cv_prog_CPP=$CPP
  4368. fi
  4369. { echo "$as_me:$LINENO: result: $CPP" >&5
  4370. echo "${ECHO_T}$CPP" >&6; }
  4371. ac_preproc_ok=false
  4372. for ac_c_preproc_warn_flag in '' yes
  4373. do
  4374. # Use a header file that comes with gcc, so configuring glibc
  4375. # with a fresh cross-compiler works.
  4376. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4377. # <limits.h> exists even on freestanding compilers.
  4378. # On the NeXT, cc -E runs the code through the compiler's parser,
  4379. # not just through cpp. "Syntax error" is here to catch this case.
  4380. cat >conftest.$ac_ext <<_ACEOF
  4381. /* confdefs.h. */
  4382. _ACEOF
  4383. cat confdefs.h >>conftest.$ac_ext
  4384. cat >>conftest.$ac_ext <<_ACEOF
  4385. /* end confdefs.h. */
  4386. #ifdef __STDC__
  4387. # include <limits.h>
  4388. #else
  4389. # include <assert.h>
  4390. #endif
  4391. Syntax error
  4392. _ACEOF
  4393. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4394. case "(($ac_try" in
  4395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4396. *) ac_try_echo=$ac_try;;
  4397. esac
  4398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4399. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4400. ac_status=$?
  4401. grep -v '^ *+' conftest.er1 >conftest.err
  4402. rm -f conftest.er1
  4403. cat conftest.err >&5
  4404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4405. (exit $ac_status); } >/dev/null && {
  4406. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4407. test ! -s conftest.err
  4408. }; then
  4409. :
  4410. else
  4411. echo "$as_me: failed program was:" >&5
  4412. sed 's/^/| /' conftest.$ac_ext >&5
  4413. # Broken: fails on valid input.
  4414. continue
  4415. fi
  4416. rm -f conftest.err conftest.$ac_ext
  4417. # OK, works on sane cases. Now check whether nonexistent headers
  4418. # can be detected and how.
  4419. cat >conftest.$ac_ext <<_ACEOF
  4420. /* confdefs.h. */
  4421. _ACEOF
  4422. cat confdefs.h >>conftest.$ac_ext
  4423. cat >>conftest.$ac_ext <<_ACEOF
  4424. /* end confdefs.h. */
  4425. #include <ac_nonexistent.h>
  4426. _ACEOF
  4427. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4428. case "(($ac_try" in
  4429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4430. *) ac_try_echo=$ac_try;;
  4431. esac
  4432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4433. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4434. ac_status=$?
  4435. grep -v '^ *+' conftest.er1 >conftest.err
  4436. rm -f conftest.er1
  4437. cat conftest.err >&5
  4438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4439. (exit $ac_status); } >/dev/null && {
  4440. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4441. test ! -s conftest.err
  4442. }; then
  4443. # Broken: success on invalid input.
  4444. continue
  4445. else
  4446. echo "$as_me: failed program was:" >&5
  4447. sed 's/^/| /' conftest.$ac_ext >&5
  4448. # Passes both tests.
  4449. ac_preproc_ok=:
  4450. break
  4451. fi
  4452. rm -f conftest.err conftest.$ac_ext
  4453. done
  4454. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4455. rm -f conftest.err conftest.$ac_ext
  4456. if $ac_preproc_ok; then
  4457. :
  4458. else
  4459. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4460. See \`config.log' for more details." >&5
  4461. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4462. See \`config.log' for more details." >&2;}
  4463. { (exit 1); exit 1; }; }
  4464. fi
  4465. ac_ext=c
  4466. ac_cpp='$CPP $CPPFLAGS'
  4467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4470. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4471. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4472. if test "${ac_cv_header_stdc+set}" = set; then
  4473. echo $ECHO_N "(cached) $ECHO_C" >&6
  4474. else
  4475. cat >conftest.$ac_ext <<_ACEOF
  4476. /* confdefs.h. */
  4477. _ACEOF
  4478. cat confdefs.h >>conftest.$ac_ext
  4479. cat >>conftest.$ac_ext <<_ACEOF
  4480. /* end confdefs.h. */
  4481. #include <stdlib.h>
  4482. #include <stdarg.h>
  4483. #include <string.h>
  4484. #include <float.h>
  4485. int
  4486. main ()
  4487. {
  4488. ;
  4489. return 0;
  4490. }
  4491. _ACEOF
  4492. rm -f conftest.$ac_objext
  4493. if { (ac_try="$ac_compile"
  4494. case "(($ac_try" in
  4495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4496. *) ac_try_echo=$ac_try;;
  4497. esac
  4498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4499. (eval "$ac_compile") 2>conftest.er1
  4500. ac_status=$?
  4501. grep -v '^ *+' conftest.er1 >conftest.err
  4502. rm -f conftest.er1
  4503. cat conftest.err >&5
  4504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4505. (exit $ac_status); } && {
  4506. test -z "$ac_c_werror_flag" ||
  4507. test ! -s conftest.err
  4508. } && test -s conftest.$ac_objext; then
  4509. ac_cv_header_stdc=yes
  4510. else
  4511. echo "$as_me: failed program was:" >&5
  4512. sed 's/^/| /' conftest.$ac_ext >&5
  4513. ac_cv_header_stdc=no
  4514. fi
  4515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4516. if test $ac_cv_header_stdc = yes; then
  4517. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4518. cat >conftest.$ac_ext <<_ACEOF
  4519. /* confdefs.h. */
  4520. _ACEOF
  4521. cat confdefs.h >>conftest.$ac_ext
  4522. cat >>conftest.$ac_ext <<_ACEOF
  4523. /* end confdefs.h. */
  4524. #include <string.h>
  4525. _ACEOF
  4526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4527. $EGREP "memchr" >/dev/null 2>&1; then
  4528. :
  4529. else
  4530. ac_cv_header_stdc=no
  4531. fi
  4532. rm -f conftest*
  4533. fi
  4534. if test $ac_cv_header_stdc = yes; then
  4535. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4536. cat >conftest.$ac_ext <<_ACEOF
  4537. /* confdefs.h. */
  4538. _ACEOF
  4539. cat confdefs.h >>conftest.$ac_ext
  4540. cat >>conftest.$ac_ext <<_ACEOF
  4541. /* end confdefs.h. */
  4542. #include <stdlib.h>
  4543. _ACEOF
  4544. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4545. $EGREP "free" >/dev/null 2>&1; then
  4546. :
  4547. else
  4548. ac_cv_header_stdc=no
  4549. fi
  4550. rm -f conftest*
  4551. fi
  4552. if test $ac_cv_header_stdc = yes; then
  4553. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4554. if test "$cross_compiling" = yes; then
  4555. :
  4556. else
  4557. cat >conftest.$ac_ext <<_ACEOF
  4558. /* confdefs.h. */
  4559. _ACEOF
  4560. cat confdefs.h >>conftest.$ac_ext
  4561. cat >>conftest.$ac_ext <<_ACEOF
  4562. /* end confdefs.h. */
  4563. #include <ctype.h>
  4564. #include <stdlib.h>
  4565. #if ((' ' & 0x0FF) == 0x020)
  4566. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4567. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4568. #else
  4569. # define ISLOWER(c) \
  4570. (('a' <= (c) && (c) <= 'i') \
  4571. || ('j' <= (c) && (c) <= 'r') \
  4572. || ('s' <= (c) && (c) <= 'z'))
  4573. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4574. #endif
  4575. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4576. int
  4577. main ()
  4578. {
  4579. int i;
  4580. for (i = 0; i < 256; i++)
  4581. if (XOR (islower (i), ISLOWER (i))
  4582. || toupper (i) != TOUPPER (i))
  4583. return 2;
  4584. return 0;
  4585. }
  4586. _ACEOF
  4587. rm -f conftest$ac_exeext
  4588. if { (ac_try="$ac_link"
  4589. case "(($ac_try" in
  4590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4591. *) ac_try_echo=$ac_try;;
  4592. esac
  4593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4594. (eval "$ac_link") 2>&5
  4595. ac_status=$?
  4596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4597. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4598. { (case "(($ac_try" in
  4599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4600. *) ac_try_echo=$ac_try;;
  4601. esac
  4602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4603. (eval "$ac_try") 2>&5
  4604. ac_status=$?
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); }; }; then
  4607. :
  4608. else
  4609. echo "$as_me: program exited with status $ac_status" >&5
  4610. echo "$as_me: failed program was:" >&5
  4611. sed 's/^/| /' conftest.$ac_ext >&5
  4612. ( exit $ac_status )
  4613. ac_cv_header_stdc=no
  4614. fi
  4615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4616. fi
  4617. fi
  4618. fi
  4619. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4620. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4621. if test $ac_cv_header_stdc = yes; then
  4622. cat >>confdefs.h <<\_ACEOF
  4623. #define STDC_HEADERS 1
  4624. _ACEOF
  4625. fi
  4626. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4627. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4628. inttypes.h stdint.h unistd.h
  4629. do
  4630. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4631. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4632. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4633. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4634. echo $ECHO_N "(cached) $ECHO_C" >&6
  4635. else
  4636. cat >conftest.$ac_ext <<_ACEOF
  4637. /* confdefs.h. */
  4638. _ACEOF
  4639. cat confdefs.h >>conftest.$ac_ext
  4640. cat >>conftest.$ac_ext <<_ACEOF
  4641. /* end confdefs.h. */
  4642. $ac_includes_default
  4643. #include <$ac_header>
  4644. _ACEOF
  4645. rm -f conftest.$ac_objext
  4646. if { (ac_try="$ac_compile"
  4647. case "(($ac_try" in
  4648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4649. *) ac_try_echo=$ac_try;;
  4650. esac
  4651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4652. (eval "$ac_compile") 2>conftest.er1
  4653. ac_status=$?
  4654. grep -v '^ *+' conftest.er1 >conftest.err
  4655. rm -f conftest.er1
  4656. cat conftest.err >&5
  4657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4658. (exit $ac_status); } && {
  4659. test -z "$ac_c_werror_flag" ||
  4660. test ! -s conftest.err
  4661. } && test -s conftest.$ac_objext; then
  4662. eval "$as_ac_Header=yes"
  4663. else
  4664. echo "$as_me: failed program was:" >&5
  4665. sed 's/^/| /' conftest.$ac_ext >&5
  4666. eval "$as_ac_Header=no"
  4667. fi
  4668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4669. fi
  4670. ac_res=`eval echo '${'$as_ac_Header'}'`
  4671. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4672. echo "${ECHO_T}$ac_res" >&6; }
  4673. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4674. cat >>confdefs.h <<_ACEOF
  4675. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4676. _ACEOF
  4677. fi
  4678. done
  4679. for ac_header in dlfcn.h
  4680. do
  4681. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4683. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4684. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4685. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4686. echo $ECHO_N "(cached) $ECHO_C" >&6
  4687. fi
  4688. ac_res=`eval echo '${'$as_ac_Header'}'`
  4689. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4690. echo "${ECHO_T}$ac_res" >&6; }
  4691. else
  4692. # Is the header compilable?
  4693. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4694. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4695. cat >conftest.$ac_ext <<_ACEOF
  4696. /* confdefs.h. */
  4697. _ACEOF
  4698. cat confdefs.h >>conftest.$ac_ext
  4699. cat >>conftest.$ac_ext <<_ACEOF
  4700. /* end confdefs.h. */
  4701. $ac_includes_default
  4702. #include <$ac_header>
  4703. _ACEOF
  4704. rm -f conftest.$ac_objext
  4705. if { (ac_try="$ac_compile"
  4706. case "(($ac_try" in
  4707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4708. *) ac_try_echo=$ac_try;;
  4709. esac
  4710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4711. (eval "$ac_compile") 2>conftest.er1
  4712. ac_status=$?
  4713. grep -v '^ *+' conftest.er1 >conftest.err
  4714. rm -f conftest.er1
  4715. cat conftest.err >&5
  4716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4717. (exit $ac_status); } && {
  4718. test -z "$ac_c_werror_flag" ||
  4719. test ! -s conftest.err
  4720. } && test -s conftest.$ac_objext; then
  4721. ac_header_compiler=yes
  4722. else
  4723. echo "$as_me: failed program was:" >&5
  4724. sed 's/^/| /' conftest.$ac_ext >&5
  4725. ac_header_compiler=no
  4726. fi
  4727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4728. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4729. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4730. # Is the header present?
  4731. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4732. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4733. cat >conftest.$ac_ext <<_ACEOF
  4734. /* confdefs.h. */
  4735. _ACEOF
  4736. cat confdefs.h >>conftest.$ac_ext
  4737. cat >>conftest.$ac_ext <<_ACEOF
  4738. /* end confdefs.h. */
  4739. #include <$ac_header>
  4740. _ACEOF
  4741. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4742. case "(($ac_try" in
  4743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4744. *) ac_try_echo=$ac_try;;
  4745. esac
  4746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4747. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4748. ac_status=$?
  4749. grep -v '^ *+' conftest.er1 >conftest.err
  4750. rm -f conftest.er1
  4751. cat conftest.err >&5
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); } >/dev/null && {
  4754. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4755. test ! -s conftest.err
  4756. }; then
  4757. ac_header_preproc=yes
  4758. else
  4759. echo "$as_me: failed program was:" >&5
  4760. sed 's/^/| /' conftest.$ac_ext >&5
  4761. ac_header_preproc=no
  4762. fi
  4763. rm -f conftest.err conftest.$ac_ext
  4764. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4765. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4766. # So? What about this header?
  4767. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4768. yes:no: )
  4769. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4770. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4771. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4772. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4773. ac_header_preproc=yes
  4774. ;;
  4775. no:yes:* )
  4776. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4777. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4778. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4779. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4780. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4781. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4782. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4783. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4784. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4785. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4786. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4787. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4788. ;;
  4789. esac
  4790. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4791. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4792. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4793. echo $ECHO_N "(cached) $ECHO_C" >&6
  4794. else
  4795. eval "$as_ac_Header=\$ac_header_preproc"
  4796. fi
  4797. ac_res=`eval echo '${'$as_ac_Header'}'`
  4798. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4799. echo "${ECHO_T}$ac_res" >&6; }
  4800. fi
  4801. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4802. cat >>confdefs.h <<_ACEOF
  4803. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4804. _ACEOF
  4805. fi
  4806. done
  4807. ac_ext=cpp
  4808. ac_cpp='$CXXCPP $CPPFLAGS'
  4809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4812. if test -z "$CXX"; then
  4813. if test -n "$CCC"; then
  4814. CXX=$CCC
  4815. else
  4816. if test -n "$ac_tool_prefix"; then
  4817. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4818. do
  4819. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4820. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4821. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4822. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4823. if test "${ac_cv_prog_CXX+set}" = set; then
  4824. echo $ECHO_N "(cached) $ECHO_C" >&6
  4825. else
  4826. if test -n "$CXX"; then
  4827. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4828. else
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4836. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4837. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4838. break 2
  4839. fi
  4840. done
  4841. done
  4842. IFS=$as_save_IFS
  4843. fi
  4844. fi
  4845. CXX=$ac_cv_prog_CXX
  4846. if test -n "$CXX"; then
  4847. { echo "$as_me:$LINENO: result: $CXX" >&5
  4848. echo "${ECHO_T}$CXX" >&6; }
  4849. else
  4850. { echo "$as_me:$LINENO: result: no" >&5
  4851. echo "${ECHO_T}no" >&6; }
  4852. fi
  4853. test -n "$CXX" && break
  4854. done
  4855. fi
  4856. if test -z "$CXX"; then
  4857. ac_ct_CXX=$CXX
  4858. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4859. do
  4860. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4861. set dummy $ac_prog; ac_word=$2
  4862. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4863. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4864. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4865. echo $ECHO_N "(cached) $ECHO_C" >&6
  4866. else
  4867. if test -n "$ac_ct_CXX"; then
  4868. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4869. else
  4870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4871. for as_dir in $PATH
  4872. do
  4873. IFS=$as_save_IFS
  4874. test -z "$as_dir" && as_dir=.
  4875. for ac_exec_ext in '' $ac_executable_extensions; do
  4876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4877. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4878. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4879. break 2
  4880. fi
  4881. done
  4882. done
  4883. IFS=$as_save_IFS
  4884. fi
  4885. fi
  4886. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4887. if test -n "$ac_ct_CXX"; then
  4888. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4889. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4890. else
  4891. { echo "$as_me:$LINENO: result: no" >&5
  4892. echo "${ECHO_T}no" >&6; }
  4893. fi
  4894. test -n "$ac_ct_CXX" && break
  4895. done
  4896. if test "x$ac_ct_CXX" = x; then
  4897. CXX="g++"
  4898. else
  4899. case $cross_compiling:$ac_tool_warned in
  4900. yes:)
  4901. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4902. whose name does not start with the host triplet. If you think this
  4903. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4904. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4905. whose name does not start with the host triplet. If you think this
  4906. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4907. ac_tool_warned=yes ;;
  4908. esac
  4909. CXX=$ac_ct_CXX
  4910. fi
  4911. fi
  4912. fi
  4913. fi
  4914. # Provide some information about the compiler.
  4915. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4916. ac_compiler=`set X $ac_compile; echo $2`
  4917. { (ac_try="$ac_compiler --version >&5"
  4918. case "(($ac_try" in
  4919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4920. *) ac_try_echo=$ac_try;;
  4921. esac
  4922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4923. (eval "$ac_compiler --version >&5") 2>&5
  4924. ac_status=$?
  4925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4926. (exit $ac_status); }
  4927. { (ac_try="$ac_compiler -v >&5"
  4928. case "(($ac_try" in
  4929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4930. *) ac_try_echo=$ac_try;;
  4931. esac
  4932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4933. (eval "$ac_compiler -v >&5") 2>&5
  4934. ac_status=$?
  4935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4936. (exit $ac_status); }
  4937. { (ac_try="$ac_compiler -V >&5"
  4938. case "(($ac_try" in
  4939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4940. *) ac_try_echo=$ac_try;;
  4941. esac
  4942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4943. (eval "$ac_compiler -V >&5") 2>&5
  4944. ac_status=$?
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); }
  4947. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4948. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4949. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4950. echo $ECHO_N "(cached) $ECHO_C" >&6
  4951. else
  4952. cat >conftest.$ac_ext <<_ACEOF
  4953. /* confdefs.h. */
  4954. _ACEOF
  4955. cat confdefs.h >>conftest.$ac_ext
  4956. cat >>conftest.$ac_ext <<_ACEOF
  4957. /* end confdefs.h. */
  4958. int
  4959. main ()
  4960. {
  4961. #ifndef __GNUC__
  4962. choke me
  4963. #endif
  4964. ;
  4965. return 0;
  4966. }
  4967. _ACEOF
  4968. rm -f conftest.$ac_objext
  4969. if { (ac_try="$ac_compile"
  4970. case "(($ac_try" in
  4971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4972. *) ac_try_echo=$ac_try;;
  4973. esac
  4974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4975. (eval "$ac_compile") 2>conftest.er1
  4976. ac_status=$?
  4977. grep -v '^ *+' conftest.er1 >conftest.err
  4978. rm -f conftest.er1
  4979. cat conftest.err >&5
  4980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4981. (exit $ac_status); } && {
  4982. test -z "$ac_cxx_werror_flag" ||
  4983. test ! -s conftest.err
  4984. } && test -s conftest.$ac_objext; then
  4985. ac_compiler_gnu=yes
  4986. else
  4987. echo "$as_me: failed program was:" >&5
  4988. sed 's/^/| /' conftest.$ac_ext >&5
  4989. ac_compiler_gnu=no
  4990. fi
  4991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4992. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4993. fi
  4994. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4995. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4996. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4997. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4998. ac_save_CXXFLAGS=$CXXFLAGS
  4999. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5000. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5001. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5002. echo $ECHO_N "(cached) $ECHO_C" >&6
  5003. else
  5004. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5005. ac_cxx_werror_flag=yes
  5006. ac_cv_prog_cxx_g=no
  5007. CXXFLAGS="-g"
  5008. cat >conftest.$ac_ext <<_ACEOF
  5009. /* confdefs.h. */
  5010. _ACEOF
  5011. cat confdefs.h >>conftest.$ac_ext
  5012. cat >>conftest.$ac_ext <<_ACEOF
  5013. /* end confdefs.h. */
  5014. int
  5015. main ()
  5016. {
  5017. ;
  5018. return 0;
  5019. }
  5020. _ACEOF
  5021. rm -f conftest.$ac_objext
  5022. if { (ac_try="$ac_compile"
  5023. case "(($ac_try" in
  5024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5025. *) ac_try_echo=$ac_try;;
  5026. esac
  5027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5028. (eval "$ac_compile") 2>conftest.er1
  5029. ac_status=$?
  5030. grep -v '^ *+' conftest.er1 >conftest.err
  5031. rm -f conftest.er1
  5032. cat conftest.err >&5
  5033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); } && {
  5035. test -z "$ac_cxx_werror_flag" ||
  5036. test ! -s conftest.err
  5037. } && test -s conftest.$ac_objext; then
  5038. ac_cv_prog_cxx_g=yes
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. CXXFLAGS=""
  5043. cat >conftest.$ac_ext <<_ACEOF
  5044. /* confdefs.h. */
  5045. _ACEOF
  5046. cat confdefs.h >>conftest.$ac_ext
  5047. cat >>conftest.$ac_ext <<_ACEOF
  5048. /* end confdefs.h. */
  5049. int
  5050. main ()
  5051. {
  5052. ;
  5053. return 0;
  5054. }
  5055. _ACEOF
  5056. rm -f conftest.$ac_objext
  5057. if { (ac_try="$ac_compile"
  5058. case "(($ac_try" in
  5059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5060. *) ac_try_echo=$ac_try;;
  5061. esac
  5062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5063. (eval "$ac_compile") 2>conftest.er1
  5064. ac_status=$?
  5065. grep -v '^ *+' conftest.er1 >conftest.err
  5066. rm -f conftest.er1
  5067. cat conftest.err >&5
  5068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5069. (exit $ac_status); } && {
  5070. test -z "$ac_cxx_werror_flag" ||
  5071. test ! -s conftest.err
  5072. } && test -s conftest.$ac_objext; then
  5073. :
  5074. else
  5075. echo "$as_me: failed program was:" >&5
  5076. sed 's/^/| /' conftest.$ac_ext >&5
  5077. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5078. CXXFLAGS="-g"
  5079. cat >conftest.$ac_ext <<_ACEOF
  5080. /* confdefs.h. */
  5081. _ACEOF
  5082. cat confdefs.h >>conftest.$ac_ext
  5083. cat >>conftest.$ac_ext <<_ACEOF
  5084. /* end confdefs.h. */
  5085. int
  5086. main ()
  5087. {
  5088. ;
  5089. return 0;
  5090. }
  5091. _ACEOF
  5092. rm -f conftest.$ac_objext
  5093. if { (ac_try="$ac_compile"
  5094. case "(($ac_try" in
  5095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5096. *) ac_try_echo=$ac_try;;
  5097. esac
  5098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5099. (eval "$ac_compile") 2>conftest.er1
  5100. ac_status=$?
  5101. grep -v '^ *+' conftest.er1 >conftest.err
  5102. rm -f conftest.er1
  5103. cat conftest.err >&5
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); } && {
  5106. test -z "$ac_cxx_werror_flag" ||
  5107. test ! -s conftest.err
  5108. } && test -s conftest.$ac_objext; then
  5109. ac_cv_prog_cxx_g=yes
  5110. else
  5111. echo "$as_me: failed program was:" >&5
  5112. sed 's/^/| /' conftest.$ac_ext >&5
  5113. fi
  5114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5115. fi
  5116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5117. fi
  5118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5119. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5120. fi
  5121. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5122. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5123. if test "$ac_test_CXXFLAGS" = set; then
  5124. CXXFLAGS=$ac_save_CXXFLAGS
  5125. elif test $ac_cv_prog_cxx_g = yes; then
  5126. if test "$GXX" = yes; then
  5127. CXXFLAGS="-g -O2"
  5128. else
  5129. CXXFLAGS="-g"
  5130. fi
  5131. else
  5132. if test "$GXX" = yes; then
  5133. CXXFLAGS="-O2"
  5134. else
  5135. CXXFLAGS=
  5136. fi
  5137. fi
  5138. ac_ext=cpp
  5139. ac_cpp='$CXXCPP $CPPFLAGS'
  5140. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5141. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5142. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5143. depcc="$CXX" am_compiler_list=
  5144. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5145. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5146. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5147. echo $ECHO_N "(cached) $ECHO_C" >&6
  5148. else
  5149. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5150. # We make a subdir and do the tests there. Otherwise we can end up
  5151. # making bogus files that we don't know about and never remove. For
  5152. # instance it was reported that on HP-UX the gcc test will end up
  5153. # making a dummy file named `D' -- because `-MD' means `put the output
  5154. # in D'.
  5155. mkdir conftest.dir
  5156. # Copy depcomp to subdir because otherwise we won't find it if we're
  5157. # using a relative directory.
  5158. cp "$am_depcomp" conftest.dir
  5159. cd conftest.dir
  5160. # We will build objects and dependencies in a subdirectory because
  5161. # it helps to detect inapplicable dependency modes. For instance
  5162. # both Tru64's cc and ICC support -MD to output dependencies as a
  5163. # side effect of compilation, but ICC will put the dependencies in
  5164. # the current directory while Tru64 will put them in the object
  5165. # directory.
  5166. mkdir sub
  5167. am_cv_CXX_dependencies_compiler_type=none
  5168. if test "$am_compiler_list" = ""; then
  5169. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5170. fi
  5171. for depmode in $am_compiler_list; do
  5172. # Setup a source with many dependencies, because some compilers
  5173. # like to wrap large dependency lists on column 80 (with \), and
  5174. # we should not choose a depcomp mode which is confused by this.
  5175. #
  5176. # We need to recreate these files for each test, as the compiler may
  5177. # overwrite some of them when testing with obscure command lines.
  5178. # This happens at least with the AIX C compiler.
  5179. : > sub/conftest.c
  5180. for i in 1 2 3 4 5 6; do
  5181. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5182. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5183. # Solaris 8's {/usr,}/bin/sh.
  5184. touch sub/conftst$i.h
  5185. done
  5186. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5187. case $depmode in
  5188. nosideeffect)
  5189. # after this tag, mechanisms are not by side-effect, so they'll
  5190. # only be used when explicitly requested
  5191. if test "x$enable_dependency_tracking" = xyes; then
  5192. continue
  5193. else
  5194. break
  5195. fi
  5196. ;;
  5197. none) break ;;
  5198. esac
  5199. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5200. # mode. It turns out that the SunPro C++ compiler does not properly
  5201. # handle `-M -o', and we need to detect this.
  5202. if depmode=$depmode \
  5203. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5204. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5205. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5206. >/dev/null 2>conftest.err &&
  5207. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5208. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5209. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5210. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5211. # icc doesn't choke on unknown options, it will just issue warnings
  5212. # or remarks (even with -Werror). So we grep stderr for any message
  5213. # that says an option was ignored or not supported.
  5214. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5215. # icc: Command line warning: ignoring option '-M'; no argument required
  5216. # The diagnosis changed in icc 8.0:
  5217. # icc: Command line remark: option '-MP' not supported
  5218. if (grep 'ignoring option' conftest.err ||
  5219. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5220. am_cv_CXX_dependencies_compiler_type=$depmode
  5221. break
  5222. fi
  5223. fi
  5224. done
  5225. cd ..
  5226. rm -rf conftest.dir
  5227. else
  5228. am_cv_CXX_dependencies_compiler_type=none
  5229. fi
  5230. fi
  5231. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5232. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5233. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5234. if
  5235. test "x$enable_dependency_tracking" != xno \
  5236. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5237. am__fastdepCXX_TRUE=
  5238. am__fastdepCXX_FALSE='#'
  5239. else
  5240. am__fastdepCXX_TRUE='#'
  5241. am__fastdepCXX_FALSE=
  5242. fi
  5243. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5244. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5245. (test "X$CXX" != "Xg++"))) ; then
  5246. ac_ext=cpp
  5247. ac_cpp='$CXXCPP $CPPFLAGS'
  5248. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5249. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5250. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5251. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5252. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5253. if test -z "$CXXCPP"; then
  5254. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5255. echo $ECHO_N "(cached) $ECHO_C" >&6
  5256. else
  5257. # Double quotes because CXXCPP needs to be expanded
  5258. for CXXCPP in "$CXX -E" "/lib/cpp"
  5259. do
  5260. ac_preproc_ok=false
  5261. for ac_cxx_preproc_warn_flag in '' yes
  5262. do
  5263. # Use a header file that comes with gcc, so configuring glibc
  5264. # with a fresh cross-compiler works.
  5265. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5266. # <limits.h> exists even on freestanding compilers.
  5267. # On the NeXT, cc -E runs the code through the compiler's parser,
  5268. # not just through cpp. "Syntax error" is here to catch this case.
  5269. cat >conftest.$ac_ext <<_ACEOF
  5270. /* confdefs.h. */
  5271. _ACEOF
  5272. cat confdefs.h >>conftest.$ac_ext
  5273. cat >>conftest.$ac_ext <<_ACEOF
  5274. /* end confdefs.h. */
  5275. #ifdef __STDC__
  5276. # include <limits.h>
  5277. #else
  5278. # include <assert.h>
  5279. #endif
  5280. Syntax error
  5281. _ACEOF
  5282. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5283. case "(($ac_try" in
  5284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5285. *) ac_try_echo=$ac_try;;
  5286. esac
  5287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5288. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5289. ac_status=$?
  5290. grep -v '^ *+' conftest.er1 >conftest.err
  5291. rm -f conftest.er1
  5292. cat conftest.err >&5
  5293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5294. (exit $ac_status); } >/dev/null && {
  5295. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5296. test ! -s conftest.err
  5297. }; then
  5298. :
  5299. else
  5300. echo "$as_me: failed program was:" >&5
  5301. sed 's/^/| /' conftest.$ac_ext >&5
  5302. # Broken: fails on valid input.
  5303. continue
  5304. fi
  5305. rm -f conftest.err conftest.$ac_ext
  5306. # OK, works on sane cases. Now check whether nonexistent headers
  5307. # can be detected and how.
  5308. cat >conftest.$ac_ext <<_ACEOF
  5309. /* confdefs.h. */
  5310. _ACEOF
  5311. cat confdefs.h >>conftest.$ac_ext
  5312. cat >>conftest.$ac_ext <<_ACEOF
  5313. /* end confdefs.h. */
  5314. #include <ac_nonexistent.h>
  5315. _ACEOF
  5316. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5317. case "(($ac_try" in
  5318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5319. *) ac_try_echo=$ac_try;;
  5320. esac
  5321. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5322. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5323. ac_status=$?
  5324. grep -v '^ *+' conftest.er1 >conftest.err
  5325. rm -f conftest.er1
  5326. cat conftest.err >&5
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); } >/dev/null && {
  5329. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5330. test ! -s conftest.err
  5331. }; then
  5332. # Broken: success on invalid input.
  5333. continue
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337. # Passes both tests.
  5338. ac_preproc_ok=:
  5339. break
  5340. fi
  5341. rm -f conftest.err conftest.$ac_ext
  5342. done
  5343. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5344. rm -f conftest.err conftest.$ac_ext
  5345. if $ac_preproc_ok; then
  5346. break
  5347. fi
  5348. done
  5349. ac_cv_prog_CXXCPP=$CXXCPP
  5350. fi
  5351. CXXCPP=$ac_cv_prog_CXXCPP
  5352. else
  5353. ac_cv_prog_CXXCPP=$CXXCPP
  5354. fi
  5355. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5356. echo "${ECHO_T}$CXXCPP" >&6; }
  5357. ac_preproc_ok=false
  5358. for ac_cxx_preproc_warn_flag in '' yes
  5359. do
  5360. # Use a header file that comes with gcc, so configuring glibc
  5361. # with a fresh cross-compiler works.
  5362. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5363. # <limits.h> exists even on freestanding compilers.
  5364. # On the NeXT, cc -E runs the code through the compiler's parser,
  5365. # not just through cpp. "Syntax error" is here to catch this case.
  5366. cat >conftest.$ac_ext <<_ACEOF
  5367. /* confdefs.h. */
  5368. _ACEOF
  5369. cat confdefs.h >>conftest.$ac_ext
  5370. cat >>conftest.$ac_ext <<_ACEOF
  5371. /* end confdefs.h. */
  5372. #ifdef __STDC__
  5373. # include <limits.h>
  5374. #else
  5375. # include <assert.h>
  5376. #endif
  5377. Syntax error
  5378. _ACEOF
  5379. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5380. case "(($ac_try" in
  5381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5382. *) ac_try_echo=$ac_try;;
  5383. esac
  5384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5385. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5386. ac_status=$?
  5387. grep -v '^ *+' conftest.er1 >conftest.err
  5388. rm -f conftest.er1
  5389. cat conftest.err >&5
  5390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5391. (exit $ac_status); } >/dev/null && {
  5392. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5393. test ! -s conftest.err
  5394. }; then
  5395. :
  5396. else
  5397. echo "$as_me: failed program was:" >&5
  5398. sed 's/^/| /' conftest.$ac_ext >&5
  5399. # Broken: fails on valid input.
  5400. continue
  5401. fi
  5402. rm -f conftest.err conftest.$ac_ext
  5403. # OK, works on sane cases. Now check whether nonexistent headers
  5404. # can be detected and how.
  5405. cat >conftest.$ac_ext <<_ACEOF
  5406. /* confdefs.h. */
  5407. _ACEOF
  5408. cat confdefs.h >>conftest.$ac_ext
  5409. cat >>conftest.$ac_ext <<_ACEOF
  5410. /* end confdefs.h. */
  5411. #include <ac_nonexistent.h>
  5412. _ACEOF
  5413. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5414. case "(($ac_try" in
  5415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5416. *) ac_try_echo=$ac_try;;
  5417. esac
  5418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5419. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5420. ac_status=$?
  5421. grep -v '^ *+' conftest.er1 >conftest.err
  5422. rm -f conftest.er1
  5423. cat conftest.err >&5
  5424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5425. (exit $ac_status); } >/dev/null && {
  5426. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5427. test ! -s conftest.err
  5428. }; then
  5429. # Broken: success on invalid input.
  5430. continue
  5431. else
  5432. echo "$as_me: failed program was:" >&5
  5433. sed 's/^/| /' conftest.$ac_ext >&5
  5434. # Passes both tests.
  5435. ac_preproc_ok=:
  5436. break
  5437. fi
  5438. rm -f conftest.err conftest.$ac_ext
  5439. done
  5440. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5441. rm -f conftest.err conftest.$ac_ext
  5442. if $ac_preproc_ok; then
  5443. :
  5444. else
  5445. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5446. See \`config.log' for more details." >&5
  5447. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5448. See \`config.log' for more details." >&2;}
  5449. { (exit 1); exit 1; }; }
  5450. fi
  5451. ac_ext=cpp
  5452. ac_cpp='$CXXCPP $CPPFLAGS'
  5453. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5454. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5455. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5456. fi
  5457. ac_ext=f
  5458. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5459. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5460. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5461. if test -n "$ac_tool_prefix"; then
  5462. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5463. do
  5464. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5465. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5466. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5467. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5468. if test "${ac_cv_prog_F77+set}" = set; then
  5469. echo $ECHO_N "(cached) $ECHO_C" >&6
  5470. else
  5471. if test -n "$F77"; then
  5472. ac_cv_prog_F77="$F77" # Let the user override the test.
  5473. else
  5474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5475. for as_dir in $PATH
  5476. do
  5477. IFS=$as_save_IFS
  5478. test -z "$as_dir" && as_dir=.
  5479. for ac_exec_ext in '' $ac_executable_extensions; do
  5480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5481. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5482. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5483. break 2
  5484. fi
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. fi
  5490. F77=$ac_cv_prog_F77
  5491. if test -n "$F77"; then
  5492. { echo "$as_me:$LINENO: result: $F77" >&5
  5493. echo "${ECHO_T}$F77" >&6; }
  5494. else
  5495. { echo "$as_me:$LINENO: result: no" >&5
  5496. echo "${ECHO_T}no" >&6; }
  5497. fi
  5498. test -n "$F77" && break
  5499. done
  5500. fi
  5501. if test -z "$F77"; then
  5502. ac_ct_F77=$F77
  5503. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5504. do
  5505. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5506. set dummy $ac_prog; ac_word=$2
  5507. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5508. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5509. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5510. echo $ECHO_N "(cached) $ECHO_C" >&6
  5511. else
  5512. if test -n "$ac_ct_F77"; then
  5513. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5514. else
  5515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5516. for as_dir in $PATH
  5517. do
  5518. IFS=$as_save_IFS
  5519. test -z "$as_dir" && as_dir=.
  5520. for ac_exec_ext in '' $ac_executable_extensions; do
  5521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5522. ac_cv_prog_ac_ct_F77="$ac_prog"
  5523. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5524. break 2
  5525. fi
  5526. done
  5527. done
  5528. IFS=$as_save_IFS
  5529. fi
  5530. fi
  5531. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5532. if test -n "$ac_ct_F77"; then
  5533. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5534. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5535. else
  5536. { echo "$as_me:$LINENO: result: no" >&5
  5537. echo "${ECHO_T}no" >&6; }
  5538. fi
  5539. test -n "$ac_ct_F77" && break
  5540. done
  5541. if test "x$ac_ct_F77" = x; then
  5542. F77=""
  5543. else
  5544. case $cross_compiling:$ac_tool_warned in
  5545. yes:)
  5546. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5547. whose name does not start with the host triplet. If you think this
  5548. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5549. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5550. whose name does not start with the host triplet. If you think this
  5551. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5552. ac_tool_warned=yes ;;
  5553. esac
  5554. F77=$ac_ct_F77
  5555. fi
  5556. fi
  5557. # Provide some information about the compiler.
  5558. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5559. ac_compiler=`set X $ac_compile; echo $2`
  5560. { (ac_try="$ac_compiler --version >&5"
  5561. case "(($ac_try" in
  5562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5563. *) ac_try_echo=$ac_try;;
  5564. esac
  5565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5566. (eval "$ac_compiler --version >&5") 2>&5
  5567. ac_status=$?
  5568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5569. (exit $ac_status); }
  5570. { (ac_try="$ac_compiler -v >&5"
  5571. case "(($ac_try" in
  5572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5573. *) ac_try_echo=$ac_try;;
  5574. esac
  5575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5576. (eval "$ac_compiler -v >&5") 2>&5
  5577. ac_status=$?
  5578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5579. (exit $ac_status); }
  5580. { (ac_try="$ac_compiler -V >&5"
  5581. case "(($ac_try" in
  5582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5583. *) ac_try_echo=$ac_try;;
  5584. esac
  5585. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5586. (eval "$ac_compiler -V >&5") 2>&5
  5587. ac_status=$?
  5588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5589. (exit $ac_status); }
  5590. rm -f a.out
  5591. # If we don't use `.F' as extension, the preprocessor is not run on the
  5592. # input file. (Note that this only needs to work for GNU compilers.)
  5593. ac_save_ext=$ac_ext
  5594. ac_ext=F
  5595. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5596. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5597. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5598. echo $ECHO_N "(cached) $ECHO_C" >&6
  5599. else
  5600. cat >conftest.$ac_ext <<_ACEOF
  5601. program main
  5602. #ifndef __GNUC__
  5603. choke me
  5604. #endif
  5605. end
  5606. _ACEOF
  5607. rm -f conftest.$ac_objext
  5608. if { (ac_try="$ac_compile"
  5609. case "(($ac_try" in
  5610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5611. *) ac_try_echo=$ac_try;;
  5612. esac
  5613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5614. (eval "$ac_compile") 2>conftest.er1
  5615. ac_status=$?
  5616. grep -v '^ *+' conftest.er1 >conftest.err
  5617. rm -f conftest.er1
  5618. cat conftest.err >&5
  5619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5620. (exit $ac_status); } && {
  5621. test -z "$ac_f77_werror_flag" ||
  5622. test ! -s conftest.err
  5623. } && test -s conftest.$ac_objext; then
  5624. ac_compiler_gnu=yes
  5625. else
  5626. echo "$as_me: failed program was:" >&5
  5627. sed 's/^/| /' conftest.$ac_ext >&5
  5628. ac_compiler_gnu=no
  5629. fi
  5630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5631. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5632. fi
  5633. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5634. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5635. ac_ext=$ac_save_ext
  5636. ac_test_FFLAGS=${FFLAGS+set}
  5637. ac_save_FFLAGS=$FFLAGS
  5638. FFLAGS=
  5639. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5640. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5641. if test "${ac_cv_prog_f77_g+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. FFLAGS=-g
  5645. cat >conftest.$ac_ext <<_ACEOF
  5646. program main
  5647. end
  5648. _ACEOF
  5649. rm -f conftest.$ac_objext
  5650. if { (ac_try="$ac_compile"
  5651. case "(($ac_try" in
  5652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5653. *) ac_try_echo=$ac_try;;
  5654. esac
  5655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5656. (eval "$ac_compile") 2>conftest.er1
  5657. ac_status=$?
  5658. grep -v '^ *+' conftest.er1 >conftest.err
  5659. rm -f conftest.er1
  5660. cat conftest.err >&5
  5661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662. (exit $ac_status); } && {
  5663. test -z "$ac_f77_werror_flag" ||
  5664. test ! -s conftest.err
  5665. } && test -s conftest.$ac_objext; then
  5666. ac_cv_prog_f77_g=yes
  5667. else
  5668. echo "$as_me: failed program was:" >&5
  5669. sed 's/^/| /' conftest.$ac_ext >&5
  5670. ac_cv_prog_f77_g=no
  5671. fi
  5672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5673. fi
  5674. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5675. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5676. if test "$ac_test_FFLAGS" = set; then
  5677. FFLAGS=$ac_save_FFLAGS
  5678. elif test $ac_cv_prog_f77_g = yes; then
  5679. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5680. FFLAGS="-g -O2"
  5681. else
  5682. FFLAGS="-g"
  5683. fi
  5684. else
  5685. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5686. FFLAGS="-O2"
  5687. else
  5688. FFLAGS=
  5689. fi
  5690. fi
  5691. G77=`test $ac_compiler_gnu = yes && echo yes`
  5692. ac_ext=c
  5693. ac_cpp='$CPP $CPPFLAGS'
  5694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5697. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5698. # find the maximum length of command line arguments
  5699. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5700. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5701. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5702. echo $ECHO_N "(cached) $ECHO_C" >&6
  5703. else
  5704. i=0
  5705. teststring="ABCD"
  5706. case $build_os in
  5707. msdosdjgpp*)
  5708. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5709. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5710. # during glob expansion). Even if it were fixed, the result of this
  5711. # check would be larger than it should be.
  5712. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5713. ;;
  5714. gnu*)
  5715. # Under GNU Hurd, this test is not required because there is
  5716. # no limit to the length of command line arguments.
  5717. # Libtool will interpret -1 as no limit whatsoever
  5718. lt_cv_sys_max_cmd_len=-1;
  5719. ;;
  5720. cygwin* | mingw*)
  5721. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5722. # about 5 minutes as the teststring grows exponentially.
  5723. # Worse, since 9x/ME are not pre-emptively multitasking,
  5724. # you end up with a "frozen" computer, even though with patience
  5725. # the test eventually succeeds (with a max line length of 256k).
  5726. # Instead, let's just punt: use the minimum linelength reported by
  5727. # all of the supported platforms: 8192 (on NT/2K/XP).
  5728. lt_cv_sys_max_cmd_len=8192;
  5729. ;;
  5730. amigaos*)
  5731. # On AmigaOS with pdksh, this test takes hours, literally.
  5732. # So we just punt and use a minimum line length of 8192.
  5733. lt_cv_sys_max_cmd_len=8192;
  5734. ;;
  5735. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5736. # This has been around since 386BSD, at least. Likely further.
  5737. if test -x /sbin/sysctl; then
  5738. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5739. elif test -x /usr/sbin/sysctl; then
  5740. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5741. else
  5742. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5743. fi
  5744. # And add a safety zone
  5745. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5746. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5747. ;;
  5748. interix*)
  5749. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5750. lt_cv_sys_max_cmd_len=196608
  5751. ;;
  5752. osf*)
  5753. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5754. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5755. # nice to cause kernel panics so lets avoid the loop below.
  5756. # First set a reasonable default.
  5757. lt_cv_sys_max_cmd_len=16384
  5758. #
  5759. if test -x /sbin/sysconfig; then
  5760. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5761. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5762. esac
  5763. fi
  5764. ;;
  5765. sco3.2v5*)
  5766. lt_cv_sys_max_cmd_len=102400
  5767. ;;
  5768. sysv5* | sco5v6* | sysv4.2uw2*)
  5769. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5770. if test -n "$kargmax"; then
  5771. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5772. else
  5773. lt_cv_sys_max_cmd_len=32768
  5774. fi
  5775. ;;
  5776. *)
  5777. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5778. if test -n "$lt_cv_sys_max_cmd_len"; then
  5779. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5780. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5781. else
  5782. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5783. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5784. = "XX$teststring") >/dev/null 2>&1 &&
  5785. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5786. lt_cv_sys_max_cmd_len=$new_result &&
  5787. test $i != 17 # 1/2 MB should be enough
  5788. do
  5789. i=`expr $i + 1`
  5790. teststring=$teststring$teststring
  5791. done
  5792. teststring=
  5793. # Add a significant safety factor because C++ compilers can tack on massive
  5794. # amounts of additional arguments before passing them to the linker.
  5795. # It appears as though 1/2 is a usable value.
  5796. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5797. fi
  5798. ;;
  5799. esac
  5800. fi
  5801. if test -n $lt_cv_sys_max_cmd_len ; then
  5802. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5803. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5804. else
  5805. { echo "$as_me:$LINENO: result: none" >&5
  5806. echo "${ECHO_T}none" >&6; }
  5807. fi
  5808. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5809. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5810. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5811. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5812. echo $ECHO_N "(cached) $ECHO_C" >&6
  5813. else
  5814. # These are sane defaults that work on at least a few old systems.
  5815. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5816. # Character class describing NM global symbol codes.
  5817. symcode='[BCDEGRST]'
  5818. # Regexp to match symbols that can be accessed directly from C.
  5819. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5820. # Transform an extracted symbol line into a proper C declaration
  5821. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5822. # Transform an extracted symbol line into symbol name and symbol address
  5823. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5824. # Define system-specific variables.
  5825. case $host_os in
  5826. aix*)
  5827. symcode='[BCDT]'
  5828. ;;
  5829. cygwin* | mingw* | pw32*)
  5830. symcode='[ABCDGISTW]'
  5831. ;;
  5832. hpux*) # Its linker distinguishes data from code symbols
  5833. if test "$host_cpu" = ia64; then
  5834. symcode='[ABCDEGRST]'
  5835. fi
  5836. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5837. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5838. ;;
  5839. linux* | k*bsd*-gnu)
  5840. if test "$host_cpu" = ia64; then
  5841. symcode='[ABCDGIRSTW]'
  5842. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5843. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5844. fi
  5845. ;;
  5846. irix* | nonstopux*)
  5847. symcode='[BCDEGRST]'
  5848. ;;
  5849. osf*)
  5850. symcode='[BCDEGQRST]'
  5851. ;;
  5852. solaris*)
  5853. symcode='[BDRT]'
  5854. ;;
  5855. sco3.2v5*)
  5856. symcode='[DT]'
  5857. ;;
  5858. sysv4.2uw2*)
  5859. symcode='[DT]'
  5860. ;;
  5861. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5862. symcode='[ABDT]'
  5863. ;;
  5864. sysv4)
  5865. symcode='[DFNSTU]'
  5866. ;;
  5867. esac
  5868. # Handle CRLF in mingw tool chain
  5869. opt_cr=
  5870. case $build_os in
  5871. mingw*)
  5872. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5873. ;;
  5874. esac
  5875. # If we're using GNU nm, then use its standard symbol codes.
  5876. case `$NM -V 2>&1` in
  5877. *GNU* | *'with BFD'*)
  5878. symcode='[ABCDGIRSTW]' ;;
  5879. esac
  5880. # Try without a prefix undercore, then with it.
  5881. for ac_symprfx in "" "_"; do
  5882. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5883. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5884. # Write the raw and C identifiers.
  5885. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5886. # Check to see that the pipe works correctly.
  5887. pipe_works=no
  5888. rm -f conftest*
  5889. cat > conftest.$ac_ext <<EOF
  5890. #ifdef __cplusplus
  5891. extern "C" {
  5892. #endif
  5893. char nm_test_var;
  5894. void nm_test_func(){}
  5895. #ifdef __cplusplus
  5896. }
  5897. #endif
  5898. int main(){nm_test_var='a';nm_test_func();return(0);}
  5899. EOF
  5900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5901. (eval $ac_compile) 2>&5
  5902. ac_status=$?
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); }; then
  5905. # Now try to grab the symbols.
  5906. nlist=conftest.nm
  5907. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5908. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5909. ac_status=$?
  5910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5911. (exit $ac_status); } && test -s "$nlist"; then
  5912. # Try sorting and uniquifying the output.
  5913. if sort "$nlist" | uniq > "$nlist"T; then
  5914. mv -f "$nlist"T "$nlist"
  5915. else
  5916. rm -f "$nlist"T
  5917. fi
  5918. # Make sure that we snagged all the symbols we need.
  5919. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5920. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5921. cat <<EOF > conftest.$ac_ext
  5922. #ifdef __cplusplus
  5923. extern "C" {
  5924. #endif
  5925. EOF
  5926. # Now generate the symbol file.
  5927. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5928. cat <<EOF >> conftest.$ac_ext
  5929. #if defined (__STDC__) && __STDC__
  5930. # define lt_ptr_t void *
  5931. #else
  5932. # define lt_ptr_t char *
  5933. # define const
  5934. #endif
  5935. /* The mapping between symbol names and symbols. */
  5936. const struct {
  5937. const char *name;
  5938. lt_ptr_t address;
  5939. }
  5940. lt_preloaded_symbols[] =
  5941. {
  5942. EOF
  5943. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5944. cat <<\EOF >> conftest.$ac_ext
  5945. {0, (lt_ptr_t) 0}
  5946. };
  5947. #ifdef __cplusplus
  5948. }
  5949. #endif
  5950. EOF
  5951. # Now try linking the two files.
  5952. mv conftest.$ac_objext conftstm.$ac_objext
  5953. lt_save_LIBS="$LIBS"
  5954. lt_save_CFLAGS="$CFLAGS"
  5955. LIBS="conftstm.$ac_objext"
  5956. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5957. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5958. (eval $ac_link) 2>&5
  5959. ac_status=$?
  5960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5961. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5962. pipe_works=yes
  5963. fi
  5964. LIBS="$lt_save_LIBS"
  5965. CFLAGS="$lt_save_CFLAGS"
  5966. else
  5967. echo "cannot find nm_test_func in $nlist" >&5
  5968. fi
  5969. else
  5970. echo "cannot find nm_test_var in $nlist" >&5
  5971. fi
  5972. else
  5973. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5974. fi
  5975. else
  5976. echo "$progname: failed program was:" >&5
  5977. cat conftest.$ac_ext >&5
  5978. fi
  5979. rm -f conftest* conftst*
  5980. # Do not use the global_symbol_pipe unless it works.
  5981. if test "$pipe_works" = yes; then
  5982. break
  5983. else
  5984. lt_cv_sys_global_symbol_pipe=
  5985. fi
  5986. done
  5987. fi
  5988. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5989. lt_cv_sys_global_symbol_to_cdecl=
  5990. fi
  5991. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5992. { echo "$as_me:$LINENO: result: failed" >&5
  5993. echo "${ECHO_T}failed" >&6; }
  5994. else
  5995. { echo "$as_me:$LINENO: result: ok" >&5
  5996. echo "${ECHO_T}ok" >&6; }
  5997. fi
  5998. { echo "$as_me:$LINENO: checking for objdir" >&5
  5999. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6000. if test "${lt_cv_objdir+set}" = set; then
  6001. echo $ECHO_N "(cached) $ECHO_C" >&6
  6002. else
  6003. rm -f .libs 2>/dev/null
  6004. mkdir .libs 2>/dev/null
  6005. if test -d .libs; then
  6006. lt_cv_objdir=.libs
  6007. else
  6008. # MS-DOS does not allow filenames that begin with a dot.
  6009. lt_cv_objdir=_libs
  6010. fi
  6011. rmdir .libs 2>/dev/null
  6012. fi
  6013. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6014. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6015. objdir=$lt_cv_objdir
  6016. case $host_os in
  6017. aix3*)
  6018. # AIX sometimes has problems with the GCC collect2 program. For some
  6019. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6020. # vanish in a puff of smoke.
  6021. if test "X${COLLECT_NAMES+set}" != Xset; then
  6022. COLLECT_NAMES=
  6023. export COLLECT_NAMES
  6024. fi
  6025. ;;
  6026. esac
  6027. # Sed substitution that helps us do robust quoting. It backslashifies
  6028. # metacharacters that are still active within double-quoted strings.
  6029. Xsed='sed -e 1s/^X//'
  6030. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6031. # Same as above, but do not quote variable references.
  6032. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6033. # Sed substitution to delay expansion of an escaped shell variable in a
  6034. # double_quote_subst'ed string.
  6035. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6036. # Sed substitution to avoid accidental globbing in evaled expressions
  6037. no_glob_subst='s/\*/\\\*/g'
  6038. # Constants:
  6039. rm="rm -f"
  6040. # Global variables:
  6041. default_ofile=libtool
  6042. can_build_shared=yes
  6043. # All known linkers require a `.a' archive for static linking (except MSVC,
  6044. # which needs '.lib').
  6045. libext=a
  6046. ltmain="$ac_aux_dir/ltmain.sh"
  6047. ofile="$default_ofile"
  6048. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6049. if test -n "$ac_tool_prefix"; then
  6050. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6051. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6052. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6054. if test "${ac_cv_prog_AR+set}" = set; then
  6055. echo $ECHO_N "(cached) $ECHO_C" >&6
  6056. else
  6057. if test -n "$AR"; then
  6058. ac_cv_prog_AR="$AR" # Let the user override the test.
  6059. else
  6060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6061. for as_dir in $PATH
  6062. do
  6063. IFS=$as_save_IFS
  6064. test -z "$as_dir" && as_dir=.
  6065. for ac_exec_ext in '' $ac_executable_extensions; do
  6066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6067. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6068. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6069. break 2
  6070. fi
  6071. done
  6072. done
  6073. IFS=$as_save_IFS
  6074. fi
  6075. fi
  6076. AR=$ac_cv_prog_AR
  6077. if test -n "$AR"; then
  6078. { echo "$as_me:$LINENO: result: $AR" >&5
  6079. echo "${ECHO_T}$AR" >&6; }
  6080. else
  6081. { echo "$as_me:$LINENO: result: no" >&5
  6082. echo "${ECHO_T}no" >&6; }
  6083. fi
  6084. fi
  6085. if test -z "$ac_cv_prog_AR"; then
  6086. ac_ct_AR=$AR
  6087. # Extract the first word of "ar", so it can be a program name with args.
  6088. set dummy ar; ac_word=$2
  6089. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6090. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6091. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6092. echo $ECHO_N "(cached) $ECHO_C" >&6
  6093. else
  6094. if test -n "$ac_ct_AR"; then
  6095. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6096. else
  6097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6098. for as_dir in $PATH
  6099. do
  6100. IFS=$as_save_IFS
  6101. test -z "$as_dir" && as_dir=.
  6102. for ac_exec_ext in '' $ac_executable_extensions; do
  6103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6104. ac_cv_prog_ac_ct_AR="ar"
  6105. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6106. break 2
  6107. fi
  6108. done
  6109. done
  6110. IFS=$as_save_IFS
  6111. fi
  6112. fi
  6113. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6114. if test -n "$ac_ct_AR"; then
  6115. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6116. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6117. else
  6118. { echo "$as_me:$LINENO: result: no" >&5
  6119. echo "${ECHO_T}no" >&6; }
  6120. fi
  6121. if test "x$ac_ct_AR" = x; then
  6122. AR="false"
  6123. else
  6124. case $cross_compiling:$ac_tool_warned in
  6125. yes:)
  6126. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6127. whose name does not start with the host triplet. If you think this
  6128. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6129. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6130. whose name does not start with the host triplet. If you think this
  6131. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6132. ac_tool_warned=yes ;;
  6133. esac
  6134. AR=$ac_ct_AR
  6135. fi
  6136. else
  6137. AR="$ac_cv_prog_AR"
  6138. fi
  6139. if test -n "$ac_tool_prefix"; then
  6140. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6141. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6142. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6144. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6145. echo $ECHO_N "(cached) $ECHO_C" >&6
  6146. else
  6147. if test -n "$RANLIB"; then
  6148. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6149. else
  6150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6151. for as_dir in $PATH
  6152. do
  6153. IFS=$as_save_IFS
  6154. test -z "$as_dir" && as_dir=.
  6155. for ac_exec_ext in '' $ac_executable_extensions; do
  6156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6157. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6159. break 2
  6160. fi
  6161. done
  6162. done
  6163. IFS=$as_save_IFS
  6164. fi
  6165. fi
  6166. RANLIB=$ac_cv_prog_RANLIB
  6167. if test -n "$RANLIB"; then
  6168. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6169. echo "${ECHO_T}$RANLIB" >&6; }
  6170. else
  6171. { echo "$as_me:$LINENO: result: no" >&5
  6172. echo "${ECHO_T}no" >&6; }
  6173. fi
  6174. fi
  6175. if test -z "$ac_cv_prog_RANLIB"; then
  6176. ac_ct_RANLIB=$RANLIB
  6177. # Extract the first word of "ranlib", so it can be a program name with args.
  6178. set dummy ranlib; ac_word=$2
  6179. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6181. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6182. echo $ECHO_N "(cached) $ECHO_C" >&6
  6183. else
  6184. if test -n "$ac_ct_RANLIB"; then
  6185. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6186. else
  6187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6188. for as_dir in $PATH
  6189. do
  6190. IFS=$as_save_IFS
  6191. test -z "$as_dir" && as_dir=.
  6192. for ac_exec_ext in '' $ac_executable_extensions; do
  6193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6194. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6195. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6196. break 2
  6197. fi
  6198. done
  6199. done
  6200. IFS=$as_save_IFS
  6201. fi
  6202. fi
  6203. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6204. if test -n "$ac_ct_RANLIB"; then
  6205. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6206. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6207. else
  6208. { echo "$as_me:$LINENO: result: no" >&5
  6209. echo "${ECHO_T}no" >&6; }
  6210. fi
  6211. if test "x$ac_ct_RANLIB" = x; then
  6212. RANLIB=":"
  6213. else
  6214. case $cross_compiling:$ac_tool_warned in
  6215. yes:)
  6216. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6217. whose name does not start with the host triplet. If you think this
  6218. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6219. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6220. whose name does not start with the host triplet. If you think this
  6221. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6222. ac_tool_warned=yes ;;
  6223. esac
  6224. RANLIB=$ac_ct_RANLIB
  6225. fi
  6226. else
  6227. RANLIB="$ac_cv_prog_RANLIB"
  6228. fi
  6229. if test -n "$ac_tool_prefix"; then
  6230. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6231. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6232. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6233. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6234. if test "${ac_cv_prog_STRIP+set}" = set; then
  6235. echo $ECHO_N "(cached) $ECHO_C" >&6
  6236. else
  6237. if test -n "$STRIP"; then
  6238. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6239. else
  6240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6241. for as_dir in $PATH
  6242. do
  6243. IFS=$as_save_IFS
  6244. test -z "$as_dir" && as_dir=.
  6245. for ac_exec_ext in '' $ac_executable_extensions; do
  6246. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6247. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6248. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6249. break 2
  6250. fi
  6251. done
  6252. done
  6253. IFS=$as_save_IFS
  6254. fi
  6255. fi
  6256. STRIP=$ac_cv_prog_STRIP
  6257. if test -n "$STRIP"; then
  6258. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6259. echo "${ECHO_T}$STRIP" >&6; }
  6260. else
  6261. { echo "$as_me:$LINENO: result: no" >&5
  6262. echo "${ECHO_T}no" >&6; }
  6263. fi
  6264. fi
  6265. if test -z "$ac_cv_prog_STRIP"; then
  6266. ac_ct_STRIP=$STRIP
  6267. # Extract the first word of "strip", so it can be a program name with args.
  6268. set dummy strip; ac_word=$2
  6269. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6270. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6271. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6272. echo $ECHO_N "(cached) $ECHO_C" >&6
  6273. else
  6274. if test -n "$ac_ct_STRIP"; then
  6275. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6276. else
  6277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6278. for as_dir in $PATH
  6279. do
  6280. IFS=$as_save_IFS
  6281. test -z "$as_dir" && as_dir=.
  6282. for ac_exec_ext in '' $ac_executable_extensions; do
  6283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6284. ac_cv_prog_ac_ct_STRIP="strip"
  6285. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6286. break 2
  6287. fi
  6288. done
  6289. done
  6290. IFS=$as_save_IFS
  6291. fi
  6292. fi
  6293. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6294. if test -n "$ac_ct_STRIP"; then
  6295. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6296. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6297. else
  6298. { echo "$as_me:$LINENO: result: no" >&5
  6299. echo "${ECHO_T}no" >&6; }
  6300. fi
  6301. if test "x$ac_ct_STRIP" = x; then
  6302. STRIP=":"
  6303. else
  6304. case $cross_compiling:$ac_tool_warned in
  6305. yes:)
  6306. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6307. whose name does not start with the host triplet. If you think this
  6308. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6309. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6310. whose name does not start with the host triplet. If you think this
  6311. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6312. ac_tool_warned=yes ;;
  6313. esac
  6314. STRIP=$ac_ct_STRIP
  6315. fi
  6316. else
  6317. STRIP="$ac_cv_prog_STRIP"
  6318. fi
  6319. old_CC="$CC"
  6320. old_CFLAGS="$CFLAGS"
  6321. # Set sane defaults for various variables
  6322. test -z "$AR" && AR=ar
  6323. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6324. test -z "$AS" && AS=as
  6325. test -z "$CC" && CC=cc
  6326. test -z "$LTCC" && LTCC=$CC
  6327. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6328. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6329. test -z "$LD" && LD=ld
  6330. test -z "$LN_S" && LN_S="ln -s"
  6331. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6332. test -z "$NM" && NM=nm
  6333. test -z "$SED" && SED=sed
  6334. test -z "$OBJDUMP" && OBJDUMP=objdump
  6335. test -z "$RANLIB" && RANLIB=:
  6336. test -z "$STRIP" && STRIP=:
  6337. test -z "$ac_objext" && ac_objext=o
  6338. # Determine commands to create old-style static archives.
  6339. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6340. old_postinstall_cmds='chmod 644 $oldlib'
  6341. old_postuninstall_cmds=
  6342. if test -n "$RANLIB"; then
  6343. case $host_os in
  6344. openbsd*)
  6345. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6346. ;;
  6347. *)
  6348. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6349. ;;
  6350. esac
  6351. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6352. fi
  6353. for cc_temp in $compiler""; do
  6354. case $cc_temp in
  6355. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6356. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6357. \-*) ;;
  6358. *) break;;
  6359. esac
  6360. done
  6361. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6362. # Only perform the check for file, if the check method requires it
  6363. case $deplibs_check_method in
  6364. file_magic*)
  6365. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6366. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6367. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6368. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6369. echo $ECHO_N "(cached) $ECHO_C" >&6
  6370. else
  6371. case $MAGIC_CMD in
  6372. [\\/*] | ?:[\\/]*)
  6373. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6374. ;;
  6375. *)
  6376. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6377. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6378. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6379. for ac_dir in $ac_dummy; do
  6380. IFS="$lt_save_ifs"
  6381. test -z "$ac_dir" && ac_dir=.
  6382. if test -f $ac_dir/${ac_tool_prefix}file; then
  6383. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6384. if test -n "$file_magic_test_file"; then
  6385. case $deplibs_check_method in
  6386. "file_magic "*)
  6387. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6388. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6389. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6390. $EGREP "$file_magic_regex" > /dev/null; then
  6391. :
  6392. else
  6393. cat <<EOF 1>&2
  6394. *** Warning: the command libtool uses to detect shared libraries,
  6395. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6396. *** The result is that libtool may fail to recognize shared libraries
  6397. *** as such. This will affect the creation of libtool libraries that
  6398. *** depend on shared libraries, but programs linked with such libtool
  6399. *** libraries will work regardless of this problem. Nevertheless, you
  6400. *** may want to report the problem to your system manager and/or to
  6401. *** bug-libtool@gnu.org
  6402. EOF
  6403. fi ;;
  6404. esac
  6405. fi
  6406. break
  6407. fi
  6408. done
  6409. IFS="$lt_save_ifs"
  6410. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6411. ;;
  6412. esac
  6413. fi
  6414. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6415. if test -n "$MAGIC_CMD"; then
  6416. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6417. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6418. else
  6419. { echo "$as_me:$LINENO: result: no" >&5
  6420. echo "${ECHO_T}no" >&6; }
  6421. fi
  6422. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6423. if test -n "$ac_tool_prefix"; then
  6424. { echo "$as_me:$LINENO: checking for file" >&5
  6425. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6426. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6427. echo $ECHO_N "(cached) $ECHO_C" >&6
  6428. else
  6429. case $MAGIC_CMD in
  6430. [\\/*] | ?:[\\/]*)
  6431. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6432. ;;
  6433. *)
  6434. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6435. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6436. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6437. for ac_dir in $ac_dummy; do
  6438. IFS="$lt_save_ifs"
  6439. test -z "$ac_dir" && ac_dir=.
  6440. if test -f $ac_dir/file; then
  6441. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6442. if test -n "$file_magic_test_file"; then
  6443. case $deplibs_check_method in
  6444. "file_magic "*)
  6445. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6446. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6447. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6448. $EGREP "$file_magic_regex" > /dev/null; then
  6449. :
  6450. else
  6451. cat <<EOF 1>&2
  6452. *** Warning: the command libtool uses to detect shared libraries,
  6453. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6454. *** The result is that libtool may fail to recognize shared libraries
  6455. *** as such. This will affect the creation of libtool libraries that
  6456. *** depend on shared libraries, but programs linked with such libtool
  6457. *** libraries will work regardless of this problem. Nevertheless, you
  6458. *** may want to report the problem to your system manager and/or to
  6459. *** bug-libtool@gnu.org
  6460. EOF
  6461. fi ;;
  6462. esac
  6463. fi
  6464. break
  6465. fi
  6466. done
  6467. IFS="$lt_save_ifs"
  6468. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6469. ;;
  6470. esac
  6471. fi
  6472. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6473. if test -n "$MAGIC_CMD"; then
  6474. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6475. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6476. else
  6477. { echo "$as_me:$LINENO: result: no" >&5
  6478. echo "${ECHO_T}no" >&6; }
  6479. fi
  6480. else
  6481. MAGIC_CMD=:
  6482. fi
  6483. fi
  6484. fi
  6485. ;;
  6486. esac
  6487. enable_dlopen=no
  6488. enable_win32_dll=no
  6489. # Check whether --enable-libtool-lock was given.
  6490. if test "${enable_libtool_lock+set}" = set; then
  6491. enableval=$enable_libtool_lock;
  6492. fi
  6493. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6494. # Check whether --with-pic was given.
  6495. if test "${with_pic+set}" = set; then
  6496. withval=$with_pic; pic_mode="$withval"
  6497. else
  6498. pic_mode=default
  6499. fi
  6500. test -z "$pic_mode" && pic_mode=default
  6501. # Use C for the default configuration in the libtool script
  6502. tagname=
  6503. lt_save_CC="$CC"
  6504. ac_ext=c
  6505. ac_cpp='$CPP $CPPFLAGS'
  6506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6509. # Source file extension for C test sources.
  6510. ac_ext=c
  6511. # Object file extension for compiled C test sources.
  6512. objext=o
  6513. objext=$objext
  6514. # Code to be used in simple compile tests
  6515. lt_simple_compile_test_code="int some_variable = 0;"
  6516. # Code to be used in simple link tests
  6517. lt_simple_link_test_code='int main(){return(0);}'
  6518. # If no C compiler was specified, use CC.
  6519. LTCC=${LTCC-"$CC"}
  6520. # If no C compiler flags were specified, use CFLAGS.
  6521. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6522. # Allow CC to be a program name with arguments.
  6523. compiler=$CC
  6524. # save warnings/boilerplate of simple test code
  6525. ac_outfile=conftest.$ac_objext
  6526. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6527. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6528. _lt_compiler_boilerplate=`cat conftest.err`
  6529. $rm conftest*
  6530. ac_outfile=conftest.$ac_objext
  6531. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6532. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6533. _lt_linker_boilerplate=`cat conftest.err`
  6534. $rm conftest*
  6535. lt_prog_compiler_no_builtin_flag=
  6536. if test "$GCC" = yes; then
  6537. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6538. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6539. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6540. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6541. echo $ECHO_N "(cached) $ECHO_C" >&6
  6542. else
  6543. lt_cv_prog_compiler_rtti_exceptions=no
  6544. ac_outfile=conftest.$ac_objext
  6545. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6546. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6547. # Insert the option either (1) after the last *FLAGS variable, or
  6548. # (2) before a word containing "conftest.", or (3) at the end.
  6549. # Note that $ac_compile itself does not contain backslashes and begins
  6550. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6551. # The option is referenced via a variable to avoid confusing sed.
  6552. lt_compile=`echo "$ac_compile" | $SED \
  6553. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6554. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6555. -e 's:$: $lt_compiler_flag:'`
  6556. (eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
  6557. (eval "$lt_compile" 2>conftest.err)
  6558. ac_status=$?
  6559. cat conftest.err >&5
  6560. echo "$as_me:7331: \$? = $ac_status" >&5
  6561. if (exit $ac_status) && test -s "$ac_outfile"; then
  6562. # The compiler can only warn and ignore the option if not recognized
  6563. # So say no if there are warnings other than the usual output.
  6564. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6565. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6566. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6567. lt_cv_prog_compiler_rtti_exceptions=yes
  6568. fi
  6569. fi
  6570. $rm conftest*
  6571. fi
  6572. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6573. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6574. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6575. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6576. else
  6577. :
  6578. fi
  6579. fi
  6580. lt_prog_compiler_wl=
  6581. lt_prog_compiler_pic=
  6582. lt_prog_compiler_static=
  6583. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6584. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6585. if test "$GCC" = yes; then
  6586. lt_prog_compiler_wl='-Wl,'
  6587. lt_prog_compiler_static='-static'
  6588. case $host_os in
  6589. aix*)
  6590. # All AIX code is PIC.
  6591. if test "$host_cpu" = ia64; then
  6592. # AIX 5 now supports IA64 processor
  6593. lt_prog_compiler_static='-Bstatic'
  6594. fi
  6595. ;;
  6596. amigaos*)
  6597. # FIXME: we need at least 68020 code to build shared libraries, but
  6598. # adding the `-m68020' flag to GCC prevents building anything better,
  6599. # like `-m68040'.
  6600. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6601. ;;
  6602. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6603. # PIC is the default for these OSes.
  6604. ;;
  6605. mingw* | cygwin* | pw32* | os2*)
  6606. # This hack is so that the source file can tell whether it is being
  6607. # built for inclusion in a dll (and should export symbols for example).
  6608. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6609. # (--disable-auto-import) libraries
  6610. lt_prog_compiler_pic='-DDLL_EXPORT'
  6611. ;;
  6612. darwin* | rhapsody*)
  6613. # PIC is the default on this platform
  6614. # Common symbols not allowed in MH_DYLIB files
  6615. lt_prog_compiler_pic='-fno-common'
  6616. ;;
  6617. interix[3-9]*)
  6618. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6619. # Instead, we relocate shared libraries at runtime.
  6620. ;;
  6621. msdosdjgpp*)
  6622. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6623. # on systems that don't support them.
  6624. lt_prog_compiler_can_build_shared=no
  6625. enable_shared=no
  6626. ;;
  6627. sysv4*MP*)
  6628. if test -d /usr/nec; then
  6629. lt_prog_compiler_pic=-Kconform_pic
  6630. fi
  6631. ;;
  6632. hpux*)
  6633. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6634. # not for PA HP-UX.
  6635. case $host_cpu in
  6636. hppa*64*|ia64*)
  6637. # +Z the default
  6638. ;;
  6639. *)
  6640. lt_prog_compiler_pic='-fPIC'
  6641. ;;
  6642. esac
  6643. ;;
  6644. *)
  6645. lt_prog_compiler_pic='-fPIC'
  6646. ;;
  6647. esac
  6648. else
  6649. # PORTME Check for flag to pass linker flags through the system compiler.
  6650. case $host_os in
  6651. aix*)
  6652. lt_prog_compiler_wl='-Wl,'
  6653. if test "$host_cpu" = ia64; then
  6654. # AIX 5 now supports IA64 processor
  6655. lt_prog_compiler_static='-Bstatic'
  6656. else
  6657. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6658. fi
  6659. ;;
  6660. darwin*)
  6661. # PIC is the default on this platform
  6662. # Common symbols not allowed in MH_DYLIB files
  6663. case $cc_basename in
  6664. xlc*)
  6665. lt_prog_compiler_pic='-qnocommon'
  6666. lt_prog_compiler_wl='-Wl,'
  6667. ;;
  6668. esac
  6669. ;;
  6670. mingw* | cygwin* | pw32* | os2*)
  6671. # This hack is so that the source file can tell whether it is being
  6672. # built for inclusion in a dll (and should export symbols for example).
  6673. lt_prog_compiler_pic='-DDLL_EXPORT'
  6674. ;;
  6675. hpux9* | hpux10* | hpux11*)
  6676. lt_prog_compiler_wl='-Wl,'
  6677. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6678. # not for PA HP-UX.
  6679. case $host_cpu in
  6680. hppa*64*|ia64*)
  6681. # +Z the default
  6682. ;;
  6683. *)
  6684. lt_prog_compiler_pic='+Z'
  6685. ;;
  6686. esac
  6687. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6688. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6689. ;;
  6690. irix5* | irix6* | nonstopux*)
  6691. lt_prog_compiler_wl='-Wl,'
  6692. # PIC (with -KPIC) is the default.
  6693. lt_prog_compiler_static='-non_shared'
  6694. ;;
  6695. newsos6)
  6696. lt_prog_compiler_pic='-KPIC'
  6697. lt_prog_compiler_static='-Bstatic'
  6698. ;;
  6699. linux* | k*bsd*-gnu)
  6700. case $cc_basename in
  6701. icc* | ecc*)
  6702. lt_prog_compiler_wl='-Wl,'
  6703. lt_prog_compiler_pic='-KPIC'
  6704. lt_prog_compiler_static='-static'
  6705. ;;
  6706. pgcc* | pgf77* | pgf90* | pgf95*)
  6707. # Portland Group compilers (*not* the Pentium gcc compiler,
  6708. # which looks to be a dead project)
  6709. lt_prog_compiler_wl='-Wl,'
  6710. lt_prog_compiler_pic='-fpic'
  6711. lt_prog_compiler_static='-Bstatic'
  6712. ;;
  6713. ccc*)
  6714. lt_prog_compiler_wl='-Wl,'
  6715. # All Alpha code is PIC.
  6716. lt_prog_compiler_static='-non_shared'
  6717. ;;
  6718. *)
  6719. case `$CC -V 2>&1 | sed 5q` in
  6720. *Sun\ C*)
  6721. # Sun C 5.9
  6722. lt_prog_compiler_pic='-KPIC'
  6723. lt_prog_compiler_static='-Bstatic'
  6724. lt_prog_compiler_wl='-Wl,'
  6725. ;;
  6726. *Sun\ F*)
  6727. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6728. lt_prog_compiler_pic='-KPIC'
  6729. lt_prog_compiler_static='-Bstatic'
  6730. lt_prog_compiler_wl=''
  6731. ;;
  6732. esac
  6733. ;;
  6734. esac
  6735. ;;
  6736. osf3* | osf4* | osf5*)
  6737. lt_prog_compiler_wl='-Wl,'
  6738. # All OSF/1 code is PIC.
  6739. lt_prog_compiler_static='-non_shared'
  6740. ;;
  6741. rdos*)
  6742. lt_prog_compiler_static='-non_shared'
  6743. ;;
  6744. solaris*)
  6745. lt_prog_compiler_pic='-KPIC'
  6746. lt_prog_compiler_static='-Bstatic'
  6747. case $cc_basename in
  6748. f77* | f90* | f95*)
  6749. lt_prog_compiler_wl='-Qoption ld ';;
  6750. *)
  6751. lt_prog_compiler_wl='-Wl,';;
  6752. esac
  6753. ;;
  6754. sunos4*)
  6755. lt_prog_compiler_wl='-Qoption ld '
  6756. lt_prog_compiler_pic='-PIC'
  6757. lt_prog_compiler_static='-Bstatic'
  6758. ;;
  6759. sysv4 | sysv4.2uw2* | sysv4.3*)
  6760. lt_prog_compiler_wl='-Wl,'
  6761. lt_prog_compiler_pic='-KPIC'
  6762. lt_prog_compiler_static='-Bstatic'
  6763. ;;
  6764. sysv4*MP*)
  6765. if test -d /usr/nec ;then
  6766. lt_prog_compiler_pic='-Kconform_pic'
  6767. lt_prog_compiler_static='-Bstatic'
  6768. fi
  6769. ;;
  6770. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6771. lt_prog_compiler_wl='-Wl,'
  6772. lt_prog_compiler_pic='-KPIC'
  6773. lt_prog_compiler_static='-Bstatic'
  6774. ;;
  6775. unicos*)
  6776. lt_prog_compiler_wl='-Wl,'
  6777. lt_prog_compiler_can_build_shared=no
  6778. ;;
  6779. uts4*)
  6780. lt_prog_compiler_pic='-pic'
  6781. lt_prog_compiler_static='-Bstatic'
  6782. ;;
  6783. *)
  6784. lt_prog_compiler_can_build_shared=no
  6785. ;;
  6786. esac
  6787. fi
  6788. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6789. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6790. #
  6791. # Check to make sure the PIC flag actually works.
  6792. #
  6793. if test -n "$lt_prog_compiler_pic"; then
  6794. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6795. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6796. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6797. echo $ECHO_N "(cached) $ECHO_C" >&6
  6798. else
  6799. lt_prog_compiler_pic_works=no
  6800. ac_outfile=conftest.$ac_objext
  6801. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6802. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6803. # Insert the option either (1) after the last *FLAGS variable, or
  6804. # (2) before a word containing "conftest.", or (3) at the end.
  6805. # Note that $ac_compile itself does not contain backslashes and begins
  6806. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6807. # The option is referenced via a variable to avoid confusing sed.
  6808. lt_compile=`echo "$ac_compile" | $SED \
  6809. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6810. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6811. -e 's:$: $lt_compiler_flag:'`
  6812. (eval echo "\"\$as_me:7617: $lt_compile\"" >&5)
  6813. (eval "$lt_compile" 2>conftest.err)
  6814. ac_status=$?
  6815. cat conftest.err >&5
  6816. echo "$as_me:7621: \$? = $ac_status" >&5
  6817. if (exit $ac_status) && test -s "$ac_outfile"; then
  6818. # The compiler can only warn and ignore the option if not recognized
  6819. # So say no if there are warnings other than the usual output.
  6820. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6821. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6822. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6823. lt_prog_compiler_pic_works=yes
  6824. fi
  6825. fi
  6826. $rm conftest*
  6827. fi
  6828. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6829. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6830. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6831. case $lt_prog_compiler_pic in
  6832. "" | " "*) ;;
  6833. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6834. esac
  6835. else
  6836. lt_prog_compiler_pic=
  6837. lt_prog_compiler_can_build_shared=no
  6838. fi
  6839. fi
  6840. case $host_os in
  6841. # For platforms which do not support PIC, -DPIC is meaningless:
  6842. *djgpp*)
  6843. lt_prog_compiler_pic=
  6844. ;;
  6845. *)
  6846. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6847. ;;
  6848. esac
  6849. #
  6850. # Check to make sure the static flag actually works.
  6851. #
  6852. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6853. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6854. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6855. if test "${lt_prog_compiler_static_works+set}" = set; then
  6856. echo $ECHO_N "(cached) $ECHO_C" >&6
  6857. else
  6858. lt_prog_compiler_static_works=no
  6859. save_LDFLAGS="$LDFLAGS"
  6860. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6861. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6862. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6863. # The linker can only warn and ignore the option if not recognized
  6864. # So say no if there are warnings
  6865. if test -s conftest.err; then
  6866. # Append any errors to the config.log.
  6867. cat conftest.err 1>&5
  6868. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6869. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6870. if diff conftest.exp conftest.er2 >/dev/null; then
  6871. lt_prog_compiler_static_works=yes
  6872. fi
  6873. else
  6874. lt_prog_compiler_static_works=yes
  6875. fi
  6876. fi
  6877. $rm conftest*
  6878. LDFLAGS="$save_LDFLAGS"
  6879. fi
  6880. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6881. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6882. if test x"$lt_prog_compiler_static_works" = xyes; then
  6883. :
  6884. else
  6885. lt_prog_compiler_static=
  6886. fi
  6887. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6888. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6889. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6890. echo $ECHO_N "(cached) $ECHO_C" >&6
  6891. else
  6892. lt_cv_prog_compiler_c_o=no
  6893. $rm -r conftest 2>/dev/null
  6894. mkdir conftest
  6895. cd conftest
  6896. mkdir out
  6897. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6898. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6899. # Insert the option either (1) after the last *FLAGS variable, or
  6900. # (2) before a word containing "conftest.", or (3) at the end.
  6901. # Note that $ac_compile itself does not contain backslashes and begins
  6902. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6903. lt_compile=`echo "$ac_compile" | $SED \
  6904. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6905. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6906. -e 's:$: $lt_compiler_flag:'`
  6907. (eval echo "\"\$as_me:7721: $lt_compile\"" >&5)
  6908. (eval "$lt_compile" 2>out/conftest.err)
  6909. ac_status=$?
  6910. cat out/conftest.err >&5
  6911. echo "$as_me:7725: \$? = $ac_status" >&5
  6912. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6913. then
  6914. # The compiler can only warn and ignore the option if not recognized
  6915. # So say no if there are warnings
  6916. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6917. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6918. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6919. lt_cv_prog_compiler_c_o=yes
  6920. fi
  6921. fi
  6922. chmod u+w . 2>&5
  6923. $rm conftest*
  6924. # SGI C++ compiler will create directory out/ii_files/ for
  6925. # template instantiation
  6926. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6927. $rm out/* && rmdir out
  6928. cd ..
  6929. rmdir conftest
  6930. $rm conftest*
  6931. fi
  6932. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6933. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6934. hard_links="nottested"
  6935. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6936. # do not overwrite the value of need_locks provided by the user
  6937. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6938. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6939. hard_links=yes
  6940. $rm conftest*
  6941. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6942. touch conftest.a
  6943. ln conftest.a conftest.b 2>&5 || hard_links=no
  6944. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6945. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6946. echo "${ECHO_T}$hard_links" >&6; }
  6947. if test "$hard_links" = no; then
  6948. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6949. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6950. need_locks=warn
  6951. fi
  6952. else
  6953. need_locks=no
  6954. fi
  6955. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6956. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6957. runpath_var=
  6958. allow_undefined_flag=
  6959. enable_shared_with_static_runtimes=no
  6960. archive_cmds=
  6961. archive_expsym_cmds=
  6962. old_archive_From_new_cmds=
  6963. old_archive_from_expsyms_cmds=
  6964. export_dynamic_flag_spec=
  6965. whole_archive_flag_spec=
  6966. thread_safe_flag_spec=
  6967. hardcode_libdir_flag_spec=
  6968. hardcode_libdir_flag_spec_ld=
  6969. hardcode_libdir_separator=
  6970. hardcode_direct=no
  6971. hardcode_minus_L=no
  6972. hardcode_shlibpath_var=unsupported
  6973. link_all_deplibs=unknown
  6974. hardcode_automatic=no
  6975. module_cmds=
  6976. module_expsym_cmds=
  6977. always_export_symbols=no
  6978. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6979. # include_expsyms should be a list of space-separated symbols to be *always*
  6980. # included in the symbol list
  6981. include_expsyms=
  6982. # exclude_expsyms can be an extended regexp of symbols to exclude
  6983. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6984. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6985. # as well as any symbol that contains `d'.
  6986. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6987. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6988. # platforms (ab)use it in PIC code, but their linkers get confused if
  6989. # the symbol is explicitly referenced. Since portable code cannot
  6990. # rely on this symbol name, it's probably fine to never include it in
  6991. # preloaded symbol tables.
  6992. extract_expsyms_cmds=
  6993. # Just being paranoid about ensuring that cc_basename is set.
  6994. for cc_temp in $compiler""; do
  6995. case $cc_temp in
  6996. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6997. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6998. \-*) ;;
  6999. *) break;;
  7000. esac
  7001. done
  7002. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7003. case $host_os in
  7004. cygwin* | mingw* | pw32*)
  7005. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7006. # When not using gcc, we currently assume that we are using
  7007. # Microsoft Visual C++.
  7008. if test "$GCC" != yes; then
  7009. with_gnu_ld=no
  7010. fi
  7011. ;;
  7012. interix*)
  7013. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7014. with_gnu_ld=yes
  7015. ;;
  7016. openbsd*)
  7017. with_gnu_ld=no
  7018. ;;
  7019. esac
  7020. ld_shlibs=yes
  7021. if test "$with_gnu_ld" = yes; then
  7022. # If archive_cmds runs LD, not CC, wlarc should be empty
  7023. wlarc='${wl}'
  7024. # Set some defaults for GNU ld with shared library support. These
  7025. # are reset later if shared libraries are not supported. Putting them
  7026. # here allows them to be overridden if necessary.
  7027. runpath_var=LD_RUN_PATH
  7028. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7029. export_dynamic_flag_spec='${wl}--export-dynamic'
  7030. # ancient GNU ld didn't support --whole-archive et. al.
  7031. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7032. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7033. else
  7034. whole_archive_flag_spec=
  7035. fi
  7036. supports_anon_versioning=no
  7037. case `$LD -v 2>/dev/null` in
  7038. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7039. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7040. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7041. *\ 2.11.*) ;; # other 2.11 versions
  7042. *) supports_anon_versioning=yes ;;
  7043. esac
  7044. # See if GNU ld supports shared libraries.
  7045. case $host_os in
  7046. aix3* | aix4* | aix5*)
  7047. # On AIX/PPC, the GNU linker is very broken
  7048. if test "$host_cpu" != ia64; then
  7049. ld_shlibs=no
  7050. cat <<EOF 1>&2
  7051. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7052. *** to be unable to reliably create shared libraries on AIX.
  7053. *** Therefore, libtool is disabling shared libraries support. If you
  7054. *** really care for shared libraries, you may want to modify your PATH
  7055. *** so that a non-GNU linker is found, and then restart.
  7056. EOF
  7057. fi
  7058. ;;
  7059. amigaos*)
  7060. 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)'
  7061. hardcode_libdir_flag_spec='-L$libdir'
  7062. hardcode_minus_L=yes
  7063. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7064. # that the semantics of dynamic libraries on AmigaOS, at least up
  7065. # to version 4, is to share data among multiple programs linked
  7066. # with the same dynamic library. Since this doesn't match the
  7067. # behavior of shared libraries on other platforms, we can't use
  7068. # them.
  7069. ld_shlibs=no
  7070. ;;
  7071. beos*)
  7072. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7073. allow_undefined_flag=unsupported
  7074. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7075. # support --undefined. This deserves some investigation. FIXME
  7076. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7077. else
  7078. ld_shlibs=no
  7079. fi
  7080. ;;
  7081. cygwin* | mingw* | pw32*)
  7082. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7083. # as there is no search path for DLLs.
  7084. hardcode_libdir_flag_spec='-L$libdir'
  7085. allow_undefined_flag=unsupported
  7086. always_export_symbols=no
  7087. enable_shared_with_static_runtimes=yes
  7088. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7089. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7090. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7091. # If the export-symbols file already is a .def file (1st line
  7092. # is EXPORTS), use it as is; otherwise, prepend...
  7093. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7094. cp $export_symbols $output_objdir/$soname.def;
  7095. else
  7096. echo EXPORTS > $output_objdir/$soname.def;
  7097. cat $export_symbols >> $output_objdir/$soname.def;
  7098. fi~
  7099. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7100. else
  7101. ld_shlibs=no
  7102. fi
  7103. ;;
  7104. interix[3-9]*)
  7105. hardcode_direct=no
  7106. hardcode_shlibpath_var=no
  7107. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7108. export_dynamic_flag_spec='${wl}-E'
  7109. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7110. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7111. # default) and relocated if they conflict, which is a slow very memory
  7112. # consuming and fragmenting process. To avoid this, we pick a random,
  7113. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7114. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7115. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7116. 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'
  7117. ;;
  7118. gnu* | linux* | k*bsd*-gnu)
  7119. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7120. tmp_addflag=
  7121. case $cc_basename,$host_cpu in
  7122. pgcc*) # Portland Group C compiler
  7123. 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'
  7124. tmp_addflag=' $pic_flag'
  7125. ;;
  7126. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7127. 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'
  7128. tmp_addflag=' $pic_flag -Mnomain' ;;
  7129. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7130. tmp_addflag=' -i_dynamic' ;;
  7131. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7132. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7133. ifc* | ifort*) # Intel Fortran compiler
  7134. tmp_addflag=' -nofor_main' ;;
  7135. esac
  7136. case `$CC -V 2>&1 | sed 5q` in
  7137. *Sun\ C*) # Sun C 5.9
  7138. 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'
  7139. tmp_sharedflag='-G' ;;
  7140. *Sun\ F*) # Sun Fortran 8.3
  7141. tmp_sharedflag='-G' ;;
  7142. *)
  7143. tmp_sharedflag='-shared' ;;
  7144. esac
  7145. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7146. if test $supports_anon_versioning = yes; then
  7147. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7148. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7149. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7150. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7151. fi
  7152. else
  7153. ld_shlibs=no
  7154. fi
  7155. ;;
  7156. netbsd*)
  7157. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7158. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7159. wlarc=
  7160. else
  7161. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7162. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7163. fi
  7164. ;;
  7165. solaris*)
  7166. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7167. ld_shlibs=no
  7168. cat <<EOF 1>&2
  7169. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7170. *** create shared libraries on Solaris systems. Therefore, libtool
  7171. *** is disabling shared libraries support. We urge you to upgrade GNU
  7172. *** binutils to release 2.9.1 or newer. Another option is to modify
  7173. *** your PATH or compiler configuration so that the native linker is
  7174. *** used, and then restart.
  7175. EOF
  7176. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7177. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7178. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7179. else
  7180. ld_shlibs=no
  7181. fi
  7182. ;;
  7183. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7184. case `$LD -v 2>&1` in
  7185. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7186. ld_shlibs=no
  7187. cat <<_LT_EOF 1>&2
  7188. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7189. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7190. *** is disabling shared libraries support. We urge you to upgrade GNU
  7191. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7192. *** your PATH or compiler configuration so that the native linker is
  7193. *** used, and then restart.
  7194. _LT_EOF
  7195. ;;
  7196. *)
  7197. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7198. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7199. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7200. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7201. else
  7202. ld_shlibs=no
  7203. fi
  7204. ;;
  7205. esac
  7206. ;;
  7207. sunos4*)
  7208. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7209. wlarc=
  7210. hardcode_direct=yes
  7211. hardcode_shlibpath_var=no
  7212. ;;
  7213. *)
  7214. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7215. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7216. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7217. else
  7218. ld_shlibs=no
  7219. fi
  7220. ;;
  7221. esac
  7222. if test "$ld_shlibs" = no; then
  7223. runpath_var=
  7224. hardcode_libdir_flag_spec=
  7225. export_dynamic_flag_spec=
  7226. whole_archive_flag_spec=
  7227. fi
  7228. else
  7229. # PORTME fill in a description of your system's linker (not GNU ld)
  7230. case $host_os in
  7231. aix3*)
  7232. allow_undefined_flag=unsupported
  7233. always_export_symbols=yes
  7234. 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'
  7235. # Note: this linker hardcodes the directories in LIBPATH if there
  7236. # are no directories specified by -L.
  7237. hardcode_minus_L=yes
  7238. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7239. # Neither direct hardcoding nor static linking is supported with a
  7240. # broken collect2.
  7241. hardcode_direct=unsupported
  7242. fi
  7243. ;;
  7244. aix4* | aix5*)
  7245. if test "$host_cpu" = ia64; then
  7246. # On IA64, the linker does run time linking by default, so we don't
  7247. # have to do anything special.
  7248. aix_use_runtimelinking=no
  7249. exp_sym_flag='-Bexport'
  7250. no_entry_flag=""
  7251. else
  7252. # If we're using GNU nm, then we don't want the "-C" option.
  7253. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7254. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7255. 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'
  7256. else
  7257. 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'
  7258. fi
  7259. aix_use_runtimelinking=no
  7260. # Test if we are trying to use run time linking or normal
  7261. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7262. # need to do runtime linking.
  7263. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7264. for ld_flag in $LDFLAGS; do
  7265. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7266. aix_use_runtimelinking=yes
  7267. break
  7268. fi
  7269. done
  7270. ;;
  7271. esac
  7272. exp_sym_flag='-bexport'
  7273. no_entry_flag='-bnoentry'
  7274. fi
  7275. # When large executables or shared objects are built, AIX ld can
  7276. # have problems creating the table of contents. If linking a library
  7277. # or program results in "error TOC overflow" add -mminimal-toc to
  7278. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7279. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7280. archive_cmds=''
  7281. hardcode_direct=yes
  7282. hardcode_libdir_separator=':'
  7283. link_all_deplibs=yes
  7284. if test "$GCC" = yes; then
  7285. case $host_os in aix4.[012]|aix4.[012].*)
  7286. # We only want to do this on AIX 4.2 and lower, the check
  7287. # below for broken collect2 doesn't work under 4.3+
  7288. collect2name=`${CC} -print-prog-name=collect2`
  7289. if test -f "$collect2name" && \
  7290. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7291. then
  7292. # We have reworked collect2
  7293. :
  7294. else
  7295. # We have old collect2
  7296. hardcode_direct=unsupported
  7297. # It fails to find uninstalled libraries when the uninstalled
  7298. # path is not listed in the libpath. Setting hardcode_minus_L
  7299. # to unsupported forces relinking
  7300. hardcode_minus_L=yes
  7301. hardcode_libdir_flag_spec='-L$libdir'
  7302. hardcode_libdir_separator=
  7303. fi
  7304. ;;
  7305. esac
  7306. shared_flag='-shared'
  7307. if test "$aix_use_runtimelinking" = yes; then
  7308. shared_flag="$shared_flag "'${wl}-G'
  7309. fi
  7310. else
  7311. # not using gcc
  7312. if test "$host_cpu" = ia64; then
  7313. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7314. # chokes on -Wl,-G. The following line is correct:
  7315. shared_flag='-G'
  7316. else
  7317. if test "$aix_use_runtimelinking" = yes; then
  7318. shared_flag='${wl}-G'
  7319. else
  7320. shared_flag='${wl}-bM:SRE'
  7321. fi
  7322. fi
  7323. fi
  7324. # It seems that -bexpall does not export symbols beginning with
  7325. # underscore (_), so it is better to generate a list of symbols to export.
  7326. always_export_symbols=yes
  7327. if test "$aix_use_runtimelinking" = yes; then
  7328. # Warning - without using the other runtime loading flags (-brtl),
  7329. # -berok will link without error, but may produce a broken library.
  7330. allow_undefined_flag='-berok'
  7331. # Determine the default libpath from the value encoded in an empty executable.
  7332. cat >conftest.$ac_ext <<_ACEOF
  7333. /* confdefs.h. */
  7334. _ACEOF
  7335. cat confdefs.h >>conftest.$ac_ext
  7336. cat >>conftest.$ac_ext <<_ACEOF
  7337. /* end confdefs.h. */
  7338. int
  7339. main ()
  7340. {
  7341. ;
  7342. return 0;
  7343. }
  7344. _ACEOF
  7345. rm -f conftest.$ac_objext conftest$ac_exeext
  7346. if { (ac_try="$ac_link"
  7347. case "(($ac_try" in
  7348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7349. *) ac_try_echo=$ac_try;;
  7350. esac
  7351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7352. (eval "$ac_link") 2>conftest.er1
  7353. ac_status=$?
  7354. grep -v '^ *+' conftest.er1 >conftest.err
  7355. rm -f conftest.er1
  7356. cat conftest.err >&5
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. (exit $ac_status); } && {
  7359. test -z "$ac_c_werror_flag" ||
  7360. test ! -s conftest.err
  7361. } && test -s conftest$ac_exeext &&
  7362. $as_test_x conftest$ac_exeext; then
  7363. lt_aix_libpath_sed='
  7364. /Import File Strings/,/^$/ {
  7365. /^0/ {
  7366. s/^0 *\(.*\)$/\1/
  7367. p
  7368. }
  7369. }'
  7370. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7371. # Check for a 64-bit object if we didn't find anything.
  7372. if test -z "$aix_libpath"; then
  7373. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7374. fi
  7375. else
  7376. echo "$as_me: failed program was:" >&5
  7377. sed 's/^/| /' conftest.$ac_ext >&5
  7378. fi
  7379. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7380. conftest$ac_exeext conftest.$ac_ext
  7381. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7382. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7383. 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7384. else
  7385. if test "$host_cpu" = ia64; then
  7386. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7387. allow_undefined_flag="-z nodefs"
  7388. 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"
  7389. else
  7390. # Determine the default libpath from the value encoded in an empty executable.
  7391. cat >conftest.$ac_ext <<_ACEOF
  7392. /* confdefs.h. */
  7393. _ACEOF
  7394. cat confdefs.h >>conftest.$ac_ext
  7395. cat >>conftest.$ac_ext <<_ACEOF
  7396. /* end confdefs.h. */
  7397. int
  7398. main ()
  7399. {
  7400. ;
  7401. return 0;
  7402. }
  7403. _ACEOF
  7404. rm -f conftest.$ac_objext conftest$ac_exeext
  7405. if { (ac_try="$ac_link"
  7406. case "(($ac_try" in
  7407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7408. *) ac_try_echo=$ac_try;;
  7409. esac
  7410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7411. (eval "$ac_link") 2>conftest.er1
  7412. ac_status=$?
  7413. grep -v '^ *+' conftest.er1 >conftest.err
  7414. rm -f conftest.er1
  7415. cat conftest.err >&5
  7416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7417. (exit $ac_status); } && {
  7418. test -z "$ac_c_werror_flag" ||
  7419. test ! -s conftest.err
  7420. } && test -s conftest$ac_exeext &&
  7421. $as_test_x conftest$ac_exeext; then
  7422. lt_aix_libpath_sed='
  7423. /Import File Strings/,/^$/ {
  7424. /^0/ {
  7425. s/^0 *\(.*\)$/\1/
  7426. p
  7427. }
  7428. }'
  7429. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7430. # Check for a 64-bit object if we didn't find anything.
  7431. if test -z "$aix_libpath"; then
  7432. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7433. fi
  7434. else
  7435. echo "$as_me: failed program was:" >&5
  7436. sed 's/^/| /' conftest.$ac_ext >&5
  7437. fi
  7438. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7439. conftest$ac_exeext conftest.$ac_ext
  7440. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7441. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7442. # Warning - without using the other run time loading flags,
  7443. # -berok will link without error, but may produce a broken library.
  7444. no_undefined_flag=' ${wl}-bernotok'
  7445. allow_undefined_flag=' ${wl}-berok'
  7446. # Exported symbols can be pulled into shared objects from archives
  7447. whole_archive_flag_spec='$convenience'
  7448. archive_cmds_need_lc=yes
  7449. # This is similar to how AIX traditionally builds its shared libraries.
  7450. 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'
  7451. fi
  7452. fi
  7453. ;;
  7454. amigaos*)
  7455. 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)'
  7456. hardcode_libdir_flag_spec='-L$libdir'
  7457. hardcode_minus_L=yes
  7458. # see comment about different semantics on the GNU ld section
  7459. ld_shlibs=no
  7460. ;;
  7461. bsdi[45]*)
  7462. export_dynamic_flag_spec=-rdynamic
  7463. ;;
  7464. cygwin* | mingw* | pw32*)
  7465. # When not using gcc, we currently assume that we are using
  7466. # Microsoft Visual C++.
  7467. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7468. # no search path for DLLs.
  7469. hardcode_libdir_flag_spec=' '
  7470. allow_undefined_flag=unsupported
  7471. # Tell ltmain to make .lib files, not .a files.
  7472. libext=lib
  7473. # Tell ltmain to make .dll files, not .so files.
  7474. shrext_cmds=".dll"
  7475. # FIXME: Setting linknames here is a bad hack.
  7476. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7477. # The linker will automatically build a .lib file if we build a DLL.
  7478. old_archive_From_new_cmds='true'
  7479. # FIXME: Should let the user specify the lib program.
  7480. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7481. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7482. enable_shared_with_static_runtimes=yes
  7483. ;;
  7484. darwin* | rhapsody*)
  7485. case $host_os in
  7486. rhapsody* | darwin1.[012])
  7487. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7488. ;;
  7489. *) # Darwin 1.3 on
  7490. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7491. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7492. else
  7493. case ${MACOSX_DEPLOYMENT_TARGET} in
  7494. 10.[012])
  7495. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7496. ;;
  7497. 10.*)
  7498. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7499. ;;
  7500. esac
  7501. fi
  7502. ;;
  7503. esac
  7504. archive_cmds_need_lc=no
  7505. hardcode_direct=no
  7506. hardcode_automatic=yes
  7507. hardcode_shlibpath_var=unsupported
  7508. whole_archive_flag_spec=''
  7509. link_all_deplibs=yes
  7510. if test "$GCC" = yes ; then
  7511. output_verbose_link_cmd='echo'
  7512. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7513. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7514. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7515. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7516. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7517. else
  7518. case $cc_basename in
  7519. xlc*)
  7520. output_verbose_link_cmd='echo'
  7521. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7522. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7523. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7524. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7525. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7526. ;;
  7527. *)
  7528. ld_shlibs=no
  7529. ;;
  7530. esac
  7531. fi
  7532. ;;
  7533. dgux*)
  7534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7535. hardcode_libdir_flag_spec='-L$libdir'
  7536. hardcode_shlibpath_var=no
  7537. ;;
  7538. freebsd1*)
  7539. ld_shlibs=no
  7540. ;;
  7541. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7542. # support. Future versions do this automatically, but an explicit c++rt0.o
  7543. # does not break anything, and helps significantly (at the cost of a little
  7544. # extra space).
  7545. freebsd2.2*)
  7546. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7547. hardcode_libdir_flag_spec='-R$libdir'
  7548. hardcode_direct=yes
  7549. hardcode_shlibpath_var=no
  7550. ;;
  7551. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7552. freebsd2*)
  7553. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7554. hardcode_direct=yes
  7555. hardcode_minus_L=yes
  7556. hardcode_shlibpath_var=no
  7557. ;;
  7558. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7559. freebsd* | dragonfly*)
  7560. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7561. hardcode_libdir_flag_spec='-R$libdir'
  7562. hardcode_direct=yes
  7563. hardcode_shlibpath_var=no
  7564. ;;
  7565. hpux9*)
  7566. if test "$GCC" = yes; then
  7567. 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'
  7568. else
  7569. 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'
  7570. fi
  7571. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7572. hardcode_libdir_separator=:
  7573. hardcode_direct=yes
  7574. # hardcode_minus_L: Not really in the search PATH,
  7575. # but as the default location of the library.
  7576. hardcode_minus_L=yes
  7577. export_dynamic_flag_spec='${wl}-E'
  7578. ;;
  7579. hpux10*)
  7580. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7581. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7582. else
  7583. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7584. fi
  7585. if test "$with_gnu_ld" = no; then
  7586. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7587. hardcode_libdir_separator=:
  7588. hardcode_direct=yes
  7589. export_dynamic_flag_spec='${wl}-E'
  7590. # hardcode_minus_L: Not really in the search PATH,
  7591. # but as the default location of the library.
  7592. hardcode_minus_L=yes
  7593. fi
  7594. ;;
  7595. hpux11*)
  7596. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7597. case $host_cpu in
  7598. hppa*64*)
  7599. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7600. ;;
  7601. ia64*)
  7602. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7603. ;;
  7604. *)
  7605. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7606. ;;
  7607. esac
  7608. else
  7609. case $host_cpu in
  7610. hppa*64*)
  7611. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7612. ;;
  7613. ia64*)
  7614. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7615. ;;
  7616. *)
  7617. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7618. ;;
  7619. esac
  7620. fi
  7621. if test "$with_gnu_ld" = no; then
  7622. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7623. hardcode_libdir_separator=:
  7624. case $host_cpu in
  7625. hppa*64*|ia64*)
  7626. hardcode_libdir_flag_spec_ld='+b $libdir'
  7627. hardcode_direct=no
  7628. hardcode_shlibpath_var=no
  7629. ;;
  7630. *)
  7631. hardcode_direct=yes
  7632. export_dynamic_flag_spec='${wl}-E'
  7633. # hardcode_minus_L: Not really in the search PATH,
  7634. # but as the default location of the library.
  7635. hardcode_minus_L=yes
  7636. ;;
  7637. esac
  7638. fi
  7639. ;;
  7640. irix5* | irix6* | nonstopux*)
  7641. if test "$GCC" = yes; then
  7642. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7643. else
  7644. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7645. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7646. fi
  7647. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7648. hardcode_libdir_separator=:
  7649. link_all_deplibs=yes
  7650. ;;
  7651. netbsd*)
  7652. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7653. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7654. else
  7655. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7656. fi
  7657. hardcode_libdir_flag_spec='-R$libdir'
  7658. hardcode_direct=yes
  7659. hardcode_shlibpath_var=no
  7660. ;;
  7661. newsos6)
  7662. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7663. hardcode_direct=yes
  7664. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7665. hardcode_libdir_separator=:
  7666. hardcode_shlibpath_var=no
  7667. ;;
  7668. openbsd*)
  7669. if test -f /usr/libexec/ld.so; then
  7670. hardcode_direct=yes
  7671. hardcode_shlibpath_var=no
  7672. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7673. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7674. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7675. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7676. export_dynamic_flag_spec='${wl}-E'
  7677. else
  7678. case $host_os in
  7679. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7680. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7681. hardcode_libdir_flag_spec='-R$libdir'
  7682. ;;
  7683. *)
  7684. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7685. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7686. ;;
  7687. esac
  7688. fi
  7689. else
  7690. ld_shlibs=no
  7691. fi
  7692. ;;
  7693. os2*)
  7694. hardcode_libdir_flag_spec='-L$libdir'
  7695. hardcode_minus_L=yes
  7696. allow_undefined_flag=unsupported
  7697. 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'
  7698. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7699. ;;
  7700. osf3*)
  7701. if test "$GCC" = yes; then
  7702. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7703. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7704. else
  7705. allow_undefined_flag=' -expect_unresolved \*'
  7706. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7707. fi
  7708. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7709. hardcode_libdir_separator=:
  7710. ;;
  7711. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7712. if test "$GCC" = yes; then
  7713. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7714. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7715. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7716. else
  7717. allow_undefined_flag=' -expect_unresolved \*'
  7718. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7719. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7720. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7721. # Both c and cxx compiler support -rpath directly
  7722. hardcode_libdir_flag_spec='-rpath $libdir'
  7723. fi
  7724. hardcode_libdir_separator=:
  7725. ;;
  7726. solaris*)
  7727. no_undefined_flag=' -z text'
  7728. if test "$GCC" = yes; then
  7729. wlarc='${wl}'
  7730. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7731. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7732. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7733. else
  7734. wlarc=''
  7735. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7736. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7737. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7738. fi
  7739. hardcode_libdir_flag_spec='-R$libdir'
  7740. hardcode_shlibpath_var=no
  7741. case $host_os in
  7742. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7743. *)
  7744. # The compiler driver will combine and reorder linker options,
  7745. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7746. # but is careful enough not to reorder.
  7747. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7748. if test "$GCC" = yes; then
  7749. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7750. else
  7751. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7752. fi
  7753. ;;
  7754. esac
  7755. link_all_deplibs=yes
  7756. ;;
  7757. sunos4*)
  7758. if test "x$host_vendor" = xsequent; then
  7759. # Use $CC to link under sequent, because it throws in some extra .o
  7760. # files that make .init and .fini sections work.
  7761. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7762. else
  7763. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7764. fi
  7765. hardcode_libdir_flag_spec='-L$libdir'
  7766. hardcode_direct=yes
  7767. hardcode_minus_L=yes
  7768. hardcode_shlibpath_var=no
  7769. ;;
  7770. sysv4)
  7771. case $host_vendor in
  7772. sni)
  7773. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7774. hardcode_direct=yes # is this really true???
  7775. ;;
  7776. siemens)
  7777. ## LD is ld it makes a PLAMLIB
  7778. ## CC just makes a GrossModule.
  7779. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7780. reload_cmds='$CC -r -o $output$reload_objs'
  7781. hardcode_direct=no
  7782. ;;
  7783. motorola)
  7784. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7785. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7786. ;;
  7787. esac
  7788. runpath_var='LD_RUN_PATH'
  7789. hardcode_shlibpath_var=no
  7790. ;;
  7791. sysv4.3*)
  7792. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7793. hardcode_shlibpath_var=no
  7794. export_dynamic_flag_spec='-Bexport'
  7795. ;;
  7796. sysv4*MP*)
  7797. if test -d /usr/nec; then
  7798. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7799. hardcode_shlibpath_var=no
  7800. runpath_var=LD_RUN_PATH
  7801. hardcode_runpath_var=yes
  7802. ld_shlibs=yes
  7803. fi
  7804. ;;
  7805. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7806. no_undefined_flag='${wl}-z,text'
  7807. archive_cmds_need_lc=no
  7808. hardcode_shlibpath_var=no
  7809. runpath_var='LD_RUN_PATH'
  7810. if test "$GCC" = yes; then
  7811. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7812. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7813. else
  7814. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7815. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7816. fi
  7817. ;;
  7818. sysv5* | sco3.2v5* | sco5v6*)
  7819. # Note: We can NOT use -z defs as we might desire, because we do not
  7820. # link with -lc, and that would cause any symbols used from libc to
  7821. # always be unresolved, which means just about no library would
  7822. # ever link correctly. If we're not using GNU ld we use -z text
  7823. # though, which does catch some bad symbols but isn't as heavy-handed
  7824. # as -z defs.
  7825. no_undefined_flag='${wl}-z,text'
  7826. allow_undefined_flag='${wl}-z,nodefs'
  7827. archive_cmds_need_lc=no
  7828. hardcode_shlibpath_var=no
  7829. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7830. hardcode_libdir_separator=':'
  7831. link_all_deplibs=yes
  7832. export_dynamic_flag_spec='${wl}-Bexport'
  7833. runpath_var='LD_RUN_PATH'
  7834. if test "$GCC" = yes; then
  7835. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7836. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7837. else
  7838. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7839. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7840. fi
  7841. ;;
  7842. uts4*)
  7843. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7844. hardcode_libdir_flag_spec='-L$libdir'
  7845. hardcode_shlibpath_var=no
  7846. ;;
  7847. *)
  7848. ld_shlibs=no
  7849. ;;
  7850. esac
  7851. fi
  7852. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7853. echo "${ECHO_T}$ld_shlibs" >&6; }
  7854. test "$ld_shlibs" = no && can_build_shared=no
  7855. #
  7856. # Do we need to explicitly link libc?
  7857. #
  7858. case "x$archive_cmds_need_lc" in
  7859. x|xyes)
  7860. # Assume -lc should be added
  7861. archive_cmds_need_lc=yes
  7862. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7863. case $archive_cmds in
  7864. *'~'*)
  7865. # FIXME: we may have to deal with multi-command sequences.
  7866. ;;
  7867. '$CC '*)
  7868. # Test whether the compiler implicitly links with -lc since on some
  7869. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7870. # to ld, don't add -lc before -lgcc.
  7871. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7872. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7873. $rm conftest*
  7874. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7876. (eval $ac_compile) 2>&5
  7877. ac_status=$?
  7878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7879. (exit $ac_status); } 2>conftest.err; then
  7880. soname=conftest
  7881. lib=conftest
  7882. libobjs=conftest.$ac_objext
  7883. deplibs=
  7884. wl=$lt_prog_compiler_wl
  7885. pic_flag=$lt_prog_compiler_pic
  7886. compiler_flags=-v
  7887. linker_flags=-v
  7888. verstring=
  7889. output_objdir=.
  7890. libname=conftest
  7891. lt_save_allow_undefined_flag=$allow_undefined_flag
  7892. allow_undefined_flag=
  7893. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7894. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7895. ac_status=$?
  7896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7897. (exit $ac_status); }
  7898. then
  7899. archive_cmds_need_lc=no
  7900. else
  7901. archive_cmds_need_lc=yes
  7902. fi
  7903. allow_undefined_flag=$lt_save_allow_undefined_flag
  7904. else
  7905. cat conftest.err 1>&5
  7906. fi
  7907. $rm conftest*
  7908. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7909. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7910. ;;
  7911. esac
  7912. fi
  7913. ;;
  7914. esac
  7915. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7916. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7917. library_names_spec=
  7918. libname_spec='lib$name'
  7919. soname_spec=
  7920. shrext_cmds=".so"
  7921. postinstall_cmds=
  7922. postuninstall_cmds=
  7923. finish_cmds=
  7924. finish_eval=
  7925. shlibpath_var=
  7926. shlibpath_overrides_runpath=unknown
  7927. version_type=none
  7928. dynamic_linker="$host_os ld.so"
  7929. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7930. if test "$GCC" = yes; then
  7931. case $host_os in
  7932. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7933. *) lt_awk_arg="/^libraries:/" ;;
  7934. esac
  7935. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7936. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7937. # if the path contains ";" then we assume it to be the separator
  7938. # otherwise default to the standard path separator (i.e. ":") - it is
  7939. # assumed that no part of a normal pathname contains ";" but that should
  7940. # okay in the real world where ";" in dirpaths is itself problematic.
  7941. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7942. else
  7943. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7944. fi
  7945. # Ok, now we have the path, separated by spaces, we can step through it
  7946. # and add multilib dir if necessary.
  7947. lt_tmp_lt_search_path_spec=
  7948. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7949. for lt_sys_path in $lt_search_path_spec; do
  7950. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7951. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7952. else
  7953. test -d "$lt_sys_path" && \
  7954. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7955. fi
  7956. done
  7957. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7958. BEGIN {RS=" "; FS="/|\n";} {
  7959. lt_foo="";
  7960. lt_count=0;
  7961. for (lt_i = NF; lt_i > 0; lt_i--) {
  7962. if ($lt_i != "" && $lt_i != ".") {
  7963. if ($lt_i == "..") {
  7964. lt_count++;
  7965. } else {
  7966. if (lt_count == 0) {
  7967. lt_foo="/" $lt_i lt_foo;
  7968. } else {
  7969. lt_count--;
  7970. }
  7971. }
  7972. }
  7973. }
  7974. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7975. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7976. }'`
  7977. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7978. else
  7979. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7980. fi
  7981. need_lib_prefix=unknown
  7982. hardcode_into_libs=no
  7983. # when you set need_version to no, make sure it does not cause -set_version
  7984. # flags to be left without arguments
  7985. need_version=unknown
  7986. case $host_os in
  7987. aix3*)
  7988. version_type=linux
  7989. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7990. shlibpath_var=LIBPATH
  7991. # AIX 3 has no versioning support, so we append a major version to the name.
  7992. soname_spec='${libname}${release}${shared_ext}$major'
  7993. ;;
  7994. aix4* | aix5*)
  7995. version_type=linux
  7996. need_lib_prefix=no
  7997. need_version=no
  7998. hardcode_into_libs=yes
  7999. if test "$host_cpu" = ia64; then
  8000. # AIX 5 supports IA64
  8001. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8002. shlibpath_var=LD_LIBRARY_PATH
  8003. else
  8004. # With GCC up to 2.95.x, collect2 would create an import file
  8005. # for dependence libraries. The import file would start with
  8006. # the line `#! .'. This would cause the generated library to
  8007. # depend on `.', always an invalid library. This was fixed in
  8008. # development snapshots of GCC prior to 3.0.
  8009. case $host_os in
  8010. aix4 | aix4.[01] | aix4.[01].*)
  8011. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8012. echo ' yes '
  8013. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8014. :
  8015. else
  8016. can_build_shared=no
  8017. fi
  8018. ;;
  8019. esac
  8020. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8021. # soname into executable. Probably we can add versioning support to
  8022. # collect2, so additional links can be useful in future.
  8023. if test "$aix_use_runtimelinking" = yes; then
  8024. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8025. # instead of lib<name>.a to let people know that these are not
  8026. # typical AIX shared libraries.
  8027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8028. else
  8029. # We preserve .a as extension for shared libraries through AIX4.2
  8030. # and later when we are not doing run time linking.
  8031. library_names_spec='${libname}${release}.a $libname.a'
  8032. soname_spec='${libname}${release}${shared_ext}$major'
  8033. fi
  8034. shlibpath_var=LIBPATH
  8035. fi
  8036. ;;
  8037. amigaos*)
  8038. library_names_spec='$libname.ixlibrary $libname.a'
  8039. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8040. 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'
  8041. ;;
  8042. beos*)
  8043. library_names_spec='${libname}${shared_ext}'
  8044. dynamic_linker="$host_os ld.so"
  8045. shlibpath_var=LIBRARY_PATH
  8046. ;;
  8047. bsdi[45]*)
  8048. version_type=linux
  8049. need_version=no
  8050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8051. soname_spec='${libname}${release}${shared_ext}$major'
  8052. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8053. shlibpath_var=LD_LIBRARY_PATH
  8054. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8055. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8056. # the default ld.so.conf also contains /usr/contrib/lib and
  8057. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8058. # libtool to hard-code these into programs
  8059. ;;
  8060. cygwin* | mingw* | pw32*)
  8061. version_type=windows
  8062. shrext_cmds=".dll"
  8063. need_version=no
  8064. need_lib_prefix=no
  8065. case $GCC,$host_os in
  8066. yes,cygwin* | yes,mingw* | yes,pw32*)
  8067. library_names_spec='$libname.dll.a'
  8068. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8069. postinstall_cmds='base_file=`basename \${file}`~
  8070. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8071. dldir=$destdir/`dirname \$dlpath`~
  8072. test -d \$dldir || mkdir -p \$dldir~
  8073. $install_prog $dir/$dlname \$dldir/$dlname~
  8074. chmod a+x \$dldir/$dlname'
  8075. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8076. dlpath=$dir/\$dldll~
  8077. $rm \$dlpath'
  8078. shlibpath_overrides_runpath=yes
  8079. case $host_os in
  8080. cygwin*)
  8081. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8082. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8083. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8084. ;;
  8085. mingw*)
  8086. # MinGW DLLs use traditional 'lib' prefix
  8087. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8088. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8089. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8090. # It is most probably a Windows format PATH printed by
  8091. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8092. # path with ; separators, and with drive letters. We can handle the
  8093. # drive letters (cygwin fileutils understands them), so leave them,
  8094. # especially as we might pass files found there to a mingw objdump,
  8095. # which wouldn't understand a cygwinified path. Ahh.
  8096. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8097. else
  8098. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8099. fi
  8100. ;;
  8101. pw32*)
  8102. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8103. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8104. ;;
  8105. esac
  8106. ;;
  8107. *)
  8108. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8109. ;;
  8110. esac
  8111. dynamic_linker='Win32 ld.exe'
  8112. # FIXME: first we should search . and the directory the executable is in
  8113. shlibpath_var=PATH
  8114. ;;
  8115. darwin* | rhapsody*)
  8116. dynamic_linker="$host_os dyld"
  8117. version_type=darwin
  8118. need_lib_prefix=no
  8119. need_version=no
  8120. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8121. soname_spec='${libname}${release}${major}$shared_ext'
  8122. shlibpath_overrides_runpath=yes
  8123. shlibpath_var=DYLD_LIBRARY_PATH
  8124. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8125. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8126. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8127. ;;
  8128. dgux*)
  8129. version_type=linux
  8130. need_lib_prefix=no
  8131. need_version=no
  8132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8133. soname_spec='${libname}${release}${shared_ext}$major'
  8134. shlibpath_var=LD_LIBRARY_PATH
  8135. ;;
  8136. freebsd1*)
  8137. dynamic_linker=no
  8138. ;;
  8139. freebsd* | dragonfly*)
  8140. # DragonFly does not have aout. When/if they implement a new
  8141. # versioning mechanism, adjust this.
  8142. if test -x /usr/bin/objformat; then
  8143. objformat=`/usr/bin/objformat`
  8144. else
  8145. case $host_os in
  8146. freebsd[123]*) objformat=aout ;;
  8147. *) objformat=elf ;;
  8148. esac
  8149. fi
  8150. version_type=freebsd-$objformat
  8151. case $version_type in
  8152. freebsd-elf*)
  8153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8154. need_version=no
  8155. need_lib_prefix=no
  8156. ;;
  8157. freebsd-*)
  8158. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8159. need_version=yes
  8160. ;;
  8161. esac
  8162. shlibpath_var=LD_LIBRARY_PATH
  8163. case $host_os in
  8164. freebsd2*)
  8165. shlibpath_overrides_runpath=yes
  8166. ;;
  8167. freebsd3.[01]* | freebsdelf3.[01]*)
  8168. shlibpath_overrides_runpath=yes
  8169. hardcode_into_libs=yes
  8170. ;;
  8171. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8172. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8173. shlibpath_overrides_runpath=no
  8174. hardcode_into_libs=yes
  8175. ;;
  8176. *) # from 4.6 on, and DragonFly
  8177. shlibpath_overrides_runpath=yes
  8178. hardcode_into_libs=yes
  8179. ;;
  8180. esac
  8181. ;;
  8182. gnu*)
  8183. version_type=linux
  8184. need_lib_prefix=no
  8185. need_version=no
  8186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8187. soname_spec='${libname}${release}${shared_ext}$major'
  8188. shlibpath_var=LD_LIBRARY_PATH
  8189. hardcode_into_libs=yes
  8190. ;;
  8191. hpux9* | hpux10* | hpux11*)
  8192. # Give a soname corresponding to the major version so that dld.sl refuses to
  8193. # link against other versions.
  8194. version_type=sunos
  8195. need_lib_prefix=no
  8196. need_version=no
  8197. case $host_cpu in
  8198. ia64*)
  8199. shrext_cmds='.so'
  8200. hardcode_into_libs=yes
  8201. dynamic_linker="$host_os dld.so"
  8202. shlibpath_var=LD_LIBRARY_PATH
  8203. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8205. soname_spec='${libname}${release}${shared_ext}$major'
  8206. if test "X$HPUX_IA64_MODE" = X32; then
  8207. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8208. else
  8209. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8210. fi
  8211. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8212. ;;
  8213. hppa*64*)
  8214. shrext_cmds='.sl'
  8215. hardcode_into_libs=yes
  8216. dynamic_linker="$host_os dld.sl"
  8217. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8218. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8220. soname_spec='${libname}${release}${shared_ext}$major'
  8221. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8222. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8223. ;;
  8224. *)
  8225. shrext_cmds='.sl'
  8226. dynamic_linker="$host_os dld.sl"
  8227. shlibpath_var=SHLIB_PATH
  8228. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8230. soname_spec='${libname}${release}${shared_ext}$major'
  8231. ;;
  8232. esac
  8233. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8234. postinstall_cmds='chmod 555 $lib'
  8235. ;;
  8236. interix[3-9]*)
  8237. version_type=linux
  8238. need_lib_prefix=no
  8239. need_version=no
  8240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8241. soname_spec='${libname}${release}${shared_ext}$major'
  8242. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8243. shlibpath_var=LD_LIBRARY_PATH
  8244. shlibpath_overrides_runpath=no
  8245. hardcode_into_libs=yes
  8246. ;;
  8247. irix5* | irix6* | nonstopux*)
  8248. case $host_os in
  8249. nonstopux*) version_type=nonstopux ;;
  8250. *)
  8251. if test "$lt_cv_prog_gnu_ld" = yes; then
  8252. version_type=linux
  8253. else
  8254. version_type=irix
  8255. fi ;;
  8256. esac
  8257. need_lib_prefix=no
  8258. need_version=no
  8259. soname_spec='${libname}${release}${shared_ext}$major'
  8260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8261. case $host_os in
  8262. irix5* | nonstopux*)
  8263. libsuff= shlibsuff=
  8264. ;;
  8265. *)
  8266. case $LD in # libtool.m4 will add one of these switches to LD
  8267. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8268. libsuff= shlibsuff= libmagic=32-bit;;
  8269. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8270. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8271. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8272. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8273. *) libsuff= shlibsuff= libmagic=never-match;;
  8274. esac
  8275. ;;
  8276. esac
  8277. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8278. shlibpath_overrides_runpath=no
  8279. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8280. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8281. hardcode_into_libs=yes
  8282. ;;
  8283. # No shared lib support for Linux oldld, aout, or coff.
  8284. linux*oldld* | linux*aout* | linux*coff*)
  8285. dynamic_linker=no
  8286. ;;
  8287. # This must be Linux ELF.
  8288. linux* | k*bsd*-gnu)
  8289. version_type=linux
  8290. need_lib_prefix=no
  8291. need_version=no
  8292. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8293. soname_spec='${libname}${release}${shared_ext}$major'
  8294. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8295. shlibpath_var=LD_LIBRARY_PATH
  8296. shlibpath_overrides_runpath=no
  8297. # This implies no fast_install, which is unacceptable.
  8298. # Some rework will be needed to allow for fast_install
  8299. # before this can be enabled.
  8300. hardcode_into_libs=yes
  8301. # Append ld.so.conf contents to the search path
  8302. if test -f /etc/ld.so.conf; then
  8303. 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' ' '`
  8304. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8305. fi
  8306. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8307. # powerpc, because MkLinux only supported shared libraries with the
  8308. # GNU dynamic linker. Since this was broken with cross compilers,
  8309. # most powerpc-linux boxes support dynamic linking these days and
  8310. # people can always --disable-shared, the test was removed, and we
  8311. # assume the GNU/Linux dynamic linker is in use.
  8312. dynamic_linker='GNU/Linux ld.so'
  8313. ;;
  8314. netbsd*)
  8315. version_type=sunos
  8316. need_lib_prefix=no
  8317. need_version=no
  8318. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8320. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8321. dynamic_linker='NetBSD (a.out) ld.so'
  8322. else
  8323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8324. soname_spec='${libname}${release}${shared_ext}$major'
  8325. dynamic_linker='NetBSD ld.elf_so'
  8326. fi
  8327. shlibpath_var=LD_LIBRARY_PATH
  8328. shlibpath_overrides_runpath=yes
  8329. hardcode_into_libs=yes
  8330. ;;
  8331. newsos6)
  8332. version_type=linux
  8333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8334. shlibpath_var=LD_LIBRARY_PATH
  8335. shlibpath_overrides_runpath=yes
  8336. ;;
  8337. nto-qnx*)
  8338. version_type=linux
  8339. need_lib_prefix=no
  8340. need_version=no
  8341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8342. soname_spec='${libname}${release}${shared_ext}$major'
  8343. shlibpath_var=LD_LIBRARY_PATH
  8344. shlibpath_overrides_runpath=yes
  8345. ;;
  8346. openbsd*)
  8347. version_type=sunos
  8348. sys_lib_dlsearch_path_spec="/usr/lib"
  8349. need_lib_prefix=no
  8350. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8351. case $host_os in
  8352. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8353. *) need_version=no ;;
  8354. esac
  8355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8356. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8357. shlibpath_var=LD_LIBRARY_PATH
  8358. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8359. case $host_os in
  8360. openbsd2.[89] | openbsd2.[89].*)
  8361. shlibpath_overrides_runpath=no
  8362. ;;
  8363. *)
  8364. shlibpath_overrides_runpath=yes
  8365. ;;
  8366. esac
  8367. else
  8368. shlibpath_overrides_runpath=yes
  8369. fi
  8370. ;;
  8371. os2*)
  8372. libname_spec='$name'
  8373. shrext_cmds=".dll"
  8374. need_lib_prefix=no
  8375. library_names_spec='$libname${shared_ext} $libname.a'
  8376. dynamic_linker='OS/2 ld.exe'
  8377. shlibpath_var=LIBPATH
  8378. ;;
  8379. osf3* | osf4* | osf5*)
  8380. version_type=osf
  8381. need_lib_prefix=no
  8382. need_version=no
  8383. soname_spec='${libname}${release}${shared_ext}$major'
  8384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8385. shlibpath_var=LD_LIBRARY_PATH
  8386. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8387. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8388. ;;
  8389. rdos*)
  8390. dynamic_linker=no
  8391. ;;
  8392. solaris*)
  8393. version_type=linux
  8394. need_lib_prefix=no
  8395. need_version=no
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8397. soname_spec='${libname}${release}${shared_ext}$major'
  8398. shlibpath_var=LD_LIBRARY_PATH
  8399. shlibpath_overrides_runpath=yes
  8400. hardcode_into_libs=yes
  8401. # ldd complains unless libraries are executable
  8402. postinstall_cmds='chmod +x $lib'
  8403. ;;
  8404. sunos4*)
  8405. version_type=sunos
  8406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8407. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8408. shlibpath_var=LD_LIBRARY_PATH
  8409. shlibpath_overrides_runpath=yes
  8410. if test "$with_gnu_ld" = yes; then
  8411. need_lib_prefix=no
  8412. fi
  8413. need_version=yes
  8414. ;;
  8415. sysv4 | sysv4.3*)
  8416. version_type=linux
  8417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8418. soname_spec='${libname}${release}${shared_ext}$major'
  8419. shlibpath_var=LD_LIBRARY_PATH
  8420. case $host_vendor in
  8421. sni)
  8422. shlibpath_overrides_runpath=no
  8423. need_lib_prefix=no
  8424. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8425. runpath_var=LD_RUN_PATH
  8426. ;;
  8427. siemens)
  8428. need_lib_prefix=no
  8429. ;;
  8430. motorola)
  8431. need_lib_prefix=no
  8432. need_version=no
  8433. shlibpath_overrides_runpath=no
  8434. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8435. ;;
  8436. esac
  8437. ;;
  8438. sysv4*MP*)
  8439. if test -d /usr/nec ;then
  8440. version_type=linux
  8441. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8442. soname_spec='$libname${shared_ext}.$major'
  8443. shlibpath_var=LD_LIBRARY_PATH
  8444. fi
  8445. ;;
  8446. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8447. version_type=freebsd-elf
  8448. need_lib_prefix=no
  8449. need_version=no
  8450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8451. soname_spec='${libname}${release}${shared_ext}$major'
  8452. shlibpath_var=LD_LIBRARY_PATH
  8453. hardcode_into_libs=yes
  8454. if test "$with_gnu_ld" = yes; then
  8455. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8456. shlibpath_overrides_runpath=no
  8457. else
  8458. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8459. shlibpath_overrides_runpath=yes
  8460. case $host_os in
  8461. sco3.2v5*)
  8462. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8463. ;;
  8464. esac
  8465. fi
  8466. sys_lib_dlsearch_path_spec='/usr/lib'
  8467. ;;
  8468. uts4*)
  8469. version_type=linux
  8470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8471. soname_spec='${libname}${release}${shared_ext}$major'
  8472. shlibpath_var=LD_LIBRARY_PATH
  8473. ;;
  8474. *)
  8475. dynamic_linker=no
  8476. ;;
  8477. esac
  8478. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8479. echo "${ECHO_T}$dynamic_linker" >&6; }
  8480. test "$dynamic_linker" = no && can_build_shared=no
  8481. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8482. if test "$GCC" = yes; then
  8483. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8484. fi
  8485. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8486. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8487. hardcode_action=
  8488. if test -n "$hardcode_libdir_flag_spec" || \
  8489. test -n "$runpath_var" || \
  8490. test "X$hardcode_automatic" = "Xyes" ; then
  8491. # We can hardcode non-existant directories.
  8492. if test "$hardcode_direct" != no &&
  8493. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8494. # have to relink, otherwise we might link with an installed library
  8495. # when we should be linking with a yet-to-be-installed one
  8496. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8497. test "$hardcode_minus_L" != no; then
  8498. # Linking always hardcodes the temporary library directory.
  8499. hardcode_action=relink
  8500. else
  8501. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8502. hardcode_action=immediate
  8503. fi
  8504. else
  8505. # We cannot hardcode anything, or else we can only hardcode existing
  8506. # directories.
  8507. hardcode_action=unsupported
  8508. fi
  8509. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8510. echo "${ECHO_T}$hardcode_action" >&6; }
  8511. if test "$hardcode_action" = relink; then
  8512. # Fast installation is not supported
  8513. enable_fast_install=no
  8514. elif test "$shlibpath_overrides_runpath" = yes ||
  8515. test "$enable_shared" = no; then
  8516. # Fast installation is not necessary
  8517. enable_fast_install=needless
  8518. fi
  8519. striplib=
  8520. old_striplib=
  8521. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8522. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8523. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8524. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8525. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8526. { echo "$as_me:$LINENO: result: yes" >&5
  8527. echo "${ECHO_T}yes" >&6; }
  8528. else
  8529. # FIXME - insert some real tests, host_os isn't really good enough
  8530. case $host_os in
  8531. darwin*)
  8532. if test -n "$STRIP" ; then
  8533. striplib="$STRIP -x"
  8534. old_striplib="$STRIP -S"
  8535. { echo "$as_me:$LINENO: result: yes" >&5
  8536. echo "${ECHO_T}yes" >&6; }
  8537. else
  8538. { echo "$as_me:$LINENO: result: no" >&5
  8539. echo "${ECHO_T}no" >&6; }
  8540. fi
  8541. ;;
  8542. *)
  8543. { echo "$as_me:$LINENO: result: no" >&5
  8544. echo "${ECHO_T}no" >&6; }
  8545. ;;
  8546. esac
  8547. fi
  8548. if test "x$enable_dlopen" != xyes; then
  8549. enable_dlopen=unknown
  8550. enable_dlopen_self=unknown
  8551. enable_dlopen_self_static=unknown
  8552. else
  8553. lt_cv_dlopen=no
  8554. lt_cv_dlopen_libs=
  8555. case $host_os in
  8556. beos*)
  8557. lt_cv_dlopen="load_add_on"
  8558. lt_cv_dlopen_libs=
  8559. lt_cv_dlopen_self=yes
  8560. ;;
  8561. mingw* | pw32*)
  8562. lt_cv_dlopen="LoadLibrary"
  8563. lt_cv_dlopen_libs=
  8564. ;;
  8565. cygwin*)
  8566. lt_cv_dlopen="dlopen"
  8567. lt_cv_dlopen_libs=
  8568. ;;
  8569. darwin*)
  8570. # if libdl is installed we need to link against it
  8571. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8572. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8573. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8574. echo $ECHO_N "(cached) $ECHO_C" >&6
  8575. else
  8576. ac_check_lib_save_LIBS=$LIBS
  8577. LIBS="-ldl $LIBS"
  8578. cat >conftest.$ac_ext <<_ACEOF
  8579. /* confdefs.h. */
  8580. _ACEOF
  8581. cat confdefs.h >>conftest.$ac_ext
  8582. cat >>conftest.$ac_ext <<_ACEOF
  8583. /* end confdefs.h. */
  8584. /* Override any GCC internal prototype to avoid an error.
  8585. Use char because int might match the return type of a GCC
  8586. builtin and then its argument prototype would still apply. */
  8587. #ifdef __cplusplus
  8588. extern "C"
  8589. #endif
  8590. char dlopen ();
  8591. int
  8592. main ()
  8593. {
  8594. return dlopen ();
  8595. ;
  8596. return 0;
  8597. }
  8598. _ACEOF
  8599. rm -f conftest.$ac_objext conftest$ac_exeext
  8600. if { (ac_try="$ac_link"
  8601. case "(($ac_try" in
  8602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8603. *) ac_try_echo=$ac_try;;
  8604. esac
  8605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8606. (eval "$ac_link") 2>conftest.er1
  8607. ac_status=$?
  8608. grep -v '^ *+' conftest.er1 >conftest.err
  8609. rm -f conftest.er1
  8610. cat conftest.err >&5
  8611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8612. (exit $ac_status); } && {
  8613. test -z "$ac_c_werror_flag" ||
  8614. test ! -s conftest.err
  8615. } && test -s conftest$ac_exeext &&
  8616. $as_test_x conftest$ac_exeext; then
  8617. ac_cv_lib_dl_dlopen=yes
  8618. else
  8619. echo "$as_me: failed program was:" >&5
  8620. sed 's/^/| /' conftest.$ac_ext >&5
  8621. ac_cv_lib_dl_dlopen=no
  8622. fi
  8623. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8624. conftest$ac_exeext conftest.$ac_ext
  8625. LIBS=$ac_check_lib_save_LIBS
  8626. fi
  8627. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8628. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8629. if test $ac_cv_lib_dl_dlopen = yes; then
  8630. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8631. else
  8632. lt_cv_dlopen="dyld"
  8633. lt_cv_dlopen_libs=
  8634. lt_cv_dlopen_self=yes
  8635. fi
  8636. ;;
  8637. *)
  8638. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8639. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8640. if test "${ac_cv_func_shl_load+set}" = set; then
  8641. echo $ECHO_N "(cached) $ECHO_C" >&6
  8642. else
  8643. cat >conftest.$ac_ext <<_ACEOF
  8644. /* confdefs.h. */
  8645. _ACEOF
  8646. cat confdefs.h >>conftest.$ac_ext
  8647. cat >>conftest.$ac_ext <<_ACEOF
  8648. /* end confdefs.h. */
  8649. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8650. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8651. #define shl_load innocuous_shl_load
  8652. /* System header to define __stub macros and hopefully few prototypes,
  8653. which can conflict with char shl_load (); below.
  8654. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8655. <limits.h> exists even on freestanding compilers. */
  8656. #ifdef __STDC__
  8657. # include <limits.h>
  8658. #else
  8659. # include <assert.h>
  8660. #endif
  8661. #undef shl_load
  8662. /* Override any GCC internal prototype to avoid an error.
  8663. Use char because int might match the return type of a GCC
  8664. builtin and then its argument prototype would still apply. */
  8665. #ifdef __cplusplus
  8666. extern "C"
  8667. #endif
  8668. char shl_load ();
  8669. /* The GNU C library defines this for functions which it implements
  8670. to always fail with ENOSYS. Some functions are actually named
  8671. something starting with __ and the normal name is an alias. */
  8672. #if defined __stub_shl_load || defined __stub___shl_load
  8673. choke me
  8674. #endif
  8675. int
  8676. main ()
  8677. {
  8678. return shl_load ();
  8679. ;
  8680. return 0;
  8681. }
  8682. _ACEOF
  8683. rm -f conftest.$ac_objext conftest$ac_exeext
  8684. if { (ac_try="$ac_link"
  8685. case "(($ac_try" in
  8686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8687. *) ac_try_echo=$ac_try;;
  8688. esac
  8689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8690. (eval "$ac_link") 2>conftest.er1
  8691. ac_status=$?
  8692. grep -v '^ *+' conftest.er1 >conftest.err
  8693. rm -f conftest.er1
  8694. cat conftest.err >&5
  8695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8696. (exit $ac_status); } && {
  8697. test -z "$ac_c_werror_flag" ||
  8698. test ! -s conftest.err
  8699. } && test -s conftest$ac_exeext &&
  8700. $as_test_x conftest$ac_exeext; then
  8701. ac_cv_func_shl_load=yes
  8702. else
  8703. echo "$as_me: failed program was:" >&5
  8704. sed 's/^/| /' conftest.$ac_ext >&5
  8705. ac_cv_func_shl_load=no
  8706. fi
  8707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8708. conftest$ac_exeext conftest.$ac_ext
  8709. fi
  8710. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8711. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8712. if test $ac_cv_func_shl_load = yes; then
  8713. lt_cv_dlopen="shl_load"
  8714. else
  8715. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8716. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8717. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8718. echo $ECHO_N "(cached) $ECHO_C" >&6
  8719. else
  8720. ac_check_lib_save_LIBS=$LIBS
  8721. LIBS="-ldld $LIBS"
  8722. cat >conftest.$ac_ext <<_ACEOF
  8723. /* confdefs.h. */
  8724. _ACEOF
  8725. cat confdefs.h >>conftest.$ac_ext
  8726. cat >>conftest.$ac_ext <<_ACEOF
  8727. /* end confdefs.h. */
  8728. /* Override any GCC internal prototype to avoid an error.
  8729. Use char because int might match the return type of a GCC
  8730. builtin and then its argument prototype would still apply. */
  8731. #ifdef __cplusplus
  8732. extern "C"
  8733. #endif
  8734. char shl_load ();
  8735. int
  8736. main ()
  8737. {
  8738. return shl_load ();
  8739. ;
  8740. return 0;
  8741. }
  8742. _ACEOF
  8743. rm -f conftest.$ac_objext conftest$ac_exeext
  8744. if { (ac_try="$ac_link"
  8745. case "(($ac_try" in
  8746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8747. *) ac_try_echo=$ac_try;;
  8748. esac
  8749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8750. (eval "$ac_link") 2>conftest.er1
  8751. ac_status=$?
  8752. grep -v '^ *+' conftest.er1 >conftest.err
  8753. rm -f conftest.er1
  8754. cat conftest.err >&5
  8755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8756. (exit $ac_status); } && {
  8757. test -z "$ac_c_werror_flag" ||
  8758. test ! -s conftest.err
  8759. } && test -s conftest$ac_exeext &&
  8760. $as_test_x conftest$ac_exeext; then
  8761. ac_cv_lib_dld_shl_load=yes
  8762. else
  8763. echo "$as_me: failed program was:" >&5
  8764. sed 's/^/| /' conftest.$ac_ext >&5
  8765. ac_cv_lib_dld_shl_load=no
  8766. fi
  8767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8768. conftest$ac_exeext conftest.$ac_ext
  8769. LIBS=$ac_check_lib_save_LIBS
  8770. fi
  8771. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8772. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8773. if test $ac_cv_lib_dld_shl_load = yes; then
  8774. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8775. else
  8776. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8777. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8778. if test "${ac_cv_func_dlopen+set}" = set; then
  8779. echo $ECHO_N "(cached) $ECHO_C" >&6
  8780. else
  8781. cat >conftest.$ac_ext <<_ACEOF
  8782. /* confdefs.h. */
  8783. _ACEOF
  8784. cat confdefs.h >>conftest.$ac_ext
  8785. cat >>conftest.$ac_ext <<_ACEOF
  8786. /* end confdefs.h. */
  8787. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8788. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8789. #define dlopen innocuous_dlopen
  8790. /* System header to define __stub macros and hopefully few prototypes,
  8791. which can conflict with char dlopen (); below.
  8792. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8793. <limits.h> exists even on freestanding compilers. */
  8794. #ifdef __STDC__
  8795. # include <limits.h>
  8796. #else
  8797. # include <assert.h>
  8798. #endif
  8799. #undef dlopen
  8800. /* Override any GCC internal prototype to avoid an error.
  8801. Use char because int might match the return type of a GCC
  8802. builtin and then its argument prototype would still apply. */
  8803. #ifdef __cplusplus
  8804. extern "C"
  8805. #endif
  8806. char dlopen ();
  8807. /* The GNU C library defines this for functions which it implements
  8808. to always fail with ENOSYS. Some functions are actually named
  8809. something starting with __ and the normal name is an alias. */
  8810. #if defined __stub_dlopen || defined __stub___dlopen
  8811. choke me
  8812. #endif
  8813. int
  8814. main ()
  8815. {
  8816. return dlopen ();
  8817. ;
  8818. return 0;
  8819. }
  8820. _ACEOF
  8821. rm -f conftest.$ac_objext conftest$ac_exeext
  8822. if { (ac_try="$ac_link"
  8823. case "(($ac_try" in
  8824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8825. *) ac_try_echo=$ac_try;;
  8826. esac
  8827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8828. (eval "$ac_link") 2>conftest.er1
  8829. ac_status=$?
  8830. grep -v '^ *+' conftest.er1 >conftest.err
  8831. rm -f conftest.er1
  8832. cat conftest.err >&5
  8833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8834. (exit $ac_status); } && {
  8835. test -z "$ac_c_werror_flag" ||
  8836. test ! -s conftest.err
  8837. } && test -s conftest$ac_exeext &&
  8838. $as_test_x conftest$ac_exeext; then
  8839. ac_cv_func_dlopen=yes
  8840. else
  8841. echo "$as_me: failed program was:" >&5
  8842. sed 's/^/| /' conftest.$ac_ext >&5
  8843. ac_cv_func_dlopen=no
  8844. fi
  8845. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8846. conftest$ac_exeext conftest.$ac_ext
  8847. fi
  8848. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8849. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8850. if test $ac_cv_func_dlopen = yes; then
  8851. lt_cv_dlopen="dlopen"
  8852. else
  8853. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8854. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8855. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8856. echo $ECHO_N "(cached) $ECHO_C" >&6
  8857. else
  8858. ac_check_lib_save_LIBS=$LIBS
  8859. LIBS="-ldl $LIBS"
  8860. cat >conftest.$ac_ext <<_ACEOF
  8861. /* confdefs.h. */
  8862. _ACEOF
  8863. cat confdefs.h >>conftest.$ac_ext
  8864. cat >>conftest.$ac_ext <<_ACEOF
  8865. /* end confdefs.h. */
  8866. /* Override any GCC internal prototype to avoid an error.
  8867. Use char because int might match the return type of a GCC
  8868. builtin and then its argument prototype would still apply. */
  8869. #ifdef __cplusplus
  8870. extern "C"
  8871. #endif
  8872. char dlopen ();
  8873. int
  8874. main ()
  8875. {
  8876. return dlopen ();
  8877. ;
  8878. return 0;
  8879. }
  8880. _ACEOF
  8881. rm -f conftest.$ac_objext conftest$ac_exeext
  8882. if { (ac_try="$ac_link"
  8883. case "(($ac_try" in
  8884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8885. *) ac_try_echo=$ac_try;;
  8886. esac
  8887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8888. (eval "$ac_link") 2>conftest.er1
  8889. ac_status=$?
  8890. grep -v '^ *+' conftest.er1 >conftest.err
  8891. rm -f conftest.er1
  8892. cat conftest.err >&5
  8893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8894. (exit $ac_status); } && {
  8895. test -z "$ac_c_werror_flag" ||
  8896. test ! -s conftest.err
  8897. } && test -s conftest$ac_exeext &&
  8898. $as_test_x conftest$ac_exeext; then
  8899. ac_cv_lib_dl_dlopen=yes
  8900. else
  8901. echo "$as_me: failed program was:" >&5
  8902. sed 's/^/| /' conftest.$ac_ext >&5
  8903. ac_cv_lib_dl_dlopen=no
  8904. fi
  8905. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8906. conftest$ac_exeext conftest.$ac_ext
  8907. LIBS=$ac_check_lib_save_LIBS
  8908. fi
  8909. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8910. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8911. if test $ac_cv_lib_dl_dlopen = yes; then
  8912. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8913. else
  8914. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8915. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8916. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8917. echo $ECHO_N "(cached) $ECHO_C" >&6
  8918. else
  8919. ac_check_lib_save_LIBS=$LIBS
  8920. LIBS="-lsvld $LIBS"
  8921. cat >conftest.$ac_ext <<_ACEOF
  8922. /* confdefs.h. */
  8923. _ACEOF
  8924. cat confdefs.h >>conftest.$ac_ext
  8925. cat >>conftest.$ac_ext <<_ACEOF
  8926. /* end confdefs.h. */
  8927. /* Override any GCC internal prototype to avoid an error.
  8928. Use char because int might match the return type of a GCC
  8929. builtin and then its argument prototype would still apply. */
  8930. #ifdef __cplusplus
  8931. extern "C"
  8932. #endif
  8933. char dlopen ();
  8934. int
  8935. main ()
  8936. {
  8937. return dlopen ();
  8938. ;
  8939. return 0;
  8940. }
  8941. _ACEOF
  8942. rm -f conftest.$ac_objext conftest$ac_exeext
  8943. if { (ac_try="$ac_link"
  8944. case "(($ac_try" in
  8945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8946. *) ac_try_echo=$ac_try;;
  8947. esac
  8948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8949. (eval "$ac_link") 2>conftest.er1
  8950. ac_status=$?
  8951. grep -v '^ *+' conftest.er1 >conftest.err
  8952. rm -f conftest.er1
  8953. cat conftest.err >&5
  8954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8955. (exit $ac_status); } && {
  8956. test -z "$ac_c_werror_flag" ||
  8957. test ! -s conftest.err
  8958. } && test -s conftest$ac_exeext &&
  8959. $as_test_x conftest$ac_exeext; then
  8960. ac_cv_lib_svld_dlopen=yes
  8961. else
  8962. echo "$as_me: failed program was:" >&5
  8963. sed 's/^/| /' conftest.$ac_ext >&5
  8964. ac_cv_lib_svld_dlopen=no
  8965. fi
  8966. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8967. conftest$ac_exeext conftest.$ac_ext
  8968. LIBS=$ac_check_lib_save_LIBS
  8969. fi
  8970. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8971. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8972. if test $ac_cv_lib_svld_dlopen = yes; then
  8973. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8974. else
  8975. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8976. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8977. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8978. echo $ECHO_N "(cached) $ECHO_C" >&6
  8979. else
  8980. ac_check_lib_save_LIBS=$LIBS
  8981. LIBS="-ldld $LIBS"
  8982. cat >conftest.$ac_ext <<_ACEOF
  8983. /* confdefs.h. */
  8984. _ACEOF
  8985. cat confdefs.h >>conftest.$ac_ext
  8986. cat >>conftest.$ac_ext <<_ACEOF
  8987. /* end confdefs.h. */
  8988. /* Override any GCC internal prototype to avoid an error.
  8989. Use char because int might match the return type of a GCC
  8990. builtin and then its argument prototype would still apply. */
  8991. #ifdef __cplusplus
  8992. extern "C"
  8993. #endif
  8994. char dld_link ();
  8995. int
  8996. main ()
  8997. {
  8998. return dld_link ();
  8999. ;
  9000. return 0;
  9001. }
  9002. _ACEOF
  9003. rm -f conftest.$ac_objext conftest$ac_exeext
  9004. if { (ac_try="$ac_link"
  9005. case "(($ac_try" in
  9006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9007. *) ac_try_echo=$ac_try;;
  9008. esac
  9009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9010. (eval "$ac_link") 2>conftest.er1
  9011. ac_status=$?
  9012. grep -v '^ *+' conftest.er1 >conftest.err
  9013. rm -f conftest.er1
  9014. cat conftest.err >&5
  9015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9016. (exit $ac_status); } && {
  9017. test -z "$ac_c_werror_flag" ||
  9018. test ! -s conftest.err
  9019. } && test -s conftest$ac_exeext &&
  9020. $as_test_x conftest$ac_exeext; then
  9021. ac_cv_lib_dld_dld_link=yes
  9022. else
  9023. echo "$as_me: failed program was:" >&5
  9024. sed 's/^/| /' conftest.$ac_ext >&5
  9025. ac_cv_lib_dld_dld_link=no
  9026. fi
  9027. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9028. conftest$ac_exeext conftest.$ac_ext
  9029. LIBS=$ac_check_lib_save_LIBS
  9030. fi
  9031. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9032. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9033. if test $ac_cv_lib_dld_dld_link = yes; then
  9034. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9035. fi
  9036. fi
  9037. fi
  9038. fi
  9039. fi
  9040. fi
  9041. ;;
  9042. esac
  9043. if test "x$lt_cv_dlopen" != xno; then
  9044. enable_dlopen=yes
  9045. else
  9046. enable_dlopen=no
  9047. fi
  9048. case $lt_cv_dlopen in
  9049. dlopen)
  9050. save_CPPFLAGS="$CPPFLAGS"
  9051. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9052. save_LDFLAGS="$LDFLAGS"
  9053. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9054. save_LIBS="$LIBS"
  9055. LIBS="$lt_cv_dlopen_libs $LIBS"
  9056. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9057. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9058. if test "${lt_cv_dlopen_self+set}" = set; then
  9059. echo $ECHO_N "(cached) $ECHO_C" >&6
  9060. else
  9061. if test "$cross_compiling" = yes; then :
  9062. lt_cv_dlopen_self=cross
  9063. else
  9064. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9065. lt_status=$lt_dlunknown
  9066. cat > conftest.$ac_ext <<EOF
  9067. #line 10070 "configure"
  9068. #include "confdefs.h"
  9069. #if HAVE_DLFCN_H
  9070. #include <dlfcn.h>
  9071. #endif
  9072. #include <stdio.h>
  9073. #ifdef RTLD_GLOBAL
  9074. # define LT_DLGLOBAL RTLD_GLOBAL
  9075. #else
  9076. # ifdef DL_GLOBAL
  9077. # define LT_DLGLOBAL DL_GLOBAL
  9078. # else
  9079. # define LT_DLGLOBAL 0
  9080. # endif
  9081. #endif
  9082. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9083. find out it does not work in some platform. */
  9084. #ifndef LT_DLLAZY_OR_NOW
  9085. # ifdef RTLD_LAZY
  9086. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9087. # else
  9088. # ifdef DL_LAZY
  9089. # define LT_DLLAZY_OR_NOW DL_LAZY
  9090. # else
  9091. # ifdef RTLD_NOW
  9092. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9093. # else
  9094. # ifdef DL_NOW
  9095. # define LT_DLLAZY_OR_NOW DL_NOW
  9096. # else
  9097. # define LT_DLLAZY_OR_NOW 0
  9098. # endif
  9099. # endif
  9100. # endif
  9101. # endif
  9102. #endif
  9103. #ifdef __cplusplus
  9104. extern "C" void exit (int);
  9105. #endif
  9106. void fnord() { int i=42;}
  9107. int main ()
  9108. {
  9109. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9110. int status = $lt_dlunknown;
  9111. if (self)
  9112. {
  9113. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9114. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9115. /* dlclose (self); */
  9116. }
  9117. else
  9118. puts (dlerror ());
  9119. exit (status);
  9120. }
  9121. EOF
  9122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9123. (eval $ac_link) 2>&5
  9124. ac_status=$?
  9125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9126. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9127. (./conftest; exit; ) >&5 2>/dev/null
  9128. lt_status=$?
  9129. case x$lt_status in
  9130. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9131. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9132. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9133. esac
  9134. else :
  9135. # compilation failed
  9136. lt_cv_dlopen_self=no
  9137. fi
  9138. fi
  9139. rm -fr conftest*
  9140. fi
  9141. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9142. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9143. if test "x$lt_cv_dlopen_self" = xyes; then
  9144. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9145. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9146. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9147. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9148. echo $ECHO_N "(cached) $ECHO_C" >&6
  9149. else
  9150. if test "$cross_compiling" = yes; then :
  9151. lt_cv_dlopen_self_static=cross
  9152. else
  9153. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9154. lt_status=$lt_dlunknown
  9155. cat > conftest.$ac_ext <<EOF
  9156. #line 10170 "configure"
  9157. #include "confdefs.h"
  9158. #if HAVE_DLFCN_H
  9159. #include <dlfcn.h>
  9160. #endif
  9161. #include <stdio.h>
  9162. #ifdef RTLD_GLOBAL
  9163. # define LT_DLGLOBAL RTLD_GLOBAL
  9164. #else
  9165. # ifdef DL_GLOBAL
  9166. # define LT_DLGLOBAL DL_GLOBAL
  9167. # else
  9168. # define LT_DLGLOBAL 0
  9169. # endif
  9170. #endif
  9171. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9172. find out it does not work in some platform. */
  9173. #ifndef LT_DLLAZY_OR_NOW
  9174. # ifdef RTLD_LAZY
  9175. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9176. # else
  9177. # ifdef DL_LAZY
  9178. # define LT_DLLAZY_OR_NOW DL_LAZY
  9179. # else
  9180. # ifdef RTLD_NOW
  9181. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9182. # else
  9183. # ifdef DL_NOW
  9184. # define LT_DLLAZY_OR_NOW DL_NOW
  9185. # else
  9186. # define LT_DLLAZY_OR_NOW 0
  9187. # endif
  9188. # endif
  9189. # endif
  9190. # endif
  9191. #endif
  9192. #ifdef __cplusplus
  9193. extern "C" void exit (int);
  9194. #endif
  9195. void fnord() { int i=42;}
  9196. int main ()
  9197. {
  9198. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9199. int status = $lt_dlunknown;
  9200. if (self)
  9201. {
  9202. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9203. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9204. /* dlclose (self); */
  9205. }
  9206. else
  9207. puts (dlerror ());
  9208. exit (status);
  9209. }
  9210. EOF
  9211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9212. (eval $ac_link) 2>&5
  9213. ac_status=$?
  9214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9215. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9216. (./conftest; exit; ) >&5 2>/dev/null
  9217. lt_status=$?
  9218. case x$lt_status in
  9219. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9220. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9221. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9222. esac
  9223. else :
  9224. # compilation failed
  9225. lt_cv_dlopen_self_static=no
  9226. fi
  9227. fi
  9228. rm -fr conftest*
  9229. fi
  9230. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9231. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9232. fi
  9233. CPPFLAGS="$save_CPPFLAGS"
  9234. LDFLAGS="$save_LDFLAGS"
  9235. LIBS="$save_LIBS"
  9236. ;;
  9237. esac
  9238. case $lt_cv_dlopen_self in
  9239. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9240. *) enable_dlopen_self=unknown ;;
  9241. esac
  9242. case $lt_cv_dlopen_self_static in
  9243. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9244. *) enable_dlopen_self_static=unknown ;;
  9245. esac
  9246. fi
  9247. # Report which library types will actually be built
  9248. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9249. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9250. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9251. echo "${ECHO_T}$can_build_shared" >&6; }
  9252. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9253. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9254. test "$can_build_shared" = "no" && enable_shared=no
  9255. # On AIX, shared libraries and static libraries use the same namespace, and
  9256. # are all built from PIC.
  9257. case $host_os in
  9258. aix3*)
  9259. test "$enable_shared" = yes && enable_static=no
  9260. if test -n "$RANLIB"; then
  9261. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9262. postinstall_cmds='$RANLIB $lib'
  9263. fi
  9264. ;;
  9265. aix4* | aix5*)
  9266. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9267. test "$enable_shared" = yes && enable_static=no
  9268. fi
  9269. ;;
  9270. esac
  9271. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9272. echo "${ECHO_T}$enable_shared" >&6; }
  9273. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9274. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9275. # Make sure either enable_shared or enable_static is yes.
  9276. test "$enable_shared" = yes || enable_static=yes
  9277. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9278. echo "${ECHO_T}$enable_static" >&6; }
  9279. # The else clause should only fire when bootstrapping the
  9280. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9281. # with your package, and you will get complaints that there are
  9282. # no rules to generate ltmain.sh.
  9283. if test -f "$ltmain"; then
  9284. # See if we are running on zsh, and set the options which allow our commands through
  9285. # without removal of \ escapes.
  9286. if test -n "${ZSH_VERSION+set}" ; then
  9287. setopt NO_GLOB_SUBST
  9288. fi
  9289. # Now quote all the things that may contain metacharacters while being
  9290. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9291. # variables and quote the copies for generation of the libtool script.
  9292. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9293. SED SHELL STRIP \
  9294. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9295. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9296. deplibs_check_method reload_flag reload_cmds need_locks \
  9297. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9298. lt_cv_sys_global_symbol_to_c_name_address \
  9299. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9300. old_postinstall_cmds old_postuninstall_cmds \
  9301. compiler \
  9302. CC \
  9303. LD \
  9304. lt_prog_compiler_wl \
  9305. lt_prog_compiler_pic \
  9306. lt_prog_compiler_static \
  9307. lt_prog_compiler_no_builtin_flag \
  9308. export_dynamic_flag_spec \
  9309. thread_safe_flag_spec \
  9310. whole_archive_flag_spec \
  9311. enable_shared_with_static_runtimes \
  9312. old_archive_cmds \
  9313. old_archive_from_new_cmds \
  9314. predep_objects \
  9315. postdep_objects \
  9316. predeps \
  9317. postdeps \
  9318. compiler_lib_search_path \
  9319. archive_cmds \
  9320. archive_expsym_cmds \
  9321. postinstall_cmds \
  9322. postuninstall_cmds \
  9323. old_archive_from_expsyms_cmds \
  9324. allow_undefined_flag \
  9325. no_undefined_flag \
  9326. export_symbols_cmds \
  9327. hardcode_libdir_flag_spec \
  9328. hardcode_libdir_flag_spec_ld \
  9329. hardcode_libdir_separator \
  9330. hardcode_automatic \
  9331. module_cmds \
  9332. module_expsym_cmds \
  9333. lt_cv_prog_compiler_c_o \
  9334. fix_srcfile_path \
  9335. exclude_expsyms \
  9336. include_expsyms; do
  9337. case $var in
  9338. old_archive_cmds | \
  9339. old_archive_from_new_cmds | \
  9340. archive_cmds | \
  9341. archive_expsym_cmds | \
  9342. module_cmds | \
  9343. module_expsym_cmds | \
  9344. old_archive_from_expsyms_cmds | \
  9345. export_symbols_cmds | \
  9346. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9347. postinstall_cmds | postuninstall_cmds | \
  9348. old_postinstall_cmds | old_postuninstall_cmds | \
  9349. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9350. # Double-quote double-evaled strings.
  9351. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9352. ;;
  9353. *)
  9354. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9355. ;;
  9356. esac
  9357. done
  9358. case $lt_echo in
  9359. *'\$0 --fallback-echo"')
  9360. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9361. ;;
  9362. esac
  9363. cfgfile="${ofile}T"
  9364. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9365. $rm -f "$cfgfile"
  9366. { echo "$as_me:$LINENO: creating $ofile" >&5
  9367. echo "$as_me: creating $ofile" >&6;}
  9368. cat <<__EOF__ >> "$cfgfile"
  9369. #! $SHELL
  9370. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9371. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9372. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9373. #
  9374. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9375. # Free Software Foundation, Inc.
  9376. #
  9377. # This file is part of GNU Libtool:
  9378. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9379. #
  9380. # This program is free software; you can redistribute it and/or modify
  9381. # it under the terms of the GNU General Public License as published by
  9382. # the Free Software Foundation; either version 2 of the License, or
  9383. # (at your option) any later version.
  9384. #
  9385. # This program is distributed in the hope that it will be useful, but
  9386. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9387. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9388. # General Public License for more details.
  9389. #
  9390. # You should have received a copy of the GNU General Public License
  9391. # along with this program; if not, write to the Free Software
  9392. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9393. #
  9394. # As a special exception to the GNU General Public License, if you
  9395. # distribute this file as part of a program that contains a
  9396. # configuration script generated by Autoconf, you may include it under
  9397. # the same distribution terms that you use for the rest of that program.
  9398. # A sed program that does not truncate output.
  9399. SED=$lt_SED
  9400. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9401. Xsed="$SED -e 1s/^X//"
  9402. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9403. # if CDPATH is set.
  9404. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9405. # The names of the tagged configurations supported by this script.
  9406. available_tags=
  9407. # ### BEGIN LIBTOOL CONFIG
  9408. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9409. # Shell to use when invoking shell scripts.
  9410. SHELL=$lt_SHELL
  9411. # Whether or not to build shared libraries.
  9412. build_libtool_libs=$enable_shared
  9413. # Whether or not to build static libraries.
  9414. build_old_libs=$enable_static
  9415. # Whether or not to add -lc for building shared libraries.
  9416. build_libtool_need_lc=$archive_cmds_need_lc
  9417. # Whether or not to disallow shared libs when runtime libs are static
  9418. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9419. # Whether or not to optimize for fast installation.
  9420. fast_install=$enable_fast_install
  9421. # The host system.
  9422. host_alias=$host_alias
  9423. host=$host
  9424. host_os=$host_os
  9425. # The build system.
  9426. build_alias=$build_alias
  9427. build=$build
  9428. build_os=$build_os
  9429. # An echo program that does not interpret backslashes.
  9430. echo=$lt_echo
  9431. # The archiver.
  9432. AR=$lt_AR
  9433. AR_FLAGS=$lt_AR_FLAGS
  9434. # A C compiler.
  9435. LTCC=$lt_LTCC
  9436. # LTCC compiler flags.
  9437. LTCFLAGS=$lt_LTCFLAGS
  9438. # A language-specific compiler.
  9439. CC=$lt_compiler
  9440. # Is the compiler the GNU C compiler?
  9441. with_gcc=$GCC
  9442. # An ERE matcher.
  9443. EGREP=$lt_EGREP
  9444. # The linker used to build libraries.
  9445. LD=$lt_LD
  9446. # Whether we need hard or soft links.
  9447. LN_S=$lt_LN_S
  9448. # A BSD-compatible nm program.
  9449. NM=$lt_NM
  9450. # A symbol stripping program
  9451. STRIP=$lt_STRIP
  9452. # Used to examine libraries when file_magic_cmd begins "file"
  9453. MAGIC_CMD=$MAGIC_CMD
  9454. # Used on cygwin: DLL creation program.
  9455. DLLTOOL="$DLLTOOL"
  9456. # Used on cygwin: object dumper.
  9457. OBJDUMP="$OBJDUMP"
  9458. # Used on cygwin: assembler.
  9459. AS="$AS"
  9460. # The name of the directory that contains temporary libtool files.
  9461. objdir=$objdir
  9462. # How to create reloadable object files.
  9463. reload_flag=$lt_reload_flag
  9464. reload_cmds=$lt_reload_cmds
  9465. # How to pass a linker flag through the compiler.
  9466. wl=$lt_lt_prog_compiler_wl
  9467. # Object file suffix (normally "o").
  9468. objext="$ac_objext"
  9469. # Old archive suffix (normally "a").
  9470. libext="$libext"
  9471. # Shared library suffix (normally ".so").
  9472. shrext_cmds='$shrext_cmds'
  9473. # Executable file suffix (normally "").
  9474. exeext="$exeext"
  9475. # Additional compiler flags for building library objects.
  9476. pic_flag=$lt_lt_prog_compiler_pic
  9477. pic_mode=$pic_mode
  9478. # What is the maximum length of a command?
  9479. max_cmd_len=$lt_cv_sys_max_cmd_len
  9480. # Does compiler simultaneously support -c and -o options?
  9481. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9482. # Must we lock files when doing compilation?
  9483. need_locks=$lt_need_locks
  9484. # Do we need the lib prefix for modules?
  9485. need_lib_prefix=$need_lib_prefix
  9486. # Do we need a version for libraries?
  9487. need_version=$need_version
  9488. # Whether dlopen is supported.
  9489. dlopen_support=$enable_dlopen
  9490. # Whether dlopen of programs is supported.
  9491. dlopen_self=$enable_dlopen_self
  9492. # Whether dlopen of statically linked programs is supported.
  9493. dlopen_self_static=$enable_dlopen_self_static
  9494. # Compiler flag to prevent dynamic linking.
  9495. link_static_flag=$lt_lt_prog_compiler_static
  9496. # Compiler flag to turn off builtin functions.
  9497. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9498. # Compiler flag to allow reflexive dlopens.
  9499. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9500. # Compiler flag to generate shared objects directly from archives.
  9501. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9502. # Compiler flag to generate thread-safe objects.
  9503. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9504. # Library versioning type.
  9505. version_type=$version_type
  9506. # Format of library name prefix.
  9507. libname_spec=$lt_libname_spec
  9508. # List of archive names. First name is the real one, the rest are links.
  9509. # The last name is the one that the linker finds with -lNAME.
  9510. library_names_spec=$lt_library_names_spec
  9511. # The coded name of the library, if different from the real name.
  9512. soname_spec=$lt_soname_spec
  9513. # Commands used to build and install an old-style archive.
  9514. RANLIB=$lt_RANLIB
  9515. old_archive_cmds=$lt_old_archive_cmds
  9516. old_postinstall_cmds=$lt_old_postinstall_cmds
  9517. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9518. # Create an old-style archive from a shared archive.
  9519. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9520. # Create a temporary old-style archive to link instead of a shared archive.
  9521. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9522. # Commands used to build and install a shared archive.
  9523. archive_cmds=$lt_archive_cmds
  9524. archive_expsym_cmds=$lt_archive_expsym_cmds
  9525. postinstall_cmds=$lt_postinstall_cmds
  9526. postuninstall_cmds=$lt_postuninstall_cmds
  9527. # Commands used to build a loadable module (assumed same as above if empty)
  9528. module_cmds=$lt_module_cmds
  9529. module_expsym_cmds=$lt_module_expsym_cmds
  9530. # Commands to strip libraries.
  9531. old_striplib=$lt_old_striplib
  9532. striplib=$lt_striplib
  9533. # Dependencies to place before the objects being linked to create a
  9534. # shared library.
  9535. predep_objects=$lt_predep_objects
  9536. # Dependencies to place after the objects being linked to create a
  9537. # shared library.
  9538. postdep_objects=$lt_postdep_objects
  9539. # Dependencies to place before the objects being linked to create a
  9540. # shared library.
  9541. predeps=$lt_predeps
  9542. # Dependencies to place after the objects being linked to create a
  9543. # shared library.
  9544. postdeps=$lt_postdeps
  9545. # The library search path used internally by the compiler when linking
  9546. # a shared library.
  9547. compiler_lib_search_path=$lt_compiler_lib_search_path
  9548. # Method to check whether dependent libraries are shared objects.
  9549. deplibs_check_method=$lt_deplibs_check_method
  9550. # Command to use when deplibs_check_method == file_magic.
  9551. file_magic_cmd=$lt_file_magic_cmd
  9552. # Flag that allows shared libraries with undefined symbols to be built.
  9553. allow_undefined_flag=$lt_allow_undefined_flag
  9554. # Flag that forces no undefined symbols.
  9555. no_undefined_flag=$lt_no_undefined_flag
  9556. # Commands used to finish a libtool library installation in a directory.
  9557. finish_cmds=$lt_finish_cmds
  9558. # Same as above, but a single script fragment to be evaled but not shown.
  9559. finish_eval=$lt_finish_eval
  9560. # Take the output of nm and produce a listing of raw symbols and C names.
  9561. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9562. # Transform the output of nm in a proper C declaration
  9563. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9564. # Transform the output of nm in a C name address pair
  9565. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9566. # This is the shared library runtime path variable.
  9567. runpath_var=$runpath_var
  9568. # This is the shared library path variable.
  9569. shlibpath_var=$shlibpath_var
  9570. # Is shlibpath searched before the hard-coded library search path?
  9571. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9572. # How to hardcode a shared library path into an executable.
  9573. hardcode_action=$hardcode_action
  9574. # Whether we should hardcode library paths into libraries.
  9575. hardcode_into_libs=$hardcode_into_libs
  9576. # Flag to hardcode \$libdir into a binary during linking.
  9577. # This must work even if \$libdir does not exist.
  9578. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9579. # If ld is used when linking, flag to hardcode \$libdir into
  9580. # a binary during linking. This must work even if \$libdir does
  9581. # not exist.
  9582. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9583. # Whether we need a single -rpath flag with a separated argument.
  9584. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9585. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9586. # resulting binary.
  9587. hardcode_direct=$hardcode_direct
  9588. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9589. # resulting binary.
  9590. hardcode_minus_L=$hardcode_minus_L
  9591. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9592. # the resulting binary.
  9593. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9594. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9595. # and all subsequent libraries and executables linked against it.
  9596. hardcode_automatic=$hardcode_automatic
  9597. # Variables whose values should be saved in libtool wrapper scripts and
  9598. # restored at relink time.
  9599. variables_saved_for_relink="$variables_saved_for_relink"
  9600. # Whether libtool must link a program against all its dependency libraries.
  9601. link_all_deplibs=$link_all_deplibs
  9602. # Compile-time system search path for libraries
  9603. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9604. # Run-time system search path for libraries
  9605. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9606. # Fix the shell variable \$srcfile for the compiler.
  9607. fix_srcfile_path=$lt_fix_srcfile_path
  9608. # Set to yes if exported symbols are required.
  9609. always_export_symbols=$always_export_symbols
  9610. # The commands to list exported symbols.
  9611. export_symbols_cmds=$lt_export_symbols_cmds
  9612. # The commands to extract the exported symbol list from a shared archive.
  9613. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9614. # Symbols that should not be listed in the preloaded symbols.
  9615. exclude_expsyms=$lt_exclude_expsyms
  9616. # Symbols that must always be exported.
  9617. include_expsyms=$lt_include_expsyms
  9618. # ### END LIBTOOL CONFIG
  9619. __EOF__
  9620. case $host_os in
  9621. aix3*)
  9622. cat <<\EOF >> "$cfgfile"
  9623. # AIX sometimes has problems with the GCC collect2 program. For some
  9624. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9625. # vanish in a puff of smoke.
  9626. if test "X${COLLECT_NAMES+set}" != Xset; then
  9627. COLLECT_NAMES=
  9628. export COLLECT_NAMES
  9629. fi
  9630. EOF
  9631. ;;
  9632. esac
  9633. # We use sed instead of cat because bash on DJGPP gets confused if
  9634. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9635. # text mode, it properly converts lines to CR/LF. This bash problem
  9636. # is reportedly fixed, but why not run on old versions too?
  9637. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9638. mv -f "$cfgfile" "$ofile" || \
  9639. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9640. chmod +x "$ofile"
  9641. else
  9642. # If there is no Makefile yet, we rely on a make rule to execute
  9643. # `config.status --recheck' to rerun these tests and create the
  9644. # libtool script then.
  9645. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9646. if test -f "$ltmain_in"; then
  9647. test -f Makefile && make "$ltmain"
  9648. fi
  9649. fi
  9650. ac_ext=c
  9651. ac_cpp='$CPP $CPPFLAGS'
  9652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9655. CC="$lt_save_CC"
  9656. # Check whether --with-tags was given.
  9657. if test "${with_tags+set}" = set; then
  9658. withval=$with_tags; tagnames="$withval"
  9659. fi
  9660. if test -f "$ltmain" && test -n "$tagnames"; then
  9661. if test ! -f "${ofile}"; then
  9662. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9663. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9664. fi
  9665. if test -z "$LTCC"; then
  9666. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9667. if test -z "$LTCC"; then
  9668. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9669. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9670. else
  9671. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9672. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9673. fi
  9674. fi
  9675. if test -z "$LTCFLAGS"; then
  9676. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9677. fi
  9678. # Extract list of available tagged configurations in $ofile.
  9679. # Note that this assumes the entire list is on one line.
  9680. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9681. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9682. for tagname in $tagnames; do
  9683. IFS="$lt_save_ifs"
  9684. # Check whether tagname contains only valid characters
  9685. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9686. "") ;;
  9687. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9688. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9689. { (exit 1); exit 1; }; }
  9690. ;;
  9691. esac
  9692. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9693. then
  9694. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9695. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9696. { (exit 1); exit 1; }; }
  9697. fi
  9698. # Update the list of available tags.
  9699. if test -n "$tagname"; then
  9700. echo appending configuration tag \"$tagname\" to $ofile
  9701. case $tagname in
  9702. CXX)
  9703. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9704. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9705. (test "X$CXX" != "Xg++"))) ; then
  9706. ac_ext=cpp
  9707. ac_cpp='$CXXCPP $CPPFLAGS'
  9708. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9709. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9710. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9711. archive_cmds_need_lc_CXX=no
  9712. allow_undefined_flag_CXX=
  9713. always_export_symbols_CXX=no
  9714. archive_expsym_cmds_CXX=
  9715. export_dynamic_flag_spec_CXX=
  9716. hardcode_direct_CXX=no
  9717. hardcode_libdir_flag_spec_CXX=
  9718. hardcode_libdir_flag_spec_ld_CXX=
  9719. hardcode_libdir_separator_CXX=
  9720. hardcode_minus_L_CXX=no
  9721. hardcode_shlibpath_var_CXX=unsupported
  9722. hardcode_automatic_CXX=no
  9723. module_cmds_CXX=
  9724. module_expsym_cmds_CXX=
  9725. link_all_deplibs_CXX=unknown
  9726. old_archive_cmds_CXX=$old_archive_cmds
  9727. no_undefined_flag_CXX=
  9728. whole_archive_flag_spec_CXX=
  9729. enable_shared_with_static_runtimes_CXX=no
  9730. # Dependencies to place before and after the object being linked:
  9731. predep_objects_CXX=
  9732. postdep_objects_CXX=
  9733. predeps_CXX=
  9734. postdeps_CXX=
  9735. compiler_lib_search_path_CXX=
  9736. # Source file extension for C++ test sources.
  9737. ac_ext=cpp
  9738. # Object file extension for compiled C++ test sources.
  9739. objext=o
  9740. objext_CXX=$objext
  9741. # Code to be used in simple compile tests
  9742. lt_simple_compile_test_code="int some_variable = 0;"
  9743. # Code to be used in simple link tests
  9744. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9745. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9746. # If no C compiler was specified, use CC.
  9747. LTCC=${LTCC-"$CC"}
  9748. # If no C compiler flags were specified, use CFLAGS.
  9749. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9750. # Allow CC to be a program name with arguments.
  9751. compiler=$CC
  9752. # save warnings/boilerplate of simple test code
  9753. ac_outfile=conftest.$ac_objext
  9754. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9755. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9756. _lt_compiler_boilerplate=`cat conftest.err`
  9757. $rm conftest*
  9758. ac_outfile=conftest.$ac_objext
  9759. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9760. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9761. _lt_linker_boilerplate=`cat conftest.err`
  9762. $rm conftest*
  9763. # Allow CC to be a program name with arguments.
  9764. lt_save_CC=$CC
  9765. lt_save_LD=$LD
  9766. lt_save_GCC=$GCC
  9767. GCC=$GXX
  9768. lt_save_with_gnu_ld=$with_gnu_ld
  9769. lt_save_path_LD=$lt_cv_path_LD
  9770. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9771. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9772. else
  9773. $as_unset lt_cv_prog_gnu_ld
  9774. fi
  9775. if test -n "${lt_cv_path_LDCXX+set}"; then
  9776. lt_cv_path_LD=$lt_cv_path_LDCXX
  9777. else
  9778. $as_unset lt_cv_path_LD
  9779. fi
  9780. test -z "${LDCXX+set}" || LD=$LDCXX
  9781. CC=${CXX-"c++"}
  9782. compiler=$CC
  9783. compiler_CXX=$CC
  9784. for cc_temp in $compiler""; do
  9785. case $cc_temp in
  9786. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9787. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9788. \-*) ;;
  9789. *) break;;
  9790. esac
  9791. done
  9792. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9793. # We don't want -fno-exception wen compiling C++ code, so set the
  9794. # no_builtin_flag separately
  9795. if test "$GXX" = yes; then
  9796. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9797. else
  9798. lt_prog_compiler_no_builtin_flag_CXX=
  9799. fi
  9800. if test "$GXX" = yes; then
  9801. # Set up default GNU C++ configuration
  9802. # Check whether --with-gnu-ld was given.
  9803. if test "${with_gnu_ld+set}" = set; then
  9804. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9805. else
  9806. with_gnu_ld=no
  9807. fi
  9808. ac_prog=ld
  9809. if test "$GCC" = yes; then
  9810. # Check if gcc -print-prog-name=ld gives a path.
  9811. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9812. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9813. case $host in
  9814. *-*-mingw*)
  9815. # gcc leaves a trailing carriage return which upsets mingw
  9816. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9817. *)
  9818. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9819. esac
  9820. case $ac_prog in
  9821. # Accept absolute paths.
  9822. [\\/]* | ?:[\\/]*)
  9823. re_direlt='/[^/][^/]*/\.\./'
  9824. # Canonicalize the pathname of ld
  9825. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9826. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9827. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9828. done
  9829. test -z "$LD" && LD="$ac_prog"
  9830. ;;
  9831. "")
  9832. # If it fails, then pretend we aren't using GCC.
  9833. ac_prog=ld
  9834. ;;
  9835. *)
  9836. # If it is relative, then search for the first ld in PATH.
  9837. with_gnu_ld=unknown
  9838. ;;
  9839. esac
  9840. elif test "$with_gnu_ld" = yes; then
  9841. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9842. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9843. else
  9844. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9845. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9846. fi
  9847. if test "${lt_cv_path_LD+set}" = set; then
  9848. echo $ECHO_N "(cached) $ECHO_C" >&6
  9849. else
  9850. if test -z "$LD"; then
  9851. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9852. for ac_dir in $PATH; do
  9853. IFS="$lt_save_ifs"
  9854. test -z "$ac_dir" && ac_dir=.
  9855. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9856. lt_cv_path_LD="$ac_dir/$ac_prog"
  9857. # Check to see if the program is GNU ld. I'd rather use --version,
  9858. # but apparently some variants of GNU ld only accept -v.
  9859. # Break only if it was the GNU/non-GNU ld that we prefer.
  9860. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9861. *GNU* | *'with BFD'*)
  9862. test "$with_gnu_ld" != no && break
  9863. ;;
  9864. *)
  9865. test "$with_gnu_ld" != yes && break
  9866. ;;
  9867. esac
  9868. fi
  9869. done
  9870. IFS="$lt_save_ifs"
  9871. else
  9872. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9873. fi
  9874. fi
  9875. LD="$lt_cv_path_LD"
  9876. if test -n "$LD"; then
  9877. { echo "$as_me:$LINENO: result: $LD" >&5
  9878. echo "${ECHO_T}$LD" >&6; }
  9879. else
  9880. { echo "$as_me:$LINENO: result: no" >&5
  9881. echo "${ECHO_T}no" >&6; }
  9882. fi
  9883. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9884. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9885. { (exit 1); exit 1; }; }
  9886. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9887. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9888. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9889. echo $ECHO_N "(cached) $ECHO_C" >&6
  9890. else
  9891. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9892. case `$LD -v 2>&1 </dev/null` in
  9893. *GNU* | *'with BFD'*)
  9894. lt_cv_prog_gnu_ld=yes
  9895. ;;
  9896. *)
  9897. lt_cv_prog_gnu_ld=no
  9898. ;;
  9899. esac
  9900. fi
  9901. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9902. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9903. with_gnu_ld=$lt_cv_prog_gnu_ld
  9904. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9905. # archiving commands below assume that GNU ld is being used.
  9906. if test "$with_gnu_ld" = yes; then
  9907. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9908. 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'
  9909. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9910. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9911. # If archive_cmds runs LD, not CC, wlarc should be empty
  9912. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9913. # investigate it a little bit more. (MM)
  9914. wlarc='${wl}'
  9915. # ancient GNU ld didn't support --whole-archive et. al.
  9916. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9917. grep 'no-whole-archive' > /dev/null; then
  9918. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9919. else
  9920. whole_archive_flag_spec_CXX=
  9921. fi
  9922. else
  9923. with_gnu_ld=no
  9924. wlarc=
  9925. # A generic and very simple default shared library creation
  9926. # command for GNU C++ for the case where it uses the native
  9927. # linker, instead of GNU ld. If possible, this setting should
  9928. # overridden to take advantage of the native linker features on
  9929. # the platform it is being used on.
  9930. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9931. fi
  9932. # Commands to make compiler produce verbose output that lists
  9933. # what "hidden" libraries, object files and flags are used when
  9934. # linking a shared library.
  9935. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9936. else
  9937. GXX=no
  9938. with_gnu_ld=no
  9939. wlarc=
  9940. fi
  9941. # PORTME: fill in a description of your system's C++ link characteristics
  9942. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9943. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9944. ld_shlibs_CXX=yes
  9945. case $host_os in
  9946. aix3*)
  9947. # FIXME: insert proper C++ library support
  9948. ld_shlibs_CXX=no
  9949. ;;
  9950. aix4* | aix5*)
  9951. if test "$host_cpu" = ia64; then
  9952. # On IA64, the linker does run time linking by default, so we don't
  9953. # have to do anything special.
  9954. aix_use_runtimelinking=no
  9955. exp_sym_flag='-Bexport'
  9956. no_entry_flag=""
  9957. else
  9958. aix_use_runtimelinking=no
  9959. # Test if we are trying to use run time linking or normal
  9960. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9961. # need to do runtime linking.
  9962. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9963. for ld_flag in $LDFLAGS; do
  9964. case $ld_flag in
  9965. *-brtl*)
  9966. aix_use_runtimelinking=yes
  9967. break
  9968. ;;
  9969. esac
  9970. done
  9971. ;;
  9972. esac
  9973. exp_sym_flag='-bexport'
  9974. no_entry_flag='-bnoentry'
  9975. fi
  9976. # When large executables or shared objects are built, AIX ld can
  9977. # have problems creating the table of contents. If linking a library
  9978. # or program results in "error TOC overflow" add -mminimal-toc to
  9979. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9980. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9981. archive_cmds_CXX=''
  9982. hardcode_direct_CXX=yes
  9983. hardcode_libdir_separator_CXX=':'
  9984. link_all_deplibs_CXX=yes
  9985. if test "$GXX" = yes; then
  9986. case $host_os in aix4.[012]|aix4.[012].*)
  9987. # We only want to do this on AIX 4.2 and lower, the check
  9988. # below for broken collect2 doesn't work under 4.3+
  9989. collect2name=`${CC} -print-prog-name=collect2`
  9990. if test -f "$collect2name" && \
  9991. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9992. then
  9993. # We have reworked collect2
  9994. :
  9995. else
  9996. # We have old collect2
  9997. hardcode_direct_CXX=unsupported
  9998. # It fails to find uninstalled libraries when the uninstalled
  9999. # path is not listed in the libpath. Setting hardcode_minus_L
  10000. # to unsupported forces relinking
  10001. hardcode_minus_L_CXX=yes
  10002. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10003. hardcode_libdir_separator_CXX=
  10004. fi
  10005. ;;
  10006. esac
  10007. shared_flag='-shared'
  10008. if test "$aix_use_runtimelinking" = yes; then
  10009. shared_flag="$shared_flag "'${wl}-G'
  10010. fi
  10011. else
  10012. # not using gcc
  10013. if test "$host_cpu" = ia64; then
  10014. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10015. # chokes on -Wl,-G. The following line is correct:
  10016. shared_flag='-G'
  10017. else
  10018. if test "$aix_use_runtimelinking" = yes; then
  10019. shared_flag='${wl}-G'
  10020. else
  10021. shared_flag='${wl}-bM:SRE'
  10022. fi
  10023. fi
  10024. fi
  10025. # It seems that -bexpall does not export symbols beginning with
  10026. # underscore (_), so it is better to generate a list of symbols to export.
  10027. always_export_symbols_CXX=yes
  10028. if test "$aix_use_runtimelinking" = yes; then
  10029. # Warning - without using the other runtime loading flags (-brtl),
  10030. # -berok will link without error, but may produce a broken library.
  10031. allow_undefined_flag_CXX='-berok'
  10032. # Determine the default libpath from the value encoded in an empty executable.
  10033. cat >conftest.$ac_ext <<_ACEOF
  10034. /* confdefs.h. */
  10035. _ACEOF
  10036. cat confdefs.h >>conftest.$ac_ext
  10037. cat >>conftest.$ac_ext <<_ACEOF
  10038. /* end confdefs.h. */
  10039. int
  10040. main ()
  10041. {
  10042. ;
  10043. return 0;
  10044. }
  10045. _ACEOF
  10046. rm -f conftest.$ac_objext conftest$ac_exeext
  10047. if { (ac_try="$ac_link"
  10048. case "(($ac_try" in
  10049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10050. *) ac_try_echo=$ac_try;;
  10051. esac
  10052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10053. (eval "$ac_link") 2>conftest.er1
  10054. ac_status=$?
  10055. grep -v '^ *+' conftest.er1 >conftest.err
  10056. rm -f conftest.er1
  10057. cat conftest.err >&5
  10058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10059. (exit $ac_status); } && {
  10060. test -z "$ac_cxx_werror_flag" ||
  10061. test ! -s conftest.err
  10062. } && test -s conftest$ac_exeext &&
  10063. $as_test_x conftest$ac_exeext; then
  10064. lt_aix_libpath_sed='
  10065. /Import File Strings/,/^$/ {
  10066. /^0/ {
  10067. s/^0 *\(.*\)$/\1/
  10068. p
  10069. }
  10070. }'
  10071. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10072. # Check for a 64-bit object if we didn't find anything.
  10073. if test -z "$aix_libpath"; then
  10074. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10075. fi
  10076. else
  10077. echo "$as_me: failed program was:" >&5
  10078. sed 's/^/| /' conftest.$ac_ext >&5
  10079. fi
  10080. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10081. conftest$ac_exeext conftest.$ac_ext
  10082. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10083. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10084. 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10085. else
  10086. if test "$host_cpu" = ia64; then
  10087. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10088. allow_undefined_flag_CXX="-z nodefs"
  10089. 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"
  10090. else
  10091. # Determine the default libpath from the value encoded in an empty executable.
  10092. cat >conftest.$ac_ext <<_ACEOF
  10093. /* confdefs.h. */
  10094. _ACEOF
  10095. cat confdefs.h >>conftest.$ac_ext
  10096. cat >>conftest.$ac_ext <<_ACEOF
  10097. /* end confdefs.h. */
  10098. int
  10099. main ()
  10100. {
  10101. ;
  10102. return 0;
  10103. }
  10104. _ACEOF
  10105. rm -f conftest.$ac_objext conftest$ac_exeext
  10106. if { (ac_try="$ac_link"
  10107. case "(($ac_try" in
  10108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10109. *) ac_try_echo=$ac_try;;
  10110. esac
  10111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10112. (eval "$ac_link") 2>conftest.er1
  10113. ac_status=$?
  10114. grep -v '^ *+' conftest.er1 >conftest.err
  10115. rm -f conftest.er1
  10116. cat conftest.err >&5
  10117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10118. (exit $ac_status); } && {
  10119. test -z "$ac_cxx_werror_flag" ||
  10120. test ! -s conftest.err
  10121. } && test -s conftest$ac_exeext &&
  10122. $as_test_x conftest$ac_exeext; then
  10123. lt_aix_libpath_sed='
  10124. /Import File Strings/,/^$/ {
  10125. /^0/ {
  10126. s/^0 *\(.*\)$/\1/
  10127. p
  10128. }
  10129. }'
  10130. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10131. # Check for a 64-bit object if we didn't find anything.
  10132. if test -z "$aix_libpath"; then
  10133. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10134. fi
  10135. else
  10136. echo "$as_me: failed program was:" >&5
  10137. sed 's/^/| /' conftest.$ac_ext >&5
  10138. fi
  10139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10140. conftest$ac_exeext conftest.$ac_ext
  10141. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10142. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10143. # Warning - without using the other run time loading flags,
  10144. # -berok will link without error, but may produce a broken library.
  10145. no_undefined_flag_CXX=' ${wl}-bernotok'
  10146. allow_undefined_flag_CXX=' ${wl}-berok'
  10147. # Exported symbols can be pulled into shared objects from archives
  10148. whole_archive_flag_spec_CXX='$convenience'
  10149. archive_cmds_need_lc_CXX=yes
  10150. # This is similar to how AIX traditionally builds its shared libraries.
  10151. 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'
  10152. fi
  10153. fi
  10154. ;;
  10155. beos*)
  10156. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10157. allow_undefined_flag_CXX=unsupported
  10158. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10159. # support --undefined. This deserves some investigation. FIXME
  10160. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10161. else
  10162. ld_shlibs_CXX=no
  10163. fi
  10164. ;;
  10165. chorus*)
  10166. case $cc_basename in
  10167. *)
  10168. # FIXME: insert proper C++ library support
  10169. ld_shlibs_CXX=no
  10170. ;;
  10171. esac
  10172. ;;
  10173. cygwin* | mingw* | pw32*)
  10174. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10175. # as there is no search path for DLLs.
  10176. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10177. allow_undefined_flag_CXX=unsupported
  10178. always_export_symbols_CXX=no
  10179. enable_shared_with_static_runtimes_CXX=yes
  10180. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10181. 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'
  10182. # If the export-symbols file already is a .def file (1st line
  10183. # is EXPORTS), use it as is; otherwise, prepend...
  10184. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10185. cp $export_symbols $output_objdir/$soname.def;
  10186. else
  10187. echo EXPORTS > $output_objdir/$soname.def;
  10188. cat $export_symbols >> $output_objdir/$soname.def;
  10189. fi~
  10190. $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'
  10191. else
  10192. ld_shlibs_CXX=no
  10193. fi
  10194. ;;
  10195. darwin* | rhapsody*)
  10196. case $host_os in
  10197. rhapsody* | darwin1.[012])
  10198. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10199. ;;
  10200. *) # Darwin 1.3 on
  10201. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10202. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10203. else
  10204. case ${MACOSX_DEPLOYMENT_TARGET} in
  10205. 10.[012])
  10206. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10207. ;;
  10208. 10.*)
  10209. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10210. ;;
  10211. esac
  10212. fi
  10213. ;;
  10214. esac
  10215. archive_cmds_need_lc_CXX=no
  10216. hardcode_direct_CXX=no
  10217. hardcode_automatic_CXX=yes
  10218. hardcode_shlibpath_var_CXX=unsupported
  10219. whole_archive_flag_spec_CXX=''
  10220. link_all_deplibs_CXX=yes
  10221. if test "$GXX" = yes ; then
  10222. lt_int_apple_cc_single_mod=no
  10223. output_verbose_link_cmd='echo'
  10224. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10225. lt_int_apple_cc_single_mod=yes
  10226. fi
  10227. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10228. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10229. else
  10230. 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'
  10231. fi
  10232. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10233. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10234. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10235. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10236. else
  10237. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10238. fi
  10239. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10240. else
  10241. case $cc_basename in
  10242. xlc*)
  10243. output_verbose_link_cmd='echo'
  10244. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10245. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10246. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10247. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10248. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10249. ;;
  10250. *)
  10251. ld_shlibs_CXX=no
  10252. ;;
  10253. esac
  10254. fi
  10255. ;;
  10256. dgux*)
  10257. case $cc_basename in
  10258. ec++*)
  10259. # FIXME: insert proper C++ library support
  10260. ld_shlibs_CXX=no
  10261. ;;
  10262. ghcx*)
  10263. # Green Hills C++ Compiler
  10264. # FIXME: insert proper C++ library support
  10265. ld_shlibs_CXX=no
  10266. ;;
  10267. *)
  10268. # FIXME: insert proper C++ library support
  10269. ld_shlibs_CXX=no
  10270. ;;
  10271. esac
  10272. ;;
  10273. freebsd[12]*)
  10274. # C++ shared libraries reported to be fairly broken before switch to ELF
  10275. ld_shlibs_CXX=no
  10276. ;;
  10277. freebsd-elf*)
  10278. archive_cmds_need_lc_CXX=no
  10279. ;;
  10280. freebsd* | dragonfly*)
  10281. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10282. # conventions
  10283. ld_shlibs_CXX=yes
  10284. ;;
  10285. gnu*)
  10286. ;;
  10287. hpux9*)
  10288. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10289. hardcode_libdir_separator_CXX=:
  10290. export_dynamic_flag_spec_CXX='${wl}-E'
  10291. hardcode_direct_CXX=yes
  10292. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10293. # but as the default
  10294. # location of the library.
  10295. case $cc_basename in
  10296. CC*)
  10297. # FIXME: insert proper C++ library support
  10298. ld_shlibs_CXX=no
  10299. ;;
  10300. aCC*)
  10301. 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'
  10302. # Commands to make compiler produce verbose output that lists
  10303. # what "hidden" libraries, object files and flags are used when
  10304. # linking a shared library.
  10305. #
  10306. # There doesn't appear to be a way to prevent this compiler from
  10307. # explicitly linking system object files so we need to strip them
  10308. # from the output so that they don't get included in the library
  10309. # dependencies.
  10310. 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 $list'
  10311. ;;
  10312. *)
  10313. if test "$GXX" = yes; then
  10314. 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'
  10315. else
  10316. # FIXME: insert proper C++ library support
  10317. ld_shlibs_CXX=no
  10318. fi
  10319. ;;
  10320. esac
  10321. ;;
  10322. hpux10*|hpux11*)
  10323. if test $with_gnu_ld = no; then
  10324. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10325. hardcode_libdir_separator_CXX=:
  10326. case $host_cpu in
  10327. hppa*64*|ia64*) ;;
  10328. *)
  10329. export_dynamic_flag_spec_CXX='${wl}-E'
  10330. ;;
  10331. esac
  10332. fi
  10333. case $host_cpu in
  10334. hppa*64*|ia64*)
  10335. hardcode_direct_CXX=no
  10336. hardcode_shlibpath_var_CXX=no
  10337. ;;
  10338. *)
  10339. hardcode_direct_CXX=yes
  10340. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10341. # but as the default
  10342. # location of the library.
  10343. ;;
  10344. esac
  10345. case $cc_basename in
  10346. CC*)
  10347. # FIXME: insert proper C++ library support
  10348. ld_shlibs_CXX=no
  10349. ;;
  10350. aCC*)
  10351. case $host_cpu in
  10352. hppa*64*)
  10353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10354. ;;
  10355. ia64*)
  10356. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10357. ;;
  10358. *)
  10359. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10360. ;;
  10361. esac
  10362. # Commands to make compiler produce verbose output that lists
  10363. # what "hidden" libraries, object files and flags are used when
  10364. # linking a shared library.
  10365. #
  10366. # There doesn't appear to be a way to prevent this compiler from
  10367. # explicitly linking system object files so we need to strip them
  10368. # from the output so that they don't get included in the library
  10369. # dependencies.
  10370. 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 $list'
  10371. ;;
  10372. *)
  10373. if test "$GXX" = yes; then
  10374. if test $with_gnu_ld = no; then
  10375. case $host_cpu in
  10376. hppa*64*)
  10377. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10378. ;;
  10379. ia64*)
  10380. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10381. ;;
  10382. *)
  10383. 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'
  10384. ;;
  10385. esac
  10386. fi
  10387. else
  10388. # FIXME: insert proper C++ library support
  10389. ld_shlibs_CXX=no
  10390. fi
  10391. ;;
  10392. esac
  10393. ;;
  10394. interix[3-9]*)
  10395. hardcode_direct_CXX=no
  10396. hardcode_shlibpath_var_CXX=no
  10397. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10398. export_dynamic_flag_spec_CXX='${wl}-E'
  10399. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10400. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10401. # default) and relocated if they conflict, which is a slow very memory
  10402. # consuming and fragmenting process. To avoid this, we pick a random,
  10403. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10404. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10405. 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'
  10406. 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'
  10407. ;;
  10408. irix5* | irix6*)
  10409. case $cc_basename in
  10410. CC*)
  10411. # SGI C++
  10412. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10413. # Archives containing C++ object files must be created using
  10414. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10415. # necessary to make sure instantiated templates are included
  10416. # in the archive.
  10417. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10418. ;;
  10419. *)
  10420. if test "$GXX" = yes; then
  10421. if test "$with_gnu_ld" = no; then
  10422. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10423. else
  10424. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10425. fi
  10426. fi
  10427. link_all_deplibs_CXX=yes
  10428. ;;
  10429. esac
  10430. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10431. hardcode_libdir_separator_CXX=:
  10432. ;;
  10433. linux* | k*bsd*-gnu)
  10434. case $cc_basename in
  10435. KCC*)
  10436. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10437. # KCC will only create a shared library if the output file
  10438. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10439. # to its proper name (with version) after linking.
  10440. 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'
  10441. 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'
  10442. # Commands to make compiler produce verbose output that lists
  10443. # what "hidden" libraries, object files and flags are used when
  10444. # linking a shared library.
  10445. #
  10446. # There doesn't appear to be a way to prevent this compiler from
  10447. # explicitly linking system object files so we need to strip them
  10448. # from the output so that they don't get included in the library
  10449. # dependencies.
  10450. 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 $list'
  10451. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10452. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10453. # Archives containing C++ object files must be created using
  10454. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10455. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10456. ;;
  10457. icpc*)
  10458. # Intel C++
  10459. with_gnu_ld=yes
  10460. # version 8.0 and above of icpc choke on multiply defined symbols
  10461. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10462. # earlier do not add the objects themselves.
  10463. case `$CC -V 2>&1` in
  10464. *"Version 7."*)
  10465. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10466. 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'
  10467. ;;
  10468. *) # Version 8.0 or newer
  10469. tmp_idyn=
  10470. case $host_cpu in
  10471. ia64*) tmp_idyn=' -i_dynamic';;
  10472. esac
  10473. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10474. 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'
  10475. ;;
  10476. esac
  10477. archive_cmds_need_lc_CXX=no
  10478. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10479. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10480. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10481. ;;
  10482. pgCC*)
  10483. # Portland Group C++ compiler
  10484. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10485. 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'
  10486. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10487. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10488. 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'
  10489. ;;
  10490. cxx*)
  10491. # Compaq C++
  10492. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10493. 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'
  10494. runpath_var=LD_RUN_PATH
  10495. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10496. hardcode_libdir_separator_CXX=:
  10497. # Commands to make compiler produce verbose output that lists
  10498. # what "hidden" libraries, object files and flags are used when
  10499. # linking a shared library.
  10500. #
  10501. # There doesn't appear to be a way to prevent this compiler from
  10502. # explicitly linking system object files so we need to strip them
  10503. # from the output so that they don't get included in the library
  10504. # dependencies.
  10505. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
  10506. ;;
  10507. *)
  10508. case `$CC -V 2>&1 | sed 5q` in
  10509. *Sun\ C*)
  10510. # Sun C++ 5.9
  10511. no_undefined_flag_CXX=' -zdefs'
  10512. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10513. 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'
  10514. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10515. 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'
  10516. # Not sure whether something based on
  10517. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10518. # would be better.
  10519. output_verbose_link_cmd='echo'
  10520. # Archives containing C++ object files must be created using
  10521. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10522. # necessary to make sure instantiated templates are included
  10523. # in the archive.
  10524. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10525. ;;
  10526. esac
  10527. ;;
  10528. esac
  10529. ;;
  10530. lynxos*)
  10531. # FIXME: insert proper C++ library support
  10532. ld_shlibs_CXX=no
  10533. ;;
  10534. m88k*)
  10535. # FIXME: insert proper C++ library support
  10536. ld_shlibs_CXX=no
  10537. ;;
  10538. mvs*)
  10539. case $cc_basename in
  10540. cxx*)
  10541. # FIXME: insert proper C++ library support
  10542. ld_shlibs_CXX=no
  10543. ;;
  10544. *)
  10545. # FIXME: insert proper C++ library support
  10546. ld_shlibs_CXX=no
  10547. ;;
  10548. esac
  10549. ;;
  10550. netbsd*)
  10551. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10552. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10553. wlarc=
  10554. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10555. hardcode_direct_CXX=yes
  10556. hardcode_shlibpath_var_CXX=no
  10557. fi
  10558. # Workaround some broken pre-1.5 toolchains
  10559. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10560. ;;
  10561. openbsd2*)
  10562. # C++ shared libraries are fairly broken
  10563. ld_shlibs_CXX=no
  10564. ;;
  10565. openbsd*)
  10566. if test -f /usr/libexec/ld.so; then
  10567. hardcode_direct_CXX=yes
  10568. hardcode_shlibpath_var_CXX=no
  10569. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10570. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10571. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10572. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10573. export_dynamic_flag_spec_CXX='${wl}-E'
  10574. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10575. fi
  10576. output_verbose_link_cmd='echo'
  10577. else
  10578. ld_shlibs_CXX=no
  10579. fi
  10580. ;;
  10581. osf3*)
  10582. case $cc_basename in
  10583. KCC*)
  10584. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10585. # KCC will only create a shared library if the output file
  10586. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10587. # to its proper name (with version) after linking.
  10588. 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'
  10589. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10590. hardcode_libdir_separator_CXX=:
  10591. # Archives containing C++ object files must be created using
  10592. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10593. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10594. ;;
  10595. RCC*)
  10596. # Rational C++ 2.4.1
  10597. # FIXME: insert proper C++ library support
  10598. ld_shlibs_CXX=no
  10599. ;;
  10600. cxx*)
  10601. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10602. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10603. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10604. hardcode_libdir_separator_CXX=:
  10605. # Commands to make compiler produce verbose output that lists
  10606. # what "hidden" libraries, object files and flags are used when
  10607. # linking a shared library.
  10608. #
  10609. # There doesn't appear to be a way to prevent this compiler from
  10610. # explicitly linking system object files so we need to strip them
  10611. # from the output so that they don't get included in the library
  10612. # dependencies.
  10613. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
  10614. ;;
  10615. *)
  10616. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10617. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10618. 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10619. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10620. hardcode_libdir_separator_CXX=:
  10621. # Commands to make compiler produce verbose output that lists
  10622. # what "hidden" libraries, object files and flags are used when
  10623. # linking a shared library.
  10624. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10625. else
  10626. # FIXME: insert proper C++ library support
  10627. ld_shlibs_CXX=no
  10628. fi
  10629. ;;
  10630. esac
  10631. ;;
  10632. osf4* | osf5*)
  10633. case $cc_basename in
  10634. KCC*)
  10635. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10636. # KCC will only create a shared library if the output file
  10637. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10638. # to its proper name (with version) after linking.
  10639. 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'
  10640. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10641. hardcode_libdir_separator_CXX=:
  10642. # Archives containing C++ object files must be created using
  10643. # the KAI C++ compiler.
  10644. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10645. ;;
  10646. RCC*)
  10647. # Rational C++ 2.4.1
  10648. # FIXME: insert proper C++ library support
  10649. ld_shlibs_CXX=no
  10650. ;;
  10651. cxx*)
  10652. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10653. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10654. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10655. echo "-hidden">> $lib.exp~
  10656. $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10657. $rm $lib.exp'
  10658. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10659. hardcode_libdir_separator_CXX=:
  10660. # Commands to make compiler produce verbose output that lists
  10661. # what "hidden" libraries, object files and flags are used when
  10662. # linking a shared library.
  10663. #
  10664. # There doesn't appear to be a way to prevent this compiler from
  10665. # explicitly linking system object files so we need to strip them
  10666. # from the output so that they don't get included in the library
  10667. # dependencies.
  10668. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
  10669. ;;
  10670. *)
  10671. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10672. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10673. 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10674. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10675. hardcode_libdir_separator_CXX=:
  10676. # Commands to make compiler produce verbose output that lists
  10677. # what "hidden" libraries, object files and flags are used when
  10678. # linking a shared library.
  10679. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10680. else
  10681. # FIXME: insert proper C++ library support
  10682. ld_shlibs_CXX=no
  10683. fi
  10684. ;;
  10685. esac
  10686. ;;
  10687. psos*)
  10688. # FIXME: insert proper C++ library support
  10689. ld_shlibs_CXX=no
  10690. ;;
  10691. sunos4*)
  10692. case $cc_basename in
  10693. CC*)
  10694. # Sun C++ 4.x
  10695. # FIXME: insert proper C++ library support
  10696. ld_shlibs_CXX=no
  10697. ;;
  10698. lcc*)
  10699. # Lucid
  10700. # FIXME: insert proper C++ library support
  10701. ld_shlibs_CXX=no
  10702. ;;
  10703. *)
  10704. # FIXME: insert proper C++ library support
  10705. ld_shlibs_CXX=no
  10706. ;;
  10707. esac
  10708. ;;
  10709. solaris*)
  10710. case $cc_basename in
  10711. CC*)
  10712. # Sun C++ 4.2, 5.x and Centerline C++
  10713. archive_cmds_need_lc_CXX=yes
  10714. no_undefined_flag_CXX=' -zdefs'
  10715. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10716. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10717. $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'
  10718. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10719. hardcode_shlibpath_var_CXX=no
  10720. case $host_os in
  10721. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10722. *)
  10723. # The compiler driver will combine and reorder linker options,
  10724. # but understands `-z linker_flag'.
  10725. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10726. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10727. ;;
  10728. esac
  10729. link_all_deplibs_CXX=yes
  10730. output_verbose_link_cmd='echo'
  10731. # Archives containing C++ object files must be created using
  10732. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10733. # necessary to make sure instantiated templates are included
  10734. # in the archive.
  10735. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10736. ;;
  10737. gcx*)
  10738. # Green Hills C++ Compiler
  10739. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10740. # The C++ compiler must be used to create the archive.
  10741. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10742. ;;
  10743. *)
  10744. # GNU C++ compiler with Solaris linker
  10745. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10746. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10747. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10748. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10749. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10750. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10751. # Commands to make compiler produce verbose output that lists
  10752. # what "hidden" libraries, object files and flags are used when
  10753. # linking a shared library.
  10754. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10755. else
  10756. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10757. # platform.
  10758. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10759. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10760. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10761. # Commands to make compiler produce verbose output that lists
  10762. # what "hidden" libraries, object files and flags are used when
  10763. # linking a shared library.
  10764. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10765. fi
  10766. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10767. case $host_os in
  10768. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10769. *)
  10770. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10771. ;;
  10772. esac
  10773. fi
  10774. ;;
  10775. esac
  10776. ;;
  10777. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10778. no_undefined_flag_CXX='${wl}-z,text'
  10779. archive_cmds_need_lc_CXX=no
  10780. hardcode_shlibpath_var_CXX=no
  10781. runpath_var='LD_RUN_PATH'
  10782. case $cc_basename in
  10783. CC*)
  10784. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10785. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10786. ;;
  10787. *)
  10788. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10789. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10790. ;;
  10791. esac
  10792. ;;
  10793. sysv5* | sco3.2v5* | sco5v6*)
  10794. # Note: We can NOT use -z defs as we might desire, because we do not
  10795. # link with -lc, and that would cause any symbols used from libc to
  10796. # always be unresolved, which means just about no library would
  10797. # ever link correctly. If we're not using GNU ld we use -z text
  10798. # though, which does catch some bad symbols but isn't as heavy-handed
  10799. # as -z defs.
  10800. # For security reasons, it is highly recommended that you always
  10801. # use absolute paths for naming shared libraries, and exclude the
  10802. # DT_RUNPATH tag from executables and libraries. But doing so
  10803. # requires that you compile everything twice, which is a pain.
  10804. # So that behaviour is only enabled if SCOABSPATH is set to a
  10805. # non-empty value in the environment. Most likely only useful for
  10806. # creating official distributions of packages.
  10807. # This is a hack until libtool officially supports absolute path
  10808. # names for shared libraries.
  10809. no_undefined_flag_CXX='${wl}-z,text'
  10810. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10811. archive_cmds_need_lc_CXX=no
  10812. hardcode_shlibpath_var_CXX=no
  10813. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10814. hardcode_libdir_separator_CXX=':'
  10815. link_all_deplibs_CXX=yes
  10816. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10817. runpath_var='LD_RUN_PATH'
  10818. case $cc_basename in
  10819. CC*)
  10820. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10821. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10822. ;;
  10823. *)
  10824. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10825. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10826. ;;
  10827. esac
  10828. ;;
  10829. tandem*)
  10830. case $cc_basename in
  10831. NCC*)
  10832. # NonStop-UX NCC 3.20
  10833. # FIXME: insert proper C++ library support
  10834. ld_shlibs_CXX=no
  10835. ;;
  10836. *)
  10837. # FIXME: insert proper C++ library support
  10838. ld_shlibs_CXX=no
  10839. ;;
  10840. esac
  10841. ;;
  10842. vxworks*)
  10843. # FIXME: insert proper C++ library support
  10844. ld_shlibs_CXX=no
  10845. ;;
  10846. *)
  10847. # FIXME: insert proper C++ library support
  10848. ld_shlibs_CXX=no
  10849. ;;
  10850. esac
  10851. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10852. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10853. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10854. GCC_CXX="$GXX"
  10855. LD_CXX="$LD"
  10856. cat > conftest.$ac_ext <<EOF
  10857. class Foo
  10858. {
  10859. public:
  10860. Foo (void) { a = 0; }
  10861. private:
  10862. int a;
  10863. };
  10864. EOF
  10865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10866. (eval $ac_compile) 2>&5
  10867. ac_status=$?
  10868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10869. (exit $ac_status); }; then
  10870. # Parse the compiler output and extract the necessary
  10871. # objects, libraries and library flags.
  10872. # Sentinel used to keep track of whether or not we are before
  10873. # the conftest object file.
  10874. pre_test_object_deps_done=no
  10875. # The `*' in the case matches for architectures that use `case' in
  10876. # $output_verbose_cmd can trigger glob expansion during the loop
  10877. # eval without this substitution.
  10878. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10879. for p in `eval $output_verbose_link_cmd`; do
  10880. case $p in
  10881. -L* | -R* | -l*)
  10882. # Some compilers place space between "-{L,R}" and the path.
  10883. # Remove the space.
  10884. if test $p = "-L" \
  10885. || test $p = "-R"; then
  10886. prev=$p
  10887. continue
  10888. else
  10889. prev=
  10890. fi
  10891. if test "$pre_test_object_deps_done" = no; then
  10892. case $p in
  10893. -L* | -R*)
  10894. # Internal compiler library paths should come after those
  10895. # provided the user. The postdeps already come after the
  10896. # user supplied libs so there is no need to process them.
  10897. if test -z "$compiler_lib_search_path_CXX"; then
  10898. compiler_lib_search_path_CXX="${prev}${p}"
  10899. else
  10900. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10901. fi
  10902. ;;
  10903. # The "-l" case would never come before the object being
  10904. # linked, so don't bother handling this case.
  10905. esac
  10906. else
  10907. if test -z "$postdeps_CXX"; then
  10908. postdeps_CXX="${prev}${p}"
  10909. else
  10910. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10911. fi
  10912. fi
  10913. ;;
  10914. *.$objext)
  10915. # This assumes that the test object file only shows up
  10916. # once in the compiler output.
  10917. if test "$p" = "conftest.$objext"; then
  10918. pre_test_object_deps_done=yes
  10919. continue
  10920. fi
  10921. if test "$pre_test_object_deps_done" = no; then
  10922. if test -z "$predep_objects_CXX"; then
  10923. predep_objects_CXX="$p"
  10924. else
  10925. predep_objects_CXX="$predep_objects_CXX $p"
  10926. fi
  10927. else
  10928. if test -z "$postdep_objects_CXX"; then
  10929. postdep_objects_CXX="$p"
  10930. else
  10931. postdep_objects_CXX="$postdep_objects_CXX $p"
  10932. fi
  10933. fi
  10934. ;;
  10935. *) ;; # Ignore the rest.
  10936. esac
  10937. done
  10938. # Clean up.
  10939. rm -f a.out a.exe
  10940. else
  10941. echo "libtool.m4: error: problem compiling CXX test program"
  10942. fi
  10943. $rm -f confest.$objext
  10944. # PORTME: override above test on systems where it is broken
  10945. case $host_os in
  10946. interix[3-9]*)
  10947. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10948. # hack all around it, let's just trust "g++" to DTRT.
  10949. predep_objects_CXX=
  10950. postdep_objects_CXX=
  10951. postdeps_CXX=
  10952. ;;
  10953. linux*)
  10954. case `$CC -V 2>&1 | sed 5q` in
  10955. *Sun\ C*)
  10956. # Sun C++ 5.9
  10957. #
  10958. # The more standards-conforming stlport4 library is
  10959. # incompatible with the Cstd library. Avoid specifying
  10960. # it if it's in CXXFLAGS. Ignore libCrun as
  10961. # -library=stlport4 depends on it.
  10962. case " $CXX $CXXFLAGS " in
  10963. *" -library=stlport4 "*)
  10964. solaris_use_stlport4=yes
  10965. ;;
  10966. esac
  10967. if test "$solaris_use_stlport4" != yes; then
  10968. postdeps_CXX='-library=Cstd -library=Crun'
  10969. fi
  10970. ;;
  10971. esac
  10972. ;;
  10973. solaris*)
  10974. case $cc_basename in
  10975. CC*)
  10976. # The more standards-conforming stlport4 library is
  10977. # incompatible with the Cstd library. Avoid specifying
  10978. # it if it's in CXXFLAGS. Ignore libCrun as
  10979. # -library=stlport4 depends on it.
  10980. case " $CXX $CXXFLAGS " in
  10981. *" -library=stlport4 "*)
  10982. solaris_use_stlport4=yes
  10983. ;;
  10984. esac
  10985. # Adding this requires a known-good setup of shared libraries for
  10986. # Sun compiler versions before 5.6, else PIC objects from an old
  10987. # archive will be linked into the output, leading to subtle bugs.
  10988. if test "$solaris_use_stlport4" != yes; then
  10989. postdeps_CXX='-library=Cstd -library=Crun'
  10990. fi
  10991. ;;
  10992. esac
  10993. ;;
  10994. esac
  10995. case " $postdeps_CXX " in
  10996. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10997. esac
  10998. lt_prog_compiler_wl_CXX=
  10999. lt_prog_compiler_pic_CXX=
  11000. lt_prog_compiler_static_CXX=
  11001. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11002. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11003. # C++ specific cases for pic, static, wl, etc.
  11004. if test "$GXX" = yes; then
  11005. lt_prog_compiler_wl_CXX='-Wl,'
  11006. lt_prog_compiler_static_CXX='-static'
  11007. case $host_os in
  11008. aix*)
  11009. # All AIX code is PIC.
  11010. if test "$host_cpu" = ia64; then
  11011. # AIX 5 now supports IA64 processor
  11012. lt_prog_compiler_static_CXX='-Bstatic'
  11013. fi
  11014. ;;
  11015. amigaos*)
  11016. # FIXME: we need at least 68020 code to build shared libraries, but
  11017. # adding the `-m68020' flag to GCC prevents building anything better,
  11018. # like `-m68040'.
  11019. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11020. ;;
  11021. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11022. # PIC is the default for these OSes.
  11023. ;;
  11024. mingw* | cygwin* | os2* | pw32*)
  11025. # This hack is so that the source file can tell whether it is being
  11026. # built for inclusion in a dll (and should export symbols for example).
  11027. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11028. # (--disable-auto-import) libraries
  11029. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11030. ;;
  11031. darwin* | rhapsody*)
  11032. # PIC is the default on this platform
  11033. # Common symbols not allowed in MH_DYLIB files
  11034. lt_prog_compiler_pic_CXX='-fno-common'
  11035. ;;
  11036. *djgpp*)
  11037. # DJGPP does not support shared libraries at all
  11038. lt_prog_compiler_pic_CXX=
  11039. ;;
  11040. interix[3-9]*)
  11041. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11042. # Instead, we relocate shared libraries at runtime.
  11043. ;;
  11044. sysv4*MP*)
  11045. if test -d /usr/nec; then
  11046. lt_prog_compiler_pic_CXX=-Kconform_pic
  11047. fi
  11048. ;;
  11049. hpux*)
  11050. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11051. # not for PA HP-UX.
  11052. case $host_cpu in
  11053. hppa*64*|ia64*)
  11054. ;;
  11055. *)
  11056. lt_prog_compiler_pic_CXX='-fPIC'
  11057. ;;
  11058. esac
  11059. ;;
  11060. *)
  11061. lt_prog_compiler_pic_CXX='-fPIC'
  11062. ;;
  11063. esac
  11064. else
  11065. case $host_os in
  11066. aix4* | aix5*)
  11067. # All AIX code is PIC.
  11068. if test "$host_cpu" = ia64; then
  11069. # AIX 5 now supports IA64 processor
  11070. lt_prog_compiler_static_CXX='-Bstatic'
  11071. else
  11072. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11073. fi
  11074. ;;
  11075. chorus*)
  11076. case $cc_basename in
  11077. cxch68*)
  11078. # Green Hills C++ Compiler
  11079. # _LT_AC_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"
  11080. ;;
  11081. esac
  11082. ;;
  11083. darwin*)
  11084. # PIC is the default on this platform
  11085. # Common symbols not allowed in MH_DYLIB files
  11086. case $cc_basename in
  11087. xlc*)
  11088. lt_prog_compiler_pic_CXX='-qnocommon'
  11089. lt_prog_compiler_wl_CXX='-Wl,'
  11090. ;;
  11091. esac
  11092. ;;
  11093. dgux*)
  11094. case $cc_basename in
  11095. ec++*)
  11096. lt_prog_compiler_pic_CXX='-KPIC'
  11097. ;;
  11098. ghcx*)
  11099. # Green Hills C++ Compiler
  11100. lt_prog_compiler_pic_CXX='-pic'
  11101. ;;
  11102. *)
  11103. ;;
  11104. esac
  11105. ;;
  11106. freebsd* | dragonfly*)
  11107. # FreeBSD uses GNU C++
  11108. ;;
  11109. hpux9* | hpux10* | hpux11*)
  11110. case $cc_basename in
  11111. CC*)
  11112. lt_prog_compiler_wl_CXX='-Wl,'
  11113. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11114. if test "$host_cpu" != ia64; then
  11115. lt_prog_compiler_pic_CXX='+Z'
  11116. fi
  11117. ;;
  11118. aCC*)
  11119. lt_prog_compiler_wl_CXX='-Wl,'
  11120. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11121. case $host_cpu in
  11122. hppa*64*|ia64*)
  11123. # +Z the default
  11124. ;;
  11125. *)
  11126. lt_prog_compiler_pic_CXX='+Z'
  11127. ;;
  11128. esac
  11129. ;;
  11130. *)
  11131. ;;
  11132. esac
  11133. ;;
  11134. interix*)
  11135. # This is c89, which is MS Visual C++ (no shared libs)
  11136. # Anyone wants to do a port?
  11137. ;;
  11138. irix5* | irix6* | nonstopux*)
  11139. case $cc_basename in
  11140. CC*)
  11141. lt_prog_compiler_wl_CXX='-Wl,'
  11142. lt_prog_compiler_static_CXX='-non_shared'
  11143. # CC pic flag -KPIC is the default.
  11144. ;;
  11145. *)
  11146. ;;
  11147. esac
  11148. ;;
  11149. linux* | k*bsd*-gnu)
  11150. case $cc_basename in
  11151. KCC*)
  11152. # KAI C++ Compiler
  11153. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11154. lt_prog_compiler_pic_CXX='-fPIC'
  11155. ;;
  11156. icpc* | ecpc*)
  11157. # Intel C++
  11158. lt_prog_compiler_wl_CXX='-Wl,'
  11159. lt_prog_compiler_pic_CXX='-KPIC'
  11160. lt_prog_compiler_static_CXX='-static'
  11161. ;;
  11162. pgCC*)
  11163. # Portland Group C++ compiler.
  11164. lt_prog_compiler_wl_CXX='-Wl,'
  11165. lt_prog_compiler_pic_CXX='-fpic'
  11166. lt_prog_compiler_static_CXX='-Bstatic'
  11167. ;;
  11168. cxx*)
  11169. # Compaq C++
  11170. # Make sure the PIC flag is empty. It appears that all Alpha
  11171. # Linux and Compaq Tru64 Unix objects are PIC.
  11172. lt_prog_compiler_pic_CXX=
  11173. lt_prog_compiler_static_CXX='-non_shared'
  11174. ;;
  11175. *)
  11176. case `$CC -V 2>&1 | sed 5q` in
  11177. *Sun\ C*)
  11178. # Sun C++ 5.9
  11179. lt_prog_compiler_pic_CXX='-KPIC'
  11180. lt_prog_compiler_static_CXX='-Bstatic'
  11181. lt_prog_compiler_wl_CXX='-Qoption ld '
  11182. ;;
  11183. esac
  11184. ;;
  11185. esac
  11186. ;;
  11187. lynxos*)
  11188. ;;
  11189. m88k*)
  11190. ;;
  11191. mvs*)
  11192. case $cc_basename in
  11193. cxx*)
  11194. lt_prog_compiler_pic_CXX='-W c,exportall'
  11195. ;;
  11196. *)
  11197. ;;
  11198. esac
  11199. ;;
  11200. netbsd*)
  11201. ;;
  11202. osf3* | osf4* | osf5*)
  11203. case $cc_basename in
  11204. KCC*)
  11205. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11206. ;;
  11207. RCC*)
  11208. # Rational C++ 2.4.1
  11209. lt_prog_compiler_pic_CXX='-pic'
  11210. ;;
  11211. cxx*)
  11212. # Digital/Compaq C++
  11213. lt_prog_compiler_wl_CXX='-Wl,'
  11214. # Make sure the PIC flag is empty. It appears that all Alpha
  11215. # Linux and Compaq Tru64 Unix objects are PIC.
  11216. lt_prog_compiler_pic_CXX=
  11217. lt_prog_compiler_static_CXX='-non_shared'
  11218. ;;
  11219. *)
  11220. ;;
  11221. esac
  11222. ;;
  11223. psos*)
  11224. ;;
  11225. solaris*)
  11226. case $cc_basename in
  11227. CC*)
  11228. # Sun C++ 4.2, 5.x and Centerline C++
  11229. lt_prog_compiler_pic_CXX='-KPIC'
  11230. lt_prog_compiler_static_CXX='-Bstatic'
  11231. lt_prog_compiler_wl_CXX='-Qoption ld '
  11232. ;;
  11233. gcx*)
  11234. # Green Hills C++ Compiler
  11235. lt_prog_compiler_pic_CXX='-PIC'
  11236. ;;
  11237. *)
  11238. ;;
  11239. esac
  11240. ;;
  11241. sunos4*)
  11242. case $cc_basename in
  11243. CC*)
  11244. # Sun C++ 4.x
  11245. lt_prog_compiler_pic_CXX='-pic'
  11246. lt_prog_compiler_static_CXX='-Bstatic'
  11247. ;;
  11248. lcc*)
  11249. # Lucid
  11250. lt_prog_compiler_pic_CXX='-pic'
  11251. ;;
  11252. *)
  11253. ;;
  11254. esac
  11255. ;;
  11256. tandem*)
  11257. case $cc_basename in
  11258. NCC*)
  11259. # NonStop-UX NCC 3.20
  11260. lt_prog_compiler_pic_CXX='-KPIC'
  11261. ;;
  11262. *)
  11263. ;;
  11264. esac
  11265. ;;
  11266. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11267. case $cc_basename in
  11268. CC*)
  11269. lt_prog_compiler_wl_CXX='-Wl,'
  11270. lt_prog_compiler_pic_CXX='-KPIC'
  11271. lt_prog_compiler_static_CXX='-Bstatic'
  11272. ;;
  11273. esac
  11274. ;;
  11275. vxworks*)
  11276. ;;
  11277. *)
  11278. lt_prog_compiler_can_build_shared_CXX=no
  11279. ;;
  11280. esac
  11281. fi
  11282. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11283. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11284. #
  11285. # Check to make sure the PIC flag actually works.
  11286. #
  11287. if test -n "$lt_prog_compiler_pic_CXX"; then
  11288. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11289. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11290. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11291. echo $ECHO_N "(cached) $ECHO_C" >&6
  11292. else
  11293. lt_prog_compiler_pic_works_CXX=no
  11294. ac_outfile=conftest.$ac_objext
  11295. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11296. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11297. # Insert the option either (1) after the last *FLAGS variable, or
  11298. # (2) before a word containing "conftest.", or (3) at the end.
  11299. # Note that $ac_compile itself does not contain backslashes and begins
  11300. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11301. # The option is referenced via a variable to avoid confusing sed.
  11302. lt_compile=`echo "$ac_compile" | $SED \
  11303. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11304. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11305. -e 's:$: $lt_compiler_flag:'`
  11306. (eval echo "\"\$as_me:12590: $lt_compile\"" >&5)
  11307. (eval "$lt_compile" 2>conftest.err)
  11308. ac_status=$?
  11309. cat conftest.err >&5
  11310. echo "$as_me:12594: \$? = $ac_status" >&5
  11311. if (exit $ac_status) && test -s "$ac_outfile"; then
  11312. # The compiler can only warn and ignore the option if not recognized
  11313. # So say no if there are warnings other than the usual output.
  11314. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11315. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11316. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11317. lt_prog_compiler_pic_works_CXX=yes
  11318. fi
  11319. fi
  11320. $rm conftest*
  11321. fi
  11322. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11323. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11324. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11325. case $lt_prog_compiler_pic_CXX in
  11326. "" | " "*) ;;
  11327. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11328. esac
  11329. else
  11330. lt_prog_compiler_pic_CXX=
  11331. lt_prog_compiler_can_build_shared_CXX=no
  11332. fi
  11333. fi
  11334. case $host_os in
  11335. # For platforms which do not support PIC, -DPIC is meaningless:
  11336. *djgpp*)
  11337. lt_prog_compiler_pic_CXX=
  11338. ;;
  11339. *)
  11340. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11341. ;;
  11342. esac
  11343. #
  11344. # Check to make sure the static flag actually works.
  11345. #
  11346. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11347. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11348. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11349. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11350. echo $ECHO_N "(cached) $ECHO_C" >&6
  11351. else
  11352. lt_prog_compiler_static_works_CXX=no
  11353. save_LDFLAGS="$LDFLAGS"
  11354. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11355. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11356. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11357. # The linker can only warn and ignore the option if not recognized
  11358. # So say no if there are warnings
  11359. if test -s conftest.err; then
  11360. # Append any errors to the config.log.
  11361. cat conftest.err 1>&5
  11362. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11364. if diff conftest.exp conftest.er2 >/dev/null; then
  11365. lt_prog_compiler_static_works_CXX=yes
  11366. fi
  11367. else
  11368. lt_prog_compiler_static_works_CXX=yes
  11369. fi
  11370. fi
  11371. $rm conftest*
  11372. LDFLAGS="$save_LDFLAGS"
  11373. fi
  11374. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11375. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11376. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11377. :
  11378. else
  11379. lt_prog_compiler_static_CXX=
  11380. fi
  11381. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11382. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11383. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11384. echo $ECHO_N "(cached) $ECHO_C" >&6
  11385. else
  11386. lt_cv_prog_compiler_c_o_CXX=no
  11387. $rm -r conftest 2>/dev/null
  11388. mkdir conftest
  11389. cd conftest
  11390. mkdir out
  11391. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11392. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11393. # Insert the option either (1) after the last *FLAGS variable, or
  11394. # (2) before a word containing "conftest.", or (3) at the end.
  11395. # Note that $ac_compile itself does not contain backslashes and begins
  11396. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11397. lt_compile=`echo "$ac_compile" | $SED \
  11398. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11399. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11400. -e 's:$: $lt_compiler_flag:'`
  11401. (eval echo "\"\$as_me:12694: $lt_compile\"" >&5)
  11402. (eval "$lt_compile" 2>out/conftest.err)
  11403. ac_status=$?
  11404. cat out/conftest.err >&5
  11405. echo "$as_me:12698: \$? = $ac_status" >&5
  11406. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11407. then
  11408. # The compiler can only warn and ignore the option if not recognized
  11409. # So say no if there are warnings
  11410. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11411. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11412. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11413. lt_cv_prog_compiler_c_o_CXX=yes
  11414. fi
  11415. fi
  11416. chmod u+w . 2>&5
  11417. $rm conftest*
  11418. # SGI C++ compiler will create directory out/ii_files/ for
  11419. # template instantiation
  11420. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11421. $rm out/* && rmdir out
  11422. cd ..
  11423. rmdir conftest
  11424. $rm conftest*
  11425. fi
  11426. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11427. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11428. hard_links="nottested"
  11429. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11430. # do not overwrite the value of need_locks provided by the user
  11431. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11432. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11433. hard_links=yes
  11434. $rm conftest*
  11435. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11436. touch conftest.a
  11437. ln conftest.a conftest.b 2>&5 || hard_links=no
  11438. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11439. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11440. echo "${ECHO_T}$hard_links" >&6; }
  11441. if test "$hard_links" = no; then
  11442. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11443. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11444. need_locks=warn
  11445. fi
  11446. else
  11447. need_locks=no
  11448. fi
  11449. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11450. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11451. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11452. case $host_os in
  11453. aix4* | aix5*)
  11454. # If we're using GNU nm, then we don't want the "-C" option.
  11455. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11456. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11457. 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'
  11458. else
  11459. 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'
  11460. fi
  11461. ;;
  11462. pw32*)
  11463. export_symbols_cmds_CXX="$ltdll_cmds"
  11464. ;;
  11465. cygwin* | mingw*)
  11466. 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'
  11467. ;;
  11468. *)
  11469. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11470. ;;
  11471. esac
  11472. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11473. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11474. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11475. #
  11476. # Do we need to explicitly link libc?
  11477. #
  11478. case "x$archive_cmds_need_lc_CXX" in
  11479. x|xyes)
  11480. # Assume -lc should be added
  11481. archive_cmds_need_lc_CXX=yes
  11482. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11483. case $archive_cmds_CXX in
  11484. *'~'*)
  11485. # FIXME: we may have to deal with multi-command sequences.
  11486. ;;
  11487. '$CC '*)
  11488. # Test whether the compiler implicitly links with -lc since on some
  11489. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11490. # to ld, don't add -lc before -lgcc.
  11491. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11492. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11493. $rm conftest*
  11494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11496. (eval $ac_compile) 2>&5
  11497. ac_status=$?
  11498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11499. (exit $ac_status); } 2>conftest.err; then
  11500. soname=conftest
  11501. lib=conftest
  11502. libobjs=conftest.$ac_objext
  11503. deplibs=
  11504. wl=$lt_prog_compiler_wl_CXX
  11505. pic_flag=$lt_prog_compiler_pic_CXX
  11506. compiler_flags=-v
  11507. linker_flags=-v
  11508. verstring=
  11509. output_objdir=.
  11510. libname=conftest
  11511. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11512. allow_undefined_flag_CXX=
  11513. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11514. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11515. ac_status=$?
  11516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11517. (exit $ac_status); }
  11518. then
  11519. archive_cmds_need_lc_CXX=no
  11520. else
  11521. archive_cmds_need_lc_CXX=yes
  11522. fi
  11523. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11524. else
  11525. cat conftest.err 1>&5
  11526. fi
  11527. $rm conftest*
  11528. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11529. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11530. ;;
  11531. esac
  11532. fi
  11533. ;;
  11534. esac
  11535. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11536. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11537. library_names_spec=
  11538. libname_spec='lib$name'
  11539. soname_spec=
  11540. shrext_cmds=".so"
  11541. postinstall_cmds=
  11542. postuninstall_cmds=
  11543. finish_cmds=
  11544. finish_eval=
  11545. shlibpath_var=
  11546. shlibpath_overrides_runpath=unknown
  11547. version_type=none
  11548. dynamic_linker="$host_os ld.so"
  11549. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11550. need_lib_prefix=unknown
  11551. hardcode_into_libs=no
  11552. # when you set need_version to no, make sure it does not cause -set_version
  11553. # flags to be left without arguments
  11554. need_version=unknown
  11555. case $host_os in
  11556. aix3*)
  11557. version_type=linux
  11558. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11559. shlibpath_var=LIBPATH
  11560. # AIX 3 has no versioning support, so we append a major version to the name.
  11561. soname_spec='${libname}${release}${shared_ext}$major'
  11562. ;;
  11563. aix4* | aix5*)
  11564. version_type=linux
  11565. need_lib_prefix=no
  11566. need_version=no
  11567. hardcode_into_libs=yes
  11568. if test "$host_cpu" = ia64; then
  11569. # AIX 5 supports IA64
  11570. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11571. shlibpath_var=LD_LIBRARY_PATH
  11572. else
  11573. # With GCC up to 2.95.x, collect2 would create an import file
  11574. # for dependence libraries. The import file would start with
  11575. # the line `#! .'. This would cause the generated library to
  11576. # depend on `.', always an invalid library. This was fixed in
  11577. # development snapshots of GCC prior to 3.0.
  11578. case $host_os in
  11579. aix4 | aix4.[01] | aix4.[01].*)
  11580. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11581. echo ' yes '
  11582. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11583. :
  11584. else
  11585. can_build_shared=no
  11586. fi
  11587. ;;
  11588. esac
  11589. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11590. # soname into executable. Probably we can add versioning support to
  11591. # collect2, so additional links can be useful in future.
  11592. if test "$aix_use_runtimelinking" = yes; then
  11593. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11594. # instead of lib<name>.a to let people know that these are not
  11595. # typical AIX shared libraries.
  11596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11597. else
  11598. # We preserve .a as extension for shared libraries through AIX4.2
  11599. # and later when we are not doing run time linking.
  11600. library_names_spec='${libname}${release}.a $libname.a'
  11601. soname_spec='${libname}${release}${shared_ext}$major'
  11602. fi
  11603. shlibpath_var=LIBPATH
  11604. fi
  11605. ;;
  11606. amigaos*)
  11607. library_names_spec='$libname.ixlibrary $libname.a'
  11608. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11609. 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'
  11610. ;;
  11611. beos*)
  11612. library_names_spec='${libname}${shared_ext}'
  11613. dynamic_linker="$host_os ld.so"
  11614. shlibpath_var=LIBRARY_PATH
  11615. ;;
  11616. bsdi[45]*)
  11617. version_type=linux
  11618. need_version=no
  11619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11620. soname_spec='${libname}${release}${shared_ext}$major'
  11621. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11622. shlibpath_var=LD_LIBRARY_PATH
  11623. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11624. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11625. # the default ld.so.conf also contains /usr/contrib/lib and
  11626. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11627. # libtool to hard-code these into programs
  11628. ;;
  11629. cygwin* | mingw* | pw32*)
  11630. version_type=windows
  11631. shrext_cmds=".dll"
  11632. need_version=no
  11633. need_lib_prefix=no
  11634. case $GCC,$host_os in
  11635. yes,cygwin* | yes,mingw* | yes,pw32*)
  11636. library_names_spec='$libname.dll.a'
  11637. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11638. postinstall_cmds='base_file=`basename \${file}`~
  11639. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11640. dldir=$destdir/`dirname \$dlpath`~
  11641. test -d \$dldir || mkdir -p \$dldir~
  11642. $install_prog $dir/$dlname \$dldir/$dlname~
  11643. chmod a+x \$dldir/$dlname'
  11644. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11645. dlpath=$dir/\$dldll~
  11646. $rm \$dlpath'
  11647. shlibpath_overrides_runpath=yes
  11648. case $host_os in
  11649. cygwin*)
  11650. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11651. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11652. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11653. ;;
  11654. mingw*)
  11655. # MinGW DLLs use traditional 'lib' prefix
  11656. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11657. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11658. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11659. # It is most probably a Windows format PATH printed by
  11660. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11661. # path with ; separators, and with drive letters. We can handle the
  11662. # drive letters (cygwin fileutils understands them), so leave them,
  11663. # especially as we might pass files found there to a mingw objdump,
  11664. # which wouldn't understand a cygwinified path. Ahh.
  11665. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11666. else
  11667. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11668. fi
  11669. ;;
  11670. pw32*)
  11671. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11672. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11673. ;;
  11674. esac
  11675. ;;
  11676. *)
  11677. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11678. ;;
  11679. esac
  11680. dynamic_linker='Win32 ld.exe'
  11681. # FIXME: first we should search . and the directory the executable is in
  11682. shlibpath_var=PATH
  11683. ;;
  11684. darwin* | rhapsody*)
  11685. dynamic_linker="$host_os dyld"
  11686. version_type=darwin
  11687. need_lib_prefix=no
  11688. need_version=no
  11689. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11690. soname_spec='${libname}${release}${major}$shared_ext'
  11691. shlibpath_overrides_runpath=yes
  11692. shlibpath_var=DYLD_LIBRARY_PATH
  11693. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11694. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11695. ;;
  11696. dgux*)
  11697. version_type=linux
  11698. need_lib_prefix=no
  11699. need_version=no
  11700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11701. soname_spec='${libname}${release}${shared_ext}$major'
  11702. shlibpath_var=LD_LIBRARY_PATH
  11703. ;;
  11704. freebsd1*)
  11705. dynamic_linker=no
  11706. ;;
  11707. freebsd* | dragonfly*)
  11708. # DragonFly does not have aout. When/if they implement a new
  11709. # versioning mechanism, adjust this.
  11710. if test -x /usr/bin/objformat; then
  11711. objformat=`/usr/bin/objformat`
  11712. else
  11713. case $host_os in
  11714. freebsd[123]*) objformat=aout ;;
  11715. *) objformat=elf ;;
  11716. esac
  11717. fi
  11718. version_type=freebsd-$objformat
  11719. case $version_type in
  11720. freebsd-elf*)
  11721. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11722. need_version=no
  11723. need_lib_prefix=no
  11724. ;;
  11725. freebsd-*)
  11726. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11727. need_version=yes
  11728. ;;
  11729. esac
  11730. shlibpath_var=LD_LIBRARY_PATH
  11731. case $host_os in
  11732. freebsd2*)
  11733. shlibpath_overrides_runpath=yes
  11734. ;;
  11735. freebsd3.[01]* | freebsdelf3.[01]*)
  11736. shlibpath_overrides_runpath=yes
  11737. hardcode_into_libs=yes
  11738. ;;
  11739. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11740. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11741. shlibpath_overrides_runpath=no
  11742. hardcode_into_libs=yes
  11743. ;;
  11744. *) # from 4.6 on, and DragonFly
  11745. shlibpath_overrides_runpath=yes
  11746. hardcode_into_libs=yes
  11747. ;;
  11748. esac
  11749. ;;
  11750. gnu*)
  11751. version_type=linux
  11752. need_lib_prefix=no
  11753. need_version=no
  11754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11755. soname_spec='${libname}${release}${shared_ext}$major'
  11756. shlibpath_var=LD_LIBRARY_PATH
  11757. hardcode_into_libs=yes
  11758. ;;
  11759. hpux9* | hpux10* | hpux11*)
  11760. # Give a soname corresponding to the major version so that dld.sl refuses to
  11761. # link against other versions.
  11762. version_type=sunos
  11763. need_lib_prefix=no
  11764. need_version=no
  11765. case $host_cpu in
  11766. ia64*)
  11767. shrext_cmds='.so'
  11768. hardcode_into_libs=yes
  11769. dynamic_linker="$host_os dld.so"
  11770. shlibpath_var=LD_LIBRARY_PATH
  11771. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11773. soname_spec='${libname}${release}${shared_ext}$major'
  11774. if test "X$HPUX_IA64_MODE" = X32; then
  11775. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11776. else
  11777. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11778. fi
  11779. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11780. ;;
  11781. hppa*64*)
  11782. shrext_cmds='.sl'
  11783. hardcode_into_libs=yes
  11784. dynamic_linker="$host_os dld.sl"
  11785. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11786. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11788. soname_spec='${libname}${release}${shared_ext}$major'
  11789. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11790. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11791. ;;
  11792. *)
  11793. shrext_cmds='.sl'
  11794. dynamic_linker="$host_os dld.sl"
  11795. shlibpath_var=SHLIB_PATH
  11796. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11798. soname_spec='${libname}${release}${shared_ext}$major'
  11799. ;;
  11800. esac
  11801. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11802. postinstall_cmds='chmod 555 $lib'
  11803. ;;
  11804. interix[3-9]*)
  11805. version_type=linux
  11806. need_lib_prefix=no
  11807. need_version=no
  11808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11809. soname_spec='${libname}${release}${shared_ext}$major'
  11810. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11811. shlibpath_var=LD_LIBRARY_PATH
  11812. shlibpath_overrides_runpath=no
  11813. hardcode_into_libs=yes
  11814. ;;
  11815. irix5* | irix6* | nonstopux*)
  11816. case $host_os in
  11817. nonstopux*) version_type=nonstopux ;;
  11818. *)
  11819. if test "$lt_cv_prog_gnu_ld" = yes; then
  11820. version_type=linux
  11821. else
  11822. version_type=irix
  11823. fi ;;
  11824. esac
  11825. need_lib_prefix=no
  11826. need_version=no
  11827. soname_spec='${libname}${release}${shared_ext}$major'
  11828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11829. case $host_os in
  11830. irix5* | nonstopux*)
  11831. libsuff= shlibsuff=
  11832. ;;
  11833. *)
  11834. case $LD in # libtool.m4 will add one of these switches to LD
  11835. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11836. libsuff= shlibsuff= libmagic=32-bit;;
  11837. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11838. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11839. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11840. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11841. *) libsuff= shlibsuff= libmagic=never-match;;
  11842. esac
  11843. ;;
  11844. esac
  11845. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11846. shlibpath_overrides_runpath=no
  11847. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11848. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11849. hardcode_into_libs=yes
  11850. ;;
  11851. # No shared lib support for Linux oldld, aout, or coff.
  11852. linux*oldld* | linux*aout* | linux*coff*)
  11853. dynamic_linker=no
  11854. ;;
  11855. # This must be Linux ELF.
  11856. linux* | k*bsd*-gnu)
  11857. version_type=linux
  11858. need_lib_prefix=no
  11859. need_version=no
  11860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11861. soname_spec='${libname}${release}${shared_ext}$major'
  11862. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11863. shlibpath_var=LD_LIBRARY_PATH
  11864. shlibpath_overrides_runpath=no
  11865. # This implies no fast_install, which is unacceptable.
  11866. # Some rework will be needed to allow for fast_install
  11867. # before this can be enabled.
  11868. hardcode_into_libs=yes
  11869. # Append ld.so.conf contents to the search path
  11870. if test -f /etc/ld.so.conf; then
  11871. 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' ' '`
  11872. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11873. fi
  11874. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11875. # powerpc, because MkLinux only supported shared libraries with the
  11876. # GNU dynamic linker. Since this was broken with cross compilers,
  11877. # most powerpc-linux boxes support dynamic linking these days and
  11878. # people can always --disable-shared, the test was removed, and we
  11879. # assume the GNU/Linux dynamic linker is in use.
  11880. dynamic_linker='GNU/Linux ld.so'
  11881. ;;
  11882. netbsd*)
  11883. version_type=sunos
  11884. need_lib_prefix=no
  11885. need_version=no
  11886. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11888. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11889. dynamic_linker='NetBSD (a.out) ld.so'
  11890. else
  11891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11892. soname_spec='${libname}${release}${shared_ext}$major'
  11893. dynamic_linker='NetBSD ld.elf_so'
  11894. fi
  11895. shlibpath_var=LD_LIBRARY_PATH
  11896. shlibpath_overrides_runpath=yes
  11897. hardcode_into_libs=yes
  11898. ;;
  11899. newsos6)
  11900. version_type=linux
  11901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11902. shlibpath_var=LD_LIBRARY_PATH
  11903. shlibpath_overrides_runpath=yes
  11904. ;;
  11905. nto-qnx*)
  11906. version_type=linux
  11907. need_lib_prefix=no
  11908. need_version=no
  11909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11910. soname_spec='${libname}${release}${shared_ext}$major'
  11911. shlibpath_var=LD_LIBRARY_PATH
  11912. shlibpath_overrides_runpath=yes
  11913. ;;
  11914. openbsd*)
  11915. version_type=sunos
  11916. sys_lib_dlsearch_path_spec="/usr/lib"
  11917. need_lib_prefix=no
  11918. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11919. case $host_os in
  11920. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11921. *) need_version=no ;;
  11922. esac
  11923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11924. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11925. shlibpath_var=LD_LIBRARY_PATH
  11926. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11927. case $host_os in
  11928. openbsd2.[89] | openbsd2.[89].*)
  11929. shlibpath_overrides_runpath=no
  11930. ;;
  11931. *)
  11932. shlibpath_overrides_runpath=yes
  11933. ;;
  11934. esac
  11935. else
  11936. shlibpath_overrides_runpath=yes
  11937. fi
  11938. ;;
  11939. os2*)
  11940. libname_spec='$name'
  11941. shrext_cmds=".dll"
  11942. need_lib_prefix=no
  11943. library_names_spec='$libname${shared_ext} $libname.a'
  11944. dynamic_linker='OS/2 ld.exe'
  11945. shlibpath_var=LIBPATH
  11946. ;;
  11947. osf3* | osf4* | osf5*)
  11948. version_type=osf
  11949. need_lib_prefix=no
  11950. need_version=no
  11951. soname_spec='${libname}${release}${shared_ext}$major'
  11952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11953. shlibpath_var=LD_LIBRARY_PATH
  11954. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11955. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11956. ;;
  11957. rdos*)
  11958. dynamic_linker=no
  11959. ;;
  11960. solaris*)
  11961. version_type=linux
  11962. need_lib_prefix=no
  11963. need_version=no
  11964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11965. soname_spec='${libname}${release}${shared_ext}$major'
  11966. shlibpath_var=LD_LIBRARY_PATH
  11967. shlibpath_overrides_runpath=yes
  11968. hardcode_into_libs=yes
  11969. # ldd complains unless libraries are executable
  11970. postinstall_cmds='chmod +x $lib'
  11971. ;;
  11972. sunos4*)
  11973. version_type=sunos
  11974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11975. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11976. shlibpath_var=LD_LIBRARY_PATH
  11977. shlibpath_overrides_runpath=yes
  11978. if test "$with_gnu_ld" = yes; then
  11979. need_lib_prefix=no
  11980. fi
  11981. need_version=yes
  11982. ;;
  11983. sysv4 | sysv4.3*)
  11984. version_type=linux
  11985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11986. soname_spec='${libname}${release}${shared_ext}$major'
  11987. shlibpath_var=LD_LIBRARY_PATH
  11988. case $host_vendor in
  11989. sni)
  11990. shlibpath_overrides_runpath=no
  11991. need_lib_prefix=no
  11992. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11993. runpath_var=LD_RUN_PATH
  11994. ;;
  11995. siemens)
  11996. need_lib_prefix=no
  11997. ;;
  11998. motorola)
  11999. need_lib_prefix=no
  12000. need_version=no
  12001. shlibpath_overrides_runpath=no
  12002. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12003. ;;
  12004. esac
  12005. ;;
  12006. sysv4*MP*)
  12007. if test -d /usr/nec ;then
  12008. version_type=linux
  12009. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12010. soname_spec='$libname${shared_ext}.$major'
  12011. shlibpath_var=LD_LIBRARY_PATH
  12012. fi
  12013. ;;
  12014. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12015. version_type=freebsd-elf
  12016. need_lib_prefix=no
  12017. need_version=no
  12018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12019. soname_spec='${libname}${release}${shared_ext}$major'
  12020. shlibpath_var=LD_LIBRARY_PATH
  12021. hardcode_into_libs=yes
  12022. if test "$with_gnu_ld" = yes; then
  12023. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12024. shlibpath_overrides_runpath=no
  12025. else
  12026. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12027. shlibpath_overrides_runpath=yes
  12028. case $host_os in
  12029. sco3.2v5*)
  12030. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12031. ;;
  12032. esac
  12033. fi
  12034. sys_lib_dlsearch_path_spec='/usr/lib'
  12035. ;;
  12036. uts4*)
  12037. version_type=linux
  12038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12039. soname_spec='${libname}${release}${shared_ext}$major'
  12040. shlibpath_var=LD_LIBRARY_PATH
  12041. ;;
  12042. *)
  12043. dynamic_linker=no
  12044. ;;
  12045. esac
  12046. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12047. echo "${ECHO_T}$dynamic_linker" >&6; }
  12048. test "$dynamic_linker" = no && can_build_shared=no
  12049. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12050. if test "$GCC" = yes; then
  12051. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12052. fi
  12053. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12054. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12055. hardcode_action_CXX=
  12056. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12057. test -n "$runpath_var_CXX" || \
  12058. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12059. # We can hardcode non-existant directories.
  12060. if test "$hardcode_direct_CXX" != no &&
  12061. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12062. # have to relink, otherwise we might link with an installed library
  12063. # when we should be linking with a yet-to-be-installed one
  12064. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12065. test "$hardcode_minus_L_CXX" != no; then
  12066. # Linking always hardcodes the temporary library directory.
  12067. hardcode_action_CXX=relink
  12068. else
  12069. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12070. hardcode_action_CXX=immediate
  12071. fi
  12072. else
  12073. # We cannot hardcode anything, or else we can only hardcode existing
  12074. # directories.
  12075. hardcode_action_CXX=unsupported
  12076. fi
  12077. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12078. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12079. if test "$hardcode_action_CXX" = relink; then
  12080. # Fast installation is not supported
  12081. enable_fast_install=no
  12082. elif test "$shlibpath_overrides_runpath" = yes ||
  12083. test "$enable_shared" = no; then
  12084. # Fast installation is not necessary
  12085. enable_fast_install=needless
  12086. fi
  12087. # The else clause should only fire when bootstrapping the
  12088. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12089. # with your package, and you will get complaints that there are
  12090. # no rules to generate ltmain.sh.
  12091. if test -f "$ltmain"; then
  12092. # See if we are running on zsh, and set the options which allow our commands through
  12093. # without removal of \ escapes.
  12094. if test -n "${ZSH_VERSION+set}" ; then
  12095. setopt NO_GLOB_SUBST
  12096. fi
  12097. # Now quote all the things that may contain metacharacters while being
  12098. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12099. # variables and quote the copies for generation of the libtool script.
  12100. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12101. SED SHELL STRIP \
  12102. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12103. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12104. deplibs_check_method reload_flag reload_cmds need_locks \
  12105. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12106. lt_cv_sys_global_symbol_to_c_name_address \
  12107. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12108. old_postinstall_cmds old_postuninstall_cmds \
  12109. compiler_CXX \
  12110. CC_CXX \
  12111. LD_CXX \
  12112. lt_prog_compiler_wl_CXX \
  12113. lt_prog_compiler_pic_CXX \
  12114. lt_prog_compiler_static_CXX \
  12115. lt_prog_compiler_no_builtin_flag_CXX \
  12116. export_dynamic_flag_spec_CXX \
  12117. thread_safe_flag_spec_CXX \
  12118. whole_archive_flag_spec_CXX \
  12119. enable_shared_with_static_runtimes_CXX \
  12120. old_archive_cmds_CXX \
  12121. old_archive_from_new_cmds_CXX \
  12122. predep_objects_CXX \
  12123. postdep_objects_CXX \
  12124. predeps_CXX \
  12125. postdeps_CXX \
  12126. compiler_lib_search_path_CXX \
  12127. archive_cmds_CXX \
  12128. archive_expsym_cmds_CXX \
  12129. postinstall_cmds_CXX \
  12130. postuninstall_cmds_CXX \
  12131. old_archive_from_expsyms_cmds_CXX \
  12132. allow_undefined_flag_CXX \
  12133. no_undefined_flag_CXX \
  12134. export_symbols_cmds_CXX \
  12135. hardcode_libdir_flag_spec_CXX \
  12136. hardcode_libdir_flag_spec_ld_CXX \
  12137. hardcode_libdir_separator_CXX \
  12138. hardcode_automatic_CXX \
  12139. module_cmds_CXX \
  12140. module_expsym_cmds_CXX \
  12141. lt_cv_prog_compiler_c_o_CXX \
  12142. fix_srcfile_path_CXX \
  12143. exclude_expsyms_CXX \
  12144. include_expsyms_CXX; do
  12145. case $var in
  12146. old_archive_cmds_CXX | \
  12147. old_archive_from_new_cmds_CXX | \
  12148. archive_cmds_CXX | \
  12149. archive_expsym_cmds_CXX | \
  12150. module_cmds_CXX | \
  12151. module_expsym_cmds_CXX | \
  12152. old_archive_from_expsyms_cmds_CXX | \
  12153. export_symbols_cmds_CXX | \
  12154. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12155. postinstall_cmds | postuninstall_cmds | \
  12156. old_postinstall_cmds | old_postuninstall_cmds | \
  12157. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12158. # Double-quote double-evaled strings.
  12159. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12160. ;;
  12161. *)
  12162. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12163. ;;
  12164. esac
  12165. done
  12166. case $lt_echo in
  12167. *'\$0 --fallback-echo"')
  12168. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12169. ;;
  12170. esac
  12171. cfgfile="$ofile"
  12172. cat <<__EOF__ >> "$cfgfile"
  12173. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12174. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12175. # Shell to use when invoking shell scripts.
  12176. SHELL=$lt_SHELL
  12177. # Whether or not to build shared libraries.
  12178. build_libtool_libs=$enable_shared
  12179. # Whether or not to build static libraries.
  12180. build_old_libs=$enable_static
  12181. # Whether or not to add -lc for building shared libraries.
  12182. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12183. # Whether or not to disallow shared libs when runtime libs are static
  12184. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12185. # Whether or not to optimize for fast installation.
  12186. fast_install=$enable_fast_install
  12187. # The host system.
  12188. host_alias=$host_alias
  12189. host=$host
  12190. host_os=$host_os
  12191. # The build system.
  12192. build_alias=$build_alias
  12193. build=$build
  12194. build_os=$build_os
  12195. # An echo program that does not interpret backslashes.
  12196. echo=$lt_echo
  12197. # The archiver.
  12198. AR=$lt_AR
  12199. AR_FLAGS=$lt_AR_FLAGS
  12200. # A C compiler.
  12201. LTCC=$lt_LTCC
  12202. # LTCC compiler flags.
  12203. LTCFLAGS=$lt_LTCFLAGS
  12204. # A language-specific compiler.
  12205. CC=$lt_compiler_CXX
  12206. # Is the compiler the GNU C compiler?
  12207. with_gcc=$GCC_CXX
  12208. # An ERE matcher.
  12209. EGREP=$lt_EGREP
  12210. # The linker used to build libraries.
  12211. LD=$lt_LD_CXX
  12212. # Whether we need hard or soft links.
  12213. LN_S=$lt_LN_S
  12214. # A BSD-compatible nm program.
  12215. NM=$lt_NM
  12216. # A symbol stripping program
  12217. STRIP=$lt_STRIP
  12218. # Used to examine libraries when file_magic_cmd begins "file"
  12219. MAGIC_CMD=$MAGIC_CMD
  12220. # Used on cygwin: DLL creation program.
  12221. DLLTOOL="$DLLTOOL"
  12222. # Used on cygwin: object dumper.
  12223. OBJDUMP="$OBJDUMP"
  12224. # Used on cygwin: assembler.
  12225. AS="$AS"
  12226. # The name of the directory that contains temporary libtool files.
  12227. objdir=$objdir
  12228. # How to create reloadable object files.
  12229. reload_flag=$lt_reload_flag
  12230. reload_cmds=$lt_reload_cmds
  12231. # How to pass a linker flag through the compiler.
  12232. wl=$lt_lt_prog_compiler_wl_CXX
  12233. # Object file suffix (normally "o").
  12234. objext="$ac_objext"
  12235. # Old archive suffix (normally "a").
  12236. libext="$libext"
  12237. # Shared library suffix (normally ".so").
  12238. shrext_cmds='$shrext_cmds'
  12239. # Executable file suffix (normally "").
  12240. exeext="$exeext"
  12241. # Additional compiler flags for building library objects.
  12242. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12243. pic_mode=$pic_mode
  12244. # What is the maximum length of a command?
  12245. max_cmd_len=$lt_cv_sys_max_cmd_len
  12246. # Does compiler simultaneously support -c and -o options?
  12247. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12248. # Must we lock files when doing compilation?
  12249. need_locks=$lt_need_locks
  12250. # Do we need the lib prefix for modules?
  12251. need_lib_prefix=$need_lib_prefix
  12252. # Do we need a version for libraries?
  12253. need_version=$need_version
  12254. # Whether dlopen is supported.
  12255. dlopen_support=$enable_dlopen
  12256. # Whether dlopen of programs is supported.
  12257. dlopen_self=$enable_dlopen_self
  12258. # Whether dlopen of statically linked programs is supported.
  12259. dlopen_self_static=$enable_dlopen_self_static
  12260. # Compiler flag to prevent dynamic linking.
  12261. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12262. # Compiler flag to turn off builtin functions.
  12263. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12264. # Compiler flag to allow reflexive dlopens.
  12265. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12266. # Compiler flag to generate shared objects directly from archives.
  12267. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12268. # Compiler flag to generate thread-safe objects.
  12269. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12270. # Library versioning type.
  12271. version_type=$version_type
  12272. # Format of library name prefix.
  12273. libname_spec=$lt_libname_spec
  12274. # List of archive names. First name is the real one, the rest are links.
  12275. # The last name is the one that the linker finds with -lNAME.
  12276. library_names_spec=$lt_library_names_spec
  12277. # The coded name of the library, if different from the real name.
  12278. soname_spec=$lt_soname_spec
  12279. # Commands used to build and install an old-style archive.
  12280. RANLIB=$lt_RANLIB
  12281. old_archive_cmds=$lt_old_archive_cmds_CXX
  12282. old_postinstall_cmds=$lt_old_postinstall_cmds
  12283. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12284. # Create an old-style archive from a shared archive.
  12285. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12286. # Create a temporary old-style archive to link instead of a shared archive.
  12287. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12288. # Commands used to build and install a shared archive.
  12289. archive_cmds=$lt_archive_cmds_CXX
  12290. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12291. postinstall_cmds=$lt_postinstall_cmds
  12292. postuninstall_cmds=$lt_postuninstall_cmds
  12293. # Commands used to build a loadable module (assumed same as above if empty)
  12294. module_cmds=$lt_module_cmds_CXX
  12295. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12296. # Commands to strip libraries.
  12297. old_striplib=$lt_old_striplib
  12298. striplib=$lt_striplib
  12299. # Dependencies to place before the objects being linked to create a
  12300. # shared library.
  12301. predep_objects=$lt_predep_objects_CXX
  12302. # Dependencies to place after the objects being linked to create a
  12303. # shared library.
  12304. postdep_objects=$lt_postdep_objects_CXX
  12305. # Dependencies to place before the objects being linked to create a
  12306. # shared library.
  12307. predeps=$lt_predeps_CXX
  12308. # Dependencies to place after the objects being linked to create a
  12309. # shared library.
  12310. postdeps=$lt_postdeps_CXX
  12311. # The library search path used internally by the compiler when linking
  12312. # a shared library.
  12313. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12314. # Method to check whether dependent libraries are shared objects.
  12315. deplibs_check_method=$lt_deplibs_check_method
  12316. # Command to use when deplibs_check_method == file_magic.
  12317. file_magic_cmd=$lt_file_magic_cmd
  12318. # Flag that allows shared libraries with undefined symbols to be built.
  12319. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12320. # Flag that forces no undefined symbols.
  12321. no_undefined_flag=$lt_no_undefined_flag_CXX
  12322. # Commands used to finish a libtool library installation in a directory.
  12323. finish_cmds=$lt_finish_cmds
  12324. # Same as above, but a single script fragment to be evaled but not shown.
  12325. finish_eval=$lt_finish_eval
  12326. # Take the output of nm and produce a listing of raw symbols and C names.
  12327. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12328. # Transform the output of nm in a proper C declaration
  12329. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12330. # Transform the output of nm in a C name address pair
  12331. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12332. # This is the shared library runtime path variable.
  12333. runpath_var=$runpath_var
  12334. # This is the shared library path variable.
  12335. shlibpath_var=$shlibpath_var
  12336. # Is shlibpath searched before the hard-coded library search path?
  12337. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12338. # How to hardcode a shared library path into an executable.
  12339. hardcode_action=$hardcode_action_CXX
  12340. # Whether we should hardcode library paths into libraries.
  12341. hardcode_into_libs=$hardcode_into_libs
  12342. # Flag to hardcode \$libdir into a binary during linking.
  12343. # This must work even if \$libdir does not exist.
  12344. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12345. # If ld is used when linking, flag to hardcode \$libdir into
  12346. # a binary during linking. This must work even if \$libdir does
  12347. # not exist.
  12348. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12349. # Whether we need a single -rpath flag with a separated argument.
  12350. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12351. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12352. # resulting binary.
  12353. hardcode_direct=$hardcode_direct_CXX
  12354. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12355. # resulting binary.
  12356. hardcode_minus_L=$hardcode_minus_L_CXX
  12357. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12358. # the resulting binary.
  12359. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12360. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12361. # and all subsequent libraries and executables linked against it.
  12362. hardcode_automatic=$hardcode_automatic_CXX
  12363. # Variables whose values should be saved in libtool wrapper scripts and
  12364. # restored at relink time.
  12365. variables_saved_for_relink="$variables_saved_for_relink"
  12366. # Whether libtool must link a program against all its dependency libraries.
  12367. link_all_deplibs=$link_all_deplibs_CXX
  12368. # Compile-time system search path for libraries
  12369. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12370. # Run-time system search path for libraries
  12371. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12372. # Fix the shell variable \$srcfile for the compiler.
  12373. fix_srcfile_path=$lt_fix_srcfile_path
  12374. # Set to yes if exported symbols are required.
  12375. always_export_symbols=$always_export_symbols_CXX
  12376. # The commands to list exported symbols.
  12377. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12378. # The commands to extract the exported symbol list from a shared archive.
  12379. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12380. # Symbols that should not be listed in the preloaded symbols.
  12381. exclude_expsyms=$lt_exclude_expsyms_CXX
  12382. # Symbols that must always be exported.
  12383. include_expsyms=$lt_include_expsyms_CXX
  12384. # ### END LIBTOOL TAG CONFIG: $tagname
  12385. __EOF__
  12386. else
  12387. # If there is no Makefile yet, we rely on a make rule to execute
  12388. # `config.status --recheck' to rerun these tests and create the
  12389. # libtool script then.
  12390. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12391. if test -f "$ltmain_in"; then
  12392. test -f Makefile && make "$ltmain"
  12393. fi
  12394. fi
  12395. ac_ext=c
  12396. ac_cpp='$CPP $CPPFLAGS'
  12397. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12398. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12399. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12400. CC=$lt_save_CC
  12401. LDCXX=$LD
  12402. LD=$lt_save_LD
  12403. GCC=$lt_save_GCC
  12404. with_gnu_ldcxx=$with_gnu_ld
  12405. with_gnu_ld=$lt_save_with_gnu_ld
  12406. lt_cv_path_LDCXX=$lt_cv_path_LD
  12407. lt_cv_path_LD=$lt_save_path_LD
  12408. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12409. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12410. else
  12411. tagname=""
  12412. fi
  12413. ;;
  12414. F77)
  12415. if test -n "$F77" && test "X$F77" != "Xno"; then
  12416. ac_ext=f
  12417. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12418. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12419. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12420. archive_cmds_need_lc_F77=no
  12421. allow_undefined_flag_F77=
  12422. always_export_symbols_F77=no
  12423. archive_expsym_cmds_F77=
  12424. export_dynamic_flag_spec_F77=
  12425. hardcode_direct_F77=no
  12426. hardcode_libdir_flag_spec_F77=
  12427. hardcode_libdir_flag_spec_ld_F77=
  12428. hardcode_libdir_separator_F77=
  12429. hardcode_minus_L_F77=no
  12430. hardcode_automatic_F77=no
  12431. module_cmds_F77=
  12432. module_expsym_cmds_F77=
  12433. link_all_deplibs_F77=unknown
  12434. old_archive_cmds_F77=$old_archive_cmds
  12435. no_undefined_flag_F77=
  12436. whole_archive_flag_spec_F77=
  12437. enable_shared_with_static_runtimes_F77=no
  12438. # Source file extension for f77 test sources.
  12439. ac_ext=f
  12440. # Object file extension for compiled f77 test sources.
  12441. objext=o
  12442. objext_F77=$objext
  12443. # Code to be used in simple compile tests
  12444. lt_simple_compile_test_code="\
  12445. subroutine t
  12446. return
  12447. end
  12448. "
  12449. # Code to be used in simple link tests
  12450. lt_simple_link_test_code="\
  12451. program t
  12452. end
  12453. "
  12454. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12455. # If no C compiler was specified, use CC.
  12456. LTCC=${LTCC-"$CC"}
  12457. # If no C compiler flags were specified, use CFLAGS.
  12458. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12459. # Allow CC to be a program name with arguments.
  12460. compiler=$CC
  12461. # save warnings/boilerplate of simple test code
  12462. ac_outfile=conftest.$ac_objext
  12463. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12464. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12465. _lt_compiler_boilerplate=`cat conftest.err`
  12466. $rm conftest*
  12467. ac_outfile=conftest.$ac_objext
  12468. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12469. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12470. _lt_linker_boilerplate=`cat conftest.err`
  12471. $rm conftest*
  12472. # Allow CC to be a program name with arguments.
  12473. lt_save_CC="$CC"
  12474. CC=${F77-"f77"}
  12475. compiler=$CC
  12476. compiler_F77=$CC
  12477. for cc_temp in $compiler""; do
  12478. case $cc_temp in
  12479. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12480. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12481. \-*) ;;
  12482. *) break;;
  12483. esac
  12484. done
  12485. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12486. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12487. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12488. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12489. echo "${ECHO_T}$can_build_shared" >&6; }
  12490. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12491. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12492. test "$can_build_shared" = "no" && enable_shared=no
  12493. # On AIX, shared libraries and static libraries use the same namespace, and
  12494. # are all built from PIC.
  12495. case $host_os in
  12496. aix3*)
  12497. test "$enable_shared" = yes && enable_static=no
  12498. if test -n "$RANLIB"; then
  12499. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12500. postinstall_cmds='$RANLIB $lib'
  12501. fi
  12502. ;;
  12503. aix4* | aix5*)
  12504. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12505. test "$enable_shared" = yes && enable_static=no
  12506. fi
  12507. ;;
  12508. esac
  12509. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12510. echo "${ECHO_T}$enable_shared" >&6; }
  12511. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12512. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12513. # Make sure either enable_shared or enable_static is yes.
  12514. test "$enable_shared" = yes || enable_static=yes
  12515. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12516. echo "${ECHO_T}$enable_static" >&6; }
  12517. GCC_F77="$G77"
  12518. LD_F77="$LD"
  12519. lt_prog_compiler_wl_F77=
  12520. lt_prog_compiler_pic_F77=
  12521. lt_prog_compiler_static_F77=
  12522. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12523. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12524. if test "$GCC" = yes; then
  12525. lt_prog_compiler_wl_F77='-Wl,'
  12526. lt_prog_compiler_static_F77='-static'
  12527. case $host_os in
  12528. aix*)
  12529. # All AIX code is PIC.
  12530. if test "$host_cpu" = ia64; then
  12531. # AIX 5 now supports IA64 processor
  12532. lt_prog_compiler_static_F77='-Bstatic'
  12533. fi
  12534. ;;
  12535. amigaos*)
  12536. # FIXME: we need at least 68020 code to build shared libraries, but
  12537. # adding the `-m68020' flag to GCC prevents building anything better,
  12538. # like `-m68040'.
  12539. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12540. ;;
  12541. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12542. # PIC is the default for these OSes.
  12543. ;;
  12544. mingw* | cygwin* | pw32* | os2*)
  12545. # This hack is so that the source file can tell whether it is being
  12546. # built for inclusion in a dll (and should export symbols for example).
  12547. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12548. # (--disable-auto-import) libraries
  12549. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12550. ;;
  12551. darwin* | rhapsody*)
  12552. # PIC is the default on this platform
  12553. # Common symbols not allowed in MH_DYLIB files
  12554. lt_prog_compiler_pic_F77='-fno-common'
  12555. ;;
  12556. interix[3-9]*)
  12557. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12558. # Instead, we relocate shared libraries at runtime.
  12559. ;;
  12560. msdosdjgpp*)
  12561. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12562. # on systems that don't support them.
  12563. lt_prog_compiler_can_build_shared_F77=no
  12564. enable_shared=no
  12565. ;;
  12566. sysv4*MP*)
  12567. if test -d /usr/nec; then
  12568. lt_prog_compiler_pic_F77=-Kconform_pic
  12569. fi
  12570. ;;
  12571. hpux*)
  12572. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12573. # not for PA HP-UX.
  12574. case $host_cpu in
  12575. hppa*64*|ia64*)
  12576. # +Z the default
  12577. ;;
  12578. *)
  12579. lt_prog_compiler_pic_F77='-fPIC'
  12580. ;;
  12581. esac
  12582. ;;
  12583. *)
  12584. lt_prog_compiler_pic_F77='-fPIC'
  12585. ;;
  12586. esac
  12587. else
  12588. # PORTME Check for flag to pass linker flags through the system compiler.
  12589. case $host_os in
  12590. aix*)
  12591. lt_prog_compiler_wl_F77='-Wl,'
  12592. if test "$host_cpu" = ia64; then
  12593. # AIX 5 now supports IA64 processor
  12594. lt_prog_compiler_static_F77='-Bstatic'
  12595. else
  12596. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12597. fi
  12598. ;;
  12599. darwin*)
  12600. # PIC is the default on this platform
  12601. # Common symbols not allowed in MH_DYLIB files
  12602. case $cc_basename in
  12603. xlc*)
  12604. lt_prog_compiler_pic_F77='-qnocommon'
  12605. lt_prog_compiler_wl_F77='-Wl,'
  12606. ;;
  12607. esac
  12608. ;;
  12609. mingw* | cygwin* | pw32* | os2*)
  12610. # This hack is so that the source file can tell whether it is being
  12611. # built for inclusion in a dll (and should export symbols for example).
  12612. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12613. ;;
  12614. hpux9* | hpux10* | hpux11*)
  12615. lt_prog_compiler_wl_F77='-Wl,'
  12616. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12617. # not for PA HP-UX.
  12618. case $host_cpu in
  12619. hppa*64*|ia64*)
  12620. # +Z the default
  12621. ;;
  12622. *)
  12623. lt_prog_compiler_pic_F77='+Z'
  12624. ;;
  12625. esac
  12626. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12627. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12628. ;;
  12629. irix5* | irix6* | nonstopux*)
  12630. lt_prog_compiler_wl_F77='-Wl,'
  12631. # PIC (with -KPIC) is the default.
  12632. lt_prog_compiler_static_F77='-non_shared'
  12633. ;;
  12634. newsos6)
  12635. lt_prog_compiler_pic_F77='-KPIC'
  12636. lt_prog_compiler_static_F77='-Bstatic'
  12637. ;;
  12638. linux* | k*bsd*-gnu)
  12639. case $cc_basename in
  12640. icc* | ecc*)
  12641. lt_prog_compiler_wl_F77='-Wl,'
  12642. lt_prog_compiler_pic_F77='-KPIC'
  12643. lt_prog_compiler_static_F77='-static'
  12644. ;;
  12645. pgcc* | pgf77* | pgf90* | pgf95*)
  12646. # Portland Group compilers (*not* the Pentium gcc compiler,
  12647. # which looks to be a dead project)
  12648. lt_prog_compiler_wl_F77='-Wl,'
  12649. lt_prog_compiler_pic_F77='-fpic'
  12650. lt_prog_compiler_static_F77='-Bstatic'
  12651. ;;
  12652. ccc*)
  12653. lt_prog_compiler_wl_F77='-Wl,'
  12654. # All Alpha code is PIC.
  12655. lt_prog_compiler_static_F77='-non_shared'
  12656. ;;
  12657. *)
  12658. case `$CC -V 2>&1 | sed 5q` in
  12659. *Sun\ C*)
  12660. # Sun C 5.9
  12661. lt_prog_compiler_pic_F77='-KPIC'
  12662. lt_prog_compiler_static_F77='-Bstatic'
  12663. lt_prog_compiler_wl_F77='-Wl,'
  12664. ;;
  12665. *Sun\ F*)
  12666. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12667. lt_prog_compiler_pic_F77='-KPIC'
  12668. lt_prog_compiler_static_F77='-Bstatic'
  12669. lt_prog_compiler_wl_F77=''
  12670. ;;
  12671. esac
  12672. ;;
  12673. esac
  12674. ;;
  12675. osf3* | osf4* | osf5*)
  12676. lt_prog_compiler_wl_F77='-Wl,'
  12677. # All OSF/1 code is PIC.
  12678. lt_prog_compiler_static_F77='-non_shared'
  12679. ;;
  12680. rdos*)
  12681. lt_prog_compiler_static_F77='-non_shared'
  12682. ;;
  12683. solaris*)
  12684. lt_prog_compiler_pic_F77='-KPIC'
  12685. lt_prog_compiler_static_F77='-Bstatic'
  12686. case $cc_basename in
  12687. f77* | f90* | f95*)
  12688. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12689. *)
  12690. lt_prog_compiler_wl_F77='-Wl,';;
  12691. esac
  12692. ;;
  12693. sunos4*)
  12694. lt_prog_compiler_wl_F77='-Qoption ld '
  12695. lt_prog_compiler_pic_F77='-PIC'
  12696. lt_prog_compiler_static_F77='-Bstatic'
  12697. ;;
  12698. sysv4 | sysv4.2uw2* | sysv4.3*)
  12699. lt_prog_compiler_wl_F77='-Wl,'
  12700. lt_prog_compiler_pic_F77='-KPIC'
  12701. lt_prog_compiler_static_F77='-Bstatic'
  12702. ;;
  12703. sysv4*MP*)
  12704. if test -d /usr/nec ;then
  12705. lt_prog_compiler_pic_F77='-Kconform_pic'
  12706. lt_prog_compiler_static_F77='-Bstatic'
  12707. fi
  12708. ;;
  12709. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12710. lt_prog_compiler_wl_F77='-Wl,'
  12711. lt_prog_compiler_pic_F77='-KPIC'
  12712. lt_prog_compiler_static_F77='-Bstatic'
  12713. ;;
  12714. unicos*)
  12715. lt_prog_compiler_wl_F77='-Wl,'
  12716. lt_prog_compiler_can_build_shared_F77=no
  12717. ;;
  12718. uts4*)
  12719. lt_prog_compiler_pic_F77='-pic'
  12720. lt_prog_compiler_static_F77='-Bstatic'
  12721. ;;
  12722. *)
  12723. lt_prog_compiler_can_build_shared_F77=no
  12724. ;;
  12725. esac
  12726. fi
  12727. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12728. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12729. #
  12730. # Check to make sure the PIC flag actually works.
  12731. #
  12732. if test -n "$lt_prog_compiler_pic_F77"; then
  12733. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12734. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12735. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12736. echo $ECHO_N "(cached) $ECHO_C" >&6
  12737. else
  12738. lt_prog_compiler_pic_works_F77=no
  12739. ac_outfile=conftest.$ac_objext
  12740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12741. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12742. # Insert the option either (1) after the last *FLAGS variable, or
  12743. # (2) before a word containing "conftest.", or (3) at the end.
  12744. # Note that $ac_compile itself does not contain backslashes and begins
  12745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12746. # The option is referenced via a variable to avoid confusing sed.
  12747. lt_compile=`echo "$ac_compile" | $SED \
  12748. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12749. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12750. -e 's:$: $lt_compiler_flag:'`
  12751. (eval echo "\"\$as_me:14256: $lt_compile\"" >&5)
  12752. (eval "$lt_compile" 2>conftest.err)
  12753. ac_status=$?
  12754. cat conftest.err >&5
  12755. echo "$as_me:14260: \$? = $ac_status" >&5
  12756. if (exit $ac_status) && test -s "$ac_outfile"; then
  12757. # The compiler can only warn and ignore the option if not recognized
  12758. # So say no if there are warnings other than the usual output.
  12759. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12760. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12761. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12762. lt_prog_compiler_pic_works_F77=yes
  12763. fi
  12764. fi
  12765. $rm conftest*
  12766. fi
  12767. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12768. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12769. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12770. case $lt_prog_compiler_pic_F77 in
  12771. "" | " "*) ;;
  12772. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12773. esac
  12774. else
  12775. lt_prog_compiler_pic_F77=
  12776. lt_prog_compiler_can_build_shared_F77=no
  12777. fi
  12778. fi
  12779. case $host_os in
  12780. # For platforms which do not support PIC, -DPIC is meaningless:
  12781. *djgpp*)
  12782. lt_prog_compiler_pic_F77=
  12783. ;;
  12784. *)
  12785. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12786. ;;
  12787. esac
  12788. #
  12789. # Check to make sure the static flag actually works.
  12790. #
  12791. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12792. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12793. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12794. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12795. echo $ECHO_N "(cached) $ECHO_C" >&6
  12796. else
  12797. lt_prog_compiler_static_works_F77=no
  12798. save_LDFLAGS="$LDFLAGS"
  12799. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12800. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12801. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12802. # The linker can only warn and ignore the option if not recognized
  12803. # So say no if there are warnings
  12804. if test -s conftest.err; then
  12805. # Append any errors to the config.log.
  12806. cat conftest.err 1>&5
  12807. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12808. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12809. if diff conftest.exp conftest.er2 >/dev/null; then
  12810. lt_prog_compiler_static_works_F77=yes
  12811. fi
  12812. else
  12813. lt_prog_compiler_static_works_F77=yes
  12814. fi
  12815. fi
  12816. $rm conftest*
  12817. LDFLAGS="$save_LDFLAGS"
  12818. fi
  12819. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12820. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12821. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12822. :
  12823. else
  12824. lt_prog_compiler_static_F77=
  12825. fi
  12826. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12827. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12828. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12829. echo $ECHO_N "(cached) $ECHO_C" >&6
  12830. else
  12831. lt_cv_prog_compiler_c_o_F77=no
  12832. $rm -r conftest 2>/dev/null
  12833. mkdir conftest
  12834. cd conftest
  12835. mkdir out
  12836. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12837. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12838. # Insert the option either (1) after the last *FLAGS variable, or
  12839. # (2) before a word containing "conftest.", or (3) at the end.
  12840. # Note that $ac_compile itself does not contain backslashes and begins
  12841. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12842. lt_compile=`echo "$ac_compile" | $SED \
  12843. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12844. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12845. -e 's:$: $lt_compiler_flag:'`
  12846. (eval echo "\"\$as_me:14360: $lt_compile\"" >&5)
  12847. (eval "$lt_compile" 2>out/conftest.err)
  12848. ac_status=$?
  12849. cat out/conftest.err >&5
  12850. echo "$as_me:14364: \$? = $ac_status" >&5
  12851. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12852. then
  12853. # The compiler can only warn and ignore the option if not recognized
  12854. # So say no if there are warnings
  12855. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12856. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12857. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12858. lt_cv_prog_compiler_c_o_F77=yes
  12859. fi
  12860. fi
  12861. chmod u+w . 2>&5
  12862. $rm conftest*
  12863. # SGI C++ compiler will create directory out/ii_files/ for
  12864. # template instantiation
  12865. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12866. $rm out/* && rmdir out
  12867. cd ..
  12868. rmdir conftest
  12869. $rm conftest*
  12870. fi
  12871. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12872. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12873. hard_links="nottested"
  12874. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12875. # do not overwrite the value of need_locks provided by the user
  12876. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12877. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12878. hard_links=yes
  12879. $rm conftest*
  12880. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12881. touch conftest.a
  12882. ln conftest.a conftest.b 2>&5 || hard_links=no
  12883. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12884. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12885. echo "${ECHO_T}$hard_links" >&6; }
  12886. if test "$hard_links" = no; then
  12887. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12888. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12889. need_locks=warn
  12890. fi
  12891. else
  12892. need_locks=no
  12893. fi
  12894. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12895. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12896. runpath_var=
  12897. allow_undefined_flag_F77=
  12898. enable_shared_with_static_runtimes_F77=no
  12899. archive_cmds_F77=
  12900. archive_expsym_cmds_F77=
  12901. old_archive_From_new_cmds_F77=
  12902. old_archive_from_expsyms_cmds_F77=
  12903. export_dynamic_flag_spec_F77=
  12904. whole_archive_flag_spec_F77=
  12905. thread_safe_flag_spec_F77=
  12906. hardcode_libdir_flag_spec_F77=
  12907. hardcode_libdir_flag_spec_ld_F77=
  12908. hardcode_libdir_separator_F77=
  12909. hardcode_direct_F77=no
  12910. hardcode_minus_L_F77=no
  12911. hardcode_shlibpath_var_F77=unsupported
  12912. link_all_deplibs_F77=unknown
  12913. hardcode_automatic_F77=no
  12914. module_cmds_F77=
  12915. module_expsym_cmds_F77=
  12916. always_export_symbols_F77=no
  12917. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12918. # include_expsyms should be a list of space-separated symbols to be *always*
  12919. # included in the symbol list
  12920. include_expsyms_F77=
  12921. # exclude_expsyms can be an extended regexp of symbols to exclude
  12922. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12923. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12924. # as well as any symbol that contains `d'.
  12925. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12926. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12927. # platforms (ab)use it in PIC code, but their linkers get confused if
  12928. # the symbol is explicitly referenced. Since portable code cannot
  12929. # rely on this symbol name, it's probably fine to never include it in
  12930. # preloaded symbol tables.
  12931. extract_expsyms_cmds=
  12932. # Just being paranoid about ensuring that cc_basename is set.
  12933. for cc_temp in $compiler""; do
  12934. case $cc_temp in
  12935. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12936. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12937. \-*) ;;
  12938. *) break;;
  12939. esac
  12940. done
  12941. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12942. case $host_os in
  12943. cygwin* | mingw* | pw32*)
  12944. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12945. # When not using gcc, we currently assume that we are using
  12946. # Microsoft Visual C++.
  12947. if test "$GCC" != yes; then
  12948. with_gnu_ld=no
  12949. fi
  12950. ;;
  12951. interix*)
  12952. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12953. with_gnu_ld=yes
  12954. ;;
  12955. openbsd*)
  12956. with_gnu_ld=no
  12957. ;;
  12958. esac
  12959. ld_shlibs_F77=yes
  12960. if test "$with_gnu_ld" = yes; then
  12961. # If archive_cmds runs LD, not CC, wlarc should be empty
  12962. wlarc='${wl}'
  12963. # Set some defaults for GNU ld with shared library support. These
  12964. # are reset later if shared libraries are not supported. Putting them
  12965. # here allows them to be overridden if necessary.
  12966. runpath_var=LD_RUN_PATH
  12967. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12968. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12969. # ancient GNU ld didn't support --whole-archive et. al.
  12970. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12971. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12972. else
  12973. whole_archive_flag_spec_F77=
  12974. fi
  12975. supports_anon_versioning=no
  12976. case `$LD -v 2>/dev/null` in
  12977. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12978. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12979. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12980. *\ 2.11.*) ;; # other 2.11 versions
  12981. *) supports_anon_versioning=yes ;;
  12982. esac
  12983. # See if GNU ld supports shared libraries.
  12984. case $host_os in
  12985. aix3* | aix4* | aix5*)
  12986. # On AIX/PPC, the GNU linker is very broken
  12987. if test "$host_cpu" != ia64; then
  12988. ld_shlibs_F77=no
  12989. cat <<EOF 1>&2
  12990. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12991. *** to be unable to reliably create shared libraries on AIX.
  12992. *** Therefore, libtool is disabling shared libraries support. If you
  12993. *** really care for shared libraries, you may want to modify your PATH
  12994. *** so that a non-GNU linker is found, and then restart.
  12995. EOF
  12996. fi
  12997. ;;
  12998. amigaos*)
  12999. archive_cmds_F77='$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)'
  13000. hardcode_libdir_flag_spec_F77='-L$libdir'
  13001. hardcode_minus_L_F77=yes
  13002. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13003. # that the semantics of dynamic libraries on AmigaOS, at least up
  13004. # to version 4, is to share data among multiple programs linked
  13005. # with the same dynamic library. Since this doesn't match the
  13006. # behavior of shared libraries on other platforms, we can't use
  13007. # them.
  13008. ld_shlibs_F77=no
  13009. ;;
  13010. beos*)
  13011. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13012. allow_undefined_flag_F77=unsupported
  13013. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13014. # support --undefined. This deserves some investigation. FIXME
  13015. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13016. else
  13017. ld_shlibs_F77=no
  13018. fi
  13019. ;;
  13020. cygwin* | mingw* | pw32*)
  13021. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13022. # as there is no search path for DLLs.
  13023. hardcode_libdir_flag_spec_F77='-L$libdir'
  13024. allow_undefined_flag_F77=unsupported
  13025. always_export_symbols_F77=no
  13026. enable_shared_with_static_runtimes_F77=yes
  13027. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13028. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13029. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13030. # If the export-symbols file already is a .def file (1st line
  13031. # is EXPORTS), use it as is; otherwise, prepend...
  13032. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13033. cp $export_symbols $output_objdir/$soname.def;
  13034. else
  13035. echo EXPORTS > $output_objdir/$soname.def;
  13036. cat $export_symbols >> $output_objdir/$soname.def;
  13037. fi~
  13038. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13039. else
  13040. ld_shlibs_F77=no
  13041. fi
  13042. ;;
  13043. interix[3-9]*)
  13044. hardcode_direct_F77=no
  13045. hardcode_shlibpath_var_F77=no
  13046. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13047. export_dynamic_flag_spec_F77='${wl}-E'
  13048. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13049. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13050. # default) and relocated if they conflict, which is a slow very memory
  13051. # consuming and fragmenting process. To avoid this, we pick a random,
  13052. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13053. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13054. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13055. archive_expsym_cmds_F77='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'
  13056. ;;
  13057. gnu* | linux* | k*bsd*-gnu)
  13058. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13059. tmp_addflag=
  13060. case $cc_basename,$host_cpu in
  13061. pgcc*) # Portland Group C compiler
  13062. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13063. tmp_addflag=' $pic_flag'
  13064. ;;
  13065. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13066. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13067. tmp_addflag=' $pic_flag -Mnomain' ;;
  13068. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13069. tmp_addflag=' -i_dynamic' ;;
  13070. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13071. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13072. ifc* | ifort*) # Intel Fortran compiler
  13073. tmp_addflag=' -nofor_main' ;;
  13074. esac
  13075. case `$CC -V 2>&1 | sed 5q` in
  13076. *Sun\ C*) # Sun C 5.9
  13077. whole_archive_flag_spec_F77='${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'
  13078. tmp_sharedflag='-G' ;;
  13079. *Sun\ F*) # Sun Fortran 8.3
  13080. tmp_sharedflag='-G' ;;
  13081. *)
  13082. tmp_sharedflag='-shared' ;;
  13083. esac
  13084. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13085. if test $supports_anon_versioning = yes; then
  13086. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13087. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13088. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13089. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13090. fi
  13091. else
  13092. ld_shlibs_F77=no
  13093. fi
  13094. ;;
  13095. netbsd*)
  13096. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13097. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13098. wlarc=
  13099. else
  13100. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13101. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13102. fi
  13103. ;;
  13104. solaris*)
  13105. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13106. ld_shlibs_F77=no
  13107. cat <<EOF 1>&2
  13108. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13109. *** create shared libraries on Solaris systems. Therefore, libtool
  13110. *** is disabling shared libraries support. We urge you to upgrade GNU
  13111. *** binutils to release 2.9.1 or newer. Another option is to modify
  13112. *** your PATH or compiler configuration so that the native linker is
  13113. *** used, and then restart.
  13114. EOF
  13115. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13116. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13117. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13118. else
  13119. ld_shlibs_F77=no
  13120. fi
  13121. ;;
  13122. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13123. case `$LD -v 2>&1` in
  13124. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13125. ld_shlibs_F77=no
  13126. cat <<_LT_EOF 1>&2
  13127. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13128. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13129. *** is disabling shared libraries support. We urge you to upgrade GNU
  13130. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13131. *** your PATH or compiler configuration so that the native linker is
  13132. *** used, and then restart.
  13133. _LT_EOF
  13134. ;;
  13135. *)
  13136. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13137. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13138. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13139. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13140. else
  13141. ld_shlibs_F77=no
  13142. fi
  13143. ;;
  13144. esac
  13145. ;;
  13146. sunos4*)
  13147. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13148. wlarc=
  13149. hardcode_direct_F77=yes
  13150. hardcode_shlibpath_var_F77=no
  13151. ;;
  13152. *)
  13153. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13154. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13155. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13156. else
  13157. ld_shlibs_F77=no
  13158. fi
  13159. ;;
  13160. esac
  13161. if test "$ld_shlibs_F77" = no; then
  13162. runpath_var=
  13163. hardcode_libdir_flag_spec_F77=
  13164. export_dynamic_flag_spec_F77=
  13165. whole_archive_flag_spec_F77=
  13166. fi
  13167. else
  13168. # PORTME fill in a description of your system's linker (not GNU ld)
  13169. case $host_os in
  13170. aix3*)
  13171. allow_undefined_flag_F77=unsupported
  13172. always_export_symbols_F77=yes
  13173. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13174. # Note: this linker hardcodes the directories in LIBPATH if there
  13175. # are no directories specified by -L.
  13176. hardcode_minus_L_F77=yes
  13177. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13178. # Neither direct hardcoding nor static linking is supported with a
  13179. # broken collect2.
  13180. hardcode_direct_F77=unsupported
  13181. fi
  13182. ;;
  13183. aix4* | aix5*)
  13184. if test "$host_cpu" = ia64; then
  13185. # On IA64, the linker does run time linking by default, so we don't
  13186. # have to do anything special.
  13187. aix_use_runtimelinking=no
  13188. exp_sym_flag='-Bexport'
  13189. no_entry_flag=""
  13190. else
  13191. # If we're using GNU nm, then we don't want the "-C" option.
  13192. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13193. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13194. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13195. else
  13196. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13197. fi
  13198. aix_use_runtimelinking=no
  13199. # Test if we are trying to use run time linking or normal
  13200. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13201. # need to do runtime linking.
  13202. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13203. for ld_flag in $LDFLAGS; do
  13204. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13205. aix_use_runtimelinking=yes
  13206. break
  13207. fi
  13208. done
  13209. ;;
  13210. esac
  13211. exp_sym_flag='-bexport'
  13212. no_entry_flag='-bnoentry'
  13213. fi
  13214. # When large executables or shared objects are built, AIX ld can
  13215. # have problems creating the table of contents. If linking a library
  13216. # or program results in "error TOC overflow" add -mminimal-toc to
  13217. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13218. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13219. archive_cmds_F77=''
  13220. hardcode_direct_F77=yes
  13221. hardcode_libdir_separator_F77=':'
  13222. link_all_deplibs_F77=yes
  13223. if test "$GCC" = yes; then
  13224. case $host_os in aix4.[012]|aix4.[012].*)
  13225. # We only want to do this on AIX 4.2 and lower, the check
  13226. # below for broken collect2 doesn't work under 4.3+
  13227. collect2name=`${CC} -print-prog-name=collect2`
  13228. if test -f "$collect2name" && \
  13229. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13230. then
  13231. # We have reworked collect2
  13232. :
  13233. else
  13234. # We have old collect2
  13235. hardcode_direct_F77=unsupported
  13236. # It fails to find uninstalled libraries when the uninstalled
  13237. # path is not listed in the libpath. Setting hardcode_minus_L
  13238. # to unsupported forces relinking
  13239. hardcode_minus_L_F77=yes
  13240. hardcode_libdir_flag_spec_F77='-L$libdir'
  13241. hardcode_libdir_separator_F77=
  13242. fi
  13243. ;;
  13244. esac
  13245. shared_flag='-shared'
  13246. if test "$aix_use_runtimelinking" = yes; then
  13247. shared_flag="$shared_flag "'${wl}-G'
  13248. fi
  13249. else
  13250. # not using gcc
  13251. if test "$host_cpu" = ia64; then
  13252. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13253. # chokes on -Wl,-G. The following line is correct:
  13254. shared_flag='-G'
  13255. else
  13256. if test "$aix_use_runtimelinking" = yes; then
  13257. shared_flag='${wl}-G'
  13258. else
  13259. shared_flag='${wl}-bM:SRE'
  13260. fi
  13261. fi
  13262. fi
  13263. # It seems that -bexpall does not export symbols beginning with
  13264. # underscore (_), so it is better to generate a list of symbols to export.
  13265. always_export_symbols_F77=yes
  13266. if test "$aix_use_runtimelinking" = yes; then
  13267. # Warning - without using the other runtime loading flags (-brtl),
  13268. # -berok will link without error, but may produce a broken library.
  13269. allow_undefined_flag_F77='-berok'
  13270. # Determine the default libpath from the value encoded in an empty executable.
  13271. cat >conftest.$ac_ext <<_ACEOF
  13272. program main
  13273. end
  13274. _ACEOF
  13275. rm -f conftest.$ac_objext conftest$ac_exeext
  13276. if { (ac_try="$ac_link"
  13277. case "(($ac_try" in
  13278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13279. *) ac_try_echo=$ac_try;;
  13280. esac
  13281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13282. (eval "$ac_link") 2>conftest.er1
  13283. ac_status=$?
  13284. grep -v '^ *+' conftest.er1 >conftest.err
  13285. rm -f conftest.er1
  13286. cat conftest.err >&5
  13287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13288. (exit $ac_status); } && {
  13289. test -z "$ac_f77_werror_flag" ||
  13290. test ! -s conftest.err
  13291. } && test -s conftest$ac_exeext &&
  13292. $as_test_x conftest$ac_exeext; then
  13293. lt_aix_libpath_sed='
  13294. /Import File Strings/,/^$/ {
  13295. /^0/ {
  13296. s/^0 *\(.*\)$/\1/
  13297. p
  13298. }
  13299. }'
  13300. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13301. # Check for a 64-bit object if we didn't find anything.
  13302. if test -z "$aix_libpath"; then
  13303. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13304. fi
  13305. else
  13306. echo "$as_me: failed program was:" >&5
  13307. sed 's/^/| /' conftest.$ac_ext >&5
  13308. fi
  13309. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13310. conftest$ac_exeext conftest.$ac_ext
  13311. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13312. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13313. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13314. else
  13315. if test "$host_cpu" = ia64; then
  13316. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13317. allow_undefined_flag_F77="-z nodefs"
  13318. archive_expsym_cmds_F77="\$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"
  13319. else
  13320. # Determine the default libpath from the value encoded in an empty executable.
  13321. cat >conftest.$ac_ext <<_ACEOF
  13322. program main
  13323. end
  13324. _ACEOF
  13325. rm -f conftest.$ac_objext conftest$ac_exeext
  13326. if { (ac_try="$ac_link"
  13327. case "(($ac_try" in
  13328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13329. *) ac_try_echo=$ac_try;;
  13330. esac
  13331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13332. (eval "$ac_link") 2>conftest.er1
  13333. ac_status=$?
  13334. grep -v '^ *+' conftest.er1 >conftest.err
  13335. rm -f conftest.er1
  13336. cat conftest.err >&5
  13337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13338. (exit $ac_status); } && {
  13339. test -z "$ac_f77_werror_flag" ||
  13340. test ! -s conftest.err
  13341. } && test -s conftest$ac_exeext &&
  13342. $as_test_x conftest$ac_exeext; then
  13343. lt_aix_libpath_sed='
  13344. /Import File Strings/,/^$/ {
  13345. /^0/ {
  13346. s/^0 *\(.*\)$/\1/
  13347. p
  13348. }
  13349. }'
  13350. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13351. # Check for a 64-bit object if we didn't find anything.
  13352. if test -z "$aix_libpath"; then
  13353. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13354. fi
  13355. else
  13356. echo "$as_me: failed program was:" >&5
  13357. sed 's/^/| /' conftest.$ac_ext >&5
  13358. fi
  13359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13360. conftest$ac_exeext conftest.$ac_ext
  13361. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13362. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13363. # Warning - without using the other run time loading flags,
  13364. # -berok will link without error, but may produce a broken library.
  13365. no_undefined_flag_F77=' ${wl}-bernotok'
  13366. allow_undefined_flag_F77=' ${wl}-berok'
  13367. # Exported symbols can be pulled into shared objects from archives
  13368. whole_archive_flag_spec_F77='$convenience'
  13369. archive_cmds_need_lc_F77=yes
  13370. # This is similar to how AIX traditionally builds its shared libraries.
  13371. archive_expsym_cmds_F77="\$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'
  13372. fi
  13373. fi
  13374. ;;
  13375. amigaos*)
  13376. archive_cmds_F77='$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)'
  13377. hardcode_libdir_flag_spec_F77='-L$libdir'
  13378. hardcode_minus_L_F77=yes
  13379. # see comment about different semantics on the GNU ld section
  13380. ld_shlibs_F77=no
  13381. ;;
  13382. bsdi[45]*)
  13383. export_dynamic_flag_spec_F77=-rdynamic
  13384. ;;
  13385. cygwin* | mingw* | pw32*)
  13386. # When not using gcc, we currently assume that we are using
  13387. # Microsoft Visual C++.
  13388. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13389. # no search path for DLLs.
  13390. hardcode_libdir_flag_spec_F77=' '
  13391. allow_undefined_flag_F77=unsupported
  13392. # Tell ltmain to make .lib files, not .a files.
  13393. libext=lib
  13394. # Tell ltmain to make .dll files, not .so files.
  13395. shrext_cmds=".dll"
  13396. # FIXME: Setting linknames here is a bad hack.
  13397. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13398. # The linker will automatically build a .lib file if we build a DLL.
  13399. old_archive_From_new_cmds_F77='true'
  13400. # FIXME: Should let the user specify the lib program.
  13401. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13402. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13403. enable_shared_with_static_runtimes_F77=yes
  13404. ;;
  13405. darwin* | rhapsody*)
  13406. case $host_os in
  13407. rhapsody* | darwin1.[012])
  13408. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13409. ;;
  13410. *) # Darwin 1.3 on
  13411. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13412. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13413. else
  13414. case ${MACOSX_DEPLOYMENT_TARGET} in
  13415. 10.[012])
  13416. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13417. ;;
  13418. 10.*)
  13419. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13420. ;;
  13421. esac
  13422. fi
  13423. ;;
  13424. esac
  13425. archive_cmds_need_lc_F77=no
  13426. hardcode_direct_F77=no
  13427. hardcode_automatic_F77=yes
  13428. hardcode_shlibpath_var_F77=unsupported
  13429. whole_archive_flag_spec_F77=''
  13430. link_all_deplibs_F77=yes
  13431. if test "$GCC" = yes ; then
  13432. output_verbose_link_cmd='echo'
  13433. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13434. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13435. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13436. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13437. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13438. else
  13439. case $cc_basename in
  13440. xlc*)
  13441. output_verbose_link_cmd='echo'
  13442. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13443. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13444. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13445. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13446. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13447. ;;
  13448. *)
  13449. ld_shlibs_F77=no
  13450. ;;
  13451. esac
  13452. fi
  13453. ;;
  13454. dgux*)
  13455. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13456. hardcode_libdir_flag_spec_F77='-L$libdir'
  13457. hardcode_shlibpath_var_F77=no
  13458. ;;
  13459. freebsd1*)
  13460. ld_shlibs_F77=no
  13461. ;;
  13462. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13463. # support. Future versions do this automatically, but an explicit c++rt0.o
  13464. # does not break anything, and helps significantly (at the cost of a little
  13465. # extra space).
  13466. freebsd2.2*)
  13467. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13468. hardcode_libdir_flag_spec_F77='-R$libdir'
  13469. hardcode_direct_F77=yes
  13470. hardcode_shlibpath_var_F77=no
  13471. ;;
  13472. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13473. freebsd2*)
  13474. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13475. hardcode_direct_F77=yes
  13476. hardcode_minus_L_F77=yes
  13477. hardcode_shlibpath_var_F77=no
  13478. ;;
  13479. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13480. freebsd* | dragonfly*)
  13481. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13482. hardcode_libdir_flag_spec_F77='-R$libdir'
  13483. hardcode_direct_F77=yes
  13484. hardcode_shlibpath_var_F77=no
  13485. ;;
  13486. hpux9*)
  13487. if test "$GCC" = yes; then
  13488. archive_cmds_F77='$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'
  13489. else
  13490. archive_cmds_F77='$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'
  13491. fi
  13492. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13493. hardcode_libdir_separator_F77=:
  13494. hardcode_direct_F77=yes
  13495. # hardcode_minus_L: Not really in the search PATH,
  13496. # but as the default location of the library.
  13497. hardcode_minus_L_F77=yes
  13498. export_dynamic_flag_spec_F77='${wl}-E'
  13499. ;;
  13500. hpux10*)
  13501. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13502. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13503. else
  13504. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13505. fi
  13506. if test "$with_gnu_ld" = no; then
  13507. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13508. hardcode_libdir_separator_F77=:
  13509. hardcode_direct_F77=yes
  13510. export_dynamic_flag_spec_F77='${wl}-E'
  13511. # hardcode_minus_L: Not really in the search PATH,
  13512. # but as the default location of the library.
  13513. hardcode_minus_L_F77=yes
  13514. fi
  13515. ;;
  13516. hpux11*)
  13517. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13518. case $host_cpu in
  13519. hppa*64*)
  13520. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13521. ;;
  13522. ia64*)
  13523. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13524. ;;
  13525. *)
  13526. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13527. ;;
  13528. esac
  13529. else
  13530. case $host_cpu in
  13531. hppa*64*)
  13532. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13533. ;;
  13534. ia64*)
  13535. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13536. ;;
  13537. *)
  13538. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13539. ;;
  13540. esac
  13541. fi
  13542. if test "$with_gnu_ld" = no; then
  13543. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13544. hardcode_libdir_separator_F77=:
  13545. case $host_cpu in
  13546. hppa*64*|ia64*)
  13547. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13548. hardcode_direct_F77=no
  13549. hardcode_shlibpath_var_F77=no
  13550. ;;
  13551. *)
  13552. hardcode_direct_F77=yes
  13553. export_dynamic_flag_spec_F77='${wl}-E'
  13554. # hardcode_minus_L: Not really in the search PATH,
  13555. # but as the default location of the library.
  13556. hardcode_minus_L_F77=yes
  13557. ;;
  13558. esac
  13559. fi
  13560. ;;
  13561. irix5* | irix6* | nonstopux*)
  13562. if test "$GCC" = yes; then
  13563. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13564. else
  13565. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13566. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13567. fi
  13568. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13569. hardcode_libdir_separator_F77=:
  13570. link_all_deplibs_F77=yes
  13571. ;;
  13572. netbsd*)
  13573. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13574. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13575. else
  13576. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13577. fi
  13578. hardcode_libdir_flag_spec_F77='-R$libdir'
  13579. hardcode_direct_F77=yes
  13580. hardcode_shlibpath_var_F77=no
  13581. ;;
  13582. newsos6)
  13583. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13584. hardcode_direct_F77=yes
  13585. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13586. hardcode_libdir_separator_F77=:
  13587. hardcode_shlibpath_var_F77=no
  13588. ;;
  13589. openbsd*)
  13590. if test -f /usr/libexec/ld.so; then
  13591. hardcode_direct_F77=yes
  13592. hardcode_shlibpath_var_F77=no
  13593. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13594. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13595. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13596. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13597. export_dynamic_flag_spec_F77='${wl}-E'
  13598. else
  13599. case $host_os in
  13600. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13601. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13602. hardcode_libdir_flag_spec_F77='-R$libdir'
  13603. ;;
  13604. *)
  13605. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13606. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13607. ;;
  13608. esac
  13609. fi
  13610. else
  13611. ld_shlibs_F77=no
  13612. fi
  13613. ;;
  13614. os2*)
  13615. hardcode_libdir_flag_spec_F77='-L$libdir'
  13616. hardcode_minus_L_F77=yes
  13617. allow_undefined_flag_F77=unsupported
  13618. archive_cmds_F77='$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'
  13619. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13620. ;;
  13621. osf3*)
  13622. if test "$GCC" = yes; then
  13623. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13624. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13625. else
  13626. allow_undefined_flag_F77=' -expect_unresolved \*'
  13627. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13628. fi
  13629. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13630. hardcode_libdir_separator_F77=:
  13631. ;;
  13632. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13633. if test "$GCC" = yes; then
  13634. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13635. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13636. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13637. else
  13638. allow_undefined_flag_F77=' -expect_unresolved \*'
  13639. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13640. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13641. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13642. # Both c and cxx compiler support -rpath directly
  13643. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13644. fi
  13645. hardcode_libdir_separator_F77=:
  13646. ;;
  13647. solaris*)
  13648. no_undefined_flag_F77=' -z text'
  13649. if test "$GCC" = yes; then
  13650. wlarc='${wl}'
  13651. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13652. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13653. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13654. else
  13655. wlarc=''
  13656. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13657. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13658. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13659. fi
  13660. hardcode_libdir_flag_spec_F77='-R$libdir'
  13661. hardcode_shlibpath_var_F77=no
  13662. case $host_os in
  13663. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13664. *)
  13665. # The compiler driver will combine and reorder linker options,
  13666. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13667. # but is careful enough not to reorder.
  13668. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13669. if test "$GCC" = yes; then
  13670. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13671. else
  13672. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13673. fi
  13674. ;;
  13675. esac
  13676. link_all_deplibs_F77=yes
  13677. ;;
  13678. sunos4*)
  13679. if test "x$host_vendor" = xsequent; then
  13680. # Use $CC to link under sequent, because it throws in some extra .o
  13681. # files that make .init and .fini sections work.
  13682. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13683. else
  13684. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13685. fi
  13686. hardcode_libdir_flag_spec_F77='-L$libdir'
  13687. hardcode_direct_F77=yes
  13688. hardcode_minus_L_F77=yes
  13689. hardcode_shlibpath_var_F77=no
  13690. ;;
  13691. sysv4)
  13692. case $host_vendor in
  13693. sni)
  13694. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13695. hardcode_direct_F77=yes # is this really true???
  13696. ;;
  13697. siemens)
  13698. ## LD is ld it makes a PLAMLIB
  13699. ## CC just makes a GrossModule.
  13700. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13701. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13702. hardcode_direct_F77=no
  13703. ;;
  13704. motorola)
  13705. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13706. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13707. ;;
  13708. esac
  13709. runpath_var='LD_RUN_PATH'
  13710. hardcode_shlibpath_var_F77=no
  13711. ;;
  13712. sysv4.3*)
  13713. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13714. hardcode_shlibpath_var_F77=no
  13715. export_dynamic_flag_spec_F77='-Bexport'
  13716. ;;
  13717. sysv4*MP*)
  13718. if test -d /usr/nec; then
  13719. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13720. hardcode_shlibpath_var_F77=no
  13721. runpath_var=LD_RUN_PATH
  13722. hardcode_runpath_var=yes
  13723. ld_shlibs_F77=yes
  13724. fi
  13725. ;;
  13726. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13727. no_undefined_flag_F77='${wl}-z,text'
  13728. archive_cmds_need_lc_F77=no
  13729. hardcode_shlibpath_var_F77=no
  13730. runpath_var='LD_RUN_PATH'
  13731. if test "$GCC" = yes; then
  13732. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13733. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13734. else
  13735. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13736. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13737. fi
  13738. ;;
  13739. sysv5* | sco3.2v5* | sco5v6*)
  13740. # Note: We can NOT use -z defs as we might desire, because we do not
  13741. # link with -lc, and that would cause any symbols used from libc to
  13742. # always be unresolved, which means just about no library would
  13743. # ever link correctly. If we're not using GNU ld we use -z text
  13744. # though, which does catch some bad symbols but isn't as heavy-handed
  13745. # as -z defs.
  13746. no_undefined_flag_F77='${wl}-z,text'
  13747. allow_undefined_flag_F77='${wl}-z,nodefs'
  13748. archive_cmds_need_lc_F77=no
  13749. hardcode_shlibpath_var_F77=no
  13750. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13751. hardcode_libdir_separator_F77=':'
  13752. link_all_deplibs_F77=yes
  13753. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13754. runpath_var='LD_RUN_PATH'
  13755. if test "$GCC" = yes; then
  13756. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13757. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13758. else
  13759. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13760. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13761. fi
  13762. ;;
  13763. uts4*)
  13764. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13765. hardcode_libdir_flag_spec_F77='-L$libdir'
  13766. hardcode_shlibpath_var_F77=no
  13767. ;;
  13768. *)
  13769. ld_shlibs_F77=no
  13770. ;;
  13771. esac
  13772. fi
  13773. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13774. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13775. test "$ld_shlibs_F77" = no && can_build_shared=no
  13776. #
  13777. # Do we need to explicitly link libc?
  13778. #
  13779. case "x$archive_cmds_need_lc_F77" in
  13780. x|xyes)
  13781. # Assume -lc should be added
  13782. archive_cmds_need_lc_F77=yes
  13783. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13784. case $archive_cmds_F77 in
  13785. *'~'*)
  13786. # FIXME: we may have to deal with multi-command sequences.
  13787. ;;
  13788. '$CC '*)
  13789. # Test whether the compiler implicitly links with -lc since on some
  13790. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13791. # to ld, don't add -lc before -lgcc.
  13792. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13793. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13794. $rm conftest*
  13795. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13797. (eval $ac_compile) 2>&5
  13798. ac_status=$?
  13799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13800. (exit $ac_status); } 2>conftest.err; then
  13801. soname=conftest
  13802. lib=conftest
  13803. libobjs=conftest.$ac_objext
  13804. deplibs=
  13805. wl=$lt_prog_compiler_wl_F77
  13806. pic_flag=$lt_prog_compiler_pic_F77
  13807. compiler_flags=-v
  13808. linker_flags=-v
  13809. verstring=
  13810. output_objdir=.
  13811. libname=conftest
  13812. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13813. allow_undefined_flag_F77=
  13814. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13815. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13816. ac_status=$?
  13817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13818. (exit $ac_status); }
  13819. then
  13820. archive_cmds_need_lc_F77=no
  13821. else
  13822. archive_cmds_need_lc_F77=yes
  13823. fi
  13824. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13825. else
  13826. cat conftest.err 1>&5
  13827. fi
  13828. $rm conftest*
  13829. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13830. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13831. ;;
  13832. esac
  13833. fi
  13834. ;;
  13835. esac
  13836. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13837. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13838. library_names_spec=
  13839. libname_spec='lib$name'
  13840. soname_spec=
  13841. shrext_cmds=".so"
  13842. postinstall_cmds=
  13843. postuninstall_cmds=
  13844. finish_cmds=
  13845. finish_eval=
  13846. shlibpath_var=
  13847. shlibpath_overrides_runpath=unknown
  13848. version_type=none
  13849. dynamic_linker="$host_os ld.so"
  13850. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13851. need_lib_prefix=unknown
  13852. hardcode_into_libs=no
  13853. # when you set need_version to no, make sure it does not cause -set_version
  13854. # flags to be left without arguments
  13855. need_version=unknown
  13856. case $host_os in
  13857. aix3*)
  13858. version_type=linux
  13859. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13860. shlibpath_var=LIBPATH
  13861. # AIX 3 has no versioning support, so we append a major version to the name.
  13862. soname_spec='${libname}${release}${shared_ext}$major'
  13863. ;;
  13864. aix4* | aix5*)
  13865. version_type=linux
  13866. need_lib_prefix=no
  13867. need_version=no
  13868. hardcode_into_libs=yes
  13869. if test "$host_cpu" = ia64; then
  13870. # AIX 5 supports IA64
  13871. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13872. shlibpath_var=LD_LIBRARY_PATH
  13873. else
  13874. # With GCC up to 2.95.x, collect2 would create an import file
  13875. # for dependence libraries. The import file would start with
  13876. # the line `#! .'. This would cause the generated library to
  13877. # depend on `.', always an invalid library. This was fixed in
  13878. # development snapshots of GCC prior to 3.0.
  13879. case $host_os in
  13880. aix4 | aix4.[01] | aix4.[01].*)
  13881. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13882. echo ' yes '
  13883. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13884. :
  13885. else
  13886. can_build_shared=no
  13887. fi
  13888. ;;
  13889. esac
  13890. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13891. # soname into executable. Probably we can add versioning support to
  13892. # collect2, so additional links can be useful in future.
  13893. if test "$aix_use_runtimelinking" = yes; then
  13894. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13895. # instead of lib<name>.a to let people know that these are not
  13896. # typical AIX shared libraries.
  13897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13898. else
  13899. # We preserve .a as extension for shared libraries through AIX4.2
  13900. # and later when we are not doing run time linking.
  13901. library_names_spec='${libname}${release}.a $libname.a'
  13902. soname_spec='${libname}${release}${shared_ext}$major'
  13903. fi
  13904. shlibpath_var=LIBPATH
  13905. fi
  13906. ;;
  13907. amigaos*)
  13908. library_names_spec='$libname.ixlibrary $libname.a'
  13909. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13910. 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'
  13911. ;;
  13912. beos*)
  13913. library_names_spec='${libname}${shared_ext}'
  13914. dynamic_linker="$host_os ld.so"
  13915. shlibpath_var=LIBRARY_PATH
  13916. ;;
  13917. bsdi[45]*)
  13918. version_type=linux
  13919. need_version=no
  13920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13921. soname_spec='${libname}${release}${shared_ext}$major'
  13922. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13923. shlibpath_var=LD_LIBRARY_PATH
  13924. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13925. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13926. # the default ld.so.conf also contains /usr/contrib/lib and
  13927. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13928. # libtool to hard-code these into programs
  13929. ;;
  13930. cygwin* | mingw* | pw32*)
  13931. version_type=windows
  13932. shrext_cmds=".dll"
  13933. need_version=no
  13934. need_lib_prefix=no
  13935. case $GCC,$host_os in
  13936. yes,cygwin* | yes,mingw* | yes,pw32*)
  13937. library_names_spec='$libname.dll.a'
  13938. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13939. postinstall_cmds='base_file=`basename \${file}`~
  13940. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13941. dldir=$destdir/`dirname \$dlpath`~
  13942. test -d \$dldir || mkdir -p \$dldir~
  13943. $install_prog $dir/$dlname \$dldir/$dlname~
  13944. chmod a+x \$dldir/$dlname'
  13945. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13946. dlpath=$dir/\$dldll~
  13947. $rm \$dlpath'
  13948. shlibpath_overrides_runpath=yes
  13949. case $host_os in
  13950. cygwin*)
  13951. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13952. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13953. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13954. ;;
  13955. mingw*)
  13956. # MinGW DLLs use traditional 'lib' prefix
  13957. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13958. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13959. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13960. # It is most probably a Windows format PATH printed by
  13961. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13962. # path with ; separators, and with drive letters. We can handle the
  13963. # drive letters (cygwin fileutils understands them), so leave them,
  13964. # especially as we might pass files found there to a mingw objdump,
  13965. # which wouldn't understand a cygwinified path. Ahh.
  13966. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13967. else
  13968. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13969. fi
  13970. ;;
  13971. pw32*)
  13972. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13973. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13974. ;;
  13975. esac
  13976. ;;
  13977. *)
  13978. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13979. ;;
  13980. esac
  13981. dynamic_linker='Win32 ld.exe'
  13982. # FIXME: first we should search . and the directory the executable is in
  13983. shlibpath_var=PATH
  13984. ;;
  13985. darwin* | rhapsody*)
  13986. dynamic_linker="$host_os dyld"
  13987. version_type=darwin
  13988. need_lib_prefix=no
  13989. need_version=no
  13990. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13991. soname_spec='${libname}${release}${major}$shared_ext'
  13992. shlibpath_overrides_runpath=yes
  13993. shlibpath_var=DYLD_LIBRARY_PATH
  13994. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13995. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13996. ;;
  13997. dgux*)
  13998. version_type=linux
  13999. need_lib_prefix=no
  14000. need_version=no
  14001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14002. soname_spec='${libname}${release}${shared_ext}$major'
  14003. shlibpath_var=LD_LIBRARY_PATH
  14004. ;;
  14005. freebsd1*)
  14006. dynamic_linker=no
  14007. ;;
  14008. freebsd* | dragonfly*)
  14009. # DragonFly does not have aout. When/if they implement a new
  14010. # versioning mechanism, adjust this.
  14011. if test -x /usr/bin/objformat; then
  14012. objformat=`/usr/bin/objformat`
  14013. else
  14014. case $host_os in
  14015. freebsd[123]*) objformat=aout ;;
  14016. *) objformat=elf ;;
  14017. esac
  14018. fi
  14019. version_type=freebsd-$objformat
  14020. case $version_type in
  14021. freebsd-elf*)
  14022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14023. need_version=no
  14024. need_lib_prefix=no
  14025. ;;
  14026. freebsd-*)
  14027. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14028. need_version=yes
  14029. ;;
  14030. esac
  14031. shlibpath_var=LD_LIBRARY_PATH
  14032. case $host_os in
  14033. freebsd2*)
  14034. shlibpath_overrides_runpath=yes
  14035. ;;
  14036. freebsd3.[01]* | freebsdelf3.[01]*)
  14037. shlibpath_overrides_runpath=yes
  14038. hardcode_into_libs=yes
  14039. ;;
  14040. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14041. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14042. shlibpath_overrides_runpath=no
  14043. hardcode_into_libs=yes
  14044. ;;
  14045. *) # from 4.6 on, and DragonFly
  14046. shlibpath_overrides_runpath=yes
  14047. hardcode_into_libs=yes
  14048. ;;
  14049. esac
  14050. ;;
  14051. gnu*)
  14052. version_type=linux
  14053. need_lib_prefix=no
  14054. need_version=no
  14055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14056. soname_spec='${libname}${release}${shared_ext}$major'
  14057. shlibpath_var=LD_LIBRARY_PATH
  14058. hardcode_into_libs=yes
  14059. ;;
  14060. hpux9* | hpux10* | hpux11*)
  14061. # Give a soname corresponding to the major version so that dld.sl refuses to
  14062. # link against other versions.
  14063. version_type=sunos
  14064. need_lib_prefix=no
  14065. need_version=no
  14066. case $host_cpu in
  14067. ia64*)
  14068. shrext_cmds='.so'
  14069. hardcode_into_libs=yes
  14070. dynamic_linker="$host_os dld.so"
  14071. shlibpath_var=LD_LIBRARY_PATH
  14072. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14074. soname_spec='${libname}${release}${shared_ext}$major'
  14075. if test "X$HPUX_IA64_MODE" = X32; then
  14076. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14077. else
  14078. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14079. fi
  14080. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14081. ;;
  14082. hppa*64*)
  14083. shrext_cmds='.sl'
  14084. hardcode_into_libs=yes
  14085. dynamic_linker="$host_os dld.sl"
  14086. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14087. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14089. soname_spec='${libname}${release}${shared_ext}$major'
  14090. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14091. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14092. ;;
  14093. *)
  14094. shrext_cmds='.sl'
  14095. dynamic_linker="$host_os dld.sl"
  14096. shlibpath_var=SHLIB_PATH
  14097. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14098. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14099. soname_spec='${libname}${release}${shared_ext}$major'
  14100. ;;
  14101. esac
  14102. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14103. postinstall_cmds='chmod 555 $lib'
  14104. ;;
  14105. interix[3-9]*)
  14106. version_type=linux
  14107. need_lib_prefix=no
  14108. need_version=no
  14109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14110. soname_spec='${libname}${release}${shared_ext}$major'
  14111. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14112. shlibpath_var=LD_LIBRARY_PATH
  14113. shlibpath_overrides_runpath=no
  14114. hardcode_into_libs=yes
  14115. ;;
  14116. irix5* | irix6* | nonstopux*)
  14117. case $host_os in
  14118. nonstopux*) version_type=nonstopux ;;
  14119. *)
  14120. if test "$lt_cv_prog_gnu_ld" = yes; then
  14121. version_type=linux
  14122. else
  14123. version_type=irix
  14124. fi ;;
  14125. esac
  14126. need_lib_prefix=no
  14127. need_version=no
  14128. soname_spec='${libname}${release}${shared_ext}$major'
  14129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14130. case $host_os in
  14131. irix5* | nonstopux*)
  14132. libsuff= shlibsuff=
  14133. ;;
  14134. *)
  14135. case $LD in # libtool.m4 will add one of these switches to LD
  14136. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14137. libsuff= shlibsuff= libmagic=32-bit;;
  14138. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14139. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14140. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14141. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14142. *) libsuff= shlibsuff= libmagic=never-match;;
  14143. esac
  14144. ;;
  14145. esac
  14146. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14147. shlibpath_overrides_runpath=no
  14148. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14149. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14150. hardcode_into_libs=yes
  14151. ;;
  14152. # No shared lib support for Linux oldld, aout, or coff.
  14153. linux*oldld* | linux*aout* | linux*coff*)
  14154. dynamic_linker=no
  14155. ;;
  14156. # This must be Linux ELF.
  14157. linux* | k*bsd*-gnu)
  14158. version_type=linux
  14159. need_lib_prefix=no
  14160. need_version=no
  14161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14162. soname_spec='${libname}${release}${shared_ext}$major'
  14163. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14164. shlibpath_var=LD_LIBRARY_PATH
  14165. shlibpath_overrides_runpath=no
  14166. # This implies no fast_install, which is unacceptable.
  14167. # Some rework will be needed to allow for fast_install
  14168. # before this can be enabled.
  14169. hardcode_into_libs=yes
  14170. # Append ld.so.conf contents to the search path
  14171. if test -f /etc/ld.so.conf; then
  14172. 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' ' '`
  14173. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14174. fi
  14175. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14176. # powerpc, because MkLinux only supported shared libraries with the
  14177. # GNU dynamic linker. Since this was broken with cross compilers,
  14178. # most powerpc-linux boxes support dynamic linking these days and
  14179. # people can always --disable-shared, the test was removed, and we
  14180. # assume the GNU/Linux dynamic linker is in use.
  14181. dynamic_linker='GNU/Linux ld.so'
  14182. ;;
  14183. netbsd*)
  14184. version_type=sunos
  14185. need_lib_prefix=no
  14186. need_version=no
  14187. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14189. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14190. dynamic_linker='NetBSD (a.out) ld.so'
  14191. else
  14192. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14193. soname_spec='${libname}${release}${shared_ext}$major'
  14194. dynamic_linker='NetBSD ld.elf_so'
  14195. fi
  14196. shlibpath_var=LD_LIBRARY_PATH
  14197. shlibpath_overrides_runpath=yes
  14198. hardcode_into_libs=yes
  14199. ;;
  14200. newsos6)
  14201. version_type=linux
  14202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14203. shlibpath_var=LD_LIBRARY_PATH
  14204. shlibpath_overrides_runpath=yes
  14205. ;;
  14206. nto-qnx*)
  14207. version_type=linux
  14208. need_lib_prefix=no
  14209. need_version=no
  14210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14211. soname_spec='${libname}${release}${shared_ext}$major'
  14212. shlibpath_var=LD_LIBRARY_PATH
  14213. shlibpath_overrides_runpath=yes
  14214. ;;
  14215. openbsd*)
  14216. version_type=sunos
  14217. sys_lib_dlsearch_path_spec="/usr/lib"
  14218. need_lib_prefix=no
  14219. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14220. case $host_os in
  14221. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14222. *) need_version=no ;;
  14223. esac
  14224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14225. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14226. shlibpath_var=LD_LIBRARY_PATH
  14227. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14228. case $host_os in
  14229. openbsd2.[89] | openbsd2.[89].*)
  14230. shlibpath_overrides_runpath=no
  14231. ;;
  14232. *)
  14233. shlibpath_overrides_runpath=yes
  14234. ;;
  14235. esac
  14236. else
  14237. shlibpath_overrides_runpath=yes
  14238. fi
  14239. ;;
  14240. os2*)
  14241. libname_spec='$name'
  14242. shrext_cmds=".dll"
  14243. need_lib_prefix=no
  14244. library_names_spec='$libname${shared_ext} $libname.a'
  14245. dynamic_linker='OS/2 ld.exe'
  14246. shlibpath_var=LIBPATH
  14247. ;;
  14248. osf3* | osf4* | osf5*)
  14249. version_type=osf
  14250. need_lib_prefix=no
  14251. need_version=no
  14252. soname_spec='${libname}${release}${shared_ext}$major'
  14253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14254. shlibpath_var=LD_LIBRARY_PATH
  14255. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14256. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14257. ;;
  14258. rdos*)
  14259. dynamic_linker=no
  14260. ;;
  14261. solaris*)
  14262. version_type=linux
  14263. need_lib_prefix=no
  14264. need_version=no
  14265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14266. soname_spec='${libname}${release}${shared_ext}$major'
  14267. shlibpath_var=LD_LIBRARY_PATH
  14268. shlibpath_overrides_runpath=yes
  14269. hardcode_into_libs=yes
  14270. # ldd complains unless libraries are executable
  14271. postinstall_cmds='chmod +x $lib'
  14272. ;;
  14273. sunos4*)
  14274. version_type=sunos
  14275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14276. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14277. shlibpath_var=LD_LIBRARY_PATH
  14278. shlibpath_overrides_runpath=yes
  14279. if test "$with_gnu_ld" = yes; then
  14280. need_lib_prefix=no
  14281. fi
  14282. need_version=yes
  14283. ;;
  14284. sysv4 | sysv4.3*)
  14285. version_type=linux
  14286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14287. soname_spec='${libname}${release}${shared_ext}$major'
  14288. shlibpath_var=LD_LIBRARY_PATH
  14289. case $host_vendor in
  14290. sni)
  14291. shlibpath_overrides_runpath=no
  14292. need_lib_prefix=no
  14293. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14294. runpath_var=LD_RUN_PATH
  14295. ;;
  14296. siemens)
  14297. need_lib_prefix=no
  14298. ;;
  14299. motorola)
  14300. need_lib_prefix=no
  14301. need_version=no
  14302. shlibpath_overrides_runpath=no
  14303. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14304. ;;
  14305. esac
  14306. ;;
  14307. sysv4*MP*)
  14308. if test -d /usr/nec ;then
  14309. version_type=linux
  14310. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14311. soname_spec='$libname${shared_ext}.$major'
  14312. shlibpath_var=LD_LIBRARY_PATH
  14313. fi
  14314. ;;
  14315. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14316. version_type=freebsd-elf
  14317. need_lib_prefix=no
  14318. need_version=no
  14319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14320. soname_spec='${libname}${release}${shared_ext}$major'
  14321. shlibpath_var=LD_LIBRARY_PATH
  14322. hardcode_into_libs=yes
  14323. if test "$with_gnu_ld" = yes; then
  14324. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14325. shlibpath_overrides_runpath=no
  14326. else
  14327. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14328. shlibpath_overrides_runpath=yes
  14329. case $host_os in
  14330. sco3.2v5*)
  14331. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14332. ;;
  14333. esac
  14334. fi
  14335. sys_lib_dlsearch_path_spec='/usr/lib'
  14336. ;;
  14337. uts4*)
  14338. version_type=linux
  14339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14340. soname_spec='${libname}${release}${shared_ext}$major'
  14341. shlibpath_var=LD_LIBRARY_PATH
  14342. ;;
  14343. *)
  14344. dynamic_linker=no
  14345. ;;
  14346. esac
  14347. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14348. echo "${ECHO_T}$dynamic_linker" >&6; }
  14349. test "$dynamic_linker" = no && can_build_shared=no
  14350. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14351. if test "$GCC" = yes; then
  14352. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14353. fi
  14354. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14355. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14356. hardcode_action_F77=
  14357. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14358. test -n "$runpath_var_F77" || \
  14359. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14360. # We can hardcode non-existant directories.
  14361. if test "$hardcode_direct_F77" != no &&
  14362. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14363. # have to relink, otherwise we might link with an installed library
  14364. # when we should be linking with a yet-to-be-installed one
  14365. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14366. test "$hardcode_minus_L_F77" != no; then
  14367. # Linking always hardcodes the temporary library directory.
  14368. hardcode_action_F77=relink
  14369. else
  14370. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14371. hardcode_action_F77=immediate
  14372. fi
  14373. else
  14374. # We cannot hardcode anything, or else we can only hardcode existing
  14375. # directories.
  14376. hardcode_action_F77=unsupported
  14377. fi
  14378. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14379. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14380. if test "$hardcode_action_F77" = relink; then
  14381. # Fast installation is not supported
  14382. enable_fast_install=no
  14383. elif test "$shlibpath_overrides_runpath" = yes ||
  14384. test "$enable_shared" = no; then
  14385. # Fast installation is not necessary
  14386. enable_fast_install=needless
  14387. fi
  14388. # The else clause should only fire when bootstrapping the
  14389. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14390. # with your package, and you will get complaints that there are
  14391. # no rules to generate ltmain.sh.
  14392. if test -f "$ltmain"; then
  14393. # See if we are running on zsh, and set the options which allow our commands through
  14394. # without removal of \ escapes.
  14395. if test -n "${ZSH_VERSION+set}" ; then
  14396. setopt NO_GLOB_SUBST
  14397. fi
  14398. # Now quote all the things that may contain metacharacters while being
  14399. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14400. # variables and quote the copies for generation of the libtool script.
  14401. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14402. SED SHELL STRIP \
  14403. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14404. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14405. deplibs_check_method reload_flag reload_cmds need_locks \
  14406. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14407. lt_cv_sys_global_symbol_to_c_name_address \
  14408. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14409. old_postinstall_cmds old_postuninstall_cmds \
  14410. compiler_F77 \
  14411. CC_F77 \
  14412. LD_F77 \
  14413. lt_prog_compiler_wl_F77 \
  14414. lt_prog_compiler_pic_F77 \
  14415. lt_prog_compiler_static_F77 \
  14416. lt_prog_compiler_no_builtin_flag_F77 \
  14417. export_dynamic_flag_spec_F77 \
  14418. thread_safe_flag_spec_F77 \
  14419. whole_archive_flag_spec_F77 \
  14420. enable_shared_with_static_runtimes_F77 \
  14421. old_archive_cmds_F77 \
  14422. old_archive_from_new_cmds_F77 \
  14423. predep_objects_F77 \
  14424. postdep_objects_F77 \
  14425. predeps_F77 \
  14426. postdeps_F77 \
  14427. compiler_lib_search_path_F77 \
  14428. archive_cmds_F77 \
  14429. archive_expsym_cmds_F77 \
  14430. postinstall_cmds_F77 \
  14431. postuninstall_cmds_F77 \
  14432. old_archive_from_expsyms_cmds_F77 \
  14433. allow_undefined_flag_F77 \
  14434. no_undefined_flag_F77 \
  14435. export_symbols_cmds_F77 \
  14436. hardcode_libdir_flag_spec_F77 \
  14437. hardcode_libdir_flag_spec_ld_F77 \
  14438. hardcode_libdir_separator_F77 \
  14439. hardcode_automatic_F77 \
  14440. module_cmds_F77 \
  14441. module_expsym_cmds_F77 \
  14442. lt_cv_prog_compiler_c_o_F77 \
  14443. fix_srcfile_path_F77 \
  14444. exclude_expsyms_F77 \
  14445. include_expsyms_F77; do
  14446. case $var in
  14447. old_archive_cmds_F77 | \
  14448. old_archive_from_new_cmds_F77 | \
  14449. archive_cmds_F77 | \
  14450. archive_expsym_cmds_F77 | \
  14451. module_cmds_F77 | \
  14452. module_expsym_cmds_F77 | \
  14453. old_archive_from_expsyms_cmds_F77 | \
  14454. export_symbols_cmds_F77 | \
  14455. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14456. postinstall_cmds | postuninstall_cmds | \
  14457. old_postinstall_cmds | old_postuninstall_cmds | \
  14458. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14459. # Double-quote double-evaled strings.
  14460. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14461. ;;
  14462. *)
  14463. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14464. ;;
  14465. esac
  14466. done
  14467. case $lt_echo in
  14468. *'\$0 --fallback-echo"')
  14469. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14470. ;;
  14471. esac
  14472. cfgfile="$ofile"
  14473. cat <<__EOF__ >> "$cfgfile"
  14474. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14475. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14476. # Shell to use when invoking shell scripts.
  14477. SHELL=$lt_SHELL
  14478. # Whether or not to build shared libraries.
  14479. build_libtool_libs=$enable_shared
  14480. # Whether or not to build static libraries.
  14481. build_old_libs=$enable_static
  14482. # Whether or not to add -lc for building shared libraries.
  14483. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14484. # Whether or not to disallow shared libs when runtime libs are static
  14485. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14486. # Whether or not to optimize for fast installation.
  14487. fast_install=$enable_fast_install
  14488. # The host system.
  14489. host_alias=$host_alias
  14490. host=$host
  14491. host_os=$host_os
  14492. # The build system.
  14493. build_alias=$build_alias
  14494. build=$build
  14495. build_os=$build_os
  14496. # An echo program that does not interpret backslashes.
  14497. echo=$lt_echo
  14498. # The archiver.
  14499. AR=$lt_AR
  14500. AR_FLAGS=$lt_AR_FLAGS
  14501. # A C compiler.
  14502. LTCC=$lt_LTCC
  14503. # LTCC compiler flags.
  14504. LTCFLAGS=$lt_LTCFLAGS
  14505. # A language-specific compiler.
  14506. CC=$lt_compiler_F77
  14507. # Is the compiler the GNU C compiler?
  14508. with_gcc=$GCC_F77
  14509. # An ERE matcher.
  14510. EGREP=$lt_EGREP
  14511. # The linker used to build libraries.
  14512. LD=$lt_LD_F77
  14513. # Whether we need hard or soft links.
  14514. LN_S=$lt_LN_S
  14515. # A BSD-compatible nm program.
  14516. NM=$lt_NM
  14517. # A symbol stripping program
  14518. STRIP=$lt_STRIP
  14519. # Used to examine libraries when file_magic_cmd begins "file"
  14520. MAGIC_CMD=$MAGIC_CMD
  14521. # Used on cygwin: DLL creation program.
  14522. DLLTOOL="$DLLTOOL"
  14523. # Used on cygwin: object dumper.
  14524. OBJDUMP="$OBJDUMP"
  14525. # Used on cygwin: assembler.
  14526. AS="$AS"
  14527. # The name of the directory that contains temporary libtool files.
  14528. objdir=$objdir
  14529. # How to create reloadable object files.
  14530. reload_flag=$lt_reload_flag
  14531. reload_cmds=$lt_reload_cmds
  14532. # How to pass a linker flag through the compiler.
  14533. wl=$lt_lt_prog_compiler_wl_F77
  14534. # Object file suffix (normally "o").
  14535. objext="$ac_objext"
  14536. # Old archive suffix (normally "a").
  14537. libext="$libext"
  14538. # Shared library suffix (normally ".so").
  14539. shrext_cmds='$shrext_cmds'
  14540. # Executable file suffix (normally "").
  14541. exeext="$exeext"
  14542. # Additional compiler flags for building library objects.
  14543. pic_flag=$lt_lt_prog_compiler_pic_F77
  14544. pic_mode=$pic_mode
  14545. # What is the maximum length of a command?
  14546. max_cmd_len=$lt_cv_sys_max_cmd_len
  14547. # Does compiler simultaneously support -c and -o options?
  14548. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14549. # Must we lock files when doing compilation?
  14550. need_locks=$lt_need_locks
  14551. # Do we need the lib prefix for modules?
  14552. need_lib_prefix=$need_lib_prefix
  14553. # Do we need a version for libraries?
  14554. need_version=$need_version
  14555. # Whether dlopen is supported.
  14556. dlopen_support=$enable_dlopen
  14557. # Whether dlopen of programs is supported.
  14558. dlopen_self=$enable_dlopen_self
  14559. # Whether dlopen of statically linked programs is supported.
  14560. dlopen_self_static=$enable_dlopen_self_static
  14561. # Compiler flag to prevent dynamic linking.
  14562. link_static_flag=$lt_lt_prog_compiler_static_F77
  14563. # Compiler flag to turn off builtin functions.
  14564. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14565. # Compiler flag to allow reflexive dlopens.
  14566. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14567. # Compiler flag to generate shared objects directly from archives.
  14568. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14569. # Compiler flag to generate thread-safe objects.
  14570. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14571. # Library versioning type.
  14572. version_type=$version_type
  14573. # Format of library name prefix.
  14574. libname_spec=$lt_libname_spec
  14575. # List of archive names. First name is the real one, the rest are links.
  14576. # The last name is the one that the linker finds with -lNAME.
  14577. library_names_spec=$lt_library_names_spec
  14578. # The coded name of the library, if different from the real name.
  14579. soname_spec=$lt_soname_spec
  14580. # Commands used to build and install an old-style archive.
  14581. RANLIB=$lt_RANLIB
  14582. old_archive_cmds=$lt_old_archive_cmds_F77
  14583. old_postinstall_cmds=$lt_old_postinstall_cmds
  14584. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14585. # Create an old-style archive from a shared archive.
  14586. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14587. # Create a temporary old-style archive to link instead of a shared archive.
  14588. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14589. # Commands used to build and install a shared archive.
  14590. archive_cmds=$lt_archive_cmds_F77
  14591. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14592. postinstall_cmds=$lt_postinstall_cmds
  14593. postuninstall_cmds=$lt_postuninstall_cmds
  14594. # Commands used to build a loadable module (assumed same as above if empty)
  14595. module_cmds=$lt_module_cmds_F77
  14596. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14597. # Commands to strip libraries.
  14598. old_striplib=$lt_old_striplib
  14599. striplib=$lt_striplib
  14600. # Dependencies to place before the objects being linked to create a
  14601. # shared library.
  14602. predep_objects=$lt_predep_objects_F77
  14603. # Dependencies to place after the objects being linked to create a
  14604. # shared library.
  14605. postdep_objects=$lt_postdep_objects_F77
  14606. # Dependencies to place before the objects being linked to create a
  14607. # shared library.
  14608. predeps=$lt_predeps_F77
  14609. # Dependencies to place after the objects being linked to create a
  14610. # shared library.
  14611. postdeps=$lt_postdeps_F77
  14612. # The library search path used internally by the compiler when linking
  14613. # a shared library.
  14614. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14615. # Method to check whether dependent libraries are shared objects.
  14616. deplibs_check_method=$lt_deplibs_check_method
  14617. # Command to use when deplibs_check_method == file_magic.
  14618. file_magic_cmd=$lt_file_magic_cmd
  14619. # Flag that allows shared libraries with undefined symbols to be built.
  14620. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14621. # Flag that forces no undefined symbols.
  14622. no_undefined_flag=$lt_no_undefined_flag_F77
  14623. # Commands used to finish a libtool library installation in a directory.
  14624. finish_cmds=$lt_finish_cmds
  14625. # Same as above, but a single script fragment to be evaled but not shown.
  14626. finish_eval=$lt_finish_eval
  14627. # Take the output of nm and produce a listing of raw symbols and C names.
  14628. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14629. # Transform the output of nm in a proper C declaration
  14630. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14631. # Transform the output of nm in a C name address pair
  14632. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14633. # This is the shared library runtime path variable.
  14634. runpath_var=$runpath_var
  14635. # This is the shared library path variable.
  14636. shlibpath_var=$shlibpath_var
  14637. # Is shlibpath searched before the hard-coded library search path?
  14638. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14639. # How to hardcode a shared library path into an executable.
  14640. hardcode_action=$hardcode_action_F77
  14641. # Whether we should hardcode library paths into libraries.
  14642. hardcode_into_libs=$hardcode_into_libs
  14643. # Flag to hardcode \$libdir into a binary during linking.
  14644. # This must work even if \$libdir does not exist.
  14645. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14646. # If ld is used when linking, flag to hardcode \$libdir into
  14647. # a binary during linking. This must work even if \$libdir does
  14648. # not exist.
  14649. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14650. # Whether we need a single -rpath flag with a separated argument.
  14651. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14652. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14653. # resulting binary.
  14654. hardcode_direct=$hardcode_direct_F77
  14655. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14656. # resulting binary.
  14657. hardcode_minus_L=$hardcode_minus_L_F77
  14658. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14659. # the resulting binary.
  14660. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14661. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14662. # and all subsequent libraries and executables linked against it.
  14663. hardcode_automatic=$hardcode_automatic_F77
  14664. # Variables whose values should be saved in libtool wrapper scripts and
  14665. # restored at relink time.
  14666. variables_saved_for_relink="$variables_saved_for_relink"
  14667. # Whether libtool must link a program against all its dependency libraries.
  14668. link_all_deplibs=$link_all_deplibs_F77
  14669. # Compile-time system search path for libraries
  14670. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14671. # Run-time system search path for libraries
  14672. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14673. # Fix the shell variable \$srcfile for the compiler.
  14674. fix_srcfile_path=$lt_fix_srcfile_path
  14675. # Set to yes if exported symbols are required.
  14676. always_export_symbols=$always_export_symbols_F77
  14677. # The commands to list exported symbols.
  14678. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14679. # The commands to extract the exported symbol list from a shared archive.
  14680. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14681. # Symbols that should not be listed in the preloaded symbols.
  14682. exclude_expsyms=$lt_exclude_expsyms_F77
  14683. # Symbols that must always be exported.
  14684. include_expsyms=$lt_include_expsyms_F77
  14685. # ### END LIBTOOL TAG CONFIG: $tagname
  14686. __EOF__
  14687. else
  14688. # If there is no Makefile yet, we rely on a make rule to execute
  14689. # `config.status --recheck' to rerun these tests and create the
  14690. # libtool script then.
  14691. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14692. if test -f "$ltmain_in"; then
  14693. test -f Makefile && make "$ltmain"
  14694. fi
  14695. fi
  14696. ac_ext=c
  14697. ac_cpp='$CPP $CPPFLAGS'
  14698. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14699. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14700. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14701. CC="$lt_save_CC"
  14702. else
  14703. tagname=""
  14704. fi
  14705. ;;
  14706. GCJ)
  14707. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14708. # Source file extension for Java test sources.
  14709. ac_ext=java
  14710. # Object file extension for compiled Java test sources.
  14711. objext=o
  14712. objext_GCJ=$objext
  14713. # Code to be used in simple compile tests
  14714. lt_simple_compile_test_code="class foo {}"
  14715. # Code to be used in simple link tests
  14716. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14717. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14718. # If no C compiler was specified, use CC.
  14719. LTCC=${LTCC-"$CC"}
  14720. # If no C compiler flags were specified, use CFLAGS.
  14721. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14722. # Allow CC to be a program name with arguments.
  14723. compiler=$CC
  14724. # save warnings/boilerplate of simple test code
  14725. ac_outfile=conftest.$ac_objext
  14726. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14727. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14728. _lt_compiler_boilerplate=`cat conftest.err`
  14729. $rm conftest*
  14730. ac_outfile=conftest.$ac_objext
  14731. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14732. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14733. _lt_linker_boilerplate=`cat conftest.err`
  14734. $rm conftest*
  14735. # Allow CC to be a program name with arguments.
  14736. lt_save_CC="$CC"
  14737. CC=${GCJ-"gcj"}
  14738. compiler=$CC
  14739. compiler_GCJ=$CC
  14740. for cc_temp in $compiler""; do
  14741. case $cc_temp in
  14742. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14743. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14744. \-*) ;;
  14745. *) break;;
  14746. esac
  14747. done
  14748. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14749. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14750. archive_cmds_need_lc_GCJ=no
  14751. old_archive_cmds_GCJ=$old_archive_cmds
  14752. lt_prog_compiler_no_builtin_flag_GCJ=
  14753. if test "$GCC" = yes; then
  14754. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14755. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14756. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14757. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14758. echo $ECHO_N "(cached) $ECHO_C" >&6
  14759. else
  14760. lt_cv_prog_compiler_rtti_exceptions=no
  14761. ac_outfile=conftest.$ac_objext
  14762. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14763. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14764. # Insert the option either (1) after the last *FLAGS variable, or
  14765. # (2) before a word containing "conftest.", or (3) at the end.
  14766. # Note that $ac_compile itself does not contain backslashes and begins
  14767. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14768. # The option is referenced via a variable to avoid confusing sed.
  14769. lt_compile=`echo "$ac_compile" | $SED \
  14770. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14771. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14772. -e 's:$: $lt_compiler_flag:'`
  14773. (eval echo "\"\$as_me:16547: $lt_compile\"" >&5)
  14774. (eval "$lt_compile" 2>conftest.err)
  14775. ac_status=$?
  14776. cat conftest.err >&5
  14777. echo "$as_me:16551: \$? = $ac_status" >&5
  14778. if (exit $ac_status) && test -s "$ac_outfile"; then
  14779. # The compiler can only warn and ignore the option if not recognized
  14780. # So say no if there are warnings other than the usual output.
  14781. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14782. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14783. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14784. lt_cv_prog_compiler_rtti_exceptions=yes
  14785. fi
  14786. fi
  14787. $rm conftest*
  14788. fi
  14789. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14790. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14791. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14792. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14793. else
  14794. :
  14795. fi
  14796. fi
  14797. lt_prog_compiler_wl_GCJ=
  14798. lt_prog_compiler_pic_GCJ=
  14799. lt_prog_compiler_static_GCJ=
  14800. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14801. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14802. if test "$GCC" = yes; then
  14803. lt_prog_compiler_wl_GCJ='-Wl,'
  14804. lt_prog_compiler_static_GCJ='-static'
  14805. case $host_os in
  14806. aix*)
  14807. # All AIX code is PIC.
  14808. if test "$host_cpu" = ia64; then
  14809. # AIX 5 now supports IA64 processor
  14810. lt_prog_compiler_static_GCJ='-Bstatic'
  14811. fi
  14812. ;;
  14813. amigaos*)
  14814. # FIXME: we need at least 68020 code to build shared libraries, but
  14815. # adding the `-m68020' flag to GCC prevents building anything better,
  14816. # like `-m68040'.
  14817. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14818. ;;
  14819. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14820. # PIC is the default for these OSes.
  14821. ;;
  14822. mingw* | cygwin* | pw32* | os2*)
  14823. # This hack is so that the source file can tell whether it is being
  14824. # built for inclusion in a dll (and should export symbols for example).
  14825. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14826. # (--disable-auto-import) libraries
  14827. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14828. ;;
  14829. darwin* | rhapsody*)
  14830. # PIC is the default on this platform
  14831. # Common symbols not allowed in MH_DYLIB files
  14832. lt_prog_compiler_pic_GCJ='-fno-common'
  14833. ;;
  14834. interix[3-9]*)
  14835. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14836. # Instead, we relocate shared libraries at runtime.
  14837. ;;
  14838. msdosdjgpp*)
  14839. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14840. # on systems that don't support them.
  14841. lt_prog_compiler_can_build_shared_GCJ=no
  14842. enable_shared=no
  14843. ;;
  14844. sysv4*MP*)
  14845. if test -d /usr/nec; then
  14846. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14847. fi
  14848. ;;
  14849. hpux*)
  14850. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14851. # not for PA HP-UX.
  14852. case $host_cpu in
  14853. hppa*64*|ia64*)
  14854. # +Z the default
  14855. ;;
  14856. *)
  14857. lt_prog_compiler_pic_GCJ='-fPIC'
  14858. ;;
  14859. esac
  14860. ;;
  14861. *)
  14862. lt_prog_compiler_pic_GCJ='-fPIC'
  14863. ;;
  14864. esac
  14865. else
  14866. # PORTME Check for flag to pass linker flags through the system compiler.
  14867. case $host_os in
  14868. aix*)
  14869. lt_prog_compiler_wl_GCJ='-Wl,'
  14870. if test "$host_cpu" = ia64; then
  14871. # AIX 5 now supports IA64 processor
  14872. lt_prog_compiler_static_GCJ='-Bstatic'
  14873. else
  14874. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14875. fi
  14876. ;;
  14877. darwin*)
  14878. # PIC is the default on this platform
  14879. # Common symbols not allowed in MH_DYLIB files
  14880. case $cc_basename in
  14881. xlc*)
  14882. lt_prog_compiler_pic_GCJ='-qnocommon'
  14883. lt_prog_compiler_wl_GCJ='-Wl,'
  14884. ;;
  14885. esac
  14886. ;;
  14887. mingw* | cygwin* | pw32* | os2*)
  14888. # This hack is so that the source file can tell whether it is being
  14889. # built for inclusion in a dll (and should export symbols for example).
  14890. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14891. ;;
  14892. hpux9* | hpux10* | hpux11*)
  14893. lt_prog_compiler_wl_GCJ='-Wl,'
  14894. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14895. # not for PA HP-UX.
  14896. case $host_cpu in
  14897. hppa*64*|ia64*)
  14898. # +Z the default
  14899. ;;
  14900. *)
  14901. lt_prog_compiler_pic_GCJ='+Z'
  14902. ;;
  14903. esac
  14904. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14905. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14906. ;;
  14907. irix5* | irix6* | nonstopux*)
  14908. lt_prog_compiler_wl_GCJ='-Wl,'
  14909. # PIC (with -KPIC) is the default.
  14910. lt_prog_compiler_static_GCJ='-non_shared'
  14911. ;;
  14912. newsos6)
  14913. lt_prog_compiler_pic_GCJ='-KPIC'
  14914. lt_prog_compiler_static_GCJ='-Bstatic'
  14915. ;;
  14916. linux* | k*bsd*-gnu)
  14917. case $cc_basename in
  14918. icc* | ecc*)
  14919. lt_prog_compiler_wl_GCJ='-Wl,'
  14920. lt_prog_compiler_pic_GCJ='-KPIC'
  14921. lt_prog_compiler_static_GCJ='-static'
  14922. ;;
  14923. pgcc* | pgf77* | pgf90* | pgf95*)
  14924. # Portland Group compilers (*not* the Pentium gcc compiler,
  14925. # which looks to be a dead project)
  14926. lt_prog_compiler_wl_GCJ='-Wl,'
  14927. lt_prog_compiler_pic_GCJ='-fpic'
  14928. lt_prog_compiler_static_GCJ='-Bstatic'
  14929. ;;
  14930. ccc*)
  14931. lt_prog_compiler_wl_GCJ='-Wl,'
  14932. # All Alpha code is PIC.
  14933. lt_prog_compiler_static_GCJ='-non_shared'
  14934. ;;
  14935. *)
  14936. case `$CC -V 2>&1 | sed 5q` in
  14937. *Sun\ C*)
  14938. # Sun C 5.9
  14939. lt_prog_compiler_pic_GCJ='-KPIC'
  14940. lt_prog_compiler_static_GCJ='-Bstatic'
  14941. lt_prog_compiler_wl_GCJ='-Wl,'
  14942. ;;
  14943. *Sun\ F*)
  14944. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14945. lt_prog_compiler_pic_GCJ='-KPIC'
  14946. lt_prog_compiler_static_GCJ='-Bstatic'
  14947. lt_prog_compiler_wl_GCJ=''
  14948. ;;
  14949. esac
  14950. ;;
  14951. esac
  14952. ;;
  14953. osf3* | osf4* | osf5*)
  14954. lt_prog_compiler_wl_GCJ='-Wl,'
  14955. # All OSF/1 code is PIC.
  14956. lt_prog_compiler_static_GCJ='-non_shared'
  14957. ;;
  14958. rdos*)
  14959. lt_prog_compiler_static_GCJ='-non_shared'
  14960. ;;
  14961. solaris*)
  14962. lt_prog_compiler_pic_GCJ='-KPIC'
  14963. lt_prog_compiler_static_GCJ='-Bstatic'
  14964. case $cc_basename in
  14965. f77* | f90* | f95*)
  14966. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14967. *)
  14968. lt_prog_compiler_wl_GCJ='-Wl,';;
  14969. esac
  14970. ;;
  14971. sunos4*)
  14972. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14973. lt_prog_compiler_pic_GCJ='-PIC'
  14974. lt_prog_compiler_static_GCJ='-Bstatic'
  14975. ;;
  14976. sysv4 | sysv4.2uw2* | sysv4.3*)
  14977. lt_prog_compiler_wl_GCJ='-Wl,'
  14978. lt_prog_compiler_pic_GCJ='-KPIC'
  14979. lt_prog_compiler_static_GCJ='-Bstatic'
  14980. ;;
  14981. sysv4*MP*)
  14982. if test -d /usr/nec ;then
  14983. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14984. lt_prog_compiler_static_GCJ='-Bstatic'
  14985. fi
  14986. ;;
  14987. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14988. lt_prog_compiler_wl_GCJ='-Wl,'
  14989. lt_prog_compiler_pic_GCJ='-KPIC'
  14990. lt_prog_compiler_static_GCJ='-Bstatic'
  14991. ;;
  14992. unicos*)
  14993. lt_prog_compiler_wl_GCJ='-Wl,'
  14994. lt_prog_compiler_can_build_shared_GCJ=no
  14995. ;;
  14996. uts4*)
  14997. lt_prog_compiler_pic_GCJ='-pic'
  14998. lt_prog_compiler_static_GCJ='-Bstatic'
  14999. ;;
  15000. *)
  15001. lt_prog_compiler_can_build_shared_GCJ=no
  15002. ;;
  15003. esac
  15004. fi
  15005. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15006. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15007. #
  15008. # Check to make sure the PIC flag actually works.
  15009. #
  15010. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15011. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15012. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15013. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15014. echo $ECHO_N "(cached) $ECHO_C" >&6
  15015. else
  15016. lt_prog_compiler_pic_works_GCJ=no
  15017. ac_outfile=conftest.$ac_objext
  15018. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15019. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15020. # Insert the option either (1) after the last *FLAGS variable, or
  15021. # (2) before a word containing "conftest.", or (3) at the end.
  15022. # Note that $ac_compile itself does not contain backslashes and begins
  15023. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15024. # The option is referenced via a variable to avoid confusing sed.
  15025. lt_compile=`echo "$ac_compile" | $SED \
  15026. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15027. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15028. -e 's:$: $lt_compiler_flag:'`
  15029. (eval echo "\"\$as_me:16837: $lt_compile\"" >&5)
  15030. (eval "$lt_compile" 2>conftest.err)
  15031. ac_status=$?
  15032. cat conftest.err >&5
  15033. echo "$as_me:16841: \$? = $ac_status" >&5
  15034. if (exit $ac_status) && test -s "$ac_outfile"; then
  15035. # The compiler can only warn and ignore the option if not recognized
  15036. # So say no if there are warnings other than the usual output.
  15037. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15038. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15039. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15040. lt_prog_compiler_pic_works_GCJ=yes
  15041. fi
  15042. fi
  15043. $rm conftest*
  15044. fi
  15045. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15046. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15047. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15048. case $lt_prog_compiler_pic_GCJ in
  15049. "" | " "*) ;;
  15050. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15051. esac
  15052. else
  15053. lt_prog_compiler_pic_GCJ=
  15054. lt_prog_compiler_can_build_shared_GCJ=no
  15055. fi
  15056. fi
  15057. case $host_os in
  15058. # For platforms which do not support PIC, -DPIC is meaningless:
  15059. *djgpp*)
  15060. lt_prog_compiler_pic_GCJ=
  15061. ;;
  15062. *)
  15063. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15064. ;;
  15065. esac
  15066. #
  15067. # Check to make sure the static flag actually works.
  15068. #
  15069. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15070. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15071. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15072. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15073. echo $ECHO_N "(cached) $ECHO_C" >&6
  15074. else
  15075. lt_prog_compiler_static_works_GCJ=no
  15076. save_LDFLAGS="$LDFLAGS"
  15077. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15078. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15079. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15080. # The linker can only warn and ignore the option if not recognized
  15081. # So say no if there are warnings
  15082. if test -s conftest.err; then
  15083. # Append any errors to the config.log.
  15084. cat conftest.err 1>&5
  15085. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15086. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15087. if diff conftest.exp conftest.er2 >/dev/null; then
  15088. lt_prog_compiler_static_works_GCJ=yes
  15089. fi
  15090. else
  15091. lt_prog_compiler_static_works_GCJ=yes
  15092. fi
  15093. fi
  15094. $rm conftest*
  15095. LDFLAGS="$save_LDFLAGS"
  15096. fi
  15097. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15098. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15099. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15100. :
  15101. else
  15102. lt_prog_compiler_static_GCJ=
  15103. fi
  15104. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15105. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15106. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15107. echo $ECHO_N "(cached) $ECHO_C" >&6
  15108. else
  15109. lt_cv_prog_compiler_c_o_GCJ=no
  15110. $rm -r conftest 2>/dev/null
  15111. mkdir conftest
  15112. cd conftest
  15113. mkdir out
  15114. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15115. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15116. # Insert the option either (1) after the last *FLAGS variable, or
  15117. # (2) before a word containing "conftest.", or (3) at the end.
  15118. # Note that $ac_compile itself does not contain backslashes and begins
  15119. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15120. lt_compile=`echo "$ac_compile" | $SED \
  15121. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15122. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15123. -e 's:$: $lt_compiler_flag:'`
  15124. (eval echo "\"\$as_me:16941: $lt_compile\"" >&5)
  15125. (eval "$lt_compile" 2>out/conftest.err)
  15126. ac_status=$?
  15127. cat out/conftest.err >&5
  15128. echo "$as_me:16945: \$? = $ac_status" >&5
  15129. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15130. then
  15131. # The compiler can only warn and ignore the option if not recognized
  15132. # So say no if there are warnings
  15133. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15134. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15135. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15136. lt_cv_prog_compiler_c_o_GCJ=yes
  15137. fi
  15138. fi
  15139. chmod u+w . 2>&5
  15140. $rm conftest*
  15141. # SGI C++ compiler will create directory out/ii_files/ for
  15142. # template instantiation
  15143. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15144. $rm out/* && rmdir out
  15145. cd ..
  15146. rmdir conftest
  15147. $rm conftest*
  15148. fi
  15149. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15150. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15151. hard_links="nottested"
  15152. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15153. # do not overwrite the value of need_locks provided by the user
  15154. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15155. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15156. hard_links=yes
  15157. $rm conftest*
  15158. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15159. touch conftest.a
  15160. ln conftest.a conftest.b 2>&5 || hard_links=no
  15161. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15162. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15163. echo "${ECHO_T}$hard_links" >&6; }
  15164. if test "$hard_links" = no; then
  15165. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15166. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15167. need_locks=warn
  15168. fi
  15169. else
  15170. need_locks=no
  15171. fi
  15172. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15173. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15174. runpath_var=
  15175. allow_undefined_flag_GCJ=
  15176. enable_shared_with_static_runtimes_GCJ=no
  15177. archive_cmds_GCJ=
  15178. archive_expsym_cmds_GCJ=
  15179. old_archive_From_new_cmds_GCJ=
  15180. old_archive_from_expsyms_cmds_GCJ=
  15181. export_dynamic_flag_spec_GCJ=
  15182. whole_archive_flag_spec_GCJ=
  15183. thread_safe_flag_spec_GCJ=
  15184. hardcode_libdir_flag_spec_GCJ=
  15185. hardcode_libdir_flag_spec_ld_GCJ=
  15186. hardcode_libdir_separator_GCJ=
  15187. hardcode_direct_GCJ=no
  15188. hardcode_minus_L_GCJ=no
  15189. hardcode_shlibpath_var_GCJ=unsupported
  15190. link_all_deplibs_GCJ=unknown
  15191. hardcode_automatic_GCJ=no
  15192. module_cmds_GCJ=
  15193. module_expsym_cmds_GCJ=
  15194. always_export_symbols_GCJ=no
  15195. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15196. # include_expsyms should be a list of space-separated symbols to be *always*
  15197. # included in the symbol list
  15198. include_expsyms_GCJ=
  15199. # exclude_expsyms can be an extended regexp of symbols to exclude
  15200. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15201. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15202. # as well as any symbol that contains `d'.
  15203. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15204. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15205. # platforms (ab)use it in PIC code, but their linkers get confused if
  15206. # the symbol is explicitly referenced. Since portable code cannot
  15207. # rely on this symbol name, it's probably fine to never include it in
  15208. # preloaded symbol tables.
  15209. extract_expsyms_cmds=
  15210. # Just being paranoid about ensuring that cc_basename is set.
  15211. for cc_temp in $compiler""; do
  15212. case $cc_temp in
  15213. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15214. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15215. \-*) ;;
  15216. *) break;;
  15217. esac
  15218. done
  15219. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15220. case $host_os in
  15221. cygwin* | mingw* | pw32*)
  15222. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15223. # When not using gcc, we currently assume that we are using
  15224. # Microsoft Visual C++.
  15225. if test "$GCC" != yes; then
  15226. with_gnu_ld=no
  15227. fi
  15228. ;;
  15229. interix*)
  15230. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15231. with_gnu_ld=yes
  15232. ;;
  15233. openbsd*)
  15234. with_gnu_ld=no
  15235. ;;
  15236. esac
  15237. ld_shlibs_GCJ=yes
  15238. if test "$with_gnu_ld" = yes; then
  15239. # If archive_cmds runs LD, not CC, wlarc should be empty
  15240. wlarc='${wl}'
  15241. # Set some defaults for GNU ld with shared library support. These
  15242. # are reset later if shared libraries are not supported. Putting them
  15243. # here allows them to be overridden if necessary.
  15244. runpath_var=LD_RUN_PATH
  15245. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15246. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15247. # ancient GNU ld didn't support --whole-archive et. al.
  15248. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15249. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15250. else
  15251. whole_archive_flag_spec_GCJ=
  15252. fi
  15253. supports_anon_versioning=no
  15254. case `$LD -v 2>/dev/null` in
  15255. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15256. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15257. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15258. *\ 2.11.*) ;; # other 2.11 versions
  15259. *) supports_anon_versioning=yes ;;
  15260. esac
  15261. # See if GNU ld supports shared libraries.
  15262. case $host_os in
  15263. aix3* | aix4* | aix5*)
  15264. # On AIX/PPC, the GNU linker is very broken
  15265. if test "$host_cpu" != ia64; then
  15266. ld_shlibs_GCJ=no
  15267. cat <<EOF 1>&2
  15268. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15269. *** to be unable to reliably create shared libraries on AIX.
  15270. *** Therefore, libtool is disabling shared libraries support. If you
  15271. *** really care for shared libraries, you may want to modify your PATH
  15272. *** so that a non-GNU linker is found, and then restart.
  15273. EOF
  15274. fi
  15275. ;;
  15276. amigaos*)
  15277. archive_cmds_GCJ='$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)'
  15278. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15279. hardcode_minus_L_GCJ=yes
  15280. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15281. # that the semantics of dynamic libraries on AmigaOS, at least up
  15282. # to version 4, is to share data among multiple programs linked
  15283. # with the same dynamic library. Since this doesn't match the
  15284. # behavior of shared libraries on other platforms, we can't use
  15285. # them.
  15286. ld_shlibs_GCJ=no
  15287. ;;
  15288. beos*)
  15289. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15290. allow_undefined_flag_GCJ=unsupported
  15291. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15292. # support --undefined. This deserves some investigation. FIXME
  15293. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15294. else
  15295. ld_shlibs_GCJ=no
  15296. fi
  15297. ;;
  15298. cygwin* | mingw* | pw32*)
  15299. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15300. # as there is no search path for DLLs.
  15301. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15302. allow_undefined_flag_GCJ=unsupported
  15303. always_export_symbols_GCJ=no
  15304. enable_shared_with_static_runtimes_GCJ=yes
  15305. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15306. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15307. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15308. # If the export-symbols file already is a .def file (1st line
  15309. # is EXPORTS), use it as is; otherwise, prepend...
  15310. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15311. cp $export_symbols $output_objdir/$soname.def;
  15312. else
  15313. echo EXPORTS > $output_objdir/$soname.def;
  15314. cat $export_symbols >> $output_objdir/$soname.def;
  15315. fi~
  15316. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15317. else
  15318. ld_shlibs_GCJ=no
  15319. fi
  15320. ;;
  15321. interix[3-9]*)
  15322. hardcode_direct_GCJ=no
  15323. hardcode_shlibpath_var_GCJ=no
  15324. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15325. export_dynamic_flag_spec_GCJ='${wl}-E'
  15326. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15327. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15328. # default) and relocated if they conflict, which is a slow very memory
  15329. # consuming and fragmenting process. To avoid this, we pick a random,
  15330. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15331. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15332. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15333. archive_expsym_cmds_GCJ='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'
  15334. ;;
  15335. gnu* | linux* | k*bsd*-gnu)
  15336. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15337. tmp_addflag=
  15338. case $cc_basename,$host_cpu in
  15339. pgcc*) # Portland Group C compiler
  15340. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15341. tmp_addflag=' $pic_flag'
  15342. ;;
  15343. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15344. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15345. tmp_addflag=' $pic_flag -Mnomain' ;;
  15346. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15347. tmp_addflag=' -i_dynamic' ;;
  15348. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15349. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15350. ifc* | ifort*) # Intel Fortran compiler
  15351. tmp_addflag=' -nofor_main' ;;
  15352. esac
  15353. case `$CC -V 2>&1 | sed 5q` in
  15354. *Sun\ C*) # Sun C 5.9
  15355. whole_archive_flag_spec_GCJ='${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'
  15356. tmp_sharedflag='-G' ;;
  15357. *Sun\ F*) # Sun Fortran 8.3
  15358. tmp_sharedflag='-G' ;;
  15359. *)
  15360. tmp_sharedflag='-shared' ;;
  15361. esac
  15362. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15363. if test $supports_anon_versioning = yes; then
  15364. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15365. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15366. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15367. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15368. fi
  15369. else
  15370. ld_shlibs_GCJ=no
  15371. fi
  15372. ;;
  15373. netbsd*)
  15374. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15375. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15376. wlarc=
  15377. else
  15378. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15379. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15380. fi
  15381. ;;
  15382. solaris*)
  15383. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15384. ld_shlibs_GCJ=no
  15385. cat <<EOF 1>&2
  15386. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15387. *** create shared libraries on Solaris systems. Therefore, libtool
  15388. *** is disabling shared libraries support. We urge you to upgrade GNU
  15389. *** binutils to release 2.9.1 or newer. Another option is to modify
  15390. *** your PATH or compiler configuration so that the native linker is
  15391. *** used, and then restart.
  15392. EOF
  15393. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15394. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15395. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15396. else
  15397. ld_shlibs_GCJ=no
  15398. fi
  15399. ;;
  15400. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15401. case `$LD -v 2>&1` in
  15402. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15403. ld_shlibs_GCJ=no
  15404. cat <<_LT_EOF 1>&2
  15405. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15406. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15407. *** is disabling shared libraries support. We urge you to upgrade GNU
  15408. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15409. *** your PATH or compiler configuration so that the native linker is
  15410. *** used, and then restart.
  15411. _LT_EOF
  15412. ;;
  15413. *)
  15414. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15415. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15416. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15417. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15418. else
  15419. ld_shlibs_GCJ=no
  15420. fi
  15421. ;;
  15422. esac
  15423. ;;
  15424. sunos4*)
  15425. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15426. wlarc=
  15427. hardcode_direct_GCJ=yes
  15428. hardcode_shlibpath_var_GCJ=no
  15429. ;;
  15430. *)
  15431. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15432. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15433. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15434. else
  15435. ld_shlibs_GCJ=no
  15436. fi
  15437. ;;
  15438. esac
  15439. if test "$ld_shlibs_GCJ" = no; then
  15440. runpath_var=
  15441. hardcode_libdir_flag_spec_GCJ=
  15442. export_dynamic_flag_spec_GCJ=
  15443. whole_archive_flag_spec_GCJ=
  15444. fi
  15445. else
  15446. # PORTME fill in a description of your system's linker (not GNU ld)
  15447. case $host_os in
  15448. aix3*)
  15449. allow_undefined_flag_GCJ=unsupported
  15450. always_export_symbols_GCJ=yes
  15451. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15452. # Note: this linker hardcodes the directories in LIBPATH if there
  15453. # are no directories specified by -L.
  15454. hardcode_minus_L_GCJ=yes
  15455. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15456. # Neither direct hardcoding nor static linking is supported with a
  15457. # broken collect2.
  15458. hardcode_direct_GCJ=unsupported
  15459. fi
  15460. ;;
  15461. aix4* | aix5*)
  15462. if test "$host_cpu" = ia64; then
  15463. # On IA64, the linker does run time linking by default, so we don't
  15464. # have to do anything special.
  15465. aix_use_runtimelinking=no
  15466. exp_sym_flag='-Bexport'
  15467. no_entry_flag=""
  15468. else
  15469. # If we're using GNU nm, then we don't want the "-C" option.
  15470. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15471. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15472. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15473. else
  15474. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15475. fi
  15476. aix_use_runtimelinking=no
  15477. # Test if we are trying to use run time linking or normal
  15478. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15479. # need to do runtime linking.
  15480. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15481. for ld_flag in $LDFLAGS; do
  15482. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15483. aix_use_runtimelinking=yes
  15484. break
  15485. fi
  15486. done
  15487. ;;
  15488. esac
  15489. exp_sym_flag='-bexport'
  15490. no_entry_flag='-bnoentry'
  15491. fi
  15492. # When large executables or shared objects are built, AIX ld can
  15493. # have problems creating the table of contents. If linking a library
  15494. # or program results in "error TOC overflow" add -mminimal-toc to
  15495. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15496. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15497. archive_cmds_GCJ=''
  15498. hardcode_direct_GCJ=yes
  15499. hardcode_libdir_separator_GCJ=':'
  15500. link_all_deplibs_GCJ=yes
  15501. if test "$GCC" = yes; then
  15502. case $host_os in aix4.[012]|aix4.[012].*)
  15503. # We only want to do this on AIX 4.2 and lower, the check
  15504. # below for broken collect2 doesn't work under 4.3+
  15505. collect2name=`${CC} -print-prog-name=collect2`
  15506. if test -f "$collect2name" && \
  15507. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15508. then
  15509. # We have reworked collect2
  15510. :
  15511. else
  15512. # We have old collect2
  15513. hardcode_direct_GCJ=unsupported
  15514. # It fails to find uninstalled libraries when the uninstalled
  15515. # path is not listed in the libpath. Setting hardcode_minus_L
  15516. # to unsupported forces relinking
  15517. hardcode_minus_L_GCJ=yes
  15518. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15519. hardcode_libdir_separator_GCJ=
  15520. fi
  15521. ;;
  15522. esac
  15523. shared_flag='-shared'
  15524. if test "$aix_use_runtimelinking" = yes; then
  15525. shared_flag="$shared_flag "'${wl}-G'
  15526. fi
  15527. else
  15528. # not using gcc
  15529. if test "$host_cpu" = ia64; then
  15530. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15531. # chokes on -Wl,-G. The following line is correct:
  15532. shared_flag='-G'
  15533. else
  15534. if test "$aix_use_runtimelinking" = yes; then
  15535. shared_flag='${wl}-G'
  15536. else
  15537. shared_flag='${wl}-bM:SRE'
  15538. fi
  15539. fi
  15540. fi
  15541. # It seems that -bexpall does not export symbols beginning with
  15542. # underscore (_), so it is better to generate a list of symbols to export.
  15543. always_export_symbols_GCJ=yes
  15544. if test "$aix_use_runtimelinking" = yes; then
  15545. # Warning - without using the other runtime loading flags (-brtl),
  15546. # -berok will link without error, but may produce a broken library.
  15547. allow_undefined_flag_GCJ='-berok'
  15548. # Determine the default libpath from the value encoded in an empty executable.
  15549. cat >conftest.$ac_ext <<_ACEOF
  15550. /* confdefs.h. */
  15551. _ACEOF
  15552. cat confdefs.h >>conftest.$ac_ext
  15553. cat >>conftest.$ac_ext <<_ACEOF
  15554. /* end confdefs.h. */
  15555. int
  15556. main ()
  15557. {
  15558. ;
  15559. return 0;
  15560. }
  15561. _ACEOF
  15562. rm -f conftest.$ac_objext conftest$ac_exeext
  15563. if { (ac_try="$ac_link"
  15564. case "(($ac_try" in
  15565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15566. *) ac_try_echo=$ac_try;;
  15567. esac
  15568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15569. (eval "$ac_link") 2>conftest.er1
  15570. ac_status=$?
  15571. grep -v '^ *+' conftest.er1 >conftest.err
  15572. rm -f conftest.er1
  15573. cat conftest.err >&5
  15574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15575. (exit $ac_status); } && {
  15576. test -z "$ac_c_werror_flag" ||
  15577. test ! -s conftest.err
  15578. } && test -s conftest$ac_exeext &&
  15579. $as_test_x conftest$ac_exeext; then
  15580. lt_aix_libpath_sed='
  15581. /Import File Strings/,/^$/ {
  15582. /^0/ {
  15583. s/^0 *\(.*\)$/\1/
  15584. p
  15585. }
  15586. }'
  15587. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15588. # Check for a 64-bit object if we didn't find anything.
  15589. if test -z "$aix_libpath"; then
  15590. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15591. fi
  15592. else
  15593. echo "$as_me: failed program was:" >&5
  15594. sed 's/^/| /' conftest.$ac_ext >&5
  15595. fi
  15596. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15597. conftest$ac_exeext conftest.$ac_ext
  15598. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15599. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15600. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15601. else
  15602. if test "$host_cpu" = ia64; then
  15603. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15604. allow_undefined_flag_GCJ="-z nodefs"
  15605. archive_expsym_cmds_GCJ="\$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"
  15606. else
  15607. # Determine the default libpath from the value encoded in an empty executable.
  15608. cat >conftest.$ac_ext <<_ACEOF
  15609. /* confdefs.h. */
  15610. _ACEOF
  15611. cat confdefs.h >>conftest.$ac_ext
  15612. cat >>conftest.$ac_ext <<_ACEOF
  15613. /* end confdefs.h. */
  15614. int
  15615. main ()
  15616. {
  15617. ;
  15618. return 0;
  15619. }
  15620. _ACEOF
  15621. rm -f conftest.$ac_objext conftest$ac_exeext
  15622. if { (ac_try="$ac_link"
  15623. case "(($ac_try" in
  15624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15625. *) ac_try_echo=$ac_try;;
  15626. esac
  15627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15628. (eval "$ac_link") 2>conftest.er1
  15629. ac_status=$?
  15630. grep -v '^ *+' conftest.er1 >conftest.err
  15631. rm -f conftest.er1
  15632. cat conftest.err >&5
  15633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15634. (exit $ac_status); } && {
  15635. test -z "$ac_c_werror_flag" ||
  15636. test ! -s conftest.err
  15637. } && test -s conftest$ac_exeext &&
  15638. $as_test_x conftest$ac_exeext; then
  15639. lt_aix_libpath_sed='
  15640. /Import File Strings/,/^$/ {
  15641. /^0/ {
  15642. s/^0 *\(.*\)$/\1/
  15643. p
  15644. }
  15645. }'
  15646. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15647. # Check for a 64-bit object if we didn't find anything.
  15648. if test -z "$aix_libpath"; then
  15649. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15650. fi
  15651. else
  15652. echo "$as_me: failed program was:" >&5
  15653. sed 's/^/| /' conftest.$ac_ext >&5
  15654. fi
  15655. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15656. conftest$ac_exeext conftest.$ac_ext
  15657. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15658. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15659. # Warning - without using the other run time loading flags,
  15660. # -berok will link without error, but may produce a broken library.
  15661. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15662. allow_undefined_flag_GCJ=' ${wl}-berok'
  15663. # Exported symbols can be pulled into shared objects from archives
  15664. whole_archive_flag_spec_GCJ='$convenience'
  15665. archive_cmds_need_lc_GCJ=yes
  15666. # This is similar to how AIX traditionally builds its shared libraries.
  15667. archive_expsym_cmds_GCJ="\$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'
  15668. fi
  15669. fi
  15670. ;;
  15671. amigaos*)
  15672. archive_cmds_GCJ='$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)'
  15673. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15674. hardcode_minus_L_GCJ=yes
  15675. # see comment about different semantics on the GNU ld section
  15676. ld_shlibs_GCJ=no
  15677. ;;
  15678. bsdi[45]*)
  15679. export_dynamic_flag_spec_GCJ=-rdynamic
  15680. ;;
  15681. cygwin* | mingw* | pw32*)
  15682. # When not using gcc, we currently assume that we are using
  15683. # Microsoft Visual C++.
  15684. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15685. # no search path for DLLs.
  15686. hardcode_libdir_flag_spec_GCJ=' '
  15687. allow_undefined_flag_GCJ=unsupported
  15688. # Tell ltmain to make .lib files, not .a files.
  15689. libext=lib
  15690. # Tell ltmain to make .dll files, not .so files.
  15691. shrext_cmds=".dll"
  15692. # FIXME: Setting linknames here is a bad hack.
  15693. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15694. # The linker will automatically build a .lib file if we build a DLL.
  15695. old_archive_From_new_cmds_GCJ='true'
  15696. # FIXME: Should let the user specify the lib program.
  15697. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15698. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15699. enable_shared_with_static_runtimes_GCJ=yes
  15700. ;;
  15701. darwin* | rhapsody*)
  15702. case $host_os in
  15703. rhapsody* | darwin1.[012])
  15704. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15705. ;;
  15706. *) # Darwin 1.3 on
  15707. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15708. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15709. else
  15710. case ${MACOSX_DEPLOYMENT_TARGET} in
  15711. 10.[012])
  15712. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15713. ;;
  15714. 10.*)
  15715. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15716. ;;
  15717. esac
  15718. fi
  15719. ;;
  15720. esac
  15721. archive_cmds_need_lc_GCJ=no
  15722. hardcode_direct_GCJ=no
  15723. hardcode_automatic_GCJ=yes
  15724. hardcode_shlibpath_var_GCJ=unsupported
  15725. whole_archive_flag_spec_GCJ=''
  15726. link_all_deplibs_GCJ=yes
  15727. if test "$GCC" = yes ; then
  15728. output_verbose_link_cmd='echo'
  15729. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15730. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15731. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15732. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15733. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15734. else
  15735. case $cc_basename in
  15736. xlc*)
  15737. output_verbose_link_cmd='echo'
  15738. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15739. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15740. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15741. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15742. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15743. ;;
  15744. *)
  15745. ld_shlibs_GCJ=no
  15746. ;;
  15747. esac
  15748. fi
  15749. ;;
  15750. dgux*)
  15751. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15752. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15753. hardcode_shlibpath_var_GCJ=no
  15754. ;;
  15755. freebsd1*)
  15756. ld_shlibs_GCJ=no
  15757. ;;
  15758. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15759. # support. Future versions do this automatically, but an explicit c++rt0.o
  15760. # does not break anything, and helps significantly (at the cost of a little
  15761. # extra space).
  15762. freebsd2.2*)
  15763. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15764. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15765. hardcode_direct_GCJ=yes
  15766. hardcode_shlibpath_var_GCJ=no
  15767. ;;
  15768. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15769. freebsd2*)
  15770. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15771. hardcode_direct_GCJ=yes
  15772. hardcode_minus_L_GCJ=yes
  15773. hardcode_shlibpath_var_GCJ=no
  15774. ;;
  15775. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15776. freebsd* | dragonfly*)
  15777. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15778. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15779. hardcode_direct_GCJ=yes
  15780. hardcode_shlibpath_var_GCJ=no
  15781. ;;
  15782. hpux9*)
  15783. if test "$GCC" = yes; then
  15784. archive_cmds_GCJ='$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'
  15785. else
  15786. archive_cmds_GCJ='$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'
  15787. fi
  15788. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15789. hardcode_libdir_separator_GCJ=:
  15790. hardcode_direct_GCJ=yes
  15791. # hardcode_minus_L: Not really in the search PATH,
  15792. # but as the default location of the library.
  15793. hardcode_minus_L_GCJ=yes
  15794. export_dynamic_flag_spec_GCJ='${wl}-E'
  15795. ;;
  15796. hpux10*)
  15797. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15798. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15799. else
  15800. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15801. fi
  15802. if test "$with_gnu_ld" = no; then
  15803. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15804. hardcode_libdir_separator_GCJ=:
  15805. hardcode_direct_GCJ=yes
  15806. export_dynamic_flag_spec_GCJ='${wl}-E'
  15807. # hardcode_minus_L: Not really in the search PATH,
  15808. # but as the default location of the library.
  15809. hardcode_minus_L_GCJ=yes
  15810. fi
  15811. ;;
  15812. hpux11*)
  15813. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15814. case $host_cpu in
  15815. hppa*64*)
  15816. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15817. ;;
  15818. ia64*)
  15819. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15820. ;;
  15821. *)
  15822. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15823. ;;
  15824. esac
  15825. else
  15826. case $host_cpu in
  15827. hppa*64*)
  15828. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15829. ;;
  15830. ia64*)
  15831. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15832. ;;
  15833. *)
  15834. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15835. ;;
  15836. esac
  15837. fi
  15838. if test "$with_gnu_ld" = no; then
  15839. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15840. hardcode_libdir_separator_GCJ=:
  15841. case $host_cpu in
  15842. hppa*64*|ia64*)
  15843. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15844. hardcode_direct_GCJ=no
  15845. hardcode_shlibpath_var_GCJ=no
  15846. ;;
  15847. *)
  15848. hardcode_direct_GCJ=yes
  15849. export_dynamic_flag_spec_GCJ='${wl}-E'
  15850. # hardcode_minus_L: Not really in the search PATH,
  15851. # but as the default location of the library.
  15852. hardcode_minus_L_GCJ=yes
  15853. ;;
  15854. esac
  15855. fi
  15856. ;;
  15857. irix5* | irix6* | nonstopux*)
  15858. if test "$GCC" = yes; then
  15859. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15860. else
  15861. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15862. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15863. fi
  15864. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15865. hardcode_libdir_separator_GCJ=:
  15866. link_all_deplibs_GCJ=yes
  15867. ;;
  15868. netbsd*)
  15869. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15870. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15871. else
  15872. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15873. fi
  15874. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15875. hardcode_direct_GCJ=yes
  15876. hardcode_shlibpath_var_GCJ=no
  15877. ;;
  15878. newsos6)
  15879. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15880. hardcode_direct_GCJ=yes
  15881. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15882. hardcode_libdir_separator_GCJ=:
  15883. hardcode_shlibpath_var_GCJ=no
  15884. ;;
  15885. openbsd*)
  15886. if test -f /usr/libexec/ld.so; then
  15887. hardcode_direct_GCJ=yes
  15888. hardcode_shlibpath_var_GCJ=no
  15889. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15890. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15891. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15892. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15893. export_dynamic_flag_spec_GCJ='${wl}-E'
  15894. else
  15895. case $host_os in
  15896. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15897. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15898. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15899. ;;
  15900. *)
  15901. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15902. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15903. ;;
  15904. esac
  15905. fi
  15906. else
  15907. ld_shlibs_GCJ=no
  15908. fi
  15909. ;;
  15910. os2*)
  15911. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15912. hardcode_minus_L_GCJ=yes
  15913. allow_undefined_flag_GCJ=unsupported
  15914. archive_cmds_GCJ='$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'
  15915. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15916. ;;
  15917. osf3*)
  15918. if test "$GCC" = yes; then
  15919. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15920. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15921. else
  15922. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15923. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15924. fi
  15925. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15926. hardcode_libdir_separator_GCJ=:
  15927. ;;
  15928. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15929. if test "$GCC" = yes; then
  15930. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15931. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  15932. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15933. else
  15934. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15935. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15936. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15937. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  15938. # Both c and cxx compiler support -rpath directly
  15939. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15940. fi
  15941. hardcode_libdir_separator_GCJ=:
  15942. ;;
  15943. solaris*)
  15944. no_undefined_flag_GCJ=' -z text'
  15945. if test "$GCC" = yes; then
  15946. wlarc='${wl}'
  15947. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15948. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15949. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15950. else
  15951. wlarc=''
  15952. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15953. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15954. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15955. fi
  15956. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15957. hardcode_shlibpath_var_GCJ=no
  15958. case $host_os in
  15959. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15960. *)
  15961. # The compiler driver will combine and reorder linker options,
  15962. # but understands `-z linker_flag'. GCC discards it without `$wl',
  15963. # but is careful enough not to reorder.
  15964. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15965. if test "$GCC" = yes; then
  15966. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15967. else
  15968. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  15969. fi
  15970. ;;
  15971. esac
  15972. link_all_deplibs_GCJ=yes
  15973. ;;
  15974. sunos4*)
  15975. if test "x$host_vendor" = xsequent; then
  15976. # Use $CC to link under sequent, because it throws in some extra .o
  15977. # files that make .init and .fini sections work.
  15978. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15979. else
  15980. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15981. fi
  15982. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15983. hardcode_direct_GCJ=yes
  15984. hardcode_minus_L_GCJ=yes
  15985. hardcode_shlibpath_var_GCJ=no
  15986. ;;
  15987. sysv4)
  15988. case $host_vendor in
  15989. sni)
  15990. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15991. hardcode_direct_GCJ=yes # is this really true???
  15992. ;;
  15993. siemens)
  15994. ## LD is ld it makes a PLAMLIB
  15995. ## CC just makes a GrossModule.
  15996. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15997. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15998. hardcode_direct_GCJ=no
  15999. ;;
  16000. motorola)
  16001. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16002. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16003. ;;
  16004. esac
  16005. runpath_var='LD_RUN_PATH'
  16006. hardcode_shlibpath_var_GCJ=no
  16007. ;;
  16008. sysv4.3*)
  16009. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16010. hardcode_shlibpath_var_GCJ=no
  16011. export_dynamic_flag_spec_GCJ='-Bexport'
  16012. ;;
  16013. sysv4*MP*)
  16014. if test -d /usr/nec; then
  16015. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16016. hardcode_shlibpath_var_GCJ=no
  16017. runpath_var=LD_RUN_PATH
  16018. hardcode_runpath_var=yes
  16019. ld_shlibs_GCJ=yes
  16020. fi
  16021. ;;
  16022. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16023. no_undefined_flag_GCJ='${wl}-z,text'
  16024. archive_cmds_need_lc_GCJ=no
  16025. hardcode_shlibpath_var_GCJ=no
  16026. runpath_var='LD_RUN_PATH'
  16027. if test "$GCC" = yes; then
  16028. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16029. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16030. else
  16031. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16032. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16033. fi
  16034. ;;
  16035. sysv5* | sco3.2v5* | sco5v6*)
  16036. # Note: We can NOT use -z defs as we might desire, because we do not
  16037. # link with -lc, and that would cause any symbols used from libc to
  16038. # always be unresolved, which means just about no library would
  16039. # ever link correctly. If we're not using GNU ld we use -z text
  16040. # though, which does catch some bad symbols but isn't as heavy-handed
  16041. # as -z defs.
  16042. no_undefined_flag_GCJ='${wl}-z,text'
  16043. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16044. archive_cmds_need_lc_GCJ=no
  16045. hardcode_shlibpath_var_GCJ=no
  16046. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16047. hardcode_libdir_separator_GCJ=':'
  16048. link_all_deplibs_GCJ=yes
  16049. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16050. runpath_var='LD_RUN_PATH'
  16051. if test "$GCC" = yes; then
  16052. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16053. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16054. else
  16055. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16056. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16057. fi
  16058. ;;
  16059. uts4*)
  16060. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16061. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16062. hardcode_shlibpath_var_GCJ=no
  16063. ;;
  16064. *)
  16065. ld_shlibs_GCJ=no
  16066. ;;
  16067. esac
  16068. fi
  16069. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16070. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16071. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16072. #
  16073. # Do we need to explicitly link libc?
  16074. #
  16075. case "x$archive_cmds_need_lc_GCJ" in
  16076. x|xyes)
  16077. # Assume -lc should be added
  16078. archive_cmds_need_lc_GCJ=yes
  16079. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16080. case $archive_cmds_GCJ in
  16081. *'~'*)
  16082. # FIXME: we may have to deal with multi-command sequences.
  16083. ;;
  16084. '$CC '*)
  16085. # Test whether the compiler implicitly links with -lc since on some
  16086. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16087. # to ld, don't add -lc before -lgcc.
  16088. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16089. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16090. $rm conftest*
  16091. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16092. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16093. (eval $ac_compile) 2>&5
  16094. ac_status=$?
  16095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16096. (exit $ac_status); } 2>conftest.err; then
  16097. soname=conftest
  16098. lib=conftest
  16099. libobjs=conftest.$ac_objext
  16100. deplibs=
  16101. wl=$lt_prog_compiler_wl_GCJ
  16102. pic_flag=$lt_prog_compiler_pic_GCJ
  16103. compiler_flags=-v
  16104. linker_flags=-v
  16105. verstring=
  16106. output_objdir=.
  16107. libname=conftest
  16108. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16109. allow_undefined_flag_GCJ=
  16110. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16111. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16112. ac_status=$?
  16113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16114. (exit $ac_status); }
  16115. then
  16116. archive_cmds_need_lc_GCJ=no
  16117. else
  16118. archive_cmds_need_lc_GCJ=yes
  16119. fi
  16120. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16121. else
  16122. cat conftest.err 1>&5
  16123. fi
  16124. $rm conftest*
  16125. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16126. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16127. ;;
  16128. esac
  16129. fi
  16130. ;;
  16131. esac
  16132. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16133. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16134. library_names_spec=
  16135. libname_spec='lib$name'
  16136. soname_spec=
  16137. shrext_cmds=".so"
  16138. postinstall_cmds=
  16139. postuninstall_cmds=
  16140. finish_cmds=
  16141. finish_eval=
  16142. shlibpath_var=
  16143. shlibpath_overrides_runpath=unknown
  16144. version_type=none
  16145. dynamic_linker="$host_os ld.so"
  16146. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16147. need_lib_prefix=unknown
  16148. hardcode_into_libs=no
  16149. # when you set need_version to no, make sure it does not cause -set_version
  16150. # flags to be left without arguments
  16151. need_version=unknown
  16152. case $host_os in
  16153. aix3*)
  16154. version_type=linux
  16155. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16156. shlibpath_var=LIBPATH
  16157. # AIX 3 has no versioning support, so we append a major version to the name.
  16158. soname_spec='${libname}${release}${shared_ext}$major'
  16159. ;;
  16160. aix4* | aix5*)
  16161. version_type=linux
  16162. need_lib_prefix=no
  16163. need_version=no
  16164. hardcode_into_libs=yes
  16165. if test "$host_cpu" = ia64; then
  16166. # AIX 5 supports IA64
  16167. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16168. shlibpath_var=LD_LIBRARY_PATH
  16169. else
  16170. # With GCC up to 2.95.x, collect2 would create an import file
  16171. # for dependence libraries. The import file would start with
  16172. # the line `#! .'. This would cause the generated library to
  16173. # depend on `.', always an invalid library. This was fixed in
  16174. # development snapshots of GCC prior to 3.0.
  16175. case $host_os in
  16176. aix4 | aix4.[01] | aix4.[01].*)
  16177. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16178. echo ' yes '
  16179. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16180. :
  16181. else
  16182. can_build_shared=no
  16183. fi
  16184. ;;
  16185. esac
  16186. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16187. # soname into executable. Probably we can add versioning support to
  16188. # collect2, so additional links can be useful in future.
  16189. if test "$aix_use_runtimelinking" = yes; then
  16190. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16191. # instead of lib<name>.a to let people know that these are not
  16192. # typical AIX shared libraries.
  16193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16194. else
  16195. # We preserve .a as extension for shared libraries through AIX4.2
  16196. # and later when we are not doing run time linking.
  16197. library_names_spec='${libname}${release}.a $libname.a'
  16198. soname_spec='${libname}${release}${shared_ext}$major'
  16199. fi
  16200. shlibpath_var=LIBPATH
  16201. fi
  16202. ;;
  16203. amigaos*)
  16204. library_names_spec='$libname.ixlibrary $libname.a'
  16205. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16206. 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'
  16207. ;;
  16208. beos*)
  16209. library_names_spec='${libname}${shared_ext}'
  16210. dynamic_linker="$host_os ld.so"
  16211. shlibpath_var=LIBRARY_PATH
  16212. ;;
  16213. bsdi[45]*)
  16214. version_type=linux
  16215. need_version=no
  16216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16217. soname_spec='${libname}${release}${shared_ext}$major'
  16218. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16219. shlibpath_var=LD_LIBRARY_PATH
  16220. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16221. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16222. # the default ld.so.conf also contains /usr/contrib/lib and
  16223. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16224. # libtool to hard-code these into programs
  16225. ;;
  16226. cygwin* | mingw* | pw32*)
  16227. version_type=windows
  16228. shrext_cmds=".dll"
  16229. need_version=no
  16230. need_lib_prefix=no
  16231. case $GCC,$host_os in
  16232. yes,cygwin* | yes,mingw* | yes,pw32*)
  16233. library_names_spec='$libname.dll.a'
  16234. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16235. postinstall_cmds='base_file=`basename \${file}`~
  16236. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16237. dldir=$destdir/`dirname \$dlpath`~
  16238. test -d \$dldir || mkdir -p \$dldir~
  16239. $install_prog $dir/$dlname \$dldir/$dlname~
  16240. chmod a+x \$dldir/$dlname'
  16241. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16242. dlpath=$dir/\$dldll~
  16243. $rm \$dlpath'
  16244. shlibpath_overrides_runpath=yes
  16245. case $host_os in
  16246. cygwin*)
  16247. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16248. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16249. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16250. ;;
  16251. mingw*)
  16252. # MinGW DLLs use traditional 'lib' prefix
  16253. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16254. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16255. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16256. # It is most probably a Windows format PATH printed by
  16257. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16258. # path with ; separators, and with drive letters. We can handle the
  16259. # drive letters (cygwin fileutils understands them), so leave them,
  16260. # especially as we might pass files found there to a mingw objdump,
  16261. # which wouldn't understand a cygwinified path. Ahh.
  16262. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16263. else
  16264. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16265. fi
  16266. ;;
  16267. pw32*)
  16268. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16269. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16270. ;;
  16271. esac
  16272. ;;
  16273. *)
  16274. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16275. ;;
  16276. esac
  16277. dynamic_linker='Win32 ld.exe'
  16278. # FIXME: first we should search . and the directory the executable is in
  16279. shlibpath_var=PATH
  16280. ;;
  16281. darwin* | rhapsody*)
  16282. dynamic_linker="$host_os dyld"
  16283. version_type=darwin
  16284. need_lib_prefix=no
  16285. need_version=no
  16286. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16287. soname_spec='${libname}${release}${major}$shared_ext'
  16288. shlibpath_overrides_runpath=yes
  16289. shlibpath_var=DYLD_LIBRARY_PATH
  16290. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16291. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16292. ;;
  16293. dgux*)
  16294. version_type=linux
  16295. need_lib_prefix=no
  16296. need_version=no
  16297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16298. soname_spec='${libname}${release}${shared_ext}$major'
  16299. shlibpath_var=LD_LIBRARY_PATH
  16300. ;;
  16301. freebsd1*)
  16302. dynamic_linker=no
  16303. ;;
  16304. freebsd* | dragonfly*)
  16305. # DragonFly does not have aout. When/if they implement a new
  16306. # versioning mechanism, adjust this.
  16307. if test -x /usr/bin/objformat; then
  16308. objformat=`/usr/bin/objformat`
  16309. else
  16310. case $host_os in
  16311. freebsd[123]*) objformat=aout ;;
  16312. *) objformat=elf ;;
  16313. esac
  16314. fi
  16315. version_type=freebsd-$objformat
  16316. case $version_type in
  16317. freebsd-elf*)
  16318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16319. need_version=no
  16320. need_lib_prefix=no
  16321. ;;
  16322. freebsd-*)
  16323. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16324. need_version=yes
  16325. ;;
  16326. esac
  16327. shlibpath_var=LD_LIBRARY_PATH
  16328. case $host_os in
  16329. freebsd2*)
  16330. shlibpath_overrides_runpath=yes
  16331. ;;
  16332. freebsd3.[01]* | freebsdelf3.[01]*)
  16333. shlibpath_overrides_runpath=yes
  16334. hardcode_into_libs=yes
  16335. ;;
  16336. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16337. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16338. shlibpath_overrides_runpath=no
  16339. hardcode_into_libs=yes
  16340. ;;
  16341. *) # from 4.6 on, and DragonFly
  16342. shlibpath_overrides_runpath=yes
  16343. hardcode_into_libs=yes
  16344. ;;
  16345. esac
  16346. ;;
  16347. gnu*)
  16348. version_type=linux
  16349. need_lib_prefix=no
  16350. need_version=no
  16351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16352. soname_spec='${libname}${release}${shared_ext}$major'
  16353. shlibpath_var=LD_LIBRARY_PATH
  16354. hardcode_into_libs=yes
  16355. ;;
  16356. hpux9* | hpux10* | hpux11*)
  16357. # Give a soname corresponding to the major version so that dld.sl refuses to
  16358. # link against other versions.
  16359. version_type=sunos
  16360. need_lib_prefix=no
  16361. need_version=no
  16362. case $host_cpu in
  16363. ia64*)
  16364. shrext_cmds='.so'
  16365. hardcode_into_libs=yes
  16366. dynamic_linker="$host_os dld.so"
  16367. shlibpath_var=LD_LIBRARY_PATH
  16368. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16370. soname_spec='${libname}${release}${shared_ext}$major'
  16371. if test "X$HPUX_IA64_MODE" = X32; then
  16372. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16373. else
  16374. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16375. fi
  16376. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16377. ;;
  16378. hppa*64*)
  16379. shrext_cmds='.sl'
  16380. hardcode_into_libs=yes
  16381. dynamic_linker="$host_os dld.sl"
  16382. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16383. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16385. soname_spec='${libname}${release}${shared_ext}$major'
  16386. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16387. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16388. ;;
  16389. *)
  16390. shrext_cmds='.sl'
  16391. dynamic_linker="$host_os dld.sl"
  16392. shlibpath_var=SHLIB_PATH
  16393. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16395. soname_spec='${libname}${release}${shared_ext}$major'
  16396. ;;
  16397. esac
  16398. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16399. postinstall_cmds='chmod 555 $lib'
  16400. ;;
  16401. interix[3-9]*)
  16402. version_type=linux
  16403. need_lib_prefix=no
  16404. need_version=no
  16405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16406. soname_spec='${libname}${release}${shared_ext}$major'
  16407. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16408. shlibpath_var=LD_LIBRARY_PATH
  16409. shlibpath_overrides_runpath=no
  16410. hardcode_into_libs=yes
  16411. ;;
  16412. irix5* | irix6* | nonstopux*)
  16413. case $host_os in
  16414. nonstopux*) version_type=nonstopux ;;
  16415. *)
  16416. if test "$lt_cv_prog_gnu_ld" = yes; then
  16417. version_type=linux
  16418. else
  16419. version_type=irix
  16420. fi ;;
  16421. esac
  16422. need_lib_prefix=no
  16423. need_version=no
  16424. soname_spec='${libname}${release}${shared_ext}$major'
  16425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16426. case $host_os in
  16427. irix5* | nonstopux*)
  16428. libsuff= shlibsuff=
  16429. ;;
  16430. *)
  16431. case $LD in # libtool.m4 will add one of these switches to LD
  16432. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16433. libsuff= shlibsuff= libmagic=32-bit;;
  16434. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16435. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16436. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16437. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16438. *) libsuff= shlibsuff= libmagic=never-match;;
  16439. esac
  16440. ;;
  16441. esac
  16442. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16443. shlibpath_overrides_runpath=no
  16444. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16445. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16446. hardcode_into_libs=yes
  16447. ;;
  16448. # No shared lib support for Linux oldld, aout, or coff.
  16449. linux*oldld* | linux*aout* | linux*coff*)
  16450. dynamic_linker=no
  16451. ;;
  16452. # This must be Linux ELF.
  16453. linux* | k*bsd*-gnu)
  16454. version_type=linux
  16455. need_lib_prefix=no
  16456. need_version=no
  16457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16458. soname_spec='${libname}${release}${shared_ext}$major'
  16459. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16460. shlibpath_var=LD_LIBRARY_PATH
  16461. shlibpath_overrides_runpath=no
  16462. # This implies no fast_install, which is unacceptable.
  16463. # Some rework will be needed to allow for fast_install
  16464. # before this can be enabled.
  16465. hardcode_into_libs=yes
  16466. # Append ld.so.conf contents to the search path
  16467. if test -f /etc/ld.so.conf; then
  16468. 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' ' '`
  16469. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16470. fi
  16471. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16472. # powerpc, because MkLinux only supported shared libraries with the
  16473. # GNU dynamic linker. Since this was broken with cross compilers,
  16474. # most powerpc-linux boxes support dynamic linking these days and
  16475. # people can always --disable-shared, the test was removed, and we
  16476. # assume the GNU/Linux dynamic linker is in use.
  16477. dynamic_linker='GNU/Linux ld.so'
  16478. ;;
  16479. netbsd*)
  16480. version_type=sunos
  16481. need_lib_prefix=no
  16482. need_version=no
  16483. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16485. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16486. dynamic_linker='NetBSD (a.out) ld.so'
  16487. else
  16488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16489. soname_spec='${libname}${release}${shared_ext}$major'
  16490. dynamic_linker='NetBSD ld.elf_so'
  16491. fi
  16492. shlibpath_var=LD_LIBRARY_PATH
  16493. shlibpath_overrides_runpath=yes
  16494. hardcode_into_libs=yes
  16495. ;;
  16496. newsos6)
  16497. version_type=linux
  16498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16499. shlibpath_var=LD_LIBRARY_PATH
  16500. shlibpath_overrides_runpath=yes
  16501. ;;
  16502. nto-qnx*)
  16503. version_type=linux
  16504. need_lib_prefix=no
  16505. need_version=no
  16506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16507. soname_spec='${libname}${release}${shared_ext}$major'
  16508. shlibpath_var=LD_LIBRARY_PATH
  16509. shlibpath_overrides_runpath=yes
  16510. ;;
  16511. openbsd*)
  16512. version_type=sunos
  16513. sys_lib_dlsearch_path_spec="/usr/lib"
  16514. need_lib_prefix=no
  16515. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16516. case $host_os in
  16517. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16518. *) need_version=no ;;
  16519. esac
  16520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16521. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16522. shlibpath_var=LD_LIBRARY_PATH
  16523. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16524. case $host_os in
  16525. openbsd2.[89] | openbsd2.[89].*)
  16526. shlibpath_overrides_runpath=no
  16527. ;;
  16528. *)
  16529. shlibpath_overrides_runpath=yes
  16530. ;;
  16531. esac
  16532. else
  16533. shlibpath_overrides_runpath=yes
  16534. fi
  16535. ;;
  16536. os2*)
  16537. libname_spec='$name'
  16538. shrext_cmds=".dll"
  16539. need_lib_prefix=no
  16540. library_names_spec='$libname${shared_ext} $libname.a'
  16541. dynamic_linker='OS/2 ld.exe'
  16542. shlibpath_var=LIBPATH
  16543. ;;
  16544. osf3* | osf4* | osf5*)
  16545. version_type=osf
  16546. need_lib_prefix=no
  16547. need_version=no
  16548. soname_spec='${libname}${release}${shared_ext}$major'
  16549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16550. shlibpath_var=LD_LIBRARY_PATH
  16551. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16552. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16553. ;;
  16554. rdos*)
  16555. dynamic_linker=no
  16556. ;;
  16557. solaris*)
  16558. version_type=linux
  16559. need_lib_prefix=no
  16560. need_version=no
  16561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16562. soname_spec='${libname}${release}${shared_ext}$major'
  16563. shlibpath_var=LD_LIBRARY_PATH
  16564. shlibpath_overrides_runpath=yes
  16565. hardcode_into_libs=yes
  16566. # ldd complains unless libraries are executable
  16567. postinstall_cmds='chmod +x $lib'
  16568. ;;
  16569. sunos4*)
  16570. version_type=sunos
  16571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16572. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16573. shlibpath_var=LD_LIBRARY_PATH
  16574. shlibpath_overrides_runpath=yes
  16575. if test "$with_gnu_ld" = yes; then
  16576. need_lib_prefix=no
  16577. fi
  16578. need_version=yes
  16579. ;;
  16580. sysv4 | sysv4.3*)
  16581. version_type=linux
  16582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16583. soname_spec='${libname}${release}${shared_ext}$major'
  16584. shlibpath_var=LD_LIBRARY_PATH
  16585. case $host_vendor in
  16586. sni)
  16587. shlibpath_overrides_runpath=no
  16588. need_lib_prefix=no
  16589. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16590. runpath_var=LD_RUN_PATH
  16591. ;;
  16592. siemens)
  16593. need_lib_prefix=no
  16594. ;;
  16595. motorola)
  16596. need_lib_prefix=no
  16597. need_version=no
  16598. shlibpath_overrides_runpath=no
  16599. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16600. ;;
  16601. esac
  16602. ;;
  16603. sysv4*MP*)
  16604. if test -d /usr/nec ;then
  16605. version_type=linux
  16606. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16607. soname_spec='$libname${shared_ext}.$major'
  16608. shlibpath_var=LD_LIBRARY_PATH
  16609. fi
  16610. ;;
  16611. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16612. version_type=freebsd-elf
  16613. need_lib_prefix=no
  16614. need_version=no
  16615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16616. soname_spec='${libname}${release}${shared_ext}$major'
  16617. shlibpath_var=LD_LIBRARY_PATH
  16618. hardcode_into_libs=yes
  16619. if test "$with_gnu_ld" = yes; then
  16620. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16621. shlibpath_overrides_runpath=no
  16622. else
  16623. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16624. shlibpath_overrides_runpath=yes
  16625. case $host_os in
  16626. sco3.2v5*)
  16627. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16628. ;;
  16629. esac
  16630. fi
  16631. sys_lib_dlsearch_path_spec='/usr/lib'
  16632. ;;
  16633. uts4*)
  16634. version_type=linux
  16635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16636. soname_spec='${libname}${release}${shared_ext}$major'
  16637. shlibpath_var=LD_LIBRARY_PATH
  16638. ;;
  16639. *)
  16640. dynamic_linker=no
  16641. ;;
  16642. esac
  16643. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16644. echo "${ECHO_T}$dynamic_linker" >&6; }
  16645. test "$dynamic_linker" = no && can_build_shared=no
  16646. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16647. if test "$GCC" = yes; then
  16648. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16649. fi
  16650. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16651. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16652. hardcode_action_GCJ=
  16653. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16654. test -n "$runpath_var_GCJ" || \
  16655. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16656. # We can hardcode non-existant directories.
  16657. if test "$hardcode_direct_GCJ" != no &&
  16658. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16659. # have to relink, otherwise we might link with an installed library
  16660. # when we should be linking with a yet-to-be-installed one
  16661. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16662. test "$hardcode_minus_L_GCJ" != no; then
  16663. # Linking always hardcodes the temporary library directory.
  16664. hardcode_action_GCJ=relink
  16665. else
  16666. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16667. hardcode_action_GCJ=immediate
  16668. fi
  16669. else
  16670. # We cannot hardcode anything, or else we can only hardcode existing
  16671. # directories.
  16672. hardcode_action_GCJ=unsupported
  16673. fi
  16674. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16675. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16676. if test "$hardcode_action_GCJ" = relink; then
  16677. # Fast installation is not supported
  16678. enable_fast_install=no
  16679. elif test "$shlibpath_overrides_runpath" = yes ||
  16680. test "$enable_shared" = no; then
  16681. # Fast installation is not necessary
  16682. enable_fast_install=needless
  16683. fi
  16684. # The else clause should only fire when bootstrapping the
  16685. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16686. # with your package, and you will get complaints that there are
  16687. # no rules to generate ltmain.sh.
  16688. if test -f "$ltmain"; then
  16689. # See if we are running on zsh, and set the options which allow our commands through
  16690. # without removal of \ escapes.
  16691. if test -n "${ZSH_VERSION+set}" ; then
  16692. setopt NO_GLOB_SUBST
  16693. fi
  16694. # Now quote all the things that may contain metacharacters while being
  16695. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16696. # variables and quote the copies for generation of the libtool script.
  16697. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16698. SED SHELL STRIP \
  16699. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16700. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16701. deplibs_check_method reload_flag reload_cmds need_locks \
  16702. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16703. lt_cv_sys_global_symbol_to_c_name_address \
  16704. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16705. old_postinstall_cmds old_postuninstall_cmds \
  16706. compiler_GCJ \
  16707. CC_GCJ \
  16708. LD_GCJ \
  16709. lt_prog_compiler_wl_GCJ \
  16710. lt_prog_compiler_pic_GCJ \
  16711. lt_prog_compiler_static_GCJ \
  16712. lt_prog_compiler_no_builtin_flag_GCJ \
  16713. export_dynamic_flag_spec_GCJ \
  16714. thread_safe_flag_spec_GCJ \
  16715. whole_archive_flag_spec_GCJ \
  16716. enable_shared_with_static_runtimes_GCJ \
  16717. old_archive_cmds_GCJ \
  16718. old_archive_from_new_cmds_GCJ \
  16719. predep_objects_GCJ \
  16720. postdep_objects_GCJ \
  16721. predeps_GCJ \
  16722. postdeps_GCJ \
  16723. compiler_lib_search_path_GCJ \
  16724. archive_cmds_GCJ \
  16725. archive_expsym_cmds_GCJ \
  16726. postinstall_cmds_GCJ \
  16727. postuninstall_cmds_GCJ \
  16728. old_archive_from_expsyms_cmds_GCJ \
  16729. allow_undefined_flag_GCJ \
  16730. no_undefined_flag_GCJ \
  16731. export_symbols_cmds_GCJ \
  16732. hardcode_libdir_flag_spec_GCJ \
  16733. hardcode_libdir_flag_spec_ld_GCJ \
  16734. hardcode_libdir_separator_GCJ \
  16735. hardcode_automatic_GCJ \
  16736. module_cmds_GCJ \
  16737. module_expsym_cmds_GCJ \
  16738. lt_cv_prog_compiler_c_o_GCJ \
  16739. fix_srcfile_path_GCJ \
  16740. exclude_expsyms_GCJ \
  16741. include_expsyms_GCJ; do
  16742. case $var in
  16743. old_archive_cmds_GCJ | \
  16744. old_archive_from_new_cmds_GCJ | \
  16745. archive_cmds_GCJ | \
  16746. archive_expsym_cmds_GCJ | \
  16747. module_cmds_GCJ | \
  16748. module_expsym_cmds_GCJ | \
  16749. old_archive_from_expsyms_cmds_GCJ | \
  16750. export_symbols_cmds_GCJ | \
  16751. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16752. postinstall_cmds | postuninstall_cmds | \
  16753. old_postinstall_cmds | old_postuninstall_cmds | \
  16754. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16755. # Double-quote double-evaled strings.
  16756. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16757. ;;
  16758. *)
  16759. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16760. ;;
  16761. esac
  16762. done
  16763. case $lt_echo in
  16764. *'\$0 --fallback-echo"')
  16765. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16766. ;;
  16767. esac
  16768. cfgfile="$ofile"
  16769. cat <<__EOF__ >> "$cfgfile"
  16770. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16771. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16772. # Shell to use when invoking shell scripts.
  16773. SHELL=$lt_SHELL
  16774. # Whether or not to build shared libraries.
  16775. build_libtool_libs=$enable_shared
  16776. # Whether or not to build static libraries.
  16777. build_old_libs=$enable_static
  16778. # Whether or not to add -lc for building shared libraries.
  16779. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16780. # Whether or not to disallow shared libs when runtime libs are static
  16781. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16782. # Whether or not to optimize for fast installation.
  16783. fast_install=$enable_fast_install
  16784. # The host system.
  16785. host_alias=$host_alias
  16786. host=$host
  16787. host_os=$host_os
  16788. # The build system.
  16789. build_alias=$build_alias
  16790. build=$build
  16791. build_os=$build_os
  16792. # An echo program that does not interpret backslashes.
  16793. echo=$lt_echo
  16794. # The archiver.
  16795. AR=$lt_AR
  16796. AR_FLAGS=$lt_AR_FLAGS
  16797. # A C compiler.
  16798. LTCC=$lt_LTCC
  16799. # LTCC compiler flags.
  16800. LTCFLAGS=$lt_LTCFLAGS
  16801. # A language-specific compiler.
  16802. CC=$lt_compiler_GCJ
  16803. # Is the compiler the GNU C compiler?
  16804. with_gcc=$GCC_GCJ
  16805. # An ERE matcher.
  16806. EGREP=$lt_EGREP
  16807. # The linker used to build libraries.
  16808. LD=$lt_LD_GCJ
  16809. # Whether we need hard or soft links.
  16810. LN_S=$lt_LN_S
  16811. # A BSD-compatible nm program.
  16812. NM=$lt_NM
  16813. # A symbol stripping program
  16814. STRIP=$lt_STRIP
  16815. # Used to examine libraries when file_magic_cmd begins "file"
  16816. MAGIC_CMD=$MAGIC_CMD
  16817. # Used on cygwin: DLL creation program.
  16818. DLLTOOL="$DLLTOOL"
  16819. # Used on cygwin: object dumper.
  16820. OBJDUMP="$OBJDUMP"
  16821. # Used on cygwin: assembler.
  16822. AS="$AS"
  16823. # The name of the directory that contains temporary libtool files.
  16824. objdir=$objdir
  16825. # How to create reloadable object files.
  16826. reload_flag=$lt_reload_flag
  16827. reload_cmds=$lt_reload_cmds
  16828. # How to pass a linker flag through the compiler.
  16829. wl=$lt_lt_prog_compiler_wl_GCJ
  16830. # Object file suffix (normally "o").
  16831. objext="$ac_objext"
  16832. # Old archive suffix (normally "a").
  16833. libext="$libext"
  16834. # Shared library suffix (normally ".so").
  16835. shrext_cmds='$shrext_cmds'
  16836. # Executable file suffix (normally "").
  16837. exeext="$exeext"
  16838. # Additional compiler flags for building library objects.
  16839. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16840. pic_mode=$pic_mode
  16841. # What is the maximum length of a command?
  16842. max_cmd_len=$lt_cv_sys_max_cmd_len
  16843. # Does compiler simultaneously support -c and -o options?
  16844. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16845. # Must we lock files when doing compilation?
  16846. need_locks=$lt_need_locks
  16847. # Do we need the lib prefix for modules?
  16848. need_lib_prefix=$need_lib_prefix
  16849. # Do we need a version for libraries?
  16850. need_version=$need_version
  16851. # Whether dlopen is supported.
  16852. dlopen_support=$enable_dlopen
  16853. # Whether dlopen of programs is supported.
  16854. dlopen_self=$enable_dlopen_self
  16855. # Whether dlopen of statically linked programs is supported.
  16856. dlopen_self_static=$enable_dlopen_self_static
  16857. # Compiler flag to prevent dynamic linking.
  16858. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16859. # Compiler flag to turn off builtin functions.
  16860. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16861. # Compiler flag to allow reflexive dlopens.
  16862. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16863. # Compiler flag to generate shared objects directly from archives.
  16864. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16865. # Compiler flag to generate thread-safe objects.
  16866. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16867. # Library versioning type.
  16868. version_type=$version_type
  16869. # Format of library name prefix.
  16870. libname_spec=$lt_libname_spec
  16871. # List of archive names. First name is the real one, the rest are links.
  16872. # The last name is the one that the linker finds with -lNAME.
  16873. library_names_spec=$lt_library_names_spec
  16874. # The coded name of the library, if different from the real name.
  16875. soname_spec=$lt_soname_spec
  16876. # Commands used to build and install an old-style archive.
  16877. RANLIB=$lt_RANLIB
  16878. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16879. old_postinstall_cmds=$lt_old_postinstall_cmds
  16880. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16881. # Create an old-style archive from a shared archive.
  16882. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16883. # Create a temporary old-style archive to link instead of a shared archive.
  16884. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16885. # Commands used to build and install a shared archive.
  16886. archive_cmds=$lt_archive_cmds_GCJ
  16887. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16888. postinstall_cmds=$lt_postinstall_cmds
  16889. postuninstall_cmds=$lt_postuninstall_cmds
  16890. # Commands used to build a loadable module (assumed same as above if empty)
  16891. module_cmds=$lt_module_cmds_GCJ
  16892. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16893. # Commands to strip libraries.
  16894. old_striplib=$lt_old_striplib
  16895. striplib=$lt_striplib
  16896. # Dependencies to place before the objects being linked to create a
  16897. # shared library.
  16898. predep_objects=$lt_predep_objects_GCJ
  16899. # Dependencies to place after the objects being linked to create a
  16900. # shared library.
  16901. postdep_objects=$lt_postdep_objects_GCJ
  16902. # Dependencies to place before the objects being linked to create a
  16903. # shared library.
  16904. predeps=$lt_predeps_GCJ
  16905. # Dependencies to place after the objects being linked to create a
  16906. # shared library.
  16907. postdeps=$lt_postdeps_GCJ
  16908. # The library search path used internally by the compiler when linking
  16909. # a shared library.
  16910. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16911. # Method to check whether dependent libraries are shared objects.
  16912. deplibs_check_method=$lt_deplibs_check_method
  16913. # Command to use when deplibs_check_method == file_magic.
  16914. file_magic_cmd=$lt_file_magic_cmd
  16915. # Flag that allows shared libraries with undefined symbols to be built.
  16916. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16917. # Flag that forces no undefined symbols.
  16918. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16919. # Commands used to finish a libtool library installation in a directory.
  16920. finish_cmds=$lt_finish_cmds
  16921. # Same as above, but a single script fragment to be evaled but not shown.
  16922. finish_eval=$lt_finish_eval
  16923. # Take the output of nm and produce a listing of raw symbols and C names.
  16924. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16925. # Transform the output of nm in a proper C declaration
  16926. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16927. # Transform the output of nm in a C name address pair
  16928. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16929. # This is the shared library runtime path variable.
  16930. runpath_var=$runpath_var
  16931. # This is the shared library path variable.
  16932. shlibpath_var=$shlibpath_var
  16933. # Is shlibpath searched before the hard-coded library search path?
  16934. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16935. # How to hardcode a shared library path into an executable.
  16936. hardcode_action=$hardcode_action_GCJ
  16937. # Whether we should hardcode library paths into libraries.
  16938. hardcode_into_libs=$hardcode_into_libs
  16939. # Flag to hardcode \$libdir into a binary during linking.
  16940. # This must work even if \$libdir does not exist.
  16941. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16942. # If ld is used when linking, flag to hardcode \$libdir into
  16943. # a binary during linking. This must work even if \$libdir does
  16944. # not exist.
  16945. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16946. # Whether we need a single -rpath flag with a separated argument.
  16947. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16948. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16949. # resulting binary.
  16950. hardcode_direct=$hardcode_direct_GCJ
  16951. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16952. # resulting binary.
  16953. hardcode_minus_L=$hardcode_minus_L_GCJ
  16954. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16955. # the resulting binary.
  16956. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16957. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16958. # and all subsequent libraries and executables linked against it.
  16959. hardcode_automatic=$hardcode_automatic_GCJ
  16960. # Variables whose values should be saved in libtool wrapper scripts and
  16961. # restored at relink time.
  16962. variables_saved_for_relink="$variables_saved_for_relink"
  16963. # Whether libtool must link a program against all its dependency libraries.
  16964. link_all_deplibs=$link_all_deplibs_GCJ
  16965. # Compile-time system search path for libraries
  16966. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16967. # Run-time system search path for libraries
  16968. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16969. # Fix the shell variable \$srcfile for the compiler.
  16970. fix_srcfile_path=$lt_fix_srcfile_path
  16971. # Set to yes if exported symbols are required.
  16972. always_export_symbols=$always_export_symbols_GCJ
  16973. # The commands to list exported symbols.
  16974. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16975. # The commands to extract the exported symbol list from a shared archive.
  16976. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16977. # Symbols that should not be listed in the preloaded symbols.
  16978. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16979. # Symbols that must always be exported.
  16980. include_expsyms=$lt_include_expsyms_GCJ
  16981. # ### END LIBTOOL TAG CONFIG: $tagname
  16982. __EOF__
  16983. else
  16984. # If there is no Makefile yet, we rely on a make rule to execute
  16985. # `config.status --recheck' to rerun these tests and create the
  16986. # libtool script then.
  16987. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16988. if test -f "$ltmain_in"; then
  16989. test -f Makefile && make "$ltmain"
  16990. fi
  16991. fi
  16992. ac_ext=c
  16993. ac_cpp='$CPP $CPPFLAGS'
  16994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16997. CC="$lt_save_CC"
  16998. else
  16999. tagname=""
  17000. fi
  17001. ;;
  17002. RC)
  17003. # Source file extension for RC test sources.
  17004. ac_ext=rc
  17005. # Object file extension for compiled RC test sources.
  17006. objext=o
  17007. objext_RC=$objext
  17008. # Code to be used in simple compile tests
  17009. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17010. # Code to be used in simple link tests
  17011. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17012. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17013. # If no C compiler was specified, use CC.
  17014. LTCC=${LTCC-"$CC"}
  17015. # If no C compiler flags were specified, use CFLAGS.
  17016. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17017. # Allow CC to be a program name with arguments.
  17018. compiler=$CC
  17019. # save warnings/boilerplate of simple test code
  17020. ac_outfile=conftest.$ac_objext
  17021. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17022. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17023. _lt_compiler_boilerplate=`cat conftest.err`
  17024. $rm conftest*
  17025. ac_outfile=conftest.$ac_objext
  17026. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17027. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17028. _lt_linker_boilerplate=`cat conftest.err`
  17029. $rm conftest*
  17030. # Allow CC to be a program name with arguments.
  17031. lt_save_CC="$CC"
  17032. CC=${RC-"windres"}
  17033. compiler=$CC
  17034. compiler_RC=$CC
  17035. for cc_temp in $compiler""; do
  17036. case $cc_temp in
  17037. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17038. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17039. \-*) ;;
  17040. *) break;;
  17041. esac
  17042. done
  17043. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17044. lt_cv_prog_compiler_c_o_RC=yes
  17045. # The else clause should only fire when bootstrapping the
  17046. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17047. # with your package, and you will get complaints that there are
  17048. # no rules to generate ltmain.sh.
  17049. if test -f "$ltmain"; then
  17050. # See if we are running on zsh, and set the options which allow our commands through
  17051. # without removal of \ escapes.
  17052. if test -n "${ZSH_VERSION+set}" ; then
  17053. setopt NO_GLOB_SUBST
  17054. fi
  17055. # Now quote all the things that may contain metacharacters while being
  17056. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17057. # variables and quote the copies for generation of the libtool script.
  17058. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17059. SED SHELL STRIP \
  17060. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17061. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17062. deplibs_check_method reload_flag reload_cmds need_locks \
  17063. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17064. lt_cv_sys_global_symbol_to_c_name_address \
  17065. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17066. old_postinstall_cmds old_postuninstall_cmds \
  17067. compiler_RC \
  17068. CC_RC \
  17069. LD_RC \
  17070. lt_prog_compiler_wl_RC \
  17071. lt_prog_compiler_pic_RC \
  17072. lt_prog_compiler_static_RC \
  17073. lt_prog_compiler_no_builtin_flag_RC \
  17074. export_dynamic_flag_spec_RC \
  17075. thread_safe_flag_spec_RC \
  17076. whole_archive_flag_spec_RC \
  17077. enable_shared_with_static_runtimes_RC \
  17078. old_archive_cmds_RC \
  17079. old_archive_from_new_cmds_RC \
  17080. predep_objects_RC \
  17081. postdep_objects_RC \
  17082. predeps_RC \
  17083. postdeps_RC \
  17084. compiler_lib_search_path_RC \
  17085. archive_cmds_RC \
  17086. archive_expsym_cmds_RC \
  17087. postinstall_cmds_RC \
  17088. postuninstall_cmds_RC \
  17089. old_archive_from_expsyms_cmds_RC \
  17090. allow_undefined_flag_RC \
  17091. no_undefined_flag_RC \
  17092. export_symbols_cmds_RC \
  17093. hardcode_libdir_flag_spec_RC \
  17094. hardcode_libdir_flag_spec_ld_RC \
  17095. hardcode_libdir_separator_RC \
  17096. hardcode_automatic_RC \
  17097. module_cmds_RC \
  17098. module_expsym_cmds_RC \
  17099. lt_cv_prog_compiler_c_o_RC \
  17100. fix_srcfile_path_RC \
  17101. exclude_expsyms_RC \
  17102. include_expsyms_RC; do
  17103. case $var in
  17104. old_archive_cmds_RC | \
  17105. old_archive_from_new_cmds_RC | \
  17106. archive_cmds_RC | \
  17107. archive_expsym_cmds_RC | \
  17108. module_cmds_RC | \
  17109. module_expsym_cmds_RC | \
  17110. old_archive_from_expsyms_cmds_RC | \
  17111. export_symbols_cmds_RC | \
  17112. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17113. postinstall_cmds | postuninstall_cmds | \
  17114. old_postinstall_cmds | old_postuninstall_cmds | \
  17115. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17116. # Double-quote double-evaled strings.
  17117. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17118. ;;
  17119. *)
  17120. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17121. ;;
  17122. esac
  17123. done
  17124. case $lt_echo in
  17125. *'\$0 --fallback-echo"')
  17126. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17127. ;;
  17128. esac
  17129. cfgfile="$ofile"
  17130. cat <<__EOF__ >> "$cfgfile"
  17131. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17132. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17133. # Shell to use when invoking shell scripts.
  17134. SHELL=$lt_SHELL
  17135. # Whether or not to build shared libraries.
  17136. build_libtool_libs=$enable_shared
  17137. # Whether or not to build static libraries.
  17138. build_old_libs=$enable_static
  17139. # Whether or not to add -lc for building shared libraries.
  17140. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17141. # Whether or not to disallow shared libs when runtime libs are static
  17142. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17143. # Whether or not to optimize for fast installation.
  17144. fast_install=$enable_fast_install
  17145. # The host system.
  17146. host_alias=$host_alias
  17147. host=$host
  17148. host_os=$host_os
  17149. # The build system.
  17150. build_alias=$build_alias
  17151. build=$build
  17152. build_os=$build_os
  17153. # An echo program that does not interpret backslashes.
  17154. echo=$lt_echo
  17155. # The archiver.
  17156. AR=$lt_AR
  17157. AR_FLAGS=$lt_AR_FLAGS
  17158. # A C compiler.
  17159. LTCC=$lt_LTCC
  17160. # LTCC compiler flags.
  17161. LTCFLAGS=$lt_LTCFLAGS
  17162. # A language-specific compiler.
  17163. CC=$lt_compiler_RC
  17164. # Is the compiler the GNU C compiler?
  17165. with_gcc=$GCC_RC
  17166. # An ERE matcher.
  17167. EGREP=$lt_EGREP
  17168. # The linker used to build libraries.
  17169. LD=$lt_LD_RC
  17170. # Whether we need hard or soft links.
  17171. LN_S=$lt_LN_S
  17172. # A BSD-compatible nm program.
  17173. NM=$lt_NM
  17174. # A symbol stripping program
  17175. STRIP=$lt_STRIP
  17176. # Used to examine libraries when file_magic_cmd begins "file"
  17177. MAGIC_CMD=$MAGIC_CMD
  17178. # Used on cygwin: DLL creation program.
  17179. DLLTOOL="$DLLTOOL"
  17180. # Used on cygwin: object dumper.
  17181. OBJDUMP="$OBJDUMP"
  17182. # Used on cygwin: assembler.
  17183. AS="$AS"
  17184. # The name of the directory that contains temporary libtool files.
  17185. objdir=$objdir
  17186. # How to create reloadable object files.
  17187. reload_flag=$lt_reload_flag
  17188. reload_cmds=$lt_reload_cmds
  17189. # How to pass a linker flag through the compiler.
  17190. wl=$lt_lt_prog_compiler_wl_RC
  17191. # Object file suffix (normally "o").
  17192. objext="$ac_objext"
  17193. # Old archive suffix (normally "a").
  17194. libext="$libext"
  17195. # Shared library suffix (normally ".so").
  17196. shrext_cmds='$shrext_cmds'
  17197. # Executable file suffix (normally "").
  17198. exeext="$exeext"
  17199. # Additional compiler flags for building library objects.
  17200. pic_flag=$lt_lt_prog_compiler_pic_RC
  17201. pic_mode=$pic_mode
  17202. # What is the maximum length of a command?
  17203. max_cmd_len=$lt_cv_sys_max_cmd_len
  17204. # Does compiler simultaneously support -c and -o options?
  17205. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17206. # Must we lock files when doing compilation?
  17207. need_locks=$lt_need_locks
  17208. # Do we need the lib prefix for modules?
  17209. need_lib_prefix=$need_lib_prefix
  17210. # Do we need a version for libraries?
  17211. need_version=$need_version
  17212. # Whether dlopen is supported.
  17213. dlopen_support=$enable_dlopen
  17214. # Whether dlopen of programs is supported.
  17215. dlopen_self=$enable_dlopen_self
  17216. # Whether dlopen of statically linked programs is supported.
  17217. dlopen_self_static=$enable_dlopen_self_static
  17218. # Compiler flag to prevent dynamic linking.
  17219. link_static_flag=$lt_lt_prog_compiler_static_RC
  17220. # Compiler flag to turn off builtin functions.
  17221. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17222. # Compiler flag to allow reflexive dlopens.
  17223. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17224. # Compiler flag to generate shared objects directly from archives.
  17225. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17226. # Compiler flag to generate thread-safe objects.
  17227. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17228. # Library versioning type.
  17229. version_type=$version_type
  17230. # Format of library name prefix.
  17231. libname_spec=$lt_libname_spec
  17232. # List of archive names. First name is the real one, the rest are links.
  17233. # The last name is the one that the linker finds with -lNAME.
  17234. library_names_spec=$lt_library_names_spec
  17235. # The coded name of the library, if different from the real name.
  17236. soname_spec=$lt_soname_spec
  17237. # Commands used to build and install an old-style archive.
  17238. RANLIB=$lt_RANLIB
  17239. old_archive_cmds=$lt_old_archive_cmds_RC
  17240. old_postinstall_cmds=$lt_old_postinstall_cmds
  17241. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17242. # Create an old-style archive from a shared archive.
  17243. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17244. # Create a temporary old-style archive to link instead of a shared archive.
  17245. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17246. # Commands used to build and install a shared archive.
  17247. archive_cmds=$lt_archive_cmds_RC
  17248. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17249. postinstall_cmds=$lt_postinstall_cmds
  17250. postuninstall_cmds=$lt_postuninstall_cmds
  17251. # Commands used to build a loadable module (assumed same as above if empty)
  17252. module_cmds=$lt_module_cmds_RC
  17253. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17254. # Commands to strip libraries.
  17255. old_striplib=$lt_old_striplib
  17256. striplib=$lt_striplib
  17257. # Dependencies to place before the objects being linked to create a
  17258. # shared library.
  17259. predep_objects=$lt_predep_objects_RC
  17260. # Dependencies to place after the objects being linked to create a
  17261. # shared library.
  17262. postdep_objects=$lt_postdep_objects_RC
  17263. # Dependencies to place before the objects being linked to create a
  17264. # shared library.
  17265. predeps=$lt_predeps_RC
  17266. # Dependencies to place after the objects being linked to create a
  17267. # shared library.
  17268. postdeps=$lt_postdeps_RC
  17269. # The library search path used internally by the compiler when linking
  17270. # a shared library.
  17271. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17272. # Method to check whether dependent libraries are shared objects.
  17273. deplibs_check_method=$lt_deplibs_check_method
  17274. # Command to use when deplibs_check_method == file_magic.
  17275. file_magic_cmd=$lt_file_magic_cmd
  17276. # Flag that allows shared libraries with undefined symbols to be built.
  17277. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17278. # Flag that forces no undefined symbols.
  17279. no_undefined_flag=$lt_no_undefined_flag_RC
  17280. # Commands used to finish a libtool library installation in a directory.
  17281. finish_cmds=$lt_finish_cmds
  17282. # Same as above, but a single script fragment to be evaled but not shown.
  17283. finish_eval=$lt_finish_eval
  17284. # Take the output of nm and produce a listing of raw symbols and C names.
  17285. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17286. # Transform the output of nm in a proper C declaration
  17287. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17288. # Transform the output of nm in a C name address pair
  17289. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17290. # This is the shared library runtime path variable.
  17291. runpath_var=$runpath_var
  17292. # This is the shared library path variable.
  17293. shlibpath_var=$shlibpath_var
  17294. # Is shlibpath searched before the hard-coded library search path?
  17295. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17296. # How to hardcode a shared library path into an executable.
  17297. hardcode_action=$hardcode_action_RC
  17298. # Whether we should hardcode library paths into libraries.
  17299. hardcode_into_libs=$hardcode_into_libs
  17300. # Flag to hardcode \$libdir into a binary during linking.
  17301. # This must work even if \$libdir does not exist.
  17302. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17303. # If ld is used when linking, flag to hardcode \$libdir into
  17304. # a binary during linking. This must work even if \$libdir does
  17305. # not exist.
  17306. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17307. # Whether we need a single -rpath flag with a separated argument.
  17308. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17309. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17310. # resulting binary.
  17311. hardcode_direct=$hardcode_direct_RC
  17312. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17313. # resulting binary.
  17314. hardcode_minus_L=$hardcode_minus_L_RC
  17315. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17316. # the resulting binary.
  17317. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17318. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17319. # and all subsequent libraries and executables linked against it.
  17320. hardcode_automatic=$hardcode_automatic_RC
  17321. # Variables whose values should be saved in libtool wrapper scripts and
  17322. # restored at relink time.
  17323. variables_saved_for_relink="$variables_saved_for_relink"
  17324. # Whether libtool must link a program against all its dependency libraries.
  17325. link_all_deplibs=$link_all_deplibs_RC
  17326. # Compile-time system search path for libraries
  17327. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17328. # Run-time system search path for libraries
  17329. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17330. # Fix the shell variable \$srcfile for the compiler.
  17331. fix_srcfile_path=$lt_fix_srcfile_path
  17332. # Set to yes if exported symbols are required.
  17333. always_export_symbols=$always_export_symbols_RC
  17334. # The commands to list exported symbols.
  17335. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17336. # The commands to extract the exported symbol list from a shared archive.
  17337. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17338. # Symbols that should not be listed in the preloaded symbols.
  17339. exclude_expsyms=$lt_exclude_expsyms_RC
  17340. # Symbols that must always be exported.
  17341. include_expsyms=$lt_include_expsyms_RC
  17342. # ### END LIBTOOL TAG CONFIG: $tagname
  17343. __EOF__
  17344. else
  17345. # If there is no Makefile yet, we rely on a make rule to execute
  17346. # `config.status --recheck' to rerun these tests and create the
  17347. # libtool script then.
  17348. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17349. if test -f "$ltmain_in"; then
  17350. test -f Makefile && make "$ltmain"
  17351. fi
  17352. fi
  17353. ac_ext=c
  17354. ac_cpp='$CPP $CPPFLAGS'
  17355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17358. CC="$lt_save_CC"
  17359. ;;
  17360. *)
  17361. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17362. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17363. { (exit 1); exit 1; }; }
  17364. ;;
  17365. esac
  17366. # Append the new tag name to the list of available tags.
  17367. if test -n "$tagname" ; then
  17368. available_tags="$available_tags $tagname"
  17369. fi
  17370. fi
  17371. done
  17372. IFS="$lt_save_ifs"
  17373. # Now substitute the updated list of available tags.
  17374. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17375. mv "${ofile}T" "$ofile"
  17376. chmod +x "$ofile"
  17377. else
  17378. rm -f "${ofile}T"
  17379. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17380. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17381. { (exit 1); exit 1; }; }
  17382. fi
  17383. fi
  17384. # This can be used to rebuild libtool when needed
  17385. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17386. # Always use our own libtool.
  17387. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17388. # Prevent multiple expansion
  17389. ac_ext=c
  17390. ac_cpp='$CPP $CPPFLAGS'
  17391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17394. if test -n "$ac_tool_prefix"; then
  17395. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17396. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17397. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17398. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17399. if test "${ac_cv_prog_CC+set}" = set; then
  17400. echo $ECHO_N "(cached) $ECHO_C" >&6
  17401. else
  17402. if test -n "$CC"; then
  17403. ac_cv_prog_CC="$CC" # Let the user override the test.
  17404. else
  17405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17406. for as_dir in $PATH
  17407. do
  17408. IFS=$as_save_IFS
  17409. test -z "$as_dir" && as_dir=.
  17410. for ac_exec_ext in '' $ac_executable_extensions; do
  17411. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17412. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17413. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17414. break 2
  17415. fi
  17416. done
  17417. done
  17418. IFS=$as_save_IFS
  17419. fi
  17420. fi
  17421. CC=$ac_cv_prog_CC
  17422. if test -n "$CC"; then
  17423. { echo "$as_me:$LINENO: result: $CC" >&5
  17424. echo "${ECHO_T}$CC" >&6; }
  17425. else
  17426. { echo "$as_me:$LINENO: result: no" >&5
  17427. echo "${ECHO_T}no" >&6; }
  17428. fi
  17429. fi
  17430. if test -z "$ac_cv_prog_CC"; then
  17431. ac_ct_CC=$CC
  17432. # Extract the first word of "gcc", so it can be a program name with args.
  17433. set dummy gcc; ac_word=$2
  17434. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17435. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17436. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17437. echo $ECHO_N "(cached) $ECHO_C" >&6
  17438. else
  17439. if test -n "$ac_ct_CC"; then
  17440. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17441. else
  17442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17443. for as_dir in $PATH
  17444. do
  17445. IFS=$as_save_IFS
  17446. test -z "$as_dir" && as_dir=.
  17447. for ac_exec_ext in '' $ac_executable_extensions; do
  17448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17449. ac_cv_prog_ac_ct_CC="gcc"
  17450. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17451. break 2
  17452. fi
  17453. done
  17454. done
  17455. IFS=$as_save_IFS
  17456. fi
  17457. fi
  17458. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17459. if test -n "$ac_ct_CC"; then
  17460. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17461. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17462. else
  17463. { echo "$as_me:$LINENO: result: no" >&5
  17464. echo "${ECHO_T}no" >&6; }
  17465. fi
  17466. if test "x$ac_ct_CC" = x; then
  17467. CC=""
  17468. else
  17469. case $cross_compiling:$ac_tool_warned in
  17470. yes:)
  17471. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17472. whose name does not start with the host triplet. If you think this
  17473. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17474. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17475. whose name does not start with the host triplet. If you think this
  17476. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17477. ac_tool_warned=yes ;;
  17478. esac
  17479. CC=$ac_ct_CC
  17480. fi
  17481. else
  17482. CC="$ac_cv_prog_CC"
  17483. fi
  17484. if test -z "$CC"; then
  17485. if test -n "$ac_tool_prefix"; then
  17486. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17487. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17488. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17489. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17490. if test "${ac_cv_prog_CC+set}" = set; then
  17491. echo $ECHO_N "(cached) $ECHO_C" >&6
  17492. else
  17493. if test -n "$CC"; then
  17494. ac_cv_prog_CC="$CC" # Let the user override the test.
  17495. else
  17496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17497. for as_dir in $PATH
  17498. do
  17499. IFS=$as_save_IFS
  17500. test -z "$as_dir" && as_dir=.
  17501. for ac_exec_ext in '' $ac_executable_extensions; do
  17502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17503. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17504. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17505. break 2
  17506. fi
  17507. done
  17508. done
  17509. IFS=$as_save_IFS
  17510. fi
  17511. fi
  17512. CC=$ac_cv_prog_CC
  17513. if test -n "$CC"; then
  17514. { echo "$as_me:$LINENO: result: $CC" >&5
  17515. echo "${ECHO_T}$CC" >&6; }
  17516. else
  17517. { echo "$as_me:$LINENO: result: no" >&5
  17518. echo "${ECHO_T}no" >&6; }
  17519. fi
  17520. fi
  17521. fi
  17522. if test -z "$CC"; then
  17523. # Extract the first word of "cc", so it can be a program name with args.
  17524. set dummy cc; ac_word=$2
  17525. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17527. if test "${ac_cv_prog_CC+set}" = set; then
  17528. echo $ECHO_N "(cached) $ECHO_C" >&6
  17529. else
  17530. if test -n "$CC"; then
  17531. ac_cv_prog_CC="$CC" # Let the user override the test.
  17532. else
  17533. ac_prog_rejected=no
  17534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17535. for as_dir in $PATH
  17536. do
  17537. IFS=$as_save_IFS
  17538. test -z "$as_dir" && as_dir=.
  17539. for ac_exec_ext in '' $ac_executable_extensions; do
  17540. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17541. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17542. ac_prog_rejected=yes
  17543. continue
  17544. fi
  17545. ac_cv_prog_CC="cc"
  17546. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17547. break 2
  17548. fi
  17549. done
  17550. done
  17551. IFS=$as_save_IFS
  17552. if test $ac_prog_rejected = yes; then
  17553. # We found a bogon in the path, so make sure we never use it.
  17554. set dummy $ac_cv_prog_CC
  17555. shift
  17556. if test $# != 0; then
  17557. # We chose a different compiler from the bogus one.
  17558. # However, it has the same basename, so the bogon will be chosen
  17559. # first if we set CC to just the basename; use the full file name.
  17560. shift
  17561. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17562. fi
  17563. fi
  17564. fi
  17565. fi
  17566. CC=$ac_cv_prog_CC
  17567. if test -n "$CC"; then
  17568. { echo "$as_me:$LINENO: result: $CC" >&5
  17569. echo "${ECHO_T}$CC" >&6; }
  17570. else
  17571. { echo "$as_me:$LINENO: result: no" >&5
  17572. echo "${ECHO_T}no" >&6; }
  17573. fi
  17574. fi
  17575. if test -z "$CC"; then
  17576. if test -n "$ac_tool_prefix"; then
  17577. for ac_prog in cl.exe
  17578. do
  17579. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17580. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17581. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17582. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17583. if test "${ac_cv_prog_CC+set}" = set; then
  17584. echo $ECHO_N "(cached) $ECHO_C" >&6
  17585. else
  17586. if test -n "$CC"; then
  17587. ac_cv_prog_CC="$CC" # Let the user override the test.
  17588. else
  17589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17590. for as_dir in $PATH
  17591. do
  17592. IFS=$as_save_IFS
  17593. test -z "$as_dir" && as_dir=.
  17594. for ac_exec_ext in '' $ac_executable_extensions; do
  17595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17596. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17597. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17598. break 2
  17599. fi
  17600. done
  17601. done
  17602. IFS=$as_save_IFS
  17603. fi
  17604. fi
  17605. CC=$ac_cv_prog_CC
  17606. if test -n "$CC"; then
  17607. { echo "$as_me:$LINENO: result: $CC" >&5
  17608. echo "${ECHO_T}$CC" >&6; }
  17609. else
  17610. { echo "$as_me:$LINENO: result: no" >&5
  17611. echo "${ECHO_T}no" >&6; }
  17612. fi
  17613. test -n "$CC" && break
  17614. done
  17615. fi
  17616. if test -z "$CC"; then
  17617. ac_ct_CC=$CC
  17618. for ac_prog in cl.exe
  17619. do
  17620. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17621. set dummy $ac_prog; ac_word=$2
  17622. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17623. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17624. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17625. echo $ECHO_N "(cached) $ECHO_C" >&6
  17626. else
  17627. if test -n "$ac_ct_CC"; then
  17628. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17629. else
  17630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17631. for as_dir in $PATH
  17632. do
  17633. IFS=$as_save_IFS
  17634. test -z "$as_dir" && as_dir=.
  17635. for ac_exec_ext in '' $ac_executable_extensions; do
  17636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17637. ac_cv_prog_ac_ct_CC="$ac_prog"
  17638. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17639. break 2
  17640. fi
  17641. done
  17642. done
  17643. IFS=$as_save_IFS
  17644. fi
  17645. fi
  17646. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17647. if test -n "$ac_ct_CC"; then
  17648. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17649. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17650. else
  17651. { echo "$as_me:$LINENO: result: no" >&5
  17652. echo "${ECHO_T}no" >&6; }
  17653. fi
  17654. test -n "$ac_ct_CC" && break
  17655. done
  17656. if test "x$ac_ct_CC" = x; then
  17657. CC=""
  17658. else
  17659. case $cross_compiling:$ac_tool_warned in
  17660. yes:)
  17661. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17662. whose name does not start with the host triplet. If you think this
  17663. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17664. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17665. whose name does not start with the host triplet. If you think this
  17666. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17667. ac_tool_warned=yes ;;
  17668. esac
  17669. CC=$ac_ct_CC
  17670. fi
  17671. fi
  17672. fi
  17673. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17674. See \`config.log' for more details." >&5
  17675. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17676. See \`config.log' for more details." >&2;}
  17677. { (exit 1); exit 1; }; }
  17678. # Provide some information about the compiler.
  17679. echo "$as_me:$LINENO: checking for C compiler version" >&5
  17680. ac_compiler=`set X $ac_compile; echo $2`
  17681. { (ac_try="$ac_compiler --version >&5"
  17682. case "(($ac_try" in
  17683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17684. *) ac_try_echo=$ac_try;;
  17685. esac
  17686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17687. (eval "$ac_compiler --version >&5") 2>&5
  17688. ac_status=$?
  17689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17690. (exit $ac_status); }
  17691. { (ac_try="$ac_compiler -v >&5"
  17692. case "(($ac_try" in
  17693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17694. *) ac_try_echo=$ac_try;;
  17695. esac
  17696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17697. (eval "$ac_compiler -v >&5") 2>&5
  17698. ac_status=$?
  17699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17700. (exit $ac_status); }
  17701. { (ac_try="$ac_compiler -V >&5"
  17702. case "(($ac_try" in
  17703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17704. *) ac_try_echo=$ac_try;;
  17705. esac
  17706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17707. (eval "$ac_compiler -V >&5") 2>&5
  17708. ac_status=$?
  17709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17710. (exit $ac_status); }
  17711. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17712. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  17713. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17714. echo $ECHO_N "(cached) $ECHO_C" >&6
  17715. else
  17716. cat >conftest.$ac_ext <<_ACEOF
  17717. /* confdefs.h. */
  17718. _ACEOF
  17719. cat confdefs.h >>conftest.$ac_ext
  17720. cat >>conftest.$ac_ext <<_ACEOF
  17721. /* end confdefs.h. */
  17722. int
  17723. main ()
  17724. {
  17725. #ifndef __GNUC__
  17726. choke me
  17727. #endif
  17728. ;
  17729. return 0;
  17730. }
  17731. _ACEOF
  17732. rm -f conftest.$ac_objext
  17733. if { (ac_try="$ac_compile"
  17734. case "(($ac_try" in
  17735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17736. *) ac_try_echo=$ac_try;;
  17737. esac
  17738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17739. (eval "$ac_compile") 2>conftest.er1
  17740. ac_status=$?
  17741. grep -v '^ *+' conftest.er1 >conftest.err
  17742. rm -f conftest.er1
  17743. cat conftest.err >&5
  17744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17745. (exit $ac_status); } && {
  17746. test -z "$ac_c_werror_flag" ||
  17747. test ! -s conftest.err
  17748. } && test -s conftest.$ac_objext; then
  17749. ac_compiler_gnu=yes
  17750. else
  17751. echo "$as_me: failed program was:" >&5
  17752. sed 's/^/| /' conftest.$ac_ext >&5
  17753. ac_compiler_gnu=no
  17754. fi
  17755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17756. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17757. fi
  17758. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17759. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  17760. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17761. ac_test_CFLAGS=${CFLAGS+set}
  17762. ac_save_CFLAGS=$CFLAGS
  17763. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17764. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  17765. if test "${ac_cv_prog_cc_g+set}" = set; then
  17766. echo $ECHO_N "(cached) $ECHO_C" >&6
  17767. else
  17768. ac_save_c_werror_flag=$ac_c_werror_flag
  17769. ac_c_werror_flag=yes
  17770. ac_cv_prog_cc_g=no
  17771. CFLAGS="-g"
  17772. cat >conftest.$ac_ext <<_ACEOF
  17773. /* confdefs.h. */
  17774. _ACEOF
  17775. cat confdefs.h >>conftest.$ac_ext
  17776. cat >>conftest.$ac_ext <<_ACEOF
  17777. /* end confdefs.h. */
  17778. int
  17779. main ()
  17780. {
  17781. ;
  17782. return 0;
  17783. }
  17784. _ACEOF
  17785. rm -f conftest.$ac_objext
  17786. if { (ac_try="$ac_compile"
  17787. case "(($ac_try" in
  17788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17789. *) ac_try_echo=$ac_try;;
  17790. esac
  17791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17792. (eval "$ac_compile") 2>conftest.er1
  17793. ac_status=$?
  17794. grep -v '^ *+' conftest.er1 >conftest.err
  17795. rm -f conftest.er1
  17796. cat conftest.err >&5
  17797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17798. (exit $ac_status); } && {
  17799. test -z "$ac_c_werror_flag" ||
  17800. test ! -s conftest.err
  17801. } && test -s conftest.$ac_objext; then
  17802. ac_cv_prog_cc_g=yes
  17803. else
  17804. echo "$as_me: failed program was:" >&5
  17805. sed 's/^/| /' conftest.$ac_ext >&5
  17806. CFLAGS=""
  17807. cat >conftest.$ac_ext <<_ACEOF
  17808. /* confdefs.h. */
  17809. _ACEOF
  17810. cat confdefs.h >>conftest.$ac_ext
  17811. cat >>conftest.$ac_ext <<_ACEOF
  17812. /* end confdefs.h. */
  17813. int
  17814. main ()
  17815. {
  17816. ;
  17817. return 0;
  17818. }
  17819. _ACEOF
  17820. rm -f conftest.$ac_objext
  17821. if { (ac_try="$ac_compile"
  17822. case "(($ac_try" in
  17823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17824. *) ac_try_echo=$ac_try;;
  17825. esac
  17826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17827. (eval "$ac_compile") 2>conftest.er1
  17828. ac_status=$?
  17829. grep -v '^ *+' conftest.er1 >conftest.err
  17830. rm -f conftest.er1
  17831. cat conftest.err >&5
  17832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17833. (exit $ac_status); } && {
  17834. test -z "$ac_c_werror_flag" ||
  17835. test ! -s conftest.err
  17836. } && test -s conftest.$ac_objext; then
  17837. :
  17838. else
  17839. echo "$as_me: failed program was:" >&5
  17840. sed 's/^/| /' conftest.$ac_ext >&5
  17841. ac_c_werror_flag=$ac_save_c_werror_flag
  17842. CFLAGS="-g"
  17843. cat >conftest.$ac_ext <<_ACEOF
  17844. /* confdefs.h. */
  17845. _ACEOF
  17846. cat confdefs.h >>conftest.$ac_ext
  17847. cat >>conftest.$ac_ext <<_ACEOF
  17848. /* end confdefs.h. */
  17849. int
  17850. main ()
  17851. {
  17852. ;
  17853. return 0;
  17854. }
  17855. _ACEOF
  17856. rm -f conftest.$ac_objext
  17857. if { (ac_try="$ac_compile"
  17858. case "(($ac_try" in
  17859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17860. *) ac_try_echo=$ac_try;;
  17861. esac
  17862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17863. (eval "$ac_compile") 2>conftest.er1
  17864. ac_status=$?
  17865. grep -v '^ *+' conftest.er1 >conftest.err
  17866. rm -f conftest.er1
  17867. cat conftest.err >&5
  17868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17869. (exit $ac_status); } && {
  17870. test -z "$ac_c_werror_flag" ||
  17871. test ! -s conftest.err
  17872. } && test -s conftest.$ac_objext; then
  17873. ac_cv_prog_cc_g=yes
  17874. else
  17875. echo "$as_me: failed program was:" >&5
  17876. sed 's/^/| /' conftest.$ac_ext >&5
  17877. fi
  17878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17879. fi
  17880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17881. fi
  17882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17883. ac_c_werror_flag=$ac_save_c_werror_flag
  17884. fi
  17885. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17886. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  17887. if test "$ac_test_CFLAGS" = set; then
  17888. CFLAGS=$ac_save_CFLAGS
  17889. elif test $ac_cv_prog_cc_g = yes; then
  17890. if test "$GCC" = yes; then
  17891. CFLAGS="-g -O2"
  17892. else
  17893. CFLAGS="-g"
  17894. fi
  17895. else
  17896. if test "$GCC" = yes; then
  17897. CFLAGS="-O2"
  17898. else
  17899. CFLAGS=
  17900. fi
  17901. fi
  17902. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  17903. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  17904. if test "${ac_cv_prog_cc_c89+set}" = set; then
  17905. echo $ECHO_N "(cached) $ECHO_C" >&6
  17906. else
  17907. ac_cv_prog_cc_c89=no
  17908. ac_save_CC=$CC
  17909. cat >conftest.$ac_ext <<_ACEOF
  17910. /* confdefs.h. */
  17911. _ACEOF
  17912. cat confdefs.h >>conftest.$ac_ext
  17913. cat >>conftest.$ac_ext <<_ACEOF
  17914. /* end confdefs.h. */
  17915. #include <stdarg.h>
  17916. #include <stdio.h>
  17917. #include <sys/types.h>
  17918. #include <sys/stat.h>
  17919. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17920. struct buf { int x; };
  17921. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17922. static char *e (p, i)
  17923. char **p;
  17924. int i;
  17925. {
  17926. return p[i];
  17927. }
  17928. static char *f (char * (*g) (char **, int), char **p, ...)
  17929. {
  17930. char *s;
  17931. va_list v;
  17932. va_start (v,p);
  17933. s = g (p, va_arg (v,int));
  17934. va_end (v);
  17935. return s;
  17936. }
  17937. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17938. function prototypes and stuff, but not '\xHH' hex character constants.
  17939. These don't provoke an error unfortunately, instead are silently treated
  17940. as 'x'. The following induces an error, until -std is added to get
  17941. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17942. array size at least. It's necessary to write '\x00'==0 to get something
  17943. that's true only with -std. */
  17944. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17945. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  17946. inside strings and character constants. */
  17947. #define FOO(x) 'x'
  17948. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  17949. int test (int i, double x);
  17950. struct s1 {int (*f) (int a);};
  17951. struct s2 {int (*f) (double a);};
  17952. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17953. int argc;
  17954. char **argv;
  17955. int
  17956. main ()
  17957. {
  17958. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17959. ;
  17960. return 0;
  17961. }
  17962. _ACEOF
  17963. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  17964. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17965. do
  17966. CC="$ac_save_CC $ac_arg"
  17967. rm -f conftest.$ac_objext
  17968. if { (ac_try="$ac_compile"
  17969. case "(($ac_try" in
  17970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17971. *) ac_try_echo=$ac_try;;
  17972. esac
  17973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17974. (eval "$ac_compile") 2>conftest.er1
  17975. ac_status=$?
  17976. grep -v '^ *+' conftest.er1 >conftest.err
  17977. rm -f conftest.er1
  17978. cat conftest.err >&5
  17979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17980. (exit $ac_status); } && {
  17981. test -z "$ac_c_werror_flag" ||
  17982. test ! -s conftest.err
  17983. } && test -s conftest.$ac_objext; then
  17984. ac_cv_prog_cc_c89=$ac_arg
  17985. else
  17986. echo "$as_me: failed program was:" >&5
  17987. sed 's/^/| /' conftest.$ac_ext >&5
  17988. fi
  17989. rm -f core conftest.err conftest.$ac_objext
  17990. test "x$ac_cv_prog_cc_c89" != "xno" && break
  17991. done
  17992. rm -f conftest.$ac_ext
  17993. CC=$ac_save_CC
  17994. fi
  17995. # AC_CACHE_VAL
  17996. case "x$ac_cv_prog_cc_c89" in
  17997. x)
  17998. { echo "$as_me:$LINENO: result: none needed" >&5
  17999. echo "${ECHO_T}none needed" >&6; } ;;
  18000. xno)
  18001. { echo "$as_me:$LINENO: result: unsupported" >&5
  18002. echo "${ECHO_T}unsupported" >&6; } ;;
  18003. *)
  18004. CC="$CC $ac_cv_prog_cc_c89"
  18005. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18006. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18007. esac
  18008. ac_ext=c
  18009. ac_cpp='$CPP $CPPFLAGS'
  18010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18013. depcc="$CC" am_compiler_list=
  18014. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18015. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18016. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18017. echo $ECHO_N "(cached) $ECHO_C" >&6
  18018. else
  18019. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18020. # We make a subdir and do the tests there. Otherwise we can end up
  18021. # making bogus files that we don't know about and never remove. For
  18022. # instance it was reported that on HP-UX the gcc test will end up
  18023. # making a dummy file named `D' -- because `-MD' means `put the output
  18024. # in D'.
  18025. mkdir conftest.dir
  18026. # Copy depcomp to subdir because otherwise we won't find it if we're
  18027. # using a relative directory.
  18028. cp "$am_depcomp" conftest.dir
  18029. cd conftest.dir
  18030. # We will build objects and dependencies in a subdirectory because
  18031. # it helps to detect inapplicable dependency modes. For instance
  18032. # both Tru64's cc and ICC support -MD to output dependencies as a
  18033. # side effect of compilation, but ICC will put the dependencies in
  18034. # the current directory while Tru64 will put them in the object
  18035. # directory.
  18036. mkdir sub
  18037. am_cv_CC_dependencies_compiler_type=none
  18038. if test "$am_compiler_list" = ""; then
  18039. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18040. fi
  18041. for depmode in $am_compiler_list; do
  18042. # Setup a source with many dependencies, because some compilers
  18043. # like to wrap large dependency lists on column 80 (with \), and
  18044. # we should not choose a depcomp mode which is confused by this.
  18045. #
  18046. # We need to recreate these files for each test, as the compiler may
  18047. # overwrite some of them when testing with obscure command lines.
  18048. # This happens at least with the AIX C compiler.
  18049. : > sub/conftest.c
  18050. for i in 1 2 3 4 5 6; do
  18051. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18052. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18053. # Solaris 8's {/usr,}/bin/sh.
  18054. touch sub/conftst$i.h
  18055. done
  18056. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18057. case $depmode in
  18058. nosideeffect)
  18059. # after this tag, mechanisms are not by side-effect, so they'll
  18060. # only be used when explicitly requested
  18061. if test "x$enable_dependency_tracking" = xyes; then
  18062. continue
  18063. else
  18064. break
  18065. fi
  18066. ;;
  18067. none) break ;;
  18068. esac
  18069. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18070. # mode. It turns out that the SunPro C++ compiler does not properly
  18071. # handle `-M -o', and we need to detect this.
  18072. if depmode=$depmode \
  18073. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18074. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18075. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18076. >/dev/null 2>conftest.err &&
  18077. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18078. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18079. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18080. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18081. # icc doesn't choke on unknown options, it will just issue warnings
  18082. # or remarks (even with -Werror). So we grep stderr for any message
  18083. # that says an option was ignored or not supported.
  18084. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18085. # icc: Command line warning: ignoring option '-M'; no argument required
  18086. # The diagnosis changed in icc 8.0:
  18087. # icc: Command line remark: option '-MP' not supported
  18088. if (grep 'ignoring option' conftest.err ||
  18089. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18090. am_cv_CC_dependencies_compiler_type=$depmode
  18091. break
  18092. fi
  18093. fi
  18094. done
  18095. cd ..
  18096. rm -rf conftest.dir
  18097. else
  18098. am_cv_CC_dependencies_compiler_type=none
  18099. fi
  18100. fi
  18101. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  18102. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  18103. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  18104. if
  18105. test "x$enable_dependency_tracking" != xno \
  18106. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  18107. am__fastdepCC_TRUE=
  18108. am__fastdepCC_FALSE='#'
  18109. else
  18110. am__fastdepCC_TRUE='#'
  18111. am__fastdepCC_FALSE=
  18112. fi
  18113. case $ac_cv_prog_cc_stdc in
  18114. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  18115. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  18116. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  18117. if test "${ac_cv_prog_cc_c99+set}" = set; then
  18118. echo $ECHO_N "(cached) $ECHO_C" >&6
  18119. else
  18120. ac_cv_prog_cc_c99=no
  18121. ac_save_CC=$CC
  18122. cat >conftest.$ac_ext <<_ACEOF
  18123. /* confdefs.h. */
  18124. _ACEOF
  18125. cat confdefs.h >>conftest.$ac_ext
  18126. cat >>conftest.$ac_ext <<_ACEOF
  18127. /* end confdefs.h. */
  18128. #include <stdarg.h>
  18129. #include <stdbool.h>
  18130. #include <stdlib.h>
  18131. #include <wchar.h>
  18132. #include <stdio.h>
  18133. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  18134. #define debug(...) fprintf (stderr, __VA_ARGS__)
  18135. #define showlist(...) puts (#__VA_ARGS__)
  18136. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  18137. static void
  18138. test_varargs_macros (void)
  18139. {
  18140. int x = 1234;
  18141. int y = 5678;
  18142. debug ("Flag");
  18143. debug ("X = %d\n", x);
  18144. showlist (The first, second, and third items.);
  18145. report (x>y, "x is %d but y is %d", x, y);
  18146. }
  18147. // Check long long types.
  18148. #define BIG64 18446744073709551615ull
  18149. #define BIG32 4294967295ul
  18150. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  18151. #if !BIG_OK
  18152. your preprocessor is broken;
  18153. #endif
  18154. #if BIG_OK
  18155. #else
  18156. your preprocessor is broken;
  18157. #endif
  18158. static long long int bignum = -9223372036854775807LL;
  18159. static unsigned long long int ubignum = BIG64;
  18160. struct incomplete_array
  18161. {
  18162. int datasize;
  18163. double data[];
  18164. };
  18165. struct named_init {
  18166. int number;
  18167. const wchar_t *name;
  18168. double average;
  18169. };
  18170. typedef const char *ccp;
  18171. static inline int
  18172. test_restrict (ccp restrict text)
  18173. {
  18174. // See if C++-style comments work.
  18175. // Iterate through items via the restricted pointer.
  18176. // Also check for declarations in for loops.
  18177. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  18178. continue;
  18179. return 0;
  18180. }
  18181. // Check varargs and va_copy.
  18182. static void
  18183. test_varargs (const char *format, ...)
  18184. {
  18185. va_list args;
  18186. va_start (args, format);
  18187. va_list args_copy;
  18188. va_copy (args_copy, args);
  18189. const char *str;
  18190. int number;
  18191. float fnumber;
  18192. while (*format)
  18193. {
  18194. switch (*format++)
  18195. {
  18196. case 's': // string
  18197. str = va_arg (args_copy, const char *);
  18198. break;
  18199. case 'd': // int
  18200. number = va_arg (args_copy, int);
  18201. break;
  18202. case 'f': // float
  18203. fnumber = va_arg (args_copy, double);
  18204. break;
  18205. default:
  18206. break;
  18207. }
  18208. }
  18209. va_end (args_copy);
  18210. va_end (args);
  18211. }
  18212. int
  18213. main ()
  18214. {
  18215. // Check bool.
  18216. _Bool success = false;
  18217. // Check restrict.
  18218. if (test_restrict ("String literal") == 0)
  18219. success = true;
  18220. char *restrict newvar = "Another string";
  18221. // Check varargs.
  18222. test_varargs ("s, d' f .", "string", 65, 34.234);
  18223. test_varargs_macros ();
  18224. // Check flexible array members.
  18225. struct incomplete_array *ia =
  18226. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  18227. ia->datasize = 10;
  18228. for (int i = 0; i < ia->datasize; ++i)
  18229. ia->data[i] = i * 1.234;
  18230. // Check named initializers.
  18231. struct named_init ni = {
  18232. .number = 34,
  18233. .name = L"Test wide string",
  18234. .average = 543.34343,
  18235. };
  18236. ni.number = 58;
  18237. int dynamic_array[ni.number];
  18238. dynamic_array[ni.number - 1] = 543;
  18239. // work around unused variable warnings
  18240. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  18241. || dynamic_array[ni.number - 1] != 543);
  18242. ;
  18243. return 0;
  18244. }
  18245. _ACEOF
  18246. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  18247. do
  18248. CC="$ac_save_CC $ac_arg"
  18249. rm -f conftest.$ac_objext
  18250. if { (ac_try="$ac_compile"
  18251. case "(($ac_try" in
  18252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18253. *) ac_try_echo=$ac_try;;
  18254. esac
  18255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18256. (eval "$ac_compile") 2>conftest.er1
  18257. ac_status=$?
  18258. grep -v '^ *+' conftest.er1 >conftest.err
  18259. rm -f conftest.er1
  18260. cat conftest.err >&5
  18261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18262. (exit $ac_status); } && {
  18263. test -z "$ac_c_werror_flag" ||
  18264. test ! -s conftest.err
  18265. } && test -s conftest.$ac_objext; then
  18266. ac_cv_prog_cc_c99=$ac_arg
  18267. else
  18268. echo "$as_me: failed program was:" >&5
  18269. sed 's/^/| /' conftest.$ac_ext >&5
  18270. fi
  18271. rm -f core conftest.err conftest.$ac_objext
  18272. test "x$ac_cv_prog_cc_c99" != "xno" && break
  18273. done
  18274. rm -f conftest.$ac_ext
  18275. CC=$ac_save_CC
  18276. fi
  18277. # AC_CACHE_VAL
  18278. case "x$ac_cv_prog_cc_c99" in
  18279. x)
  18280. { echo "$as_me:$LINENO: result: none needed" >&5
  18281. echo "${ECHO_T}none needed" >&6; } ;;
  18282. xno)
  18283. { echo "$as_me:$LINENO: result: unsupported" >&5
  18284. echo "${ECHO_T}unsupported" >&6; } ;;
  18285. *)
  18286. CC="$CC $ac_cv_prog_cc_c99"
  18287. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  18288. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  18289. esac
  18290. if test "x$ac_cv_prog_cc_c99" != xno; then
  18291. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  18292. else
  18293. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18294. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18295. if test "${ac_cv_prog_cc_c89+set}" = set; then
  18296. echo $ECHO_N "(cached) $ECHO_C" >&6
  18297. else
  18298. ac_cv_prog_cc_c89=no
  18299. ac_save_CC=$CC
  18300. cat >conftest.$ac_ext <<_ACEOF
  18301. /* confdefs.h. */
  18302. _ACEOF
  18303. cat confdefs.h >>conftest.$ac_ext
  18304. cat >>conftest.$ac_ext <<_ACEOF
  18305. /* end confdefs.h. */
  18306. #include <stdarg.h>
  18307. #include <stdio.h>
  18308. #include <sys/types.h>
  18309. #include <sys/stat.h>
  18310. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18311. struct buf { int x; };
  18312. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18313. static char *e (p, i)
  18314. char **p;
  18315. int i;
  18316. {
  18317. return p[i];
  18318. }
  18319. static char *f (char * (*g) (char **, int), char **p, ...)
  18320. {
  18321. char *s;
  18322. va_list v;
  18323. va_start (v,p);
  18324. s = g (p, va_arg (v,int));
  18325. va_end (v);
  18326. return s;
  18327. }
  18328. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18329. function prototypes and stuff, but not '\xHH' hex character constants.
  18330. These don't provoke an error unfortunately, instead are silently treated
  18331. as 'x'. The following induces an error, until -std is added to get
  18332. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18333. array size at least. It's necessary to write '\x00'==0 to get something
  18334. that's true only with -std. */
  18335. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18336. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18337. inside strings and character constants. */
  18338. #define FOO(x) 'x'
  18339. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18340. int test (int i, double x);
  18341. struct s1 {int (*f) (int a);};
  18342. struct s2 {int (*f) (double a);};
  18343. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18344. int argc;
  18345. char **argv;
  18346. int
  18347. main ()
  18348. {
  18349. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18350. ;
  18351. return 0;
  18352. }
  18353. _ACEOF
  18354. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18355. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18356. do
  18357. CC="$ac_save_CC $ac_arg"
  18358. rm -f conftest.$ac_objext
  18359. if { (ac_try="$ac_compile"
  18360. case "(($ac_try" in
  18361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18362. *) ac_try_echo=$ac_try;;
  18363. esac
  18364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18365. (eval "$ac_compile") 2>conftest.er1
  18366. ac_status=$?
  18367. grep -v '^ *+' conftest.er1 >conftest.err
  18368. rm -f conftest.er1
  18369. cat conftest.err >&5
  18370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18371. (exit $ac_status); } && {
  18372. test -z "$ac_c_werror_flag" ||
  18373. test ! -s conftest.err
  18374. } && test -s conftest.$ac_objext; then
  18375. ac_cv_prog_cc_c89=$ac_arg
  18376. else
  18377. echo "$as_me: failed program was:" >&5
  18378. sed 's/^/| /' conftest.$ac_ext >&5
  18379. fi
  18380. rm -f core conftest.err conftest.$ac_objext
  18381. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18382. done
  18383. rm -f conftest.$ac_ext
  18384. CC=$ac_save_CC
  18385. fi
  18386. # AC_CACHE_VAL
  18387. case "x$ac_cv_prog_cc_c89" in
  18388. x)
  18389. { echo "$as_me:$LINENO: result: none needed" >&5
  18390. echo "${ECHO_T}none needed" >&6; } ;;
  18391. xno)
  18392. { echo "$as_me:$LINENO: result: unsupported" >&5
  18393. echo "${ECHO_T}unsupported" >&6; } ;;
  18394. *)
  18395. CC="$CC $ac_cv_prog_cc_c89"
  18396. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18397. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18398. esac
  18399. if test "x$ac_cv_prog_cc_c89" != xno; then
  18400. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  18401. else
  18402. ac_cv_prog_cc_stdc=no
  18403. fi
  18404. fi
  18405. ;;
  18406. esac
  18407. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  18408. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  18409. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18410. echo $ECHO_N "(cached) $ECHO_C" >&6
  18411. fi
  18412. case $ac_cv_prog_cc_stdc in
  18413. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  18414. echo "${ECHO_T}unsupported" >&6; } ;;
  18415. '') { echo "$as_me:$LINENO: result: none needed" >&5
  18416. echo "${ECHO_T}none needed" >&6; } ;;
  18417. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18418. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  18419. esac
  18420. ac_ext=cpp
  18421. ac_cpp='$CXXCPP $CPPFLAGS'
  18422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18425. if test -z "$CXX"; then
  18426. if test -n "$CCC"; then
  18427. CXX=$CCC
  18428. else
  18429. if test -n "$ac_tool_prefix"; then
  18430. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18431. do
  18432. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18433. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18434. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18435. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18436. if test "${ac_cv_prog_CXX+set}" = set; then
  18437. echo $ECHO_N "(cached) $ECHO_C" >&6
  18438. else
  18439. if test -n "$CXX"; then
  18440. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18441. else
  18442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18443. for as_dir in $PATH
  18444. do
  18445. IFS=$as_save_IFS
  18446. test -z "$as_dir" && as_dir=.
  18447. for ac_exec_ext in '' $ac_executable_extensions; do
  18448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18449. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18450. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18451. break 2
  18452. fi
  18453. done
  18454. done
  18455. IFS=$as_save_IFS
  18456. fi
  18457. fi
  18458. CXX=$ac_cv_prog_CXX
  18459. if test -n "$CXX"; then
  18460. { echo "$as_me:$LINENO: result: $CXX" >&5
  18461. echo "${ECHO_T}$CXX" >&6; }
  18462. else
  18463. { echo "$as_me:$LINENO: result: no" >&5
  18464. echo "${ECHO_T}no" >&6; }
  18465. fi
  18466. test -n "$CXX" && break
  18467. done
  18468. fi
  18469. if test -z "$CXX"; then
  18470. ac_ct_CXX=$CXX
  18471. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18472. do
  18473. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18474. set dummy $ac_prog; ac_word=$2
  18475. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18476. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18477. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18478. echo $ECHO_N "(cached) $ECHO_C" >&6
  18479. else
  18480. if test -n "$ac_ct_CXX"; then
  18481. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18482. else
  18483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18484. for as_dir in $PATH
  18485. do
  18486. IFS=$as_save_IFS
  18487. test -z "$as_dir" && as_dir=.
  18488. for ac_exec_ext in '' $ac_executable_extensions; do
  18489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18490. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18491. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18492. break 2
  18493. fi
  18494. done
  18495. done
  18496. IFS=$as_save_IFS
  18497. fi
  18498. fi
  18499. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18500. if test -n "$ac_ct_CXX"; then
  18501. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18502. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  18503. else
  18504. { echo "$as_me:$LINENO: result: no" >&5
  18505. echo "${ECHO_T}no" >&6; }
  18506. fi
  18507. test -n "$ac_ct_CXX" && break
  18508. done
  18509. if test "x$ac_ct_CXX" = x; then
  18510. CXX="g++"
  18511. else
  18512. case $cross_compiling:$ac_tool_warned in
  18513. yes:)
  18514. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18515. whose name does not start with the host triplet. If you think this
  18516. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18517. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18518. whose name does not start with the host triplet. If you think this
  18519. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18520. ac_tool_warned=yes ;;
  18521. esac
  18522. CXX=$ac_ct_CXX
  18523. fi
  18524. fi
  18525. fi
  18526. fi
  18527. # Provide some information about the compiler.
  18528. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18529. ac_compiler=`set X $ac_compile; echo $2`
  18530. { (ac_try="$ac_compiler --version >&5"
  18531. case "(($ac_try" in
  18532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18533. *) ac_try_echo=$ac_try;;
  18534. esac
  18535. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18536. (eval "$ac_compiler --version >&5") 2>&5
  18537. ac_status=$?
  18538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18539. (exit $ac_status); }
  18540. { (ac_try="$ac_compiler -v >&5"
  18541. case "(($ac_try" in
  18542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18543. *) ac_try_echo=$ac_try;;
  18544. esac
  18545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18546. (eval "$ac_compiler -v >&5") 2>&5
  18547. ac_status=$?
  18548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18549. (exit $ac_status); }
  18550. { (ac_try="$ac_compiler -V >&5"
  18551. case "(($ac_try" in
  18552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18553. *) ac_try_echo=$ac_try;;
  18554. esac
  18555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18556. (eval "$ac_compiler -V >&5") 2>&5
  18557. ac_status=$?
  18558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18559. (exit $ac_status); }
  18560. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18561. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  18562. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18563. echo $ECHO_N "(cached) $ECHO_C" >&6
  18564. else
  18565. cat >conftest.$ac_ext <<_ACEOF
  18566. /* confdefs.h. */
  18567. _ACEOF
  18568. cat confdefs.h >>conftest.$ac_ext
  18569. cat >>conftest.$ac_ext <<_ACEOF
  18570. /* end confdefs.h. */
  18571. int
  18572. main ()
  18573. {
  18574. #ifndef __GNUC__
  18575. choke me
  18576. #endif
  18577. ;
  18578. return 0;
  18579. }
  18580. _ACEOF
  18581. rm -f conftest.$ac_objext
  18582. if { (ac_try="$ac_compile"
  18583. case "(($ac_try" in
  18584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18585. *) ac_try_echo=$ac_try;;
  18586. esac
  18587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18588. (eval "$ac_compile") 2>conftest.er1
  18589. ac_status=$?
  18590. grep -v '^ *+' conftest.er1 >conftest.err
  18591. rm -f conftest.er1
  18592. cat conftest.err >&5
  18593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18594. (exit $ac_status); } && {
  18595. test -z "$ac_cxx_werror_flag" ||
  18596. test ! -s conftest.err
  18597. } && test -s conftest.$ac_objext; then
  18598. ac_compiler_gnu=yes
  18599. else
  18600. echo "$as_me: failed program was:" >&5
  18601. sed 's/^/| /' conftest.$ac_ext >&5
  18602. ac_compiler_gnu=no
  18603. fi
  18604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18605. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18606. fi
  18607. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18608. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  18609. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18610. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18611. ac_save_CXXFLAGS=$CXXFLAGS
  18612. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18613. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  18614. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18615. echo $ECHO_N "(cached) $ECHO_C" >&6
  18616. else
  18617. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18618. ac_cxx_werror_flag=yes
  18619. ac_cv_prog_cxx_g=no
  18620. CXXFLAGS="-g"
  18621. cat >conftest.$ac_ext <<_ACEOF
  18622. /* confdefs.h. */
  18623. _ACEOF
  18624. cat confdefs.h >>conftest.$ac_ext
  18625. cat >>conftest.$ac_ext <<_ACEOF
  18626. /* end confdefs.h. */
  18627. int
  18628. main ()
  18629. {
  18630. ;
  18631. return 0;
  18632. }
  18633. _ACEOF
  18634. rm -f conftest.$ac_objext
  18635. if { (ac_try="$ac_compile"
  18636. case "(($ac_try" in
  18637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18638. *) ac_try_echo=$ac_try;;
  18639. esac
  18640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18641. (eval "$ac_compile") 2>conftest.er1
  18642. ac_status=$?
  18643. grep -v '^ *+' conftest.er1 >conftest.err
  18644. rm -f conftest.er1
  18645. cat conftest.err >&5
  18646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18647. (exit $ac_status); } && {
  18648. test -z "$ac_cxx_werror_flag" ||
  18649. test ! -s conftest.err
  18650. } && test -s conftest.$ac_objext; then
  18651. ac_cv_prog_cxx_g=yes
  18652. else
  18653. echo "$as_me: failed program was:" >&5
  18654. sed 's/^/| /' conftest.$ac_ext >&5
  18655. CXXFLAGS=""
  18656. cat >conftest.$ac_ext <<_ACEOF
  18657. /* confdefs.h. */
  18658. _ACEOF
  18659. cat confdefs.h >>conftest.$ac_ext
  18660. cat >>conftest.$ac_ext <<_ACEOF
  18661. /* end confdefs.h. */
  18662. int
  18663. main ()
  18664. {
  18665. ;
  18666. return 0;
  18667. }
  18668. _ACEOF
  18669. rm -f conftest.$ac_objext
  18670. if { (ac_try="$ac_compile"
  18671. case "(($ac_try" in
  18672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18673. *) ac_try_echo=$ac_try;;
  18674. esac
  18675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18676. (eval "$ac_compile") 2>conftest.er1
  18677. ac_status=$?
  18678. grep -v '^ *+' conftest.er1 >conftest.err
  18679. rm -f conftest.er1
  18680. cat conftest.err >&5
  18681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18682. (exit $ac_status); } && {
  18683. test -z "$ac_cxx_werror_flag" ||
  18684. test ! -s conftest.err
  18685. } && test -s conftest.$ac_objext; then
  18686. :
  18687. else
  18688. echo "$as_me: failed program was:" >&5
  18689. sed 's/^/| /' conftest.$ac_ext >&5
  18690. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18691. CXXFLAGS="-g"
  18692. cat >conftest.$ac_ext <<_ACEOF
  18693. /* confdefs.h. */
  18694. _ACEOF
  18695. cat confdefs.h >>conftest.$ac_ext
  18696. cat >>conftest.$ac_ext <<_ACEOF
  18697. /* end confdefs.h. */
  18698. int
  18699. main ()
  18700. {
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. rm -f conftest.$ac_objext
  18706. if { (ac_try="$ac_compile"
  18707. case "(($ac_try" in
  18708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18709. *) ac_try_echo=$ac_try;;
  18710. esac
  18711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18712. (eval "$ac_compile") 2>conftest.er1
  18713. ac_status=$?
  18714. grep -v '^ *+' conftest.er1 >conftest.err
  18715. rm -f conftest.er1
  18716. cat conftest.err >&5
  18717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18718. (exit $ac_status); } && {
  18719. test -z "$ac_cxx_werror_flag" ||
  18720. test ! -s conftest.err
  18721. } && test -s conftest.$ac_objext; then
  18722. ac_cv_prog_cxx_g=yes
  18723. else
  18724. echo "$as_me: failed program was:" >&5
  18725. sed 's/^/| /' conftest.$ac_ext >&5
  18726. fi
  18727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18730. fi
  18731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18732. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18733. fi
  18734. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18735. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  18736. if test "$ac_test_CXXFLAGS" = set; then
  18737. CXXFLAGS=$ac_save_CXXFLAGS
  18738. elif test $ac_cv_prog_cxx_g = yes; then
  18739. if test "$GXX" = yes; then
  18740. CXXFLAGS="-g -O2"
  18741. else
  18742. CXXFLAGS="-g"
  18743. fi
  18744. else
  18745. if test "$GXX" = yes; then
  18746. CXXFLAGS="-O2"
  18747. else
  18748. CXXFLAGS=
  18749. fi
  18750. fi
  18751. ac_ext=c
  18752. ac_cpp='$CPP $CPPFLAGS'
  18753. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18754. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18755. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18756. depcc="$CXX" am_compiler_list=
  18757. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18758. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18759. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18760. echo $ECHO_N "(cached) $ECHO_C" >&6
  18761. else
  18762. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18763. # We make a subdir and do the tests there. Otherwise we can end up
  18764. # making bogus files that we don't know about and never remove. For
  18765. # instance it was reported that on HP-UX the gcc test will end up
  18766. # making a dummy file named `D' -- because `-MD' means `put the output
  18767. # in D'.
  18768. mkdir conftest.dir
  18769. # Copy depcomp to subdir because otherwise we won't find it if we're
  18770. # using a relative directory.
  18771. cp "$am_depcomp" conftest.dir
  18772. cd conftest.dir
  18773. # We will build objects and dependencies in a subdirectory because
  18774. # it helps to detect inapplicable dependency modes. For instance
  18775. # both Tru64's cc and ICC support -MD to output dependencies as a
  18776. # side effect of compilation, but ICC will put the dependencies in
  18777. # the current directory while Tru64 will put them in the object
  18778. # directory.
  18779. mkdir sub
  18780. am_cv_CXX_dependencies_compiler_type=none
  18781. if test "$am_compiler_list" = ""; then
  18782. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18783. fi
  18784. for depmode in $am_compiler_list; do
  18785. # Setup a source with many dependencies, because some compilers
  18786. # like to wrap large dependency lists on column 80 (with \), and
  18787. # we should not choose a depcomp mode which is confused by this.
  18788. #
  18789. # We need to recreate these files for each test, as the compiler may
  18790. # overwrite some of them when testing with obscure command lines.
  18791. # This happens at least with the AIX C compiler.
  18792. : > sub/conftest.c
  18793. for i in 1 2 3 4 5 6; do
  18794. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18795. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18796. # Solaris 8's {/usr,}/bin/sh.
  18797. touch sub/conftst$i.h
  18798. done
  18799. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18800. case $depmode in
  18801. nosideeffect)
  18802. # after this tag, mechanisms are not by side-effect, so they'll
  18803. # only be used when explicitly requested
  18804. if test "x$enable_dependency_tracking" = xyes; then
  18805. continue
  18806. else
  18807. break
  18808. fi
  18809. ;;
  18810. none) break ;;
  18811. esac
  18812. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18813. # mode. It turns out that the SunPro C++ compiler does not properly
  18814. # handle `-M -o', and we need to detect this.
  18815. if depmode=$depmode \
  18816. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18817. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18818. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18819. >/dev/null 2>conftest.err &&
  18820. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18821. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18822. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18823. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18824. # icc doesn't choke on unknown options, it will just issue warnings
  18825. # or remarks (even with -Werror). So we grep stderr for any message
  18826. # that says an option was ignored or not supported.
  18827. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18828. # icc: Command line warning: ignoring option '-M'; no argument required
  18829. # The diagnosis changed in icc 8.0:
  18830. # icc: Command line remark: option '-MP' not supported
  18831. if (grep 'ignoring option' conftest.err ||
  18832. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18833. am_cv_CXX_dependencies_compiler_type=$depmode
  18834. break
  18835. fi
  18836. fi
  18837. done
  18838. cd ..
  18839. rm -rf conftest.dir
  18840. else
  18841. am_cv_CXX_dependencies_compiler_type=none
  18842. fi
  18843. fi
  18844. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  18845. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  18846. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  18847. if
  18848. test "x$enable_dependency_tracking" != xno \
  18849. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  18850. am__fastdepCXX_TRUE=
  18851. am__fastdepCXX_FALSE='#'
  18852. else
  18853. am__fastdepCXX_TRUE='#'
  18854. am__fastdepCXX_FALSE=
  18855. fi
  18856. ac_ext=c
  18857. ac_cpp='$CPP $CPPFLAGS'
  18858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18861. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18862. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  18863. # On Suns, sometimes $CPP names a directory.
  18864. if test -n "$CPP" && test -d "$CPP"; then
  18865. CPP=
  18866. fi
  18867. if test -z "$CPP"; then
  18868. if test "${ac_cv_prog_CPP+set}" = set; then
  18869. echo $ECHO_N "(cached) $ECHO_C" >&6
  18870. else
  18871. # Double quotes because CPP needs to be expanded
  18872. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18873. do
  18874. ac_preproc_ok=false
  18875. for ac_c_preproc_warn_flag in '' yes
  18876. do
  18877. # Use a header file that comes with gcc, so configuring glibc
  18878. # with a fresh cross-compiler works.
  18879. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18880. # <limits.h> exists even on freestanding compilers.
  18881. # On the NeXT, cc -E runs the code through the compiler's parser,
  18882. # not just through cpp. "Syntax error" is here to catch this case.
  18883. cat >conftest.$ac_ext <<_ACEOF
  18884. /* confdefs.h. */
  18885. _ACEOF
  18886. cat confdefs.h >>conftest.$ac_ext
  18887. cat >>conftest.$ac_ext <<_ACEOF
  18888. /* end confdefs.h. */
  18889. #ifdef __STDC__
  18890. # include <limits.h>
  18891. #else
  18892. # include <assert.h>
  18893. #endif
  18894. Syntax error
  18895. _ACEOF
  18896. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18897. case "(($ac_try" in
  18898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18899. *) ac_try_echo=$ac_try;;
  18900. esac
  18901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18902. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18903. ac_status=$?
  18904. grep -v '^ *+' conftest.er1 >conftest.err
  18905. rm -f conftest.er1
  18906. cat conftest.err >&5
  18907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18908. (exit $ac_status); } >/dev/null && {
  18909. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18910. test ! -s conftest.err
  18911. }; then
  18912. :
  18913. else
  18914. echo "$as_me: failed program was:" >&5
  18915. sed 's/^/| /' conftest.$ac_ext >&5
  18916. # Broken: fails on valid input.
  18917. continue
  18918. fi
  18919. rm -f conftest.err conftest.$ac_ext
  18920. # OK, works on sane cases. Now check whether nonexistent headers
  18921. # can be detected and how.
  18922. cat >conftest.$ac_ext <<_ACEOF
  18923. /* confdefs.h. */
  18924. _ACEOF
  18925. cat confdefs.h >>conftest.$ac_ext
  18926. cat >>conftest.$ac_ext <<_ACEOF
  18927. /* end confdefs.h. */
  18928. #include <ac_nonexistent.h>
  18929. _ACEOF
  18930. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18931. case "(($ac_try" in
  18932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18933. *) ac_try_echo=$ac_try;;
  18934. esac
  18935. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18936. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18937. ac_status=$?
  18938. grep -v '^ *+' conftest.er1 >conftest.err
  18939. rm -f conftest.er1
  18940. cat conftest.err >&5
  18941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18942. (exit $ac_status); } >/dev/null && {
  18943. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18944. test ! -s conftest.err
  18945. }; then
  18946. # Broken: success on invalid input.
  18947. continue
  18948. else
  18949. echo "$as_me: failed program was:" >&5
  18950. sed 's/^/| /' conftest.$ac_ext >&5
  18951. # Passes both tests.
  18952. ac_preproc_ok=:
  18953. break
  18954. fi
  18955. rm -f conftest.err conftest.$ac_ext
  18956. done
  18957. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18958. rm -f conftest.err conftest.$ac_ext
  18959. if $ac_preproc_ok; then
  18960. break
  18961. fi
  18962. done
  18963. ac_cv_prog_CPP=$CPP
  18964. fi
  18965. CPP=$ac_cv_prog_CPP
  18966. else
  18967. ac_cv_prog_CPP=$CPP
  18968. fi
  18969. { echo "$as_me:$LINENO: result: $CPP" >&5
  18970. echo "${ECHO_T}$CPP" >&6; }
  18971. ac_preproc_ok=false
  18972. for ac_c_preproc_warn_flag in '' yes
  18973. do
  18974. # Use a header file that comes with gcc, so configuring glibc
  18975. # with a fresh cross-compiler works.
  18976. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18977. # <limits.h> exists even on freestanding compilers.
  18978. # On the NeXT, cc -E runs the code through the compiler's parser,
  18979. # not just through cpp. "Syntax error" is here to catch this case.
  18980. cat >conftest.$ac_ext <<_ACEOF
  18981. /* confdefs.h. */
  18982. _ACEOF
  18983. cat confdefs.h >>conftest.$ac_ext
  18984. cat >>conftest.$ac_ext <<_ACEOF
  18985. /* end confdefs.h. */
  18986. #ifdef __STDC__
  18987. # include <limits.h>
  18988. #else
  18989. # include <assert.h>
  18990. #endif
  18991. Syntax error
  18992. _ACEOF
  18993. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18994. case "(($ac_try" in
  18995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18996. *) ac_try_echo=$ac_try;;
  18997. esac
  18998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18999. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19000. ac_status=$?
  19001. grep -v '^ *+' conftest.er1 >conftest.err
  19002. rm -f conftest.er1
  19003. cat conftest.err >&5
  19004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19005. (exit $ac_status); } >/dev/null && {
  19006. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19007. test ! -s conftest.err
  19008. }; then
  19009. :
  19010. else
  19011. echo "$as_me: failed program was:" >&5
  19012. sed 's/^/| /' conftest.$ac_ext >&5
  19013. # Broken: fails on valid input.
  19014. continue
  19015. fi
  19016. rm -f conftest.err conftest.$ac_ext
  19017. # OK, works on sane cases. Now check whether nonexistent headers
  19018. # can be detected and how.
  19019. cat >conftest.$ac_ext <<_ACEOF
  19020. /* confdefs.h. */
  19021. _ACEOF
  19022. cat confdefs.h >>conftest.$ac_ext
  19023. cat >>conftest.$ac_ext <<_ACEOF
  19024. /* end confdefs.h. */
  19025. #include <ac_nonexistent.h>
  19026. _ACEOF
  19027. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19028. case "(($ac_try" in
  19029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19030. *) ac_try_echo=$ac_try;;
  19031. esac
  19032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19033. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19034. ac_status=$?
  19035. grep -v '^ *+' conftest.er1 >conftest.err
  19036. rm -f conftest.er1
  19037. cat conftest.err >&5
  19038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19039. (exit $ac_status); } >/dev/null && {
  19040. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19041. test ! -s conftest.err
  19042. }; then
  19043. # Broken: success on invalid input.
  19044. continue
  19045. else
  19046. echo "$as_me: failed program was:" >&5
  19047. sed 's/^/| /' conftest.$ac_ext >&5
  19048. # Passes both tests.
  19049. ac_preproc_ok=:
  19050. break
  19051. fi
  19052. rm -f conftest.err conftest.$ac_ext
  19053. done
  19054. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19055. rm -f conftest.err conftest.$ac_ext
  19056. if $ac_preproc_ok; then
  19057. :
  19058. else
  19059. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  19060. See \`config.log' for more details." >&5
  19061. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  19062. See \`config.log' for more details." >&2;}
  19063. { (exit 1); exit 1; }; }
  19064. fi
  19065. ac_ext=c
  19066. ac_cpp='$CPP $CPPFLAGS'
  19067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19070. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19071. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  19072. LN_S=$as_ln_s
  19073. if test "$LN_S" = "ln -s"; then
  19074. { echo "$as_me:$LINENO: result: yes" >&5
  19075. echo "${ECHO_T}yes" >&6; }
  19076. else
  19077. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19078. echo "${ECHO_T}no, using $LN_S" >&6; }
  19079. fi
  19080. if test -n "$ac_tool_prefix"; then
  19081. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19082. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19083. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19084. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19085. if test "${ac_cv_prog_RANLIB+set}" = set; then
  19086. echo $ECHO_N "(cached) $ECHO_C" >&6
  19087. else
  19088. if test -n "$RANLIB"; then
  19089. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19090. else
  19091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19092. for as_dir in $PATH
  19093. do
  19094. IFS=$as_save_IFS
  19095. test -z "$as_dir" && as_dir=.
  19096. for ac_exec_ext in '' $ac_executable_extensions; do
  19097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19098. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19099. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19100. break 2
  19101. fi
  19102. done
  19103. done
  19104. IFS=$as_save_IFS
  19105. fi
  19106. fi
  19107. RANLIB=$ac_cv_prog_RANLIB
  19108. if test -n "$RANLIB"; then
  19109. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  19110. echo "${ECHO_T}$RANLIB" >&6; }
  19111. else
  19112. { echo "$as_me:$LINENO: result: no" >&5
  19113. echo "${ECHO_T}no" >&6; }
  19114. fi
  19115. fi
  19116. if test -z "$ac_cv_prog_RANLIB"; then
  19117. ac_ct_RANLIB=$RANLIB
  19118. # Extract the first word of "ranlib", so it can be a program name with args.
  19119. set dummy ranlib; ac_word=$2
  19120. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19121. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19122. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  19123. echo $ECHO_N "(cached) $ECHO_C" >&6
  19124. else
  19125. if test -n "$ac_ct_RANLIB"; then
  19126. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19127. else
  19128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19129. for as_dir in $PATH
  19130. do
  19131. IFS=$as_save_IFS
  19132. test -z "$as_dir" && as_dir=.
  19133. for ac_exec_ext in '' $ac_executable_extensions; do
  19134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19135. ac_cv_prog_ac_ct_RANLIB="ranlib"
  19136. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19137. break 2
  19138. fi
  19139. done
  19140. done
  19141. IFS=$as_save_IFS
  19142. fi
  19143. fi
  19144. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19145. if test -n "$ac_ct_RANLIB"; then
  19146. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  19147. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  19148. else
  19149. { echo "$as_me:$LINENO: result: no" >&5
  19150. echo "${ECHO_T}no" >&6; }
  19151. fi
  19152. if test "x$ac_ct_RANLIB" = x; then
  19153. RANLIB=":"
  19154. else
  19155. case $cross_compiling:$ac_tool_warned in
  19156. yes:)
  19157. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19158. whose name does not start with the host triplet. If you think this
  19159. configuration is useful to you, please write to autoconf@gnu.org." >&5
  19160. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19161. whose name does not start with the host triplet. If you think this
  19162. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19163. ac_tool_warned=yes ;;
  19164. esac
  19165. RANLIB=$ac_ct_RANLIB
  19166. fi
  19167. else
  19168. RANLIB="$ac_cv_prog_RANLIB"
  19169. fi
  19170. for ac_prog in gawk mawk nawk awk
  19171. do
  19172. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19173. set dummy $ac_prog; ac_word=$2
  19174. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19176. if test "${ac_cv_prog_AWK+set}" = set; then
  19177. echo $ECHO_N "(cached) $ECHO_C" >&6
  19178. else
  19179. if test -n "$AWK"; then
  19180. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19181. else
  19182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19183. for as_dir in $PATH
  19184. do
  19185. IFS=$as_save_IFS
  19186. test -z "$as_dir" && as_dir=.
  19187. for ac_exec_ext in '' $ac_executable_extensions; do
  19188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19189. ac_cv_prog_AWK="$ac_prog"
  19190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19191. break 2
  19192. fi
  19193. done
  19194. done
  19195. IFS=$as_save_IFS
  19196. fi
  19197. fi
  19198. AWK=$ac_cv_prog_AWK
  19199. if test -n "$AWK"; then
  19200. { echo "$as_me:$LINENO: result: $AWK" >&5
  19201. echo "${ECHO_T}$AWK" >&6; }
  19202. else
  19203. { echo "$as_me:$LINENO: result: no" >&5
  19204. echo "${ECHO_T}no" >&6; }
  19205. fi
  19206. test -n "$AWK" && break
  19207. done
  19208. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19209. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  19210. if test "${ac_cv_path_SED+set}" = set; then
  19211. echo $ECHO_N "(cached) $ECHO_C" >&6
  19212. else
  19213. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19214. for ac_i in 1 2 3 4 5 6 7; do
  19215. ac_script="$ac_script$as_nl$ac_script"
  19216. done
  19217. echo "$ac_script" | sed 99q >conftest.sed
  19218. $as_unset ac_script || ac_script=
  19219. # Extract the first word of "sed gsed" to use in msg output
  19220. if test -z "$SED"; then
  19221. set dummy sed gsed; ac_prog_name=$2
  19222. if test "${ac_cv_path_SED+set}" = set; then
  19223. echo $ECHO_N "(cached) $ECHO_C" >&6
  19224. else
  19225. ac_path_SED_found=false
  19226. # Loop through the user's path and test for each of PROGNAME-LIST
  19227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19228. for as_dir in $PATH
  19229. do
  19230. IFS=$as_save_IFS
  19231. test -z "$as_dir" && as_dir=.
  19232. for ac_prog in sed gsed; do
  19233. for ac_exec_ext in '' $ac_executable_extensions; do
  19234. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19235. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19236. # Check for GNU ac_path_SED and select it if it is found.
  19237. # Check for GNU $ac_path_SED
  19238. case `"$ac_path_SED" --version 2>&1` in
  19239. *GNU*)
  19240. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19241. *)
  19242. ac_count=0
  19243. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19244. while :
  19245. do
  19246. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19247. mv "conftest.tmp" "conftest.in"
  19248. cp "conftest.in" "conftest.nl"
  19249. echo '' >> "conftest.nl"
  19250. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19251. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19252. ac_count=`expr $ac_count + 1`
  19253. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19254. # Best one so far, save it but keep looking for a better one
  19255. ac_cv_path_SED="$ac_path_SED"
  19256. ac_path_SED_max=$ac_count
  19257. fi
  19258. # 10*(2^10) chars as input seems more than enough
  19259. test $ac_count -gt 10 && break
  19260. done
  19261. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19262. esac
  19263. $ac_path_SED_found && break 3
  19264. done
  19265. done
  19266. done
  19267. IFS=$as_save_IFS
  19268. fi
  19269. SED="$ac_cv_path_SED"
  19270. if test -z "$SED"; then
  19271. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  19272. echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  19273. { (exit 1); exit 1; }; }
  19274. fi
  19275. else
  19276. ac_cv_path_SED=$SED
  19277. fi
  19278. fi
  19279. { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  19280. echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  19281. SED="$ac_cv_path_SED"
  19282. rm -f conftest.sed
  19283. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19284. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  19285. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19286. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19287. echo $ECHO_N "(cached) $ECHO_C" >&6
  19288. else
  19289. cat >conftest.make <<\_ACEOF
  19290. SHELL = /bin/sh
  19291. all:
  19292. @echo '@@@%%%=$(MAKE)=@@@%%%'
  19293. _ACEOF
  19294. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19295. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19296. *@@@%%%=?*=@@@%%%*)
  19297. eval ac_cv_prog_make_${ac_make}_set=yes;;
  19298. *)
  19299. eval ac_cv_prog_make_${ac_make}_set=no;;
  19300. esac
  19301. rm -f conftest.make
  19302. fi
  19303. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19304. { echo "$as_me:$LINENO: result: yes" >&5
  19305. echo "${ECHO_T}yes" >&6; }
  19306. SET_MAKE=
  19307. else
  19308. { echo "$as_me:$LINENO: result: no" >&5
  19309. echo "${ECHO_T}no" >&6; }
  19310. SET_MAKE="MAKE=${MAKE-make}"
  19311. fi
  19312. # Extract the first word of "printf", so it can be a program name with args.
  19313. set dummy printf; ac_word=$2
  19314. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19316. if test "${ac_cv_path_PRINTF+set}" = set; then
  19317. echo $ECHO_N "(cached) $ECHO_C" >&6
  19318. else
  19319. case $PRINTF in
  19320. [\\/]* | ?:[\\/]*)
  19321. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19322. ;;
  19323. *)
  19324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19325. for as_dir in $PATH
  19326. do
  19327. IFS=$as_save_IFS
  19328. test -z "$as_dir" && as_dir=.
  19329. for ac_exec_ext in '' $ac_executable_extensions; do
  19330. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19331. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19332. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19333. break 2
  19334. fi
  19335. done
  19336. done
  19337. IFS=$as_save_IFS
  19338. ;;
  19339. esac
  19340. fi
  19341. PRINTF=$ac_cv_path_PRINTF
  19342. if test -n "$PRINTF"; then
  19343. { echo "$as_me:$LINENO: result: $PRINTF" >&5
  19344. echo "${ECHO_T}$PRINTF" >&6; }
  19345. else
  19346. { echo "$as_me:$LINENO: result: no" >&5
  19347. echo "${ECHO_T}no" >&6; }
  19348. fi
  19349. # Extract the first word of "autogen", so it can be a program name with args.
  19350. set dummy autogen; ac_word=$2
  19351. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19352. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19353. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19354. echo $ECHO_N "(cached) $ECHO_C" >&6
  19355. else
  19356. case $AUTOGEN in
  19357. [\\/]* | ?:[\\/]*)
  19358. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19359. ;;
  19360. *)
  19361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19362. for as_dir in $PATH
  19363. do
  19364. IFS=$as_save_IFS
  19365. test -z "$as_dir" && as_dir=.
  19366. for ac_exec_ext in '' $ac_executable_extensions; do
  19367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19368. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19369. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19370. break 2
  19371. fi
  19372. done
  19373. done
  19374. IFS=$as_save_IFS
  19375. ;;
  19376. esac
  19377. fi
  19378. AUTOGEN=$ac_cv_path_AUTOGEN
  19379. if test -n "$AUTOGEN"; then
  19380. { echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19381. echo "${ECHO_T}$AUTOGEN" >&6; }
  19382. else
  19383. { echo "$as_me:$LINENO: result: no" >&5
  19384. echo "${ECHO_T}no" >&6; }
  19385. fi
  19386. if test -n "${AUTOGEN}" ; then
  19387. { echo "$as_me:$LINENO: checking for autogen version >= 5.9" >&5
  19388. echo $ECHO_N "checking for autogen version >= 5.9... $ECHO_C" >&6; }
  19389. AUTOGEN_VERSION=`${AUTOGEN} -v | ${SED} 's|.*\([0-9\.]\{3,\}\)$|\1|'`
  19390. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.[0-9]|\1|'`
  19391. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.\([0-9]\)|\2|'`
  19392. if test ${AUTOGEN_MAJOR} -le 5 && test ${AUTOGEN_MINOR} -lt 9 || test ${AUTOGEN_MAJOR} -lt 5 ; then
  19393. { echo "$as_me:$LINENO: result: no" >&5
  19394. echo "${ECHO_T}no" >&6; }
  19395. { echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&5
  19396. echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&2;}
  19397. else
  19398. { echo "$as_me:$LINENO: result: yes" >&5
  19399. echo "${ECHO_T}yes" >&6; }
  19400. fi
  19401. else
  19402. { echo "$as_me:$LINENO: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&5
  19403. echo "$as_me: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&2;}
  19404. fi
  19405. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19406. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  19407. if test "${ac_cv_header_stdc+set}" = set; then
  19408. echo $ECHO_N "(cached) $ECHO_C" >&6
  19409. else
  19410. cat >conftest.$ac_ext <<_ACEOF
  19411. /* confdefs.h. */
  19412. _ACEOF
  19413. cat confdefs.h >>conftest.$ac_ext
  19414. cat >>conftest.$ac_ext <<_ACEOF
  19415. /* end confdefs.h. */
  19416. #include <stdlib.h>
  19417. #include <stdarg.h>
  19418. #include <string.h>
  19419. #include <float.h>
  19420. int
  19421. main ()
  19422. {
  19423. ;
  19424. return 0;
  19425. }
  19426. _ACEOF
  19427. rm -f conftest.$ac_objext
  19428. if { (ac_try="$ac_compile"
  19429. case "(($ac_try" in
  19430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19431. *) ac_try_echo=$ac_try;;
  19432. esac
  19433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19434. (eval "$ac_compile") 2>conftest.er1
  19435. ac_status=$?
  19436. grep -v '^ *+' conftest.er1 >conftest.err
  19437. rm -f conftest.er1
  19438. cat conftest.err >&5
  19439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19440. (exit $ac_status); } && {
  19441. test -z "$ac_c_werror_flag" ||
  19442. test ! -s conftest.err
  19443. } && test -s conftest.$ac_objext; then
  19444. ac_cv_header_stdc=yes
  19445. else
  19446. echo "$as_me: failed program was:" >&5
  19447. sed 's/^/| /' conftest.$ac_ext >&5
  19448. ac_cv_header_stdc=no
  19449. fi
  19450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19451. if test $ac_cv_header_stdc = yes; then
  19452. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19453. cat >conftest.$ac_ext <<_ACEOF
  19454. /* confdefs.h. */
  19455. _ACEOF
  19456. cat confdefs.h >>conftest.$ac_ext
  19457. cat >>conftest.$ac_ext <<_ACEOF
  19458. /* end confdefs.h. */
  19459. #include <string.h>
  19460. _ACEOF
  19461. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19462. $EGREP "memchr" >/dev/null 2>&1; then
  19463. :
  19464. else
  19465. ac_cv_header_stdc=no
  19466. fi
  19467. rm -f conftest*
  19468. fi
  19469. if test $ac_cv_header_stdc = yes; then
  19470. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19471. cat >conftest.$ac_ext <<_ACEOF
  19472. /* confdefs.h. */
  19473. _ACEOF
  19474. cat confdefs.h >>conftest.$ac_ext
  19475. cat >>conftest.$ac_ext <<_ACEOF
  19476. /* end confdefs.h. */
  19477. #include <stdlib.h>
  19478. _ACEOF
  19479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19480. $EGREP "free" >/dev/null 2>&1; then
  19481. :
  19482. else
  19483. ac_cv_header_stdc=no
  19484. fi
  19485. rm -f conftest*
  19486. fi
  19487. if test $ac_cv_header_stdc = yes; then
  19488. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19489. if test "$cross_compiling" = yes; then
  19490. :
  19491. else
  19492. cat >conftest.$ac_ext <<_ACEOF
  19493. /* confdefs.h. */
  19494. _ACEOF
  19495. cat confdefs.h >>conftest.$ac_ext
  19496. cat >>conftest.$ac_ext <<_ACEOF
  19497. /* end confdefs.h. */
  19498. #include <ctype.h>
  19499. #include <stdlib.h>
  19500. #if ((' ' & 0x0FF) == 0x020)
  19501. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19502. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19503. #else
  19504. # define ISLOWER(c) \
  19505. (('a' <= (c) && (c) <= 'i') \
  19506. || ('j' <= (c) && (c) <= 'r') \
  19507. || ('s' <= (c) && (c) <= 'z'))
  19508. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19509. #endif
  19510. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19511. int
  19512. main ()
  19513. {
  19514. int i;
  19515. for (i = 0; i < 256; i++)
  19516. if (XOR (islower (i), ISLOWER (i))
  19517. || toupper (i) != TOUPPER (i))
  19518. return 2;
  19519. return 0;
  19520. }
  19521. _ACEOF
  19522. rm -f conftest$ac_exeext
  19523. if { (ac_try="$ac_link"
  19524. case "(($ac_try" in
  19525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19526. *) ac_try_echo=$ac_try;;
  19527. esac
  19528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19529. (eval "$ac_link") 2>&5
  19530. ac_status=$?
  19531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19532. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19533. { (case "(($ac_try" in
  19534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19535. *) ac_try_echo=$ac_try;;
  19536. esac
  19537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19538. (eval "$ac_try") 2>&5
  19539. ac_status=$?
  19540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19541. (exit $ac_status); }; }; then
  19542. :
  19543. else
  19544. echo "$as_me: program exited with status $ac_status" >&5
  19545. echo "$as_me: failed program was:" >&5
  19546. sed 's/^/| /' conftest.$ac_ext >&5
  19547. ( exit $ac_status )
  19548. ac_cv_header_stdc=no
  19549. fi
  19550. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19551. fi
  19552. fi
  19553. fi
  19554. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19555. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  19556. if test $ac_cv_header_stdc = yes; then
  19557. cat >>confdefs.h <<\_ACEOF
  19558. #define STDC_HEADERS 1
  19559. _ACEOF
  19560. fi
  19561. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19562. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  19563. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19564. echo $ECHO_N "(cached) $ECHO_C" >&6
  19565. else
  19566. cat >conftest.$ac_ext <<_ACEOF
  19567. /* confdefs.h. */
  19568. _ACEOF
  19569. cat confdefs.h >>conftest.$ac_ext
  19570. cat >>conftest.$ac_ext <<_ACEOF
  19571. /* end confdefs.h. */
  19572. #include <sys/types.h>
  19573. int
  19574. main ()
  19575. {
  19576. return makedev(0, 0);
  19577. ;
  19578. return 0;
  19579. }
  19580. _ACEOF
  19581. rm -f conftest.$ac_objext conftest$ac_exeext
  19582. if { (ac_try="$ac_link"
  19583. case "(($ac_try" in
  19584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19585. *) ac_try_echo=$ac_try;;
  19586. esac
  19587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19588. (eval "$ac_link") 2>conftest.er1
  19589. ac_status=$?
  19590. grep -v '^ *+' conftest.er1 >conftest.err
  19591. rm -f conftest.er1
  19592. cat conftest.err >&5
  19593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19594. (exit $ac_status); } && {
  19595. test -z "$ac_c_werror_flag" ||
  19596. test ! -s conftest.err
  19597. } && test -s conftest$ac_exeext &&
  19598. $as_test_x conftest$ac_exeext; then
  19599. ac_cv_header_sys_types_h_makedev=yes
  19600. else
  19601. echo "$as_me: failed program was:" >&5
  19602. sed 's/^/| /' conftest.$ac_ext >&5
  19603. ac_cv_header_sys_types_h_makedev=no
  19604. fi
  19605. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19606. conftest$ac_exeext conftest.$ac_ext
  19607. fi
  19608. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19609. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  19610. if test $ac_cv_header_sys_types_h_makedev = no; then
  19611. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19612. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19613. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19614. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19615. echo $ECHO_N "(cached) $ECHO_C" >&6
  19616. fi
  19617. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19618. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19619. else
  19620. # Is the header compilable?
  19621. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19622. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  19623. cat >conftest.$ac_ext <<_ACEOF
  19624. /* confdefs.h. */
  19625. _ACEOF
  19626. cat confdefs.h >>conftest.$ac_ext
  19627. cat >>conftest.$ac_ext <<_ACEOF
  19628. /* end confdefs.h. */
  19629. $ac_includes_default
  19630. #include <sys/mkdev.h>
  19631. _ACEOF
  19632. rm -f conftest.$ac_objext
  19633. if { (ac_try="$ac_compile"
  19634. case "(($ac_try" in
  19635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19636. *) ac_try_echo=$ac_try;;
  19637. esac
  19638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19639. (eval "$ac_compile") 2>conftest.er1
  19640. ac_status=$?
  19641. grep -v '^ *+' conftest.er1 >conftest.err
  19642. rm -f conftest.er1
  19643. cat conftest.err >&5
  19644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19645. (exit $ac_status); } && {
  19646. test -z "$ac_c_werror_flag" ||
  19647. test ! -s conftest.err
  19648. } && test -s conftest.$ac_objext; then
  19649. ac_header_compiler=yes
  19650. else
  19651. echo "$as_me: failed program was:" >&5
  19652. sed 's/^/| /' conftest.$ac_ext >&5
  19653. ac_header_compiler=no
  19654. fi
  19655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19656. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19657. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19658. # Is the header present?
  19659. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19660. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  19661. cat >conftest.$ac_ext <<_ACEOF
  19662. /* confdefs.h. */
  19663. _ACEOF
  19664. cat confdefs.h >>conftest.$ac_ext
  19665. cat >>conftest.$ac_ext <<_ACEOF
  19666. /* end confdefs.h. */
  19667. #include <sys/mkdev.h>
  19668. _ACEOF
  19669. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19670. case "(($ac_try" in
  19671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19672. *) ac_try_echo=$ac_try;;
  19673. esac
  19674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19675. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19676. ac_status=$?
  19677. grep -v '^ *+' conftest.er1 >conftest.err
  19678. rm -f conftest.er1
  19679. cat conftest.err >&5
  19680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19681. (exit $ac_status); } >/dev/null && {
  19682. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19683. test ! -s conftest.err
  19684. }; then
  19685. ac_header_preproc=yes
  19686. else
  19687. echo "$as_me: failed program was:" >&5
  19688. sed 's/^/| /' conftest.$ac_ext >&5
  19689. ac_header_preproc=no
  19690. fi
  19691. rm -f conftest.err conftest.$ac_ext
  19692. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19693. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19694. # So? What about this header?
  19695. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19696. yes:no: )
  19697. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19698. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19699. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19700. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19701. ac_header_preproc=yes
  19702. ;;
  19703. no:yes:* )
  19704. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19705. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19706. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19707. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19708. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19709. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19710. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19711. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19712. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19713. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19714. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19715. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19716. ;;
  19717. esac
  19718. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19719. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19720. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19721. echo $ECHO_N "(cached) $ECHO_C" >&6
  19722. else
  19723. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19724. fi
  19725. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19726. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19727. fi
  19728. if test $ac_cv_header_sys_mkdev_h = yes; then
  19729. cat >>confdefs.h <<\_ACEOF
  19730. #define MAJOR_IN_MKDEV 1
  19731. _ACEOF
  19732. fi
  19733. if test $ac_cv_header_sys_mkdev_h = no; then
  19734. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19735. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19736. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19737. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19738. echo $ECHO_N "(cached) $ECHO_C" >&6
  19739. fi
  19740. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19741. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19742. else
  19743. # Is the header compilable?
  19744. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19745. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  19746. cat >conftest.$ac_ext <<_ACEOF
  19747. /* confdefs.h. */
  19748. _ACEOF
  19749. cat confdefs.h >>conftest.$ac_ext
  19750. cat >>conftest.$ac_ext <<_ACEOF
  19751. /* end confdefs.h. */
  19752. $ac_includes_default
  19753. #include <sys/sysmacros.h>
  19754. _ACEOF
  19755. rm -f conftest.$ac_objext
  19756. if { (ac_try="$ac_compile"
  19757. case "(($ac_try" in
  19758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19759. *) ac_try_echo=$ac_try;;
  19760. esac
  19761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19762. (eval "$ac_compile") 2>conftest.er1
  19763. ac_status=$?
  19764. grep -v '^ *+' conftest.er1 >conftest.err
  19765. rm -f conftest.er1
  19766. cat conftest.err >&5
  19767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19768. (exit $ac_status); } && {
  19769. test -z "$ac_c_werror_flag" ||
  19770. test ! -s conftest.err
  19771. } && test -s conftest.$ac_objext; then
  19772. ac_header_compiler=yes
  19773. else
  19774. echo "$as_me: failed program was:" >&5
  19775. sed 's/^/| /' conftest.$ac_ext >&5
  19776. ac_header_compiler=no
  19777. fi
  19778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19779. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19780. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19781. # Is the header present?
  19782. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19783. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  19784. cat >conftest.$ac_ext <<_ACEOF
  19785. /* confdefs.h. */
  19786. _ACEOF
  19787. cat confdefs.h >>conftest.$ac_ext
  19788. cat >>conftest.$ac_ext <<_ACEOF
  19789. /* end confdefs.h. */
  19790. #include <sys/sysmacros.h>
  19791. _ACEOF
  19792. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19793. case "(($ac_try" in
  19794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19795. *) ac_try_echo=$ac_try;;
  19796. esac
  19797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19798. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19799. ac_status=$?
  19800. grep -v '^ *+' conftest.er1 >conftest.err
  19801. rm -f conftest.er1
  19802. cat conftest.err >&5
  19803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19804. (exit $ac_status); } >/dev/null && {
  19805. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19806. test ! -s conftest.err
  19807. }; then
  19808. ac_header_preproc=yes
  19809. else
  19810. echo "$as_me: failed program was:" >&5
  19811. sed 's/^/| /' conftest.$ac_ext >&5
  19812. ac_header_preproc=no
  19813. fi
  19814. rm -f conftest.err conftest.$ac_ext
  19815. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19816. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19817. # So? What about this header?
  19818. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19819. yes:no: )
  19820. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19821. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19822. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19823. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19824. ac_header_preproc=yes
  19825. ;;
  19826. no:yes:* )
  19827. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19828. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19829. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19830. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19831. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19832. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19833. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19834. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19835. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19836. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19837. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19838. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19839. ;;
  19840. esac
  19841. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19842. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19843. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19844. echo $ECHO_N "(cached) $ECHO_C" >&6
  19845. else
  19846. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19847. fi
  19848. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19849. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19850. fi
  19851. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19852. cat >>confdefs.h <<\_ACEOF
  19853. #define MAJOR_IN_SYSMACROS 1
  19854. _ACEOF
  19855. fi
  19856. fi
  19857. fi
  19858. { echo "$as_me:$LINENO: checking for size_t" >&5
  19859. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19860. if test "${ac_cv_type_size_t+set}" = set; then
  19861. echo $ECHO_N "(cached) $ECHO_C" >&6
  19862. else
  19863. cat >conftest.$ac_ext <<_ACEOF
  19864. /* confdefs.h. */
  19865. _ACEOF
  19866. cat confdefs.h >>conftest.$ac_ext
  19867. cat >>conftest.$ac_ext <<_ACEOF
  19868. /* end confdefs.h. */
  19869. $ac_includes_default
  19870. typedef size_t ac__type_new_;
  19871. int
  19872. main ()
  19873. {
  19874. if ((ac__type_new_ *) 0)
  19875. return 0;
  19876. if (sizeof (ac__type_new_))
  19877. return 0;
  19878. ;
  19879. return 0;
  19880. }
  19881. _ACEOF
  19882. rm -f conftest.$ac_objext
  19883. if { (ac_try="$ac_compile"
  19884. case "(($ac_try" in
  19885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19886. *) ac_try_echo=$ac_try;;
  19887. esac
  19888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19889. (eval "$ac_compile") 2>conftest.er1
  19890. ac_status=$?
  19891. grep -v '^ *+' conftest.er1 >conftest.err
  19892. rm -f conftest.er1
  19893. cat conftest.err >&5
  19894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19895. (exit $ac_status); } && {
  19896. test -z "$ac_c_werror_flag" ||
  19897. test ! -s conftest.err
  19898. } && test -s conftest.$ac_objext; then
  19899. ac_cv_type_size_t=yes
  19900. else
  19901. echo "$as_me: failed program was:" >&5
  19902. sed 's/^/| /' conftest.$ac_ext >&5
  19903. ac_cv_type_size_t=no
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19906. fi
  19907. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19908. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19909. if test $ac_cv_type_size_t = yes; then
  19910. :
  19911. else
  19912. cat >>confdefs.h <<_ACEOF
  19913. #define size_t unsigned int
  19914. _ACEOF
  19915. fi
  19916. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19917. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  19918. if test "${ac_cv_header_time+set}" = set; then
  19919. echo $ECHO_N "(cached) $ECHO_C" >&6
  19920. else
  19921. cat >conftest.$ac_ext <<_ACEOF
  19922. /* confdefs.h. */
  19923. _ACEOF
  19924. cat confdefs.h >>conftest.$ac_ext
  19925. cat >>conftest.$ac_ext <<_ACEOF
  19926. /* end confdefs.h. */
  19927. #include <sys/types.h>
  19928. #include <sys/time.h>
  19929. #include <time.h>
  19930. int
  19931. main ()
  19932. {
  19933. if ((struct tm *) 0)
  19934. return 0;
  19935. ;
  19936. return 0;
  19937. }
  19938. _ACEOF
  19939. rm -f conftest.$ac_objext
  19940. if { (ac_try="$ac_compile"
  19941. case "(($ac_try" in
  19942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19943. *) ac_try_echo=$ac_try;;
  19944. esac
  19945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19946. (eval "$ac_compile") 2>conftest.er1
  19947. ac_status=$?
  19948. grep -v '^ *+' conftest.er1 >conftest.err
  19949. rm -f conftest.er1
  19950. cat conftest.err >&5
  19951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19952. (exit $ac_status); } && {
  19953. test -z "$ac_c_werror_flag" ||
  19954. test ! -s conftest.err
  19955. } && test -s conftest.$ac_objext; then
  19956. ac_cv_header_time=yes
  19957. else
  19958. echo "$as_me: failed program was:" >&5
  19959. sed 's/^/| /' conftest.$ac_ext >&5
  19960. ac_cv_header_time=no
  19961. fi
  19962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19963. fi
  19964. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19965. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  19966. if test $ac_cv_header_time = yes; then
  19967. cat >>confdefs.h <<\_ACEOF
  19968. #define TIME_WITH_SYS_TIME 1
  19969. _ACEOF
  19970. fi
  19971. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19972. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19973. if test "${ac_cv_c_const+set}" = set; then
  19974. echo $ECHO_N "(cached) $ECHO_C" >&6
  19975. else
  19976. cat >conftest.$ac_ext <<_ACEOF
  19977. /* confdefs.h. */
  19978. _ACEOF
  19979. cat confdefs.h >>conftest.$ac_ext
  19980. cat >>conftest.$ac_ext <<_ACEOF
  19981. /* end confdefs.h. */
  19982. int
  19983. main ()
  19984. {
  19985. /* FIXME: Include the comments suggested by Paul. */
  19986. #ifndef __cplusplus
  19987. /* Ultrix mips cc rejects this. */
  19988. typedef int charset[2];
  19989. const charset cs;
  19990. /* SunOS 4.1.1 cc rejects this. */
  19991. char const *const *pcpcc;
  19992. char **ppc;
  19993. /* NEC SVR4.0.2 mips cc rejects this. */
  19994. struct point {int x, y;};
  19995. static struct point const zero = {0,0};
  19996. /* AIX XL C 1.02.0.0 rejects this.
  19997. It does not let you subtract one const X* pointer from another in
  19998. an arm of an if-expression whose if-part is not a constant
  19999. expression */
  20000. const char *g = "string";
  20001. pcpcc = &g + (g ? g-g : 0);
  20002. /* HPUX 7.0 cc rejects these. */
  20003. ++pcpcc;
  20004. ppc = (char**) pcpcc;
  20005. pcpcc = (char const *const *) ppc;
  20006. { /* SCO 3.2v4 cc rejects this. */
  20007. char *t;
  20008. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20009. *t++ = 0;
  20010. if (s) return 0;
  20011. }
  20012. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20013. int x[] = {25, 17};
  20014. const int *foo = &x[0];
  20015. ++foo;
  20016. }
  20017. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20018. typedef const int *iptr;
  20019. iptr p = 0;
  20020. ++p;
  20021. }
  20022. { /* AIX XL C 1.02.0.0 rejects this saying
  20023. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20024. struct s { int j; const int *ap[3]; };
  20025. struct s *b; b->j = 5;
  20026. }
  20027. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20028. const int foo = 10;
  20029. if (!foo) return 0;
  20030. }
  20031. return !cs[0] && !zero.x;
  20032. #endif
  20033. ;
  20034. return 0;
  20035. }
  20036. _ACEOF
  20037. rm -f conftest.$ac_objext
  20038. if { (ac_try="$ac_compile"
  20039. case "(($ac_try" in
  20040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20041. *) ac_try_echo=$ac_try;;
  20042. esac
  20043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20044. (eval "$ac_compile") 2>conftest.er1
  20045. ac_status=$?
  20046. grep -v '^ *+' conftest.er1 >conftest.err
  20047. rm -f conftest.er1
  20048. cat conftest.err >&5
  20049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20050. (exit $ac_status); } && {
  20051. test -z "$ac_c_werror_flag" ||
  20052. test ! -s conftest.err
  20053. } && test -s conftest.$ac_objext; then
  20054. ac_cv_c_const=yes
  20055. else
  20056. echo "$as_me: failed program was:" >&5
  20057. sed 's/^/| /' conftest.$ac_ext >&5
  20058. ac_cv_c_const=no
  20059. fi
  20060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20061. fi
  20062. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  20063. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  20064. if test $ac_cv_c_const = no; then
  20065. cat >>confdefs.h <<\_ACEOF
  20066. #define const
  20067. _ACEOF
  20068. fi
  20069. { echo "$as_me:$LINENO: checking for inline" >&5
  20070. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  20071. if test "${ac_cv_c_inline+set}" = set; then
  20072. echo $ECHO_N "(cached) $ECHO_C" >&6
  20073. else
  20074. ac_cv_c_inline=no
  20075. for ac_kw in inline __inline__ __inline; do
  20076. cat >conftest.$ac_ext <<_ACEOF
  20077. /* confdefs.h. */
  20078. _ACEOF
  20079. cat confdefs.h >>conftest.$ac_ext
  20080. cat >>conftest.$ac_ext <<_ACEOF
  20081. /* end confdefs.h. */
  20082. #ifndef __cplusplus
  20083. typedef int foo_t;
  20084. static $ac_kw foo_t static_foo () {return 0; }
  20085. $ac_kw foo_t foo () {return 0; }
  20086. #endif
  20087. _ACEOF
  20088. rm -f conftest.$ac_objext
  20089. if { (ac_try="$ac_compile"
  20090. case "(($ac_try" in
  20091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20092. *) ac_try_echo=$ac_try;;
  20093. esac
  20094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20095. (eval "$ac_compile") 2>conftest.er1
  20096. ac_status=$?
  20097. grep -v '^ *+' conftest.er1 >conftest.err
  20098. rm -f conftest.er1
  20099. cat conftest.err >&5
  20100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20101. (exit $ac_status); } && {
  20102. test -z "$ac_c_werror_flag" ||
  20103. test ! -s conftest.err
  20104. } && test -s conftest.$ac_objext; then
  20105. ac_cv_c_inline=$ac_kw
  20106. else
  20107. echo "$as_me: failed program was:" >&5
  20108. sed 's/^/| /' conftest.$ac_ext >&5
  20109. fi
  20110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20111. test "$ac_cv_c_inline" != no && break
  20112. done
  20113. fi
  20114. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20115. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  20116. case $ac_cv_c_inline in
  20117. inline | yes) ;;
  20118. *)
  20119. case $ac_cv_c_inline in
  20120. no) ac_val=;;
  20121. *) ac_val=$ac_cv_c_inline;;
  20122. esac
  20123. cat >>confdefs.h <<_ACEOF
  20124. #ifndef __cplusplus
  20125. #define inline $ac_val
  20126. #endif
  20127. _ACEOF
  20128. ;;
  20129. esac
  20130. # Check whether --enable-largefile was given.
  20131. if test "${enable_largefile+set}" = set; then
  20132. enableval=$enable_largefile;
  20133. fi
  20134. if test "$enable_largefile" != no; then
  20135. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20136. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  20137. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20138. echo $ECHO_N "(cached) $ECHO_C" >&6
  20139. else
  20140. ac_cv_sys_largefile_CC=no
  20141. if test "$GCC" != yes; then
  20142. ac_save_CC=$CC
  20143. while :; do
  20144. # IRIX 6.2 and later do not support large files by default,
  20145. # so use the C compiler's -n32 option if that helps.
  20146. cat >conftest.$ac_ext <<_ACEOF
  20147. /* confdefs.h. */
  20148. _ACEOF
  20149. cat confdefs.h >>conftest.$ac_ext
  20150. cat >>conftest.$ac_ext <<_ACEOF
  20151. /* end confdefs.h. */
  20152. #include <sys/types.h>
  20153. /* Check that off_t can represent 2**63 - 1 correctly.
  20154. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20155. since some C++ compilers masquerading as C compilers
  20156. incorrectly reject 9223372036854775807. */
  20157. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20158. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20159. && LARGE_OFF_T % 2147483647 == 1)
  20160. ? 1 : -1];
  20161. int
  20162. main ()
  20163. {
  20164. ;
  20165. return 0;
  20166. }
  20167. _ACEOF
  20168. rm -f conftest.$ac_objext
  20169. if { (ac_try="$ac_compile"
  20170. case "(($ac_try" in
  20171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20172. *) ac_try_echo=$ac_try;;
  20173. esac
  20174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20175. (eval "$ac_compile") 2>conftest.er1
  20176. ac_status=$?
  20177. grep -v '^ *+' conftest.er1 >conftest.err
  20178. rm -f conftest.er1
  20179. cat conftest.err >&5
  20180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20181. (exit $ac_status); } && {
  20182. test -z "$ac_c_werror_flag" ||
  20183. test ! -s conftest.err
  20184. } && test -s conftest.$ac_objext; then
  20185. break
  20186. else
  20187. echo "$as_me: failed program was:" >&5
  20188. sed 's/^/| /' conftest.$ac_ext >&5
  20189. fi
  20190. rm -f core conftest.err conftest.$ac_objext
  20191. CC="$CC -n32"
  20192. rm -f conftest.$ac_objext
  20193. if { (ac_try="$ac_compile"
  20194. case "(($ac_try" in
  20195. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20196. *) ac_try_echo=$ac_try;;
  20197. esac
  20198. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20199. (eval "$ac_compile") 2>conftest.er1
  20200. ac_status=$?
  20201. grep -v '^ *+' conftest.er1 >conftest.err
  20202. rm -f conftest.er1
  20203. cat conftest.err >&5
  20204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20205. (exit $ac_status); } && {
  20206. test -z "$ac_c_werror_flag" ||
  20207. test ! -s conftest.err
  20208. } && test -s conftest.$ac_objext; then
  20209. ac_cv_sys_largefile_CC=' -n32'; break
  20210. else
  20211. echo "$as_me: failed program was:" >&5
  20212. sed 's/^/| /' conftest.$ac_ext >&5
  20213. fi
  20214. rm -f core conftest.err conftest.$ac_objext
  20215. break
  20216. done
  20217. CC=$ac_save_CC
  20218. rm -f conftest.$ac_ext
  20219. fi
  20220. fi
  20221. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20222. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  20223. if test "$ac_cv_sys_largefile_CC" != no; then
  20224. CC=$CC$ac_cv_sys_largefile_CC
  20225. fi
  20226. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20227. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  20228. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20229. echo $ECHO_N "(cached) $ECHO_C" >&6
  20230. else
  20231. while :; do
  20232. cat >conftest.$ac_ext <<_ACEOF
  20233. /* confdefs.h. */
  20234. _ACEOF
  20235. cat confdefs.h >>conftest.$ac_ext
  20236. cat >>conftest.$ac_ext <<_ACEOF
  20237. /* end confdefs.h. */
  20238. #include <sys/types.h>
  20239. /* Check that off_t can represent 2**63 - 1 correctly.
  20240. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20241. since some C++ compilers masquerading as C compilers
  20242. incorrectly reject 9223372036854775807. */
  20243. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20244. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20245. && LARGE_OFF_T % 2147483647 == 1)
  20246. ? 1 : -1];
  20247. int
  20248. main ()
  20249. {
  20250. ;
  20251. return 0;
  20252. }
  20253. _ACEOF
  20254. rm -f conftest.$ac_objext
  20255. if { (ac_try="$ac_compile"
  20256. case "(($ac_try" in
  20257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20258. *) ac_try_echo=$ac_try;;
  20259. esac
  20260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20261. (eval "$ac_compile") 2>conftest.er1
  20262. ac_status=$?
  20263. grep -v '^ *+' conftest.er1 >conftest.err
  20264. rm -f conftest.er1
  20265. cat conftest.err >&5
  20266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20267. (exit $ac_status); } && {
  20268. test -z "$ac_c_werror_flag" ||
  20269. test ! -s conftest.err
  20270. } && test -s conftest.$ac_objext; then
  20271. ac_cv_sys_file_offset_bits=no; break
  20272. else
  20273. echo "$as_me: failed program was:" >&5
  20274. sed 's/^/| /' conftest.$ac_ext >&5
  20275. fi
  20276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20277. cat >conftest.$ac_ext <<_ACEOF
  20278. /* confdefs.h. */
  20279. _ACEOF
  20280. cat confdefs.h >>conftest.$ac_ext
  20281. cat >>conftest.$ac_ext <<_ACEOF
  20282. /* end confdefs.h. */
  20283. #define _FILE_OFFSET_BITS 64
  20284. #include <sys/types.h>
  20285. /* Check that off_t can represent 2**63 - 1 correctly.
  20286. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20287. since some C++ compilers masquerading as C compilers
  20288. incorrectly reject 9223372036854775807. */
  20289. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20290. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20291. && LARGE_OFF_T % 2147483647 == 1)
  20292. ? 1 : -1];
  20293. int
  20294. main ()
  20295. {
  20296. ;
  20297. return 0;
  20298. }
  20299. _ACEOF
  20300. rm -f conftest.$ac_objext
  20301. if { (ac_try="$ac_compile"
  20302. case "(($ac_try" in
  20303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20304. *) ac_try_echo=$ac_try;;
  20305. esac
  20306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20307. (eval "$ac_compile") 2>conftest.er1
  20308. ac_status=$?
  20309. grep -v '^ *+' conftest.er1 >conftest.err
  20310. rm -f conftest.er1
  20311. cat conftest.err >&5
  20312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20313. (exit $ac_status); } && {
  20314. test -z "$ac_c_werror_flag" ||
  20315. test ! -s conftest.err
  20316. } && test -s conftest.$ac_objext; then
  20317. ac_cv_sys_file_offset_bits=64; break
  20318. else
  20319. echo "$as_me: failed program was:" >&5
  20320. sed 's/^/| /' conftest.$ac_ext >&5
  20321. fi
  20322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20323. ac_cv_sys_file_offset_bits=unknown
  20324. break
  20325. done
  20326. fi
  20327. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20328. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  20329. case $ac_cv_sys_file_offset_bits in #(
  20330. no | unknown) ;;
  20331. *)
  20332. cat >>confdefs.h <<_ACEOF
  20333. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20334. _ACEOF
  20335. ;;
  20336. esac
  20337. rm -f conftest*
  20338. if test $ac_cv_sys_file_offset_bits = unknown; then
  20339. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20340. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20341. if test "${ac_cv_sys_large_files+set}" = set; then
  20342. echo $ECHO_N "(cached) $ECHO_C" >&6
  20343. else
  20344. while :; do
  20345. cat >conftest.$ac_ext <<_ACEOF
  20346. /* confdefs.h. */
  20347. _ACEOF
  20348. cat confdefs.h >>conftest.$ac_ext
  20349. cat >>conftest.$ac_ext <<_ACEOF
  20350. /* end confdefs.h. */
  20351. #include <sys/types.h>
  20352. /* Check that off_t can represent 2**63 - 1 correctly.
  20353. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20354. since some C++ compilers masquerading as C compilers
  20355. incorrectly reject 9223372036854775807. */
  20356. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20357. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20358. && LARGE_OFF_T % 2147483647 == 1)
  20359. ? 1 : -1];
  20360. int
  20361. main ()
  20362. {
  20363. ;
  20364. return 0;
  20365. }
  20366. _ACEOF
  20367. rm -f conftest.$ac_objext
  20368. if { (ac_try="$ac_compile"
  20369. case "(($ac_try" in
  20370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20371. *) ac_try_echo=$ac_try;;
  20372. esac
  20373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20374. (eval "$ac_compile") 2>conftest.er1
  20375. ac_status=$?
  20376. grep -v '^ *+' conftest.er1 >conftest.err
  20377. rm -f conftest.er1
  20378. cat conftest.err >&5
  20379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20380. (exit $ac_status); } && {
  20381. test -z "$ac_c_werror_flag" ||
  20382. test ! -s conftest.err
  20383. } && test -s conftest.$ac_objext; then
  20384. ac_cv_sys_large_files=no; break
  20385. else
  20386. echo "$as_me: failed program was:" >&5
  20387. sed 's/^/| /' conftest.$ac_ext >&5
  20388. fi
  20389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20390. cat >conftest.$ac_ext <<_ACEOF
  20391. /* confdefs.h. */
  20392. _ACEOF
  20393. cat confdefs.h >>conftest.$ac_ext
  20394. cat >>conftest.$ac_ext <<_ACEOF
  20395. /* end confdefs.h. */
  20396. #define _LARGE_FILES 1
  20397. #include <sys/types.h>
  20398. /* Check that off_t can represent 2**63 - 1 correctly.
  20399. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20400. since some C++ compilers masquerading as C compilers
  20401. incorrectly reject 9223372036854775807. */
  20402. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20403. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20404. && LARGE_OFF_T % 2147483647 == 1)
  20405. ? 1 : -1];
  20406. int
  20407. main ()
  20408. {
  20409. ;
  20410. return 0;
  20411. }
  20412. _ACEOF
  20413. rm -f conftest.$ac_objext
  20414. if { (ac_try="$ac_compile"
  20415. case "(($ac_try" in
  20416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20417. *) ac_try_echo=$ac_try;;
  20418. esac
  20419. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20420. (eval "$ac_compile") 2>conftest.er1
  20421. ac_status=$?
  20422. grep -v '^ *+' conftest.er1 >conftest.err
  20423. rm -f conftest.er1
  20424. cat conftest.err >&5
  20425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20426. (exit $ac_status); } && {
  20427. test -z "$ac_c_werror_flag" ||
  20428. test ! -s conftest.err
  20429. } && test -s conftest.$ac_objext; then
  20430. ac_cv_sys_large_files=1; break
  20431. else
  20432. echo "$as_me: failed program was:" >&5
  20433. sed 's/^/| /' conftest.$ac_ext >&5
  20434. fi
  20435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20436. ac_cv_sys_large_files=unknown
  20437. break
  20438. done
  20439. fi
  20440. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20441. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20442. case $ac_cv_sys_large_files in #(
  20443. no | unknown) ;;
  20444. *)
  20445. cat >>confdefs.h <<_ACEOF
  20446. #define _LARGE_FILES $ac_cv_sys_large_files
  20447. _ACEOF
  20448. ;;
  20449. esac
  20450. rm -f conftest*
  20451. fi
  20452. fi
  20453. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20454. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20455. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20456. echo $ECHO_N "(cached) $ECHO_C" >&6
  20457. else
  20458. while :; do
  20459. cat >conftest.$ac_ext <<_ACEOF
  20460. /* confdefs.h. */
  20461. _ACEOF
  20462. cat confdefs.h >>conftest.$ac_ext
  20463. cat >>conftest.$ac_ext <<_ACEOF
  20464. /* end confdefs.h. */
  20465. #include <stdio.h>
  20466. int
  20467. main ()
  20468. {
  20469. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20470. ;
  20471. return 0;
  20472. }
  20473. _ACEOF
  20474. rm -f conftest.$ac_objext conftest$ac_exeext
  20475. if { (ac_try="$ac_link"
  20476. case "(($ac_try" in
  20477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20478. *) ac_try_echo=$ac_try;;
  20479. esac
  20480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20481. (eval "$ac_link") 2>conftest.er1
  20482. ac_status=$?
  20483. grep -v '^ *+' conftest.er1 >conftest.err
  20484. rm -f conftest.er1
  20485. cat conftest.err >&5
  20486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20487. (exit $ac_status); } && {
  20488. test -z "$ac_c_werror_flag" ||
  20489. test ! -s conftest.err
  20490. } && test -s conftest$ac_exeext &&
  20491. $as_test_x conftest$ac_exeext; then
  20492. ac_cv_sys_largefile_source=no; break
  20493. else
  20494. echo "$as_me: failed program was:" >&5
  20495. sed 's/^/| /' conftest.$ac_ext >&5
  20496. fi
  20497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20498. conftest$ac_exeext conftest.$ac_ext
  20499. cat >conftest.$ac_ext <<_ACEOF
  20500. /* confdefs.h. */
  20501. _ACEOF
  20502. cat confdefs.h >>conftest.$ac_ext
  20503. cat >>conftest.$ac_ext <<_ACEOF
  20504. /* end confdefs.h. */
  20505. #define _LARGEFILE_SOURCE 1
  20506. #include <stdio.h>
  20507. int
  20508. main ()
  20509. {
  20510. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20511. ;
  20512. return 0;
  20513. }
  20514. _ACEOF
  20515. rm -f conftest.$ac_objext conftest$ac_exeext
  20516. if { (ac_try="$ac_link"
  20517. case "(($ac_try" in
  20518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20519. *) ac_try_echo=$ac_try;;
  20520. esac
  20521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20522. (eval "$ac_link") 2>conftest.er1
  20523. ac_status=$?
  20524. grep -v '^ *+' conftest.er1 >conftest.err
  20525. rm -f conftest.er1
  20526. cat conftest.err >&5
  20527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20528. (exit $ac_status); } && {
  20529. test -z "$ac_c_werror_flag" ||
  20530. test ! -s conftest.err
  20531. } && test -s conftest$ac_exeext &&
  20532. $as_test_x conftest$ac_exeext; then
  20533. ac_cv_sys_largefile_source=1; break
  20534. else
  20535. echo "$as_me: failed program was:" >&5
  20536. sed 's/^/| /' conftest.$ac_ext >&5
  20537. fi
  20538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20539. conftest$ac_exeext conftest.$ac_ext
  20540. ac_cv_sys_largefile_source=unknown
  20541. break
  20542. done
  20543. fi
  20544. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20545. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20546. case $ac_cv_sys_largefile_source in #(
  20547. no | unknown) ;;
  20548. *)
  20549. cat >>confdefs.h <<_ACEOF
  20550. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20551. _ACEOF
  20552. ;;
  20553. esac
  20554. rm -f conftest*
  20555. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20556. # in glibc 2.1.3, but that breaks too many other things.
  20557. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20558. if test $ac_cv_sys_largefile_source != unknown; then
  20559. cat >>confdefs.h <<\_ACEOF
  20560. #define HAVE_FSEEKO 1
  20561. _ACEOF
  20562. fi
  20563. { echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20564. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  20565. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20566. echo $ECHO_N "(cached) $ECHO_C" >&6
  20567. else
  20568. cat >conftest.$ac_ext <<_ACEOF
  20569. /* confdefs.h. */
  20570. _ACEOF
  20571. cat confdefs.h >>conftest.$ac_ext
  20572. cat >>conftest.$ac_ext <<_ACEOF
  20573. /* end confdefs.h. */
  20574. $ac_includes_default
  20575. typedef u_int8_t ac__type_new_;
  20576. int
  20577. main ()
  20578. {
  20579. if ((ac__type_new_ *) 0)
  20580. return 0;
  20581. if (sizeof (ac__type_new_))
  20582. return 0;
  20583. ;
  20584. return 0;
  20585. }
  20586. _ACEOF
  20587. rm -f conftest.$ac_objext
  20588. if { (ac_try="$ac_compile"
  20589. case "(($ac_try" in
  20590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20591. *) ac_try_echo=$ac_try;;
  20592. esac
  20593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20594. (eval "$ac_compile") 2>conftest.er1
  20595. ac_status=$?
  20596. grep -v '^ *+' conftest.er1 >conftest.err
  20597. rm -f conftest.er1
  20598. cat conftest.err >&5
  20599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20600. (exit $ac_status); } && {
  20601. test -z "$ac_c_werror_flag" ||
  20602. test ! -s conftest.err
  20603. } && test -s conftest.$ac_objext; then
  20604. ac_cv_type_u_int8_t=yes
  20605. else
  20606. echo "$as_me: failed program was:" >&5
  20607. sed 's/^/| /' conftest.$ac_ext >&5
  20608. ac_cv_type_u_int8_t=no
  20609. fi
  20610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20611. fi
  20612. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20613. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  20614. if test $ac_cv_type_u_int8_t = yes; then
  20615. :
  20616. else
  20617. cat >>confdefs.h <<_ACEOF
  20618. #define u_int8_t uint8_t
  20619. _ACEOF
  20620. fi
  20621. { echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20622. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  20623. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20624. echo $ECHO_N "(cached) $ECHO_C" >&6
  20625. else
  20626. cat >conftest.$ac_ext <<_ACEOF
  20627. /* confdefs.h. */
  20628. _ACEOF
  20629. cat confdefs.h >>conftest.$ac_ext
  20630. cat >>conftest.$ac_ext <<_ACEOF
  20631. /* end confdefs.h. */
  20632. $ac_includes_default
  20633. typedef u_int16_t ac__type_new_;
  20634. int
  20635. main ()
  20636. {
  20637. if ((ac__type_new_ *) 0)
  20638. return 0;
  20639. if (sizeof (ac__type_new_))
  20640. return 0;
  20641. ;
  20642. return 0;
  20643. }
  20644. _ACEOF
  20645. rm -f conftest.$ac_objext
  20646. if { (ac_try="$ac_compile"
  20647. case "(($ac_try" in
  20648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20649. *) ac_try_echo=$ac_try;;
  20650. esac
  20651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20652. (eval "$ac_compile") 2>conftest.er1
  20653. ac_status=$?
  20654. grep -v '^ *+' conftest.er1 >conftest.err
  20655. rm -f conftest.er1
  20656. cat conftest.err >&5
  20657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20658. (exit $ac_status); } && {
  20659. test -z "$ac_c_werror_flag" ||
  20660. test ! -s conftest.err
  20661. } && test -s conftest.$ac_objext; then
  20662. ac_cv_type_u_int16_t=yes
  20663. else
  20664. echo "$as_me: failed program was:" >&5
  20665. sed 's/^/| /' conftest.$ac_ext >&5
  20666. ac_cv_type_u_int16_t=no
  20667. fi
  20668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20669. fi
  20670. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20671. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  20672. if test $ac_cv_type_u_int16_t = yes; then
  20673. :
  20674. else
  20675. cat >>confdefs.h <<_ACEOF
  20676. #define u_int16_t uint16_t
  20677. _ACEOF
  20678. fi
  20679. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20680. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  20681. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20682. echo $ECHO_N "(cached) $ECHO_C" >&6
  20683. else
  20684. cat >conftest.$ac_ext <<_ACEOF
  20685. /* confdefs.h. */
  20686. _ACEOF
  20687. cat confdefs.h >>conftest.$ac_ext
  20688. cat >>conftest.$ac_ext <<_ACEOF
  20689. /* end confdefs.h. */
  20690. $ac_includes_default
  20691. typedef u_int32_t ac__type_new_;
  20692. int
  20693. main ()
  20694. {
  20695. if ((ac__type_new_ *) 0)
  20696. return 0;
  20697. if (sizeof (ac__type_new_))
  20698. return 0;
  20699. ;
  20700. return 0;
  20701. }
  20702. _ACEOF
  20703. rm -f conftest.$ac_objext
  20704. if { (ac_try="$ac_compile"
  20705. case "(($ac_try" in
  20706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20707. *) ac_try_echo=$ac_try;;
  20708. esac
  20709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20710. (eval "$ac_compile") 2>conftest.er1
  20711. ac_status=$?
  20712. grep -v '^ *+' conftest.er1 >conftest.err
  20713. rm -f conftest.er1
  20714. cat conftest.err >&5
  20715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20716. (exit $ac_status); } && {
  20717. test -z "$ac_c_werror_flag" ||
  20718. test ! -s conftest.err
  20719. } && test -s conftest.$ac_objext; then
  20720. ac_cv_type_u_int32_t=yes
  20721. else
  20722. echo "$as_me: failed program was:" >&5
  20723. sed 's/^/| /' conftest.$ac_ext >&5
  20724. ac_cv_type_u_int32_t=no
  20725. fi
  20726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20727. fi
  20728. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20729. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  20730. if test $ac_cv_type_u_int32_t = yes; then
  20731. :
  20732. else
  20733. cat >>confdefs.h <<_ACEOF
  20734. #define u_int32_t uint32_t
  20735. _ACEOF
  20736. fi
  20737. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20738. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  20739. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20740. echo $ECHO_N "(cached) $ECHO_C" >&6
  20741. else
  20742. cat >conftest.$ac_ext <<_ACEOF
  20743. /* confdefs.h. */
  20744. _ACEOF
  20745. cat confdefs.h >>conftest.$ac_ext
  20746. cat >>conftest.$ac_ext <<_ACEOF
  20747. /* end confdefs.h. */
  20748. $ac_includes_default
  20749. typedef u_int64_t ac__type_new_;
  20750. int
  20751. main ()
  20752. {
  20753. if ((ac__type_new_ *) 0)
  20754. return 0;
  20755. if (sizeof (ac__type_new_))
  20756. return 0;
  20757. ;
  20758. return 0;
  20759. }
  20760. _ACEOF
  20761. rm -f conftest.$ac_objext
  20762. if { (ac_try="$ac_compile"
  20763. case "(($ac_try" in
  20764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20765. *) ac_try_echo=$ac_try;;
  20766. esac
  20767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20768. (eval "$ac_compile") 2>conftest.er1
  20769. ac_status=$?
  20770. grep -v '^ *+' conftest.er1 >conftest.err
  20771. rm -f conftest.er1
  20772. cat conftest.err >&5
  20773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20774. (exit $ac_status); } && {
  20775. test -z "$ac_c_werror_flag" ||
  20776. test ! -s conftest.err
  20777. } && test -s conftest.$ac_objext; then
  20778. ac_cv_type_u_int64_t=yes
  20779. else
  20780. echo "$as_me: failed program was:" >&5
  20781. sed 's/^/| /' conftest.$ac_ext >&5
  20782. ac_cv_type_u_int64_t=no
  20783. fi
  20784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20785. fi
  20786. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20787. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  20788. if test $ac_cv_type_u_int64_t = yes; then
  20789. :
  20790. else
  20791. cat >>confdefs.h <<_ACEOF
  20792. #define u_int64_t uint64_t
  20793. _ACEOF
  20794. fi
  20795. { echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  20796. echo $ECHO_N "checking for $CC -Wextra support... $ECHO_C" >&6; }
  20797. OLD_CFLAGS=$CFLAGS
  20798. CFLAGS="$CFLAGS -Wextra"
  20799. wextra=""
  20800. cat >conftest.$ac_ext <<_ACEOF
  20801. #include <stdlib.h>
  20802. int main(int argc, char *argv) { return(0); }
  20803. _ACEOF
  20804. rm -f conftest.$ac_objext
  20805. if { (ac_try="$ac_compile"
  20806. case "(($ac_try" in
  20807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20808. *) ac_try_echo=$ac_try;;
  20809. esac
  20810. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20811. (eval "$ac_compile") 2>conftest.er1
  20812. ac_status=$?
  20813. grep -v '^ *+' conftest.er1 >conftest.err
  20814. rm -f conftest.er1
  20815. cat conftest.err >&5
  20816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20817. (exit $ac_status); } && {
  20818. test -z "$ac_c_werror_flag" ||
  20819. test ! -s conftest.err
  20820. } && test -s conftest.$ac_objext; then
  20821. { echo "$as_me:$LINENO: result: yes" >&5
  20822. echo "${ECHO_T}yes" >&6; }
  20823. wextra="-Wextra"
  20824. else
  20825. echo "$as_me: failed program was:" >&5
  20826. sed 's/^/| /' conftest.$ac_ext >&5
  20827. { echo "$as_me:$LINENO: result: no" >&5
  20828. echo "${ECHO_T}no" >&6; }
  20829. fi
  20830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20831. CFLAGS="$OLD_CFLAGS $wextra"
  20832. { echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  20833. echo $ECHO_N "checking for $CC -Wno-variadic-macros support... $ECHO_C" >&6; }
  20834. OLD_CFLAGS=$CFLAGS
  20835. CFLAGS="$CFLAGS -Wno-variadic-macros"
  20836. wno_variadic_macros=""
  20837. cat >conftest.$ac_ext <<_ACEOF
  20838. #include <stdlib.h>
  20839. int main(int argc, char *argv) { return(0); }
  20840. _ACEOF
  20841. rm -f conftest.$ac_objext
  20842. if { (ac_try="$ac_compile"
  20843. case "(($ac_try" in
  20844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20845. *) ac_try_echo=$ac_try;;
  20846. esac
  20847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20848. (eval "$ac_compile") 2>conftest.er1
  20849. ac_status=$?
  20850. grep -v '^ *+' conftest.er1 >conftest.err
  20851. rm -f conftest.er1
  20852. cat conftest.err >&5
  20853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20854. (exit $ac_status); } && {
  20855. test -z "$ac_c_werror_flag" ||
  20856. test ! -s conftest.err
  20857. } && test -s conftest.$ac_objext; then
  20858. { echo "$as_me:$LINENO: result: yes" >&5
  20859. echo "${ECHO_T}yes" >&6; }
  20860. wno_variadic_macros="-Wno-variadic-macros"
  20861. else
  20862. echo "$as_me: failed program was:" >&5
  20863. sed 's/^/| /' conftest.$ac_ext >&5
  20864. { echo "$as_me:$LINENO: result: no" >&5
  20865. echo "${ECHO_T}no" >&6; }
  20866. fi
  20867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20868. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  20869. { echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  20870. echo $ECHO_N "checking for $CC -Wfatal-errors support... $ECHO_C" >&6; }
  20871. OLD_CFLAGS=$CFLAGS
  20872. CFLAGS="$CFLAGS -Wfatal-errors"
  20873. wfatal_errors=""
  20874. cat >conftest.$ac_ext <<_ACEOF
  20875. #include <stdlib.h>
  20876. int main(int argc, char *argv) { return(0); }
  20877. _ACEOF
  20878. rm -f conftest.$ac_objext
  20879. if { (ac_try="$ac_compile"
  20880. case "(($ac_try" in
  20881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20882. *) ac_try_echo=$ac_try;;
  20883. esac
  20884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20885. (eval "$ac_compile") 2>conftest.er1
  20886. ac_status=$?
  20887. grep -v '^ *+' conftest.er1 >conftest.err
  20888. rm -f conftest.er1
  20889. cat conftest.err >&5
  20890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20891. (exit $ac_status); } && {
  20892. test -z "$ac_c_werror_flag" ||
  20893. test ! -s conftest.err
  20894. } && test -s conftest.$ac_objext; then
  20895. { echo "$as_me:$LINENO: result: yes" >&5
  20896. echo "${ECHO_T}yes" >&6; }
  20897. wfatal_errors="-Wfatal-errors"
  20898. else
  20899. echo "$as_me: failed program was:" >&5
  20900. sed 's/^/| /' conftest.$ac_ext >&5
  20901. { echo "$as_me:$LINENO: result: no" >&5
  20902. echo "${ECHO_T}no" >&6; }
  20903. fi
  20904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20905. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  20906. 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 sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h
  20907. do
  20908. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20909. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20910. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20911. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20912. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20913. echo $ECHO_N "(cached) $ECHO_C" >&6
  20914. fi
  20915. ac_res=`eval echo '${'$as_ac_Header'}'`
  20916. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20917. echo "${ECHO_T}$ac_res" >&6; }
  20918. else
  20919. # Is the header compilable?
  20920. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20921. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20922. cat >conftest.$ac_ext <<_ACEOF
  20923. /* confdefs.h. */
  20924. _ACEOF
  20925. cat confdefs.h >>conftest.$ac_ext
  20926. cat >>conftest.$ac_ext <<_ACEOF
  20927. /* end confdefs.h. */
  20928. $ac_includes_default
  20929. #include <$ac_header>
  20930. _ACEOF
  20931. rm -f conftest.$ac_objext
  20932. if { (ac_try="$ac_compile"
  20933. case "(($ac_try" in
  20934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20935. *) ac_try_echo=$ac_try;;
  20936. esac
  20937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20938. (eval "$ac_compile") 2>conftest.er1
  20939. ac_status=$?
  20940. grep -v '^ *+' conftest.er1 >conftest.err
  20941. rm -f conftest.er1
  20942. cat conftest.err >&5
  20943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20944. (exit $ac_status); } && {
  20945. test -z "$ac_c_werror_flag" ||
  20946. test ! -s conftest.err
  20947. } && test -s conftest.$ac_objext; then
  20948. ac_header_compiler=yes
  20949. else
  20950. echo "$as_me: failed program was:" >&5
  20951. sed 's/^/| /' conftest.$ac_ext >&5
  20952. ac_header_compiler=no
  20953. fi
  20954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20955. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20956. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20957. # Is the header present?
  20958. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20959. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20960. cat >conftest.$ac_ext <<_ACEOF
  20961. /* confdefs.h. */
  20962. _ACEOF
  20963. cat confdefs.h >>conftest.$ac_ext
  20964. cat >>conftest.$ac_ext <<_ACEOF
  20965. /* end confdefs.h. */
  20966. #include <$ac_header>
  20967. _ACEOF
  20968. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20969. case "(($ac_try" in
  20970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20971. *) ac_try_echo=$ac_try;;
  20972. esac
  20973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20974. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20975. ac_status=$?
  20976. grep -v '^ *+' conftest.er1 >conftest.err
  20977. rm -f conftest.er1
  20978. cat conftest.err >&5
  20979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20980. (exit $ac_status); } >/dev/null && {
  20981. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20982. test ! -s conftest.err
  20983. }; then
  20984. ac_header_preproc=yes
  20985. else
  20986. echo "$as_me: failed program was:" >&5
  20987. sed 's/^/| /' conftest.$ac_ext >&5
  20988. ac_header_preproc=no
  20989. fi
  20990. rm -f conftest.err conftest.$ac_ext
  20991. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20992. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20993. # So? What about this header?
  20994. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20995. yes:no: )
  20996. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20997. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20998. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20999. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21000. ac_header_preproc=yes
  21001. ;;
  21002. no:yes:* )
  21003. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21004. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21005. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21006. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21007. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21008. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21009. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21010. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21011. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21012. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21013. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21014. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21015. ;;
  21016. esac
  21017. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21018. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21019. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21020. echo $ECHO_N "(cached) $ECHO_C" >&6
  21021. else
  21022. eval "$as_ac_Header=\$ac_header_preproc"
  21023. fi
  21024. ac_res=`eval echo '${'$as_ac_Header'}'`
  21025. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21026. echo "${ECHO_T}$ac_res" >&6; }
  21027. fi
  21028. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21029. cat >>confdefs.h <<_ACEOF
  21030. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21031. _ACEOF
  21032. fi
  21033. done
  21034. for ac_header in sys/sysctl.h net/route.h
  21035. do
  21036. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21037. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21038. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21039. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21040. echo $ECHO_N "(cached) $ECHO_C" >&6
  21041. else
  21042. cat >conftest.$ac_ext <<_ACEOF
  21043. /* confdefs.h. */
  21044. _ACEOF
  21045. cat confdefs.h >>conftest.$ac_ext
  21046. cat >>conftest.$ac_ext <<_ACEOF
  21047. /* end confdefs.h. */
  21048. #if HAVE_SYS_PARAM_H
  21049. #include <sys/param.h>
  21050. #endif
  21051. #if HAVE_SYS_TYPES_H
  21052. #include <sys/types.h>
  21053. #endif
  21054. #if HAVE_SYS_SOCKET_H
  21055. #include <sys/socket.h>
  21056. #endif
  21057. #include <$ac_header>
  21058. _ACEOF
  21059. rm -f conftest.$ac_objext
  21060. if { (ac_try="$ac_compile"
  21061. case "(($ac_try" in
  21062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21063. *) ac_try_echo=$ac_try;;
  21064. esac
  21065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21066. (eval "$ac_compile") 2>conftest.er1
  21067. ac_status=$?
  21068. grep -v '^ *+' conftest.er1 >conftest.err
  21069. rm -f conftest.er1
  21070. cat conftest.err >&5
  21071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21072. (exit $ac_status); } && {
  21073. test -z "$ac_c_werror_flag" ||
  21074. test ! -s conftest.err
  21075. } && test -s conftest.$ac_objext; then
  21076. eval "$as_ac_Header=yes"
  21077. else
  21078. echo "$as_me: failed program was:" >&5
  21079. sed 's/^/| /' conftest.$ac_ext >&5
  21080. eval "$as_ac_Header=no"
  21081. fi
  21082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21083. fi
  21084. ac_res=`eval echo '${'$as_ac_Header'}'`
  21085. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21086. echo "${ECHO_T}$ac_res" >&6; }
  21087. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21088. cat >>confdefs.h <<_ACEOF
  21089. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21090. _ACEOF
  21091. fi
  21092. done
  21093. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  21094. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  21095. if test "${ac_cv_lib_socket_socket+set}" = set; then
  21096. echo $ECHO_N "(cached) $ECHO_C" >&6
  21097. else
  21098. ac_check_lib_save_LIBS=$LIBS
  21099. LIBS="-lsocket $LIBS"
  21100. cat >conftest.$ac_ext <<_ACEOF
  21101. /* confdefs.h. */
  21102. _ACEOF
  21103. cat confdefs.h >>conftest.$ac_ext
  21104. cat >>conftest.$ac_ext <<_ACEOF
  21105. /* end confdefs.h. */
  21106. /* Override any GCC internal prototype to avoid an error.
  21107. Use char because int might match the return type of a GCC
  21108. builtin and then its argument prototype would still apply. */
  21109. #ifdef __cplusplus
  21110. extern "C"
  21111. #endif
  21112. char socket ();
  21113. int
  21114. main ()
  21115. {
  21116. return socket ();
  21117. ;
  21118. return 0;
  21119. }
  21120. _ACEOF
  21121. rm -f conftest.$ac_objext conftest$ac_exeext
  21122. if { (ac_try="$ac_link"
  21123. case "(($ac_try" in
  21124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21125. *) ac_try_echo=$ac_try;;
  21126. esac
  21127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21128. (eval "$ac_link") 2>conftest.er1
  21129. ac_status=$?
  21130. grep -v '^ *+' conftest.er1 >conftest.err
  21131. rm -f conftest.er1
  21132. cat conftest.err >&5
  21133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21134. (exit $ac_status); } && {
  21135. test -z "$ac_c_werror_flag" ||
  21136. test ! -s conftest.err
  21137. } && test -s conftest$ac_exeext &&
  21138. $as_test_x conftest$ac_exeext; then
  21139. ac_cv_lib_socket_socket=yes
  21140. else
  21141. echo "$as_me: failed program was:" >&5
  21142. sed 's/^/| /' conftest.$ac_ext >&5
  21143. ac_cv_lib_socket_socket=no
  21144. fi
  21145. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21146. conftest$ac_exeext conftest.$ac_ext
  21147. LIBS=$ac_check_lib_save_LIBS
  21148. fi
  21149. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21150. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  21151. if test $ac_cv_lib_socket_socket = yes; then
  21152. cat >>confdefs.h <<_ACEOF
  21153. #define HAVE_LIBSOCKET 1
  21154. _ACEOF
  21155. LIBS="-lsocket $LIBS"
  21156. fi
  21157. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21158. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  21159. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21160. echo $ECHO_N "(cached) $ECHO_C" >&6
  21161. else
  21162. ac_check_lib_save_LIBS=$LIBS
  21163. LIBS="-lnsl $LIBS"
  21164. cat >conftest.$ac_ext <<_ACEOF
  21165. /* confdefs.h. */
  21166. _ACEOF
  21167. cat confdefs.h >>conftest.$ac_ext
  21168. cat >>conftest.$ac_ext <<_ACEOF
  21169. /* end confdefs.h. */
  21170. /* Override any GCC internal prototype to avoid an error.
  21171. Use char because int might match the return type of a GCC
  21172. builtin and then its argument prototype would still apply. */
  21173. #ifdef __cplusplus
  21174. extern "C"
  21175. #endif
  21176. char gethostbyname ();
  21177. int
  21178. main ()
  21179. {
  21180. return gethostbyname ();
  21181. ;
  21182. return 0;
  21183. }
  21184. _ACEOF
  21185. rm -f conftest.$ac_objext conftest$ac_exeext
  21186. if { (ac_try="$ac_link"
  21187. case "(($ac_try" in
  21188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21189. *) ac_try_echo=$ac_try;;
  21190. esac
  21191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21192. (eval "$ac_link") 2>conftest.er1
  21193. ac_status=$?
  21194. grep -v '^ *+' conftest.er1 >conftest.err
  21195. rm -f conftest.er1
  21196. cat conftest.err >&5
  21197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21198. (exit $ac_status); } && {
  21199. test -z "$ac_c_werror_flag" ||
  21200. test ! -s conftest.err
  21201. } && test -s conftest$ac_exeext &&
  21202. $as_test_x conftest$ac_exeext; then
  21203. ac_cv_lib_nsl_gethostbyname=yes
  21204. else
  21205. echo "$as_me: failed program was:" >&5
  21206. sed 's/^/| /' conftest.$ac_ext >&5
  21207. ac_cv_lib_nsl_gethostbyname=no
  21208. fi
  21209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21210. conftest$ac_exeext conftest.$ac_ext
  21211. LIBS=$ac_check_lib_save_LIBS
  21212. fi
  21213. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21214. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  21215. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21216. cat >>confdefs.h <<_ACEOF
  21217. #define HAVE_LIBNSL 1
  21218. _ACEOF
  21219. LIBS="-lnsl $LIBS"
  21220. fi
  21221. { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21222. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
  21223. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21224. echo $ECHO_N "(cached) $ECHO_C" >&6
  21225. else
  21226. ac_check_lib_save_LIBS=$LIBS
  21227. LIBS="-lrt $LIBS"
  21228. cat >conftest.$ac_ext <<_ACEOF
  21229. /* confdefs.h. */
  21230. _ACEOF
  21231. cat confdefs.h >>conftest.$ac_ext
  21232. cat >>conftest.$ac_ext <<_ACEOF
  21233. /* end confdefs.h. */
  21234. /* Override any GCC internal prototype to avoid an error.
  21235. Use char because int might match the return type of a GCC
  21236. builtin and then its argument prototype would still apply. */
  21237. #ifdef __cplusplus
  21238. extern "C"
  21239. #endif
  21240. char nanosleep ();
  21241. int
  21242. main ()
  21243. {
  21244. return nanosleep ();
  21245. ;
  21246. return 0;
  21247. }
  21248. _ACEOF
  21249. rm -f conftest.$ac_objext conftest$ac_exeext
  21250. if { (ac_try="$ac_link"
  21251. case "(($ac_try" in
  21252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21253. *) ac_try_echo=$ac_try;;
  21254. esac
  21255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21256. (eval "$ac_link") 2>conftest.er1
  21257. ac_status=$?
  21258. grep -v '^ *+' conftest.er1 >conftest.err
  21259. rm -f conftest.er1
  21260. cat conftest.err >&5
  21261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21262. (exit $ac_status); } && {
  21263. test -z "$ac_c_werror_flag" ||
  21264. test ! -s conftest.err
  21265. } && test -s conftest$ac_exeext &&
  21266. $as_test_x conftest$ac_exeext; then
  21267. ac_cv_lib_rt_nanosleep=yes
  21268. else
  21269. echo "$as_me: failed program was:" >&5
  21270. sed 's/^/| /' conftest.$ac_ext >&5
  21271. ac_cv_lib_rt_nanosleep=no
  21272. fi
  21273. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21274. conftest$ac_exeext conftest.$ac_ext
  21275. LIBS=$ac_check_lib_save_LIBS
  21276. fi
  21277. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21278. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
  21279. if test $ac_cv_lib_rt_nanosleep = yes; then
  21280. cat >>confdefs.h <<_ACEOF
  21281. #define HAVE_LIBRT 1
  21282. _ACEOF
  21283. LIBS="-lrt $LIBS"
  21284. fi
  21285. { echo "$as_me:$LINENO: checking for resolv in -lresolv" >&5
  21286. echo $ECHO_N "checking for resolv in -lresolv... $ECHO_C" >&6; }
  21287. if test "${ac_cv_lib_resolv_resolv+set}" = set; then
  21288. echo $ECHO_N "(cached) $ECHO_C" >&6
  21289. else
  21290. ac_check_lib_save_LIBS=$LIBS
  21291. LIBS="-lresolv $LIBS"
  21292. cat >conftest.$ac_ext <<_ACEOF
  21293. /* confdefs.h. */
  21294. _ACEOF
  21295. cat confdefs.h >>conftest.$ac_ext
  21296. cat >>conftest.$ac_ext <<_ACEOF
  21297. /* end confdefs.h. */
  21298. /* Override any GCC internal prototype to avoid an error.
  21299. Use char because int might match the return type of a GCC
  21300. builtin and then its argument prototype would still apply. */
  21301. #ifdef __cplusplus
  21302. extern "C"
  21303. #endif
  21304. char resolv ();
  21305. int
  21306. main ()
  21307. {
  21308. return resolv ();
  21309. ;
  21310. return 0;
  21311. }
  21312. _ACEOF
  21313. rm -f conftest.$ac_objext conftest$ac_exeext
  21314. if { (ac_try="$ac_link"
  21315. case "(($ac_try" in
  21316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21317. *) ac_try_echo=$ac_try;;
  21318. esac
  21319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21320. (eval "$ac_link") 2>conftest.er1
  21321. ac_status=$?
  21322. grep -v '^ *+' conftest.er1 >conftest.err
  21323. rm -f conftest.er1
  21324. cat conftest.err >&5
  21325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21326. (exit $ac_status); } && {
  21327. test -z "$ac_c_werror_flag" ||
  21328. test ! -s conftest.err
  21329. } && test -s conftest$ac_exeext &&
  21330. $as_test_x conftest$ac_exeext; then
  21331. ac_cv_lib_resolv_resolv=yes
  21332. else
  21333. echo "$as_me: failed program was:" >&5
  21334. sed 's/^/| /' conftest.$ac_ext >&5
  21335. ac_cv_lib_resolv_resolv=no
  21336. fi
  21337. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21338. conftest$ac_exeext conftest.$ac_ext
  21339. LIBS=$ac_check_lib_save_LIBS
  21340. fi
  21341. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_resolv" >&5
  21342. echo "${ECHO_T}$ac_cv_lib_resolv_resolv" >&6; }
  21343. if test $ac_cv_lib_resolv_resolv = yes; then
  21344. cat >>confdefs.h <<_ACEOF
  21345. #define HAVE_LIBRESOLV 1
  21346. _ACEOF
  21347. LIBS="-lresolv $LIBS"
  21348. fi
  21349. for ac_header in stdlib.h
  21350. do
  21351. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21352. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21353. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21354. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21356. echo $ECHO_N "(cached) $ECHO_C" >&6
  21357. fi
  21358. ac_res=`eval echo '${'$as_ac_Header'}'`
  21359. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21360. echo "${ECHO_T}$ac_res" >&6; }
  21361. else
  21362. # Is the header compilable?
  21363. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21364. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21365. cat >conftest.$ac_ext <<_ACEOF
  21366. /* confdefs.h. */
  21367. _ACEOF
  21368. cat confdefs.h >>conftest.$ac_ext
  21369. cat >>conftest.$ac_ext <<_ACEOF
  21370. /* end confdefs.h. */
  21371. $ac_includes_default
  21372. #include <$ac_header>
  21373. _ACEOF
  21374. rm -f conftest.$ac_objext
  21375. if { (ac_try="$ac_compile"
  21376. case "(($ac_try" in
  21377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21378. *) ac_try_echo=$ac_try;;
  21379. esac
  21380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21381. (eval "$ac_compile") 2>conftest.er1
  21382. ac_status=$?
  21383. grep -v '^ *+' conftest.er1 >conftest.err
  21384. rm -f conftest.er1
  21385. cat conftest.err >&5
  21386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21387. (exit $ac_status); } && {
  21388. test -z "$ac_c_werror_flag" ||
  21389. test ! -s conftest.err
  21390. } && test -s conftest.$ac_objext; then
  21391. ac_header_compiler=yes
  21392. else
  21393. echo "$as_me: failed program was:" >&5
  21394. sed 's/^/| /' conftest.$ac_ext >&5
  21395. ac_header_compiler=no
  21396. fi
  21397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21398. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21399. echo "${ECHO_T}$ac_header_compiler" >&6; }
  21400. # Is the header present?
  21401. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21402. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21403. cat >conftest.$ac_ext <<_ACEOF
  21404. /* confdefs.h. */
  21405. _ACEOF
  21406. cat confdefs.h >>conftest.$ac_ext
  21407. cat >>conftest.$ac_ext <<_ACEOF
  21408. /* end confdefs.h. */
  21409. #include <$ac_header>
  21410. _ACEOF
  21411. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21412. case "(($ac_try" in
  21413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21414. *) ac_try_echo=$ac_try;;
  21415. esac
  21416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21417. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21418. ac_status=$?
  21419. grep -v '^ *+' conftest.er1 >conftest.err
  21420. rm -f conftest.er1
  21421. cat conftest.err >&5
  21422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21423. (exit $ac_status); } >/dev/null && {
  21424. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21425. test ! -s conftest.err
  21426. }; then
  21427. ac_header_preproc=yes
  21428. else
  21429. echo "$as_me: failed program was:" >&5
  21430. sed 's/^/| /' conftest.$ac_ext >&5
  21431. ac_header_preproc=no
  21432. fi
  21433. rm -f conftest.err conftest.$ac_ext
  21434. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21435. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21436. # So? What about this header?
  21437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21438. yes:no: )
  21439. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21440. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21441. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21442. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21443. ac_header_preproc=yes
  21444. ;;
  21445. no:yes:* )
  21446. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21447. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21448. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21449. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21450. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21451. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21452. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21453. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21455. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21456. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21457. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21458. ;;
  21459. esac
  21460. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21461. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21462. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21463. echo $ECHO_N "(cached) $ECHO_C" >&6
  21464. else
  21465. eval "$as_ac_Header=\$ac_header_preproc"
  21466. fi
  21467. ac_res=`eval echo '${'$as_ac_Header'}'`
  21468. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21469. echo "${ECHO_T}$ac_res" >&6; }
  21470. fi
  21471. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21472. cat >>confdefs.h <<_ACEOF
  21473. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21474. _ACEOF
  21475. fi
  21476. done
  21477. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21478. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  21479. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21480. echo $ECHO_N "(cached) $ECHO_C" >&6
  21481. else
  21482. if test "$cross_compiling" = yes; then
  21483. ac_cv_func_malloc_0_nonnull=no
  21484. else
  21485. cat >conftest.$ac_ext <<_ACEOF
  21486. /* confdefs.h. */
  21487. _ACEOF
  21488. cat confdefs.h >>conftest.$ac_ext
  21489. cat >>conftest.$ac_ext <<_ACEOF
  21490. /* end confdefs.h. */
  21491. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  21492. # include <stdlib.h>
  21493. #else
  21494. char *malloc ();
  21495. #endif
  21496. int
  21497. main ()
  21498. {
  21499. return ! malloc (0);
  21500. ;
  21501. return 0;
  21502. }
  21503. _ACEOF
  21504. rm -f conftest$ac_exeext
  21505. if { (ac_try="$ac_link"
  21506. case "(($ac_try" in
  21507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21508. *) ac_try_echo=$ac_try;;
  21509. esac
  21510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21511. (eval "$ac_link") 2>&5
  21512. ac_status=$?
  21513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21514. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21515. { (case "(($ac_try" in
  21516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21517. *) ac_try_echo=$ac_try;;
  21518. esac
  21519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21520. (eval "$ac_try") 2>&5
  21521. ac_status=$?
  21522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21523. (exit $ac_status); }; }; then
  21524. ac_cv_func_malloc_0_nonnull=yes
  21525. else
  21526. echo "$as_me: program exited with status $ac_status" >&5
  21527. echo "$as_me: failed program was:" >&5
  21528. sed 's/^/| /' conftest.$ac_ext >&5
  21529. ( exit $ac_status )
  21530. ac_cv_func_malloc_0_nonnull=no
  21531. fi
  21532. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21533. fi
  21534. fi
  21535. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21536. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  21537. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21538. cat >>confdefs.h <<\_ACEOF
  21539. #define HAVE_MALLOC 1
  21540. _ACEOF
  21541. else
  21542. cat >>confdefs.h <<\_ACEOF
  21543. #define HAVE_MALLOC 0
  21544. _ACEOF
  21545. case " $LIBOBJS " in
  21546. *" malloc.$ac_objext "* ) ;;
  21547. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  21548. ;;
  21549. esac
  21550. cat >>confdefs.h <<\_ACEOF
  21551. #define malloc rpl_malloc
  21552. _ACEOF
  21553. fi
  21554. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  21555. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  21556. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21557. echo $ECHO_N "(cached) $ECHO_C" >&6
  21558. else
  21559. if test "$cross_compiling" = yes; then
  21560. ac_cv_func_memcmp_working=no
  21561. else
  21562. cat >conftest.$ac_ext <<_ACEOF
  21563. /* confdefs.h. */
  21564. _ACEOF
  21565. cat confdefs.h >>conftest.$ac_ext
  21566. cat >>conftest.$ac_ext <<_ACEOF
  21567. /* end confdefs.h. */
  21568. $ac_includes_default
  21569. int
  21570. main ()
  21571. {
  21572. /* Some versions of memcmp are not 8-bit clean. */
  21573. char c0 = '\100', c1 = '\200', c2 = '\201';
  21574. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21575. return 1;
  21576. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21577. or more and with at least one buffer not starting on a 4-byte boundary.
  21578. William Lewis provided this test program. */
  21579. {
  21580. char foo[21];
  21581. char bar[21];
  21582. int i;
  21583. for (i = 0; i < 4; i++)
  21584. {
  21585. char *a = foo + i;
  21586. char *b = bar + i;
  21587. strcpy (a, "--------01111111");
  21588. strcpy (b, "--------10000000");
  21589. if (memcmp (a, b, 16) >= 0)
  21590. return 1;
  21591. }
  21592. return 0;
  21593. }
  21594. ;
  21595. return 0;
  21596. }
  21597. _ACEOF
  21598. rm -f conftest$ac_exeext
  21599. if { (ac_try="$ac_link"
  21600. case "(($ac_try" in
  21601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21602. *) ac_try_echo=$ac_try;;
  21603. esac
  21604. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21605. (eval "$ac_link") 2>&5
  21606. ac_status=$?
  21607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21608. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21609. { (case "(($ac_try" in
  21610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21611. *) ac_try_echo=$ac_try;;
  21612. esac
  21613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21614. (eval "$ac_try") 2>&5
  21615. ac_status=$?
  21616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21617. (exit $ac_status); }; }; then
  21618. ac_cv_func_memcmp_working=yes
  21619. else
  21620. echo "$as_me: program exited with status $ac_status" >&5
  21621. echo "$as_me: failed program was:" >&5
  21622. sed 's/^/| /' conftest.$ac_ext >&5
  21623. ( exit $ac_status )
  21624. ac_cv_func_memcmp_working=no
  21625. fi
  21626. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21627. fi
  21628. fi
  21629. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21630. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  21631. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  21632. *" memcmp.$ac_objext "* ) ;;
  21633. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  21634. ;;
  21635. esac
  21636. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21637. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  21638. if test "${ac_cv_type_signal+set}" = set; then
  21639. echo $ECHO_N "(cached) $ECHO_C" >&6
  21640. else
  21641. cat >conftest.$ac_ext <<_ACEOF
  21642. /* confdefs.h. */
  21643. _ACEOF
  21644. cat confdefs.h >>conftest.$ac_ext
  21645. cat >>conftest.$ac_ext <<_ACEOF
  21646. /* end confdefs.h. */
  21647. #include <sys/types.h>
  21648. #include <signal.h>
  21649. int
  21650. main ()
  21651. {
  21652. return *(signal (0, 0)) (0) == 1;
  21653. ;
  21654. return 0;
  21655. }
  21656. _ACEOF
  21657. rm -f conftest.$ac_objext
  21658. if { (ac_try="$ac_compile"
  21659. case "(($ac_try" in
  21660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21661. *) ac_try_echo=$ac_try;;
  21662. esac
  21663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21664. (eval "$ac_compile") 2>conftest.er1
  21665. ac_status=$?
  21666. grep -v '^ *+' conftest.er1 >conftest.err
  21667. rm -f conftest.er1
  21668. cat conftest.err >&5
  21669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21670. (exit $ac_status); } && {
  21671. test -z "$ac_c_werror_flag" ||
  21672. test ! -s conftest.err
  21673. } && test -s conftest.$ac_objext; then
  21674. ac_cv_type_signal=int
  21675. else
  21676. echo "$as_me: failed program was:" >&5
  21677. sed 's/^/| /' conftest.$ac_ext >&5
  21678. ac_cv_type_signal=void
  21679. fi
  21680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21681. fi
  21682. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21683. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  21684. cat >>confdefs.h <<_ACEOF
  21685. #define RETSIGTYPE $ac_cv_type_signal
  21686. _ACEOF
  21687. for ac_func in vprintf
  21688. do
  21689. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21690. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21691. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21692. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21693. echo $ECHO_N "(cached) $ECHO_C" >&6
  21694. else
  21695. cat >conftest.$ac_ext <<_ACEOF
  21696. /* confdefs.h. */
  21697. _ACEOF
  21698. cat confdefs.h >>conftest.$ac_ext
  21699. cat >>conftest.$ac_ext <<_ACEOF
  21700. /* end confdefs.h. */
  21701. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21702. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21703. #define $ac_func innocuous_$ac_func
  21704. /* System header to define __stub macros and hopefully few prototypes,
  21705. which can conflict with char $ac_func (); below.
  21706. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21707. <limits.h> exists even on freestanding compilers. */
  21708. #ifdef __STDC__
  21709. # include <limits.h>
  21710. #else
  21711. # include <assert.h>
  21712. #endif
  21713. #undef $ac_func
  21714. /* Override any GCC internal prototype to avoid an error.
  21715. Use char because int might match the return type of a GCC
  21716. builtin and then its argument prototype would still apply. */
  21717. #ifdef __cplusplus
  21718. extern "C"
  21719. #endif
  21720. char $ac_func ();
  21721. /* The GNU C library defines this for functions which it implements
  21722. to always fail with ENOSYS. Some functions are actually named
  21723. something starting with __ and the normal name is an alias. */
  21724. #if defined __stub_$ac_func || defined __stub___$ac_func
  21725. choke me
  21726. #endif
  21727. int
  21728. main ()
  21729. {
  21730. return $ac_func ();
  21731. ;
  21732. return 0;
  21733. }
  21734. _ACEOF
  21735. rm -f conftest.$ac_objext conftest$ac_exeext
  21736. if { (ac_try="$ac_link"
  21737. case "(($ac_try" in
  21738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21739. *) ac_try_echo=$ac_try;;
  21740. esac
  21741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21742. (eval "$ac_link") 2>conftest.er1
  21743. ac_status=$?
  21744. grep -v '^ *+' conftest.er1 >conftest.err
  21745. rm -f conftest.er1
  21746. cat conftest.err >&5
  21747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21748. (exit $ac_status); } && {
  21749. test -z "$ac_c_werror_flag" ||
  21750. test ! -s conftest.err
  21751. } && test -s conftest$ac_exeext &&
  21752. $as_test_x conftest$ac_exeext; then
  21753. eval "$as_ac_var=yes"
  21754. else
  21755. echo "$as_me: failed program was:" >&5
  21756. sed 's/^/| /' conftest.$ac_ext >&5
  21757. eval "$as_ac_var=no"
  21758. fi
  21759. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21760. conftest$ac_exeext conftest.$ac_ext
  21761. fi
  21762. ac_res=`eval echo '${'$as_ac_var'}'`
  21763. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21764. echo "${ECHO_T}$ac_res" >&6; }
  21765. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21766. cat >>confdefs.h <<_ACEOF
  21767. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21768. _ACEOF
  21769. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  21770. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  21771. if test "${ac_cv_func__doprnt+set}" = set; then
  21772. echo $ECHO_N "(cached) $ECHO_C" >&6
  21773. else
  21774. cat >conftest.$ac_ext <<_ACEOF
  21775. /* confdefs.h. */
  21776. _ACEOF
  21777. cat confdefs.h >>conftest.$ac_ext
  21778. cat >>conftest.$ac_ext <<_ACEOF
  21779. /* end confdefs.h. */
  21780. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21781. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21782. #define _doprnt innocuous__doprnt
  21783. /* System header to define __stub macros and hopefully few prototypes,
  21784. which can conflict with char _doprnt (); below.
  21785. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21786. <limits.h> exists even on freestanding compilers. */
  21787. #ifdef __STDC__
  21788. # include <limits.h>
  21789. #else
  21790. # include <assert.h>
  21791. #endif
  21792. #undef _doprnt
  21793. /* Override any GCC internal prototype to avoid an error.
  21794. Use char because int might match the return type of a GCC
  21795. builtin and then its argument prototype would still apply. */
  21796. #ifdef __cplusplus
  21797. extern "C"
  21798. #endif
  21799. char _doprnt ();
  21800. /* The GNU C library defines this for functions which it implements
  21801. to always fail with ENOSYS. Some functions are actually named
  21802. something starting with __ and the normal name is an alias. */
  21803. #if defined __stub__doprnt || defined __stub____doprnt
  21804. choke me
  21805. #endif
  21806. int
  21807. main ()
  21808. {
  21809. return _doprnt ();
  21810. ;
  21811. return 0;
  21812. }
  21813. _ACEOF
  21814. rm -f conftest.$ac_objext conftest$ac_exeext
  21815. if { (ac_try="$ac_link"
  21816. case "(($ac_try" in
  21817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21818. *) ac_try_echo=$ac_try;;
  21819. esac
  21820. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21821. (eval "$ac_link") 2>conftest.er1
  21822. ac_status=$?
  21823. grep -v '^ *+' conftest.er1 >conftest.err
  21824. rm -f conftest.er1
  21825. cat conftest.err >&5
  21826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21827. (exit $ac_status); } && {
  21828. test -z "$ac_c_werror_flag" ||
  21829. test ! -s conftest.err
  21830. } && test -s conftest$ac_exeext &&
  21831. $as_test_x conftest$ac_exeext; then
  21832. ac_cv_func__doprnt=yes
  21833. else
  21834. echo "$as_me: failed program was:" >&5
  21835. sed 's/^/| /' conftest.$ac_ext >&5
  21836. ac_cv_func__doprnt=no
  21837. fi
  21838. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21839. conftest$ac_exeext conftest.$ac_ext
  21840. fi
  21841. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21842. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  21843. if test $ac_cv_func__doprnt = yes; then
  21844. cat >>confdefs.h <<\_ACEOF
  21845. #define HAVE_DOPRNT 1
  21846. _ACEOF
  21847. fi
  21848. fi
  21849. done
  21850. { echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21851. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6; }
  21852. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21853. echo $ECHO_N "(cached) $ECHO_C" >&6
  21854. else
  21855. cat >conftest.$ac_ext <<_ACEOF
  21856. /* confdefs.h. */
  21857. _ACEOF
  21858. cat confdefs.h >>conftest.$ac_ext
  21859. cat >>conftest.$ac_ext <<_ACEOF
  21860. /* end confdefs.h. */
  21861. $ac_includes_default
  21862. int
  21863. main ()
  21864. {
  21865. static struct timeval ac_aggr;
  21866. if (ac_aggr.tv_sec)
  21867. return 0;
  21868. ;
  21869. return 0;
  21870. }
  21871. _ACEOF
  21872. rm -f conftest.$ac_objext
  21873. if { (ac_try="$ac_compile"
  21874. case "(($ac_try" in
  21875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21876. *) ac_try_echo=$ac_try;;
  21877. esac
  21878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21879. (eval "$ac_compile") 2>conftest.er1
  21880. ac_status=$?
  21881. grep -v '^ *+' conftest.er1 >conftest.err
  21882. rm -f conftest.er1
  21883. cat conftest.err >&5
  21884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21885. (exit $ac_status); } && {
  21886. test -z "$ac_c_werror_flag" ||
  21887. test ! -s conftest.err
  21888. } && test -s conftest.$ac_objext; then
  21889. ac_cv_member_struct_timeval_tv_sec=yes
  21890. else
  21891. echo "$as_me: failed program was:" >&5
  21892. sed 's/^/| /' conftest.$ac_ext >&5
  21893. cat >conftest.$ac_ext <<_ACEOF
  21894. /* confdefs.h. */
  21895. _ACEOF
  21896. cat confdefs.h >>conftest.$ac_ext
  21897. cat >>conftest.$ac_ext <<_ACEOF
  21898. /* end confdefs.h. */
  21899. $ac_includes_default
  21900. int
  21901. main ()
  21902. {
  21903. static struct timeval ac_aggr;
  21904. if (sizeof ac_aggr.tv_sec)
  21905. return 0;
  21906. ;
  21907. return 0;
  21908. }
  21909. _ACEOF
  21910. rm -f conftest.$ac_objext
  21911. if { (ac_try="$ac_compile"
  21912. case "(($ac_try" in
  21913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21914. *) ac_try_echo=$ac_try;;
  21915. esac
  21916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21917. (eval "$ac_compile") 2>conftest.er1
  21918. ac_status=$?
  21919. grep -v '^ *+' conftest.er1 >conftest.err
  21920. rm -f conftest.er1
  21921. cat conftest.err >&5
  21922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21923. (exit $ac_status); } && {
  21924. test -z "$ac_c_werror_flag" ||
  21925. test ! -s conftest.err
  21926. } && test -s conftest.$ac_objext; then
  21927. ac_cv_member_struct_timeval_tv_sec=yes
  21928. else
  21929. echo "$as_me: failed program was:" >&5
  21930. sed 's/^/| /' conftest.$ac_ext >&5
  21931. ac_cv_member_struct_timeval_tv_sec=no
  21932. fi
  21933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21934. fi
  21935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21936. fi
  21937. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21938. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6; }
  21939. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21940. cat >>confdefs.h <<_ACEOF
  21941. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21942. _ACEOF
  21943. fi
  21944. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf
  21945. do
  21946. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21947. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21948. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21949. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21950. echo $ECHO_N "(cached) $ECHO_C" >&6
  21951. else
  21952. cat >conftest.$ac_ext <<_ACEOF
  21953. /* confdefs.h. */
  21954. _ACEOF
  21955. cat confdefs.h >>conftest.$ac_ext
  21956. cat >>conftest.$ac_ext <<_ACEOF
  21957. /* end confdefs.h. */
  21958. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21959. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21960. #define $ac_func innocuous_$ac_func
  21961. /* System header to define __stub macros and hopefully few prototypes,
  21962. which can conflict with char $ac_func (); below.
  21963. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21964. <limits.h> exists even on freestanding compilers. */
  21965. #ifdef __STDC__
  21966. # include <limits.h>
  21967. #else
  21968. # include <assert.h>
  21969. #endif
  21970. #undef $ac_func
  21971. /* Override any GCC internal prototype to avoid an error.
  21972. Use char because int might match the return type of a GCC
  21973. builtin and then its argument prototype would still apply. */
  21974. #ifdef __cplusplus
  21975. extern "C"
  21976. #endif
  21977. char $ac_func ();
  21978. /* The GNU C library defines this for functions which it implements
  21979. to always fail with ENOSYS. Some functions are actually named
  21980. something starting with __ and the normal name is an alias. */
  21981. #if defined __stub_$ac_func || defined __stub___$ac_func
  21982. choke me
  21983. #endif
  21984. int
  21985. main ()
  21986. {
  21987. return $ac_func ();
  21988. ;
  21989. return 0;
  21990. }
  21991. _ACEOF
  21992. rm -f conftest.$ac_objext conftest$ac_exeext
  21993. if { (ac_try="$ac_link"
  21994. case "(($ac_try" in
  21995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21996. *) ac_try_echo=$ac_try;;
  21997. esac
  21998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21999. (eval "$ac_link") 2>conftest.er1
  22000. ac_status=$?
  22001. grep -v '^ *+' conftest.er1 >conftest.err
  22002. rm -f conftest.er1
  22003. cat conftest.err >&5
  22004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22005. (exit $ac_status); } && {
  22006. test -z "$ac_c_werror_flag" ||
  22007. test ! -s conftest.err
  22008. } && test -s conftest$ac_exeext &&
  22009. $as_test_x conftest$ac_exeext; then
  22010. eval "$as_ac_var=yes"
  22011. else
  22012. echo "$as_me: failed program was:" >&5
  22013. sed 's/^/| /' conftest.$ac_ext >&5
  22014. eval "$as_ac_var=no"
  22015. fi
  22016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22017. conftest$ac_exeext conftest.$ac_ext
  22018. fi
  22019. ac_res=`eval echo '${'$as_ac_var'}'`
  22020. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22021. echo "${ECHO_T}$ac_res" >&6; }
  22022. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22023. cat >>confdefs.h <<_ACEOF
  22024. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22025. _ACEOF
  22026. fi
  22027. done
  22028. for ac_func in strlcpy
  22029. do
  22030. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22031. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  22032. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  22033. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22034. echo $ECHO_N "(cached) $ECHO_C" >&6
  22035. else
  22036. cat >conftest.$ac_ext <<_ACEOF
  22037. /* confdefs.h. */
  22038. _ACEOF
  22039. cat confdefs.h >>conftest.$ac_ext
  22040. cat >>conftest.$ac_ext <<_ACEOF
  22041. /* end confdefs.h. */
  22042. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22043. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22044. #define $ac_func innocuous_$ac_func
  22045. /* System header to define __stub macros and hopefully few prototypes,
  22046. which can conflict with char $ac_func (); below.
  22047. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22048. <limits.h> exists even on freestanding compilers. */
  22049. #ifdef __STDC__
  22050. # include <limits.h>
  22051. #else
  22052. # include <assert.h>
  22053. #endif
  22054. #undef $ac_func
  22055. /* Override any GCC internal prototype to avoid an error.
  22056. Use char because int might match the return type of a GCC
  22057. builtin and then its argument prototype would still apply. */
  22058. #ifdef __cplusplus
  22059. extern "C"
  22060. #endif
  22061. char $ac_func ();
  22062. /* The GNU C library defines this for functions which it implements
  22063. to always fail with ENOSYS. Some functions are actually named
  22064. something starting with __ and the normal name is an alias. */
  22065. #if defined __stub_$ac_func || defined __stub___$ac_func
  22066. choke me
  22067. #endif
  22068. int
  22069. main ()
  22070. {
  22071. return $ac_func ();
  22072. ;
  22073. return 0;
  22074. }
  22075. _ACEOF
  22076. rm -f conftest.$ac_objext conftest$ac_exeext
  22077. if { (ac_try="$ac_link"
  22078. case "(($ac_try" in
  22079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22080. *) ac_try_echo=$ac_try;;
  22081. esac
  22082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22083. (eval "$ac_link") 2>conftest.er1
  22084. ac_status=$?
  22085. grep -v '^ *+' conftest.er1 >conftest.err
  22086. rm -f conftest.er1
  22087. cat conftest.err >&5
  22088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22089. (exit $ac_status); } && {
  22090. test -z "$ac_c_werror_flag" ||
  22091. test ! -s conftest.err
  22092. } && test -s conftest$ac_exeext &&
  22093. $as_test_x conftest$ac_exeext; then
  22094. eval "$as_ac_var=yes"
  22095. else
  22096. echo "$as_me: failed program was:" >&5
  22097. sed 's/^/| /' conftest.$ac_ext >&5
  22098. eval "$as_ac_var=no"
  22099. fi
  22100. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22101. conftest$ac_exeext conftest.$ac_ext
  22102. fi
  22103. ac_res=`eval echo '${'$as_ac_var'}'`
  22104. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22105. echo "${ECHO_T}$ac_res" >&6; }
  22106. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22107. cat >>confdefs.h <<_ACEOF
  22108. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22109. _ACEOF
  22110. have_strlcpy=true
  22111. else
  22112. have_strlcpy=false
  22113. fi
  22114. done
  22115. if test x$have_strlcpy = xtrue; then
  22116. SYSTEM_STRLCPY_TRUE=
  22117. SYSTEM_STRLCPY_FALSE='#'
  22118. else
  22119. SYSTEM_STRLCPY_TRUE='#'
  22120. SYSTEM_STRLCPY_FALSE=
  22121. fi
  22122. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  22123. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  22124. if test "${ac_cv_c_bigendian+set}" = set; then
  22125. echo $ECHO_N "(cached) $ECHO_C" >&6
  22126. else
  22127. # See if sys/param.h defines the BYTE_ORDER macro.
  22128. cat >conftest.$ac_ext <<_ACEOF
  22129. /* confdefs.h. */
  22130. _ACEOF
  22131. cat confdefs.h >>conftest.$ac_ext
  22132. cat >>conftest.$ac_ext <<_ACEOF
  22133. /* end confdefs.h. */
  22134. #include <sys/types.h>
  22135. #include <sys/param.h>
  22136. int
  22137. main ()
  22138. {
  22139. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  22140. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  22141. bogus endian macros
  22142. #endif
  22143. ;
  22144. return 0;
  22145. }
  22146. _ACEOF
  22147. rm -f conftest.$ac_objext
  22148. if { (ac_try="$ac_compile"
  22149. case "(($ac_try" in
  22150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22151. *) ac_try_echo=$ac_try;;
  22152. esac
  22153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22154. (eval "$ac_compile") 2>conftest.er1
  22155. ac_status=$?
  22156. grep -v '^ *+' conftest.er1 >conftest.err
  22157. rm -f conftest.er1
  22158. cat conftest.err >&5
  22159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22160. (exit $ac_status); } && {
  22161. test -z "$ac_c_werror_flag" ||
  22162. test ! -s conftest.err
  22163. } && test -s conftest.$ac_objext; then
  22164. # It does; now see whether it defined to BIG_ENDIAN or not.
  22165. cat >conftest.$ac_ext <<_ACEOF
  22166. /* confdefs.h. */
  22167. _ACEOF
  22168. cat confdefs.h >>conftest.$ac_ext
  22169. cat >>conftest.$ac_ext <<_ACEOF
  22170. /* end confdefs.h. */
  22171. #include <sys/types.h>
  22172. #include <sys/param.h>
  22173. int
  22174. main ()
  22175. {
  22176. #if BYTE_ORDER != BIG_ENDIAN
  22177. not big endian
  22178. #endif
  22179. ;
  22180. return 0;
  22181. }
  22182. _ACEOF
  22183. rm -f conftest.$ac_objext
  22184. if { (ac_try="$ac_compile"
  22185. case "(($ac_try" in
  22186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22187. *) ac_try_echo=$ac_try;;
  22188. esac
  22189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22190. (eval "$ac_compile") 2>conftest.er1
  22191. ac_status=$?
  22192. grep -v '^ *+' conftest.er1 >conftest.err
  22193. rm -f conftest.er1
  22194. cat conftest.err >&5
  22195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22196. (exit $ac_status); } && {
  22197. test -z "$ac_c_werror_flag" ||
  22198. test ! -s conftest.err
  22199. } && test -s conftest.$ac_objext; then
  22200. ac_cv_c_bigendian=yes
  22201. else
  22202. echo "$as_me: failed program was:" >&5
  22203. sed 's/^/| /' conftest.$ac_ext >&5
  22204. ac_cv_c_bigendian=no
  22205. fi
  22206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22207. else
  22208. echo "$as_me: failed program was:" >&5
  22209. sed 's/^/| /' conftest.$ac_ext >&5
  22210. # It does not; compile a test program.
  22211. if test "$cross_compiling" = yes; then
  22212. # try to guess the endianness by grepping values into an object file
  22213. ac_cv_c_bigendian=unknown
  22214. cat >conftest.$ac_ext <<_ACEOF
  22215. /* confdefs.h. */
  22216. _ACEOF
  22217. cat confdefs.h >>conftest.$ac_ext
  22218. cat >>conftest.$ac_ext <<_ACEOF
  22219. /* end confdefs.h. */
  22220. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22221. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22222. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  22223. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22224. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22225. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  22226. int
  22227. main ()
  22228. {
  22229. _ascii (); _ebcdic ();
  22230. ;
  22231. return 0;
  22232. }
  22233. _ACEOF
  22234. rm -f conftest.$ac_objext
  22235. if { (ac_try="$ac_compile"
  22236. case "(($ac_try" in
  22237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22238. *) ac_try_echo=$ac_try;;
  22239. esac
  22240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22241. (eval "$ac_compile") 2>conftest.er1
  22242. ac_status=$?
  22243. grep -v '^ *+' conftest.er1 >conftest.err
  22244. rm -f conftest.er1
  22245. cat conftest.err >&5
  22246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22247. (exit $ac_status); } && {
  22248. test -z "$ac_c_werror_flag" ||
  22249. test ! -s conftest.err
  22250. } && test -s conftest.$ac_objext; then
  22251. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  22252. ac_cv_c_bigendian=yes
  22253. fi
  22254. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22255. if test "$ac_cv_c_bigendian" = unknown; then
  22256. ac_cv_c_bigendian=no
  22257. else
  22258. # finding both strings is unlikely to happen, but who knows?
  22259. ac_cv_c_bigendian=unknown
  22260. fi
  22261. fi
  22262. else
  22263. echo "$as_me: failed program was:" >&5
  22264. sed 's/^/| /' conftest.$ac_ext >&5
  22265. fi
  22266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22267. else
  22268. cat >conftest.$ac_ext <<_ACEOF
  22269. /* confdefs.h. */
  22270. _ACEOF
  22271. cat confdefs.h >>conftest.$ac_ext
  22272. cat >>conftest.$ac_ext <<_ACEOF
  22273. /* end confdefs.h. */
  22274. $ac_includes_default
  22275. int
  22276. main ()
  22277. {
  22278. /* Are we little or big endian? From Harbison&Steele. */
  22279. union
  22280. {
  22281. long int l;
  22282. char c[sizeof (long int)];
  22283. } u;
  22284. u.l = 1;
  22285. return u.c[sizeof (long int) - 1] == 1;
  22286. ;
  22287. return 0;
  22288. }
  22289. _ACEOF
  22290. rm -f conftest$ac_exeext
  22291. if { (ac_try="$ac_link"
  22292. case "(($ac_try" in
  22293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22294. *) ac_try_echo=$ac_try;;
  22295. esac
  22296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22297. (eval "$ac_link") 2>&5
  22298. ac_status=$?
  22299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22300. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22301. { (case "(($ac_try" in
  22302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22303. *) ac_try_echo=$ac_try;;
  22304. esac
  22305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22306. (eval "$ac_try") 2>&5
  22307. ac_status=$?
  22308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22309. (exit $ac_status); }; }; then
  22310. ac_cv_c_bigendian=no
  22311. else
  22312. echo "$as_me: program exited with status $ac_status" >&5
  22313. echo "$as_me: failed program was:" >&5
  22314. sed 's/^/| /' conftest.$ac_ext >&5
  22315. ( exit $ac_status )
  22316. ac_cv_c_bigendian=yes
  22317. fi
  22318. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22319. fi
  22320. fi
  22321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22322. fi
  22323. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22324. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  22325. case $ac_cv_c_bigendian in
  22326. yes)
  22327. cat >>confdefs.h <<\_ACEOF
  22328. #define WORDS_BIGENDIAN 1
  22329. _ACEOF
  22330. ;;
  22331. no)
  22332. ;;
  22333. *)
  22334. { { echo "$as_me:$LINENO: error: unknown endianness
  22335. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22336. echo "$as_me: error: unknown endianness
  22337. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22338. { (exit 1); exit 1; }; } ;;
  22339. esac
  22340. if test x$ac_cv_c_bigendian = xyes ; then
  22341. WORDS_BIGENDIAN_TRUE=
  22342. WORDS_BIGENDIAN_FALSE='#'
  22343. else
  22344. WORDS_BIGENDIAN_TRUE='#'
  22345. WORDS_BIGENDIAN_FALSE=
  22346. fi
  22347. debug=no
  22348. # Check whether --enable-debug was given.
  22349. if test "${enable_debug+set}" = set; then
  22350. enableval=$enable_debug; if test x$enableval = xyes; then
  22351. debug=yes
  22352. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  22353. # We may also want to add:
  22354. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  22355. cat >>confdefs.h <<\_ACEOF
  22356. #define DEBUG 1
  22357. _ACEOF
  22358. fi
  22359. fi
  22360. # Check whether --enable-pedantic was given.
  22361. if test "${enable_pedantic+set}" = set; then
  22362. enableval=$enable_pedantic; if test x$enableval = xyes; then
  22363. CFLAGS="$CFLAGS -pedantic"
  22364. fi
  22365. fi
  22366. # Check whether --enable-efence was given.
  22367. if test "${enable_efence+set}" = set; then
  22368. enableval=$enable_efence; if test x$enableval = xyes; then
  22369. CFLAGS="$CFLAGS -lefence"
  22370. cat >>confdefs.h <<\_ACEOF
  22371. #define EFENCE 1
  22372. _ACEOF
  22373. fi
  22374. fi
  22375. # Check whether --enable-gprof was given.
  22376. if test "${enable_gprof+set}" = set; then
  22377. enableval=$enable_gprof; if test x$enableval = xyes; then
  22378. if test $debug = yes; then
  22379. CFLAGS="$CFLAGS -pg"
  22380. else
  22381. # GPROF requires gdb
  22382. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22383. fi
  22384. cat >>confdefs.h <<\_ACEOF
  22385. #define GPROF 1
  22386. _ACEOF
  22387. fi
  22388. fi
  22389. use64bit_counters=yes
  22390. # Check whether --enable-64bits was given.
  22391. if test "${enable_64bits+set}" = set; then
  22392. enableval=$enable_64bits;
  22393. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22394. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22395. else
  22396. cat >>confdefs.h <<\_ACEOF
  22397. #define ENABLE_64BITS 1
  22398. _ACEOF
  22399. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22400. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22401. fi
  22402. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  22403. # so we can use _U_ to flag unused function arguments and not get warnings
  22404. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  22405. # function argument will compile with non-GCC compilers.
  22406. #
  22407. if test "x$GCC" = "xyes" ; then
  22408. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  22409. else
  22410. CFLAGS="-D_U_=\"\" $CFLAGS"
  22411. fi
  22412. # Check whether --enable-force-bpf was given.
  22413. if test "${enable_force_bpf+set}" = set; then
  22414. enableval=$enable_force_bpf;
  22415. cat >>confdefs.h <<\_ACEOF
  22416. #define FORCE_INJECT_BPF 1
  22417. _ACEOF
  22418. fi
  22419. # Check whether --enable-force-pf was given.
  22420. if test "${enable_force_pf+set}" = set; then
  22421. enableval=$enable_force_pf;
  22422. cat >>confdefs.h <<\_ACEOF
  22423. #define FORCE_INJECT_PF 1
  22424. _ACEOF
  22425. fi
  22426. # Check whether --enable-force-libnet was given.
  22427. if test "${enable_force_libnet+set}" = set; then
  22428. enableval=$enable_force_libnet;
  22429. cat >>confdefs.h <<\_ACEOF
  22430. #define FORCE_INJECT_LIBNET 1
  22431. _ACEOF
  22432. fi
  22433. # Check whether --enable-force-inject was given.
  22434. if test "${enable_force_inject+set}" = set; then
  22435. enableval=$enable_force_inject;
  22436. cat >>confdefs.h <<\_ACEOF
  22437. #define FORCE_INJECT_PCAP_INJECT 1
  22438. _ACEOF
  22439. fi
  22440. # Check whether --enable-force-sendpacket was given.
  22441. if test "${enable_force_sendpacket+set}" = set; then
  22442. enableval=$enable_force_sendpacket;
  22443. cat >>confdefs.h <<\_ACEOF
  22444. #define FORCE_INJECT_PCAP_SENDPACKET 1
  22445. _ACEOF
  22446. fi
  22447. tcpreplay_edit=no
  22448. # Check whether --enable-tcpreplay-edit was given.
  22449. if test "${enable_tcpreplay_edit+set}" = set; then
  22450. enableval=$enable_tcpreplay_edit;
  22451. cat >>confdefs.h <<\_ACEOF
  22452. #define TCPREPLAY_EDIT 1
  22453. _ACEOF
  22454. tcpreplay_edit=yes
  22455. fi
  22456. if test x$tcpreplay_edit = xyes; then
  22457. ENABLE_TCPREPLAY_EDIT_TRUE=
  22458. ENABLE_TCPREPLAY_EDIT_FALSE='#'
  22459. else
  22460. ENABLE_TCPREPLAY_EDIT_TRUE='#'
  22461. ENABLE_TCPREPLAY_EDIT_FALSE=
  22462. fi
  22463. dynamic_link=no
  22464. # Check whether --enable-dynamic-link was given.
  22465. if test "${enable_dynamic_link+set}" = set; then
  22466. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  22467. cat >>confdefs.h <<\_ACEOF
  22468. #define ENABLE_DYNAMIC_LINK 1
  22469. _ACEOF
  22470. dynamic_link=yes
  22471. fi
  22472. fi
  22473. { echo "$as_me:$LINENO: checking for inet_aton" >&5
  22474. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
  22475. if test "${ac_cv_func_inet_aton+set}" = set; then
  22476. echo $ECHO_N "(cached) $ECHO_C" >&6
  22477. else
  22478. cat >conftest.$ac_ext <<_ACEOF
  22479. /* confdefs.h. */
  22480. _ACEOF
  22481. cat confdefs.h >>conftest.$ac_ext
  22482. cat >>conftest.$ac_ext <<_ACEOF
  22483. /* end confdefs.h. */
  22484. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22486. #define inet_aton innocuous_inet_aton
  22487. /* System header to define __stub macros and hopefully few prototypes,
  22488. which can conflict with char inet_aton (); below.
  22489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22490. <limits.h> exists even on freestanding compilers. */
  22491. #ifdef __STDC__
  22492. # include <limits.h>
  22493. #else
  22494. # include <assert.h>
  22495. #endif
  22496. #undef inet_aton
  22497. /* Override any GCC internal prototype to avoid an error.
  22498. Use char because int might match the return type of a GCC
  22499. builtin and then its argument prototype would still apply. */
  22500. #ifdef __cplusplus
  22501. extern "C"
  22502. #endif
  22503. char inet_aton ();
  22504. /* The GNU C library defines this for functions which it implements
  22505. to always fail with ENOSYS. Some functions are actually named
  22506. something starting with __ and the normal name is an alias. */
  22507. #if defined __stub_inet_aton || defined __stub___inet_aton
  22508. choke me
  22509. #endif
  22510. int
  22511. main ()
  22512. {
  22513. return inet_aton ();
  22514. ;
  22515. return 0;
  22516. }
  22517. _ACEOF
  22518. rm -f conftest.$ac_objext conftest$ac_exeext
  22519. if { (ac_try="$ac_link"
  22520. case "(($ac_try" in
  22521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22522. *) ac_try_echo=$ac_try;;
  22523. esac
  22524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22525. (eval "$ac_link") 2>conftest.er1
  22526. ac_status=$?
  22527. grep -v '^ *+' conftest.er1 >conftest.err
  22528. rm -f conftest.er1
  22529. cat conftest.err >&5
  22530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22531. (exit $ac_status); } && {
  22532. test -z "$ac_c_werror_flag" ||
  22533. test ! -s conftest.err
  22534. } && test -s conftest$ac_exeext &&
  22535. $as_test_x conftest$ac_exeext; then
  22536. ac_cv_func_inet_aton=yes
  22537. else
  22538. echo "$as_me: failed program was:" >&5
  22539. sed 's/^/| /' conftest.$ac_ext >&5
  22540. ac_cv_func_inet_aton=no
  22541. fi
  22542. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22543. conftest$ac_exeext conftest.$ac_ext
  22544. fi
  22545. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22546. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
  22547. if test $ac_cv_func_inet_aton = yes; then
  22548. cat >>confdefs.h <<\_ACEOF
  22549. #define HAVE_INET_ATON 1
  22550. _ACEOF
  22551. inet_aton=yes
  22552. else
  22553. inet_aton=no
  22554. fi
  22555. { echo "$as_me:$LINENO: checking for inet_pton" >&5
  22556. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
  22557. if test "${ac_cv_func_inet_pton+set}" = set; then
  22558. echo $ECHO_N "(cached) $ECHO_C" >&6
  22559. else
  22560. cat >conftest.$ac_ext <<_ACEOF
  22561. /* confdefs.h. */
  22562. _ACEOF
  22563. cat confdefs.h >>conftest.$ac_ext
  22564. cat >>conftest.$ac_ext <<_ACEOF
  22565. /* end confdefs.h. */
  22566. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  22567. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22568. #define inet_pton innocuous_inet_pton
  22569. /* System header to define __stub macros and hopefully few prototypes,
  22570. which can conflict with char inet_pton (); below.
  22571. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22572. <limits.h> exists even on freestanding compilers. */
  22573. #ifdef __STDC__
  22574. # include <limits.h>
  22575. #else
  22576. # include <assert.h>
  22577. #endif
  22578. #undef inet_pton
  22579. /* Override any GCC internal prototype to avoid an error.
  22580. Use char because int might match the return type of a GCC
  22581. builtin and then its argument prototype would still apply. */
  22582. #ifdef __cplusplus
  22583. extern "C"
  22584. #endif
  22585. char inet_pton ();
  22586. /* The GNU C library defines this for functions which it implements
  22587. to always fail with ENOSYS. Some functions are actually named
  22588. something starting with __ and the normal name is an alias. */
  22589. #if defined __stub_inet_pton || defined __stub___inet_pton
  22590. choke me
  22591. #endif
  22592. int
  22593. main ()
  22594. {
  22595. return inet_pton ();
  22596. ;
  22597. return 0;
  22598. }
  22599. _ACEOF
  22600. rm -f conftest.$ac_objext conftest$ac_exeext
  22601. if { (ac_try="$ac_link"
  22602. case "(($ac_try" in
  22603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22604. *) ac_try_echo=$ac_try;;
  22605. esac
  22606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22607. (eval "$ac_link") 2>conftest.er1
  22608. ac_status=$?
  22609. grep -v '^ *+' conftest.er1 >conftest.err
  22610. rm -f conftest.er1
  22611. cat conftest.err >&5
  22612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22613. (exit $ac_status); } && {
  22614. test -z "$ac_c_werror_flag" ||
  22615. test ! -s conftest.err
  22616. } && test -s conftest$ac_exeext &&
  22617. $as_test_x conftest$ac_exeext; then
  22618. ac_cv_func_inet_pton=yes
  22619. else
  22620. echo "$as_me: failed program was:" >&5
  22621. sed 's/^/| /' conftest.$ac_ext >&5
  22622. ac_cv_func_inet_pton=no
  22623. fi
  22624. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22625. conftest$ac_exeext conftest.$ac_ext
  22626. fi
  22627. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  22628. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
  22629. if test $ac_cv_func_inet_pton = yes; then
  22630. cat >>confdefs.h <<\_ACEOF
  22631. #define HAVE_INET_PTON 1
  22632. _ACEOF
  22633. inet_pton=yes
  22634. else
  22635. inet_pton=no
  22636. fi
  22637. { echo "$as_me:$LINENO: checking for inet_ntop" >&5
  22638. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
  22639. if test "${ac_cv_func_inet_ntop+set}" = set; then
  22640. echo $ECHO_N "(cached) $ECHO_C" >&6
  22641. else
  22642. cat >conftest.$ac_ext <<_ACEOF
  22643. /* confdefs.h. */
  22644. _ACEOF
  22645. cat confdefs.h >>conftest.$ac_ext
  22646. cat >>conftest.$ac_ext <<_ACEOF
  22647. /* end confdefs.h. */
  22648. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  22649. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22650. #define inet_ntop innocuous_inet_ntop
  22651. /* System header to define __stub macros and hopefully few prototypes,
  22652. which can conflict with char inet_ntop (); below.
  22653. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22654. <limits.h> exists even on freestanding compilers. */
  22655. #ifdef __STDC__
  22656. # include <limits.h>
  22657. #else
  22658. # include <assert.h>
  22659. #endif
  22660. #undef inet_ntop
  22661. /* Override any GCC internal prototype to avoid an error.
  22662. Use char because int might match the return type of a GCC
  22663. builtin and then its argument prototype would still apply. */
  22664. #ifdef __cplusplus
  22665. extern "C"
  22666. #endif
  22667. char inet_ntop ();
  22668. /* The GNU C library defines this for functions which it implements
  22669. to always fail with ENOSYS. Some functions are actually named
  22670. something starting with __ and the normal name is an alias. */
  22671. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  22672. choke me
  22673. #endif
  22674. int
  22675. main ()
  22676. {
  22677. return inet_ntop ();
  22678. ;
  22679. return 0;
  22680. }
  22681. _ACEOF
  22682. rm -f conftest.$ac_objext conftest$ac_exeext
  22683. if { (ac_try="$ac_link"
  22684. case "(($ac_try" in
  22685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22686. *) ac_try_echo=$ac_try;;
  22687. esac
  22688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22689. (eval "$ac_link") 2>conftest.er1
  22690. ac_status=$?
  22691. grep -v '^ *+' conftest.er1 >conftest.err
  22692. rm -f conftest.er1
  22693. cat conftest.err >&5
  22694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22695. (exit $ac_status); } && {
  22696. test -z "$ac_c_werror_flag" ||
  22697. test ! -s conftest.err
  22698. } && test -s conftest$ac_exeext &&
  22699. $as_test_x conftest$ac_exeext; then
  22700. ac_cv_func_inet_ntop=yes
  22701. else
  22702. echo "$as_me: failed program was:" >&5
  22703. sed 's/^/| /' conftest.$ac_ext >&5
  22704. ac_cv_func_inet_ntop=no
  22705. fi
  22706. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22707. conftest$ac_exeext conftest.$ac_ext
  22708. fi
  22709. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  22710. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
  22711. if test $ac_cv_func_inet_ntop = yes; then
  22712. cat >>confdefs.h <<\_ACEOF
  22713. #define HAVE_INET_NTOP 1
  22714. _ACEOF
  22715. inet_ntop=yes
  22716. else
  22717. inet_ntop=no
  22718. fi
  22719. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  22720. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  22721. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  22722. { (exit 1); exit 1; }; }
  22723. fi
  22724. if test "$inet_aton" = "no" ; then
  22725. { { echo "$as_me:$LINENO: error: We need inet_aton" >&5
  22726. echo "$as_me: error: We need inet_aton" >&2;}
  22727. { (exit 1); exit 1; }; }
  22728. fi
  22729. { echo "$as_me:$LINENO: checking for inet_addr" >&5
  22730. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
  22731. if test "${ac_cv_func_inet_addr+set}" = set; then
  22732. echo $ECHO_N "(cached) $ECHO_C" >&6
  22733. else
  22734. cat >conftest.$ac_ext <<_ACEOF
  22735. /* confdefs.h. */
  22736. _ACEOF
  22737. cat confdefs.h >>conftest.$ac_ext
  22738. cat >>conftest.$ac_ext <<_ACEOF
  22739. /* end confdefs.h. */
  22740. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22741. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22742. #define inet_addr innocuous_inet_addr
  22743. /* System header to define __stub macros and hopefully few prototypes,
  22744. which can conflict with char inet_addr (); below.
  22745. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22746. <limits.h> exists even on freestanding compilers. */
  22747. #ifdef __STDC__
  22748. # include <limits.h>
  22749. #else
  22750. # include <assert.h>
  22751. #endif
  22752. #undef inet_addr
  22753. /* Override any GCC internal prototype to avoid an error.
  22754. Use char because int might match the return type of a GCC
  22755. builtin and then its argument prototype would still apply. */
  22756. #ifdef __cplusplus
  22757. extern "C"
  22758. #endif
  22759. char inet_addr ();
  22760. /* The GNU C library defines this for functions which it implements
  22761. to always fail with ENOSYS. Some functions are actually named
  22762. something starting with __ and the normal name is an alias. */
  22763. #if defined __stub_inet_addr || defined __stub___inet_addr
  22764. choke me
  22765. #endif
  22766. int
  22767. main ()
  22768. {
  22769. return inet_addr ();
  22770. ;
  22771. return 0;
  22772. }
  22773. _ACEOF
  22774. rm -f conftest.$ac_objext conftest$ac_exeext
  22775. if { (ac_try="$ac_link"
  22776. case "(($ac_try" in
  22777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22778. *) ac_try_echo=$ac_try;;
  22779. esac
  22780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22781. (eval "$ac_link") 2>conftest.er1
  22782. ac_status=$?
  22783. grep -v '^ *+' conftest.er1 >conftest.err
  22784. rm -f conftest.er1
  22785. cat conftest.err >&5
  22786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22787. (exit $ac_status); } && {
  22788. test -z "$ac_c_werror_flag" ||
  22789. test ! -s conftest.err
  22790. } && test -s conftest$ac_exeext &&
  22791. $as_test_x conftest$ac_exeext; then
  22792. ac_cv_func_inet_addr=yes
  22793. else
  22794. echo "$as_me: failed program was:" >&5
  22795. sed 's/^/| /' conftest.$ac_ext >&5
  22796. ac_cv_func_inet_addr=no
  22797. fi
  22798. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22799. conftest$ac_exeext conftest.$ac_ext
  22800. fi
  22801. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22802. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
  22803. if test $ac_cv_func_inet_addr = yes; then
  22804. cat >>confdefs.h <<\_ACEOF
  22805. #define HAVE_INET_ADDR 1
  22806. _ACEOF
  22807. inet_addr=yes
  22808. else
  22809. inet_addr=no
  22810. fi
  22811. if test x$inet_addr = no ; then
  22812. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  22813. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  22814. { (exit 1); exit 1; }; }
  22815. fi
  22816. flowreplay=no
  22817. # Check whether --enable-flowreplay was given.
  22818. if test "${enable_flowreplay+set}" = set; then
  22819. enableval=$enable_flowreplay; if test x$enableval = xyes; then
  22820. flowreplay=yes
  22821. cat >>confdefs.h <<\_ACEOF
  22822. #define ENABLE_FLOWREPLAY 1
  22823. _ACEOF
  22824. fi
  22825. fi
  22826. if test x$flowreplay = xyes; then
  22827. ENABLE_FLOWREPLAY_TRUE=
  22828. ENABLE_FLOWREPLAY_FALSE='#'
  22829. else
  22830. ENABLE_FLOWREPLAY_TRUE='#'
  22831. ENABLE_FLOWREPLAY_FALSE=
  22832. fi
  22833. foundnet=no
  22834. trynetdir=no
  22835. have_libnet=no
  22836. use_libnet=no
  22837. # Check whether --enable-libnet was given.
  22838. if test "${enable_libnet+set}" = set; then
  22839. enableval=$enable_libnet; if test x$enableval = xyes; then
  22840. use_libnet=yes
  22841. { echo "$as_me:$LINENO: WARNING: Due to bugs in libnet, it is no longer officially supported" >&5
  22842. echo "$as_me: WARNING: Due to bugs in libnet, it is no longer officially supported" >&2;}
  22843. fi
  22844. fi
  22845. # Check whether --with-libnet was given.
  22846. if test "${with_libnet+set}" = set; then
  22847. withval=$with_libnet; trynetdir=$withval
  22848. fi
  22849. if test x$use_libnet = xyes ; then
  22850. { echo "$as_me:$LINENO: checking for libnet" >&5
  22851. echo $ECHO_N "checking for libnet... $ECHO_C" >&6; }
  22852. for testdir in $trynetdir /usr/local /opt/local /usr ; do
  22853. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22854. LNETINC="${testdir}/include/libnet.h"
  22855. LNETINCDIR="${testdir}/include"
  22856. if test $dynamic_link = yes; then
  22857. if test -f "${testdir}/lib64/libnet${shrext_cmds}" ; then
  22858. LNETLIB="-L${testdir}/lib64 -lnet"
  22859. elif test -f "${testdir}/lib/libnet${shrext_cmds}" ; then
  22860. LNETLIB="-L${testdir}/lib -lnet"
  22861. else
  22862. { { echo "$as_me:$LINENO: error: Unable to find libnet in ${testdir}" >&5
  22863. echo "$as_me: error: Unable to find libnet in ${testdir}" >&2;}
  22864. { (exit 1); exit 1; }; }
  22865. fi
  22866. elif test -f "${testdir}/lib64/libnet.${libext}" ; then
  22867. LNETLIB="${testdir}/lib64/libnet.${libext}"
  22868. elif test -f "${testdir}/lib/libnet.${libext}" ; then
  22869. LNETLIB="${testdir}/lib/libnet.${libext}"
  22870. else
  22871. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  22872. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  22873. { (exit 1); exit 1; }; }
  22874. fi
  22875. foundnet=$testdir
  22876. fi
  22877. done
  22878. if test x$foundnet = xno ; then
  22879. { echo "$as_me:$LINENO: result: no" >&5
  22880. echo "${ECHO_T}no" >&6; }
  22881. else
  22882. { echo "$as_me:$LINENO: result: $foundnet" >&5
  22883. echo "${ECHO_T}$foundnet" >&6; }
  22884. have_libnet=yes
  22885. cat >>confdefs.h <<\_ACEOF
  22886. #define HAVE_LIBNET 1
  22887. _ACEOF
  22888. fi
  22889. fi
  22890. if test $foundnet != no ; then
  22891. OLDLIBS="$LIBS"
  22892. OLDCFLAGS="$CFLAGS"
  22893. LIBS="$LNETLIB"
  22894. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22895. { echo "$as_me:$LINENO: checking for libnet version" >&5
  22896. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6; }
  22897. if test "$cross_compiling" = yes; then
  22898. libnet_ver_10=no
  22899. else
  22900. cat >conftest.$ac_ext <<_ACEOF
  22901. /* confdefs.h. */
  22902. _ACEOF
  22903. cat confdefs.h >>conftest.$ac_ext
  22904. cat >>conftest.$ac_ext <<_ACEOF
  22905. /* end confdefs.h. */
  22906. #include <string.h>
  22907. #define LIBNET_LIL_ENDIAN 1
  22908. #include "$LNETINC"
  22909. #define LIB_TEST "1.0"
  22910. /*
  22911. * simple proggy to test the version of libnet
  22912. * returns zero if it's 1.0.x
  22913. * or one otherwise
  22914. */
  22915. int
  22916. main (int argc, char *argv[])
  22917. {
  22918. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22919. exit(0);
  22920. exit(1);
  22921. }
  22922. _ACEOF
  22923. rm -f conftest$ac_exeext
  22924. if { (ac_try="$ac_link"
  22925. case "(($ac_try" in
  22926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22927. *) ac_try_echo=$ac_try;;
  22928. esac
  22929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22930. (eval "$ac_link") 2>&5
  22931. ac_status=$?
  22932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22933. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22934. { (case "(($ac_try" in
  22935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22936. *) ac_try_echo=$ac_try;;
  22937. esac
  22938. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22939. (eval "$ac_try") 2>&5
  22940. ac_status=$?
  22941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22942. (exit $ac_status); }; }; then
  22943. libnet_ver_10=yes
  22944. { echo "$as_me:$LINENO: result: 1.0.x" >&5
  22945. echo "${ECHO_T}1.0.x" >&6; }
  22946. else
  22947. echo "$as_me: program exited with status $ac_status" >&5
  22948. echo "$as_me: failed program was:" >&5
  22949. sed 's/^/| /' conftest.$ac_ext >&5
  22950. ( exit $ac_status )
  22951. libnet_ver_10=no
  22952. fi
  22953. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22954. fi
  22955. if test "$cross_compiling" = yes; then
  22956. libnet_ver_11=no
  22957. else
  22958. cat >conftest.$ac_ext <<_ACEOF
  22959. /* confdefs.h. */
  22960. _ACEOF
  22961. cat confdefs.h >>conftest.$ac_ext
  22962. cat >>conftest.$ac_ext <<_ACEOF
  22963. /* end confdefs.h. */
  22964. #include <string.h>
  22965. #include "$LNETINC"
  22966. #define LIB_TEST "1.1"
  22967. /*
  22968. * simple proggy to test the version of libnet
  22969. * returns zero if it's 1.0.x
  22970. * or one otherwise
  22971. */
  22972. int
  22973. main (int argc, char *argv[])
  22974. {
  22975. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22976. exit(0);
  22977. exit(1);
  22978. }
  22979. _ACEOF
  22980. rm -f conftest$ac_exeext
  22981. if { (ac_try="$ac_link"
  22982. case "(($ac_try" in
  22983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22984. *) ac_try_echo=$ac_try;;
  22985. esac
  22986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22987. (eval "$ac_link") 2>&5
  22988. ac_status=$?
  22989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22990. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22991. { (case "(($ac_try" in
  22992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22993. *) ac_try_echo=$ac_try;;
  22994. esac
  22995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22996. (eval "$ac_try") 2>&5
  22997. ac_status=$?
  22998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22999. (exit $ac_status); }; }; then
  23000. libnet_ver_11=yes
  23001. { echo "$as_me:$LINENO: result: 1.1.x" >&5
  23002. echo "${ECHO_T}1.1.x" >&6; }
  23003. else
  23004. echo "$as_me: program exited with status $ac_status" >&5
  23005. echo "$as_me: failed program was:" >&5
  23006. sed 's/^/| /' conftest.$ac_ext >&5
  23007. ( exit $ac_status )
  23008. libnet_ver_11=no
  23009. fi
  23010. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23011. fi
  23012. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  23013. { echo "$as_me:$LINENO: result: unknown" >&5
  23014. echo "${ECHO_T}unknown" >&6; }
  23015. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  23016. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  23017. { (exit 1); exit 1; }; }
  23018. fi
  23019. if test $libnet_ver_10 = yes ; then
  23020. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  23021. Please upgrade to 1.1.0 or better" >&5
  23022. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  23023. Please upgrade to 1.1.0 or better" >&2;}
  23024. { (exit 1); exit 1; }; }
  23025. fi
  23026. LIBS="$OLDLIBS"
  23027. CFLAGS="$OLDCFLAGS"
  23028. fi
  23029. foundpcap=no
  23030. trypcapdir=/usr/local
  23031. { echo "$as_me:$LINENO: checking for libpcap" >&5
  23032. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6; }
  23033. # Check whether --with-libpcap was given.
  23034. if test "${with_libpcap+set}" = set; then
  23035. withval=$with_libpcap; trypcapdir=$withval
  23036. fi
  23037. for testdir in $trypcapdir /usr/local /opt/local /usr ; do
  23038. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  23039. LPCAPINC="${testdir}/include/pcap.h"
  23040. LPCAPINCDIR="${testdir}/include"
  23041. if test $dynamic_link = yes; then
  23042. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  23043. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  23044. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  23045. LPCAPLIB="-L${testdir}/lib -lpcap"
  23046. else
  23047. { { echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  23048. echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  23049. { (exit 1); exit 1; }; }
  23050. fi
  23051. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  23052. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  23053. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  23054. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  23055. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  23056. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  23057. cat >>confdefs.h <<\_ACEOF
  23058. #define HAVE_WINPCAP 1
  23059. _ACEOF
  23060. else
  23061. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  23062. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  23063. { (exit 1); exit 1; }; }
  23064. fi
  23065. foundpcap=$testdir
  23066. fi
  23067. done
  23068. if test $foundpcap = no ; then
  23069. { echo "$as_me:$LINENO: result: no" >&5
  23070. echo "${ECHO_T}no" >&6; }
  23071. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  23072. echo "$as_me: error: libpcap not found" >&2;}
  23073. { (exit 1); exit 1; }; }
  23074. else
  23075. { echo "$as_me:$LINENO: result: $foundpcap" >&5
  23076. echo "${ECHO_T}$foundpcap" >&6; }
  23077. fi
  23078. OLDLIBS="$LIBS"
  23079. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23080. LIBS="$LPCAPLIB"
  23081. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23082. { echo "$as_me:$LINENO: checking for libpcap version" >&5
  23083. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6; }
  23084. libpcap_version_096=no
  23085. if test "$cross_compiling" = yes; then
  23086. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23087. See \`config.log' for more details." >&5
  23088. echo "$as_me: error: cannot run test program while cross compiling
  23089. See \`config.log' for more details." >&2;}
  23090. { (exit 1); exit 1; }; }
  23091. else
  23092. cat >conftest.$ac_ext <<_ACEOF
  23093. /* confdefs.h. */
  23094. _ACEOF
  23095. cat confdefs.h >>conftest.$ac_ext
  23096. cat >>conftest.$ac_ext <<_ACEOF
  23097. /* end confdefs.h. */
  23098. #include <string.h>
  23099. #include <stdlib.h>
  23100. #include <stdio.h>
  23101. #include "$LPCAPINC"
  23102. #define PCAP_TEST "0.9.6"
  23103. int
  23104. main ()
  23105. {
  23106. /*
  23107. * simple proggy to test the version of libpcap
  23108. * returns zero if version >= 0.9.6
  23109. * or one otherwise
  23110. */
  23111. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  23112. exit(0);
  23113. exit(1);
  23114. ;
  23115. return 0;
  23116. }
  23117. _ACEOF
  23118. rm -f conftest$ac_exeext
  23119. if { (ac_try="$ac_link"
  23120. case "(($ac_try" in
  23121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23122. *) ac_try_echo=$ac_try;;
  23123. esac
  23124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23125. (eval "$ac_link") 2>&5
  23126. ac_status=$?
  23127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23128. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23129. { (case "(($ac_try" in
  23130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23131. *) ac_try_echo=$ac_try;;
  23132. esac
  23133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23134. (eval "$ac_try") 2>&5
  23135. ac_status=$?
  23136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23137. (exit $ac_status); }; }; then
  23138. libpcap_version_096=yes
  23139. else
  23140. echo "$as_me: program exited with status $ac_status" >&5
  23141. echo "$as_me: failed program was:" >&5
  23142. sed 's/^/| /' conftest.$ac_ext >&5
  23143. fi
  23144. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23145. fi
  23146. if test "$cross_compiling" = yes; then
  23147. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23148. See \`config.log' for more details." >&5
  23149. echo "$as_me: error: cannot run test program while cross compiling
  23150. See \`config.log' for more details." >&2;}
  23151. { (exit 1); exit 1; }; }
  23152. else
  23153. cat >conftest.$ac_ext <<_ACEOF
  23154. /* confdefs.h. */
  23155. _ACEOF
  23156. cat confdefs.h >>conftest.$ac_ext
  23157. cat >>conftest.$ac_ext <<_ACEOF
  23158. /* end confdefs.h. */
  23159. #include <string.h>
  23160. #include <stdlib.h>
  23161. #include <stdio.h>
  23162. #include "$LPCAPINC"
  23163. #define PCAP_TEST "0.8"
  23164. int
  23165. main ()
  23166. {
  23167. /*
  23168. * simple proggy to test the version of libpcap
  23169. * returns zero if version >= 0.8.0
  23170. * or one otherwise
  23171. */
  23172. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  23173. exit(0);
  23174. /* winpcap? */
  23175. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  23176. exit(0);
  23177. exit(1);
  23178. ;
  23179. return 0;
  23180. }
  23181. _ACEOF
  23182. rm -f conftest$ac_exeext
  23183. if { (ac_try="$ac_link"
  23184. case "(($ac_try" in
  23185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23186. *) ac_try_echo=$ac_try;;
  23187. esac
  23188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23189. (eval "$ac_link") 2>&5
  23190. ac_status=$?
  23191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23192. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23193. { (case "(($ac_try" in
  23194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23195. *) ac_try_echo=$ac_try;;
  23196. esac
  23197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23198. (eval "$ac_try") 2>&5
  23199. ac_status=$?
  23200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23201. (exit $ac_status); }; }; then
  23202. libpcap_ver8=yes
  23203. else
  23204. echo "$as_me: program exited with status $ac_status" >&5
  23205. echo "$as_me: failed program was:" >&5
  23206. sed 's/^/| /' conftest.$ac_ext >&5
  23207. ( exit $ac_status )
  23208. libpcap_ver8=no
  23209. fi
  23210. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23211. fi
  23212. if test "$cross_compiling" = yes; then
  23213. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23214. See \`config.log' for more details." >&5
  23215. echo "$as_me: error: cannot run test program while cross compiling
  23216. See \`config.log' for more details." >&2;}
  23217. { (exit 1); exit 1; }; }
  23218. else
  23219. cat >conftest.$ac_ext <<_ACEOF
  23220. /* confdefs.h. */
  23221. _ACEOF
  23222. cat confdefs.h >>conftest.$ac_ext
  23223. cat >>conftest.$ac_ext <<_ACEOF
  23224. /* end confdefs.h. */
  23225. #include <string.h>
  23226. #include <stdlib.h>
  23227. #include <stdio.h>
  23228. #include "$LPCAPINC"
  23229. #define PCAP_TEST "0.7.2"
  23230. extern const char pcap_version[]; /* double up since autoconf escapes things */
  23231. int
  23232. main ()
  23233. {
  23234. /*
  23235. * simple proggy to test the version of libpcap
  23236. * returns zero if version >= 0.7.2
  23237. * or one otherwise
  23238. */
  23239. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  23240. exit(0);
  23241. exit(1);
  23242. ;
  23243. return 0;
  23244. }
  23245. _ACEOF
  23246. rm -f conftest$ac_exeext
  23247. if { (ac_try="$ac_link"
  23248. case "(($ac_try" in
  23249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23250. *) ac_try_echo=$ac_try;;
  23251. esac
  23252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23253. (eval "$ac_link") 2>&5
  23254. ac_status=$?
  23255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23256. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23257. { (case "(($ac_try" in
  23258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23259. *) ac_try_echo=$ac_try;;
  23260. esac
  23261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23262. (eval "$ac_try") 2>&5
  23263. ac_status=$?
  23264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23265. (exit $ac_status); }; }; then
  23266. libpcap_ver7=yes
  23267. else
  23268. echo "$as_me: program exited with status $ac_status" >&5
  23269. echo "$as_me: failed program was:" >&5
  23270. sed 's/^/| /' conftest.$ac_ext >&5
  23271. ( exit $ac_status )
  23272. libpcap_ver7=no
  23273. fi
  23274. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23275. fi
  23276. if test $libpcap_ver8 = yes ; then
  23277. { echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  23278. echo "${ECHO_T}>= 0.8.0" >&6; }
  23279. elif test $libpcap_ver7 = yes ; then
  23280. { echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  23281. echo "${ECHO_T}>= 0.7.2" >&6; }
  23282. else
  23283. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  23284. Please upgrade to version 0.7.2 or better" >&5
  23285. echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  23286. Please upgrade to version 0.7.2 or better" >&2;}
  23287. { (exit 1); exit 1; }; }
  23288. fi
  23289. libpcap_version=unknown
  23290. if test $libpcap_version_096 = yes ; then
  23291. libpcap_version=">= 0.9.6"
  23292. elif test $libpcap_ver8 = yes ; then
  23293. libpcap_version=">= 0.8.0"
  23294. elif test $libcap_ver7 = yes ; then
  23295. libpcap_version=">= 0.7.0"
  23296. fi
  23297. { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  23298. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
  23299. cat >conftest.$ac_ext <<_ACEOF
  23300. /* confdefs.h. */
  23301. _ACEOF
  23302. cat confdefs.h >>conftest.$ac_ext
  23303. cat >>conftest.$ac_ext <<_ACEOF
  23304. /* end confdefs.h. */
  23305. #include <stdio.h>
  23306. #include <stdlib.h>
  23307. #include <string.h>
  23308. #include "$LPCAPINC"
  23309. int
  23310. main ()
  23311. {
  23312. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  23313. exit(0);
  23314. exit(1);
  23315. ;
  23316. return 0;
  23317. }
  23318. _ACEOF
  23319. rm -f conftest.$ac_objext conftest$ac_exeext
  23320. if { (ac_try="$ac_link"
  23321. case "(($ac_try" in
  23322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23323. *) ac_try_echo=$ac_try;;
  23324. esac
  23325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23326. (eval "$ac_link") 2>conftest.er1
  23327. ac_status=$?
  23328. grep -v '^ *+' conftest.er1 >conftest.err
  23329. rm -f conftest.er1
  23330. cat conftest.err >&5
  23331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23332. (exit $ac_status); } && {
  23333. test -z "$ac_c_werror_flag" ||
  23334. test ! -s conftest.err
  23335. } && test -s conftest$ac_exeext &&
  23336. $as_test_x conftest$ac_exeext; then
  23337. have_dlt_to_desc=yes
  23338. { echo "$as_me:$LINENO: result: yes" >&5
  23339. echo "${ECHO_T}yes" >&6; }
  23340. else
  23341. echo "$as_me: failed program was:" >&5
  23342. sed 's/^/| /' conftest.$ac_ext >&5
  23343. have_dlt_to_desc=no
  23344. { echo "$as_me:$LINENO: result: no" >&5
  23345. echo "${ECHO_T}no" >&6; }
  23346. fi
  23347. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23348. conftest$ac_exeext conftest.$ac_ext
  23349. if test $have_dlt_to_desc = yes ; then
  23350. cat >>confdefs.h <<\_ACEOF
  23351. #define HAVE_DLT_VAL_TO_DESC 1
  23352. _ACEOF
  23353. fi
  23354. { echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  23355. echo $ECHO_N "checking for pcap_dump_fopen... $ECHO_C" >&6; }
  23356. cat >conftest.$ac_ext <<_ACEOF
  23357. /* confdefs.h. */
  23358. _ACEOF
  23359. cat confdefs.h >>conftest.$ac_ext
  23360. cat >>conftest.$ac_ext <<_ACEOF
  23361. /* end confdefs.h. */
  23362. #include <stdio.h>
  23363. #include <stdlib.h>
  23364. #include <string.h>
  23365. #include "$LPCAPINC"
  23366. int
  23367. main ()
  23368. {
  23369. pcap_dumper_t *dump;
  23370. pcap_t *pcap;
  23371. FILE *foo;
  23372. dump = pcap_dump_fopen(pcap, foo);
  23373. ;
  23374. return 0;
  23375. }
  23376. _ACEOF
  23377. rm -f conftest.$ac_objext conftest$ac_exeext
  23378. if { (ac_try="$ac_link"
  23379. case "(($ac_try" in
  23380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23381. *) ac_try_echo=$ac_try;;
  23382. esac
  23383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23384. (eval "$ac_link") 2>conftest.er1
  23385. ac_status=$?
  23386. grep -v '^ *+' conftest.er1 >conftest.err
  23387. rm -f conftest.er1
  23388. cat conftest.err >&5
  23389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23390. (exit $ac_status); } && {
  23391. test -z "$ac_c_werror_flag" ||
  23392. test ! -s conftest.err
  23393. } && test -s conftest$ac_exeext &&
  23394. $as_test_x conftest$ac_exeext; then
  23395. have_pcap_dump_fopen=yes
  23396. { echo "$as_me:$LINENO: result: yes" >&5
  23397. echo "${ECHO_T}yes" >&6; }
  23398. else
  23399. echo "$as_me: failed program was:" >&5
  23400. sed 's/^/| /' conftest.$ac_ext >&5
  23401. have_pcap_dump_fopen=no
  23402. { echo "$as_me:$LINENO: result: no" >&5
  23403. echo "${ECHO_T}no" >&6; }
  23404. fi
  23405. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23406. conftest$ac_exeext conftest.$ac_ext
  23407. if test $have_pcap_dump_fopen = yes ; then
  23408. cat >>confdefs.h <<\_ACEOF
  23409. #define HAVE_PCAP_DUMP_FOPEN 1
  23410. _ACEOF
  23411. else
  23412. { echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  23413. echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  23414. fi
  23415. have_pcap_inject=no
  23416. { echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  23417. echo $ECHO_N "checking for pcap_inject sending support... $ECHO_C" >&6; }
  23418. cat >conftest.$ac_ext <<_ACEOF
  23419. /* confdefs.h. */
  23420. _ACEOF
  23421. cat confdefs.h >>conftest.$ac_ext
  23422. cat >>conftest.$ac_ext <<_ACEOF
  23423. /* end confdefs.h. */
  23424. #include <stdio.h>
  23425. #include <stdlib.h>
  23426. #include <string.h>
  23427. #include "$LPCAPINC"
  23428. int
  23429. main ()
  23430. {
  23431. pcap_t *pcap;
  23432. char *buf;
  23433. pcap_inject(pcap, (void *)buf, 0);
  23434. ;
  23435. return 0;
  23436. }
  23437. _ACEOF
  23438. rm -f conftest.$ac_objext
  23439. if { (ac_try="$ac_compile"
  23440. case "(($ac_try" in
  23441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23442. *) ac_try_echo=$ac_try;;
  23443. esac
  23444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23445. (eval "$ac_compile") 2>conftest.er1
  23446. ac_status=$?
  23447. grep -v '^ *+' conftest.er1 >conftest.err
  23448. rm -f conftest.er1
  23449. cat conftest.err >&5
  23450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23451. (exit $ac_status); } && {
  23452. test -z "$ac_c_werror_flag" ||
  23453. test ! -s conftest.err
  23454. } && test -s conftest.$ac_objext; then
  23455. cat >>confdefs.h <<\_ACEOF
  23456. #define HAVE_PCAP_INJECT 1
  23457. _ACEOF
  23458. { echo "$as_me:$LINENO: result: yes" >&5
  23459. echo "${ECHO_T}yes" >&6; }
  23460. have_pcap_inject=yes
  23461. else
  23462. echo "$as_me: failed program was:" >&5
  23463. sed 's/^/| /' conftest.$ac_ext >&5
  23464. { echo "$as_me:$LINENO: result: no" >&5
  23465. echo "${ECHO_T}no" >&6; }
  23466. fi
  23467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23468. have_pcap_version=no
  23469. { echo "$as_me:$LINENO: checking for pcap_version" >&5
  23470. echo $ECHO_N "checking for pcap_version... $ECHO_C" >&6; }
  23471. cat >conftest.$ac_ext <<_ACEOF
  23472. /* confdefs.h. */
  23473. _ACEOF
  23474. cat confdefs.h >>conftest.$ac_ext
  23475. cat >>conftest.$ac_ext <<_ACEOF
  23476. /* end confdefs.h. */
  23477. #include <stdio.h>
  23478. #include <stdlib.h>
  23479. #include <string.h>
  23480. #include "$LPCAPINC"
  23481. extern char pcap_version[];
  23482. int
  23483. main ()
  23484. {
  23485. printf("%s", pcap_version);
  23486. ;
  23487. return 0;
  23488. }
  23489. _ACEOF
  23490. rm -f conftest.$ac_objext
  23491. if { (ac_try="$ac_compile"
  23492. case "(($ac_try" in
  23493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23494. *) ac_try_echo=$ac_try;;
  23495. esac
  23496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23497. (eval "$ac_compile") 2>conftest.er1
  23498. ac_status=$?
  23499. grep -v '^ *+' conftest.er1 >conftest.err
  23500. rm -f conftest.er1
  23501. cat conftest.err >&5
  23502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23503. (exit $ac_status); } && {
  23504. test -z "$ac_c_werror_flag" ||
  23505. test ! -s conftest.err
  23506. } && test -s conftest.$ac_objext; then
  23507. cat >>confdefs.h <<\_ACEOF
  23508. #define HAVE_PCAP_VERSION 1
  23509. _ACEOF
  23510. { echo "$as_me:$LINENO: result: yes" >&5
  23511. echo "${ECHO_T}yes" >&6; }
  23512. else
  23513. echo "$as_me: failed program was:" >&5
  23514. sed 's/^/| /' conftest.$ac_ext >&5
  23515. { echo "$as_me:$LINENO: result: no" >&5
  23516. echo "${ECHO_T}no" >&6; }
  23517. fi
  23518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23519. have_pcap_sendpacket=no
  23520. { echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  23521. echo $ECHO_N "checking for pcap_sendpacket sending support... $ECHO_C" >&6; }
  23522. cat >conftest.$ac_ext <<_ACEOF
  23523. /* confdefs.h. */
  23524. _ACEOF
  23525. cat confdefs.h >>conftest.$ac_ext
  23526. cat >>conftest.$ac_ext <<_ACEOF
  23527. /* end confdefs.h. */
  23528. #include <stdio.h>
  23529. #include <stdlib.h>
  23530. #include <string.h>
  23531. #include "$LPCAPINC"
  23532. int
  23533. main ()
  23534. {
  23535. pcap_t *pcap;
  23536. u_char *buf;
  23537. pcap_sendpacket(pcap, buf, 0);
  23538. ;
  23539. return 0;
  23540. }
  23541. _ACEOF
  23542. rm -f conftest.$ac_objext
  23543. if { (ac_try="$ac_compile"
  23544. case "(($ac_try" in
  23545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23546. *) ac_try_echo=$ac_try;;
  23547. esac
  23548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23549. (eval "$ac_compile") 2>conftest.er1
  23550. ac_status=$?
  23551. grep -v '^ *+' conftest.er1 >conftest.err
  23552. rm -f conftest.er1
  23553. cat conftest.err >&5
  23554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23555. (exit $ac_status); } && {
  23556. test -z "$ac_c_werror_flag" ||
  23557. test ! -s conftest.err
  23558. } && test -s conftest.$ac_objext; then
  23559. cat >>confdefs.h <<\_ACEOF
  23560. #define HAVE_PCAP_SENDPACKET 1
  23561. _ACEOF
  23562. { echo "$as_me:$LINENO: result: yes" >&5
  23563. echo "${ECHO_T}yes" >&6; }
  23564. have_pcap_sendpacket=yes
  23565. else
  23566. echo "$as_me: failed program was:" >&5
  23567. sed 's/^/| /' conftest.$ac_ext >&5
  23568. { echo "$as_me:$LINENO: result: no" >&5
  23569. echo "${ECHO_T}no" >&6; }
  23570. fi
  23571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23572. have_pf=no
  23573. { echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  23574. echo $ECHO_N "checking for PF_PACKET socket sending support... $ECHO_C" >&6; }
  23575. cat >conftest.$ac_ext <<_ACEOF
  23576. /* confdefs.h. */
  23577. _ACEOF
  23578. cat confdefs.h >>conftest.$ac_ext
  23579. cat >>conftest.$ac_ext <<_ACEOF
  23580. /* end confdefs.h. */
  23581. #include <sys/socket.h>
  23582. #include <netpacket/packet.h>
  23583. #include <net/ethernet.h> /* the L2 protocols */
  23584. #include <netinet/in.h> /* htons */
  23585. int
  23586. main ()
  23587. {
  23588. int pf_socket;
  23589. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  23590. ;
  23591. return 0;
  23592. }
  23593. _ACEOF
  23594. rm -f conftest.$ac_objext
  23595. if { (ac_try="$ac_compile"
  23596. case "(($ac_try" in
  23597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23598. *) ac_try_echo=$ac_try;;
  23599. esac
  23600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23601. (eval "$ac_compile") 2>conftest.er1
  23602. ac_status=$?
  23603. grep -v '^ *+' conftest.er1 >conftest.err
  23604. rm -f conftest.er1
  23605. cat conftest.err >&5
  23606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23607. (exit $ac_status); } && {
  23608. test -z "$ac_c_werror_flag" ||
  23609. test ! -s conftest.err
  23610. } && test -s conftest.$ac_objext; then
  23611. cat >>confdefs.h <<\_ACEOF
  23612. #define HAVE_PF_PACKET 1
  23613. _ACEOF
  23614. { echo "$as_me:$LINENO: result: yes" >&5
  23615. echo "${ECHO_T}yes" >&6; }
  23616. have_pf=yes
  23617. else
  23618. echo "$as_me: failed program was:" >&5
  23619. sed 's/^/| /' conftest.$ac_ext >&5
  23620. { echo "$as_me:$LINENO: result: no" >&5
  23621. echo "${ECHO_T}no" >&6; }
  23622. fi
  23623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23624. have_bpf=no
  23625. { echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  23626. echo $ECHO_N "checking for BPF device sending support... $ECHO_C" >&6; }
  23627. if test "$cross_compiling" = yes; then
  23628. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23629. See \`config.log' for more details." >&5
  23630. echo "$as_me: error: cannot run test program while cross compiling
  23631. See \`config.log' for more details." >&2;}
  23632. { (exit 1); exit 1; }; }
  23633. else
  23634. cat >conftest.$ac_ext <<_ACEOF
  23635. /* confdefs.h. */
  23636. _ACEOF
  23637. cat confdefs.h >>conftest.$ac_ext
  23638. cat >>conftest.$ac_ext <<_ACEOF
  23639. /* end confdefs.h. */
  23640. #include <stdio.h>
  23641. #include <stdlib.h>
  23642. #include <net/bpf.h>
  23643. #include <sys/types.h>
  23644. #include <sys/socket.h>
  23645. #include <fcntl.h>
  23646. #include <sys/time.h>
  23647. #include <sys/ioctl.h>
  23648. #include <net/bpf.h>
  23649. #include <errno.h>
  23650. int
  23651. main(int argc, char *argv[]) {
  23652. int fd;
  23653. fd = open("/dev/bpf0", O_RDONLY, 0);
  23654. /* if we opened it, we're good */
  23655. if (fd > 1)
  23656. exit(0);
  23657. /* if we got EBUSY or permission denied it exists, so we're good */
  23658. if (fd < 0 && (errno == EBUSY || errno == 13))
  23659. exit(0);
  23660. /* else suck, no good */
  23661. exit(-1);
  23662. }
  23663. _ACEOF
  23664. rm -f conftest$ac_exeext
  23665. if { (ac_try="$ac_link"
  23666. case "(($ac_try" in
  23667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23668. *) ac_try_echo=$ac_try;;
  23669. esac
  23670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23671. (eval "$ac_link") 2>&5
  23672. ac_status=$?
  23673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23674. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23675. { (case "(($ac_try" in
  23676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23677. *) ac_try_echo=$ac_try;;
  23678. esac
  23679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23680. (eval "$ac_try") 2>&5
  23681. ac_status=$?
  23682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23683. (exit $ac_status); }; }; then
  23684. cat >>confdefs.h <<\_ACEOF
  23685. #define HAVE_BPF 1
  23686. _ACEOF
  23687. { echo "$as_me:$LINENO: result: yes" >&5
  23688. echo "${ECHO_T}yes" >&6; }
  23689. have_bpf=yes
  23690. else
  23691. echo "$as_me: program exited with status $ac_status" >&5
  23692. echo "$as_me: failed program was:" >&5
  23693. sed 's/^/| /' conftest.$ac_ext >&5
  23694. ( exit $ac_status )
  23695. { echo "$as_me:$LINENO: result: no" >&5
  23696. echo "${ECHO_T}no" >&6; }
  23697. fi
  23698. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23699. fi
  23700. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  23701. -a $have_libnet = no -a $have_pf = no ; then
  23702. { { echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&5
  23703. echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&2;}
  23704. { (exit 1); exit 1; }; }
  23705. fi
  23706. enable_tcpbridge=yes
  23707. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  23708. { echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  23709. echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  23710. enable_tcpbridge=no
  23711. fi
  23712. # ADT: Commented for now
  23713. # AM_CONDITIONAL(ENABLE_TCPBRIDGE, [test $enable_tcpbridge = yes])
  23714. { echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  23715. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6; }
  23716. cat >conftest.$ac_ext <<_ACEOF
  23717. /* confdefs.h. */
  23718. _ACEOF
  23719. cat confdefs.h >>conftest.$ac_ext
  23720. cat >>conftest.$ac_ext <<_ACEOF
  23721. /* end confdefs.h. */
  23722. #include "$LPCAPINC"
  23723. int
  23724. main ()
  23725. {
  23726. int foo;
  23727. foo = DLT_LINUX_SLL
  23728. ;
  23729. return 0;
  23730. }
  23731. _ACEOF
  23732. rm -f conftest.$ac_objext
  23733. if { (ac_try="$ac_compile"
  23734. case "(($ac_try" in
  23735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23736. *) ac_try_echo=$ac_try;;
  23737. esac
  23738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23739. (eval "$ac_compile") 2>conftest.er1
  23740. ac_status=$?
  23741. grep -v '^ *+' conftest.er1 >conftest.err
  23742. rm -f conftest.er1
  23743. cat conftest.err >&5
  23744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23745. (exit $ac_status); } && {
  23746. test -z "$ac_c_werror_flag" ||
  23747. test ! -s conftest.err
  23748. } && test -s conftest.$ac_objext; then
  23749. cat >>confdefs.h <<\_ACEOF
  23750. #define HAVE_DLT_LINUX_SLL 1
  23751. _ACEOF
  23752. { echo "$as_me:$LINENO: result: yes" >&5
  23753. echo "${ECHO_T}yes" >&6; }
  23754. else
  23755. echo "$as_me: failed program was:" >&5
  23756. sed 's/^/| /' conftest.$ac_ext >&5
  23757. { echo "$as_me:$LINENO: result: no" >&5
  23758. echo "${ECHO_T}no" >&6; }
  23759. fi
  23760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23761. { echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  23762. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6; }
  23763. cat >conftest.$ac_ext <<_ACEOF
  23764. /* confdefs.h. */
  23765. _ACEOF
  23766. cat confdefs.h >>conftest.$ac_ext
  23767. cat >>conftest.$ac_ext <<_ACEOF
  23768. /* end confdefs.h. */
  23769. #include "$LPCAPINC"
  23770. int
  23771. main ()
  23772. {
  23773. int foo;
  23774. foo = DLT_C_HDLC
  23775. ;
  23776. return 0;
  23777. }
  23778. _ACEOF
  23779. rm -f conftest.$ac_objext
  23780. if { (ac_try="$ac_compile"
  23781. case "(($ac_try" in
  23782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23783. *) ac_try_echo=$ac_try;;
  23784. esac
  23785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23786. (eval "$ac_compile") 2>conftest.er1
  23787. ac_status=$?
  23788. grep -v '^ *+' conftest.er1 >conftest.err
  23789. rm -f conftest.er1
  23790. cat conftest.err >&5
  23791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23792. (exit $ac_status); } && {
  23793. test -z "$ac_c_werror_flag" ||
  23794. test ! -s conftest.err
  23795. } && test -s conftest.$ac_objext; then
  23796. cat >>confdefs.h <<\_ACEOF
  23797. #define HAVE_DLT_C_HDLC 1
  23798. _ACEOF
  23799. { echo "$as_me:$LINENO: result: yes" >&5
  23800. echo "${ECHO_T}yes" >&6; }
  23801. else
  23802. echo "$as_me: failed program was:" >&5
  23803. sed 's/^/| /' conftest.$ac_ext >&5
  23804. { echo "$as_me:$LINENO: result: no" >&5
  23805. echo "${ECHO_T}no" >&6; }
  23806. fi
  23807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23808. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23809. { echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23810. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6; }
  23811. cat >conftest.$ac_ext <<_ACEOF
  23812. /* confdefs.h. */
  23813. _ACEOF
  23814. cat confdefs.h >>conftest.$ac_ext
  23815. cat >>conftest.$ac_ext <<_ACEOF
  23816. /* end confdefs.h. */
  23817. #include <sys/types.h>
  23818. #include <sys/time.h>
  23819. #include "$PCAP_BPF_H_FILE"
  23820. int
  23821. main ()
  23822. {
  23823. int foo;
  23824. foo = BPF_MAJOR_VERSION;
  23825. ;
  23826. return 0;
  23827. }
  23828. _ACEOF
  23829. rm -f conftest.$ac_objext
  23830. if { (ac_try="$ac_compile"
  23831. case "(($ac_try" in
  23832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23833. *) ac_try_echo=$ac_try;;
  23834. esac
  23835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23836. (eval "$ac_compile") 2>conftest.er1
  23837. ac_status=$?
  23838. grep -v '^ *+' conftest.er1 >conftest.err
  23839. rm -f conftest.er1
  23840. cat conftest.err >&5
  23841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23842. (exit $ac_status); } && {
  23843. test -z "$ac_c_werror_flag" ||
  23844. test ! -s conftest.err
  23845. } && test -s conftest.$ac_objext; then
  23846. cat >>confdefs.h <<\_ACEOF
  23847. #define INCLUDE_PCAP_BPF_HEADER 1
  23848. _ACEOF
  23849. { echo "$as_me:$LINENO: result: yes" >&5
  23850. echo "${ECHO_T}yes" >&6; }
  23851. else
  23852. echo "$as_me: failed program was:" >&5
  23853. sed 's/^/| /' conftest.$ac_ext >&5
  23854. { echo "$as_me:$LINENO: result: no" >&5
  23855. echo "${ECHO_T}no" >&6; }
  23856. fi
  23857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23858. foundbpfheader=no
  23859. { echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  23860. echo $ECHO_N "checking for libpcap bpf header... $ECHO_C" >&6; }
  23861. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  23862. if test -f "${testfile}" -a $foundbpfheader = no ; then
  23863. cat >conftest.$ac_ext <<_ACEOF
  23864. /* confdefs.h. */
  23865. _ACEOF
  23866. cat confdefs.h >>conftest.$ac_ext
  23867. cat >>conftest.$ac_ext <<_ACEOF
  23868. /* end confdefs.h. */
  23869. #include <sys/types.h>
  23870. #include <sys/time.h>
  23871. #include "$testfile"
  23872. int
  23873. main ()
  23874. {
  23875. int foo;
  23876. foo = BPF_MAJOR_VERSION;
  23877. ;
  23878. return 0;
  23879. }
  23880. _ACEOF
  23881. rm -f conftest.$ac_objext
  23882. if { (ac_try="$ac_compile"
  23883. case "(($ac_try" in
  23884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23885. *) ac_try_echo=$ac_try;;
  23886. esac
  23887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23888. (eval "$ac_compile") 2>conftest.er1
  23889. ac_status=$?
  23890. grep -v '^ *+' conftest.er1 >conftest.err
  23891. rm -f conftest.er1
  23892. cat conftest.err >&5
  23893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23894. (exit $ac_status); } && {
  23895. test -z "$ac_c_werror_flag" ||
  23896. test ! -s conftest.err
  23897. } && test -s conftest.$ac_objext; then
  23898. foundbpfheader=yes
  23899. PCAP_BPF_H_FILE=$testfile
  23900. cat >>confdefs.h <<\_ACEOF
  23901. #define INCLUDE_PCAP_BPF_HEADER 1
  23902. _ACEOF
  23903. { echo "$as_me:$LINENO: result: $testfile" >&5
  23904. echo "${ECHO_T}$testfile" >&6; }
  23905. else
  23906. echo "$as_me: failed program was:" >&5
  23907. sed 's/^/| /' conftest.$ac_ext >&5
  23908. { echo "$as_me:$LINENO: result: no" >&5
  23909. echo "${ECHO_T}no" >&6; }
  23910. fi
  23911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23912. fi
  23913. done
  23914. LIBS="$OLDLIBS"
  23915. CFLAGS="$OLDCFLAGS"
  23916. pcapnav_ver=no
  23917. pcncfg=no
  23918. # Check whether --with-pcapnav-config was given.
  23919. if test "${with_pcapnav_config+set}" = set; then
  23920. withval=$with_pcapnav_config; { echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23921. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6; }
  23922. if test -x $withval ; then
  23923. pcncfg=$withval
  23924. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23925. echo "${ECHO_T}$pcncfg" >&6; }
  23926. elif test x$withval = xno ; then
  23927. { echo "$as_me:$LINENO: result: no" >&5
  23928. echo "${ECHO_T}no" >&6; }
  23929. else
  23930. { echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23931. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6; }
  23932. fi
  23933. else
  23934. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23935. set dummy pcapnav-config; ac_word=$2
  23936. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23937. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23938. if test "${ac_cv_path_pcncfg+set}" = set; then
  23939. echo $ECHO_N "(cached) $ECHO_C" >&6
  23940. else
  23941. case $pcncfg in
  23942. [\\/]* | ?:[\\/]*)
  23943. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23944. ;;
  23945. *)
  23946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23947. for as_dir in $PATH
  23948. do
  23949. IFS=$as_save_IFS
  23950. test -z "$as_dir" && as_dir=.
  23951. for ac_exec_ext in '' $ac_executable_extensions; do
  23952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23953. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23954. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23955. break 2
  23956. fi
  23957. done
  23958. done
  23959. IFS=$as_save_IFS
  23960. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23961. ;;
  23962. esac
  23963. fi
  23964. pcncfg=$ac_cv_path_pcncfg
  23965. if test -n "$pcncfg"; then
  23966. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23967. echo "${ECHO_T}$pcncfg" >&6; }
  23968. else
  23969. { echo "$as_me:$LINENO: result: no" >&5
  23970. echo "${ECHO_T}no" >&6; }
  23971. fi
  23972. fi
  23973. if test $pcncfg != no ; then
  23974. LNAVLIB=`$pcncfg --libs`
  23975. LNAV_CFLAGS=`$pcncfg --cflags`
  23976. PCAPNAV_VERSION=`$pcncfg --version`
  23977. cat >>confdefs.h <<_ACEOF
  23978. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23979. _ACEOF
  23980. { echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23981. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6; }
  23982. if test "$cross_compiling" = yes; then
  23983. libpcapnav_ver=no
  23984. else
  23985. cat >conftest.$ac_ext <<_ACEOF
  23986. /* confdefs.h. */
  23987. _ACEOF
  23988. cat confdefs.h >>conftest.$ac_ext
  23989. cat >>conftest.$ac_ext <<_ACEOF
  23990. /* end confdefs.h. */
  23991. #include <string.h>
  23992. #define PCAPNAV_TEST "0.4"
  23993. /*
  23994. * simple proggy to test the version of libpcapnav
  23995. * returns zero if version >= 0.4
  23996. * or one otherwise
  23997. */
  23998. int
  23999. main (int argc, char *argv[])
  24000. {
  24001. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  24002. exit(0);
  24003. exit(1);
  24004. }
  24005. _ACEOF
  24006. rm -f conftest$ac_exeext
  24007. if { (ac_try="$ac_link"
  24008. case "(($ac_try" in
  24009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24010. *) ac_try_echo=$ac_try;;
  24011. esac
  24012. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24013. (eval "$ac_link") 2>&5
  24014. ac_status=$?
  24015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24016. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24017. { (case "(($ac_try" in
  24018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24019. *) ac_try_echo=$ac_try;;
  24020. esac
  24021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24022. (eval "$ac_try") 2>&5
  24023. ac_status=$?
  24024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24025. (exit $ac_status); }; }; then
  24026. libpcapnav_ver=yes
  24027. { echo "$as_me:$LINENO: result: >= 0.4" >&5
  24028. echo "${ECHO_T}>= 0.4" >&6; }
  24029. else
  24030. echo "$as_me: program exited with status $ac_status" >&5
  24031. echo "$as_me: failed program was:" >&5
  24032. sed 's/^/| /' conftest.$ac_ext >&5
  24033. ( exit $ac_status )
  24034. libpcapnav_ver=no
  24035. { echo "$as_me:$LINENO: result: < 0.4" >&5
  24036. echo "${ECHO_T}< 0.4" >&6; }
  24037. fi
  24038. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24039. fi
  24040. if test x$libpcapnav_ver = xno ; then
  24041. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  24042. Please upgrade to version 0.4 or better.
  24043. Disabling offset jump feature." >&5
  24044. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  24045. Please upgrade to version 0.4 or better.
  24046. Disabling offset jump feature." >&2;}
  24047. else
  24048. cat >>confdefs.h <<\_ACEOF
  24049. #define HAVE_PCAPNAV 1
  24050. _ACEOF
  24051. fi
  24052. fi # checking pcapnav version
  24053. { echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  24054. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6; }
  24055. if test "${unaligned_fail+set}" = set; then
  24056. echo $ECHO_N "(cached) $ECHO_C" >&6
  24057. else
  24058. case "$host_cpu" in
  24059. # XXX: should also check that they don't do weird things (like on arm)
  24060. alpha*|arm*|hp*|mips*|sparc*|ia64)
  24061. unaligned_fail=yes
  24062. ;;
  24063. *)
  24064. cat >conftest.c <<EOF
  24065. #include <sys/types.h>
  24066. #include <sys/wait.h>
  24067. #include <stdio.h>
  24068. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  24069. main() {
  24070. unsigned int i;
  24071. pid_t pid;
  24072. int status;
  24073. /* avoid "core dumped" message */
  24074. pid = fork();
  24075. if (pid < 0)
  24076. exit(2);
  24077. if (pid > 0) {
  24078. /* parent */
  24079. pid = waitpid(pid, &status, 0);
  24080. if (pid < 0)
  24081. exit(3);
  24082. exit(!WIFEXITED(status));
  24083. }
  24084. /* child */
  24085. i = *(unsigned int *)&a[1];
  24086. printf("%d\n", i);
  24087. exit(0);
  24088. }
  24089. EOF
  24090. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  24091. conftest.c $LIBS >/dev/null 2>&1
  24092. if test ! -x conftest ; then
  24093. unaligned_fail=yes
  24094. else
  24095. ./conftest >conftest.out
  24096. if test ! -s conftest.out ; then
  24097. unaligned_fail=yes
  24098. else
  24099. unaligned_fail=no
  24100. fi
  24101. fi
  24102. rm -f conftest* core core.conftest
  24103. ;;
  24104. esac
  24105. fi
  24106. { echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  24107. echo "${ECHO_T}$unaligned_fail" >&6; }
  24108. if test $unaligned_fail = yes ; then
  24109. cat >>confdefs.h <<\_ACEOF
  24110. #define FORCE_ALIGN 1
  24111. _ACEOF
  24112. fi
  24113. tcpdump_path=no
  24114. # Check whether --with-tcpdump was given.
  24115. if test "${with_tcpdump+set}" = set; then
  24116. withval=$with_tcpdump; if test -x $withval ; then
  24117. tcpdump_path=$withval
  24118. { echo "$as_me:$LINENO: result: Using tcpdump in $tcpdump_path" >&5
  24119. echo "${ECHO_T}Using tcpdump in $tcpdump_path" >&6; }
  24120. else
  24121. { echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  24122. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6; }
  24123. fi
  24124. else
  24125. # Extract the first word of "tcpdump", so it can be a program name with args.
  24126. set dummy tcpdump; ac_word=$2
  24127. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  24128. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24129. if test "${ac_cv_path_tcpdump_path+set}" = set; then
  24130. echo $ECHO_N "(cached) $ECHO_C" >&6
  24131. else
  24132. case $tcpdump_path in
  24133. [\\/]* | ?:[\\/]*)
  24134. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  24135. ;;
  24136. *)
  24137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24138. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  24139. for as_dir in $as_dummy
  24140. do
  24141. IFS=$as_save_IFS
  24142. test -z "$as_dir" && as_dir=.
  24143. for ac_exec_ext in '' $ac_executable_extensions; do
  24144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24145. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  24146. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24147. break 2
  24148. fi
  24149. done
  24150. done
  24151. IFS=$as_save_IFS
  24152. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  24153. ;;
  24154. esac
  24155. fi
  24156. tcpdump_path=$ac_cv_path_tcpdump_path
  24157. if test -n "$tcpdump_path"; then
  24158. { echo "$as_me:$LINENO: result: $tcpdump_path" >&5
  24159. echo "${ECHO_T}$tcpdump_path" >&6; }
  24160. else
  24161. { echo "$as_me:$LINENO: result: no" >&5
  24162. echo "${ECHO_T}no" >&6; }
  24163. fi
  24164. fi
  24165. if test "$tcpdump_path" = "no"; then
  24166. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24167. Disabling --verbose" >&5
  24168. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24169. Disabling --verbose" >&2;}
  24170. else
  24171. cat >>confdefs.h <<\_ACEOF
  24172. #define HAVE_TCPDUMP 1
  24173. _ACEOF
  24174. cat >>confdefs.h <<_ACEOF
  24175. #define TCPDUMP_BINARY "$tcpdump_path"
  24176. _ACEOF
  24177. fi
  24178. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  24179. ENABLE_TCPDUMP_TRUE=
  24180. ENABLE_TCPDUMP_FALSE='#'
  24181. else
  24182. ENABLE_TCPDUMP_TRUE='#'
  24183. ENABLE_TCPDUMP_FALSE=
  24184. fi
  24185. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  24186. cat >>confdefs.h <<\_ACEOF
  24187. #define ENABLE_VERBOSE 1
  24188. _ACEOF
  24189. else
  24190. { echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  24191. echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  24192. fi
  24193. { echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  24194. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6; }
  24195. if test "$host" != "$build" ; then
  24196. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  24197. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  24198. fi
  24199. # Check whether --with-testnic was given.
  24200. if test "${with_testnic+set}" = set; then
  24201. withval=$with_testnic; nic1=$withval
  24202. nic2=$withval
  24203. { echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  24204. echo "${ECHO_T}Using --with-testnic=$withval" >&6; }
  24205. else
  24206. disable_pcap_findalldevs=no
  24207. case $host in
  24208. *-*-linux*)
  24209. nic1=eth0
  24210. nic2=eth0
  24211. { echo "$as_me:$LINENO: result: Linux" >&5
  24212. echo "${ECHO_T}Linux" >&6; }
  24213. ;;
  24214. *-*-solaris*)
  24215. nic1=hme0
  24216. nic2=hme0
  24217. { echo "$as_me:$LINENO: result: Solaris" >&5
  24218. echo "${ECHO_T}Solaris" >&6; }
  24219. ;;
  24220. *-*-sunos*)
  24221. nic1=hme0
  24222. nic2=hme0
  24223. { echo "$as_me:$LINENO: result: SunOS" >&5
  24224. echo "${ECHO_T}SunOS" >&6; }
  24225. ;;
  24226. *-apple-darwin*)
  24227. nic1=en0
  24228. nic2=en0
  24229. if test x$libpcap_version_096 = xno ; then
  24230. disable_pcap_findalldevs=yes
  24231. fi
  24232. { echo "$as_me:$LINENO: result: Apple OS X" >&5
  24233. echo "${ECHO_T}Apple OS X" >&6; }
  24234. ;;
  24235. *-*-openbsd*)
  24236. nic1=xl0
  24237. nic2=xl0
  24238. { echo "$as_me:$LINENO: result: OpenBSD" >&5
  24239. echo "${ECHO_T}OpenBSD" >&6; }
  24240. ;;
  24241. *-*-cygwin)
  24242. { echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  24243. echo "${ECHO_T}Win32/Cygwin" >&6; }
  24244. nic1=%0
  24245. nic2=%0
  24246. ;;
  24247. *)
  24248. { echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  24249. echo "${ECHO_T}$host is unknown! Using first non-loopback interface" >&6; }
  24250. nic1=%0
  24251. nic2=%0
  24252. ;;
  24253. esac
  24254. fi
  24255. # Check whether --with-testnic2 was given.
  24256. if test "${with_testnic2+set}" = set; then
  24257. withval=$with_testnic2; nic2=$withval
  24258. fi
  24259. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  24260. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  24261. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  24262. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  24263. { echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  24264. echo $ECHO_N "checking if it's ok to use pcap_findalldevs()... $ECHO_C" >&6; }
  24265. if test x$disable_pcap_findalldevs = xno ; then
  24266. cat >>confdefs.h <<\_ACEOF
  24267. #define ENABLE_PCAP_FINDALLDEVS 1
  24268. _ACEOF
  24269. { echo "$as_me:$LINENO: result: yes" >&5
  24270. echo "${ECHO_T}yes" >&6; }
  24271. else
  24272. { echo "$as_me:$LINENO: result: no" >&5
  24273. echo "${ECHO_T}no" >&6; }
  24274. fi
  24275. case "${enable_local_libopts+set}" in
  24276. set) ;;
  24277. *) enable_local_libopts=yes ;;
  24278. esac
  24279. case "${enable_libopts_install+set}" in
  24280. set) ;;
  24281. *) enable_libopts_install=no ;;
  24282. esac
  24283. NEED_LIBOPTS_DIR=''
  24284. LIBOPTS_DIR=libopts
  24285. # Check whether --enable-local-libopts was given.
  24286. if test "${enable_local_libopts+set}" = set; then
  24287. enableval=$enable_local_libopts;
  24288. if test x$enableval = xyes ; then
  24289. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  24290. echo "$as_me: Using supplied libopts tearoff" >&6;}
  24291. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24292. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24293. NEED_LIBOPTS_DIR=true
  24294. fi
  24295. fi
  24296. # Check whether --enable-libopts-install was given.
  24297. if test "${enable_libopts_install+set}" = set; then
  24298. enableval=$enable_libopts_install;
  24299. fi
  24300. if test "X${enable_libopts_install}" != Xno; then
  24301. INSTALL_LIBOPTS_TRUE=
  24302. INSTALL_LIBOPTS_FALSE='#'
  24303. else
  24304. INSTALL_LIBOPTS_TRUE='#'
  24305. INSTALL_LIBOPTS_FALSE=
  24306. fi
  24307. if test -z "${NEED_LIBOPTS_DIR}" ; then
  24308. { echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  24309. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6; }
  24310. # Check whether --with-autoopts-config was given.
  24311. if test "${with_autoopts_config+set}" = set; then
  24312. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  24313. else
  24314. { echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  24315. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6; }
  24316. if test "${lo_cv_with_autoopts_config+set}" = set; then
  24317. echo $ECHO_N "(cached) $ECHO_C" >&6
  24318. else
  24319. if autoopts-config --help 2>/dev/null 1>&2
  24320. then lo_cv_with_autoopts_config=autoopts-config
  24321. elif libopts-config --help 2>/dev/null 1>&2
  24322. then lo_cv_with_autoopts_config=libopts-config
  24323. else lo_cv_with_autoopts_config=no ; fi
  24324. fi
  24325. { echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  24326. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6; }
  24327. fi
  24328. # end of AC_ARG_WITH
  24329. if test "${lo_cv_test_autoopts+set}" = set; then
  24330. echo $ECHO_N "(cached) $ECHO_C" >&6
  24331. else
  24332. if test -z "${lo_cv_with_autoopts_config}" \
  24333. -o X"${lo_cv_with_autoopts_config}" = Xno
  24334. then
  24335. if autoopts-config --help 2>/dev/null 1>&2
  24336. then lo_cv_with_autoopts_config=autoopts-config
  24337. elif libopts-config --help 2>/dev/null 1>&2
  24338. then lo_cv_with_autoopts_config=libopts-config
  24339. else lo_cv_with_autoopts_config=false ; fi
  24340. fi
  24341. lo_cv_test_autoopts=`
  24342. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  24343. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  24344. then lo_cv_test_autoopts=no ; fi
  24345. fi
  24346. # end of CACHE_VAL
  24347. { echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  24348. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6; }
  24349. if test "X${lo_cv_test_autoopts}" != Xno
  24350. then
  24351. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  24352. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  24353. else
  24354. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24355. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24356. NEED_LIBOPTS_DIR=true
  24357. fi
  24358. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  24359. if test -n "${NEED_LIBOPTS_DIR}"; then
  24360. NEED_LIBOPTS_TRUE=
  24361. NEED_LIBOPTS_FALSE='#'
  24362. else
  24363. NEED_LIBOPTS_TRUE='#'
  24364. NEED_LIBOPTS_FALSE=
  24365. fi
  24366. LIBOPTS_DIR=libopts
  24367. ac_config_files="$ac_config_files libopts/Makefile"
  24368. if test -n "${NEED_LIBOPTS_DIR}" ; then
  24369. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24370. # =================
  24371. # AC_HEADER_STDC
  24372. # =================
  24373. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24374. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  24375. if test "${ac_cv_header_stdc+set}" = set; then
  24376. echo $ECHO_N "(cached) $ECHO_C" >&6
  24377. else
  24378. cat >conftest.$ac_ext <<_ACEOF
  24379. /* confdefs.h. */
  24380. _ACEOF
  24381. cat confdefs.h >>conftest.$ac_ext
  24382. cat >>conftest.$ac_ext <<_ACEOF
  24383. /* end confdefs.h. */
  24384. #include <stdlib.h>
  24385. #include <stdarg.h>
  24386. #include <string.h>
  24387. #include <float.h>
  24388. int
  24389. main ()
  24390. {
  24391. ;
  24392. return 0;
  24393. }
  24394. _ACEOF
  24395. rm -f conftest.$ac_objext
  24396. if { (ac_try="$ac_compile"
  24397. case "(($ac_try" in
  24398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24399. *) ac_try_echo=$ac_try;;
  24400. esac
  24401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24402. (eval "$ac_compile") 2>conftest.er1
  24403. ac_status=$?
  24404. grep -v '^ *+' conftest.er1 >conftest.err
  24405. rm -f conftest.er1
  24406. cat conftest.err >&5
  24407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24408. (exit $ac_status); } && {
  24409. test -z "$ac_c_werror_flag" ||
  24410. test ! -s conftest.err
  24411. } && test -s conftest.$ac_objext; then
  24412. ac_cv_header_stdc=yes
  24413. else
  24414. echo "$as_me: failed program was:" >&5
  24415. sed 's/^/| /' conftest.$ac_ext >&5
  24416. ac_cv_header_stdc=no
  24417. fi
  24418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24419. if test $ac_cv_header_stdc = yes; then
  24420. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24421. cat >conftest.$ac_ext <<_ACEOF
  24422. /* confdefs.h. */
  24423. _ACEOF
  24424. cat confdefs.h >>conftest.$ac_ext
  24425. cat >>conftest.$ac_ext <<_ACEOF
  24426. /* end confdefs.h. */
  24427. #include <string.h>
  24428. _ACEOF
  24429. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24430. $EGREP "memchr" >/dev/null 2>&1; then
  24431. :
  24432. else
  24433. ac_cv_header_stdc=no
  24434. fi
  24435. rm -f conftest*
  24436. fi
  24437. if test $ac_cv_header_stdc = yes; then
  24438. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24439. cat >conftest.$ac_ext <<_ACEOF
  24440. /* confdefs.h. */
  24441. _ACEOF
  24442. cat confdefs.h >>conftest.$ac_ext
  24443. cat >>conftest.$ac_ext <<_ACEOF
  24444. /* end confdefs.h. */
  24445. #include <stdlib.h>
  24446. _ACEOF
  24447. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24448. $EGREP "free" >/dev/null 2>&1; then
  24449. :
  24450. else
  24451. ac_cv_header_stdc=no
  24452. fi
  24453. rm -f conftest*
  24454. fi
  24455. if test $ac_cv_header_stdc = yes; then
  24456. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24457. if test "$cross_compiling" = yes; then
  24458. :
  24459. else
  24460. cat >conftest.$ac_ext <<_ACEOF
  24461. /* confdefs.h. */
  24462. _ACEOF
  24463. cat confdefs.h >>conftest.$ac_ext
  24464. cat >>conftest.$ac_ext <<_ACEOF
  24465. /* end confdefs.h. */
  24466. #include <ctype.h>
  24467. #include <stdlib.h>
  24468. #if ((' ' & 0x0FF) == 0x020)
  24469. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24470. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24471. #else
  24472. # define ISLOWER(c) \
  24473. (('a' <= (c) && (c) <= 'i') \
  24474. || ('j' <= (c) && (c) <= 'r') \
  24475. || ('s' <= (c) && (c) <= 'z'))
  24476. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24477. #endif
  24478. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24479. int
  24480. main ()
  24481. {
  24482. int i;
  24483. for (i = 0; i < 256; i++)
  24484. if (XOR (islower (i), ISLOWER (i))
  24485. || toupper (i) != TOUPPER (i))
  24486. return 2;
  24487. return 0;
  24488. }
  24489. _ACEOF
  24490. rm -f conftest$ac_exeext
  24491. if { (ac_try="$ac_link"
  24492. case "(($ac_try" in
  24493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24494. *) ac_try_echo=$ac_try;;
  24495. esac
  24496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24497. (eval "$ac_link") 2>&5
  24498. ac_status=$?
  24499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24500. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24501. { (case "(($ac_try" in
  24502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24503. *) ac_try_echo=$ac_try;;
  24504. esac
  24505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24506. (eval "$ac_try") 2>&5
  24507. ac_status=$?
  24508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24509. (exit $ac_status); }; }; then
  24510. :
  24511. else
  24512. echo "$as_me: program exited with status $ac_status" >&5
  24513. echo "$as_me: failed program was:" >&5
  24514. sed 's/^/| /' conftest.$ac_ext >&5
  24515. ( exit $ac_status )
  24516. ac_cv_header_stdc=no
  24517. fi
  24518. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24519. fi
  24520. fi
  24521. fi
  24522. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24523. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  24524. if test $ac_cv_header_stdc = yes; then
  24525. cat >>confdefs.h <<\_ACEOF
  24526. #define STDC_HEADERS 1
  24527. _ACEOF
  24528. fi
  24529. # =================
  24530. # AC_HEADER_DIRENT
  24531. # =================
  24532. ac_header_dirent=no
  24533. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24534. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24535. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24536. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  24537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24538. echo $ECHO_N "(cached) $ECHO_C" >&6
  24539. else
  24540. cat >conftest.$ac_ext <<_ACEOF
  24541. /* confdefs.h. */
  24542. _ACEOF
  24543. cat confdefs.h >>conftest.$ac_ext
  24544. cat >>conftest.$ac_ext <<_ACEOF
  24545. /* end confdefs.h. */
  24546. #include <sys/types.h>
  24547. #include <$ac_hdr>
  24548. int
  24549. main ()
  24550. {
  24551. if ((DIR *) 0)
  24552. return 0;
  24553. ;
  24554. return 0;
  24555. }
  24556. _ACEOF
  24557. rm -f conftest.$ac_objext
  24558. if { (ac_try="$ac_compile"
  24559. case "(($ac_try" in
  24560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24561. *) ac_try_echo=$ac_try;;
  24562. esac
  24563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24564. (eval "$ac_compile") 2>conftest.er1
  24565. ac_status=$?
  24566. grep -v '^ *+' conftest.er1 >conftest.err
  24567. rm -f conftest.er1
  24568. cat conftest.err >&5
  24569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24570. (exit $ac_status); } && {
  24571. test -z "$ac_c_werror_flag" ||
  24572. test ! -s conftest.err
  24573. } && test -s conftest.$ac_objext; then
  24574. eval "$as_ac_Header=yes"
  24575. else
  24576. echo "$as_me: failed program was:" >&5
  24577. sed 's/^/| /' conftest.$ac_ext >&5
  24578. eval "$as_ac_Header=no"
  24579. fi
  24580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24581. fi
  24582. ac_res=`eval echo '${'$as_ac_Header'}'`
  24583. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24584. echo "${ECHO_T}$ac_res" >&6; }
  24585. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24586. cat >>confdefs.h <<_ACEOF
  24587. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24588. _ACEOF
  24589. ac_header_dirent=$ac_hdr; break
  24590. fi
  24591. done
  24592. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24593. if test $ac_header_dirent = dirent.h; then
  24594. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24595. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24596. if test "${ac_cv_search_opendir+set}" = set; then
  24597. echo $ECHO_N "(cached) $ECHO_C" >&6
  24598. else
  24599. ac_func_search_save_LIBS=$LIBS
  24600. cat >conftest.$ac_ext <<_ACEOF
  24601. /* confdefs.h. */
  24602. _ACEOF
  24603. cat confdefs.h >>conftest.$ac_ext
  24604. cat >>conftest.$ac_ext <<_ACEOF
  24605. /* end confdefs.h. */
  24606. /* Override any GCC internal prototype to avoid an error.
  24607. Use char because int might match the return type of a GCC
  24608. builtin and then its argument prototype would still apply. */
  24609. #ifdef __cplusplus
  24610. extern "C"
  24611. #endif
  24612. char opendir ();
  24613. int
  24614. main ()
  24615. {
  24616. return opendir ();
  24617. ;
  24618. return 0;
  24619. }
  24620. _ACEOF
  24621. for ac_lib in '' dir; do
  24622. if test -z "$ac_lib"; then
  24623. ac_res="none required"
  24624. else
  24625. ac_res=-l$ac_lib
  24626. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24627. fi
  24628. rm -f conftest.$ac_objext conftest$ac_exeext
  24629. if { (ac_try="$ac_link"
  24630. case "(($ac_try" in
  24631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24632. *) ac_try_echo=$ac_try;;
  24633. esac
  24634. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24635. (eval "$ac_link") 2>conftest.er1
  24636. ac_status=$?
  24637. grep -v '^ *+' conftest.er1 >conftest.err
  24638. rm -f conftest.er1
  24639. cat conftest.err >&5
  24640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24641. (exit $ac_status); } && {
  24642. test -z "$ac_c_werror_flag" ||
  24643. test ! -s conftest.err
  24644. } && test -s conftest$ac_exeext &&
  24645. $as_test_x conftest$ac_exeext; then
  24646. ac_cv_search_opendir=$ac_res
  24647. else
  24648. echo "$as_me: failed program was:" >&5
  24649. sed 's/^/| /' conftest.$ac_ext >&5
  24650. fi
  24651. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24652. conftest$ac_exeext
  24653. if test "${ac_cv_search_opendir+set}" = set; then
  24654. break
  24655. fi
  24656. done
  24657. if test "${ac_cv_search_opendir+set}" = set; then
  24658. :
  24659. else
  24660. ac_cv_search_opendir=no
  24661. fi
  24662. rm conftest.$ac_ext
  24663. LIBS=$ac_func_search_save_LIBS
  24664. fi
  24665. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24666. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24667. ac_res=$ac_cv_search_opendir
  24668. if test "$ac_res" != no; then
  24669. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24670. fi
  24671. else
  24672. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24673. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24674. if test "${ac_cv_search_opendir+set}" = set; then
  24675. echo $ECHO_N "(cached) $ECHO_C" >&6
  24676. else
  24677. ac_func_search_save_LIBS=$LIBS
  24678. cat >conftest.$ac_ext <<_ACEOF
  24679. /* confdefs.h. */
  24680. _ACEOF
  24681. cat confdefs.h >>conftest.$ac_ext
  24682. cat >>conftest.$ac_ext <<_ACEOF
  24683. /* end confdefs.h. */
  24684. /* Override any GCC internal prototype to avoid an error.
  24685. Use char because int might match the return type of a GCC
  24686. builtin and then its argument prototype would still apply. */
  24687. #ifdef __cplusplus
  24688. extern "C"
  24689. #endif
  24690. char opendir ();
  24691. int
  24692. main ()
  24693. {
  24694. return opendir ();
  24695. ;
  24696. return 0;
  24697. }
  24698. _ACEOF
  24699. for ac_lib in '' x; do
  24700. if test -z "$ac_lib"; then
  24701. ac_res="none required"
  24702. else
  24703. ac_res=-l$ac_lib
  24704. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24705. fi
  24706. rm -f conftest.$ac_objext conftest$ac_exeext
  24707. if { (ac_try="$ac_link"
  24708. case "(($ac_try" in
  24709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24710. *) ac_try_echo=$ac_try;;
  24711. esac
  24712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24713. (eval "$ac_link") 2>conftest.er1
  24714. ac_status=$?
  24715. grep -v '^ *+' conftest.er1 >conftest.err
  24716. rm -f conftest.er1
  24717. cat conftest.err >&5
  24718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24719. (exit $ac_status); } && {
  24720. test -z "$ac_c_werror_flag" ||
  24721. test ! -s conftest.err
  24722. } && test -s conftest$ac_exeext &&
  24723. $as_test_x conftest$ac_exeext; then
  24724. ac_cv_search_opendir=$ac_res
  24725. else
  24726. echo "$as_me: failed program was:" >&5
  24727. sed 's/^/| /' conftest.$ac_ext >&5
  24728. fi
  24729. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24730. conftest$ac_exeext
  24731. if test "${ac_cv_search_opendir+set}" = set; then
  24732. break
  24733. fi
  24734. done
  24735. if test "${ac_cv_search_opendir+set}" = set; then
  24736. :
  24737. else
  24738. ac_cv_search_opendir=no
  24739. fi
  24740. rm conftest.$ac_ext
  24741. LIBS=$ac_func_search_save_LIBS
  24742. fi
  24743. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24744. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24745. ac_res=$ac_cv_search_opendir
  24746. if test "$ac_res" != no; then
  24747. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24748. fi
  24749. fi
  24750. # =================
  24751. # AC_CHECK_HEADERS
  24752. # =================
  24753. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24754. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24755. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  24756. utime.h sysexits.h
  24757. do
  24758. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24759. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24760. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24761. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24762. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24763. echo $ECHO_N "(cached) $ECHO_C" >&6
  24764. fi
  24765. ac_res=`eval echo '${'$as_ac_Header'}'`
  24766. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24767. echo "${ECHO_T}$ac_res" >&6; }
  24768. else
  24769. # Is the header compilable?
  24770. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24771. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24772. cat >conftest.$ac_ext <<_ACEOF
  24773. /* confdefs.h. */
  24774. _ACEOF
  24775. cat confdefs.h >>conftest.$ac_ext
  24776. cat >>conftest.$ac_ext <<_ACEOF
  24777. /* end confdefs.h. */
  24778. $ac_includes_default
  24779. #include <$ac_header>
  24780. _ACEOF
  24781. rm -f conftest.$ac_objext
  24782. if { (ac_try="$ac_compile"
  24783. case "(($ac_try" in
  24784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24785. *) ac_try_echo=$ac_try;;
  24786. esac
  24787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24788. (eval "$ac_compile") 2>conftest.er1
  24789. ac_status=$?
  24790. grep -v '^ *+' conftest.er1 >conftest.err
  24791. rm -f conftest.er1
  24792. cat conftest.err >&5
  24793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24794. (exit $ac_status); } && {
  24795. test -z "$ac_c_werror_flag" ||
  24796. test ! -s conftest.err
  24797. } && test -s conftest.$ac_objext; then
  24798. ac_header_compiler=yes
  24799. else
  24800. echo "$as_me: failed program was:" >&5
  24801. sed 's/^/| /' conftest.$ac_ext >&5
  24802. ac_header_compiler=no
  24803. fi
  24804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24805. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24806. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24807. # Is the header present?
  24808. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24809. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24810. cat >conftest.$ac_ext <<_ACEOF
  24811. /* confdefs.h. */
  24812. _ACEOF
  24813. cat confdefs.h >>conftest.$ac_ext
  24814. cat >>conftest.$ac_ext <<_ACEOF
  24815. /* end confdefs.h. */
  24816. #include <$ac_header>
  24817. _ACEOF
  24818. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24819. case "(($ac_try" in
  24820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24821. *) ac_try_echo=$ac_try;;
  24822. esac
  24823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24824. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24825. ac_status=$?
  24826. grep -v '^ *+' conftest.er1 >conftest.err
  24827. rm -f conftest.er1
  24828. cat conftest.err >&5
  24829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24830. (exit $ac_status); } >/dev/null && {
  24831. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24832. test ! -s conftest.err
  24833. }; then
  24834. ac_header_preproc=yes
  24835. else
  24836. echo "$as_me: failed program was:" >&5
  24837. sed 's/^/| /' conftest.$ac_ext >&5
  24838. ac_header_preproc=no
  24839. fi
  24840. rm -f conftest.err conftest.$ac_ext
  24841. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24842. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24843. # So? What about this header?
  24844. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24845. yes:no: )
  24846. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24847. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24848. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24849. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24850. ac_header_preproc=yes
  24851. ;;
  24852. no:yes:* )
  24853. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24854. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24855. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24856. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24857. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24858. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24859. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24860. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24861. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24862. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24863. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24864. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24865. ;;
  24866. esac
  24867. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24868. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24869. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24870. echo $ECHO_N "(cached) $ECHO_C" >&6
  24871. else
  24872. eval "$as_ac_Header=\$ac_header_preproc"
  24873. fi
  24874. ac_res=`eval echo '${'$as_ac_Header'}'`
  24875. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24876. echo "${ECHO_T}$ac_res" >&6; }
  24877. fi
  24878. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24879. cat >>confdefs.h <<_ACEOF
  24880. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24881. _ACEOF
  24882. fi
  24883. done
  24884. # --------------------------------------------
  24885. # Verify certain entries from AC_CHECK_HEADERS
  24886. # --------------------------------------------
  24887. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24888. string errno stdlib memory setjmp
  24889. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24890. test "${as_ac_var}" = set || \
  24891. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24892. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24893. { (exit 1); exit 1; }; }
  24894. done
  24895. # ================================================
  24896. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24897. # if varargs.h is present define HAVE_VARARGS_H.
  24898. # ================================================
  24899. for ac_header in stdarg.h varargs.h
  24900. do
  24901. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24902. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24903. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24904. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24905. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24906. echo $ECHO_N "(cached) $ECHO_C" >&6
  24907. fi
  24908. ac_res=`eval echo '${'$as_ac_Header'}'`
  24909. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24910. echo "${ECHO_T}$ac_res" >&6; }
  24911. else
  24912. # Is the header compilable?
  24913. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24914. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24915. cat >conftest.$ac_ext <<_ACEOF
  24916. /* confdefs.h. */
  24917. _ACEOF
  24918. cat confdefs.h >>conftest.$ac_ext
  24919. cat >>conftest.$ac_ext <<_ACEOF
  24920. /* end confdefs.h. */
  24921. $ac_includes_default
  24922. #include <$ac_header>
  24923. _ACEOF
  24924. rm -f conftest.$ac_objext
  24925. if { (ac_try="$ac_compile"
  24926. case "(($ac_try" in
  24927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24928. *) ac_try_echo=$ac_try;;
  24929. esac
  24930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24931. (eval "$ac_compile") 2>conftest.er1
  24932. ac_status=$?
  24933. grep -v '^ *+' conftest.er1 >conftest.err
  24934. rm -f conftest.er1
  24935. cat conftest.err >&5
  24936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24937. (exit $ac_status); } && {
  24938. test -z "$ac_c_werror_flag" ||
  24939. test ! -s conftest.err
  24940. } && test -s conftest.$ac_objext; then
  24941. ac_header_compiler=yes
  24942. else
  24943. echo "$as_me: failed program was:" >&5
  24944. sed 's/^/| /' conftest.$ac_ext >&5
  24945. ac_header_compiler=no
  24946. fi
  24947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24948. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24949. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24950. # Is the header present?
  24951. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24952. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24953. cat >conftest.$ac_ext <<_ACEOF
  24954. /* confdefs.h. */
  24955. _ACEOF
  24956. cat confdefs.h >>conftest.$ac_ext
  24957. cat >>conftest.$ac_ext <<_ACEOF
  24958. /* end confdefs.h. */
  24959. #include <$ac_header>
  24960. _ACEOF
  24961. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24962. case "(($ac_try" in
  24963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24964. *) ac_try_echo=$ac_try;;
  24965. esac
  24966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24967. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24968. ac_status=$?
  24969. grep -v '^ *+' conftest.er1 >conftest.err
  24970. rm -f conftest.er1
  24971. cat conftest.err >&5
  24972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24973. (exit $ac_status); } >/dev/null && {
  24974. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24975. test ! -s conftest.err
  24976. }; then
  24977. ac_header_preproc=yes
  24978. else
  24979. echo "$as_me: failed program was:" >&5
  24980. sed 's/^/| /' conftest.$ac_ext >&5
  24981. ac_header_preproc=no
  24982. fi
  24983. rm -f conftest.err conftest.$ac_ext
  24984. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24985. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24986. # So? What about this header?
  24987. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24988. yes:no: )
  24989. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24990. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24991. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24992. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24993. ac_header_preproc=yes
  24994. ;;
  24995. no:yes:* )
  24996. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24997. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24998. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24999. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25000. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25001. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25002. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25003. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25004. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25005. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25006. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25007. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25008. ;;
  25009. esac
  25010. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25011. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25012. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25013. echo $ECHO_N "(cached) $ECHO_C" >&6
  25014. else
  25015. eval "$as_ac_Header=\$ac_header_preproc"
  25016. fi
  25017. ac_res=`eval echo '${'$as_ac_Header'}'`
  25018. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25019. echo "${ECHO_T}$ac_res" >&6; }
  25020. fi
  25021. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25022. cat >>confdefs.h <<_ACEOF
  25023. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25024. _ACEOF
  25025. break
  25026. fi
  25027. done
  25028. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25029. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  25030. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  25031. { (exit 1); exit 1; }; }
  25032. fi
  25033. # ================================================
  25034. # Similarly for the string.h and strings.h headers
  25035. # ================================================
  25036. for ac_header in string.h strings.h
  25037. do
  25038. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25039. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25040. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25041. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25042. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25043. echo $ECHO_N "(cached) $ECHO_C" >&6
  25044. fi
  25045. ac_res=`eval echo '${'$as_ac_Header'}'`
  25046. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25047. echo "${ECHO_T}$ac_res" >&6; }
  25048. else
  25049. # Is the header compilable?
  25050. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25051. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25052. cat >conftest.$ac_ext <<_ACEOF
  25053. /* confdefs.h. */
  25054. _ACEOF
  25055. cat confdefs.h >>conftest.$ac_ext
  25056. cat >>conftest.$ac_ext <<_ACEOF
  25057. /* end confdefs.h. */
  25058. $ac_includes_default
  25059. #include <$ac_header>
  25060. _ACEOF
  25061. rm -f conftest.$ac_objext
  25062. if { (ac_try="$ac_compile"
  25063. case "(($ac_try" in
  25064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25065. *) ac_try_echo=$ac_try;;
  25066. esac
  25067. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25068. (eval "$ac_compile") 2>conftest.er1
  25069. ac_status=$?
  25070. grep -v '^ *+' conftest.er1 >conftest.err
  25071. rm -f conftest.er1
  25072. cat conftest.err >&5
  25073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25074. (exit $ac_status); } && {
  25075. test -z "$ac_c_werror_flag" ||
  25076. test ! -s conftest.err
  25077. } && test -s conftest.$ac_objext; then
  25078. ac_header_compiler=yes
  25079. else
  25080. echo "$as_me: failed program was:" >&5
  25081. sed 's/^/| /' conftest.$ac_ext >&5
  25082. ac_header_compiler=no
  25083. fi
  25084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25085. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25086. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25087. # Is the header present?
  25088. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25089. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25090. cat >conftest.$ac_ext <<_ACEOF
  25091. /* confdefs.h. */
  25092. _ACEOF
  25093. cat confdefs.h >>conftest.$ac_ext
  25094. cat >>conftest.$ac_ext <<_ACEOF
  25095. /* end confdefs.h. */
  25096. #include <$ac_header>
  25097. _ACEOF
  25098. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25099. case "(($ac_try" in
  25100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25101. *) ac_try_echo=$ac_try;;
  25102. esac
  25103. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25104. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25105. ac_status=$?
  25106. grep -v '^ *+' conftest.er1 >conftest.err
  25107. rm -f conftest.er1
  25108. cat conftest.err >&5
  25109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25110. (exit $ac_status); } >/dev/null && {
  25111. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25112. test ! -s conftest.err
  25113. }; then
  25114. ac_header_preproc=yes
  25115. else
  25116. echo "$as_me: failed program was:" >&5
  25117. sed 's/^/| /' conftest.$ac_ext >&5
  25118. ac_header_preproc=no
  25119. fi
  25120. rm -f conftest.err conftest.$ac_ext
  25121. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25122. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25123. # So? What about this header?
  25124. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25125. yes:no: )
  25126. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25127. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25128. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25129. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25130. ac_header_preproc=yes
  25131. ;;
  25132. no:yes:* )
  25133. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25134. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25135. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25136. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25137. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25138. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25139. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25140. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25141. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25142. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25143. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25144. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25145. ;;
  25146. esac
  25147. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25148. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25149. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25150. echo $ECHO_N "(cached) $ECHO_C" >&6
  25151. else
  25152. eval "$as_ac_Header=\$ac_header_preproc"
  25153. fi
  25154. ac_res=`eval echo '${'$as_ac_Header'}'`
  25155. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25156. echo "${ECHO_T}$ac_res" >&6; }
  25157. fi
  25158. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25159. cat >>confdefs.h <<_ACEOF
  25160. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25161. _ACEOF
  25162. break
  25163. fi
  25164. done
  25165. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25166. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  25167. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  25168. { (exit 1); exit 1; }; }
  25169. fi
  25170. # =====================
  25171. # ...and limits headers
  25172. # =====================
  25173. for ac_header in limits.h sys/limits.h values.h
  25174. do
  25175. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25176. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25177. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25178. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25179. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25180. echo $ECHO_N "(cached) $ECHO_C" >&6
  25181. fi
  25182. ac_res=`eval echo '${'$as_ac_Header'}'`
  25183. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25184. echo "${ECHO_T}$ac_res" >&6; }
  25185. else
  25186. # Is the header compilable?
  25187. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25188. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25189. cat >conftest.$ac_ext <<_ACEOF
  25190. /* confdefs.h. */
  25191. _ACEOF
  25192. cat confdefs.h >>conftest.$ac_ext
  25193. cat >>conftest.$ac_ext <<_ACEOF
  25194. /* end confdefs.h. */
  25195. $ac_includes_default
  25196. #include <$ac_header>
  25197. _ACEOF
  25198. rm -f conftest.$ac_objext
  25199. if { (ac_try="$ac_compile"
  25200. case "(($ac_try" in
  25201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25202. *) ac_try_echo=$ac_try;;
  25203. esac
  25204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25205. (eval "$ac_compile") 2>conftest.er1
  25206. ac_status=$?
  25207. grep -v '^ *+' conftest.er1 >conftest.err
  25208. rm -f conftest.er1
  25209. cat conftest.err >&5
  25210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25211. (exit $ac_status); } && {
  25212. test -z "$ac_c_werror_flag" ||
  25213. test ! -s conftest.err
  25214. } && test -s conftest.$ac_objext; then
  25215. ac_header_compiler=yes
  25216. else
  25217. echo "$as_me: failed program was:" >&5
  25218. sed 's/^/| /' conftest.$ac_ext >&5
  25219. ac_header_compiler=no
  25220. fi
  25221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25222. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25223. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25224. # Is the header present?
  25225. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25226. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25227. cat >conftest.$ac_ext <<_ACEOF
  25228. /* confdefs.h. */
  25229. _ACEOF
  25230. cat confdefs.h >>conftest.$ac_ext
  25231. cat >>conftest.$ac_ext <<_ACEOF
  25232. /* end confdefs.h. */
  25233. #include <$ac_header>
  25234. _ACEOF
  25235. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25236. case "(($ac_try" in
  25237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25238. *) ac_try_echo=$ac_try;;
  25239. esac
  25240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25241. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25242. ac_status=$?
  25243. grep -v '^ *+' conftest.er1 >conftest.err
  25244. rm -f conftest.er1
  25245. cat conftest.err >&5
  25246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25247. (exit $ac_status); } >/dev/null && {
  25248. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25249. test ! -s conftest.err
  25250. }; then
  25251. ac_header_preproc=yes
  25252. else
  25253. echo "$as_me: failed program was:" >&5
  25254. sed 's/^/| /' conftest.$ac_ext >&5
  25255. ac_header_preproc=no
  25256. fi
  25257. rm -f conftest.err conftest.$ac_ext
  25258. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25259. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25260. # So? What about this header?
  25261. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25262. yes:no: )
  25263. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25264. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25265. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25266. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25267. ac_header_preproc=yes
  25268. ;;
  25269. no:yes:* )
  25270. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25271. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25272. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25273. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25274. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25275. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25276. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25277. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25278. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25279. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25280. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25281. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25282. ;;
  25283. esac
  25284. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25285. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25286. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25287. echo $ECHO_N "(cached) $ECHO_C" >&6
  25288. else
  25289. eval "$as_ac_Header=\$ac_header_preproc"
  25290. fi
  25291. ac_res=`eval echo '${'$as_ac_Header'}'`
  25292. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25293. echo "${ECHO_T}$ac_res" >&6; }
  25294. fi
  25295. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25296. cat >>confdefs.h <<_ACEOF
  25297. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25298. _ACEOF
  25299. break
  25300. fi
  25301. done
  25302. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25303. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  25304. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  25305. { (exit 1); exit 1; }; }
  25306. fi
  25307. # ========================
  25308. # ...and int types headers
  25309. # ========================
  25310. for ac_header in stdint.h inttypes.h
  25311. do
  25312. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25313. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25314. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25315. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25316. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25317. echo $ECHO_N "(cached) $ECHO_C" >&6
  25318. fi
  25319. ac_res=`eval echo '${'$as_ac_Header'}'`
  25320. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25321. echo "${ECHO_T}$ac_res" >&6; }
  25322. else
  25323. # Is the header compilable?
  25324. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25325. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25326. cat >conftest.$ac_ext <<_ACEOF
  25327. /* confdefs.h. */
  25328. _ACEOF
  25329. cat confdefs.h >>conftest.$ac_ext
  25330. cat >>conftest.$ac_ext <<_ACEOF
  25331. /* end confdefs.h. */
  25332. $ac_includes_default
  25333. #include <$ac_header>
  25334. _ACEOF
  25335. rm -f conftest.$ac_objext
  25336. if { (ac_try="$ac_compile"
  25337. case "(($ac_try" in
  25338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25339. *) ac_try_echo=$ac_try;;
  25340. esac
  25341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25342. (eval "$ac_compile") 2>conftest.er1
  25343. ac_status=$?
  25344. grep -v '^ *+' conftest.er1 >conftest.err
  25345. rm -f conftest.er1
  25346. cat conftest.err >&5
  25347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25348. (exit $ac_status); } && {
  25349. test -z "$ac_c_werror_flag" ||
  25350. test ! -s conftest.err
  25351. } && test -s conftest.$ac_objext; then
  25352. ac_header_compiler=yes
  25353. else
  25354. echo "$as_me: failed program was:" >&5
  25355. sed 's/^/| /' conftest.$ac_ext >&5
  25356. ac_header_compiler=no
  25357. fi
  25358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25359. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25360. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25361. # Is the header present?
  25362. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25363. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25364. cat >conftest.$ac_ext <<_ACEOF
  25365. /* confdefs.h. */
  25366. _ACEOF
  25367. cat confdefs.h >>conftest.$ac_ext
  25368. cat >>conftest.$ac_ext <<_ACEOF
  25369. /* end confdefs.h. */
  25370. #include <$ac_header>
  25371. _ACEOF
  25372. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25373. case "(($ac_try" in
  25374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25375. *) ac_try_echo=$ac_try;;
  25376. esac
  25377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25378. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25379. ac_status=$?
  25380. grep -v '^ *+' conftest.er1 >conftest.err
  25381. rm -f conftest.er1
  25382. cat conftest.err >&5
  25383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25384. (exit $ac_status); } >/dev/null && {
  25385. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25386. test ! -s conftest.err
  25387. }; then
  25388. ac_header_preproc=yes
  25389. else
  25390. echo "$as_me: failed program was:" >&5
  25391. sed 's/^/| /' conftest.$ac_ext >&5
  25392. ac_header_preproc=no
  25393. fi
  25394. rm -f conftest.err conftest.$ac_ext
  25395. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25396. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25397. # So? What about this header?
  25398. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25399. yes:no: )
  25400. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25401. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25402. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25403. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25404. ac_header_preproc=yes
  25405. ;;
  25406. no:yes:* )
  25407. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25408. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25409. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25410. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25411. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25412. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25413. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25414. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25415. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25416. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25417. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25418. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25419. ;;
  25420. esac
  25421. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25422. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25423. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25424. echo $ECHO_N "(cached) $ECHO_C" >&6
  25425. else
  25426. eval "$as_ac_Header=\$ac_header_preproc"
  25427. fi
  25428. ac_res=`eval echo '${'$as_ac_Header'}'`
  25429. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25430. echo "${ECHO_T}$ac_res" >&6; }
  25431. fi
  25432. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25433. cat >>confdefs.h <<_ACEOF
  25434. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25435. _ACEOF
  25436. break
  25437. fi
  25438. done
  25439. { echo "$as_me:$LINENO: checking for int8_t" >&5
  25440. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  25441. if test "${ac_cv_type_int8_t+set}" = set; then
  25442. echo $ECHO_N "(cached) $ECHO_C" >&6
  25443. else
  25444. cat >conftest.$ac_ext <<_ACEOF
  25445. /* confdefs.h. */
  25446. _ACEOF
  25447. cat confdefs.h >>conftest.$ac_ext
  25448. cat >>conftest.$ac_ext <<_ACEOF
  25449. /* end confdefs.h. */
  25450. $ac_includes_default
  25451. typedef int8_t ac__type_new_;
  25452. int
  25453. main ()
  25454. {
  25455. if ((ac__type_new_ *) 0)
  25456. return 0;
  25457. if (sizeof (ac__type_new_))
  25458. return 0;
  25459. ;
  25460. return 0;
  25461. }
  25462. _ACEOF
  25463. rm -f conftest.$ac_objext
  25464. if { (ac_try="$ac_compile"
  25465. case "(($ac_try" in
  25466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25467. *) ac_try_echo=$ac_try;;
  25468. esac
  25469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25470. (eval "$ac_compile") 2>conftest.er1
  25471. ac_status=$?
  25472. grep -v '^ *+' conftest.er1 >conftest.err
  25473. rm -f conftest.er1
  25474. cat conftest.err >&5
  25475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25476. (exit $ac_status); } && {
  25477. test -z "$ac_c_werror_flag" ||
  25478. test ! -s conftest.err
  25479. } && test -s conftest.$ac_objext; then
  25480. ac_cv_type_int8_t=yes
  25481. else
  25482. echo "$as_me: failed program was:" >&5
  25483. sed 's/^/| /' conftest.$ac_ext >&5
  25484. ac_cv_type_int8_t=no
  25485. fi
  25486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25487. fi
  25488. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  25489. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  25490. if test $ac_cv_type_int8_t = yes; then
  25491. cat >>confdefs.h <<_ACEOF
  25492. #define HAVE_INT8_T 1
  25493. _ACEOF
  25494. fi
  25495. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  25496. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  25497. if test "${ac_cv_type_uint8_t+set}" = set; then
  25498. echo $ECHO_N "(cached) $ECHO_C" >&6
  25499. else
  25500. cat >conftest.$ac_ext <<_ACEOF
  25501. /* confdefs.h. */
  25502. _ACEOF
  25503. cat confdefs.h >>conftest.$ac_ext
  25504. cat >>conftest.$ac_ext <<_ACEOF
  25505. /* end confdefs.h. */
  25506. $ac_includes_default
  25507. typedef uint8_t ac__type_new_;
  25508. int
  25509. main ()
  25510. {
  25511. if ((ac__type_new_ *) 0)
  25512. return 0;
  25513. if (sizeof (ac__type_new_))
  25514. return 0;
  25515. ;
  25516. return 0;
  25517. }
  25518. _ACEOF
  25519. rm -f conftest.$ac_objext
  25520. if { (ac_try="$ac_compile"
  25521. case "(($ac_try" in
  25522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25523. *) ac_try_echo=$ac_try;;
  25524. esac
  25525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25526. (eval "$ac_compile") 2>conftest.er1
  25527. ac_status=$?
  25528. grep -v '^ *+' conftest.er1 >conftest.err
  25529. rm -f conftest.er1
  25530. cat conftest.err >&5
  25531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25532. (exit $ac_status); } && {
  25533. test -z "$ac_c_werror_flag" ||
  25534. test ! -s conftest.err
  25535. } && test -s conftest.$ac_objext; then
  25536. ac_cv_type_uint8_t=yes
  25537. else
  25538. echo "$as_me: failed program was:" >&5
  25539. sed 's/^/| /' conftest.$ac_ext >&5
  25540. ac_cv_type_uint8_t=no
  25541. fi
  25542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25543. fi
  25544. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  25545. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  25546. if test $ac_cv_type_uint8_t = yes; then
  25547. cat >>confdefs.h <<_ACEOF
  25548. #define HAVE_UINT8_T 1
  25549. _ACEOF
  25550. fi
  25551. { echo "$as_me:$LINENO: checking for int16_t" >&5
  25552. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  25553. if test "${ac_cv_type_int16_t+set}" = set; then
  25554. echo $ECHO_N "(cached) $ECHO_C" >&6
  25555. else
  25556. cat >conftest.$ac_ext <<_ACEOF
  25557. /* confdefs.h. */
  25558. _ACEOF
  25559. cat confdefs.h >>conftest.$ac_ext
  25560. cat >>conftest.$ac_ext <<_ACEOF
  25561. /* end confdefs.h. */
  25562. $ac_includes_default
  25563. typedef int16_t ac__type_new_;
  25564. int
  25565. main ()
  25566. {
  25567. if ((ac__type_new_ *) 0)
  25568. return 0;
  25569. if (sizeof (ac__type_new_))
  25570. return 0;
  25571. ;
  25572. return 0;
  25573. }
  25574. _ACEOF
  25575. rm -f conftest.$ac_objext
  25576. if { (ac_try="$ac_compile"
  25577. case "(($ac_try" in
  25578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25579. *) ac_try_echo=$ac_try;;
  25580. esac
  25581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25582. (eval "$ac_compile") 2>conftest.er1
  25583. ac_status=$?
  25584. grep -v '^ *+' conftest.er1 >conftest.err
  25585. rm -f conftest.er1
  25586. cat conftest.err >&5
  25587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25588. (exit $ac_status); } && {
  25589. test -z "$ac_c_werror_flag" ||
  25590. test ! -s conftest.err
  25591. } && test -s conftest.$ac_objext; then
  25592. ac_cv_type_int16_t=yes
  25593. else
  25594. echo "$as_me: failed program was:" >&5
  25595. sed 's/^/| /' conftest.$ac_ext >&5
  25596. ac_cv_type_int16_t=no
  25597. fi
  25598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25599. fi
  25600. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  25601. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  25602. if test $ac_cv_type_int16_t = yes; then
  25603. cat >>confdefs.h <<_ACEOF
  25604. #define HAVE_INT16_T 1
  25605. _ACEOF
  25606. fi
  25607. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  25608. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  25609. if test "${ac_cv_type_uint16_t+set}" = set; then
  25610. echo $ECHO_N "(cached) $ECHO_C" >&6
  25611. else
  25612. cat >conftest.$ac_ext <<_ACEOF
  25613. /* confdefs.h. */
  25614. _ACEOF
  25615. cat confdefs.h >>conftest.$ac_ext
  25616. cat >>conftest.$ac_ext <<_ACEOF
  25617. /* end confdefs.h. */
  25618. $ac_includes_default
  25619. typedef uint16_t ac__type_new_;
  25620. int
  25621. main ()
  25622. {
  25623. if ((ac__type_new_ *) 0)
  25624. return 0;
  25625. if (sizeof (ac__type_new_))
  25626. return 0;
  25627. ;
  25628. return 0;
  25629. }
  25630. _ACEOF
  25631. rm -f conftest.$ac_objext
  25632. if { (ac_try="$ac_compile"
  25633. case "(($ac_try" in
  25634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25635. *) ac_try_echo=$ac_try;;
  25636. esac
  25637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25638. (eval "$ac_compile") 2>conftest.er1
  25639. ac_status=$?
  25640. grep -v '^ *+' conftest.er1 >conftest.err
  25641. rm -f conftest.er1
  25642. cat conftest.err >&5
  25643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25644. (exit $ac_status); } && {
  25645. test -z "$ac_c_werror_flag" ||
  25646. test ! -s conftest.err
  25647. } && test -s conftest.$ac_objext; then
  25648. ac_cv_type_uint16_t=yes
  25649. else
  25650. echo "$as_me: failed program was:" >&5
  25651. sed 's/^/| /' conftest.$ac_ext >&5
  25652. ac_cv_type_uint16_t=no
  25653. fi
  25654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25655. fi
  25656. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  25657. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  25658. if test $ac_cv_type_uint16_t = yes; then
  25659. cat >>confdefs.h <<_ACEOF
  25660. #define HAVE_UINT16_T 1
  25661. _ACEOF
  25662. fi
  25663. { echo "$as_me:$LINENO: checking for int32_t" >&5
  25664. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  25665. if test "${ac_cv_type_int32_t+set}" = set; then
  25666. echo $ECHO_N "(cached) $ECHO_C" >&6
  25667. else
  25668. cat >conftest.$ac_ext <<_ACEOF
  25669. /* confdefs.h. */
  25670. _ACEOF
  25671. cat confdefs.h >>conftest.$ac_ext
  25672. cat >>conftest.$ac_ext <<_ACEOF
  25673. /* end confdefs.h. */
  25674. $ac_includes_default
  25675. typedef int32_t ac__type_new_;
  25676. int
  25677. main ()
  25678. {
  25679. if ((ac__type_new_ *) 0)
  25680. return 0;
  25681. if (sizeof (ac__type_new_))
  25682. return 0;
  25683. ;
  25684. return 0;
  25685. }
  25686. _ACEOF
  25687. rm -f conftest.$ac_objext
  25688. if { (ac_try="$ac_compile"
  25689. case "(($ac_try" in
  25690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25691. *) ac_try_echo=$ac_try;;
  25692. esac
  25693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25694. (eval "$ac_compile") 2>conftest.er1
  25695. ac_status=$?
  25696. grep -v '^ *+' conftest.er1 >conftest.err
  25697. rm -f conftest.er1
  25698. cat conftest.err >&5
  25699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25700. (exit $ac_status); } && {
  25701. test -z "$ac_c_werror_flag" ||
  25702. test ! -s conftest.err
  25703. } && test -s conftest.$ac_objext; then
  25704. ac_cv_type_int32_t=yes
  25705. else
  25706. echo "$as_me: failed program was:" >&5
  25707. sed 's/^/| /' conftest.$ac_ext >&5
  25708. ac_cv_type_int32_t=no
  25709. fi
  25710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25711. fi
  25712. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  25713. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  25714. if test $ac_cv_type_int32_t = yes; then
  25715. cat >>confdefs.h <<_ACEOF
  25716. #define HAVE_INT32_T 1
  25717. _ACEOF
  25718. fi
  25719. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  25720. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  25721. if test "${ac_cv_type_uint32_t+set}" = set; then
  25722. echo $ECHO_N "(cached) $ECHO_C" >&6
  25723. else
  25724. cat >conftest.$ac_ext <<_ACEOF
  25725. /* confdefs.h. */
  25726. _ACEOF
  25727. cat confdefs.h >>conftest.$ac_ext
  25728. cat >>conftest.$ac_ext <<_ACEOF
  25729. /* end confdefs.h. */
  25730. $ac_includes_default
  25731. typedef uint32_t ac__type_new_;
  25732. int
  25733. main ()
  25734. {
  25735. if ((ac__type_new_ *) 0)
  25736. return 0;
  25737. if (sizeof (ac__type_new_))
  25738. return 0;
  25739. ;
  25740. return 0;
  25741. }
  25742. _ACEOF
  25743. rm -f conftest.$ac_objext
  25744. if { (ac_try="$ac_compile"
  25745. case "(($ac_try" in
  25746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25747. *) ac_try_echo=$ac_try;;
  25748. esac
  25749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25750. (eval "$ac_compile") 2>conftest.er1
  25751. ac_status=$?
  25752. grep -v '^ *+' conftest.er1 >conftest.err
  25753. rm -f conftest.er1
  25754. cat conftest.err >&5
  25755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25756. (exit $ac_status); } && {
  25757. test -z "$ac_c_werror_flag" ||
  25758. test ! -s conftest.err
  25759. } && test -s conftest.$ac_objext; then
  25760. ac_cv_type_uint32_t=yes
  25761. else
  25762. echo "$as_me: failed program was:" >&5
  25763. sed 's/^/| /' conftest.$ac_ext >&5
  25764. ac_cv_type_uint32_t=no
  25765. fi
  25766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25767. fi
  25768. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  25769. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  25770. if test $ac_cv_type_uint32_t = yes; then
  25771. cat >>confdefs.h <<_ACEOF
  25772. #define HAVE_UINT32_T 1
  25773. _ACEOF
  25774. fi
  25775. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  25776. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  25777. if test "${ac_cv_type_intptr_t+set}" = set; then
  25778. echo $ECHO_N "(cached) $ECHO_C" >&6
  25779. else
  25780. cat >conftest.$ac_ext <<_ACEOF
  25781. /* confdefs.h. */
  25782. _ACEOF
  25783. cat confdefs.h >>conftest.$ac_ext
  25784. cat >>conftest.$ac_ext <<_ACEOF
  25785. /* end confdefs.h. */
  25786. $ac_includes_default
  25787. typedef intptr_t ac__type_new_;
  25788. int
  25789. main ()
  25790. {
  25791. if ((ac__type_new_ *) 0)
  25792. return 0;
  25793. if (sizeof (ac__type_new_))
  25794. return 0;
  25795. ;
  25796. return 0;
  25797. }
  25798. _ACEOF
  25799. rm -f conftest.$ac_objext
  25800. if { (ac_try="$ac_compile"
  25801. case "(($ac_try" in
  25802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25803. *) ac_try_echo=$ac_try;;
  25804. esac
  25805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25806. (eval "$ac_compile") 2>conftest.er1
  25807. ac_status=$?
  25808. grep -v '^ *+' conftest.er1 >conftest.err
  25809. rm -f conftest.er1
  25810. cat conftest.err >&5
  25811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25812. (exit $ac_status); } && {
  25813. test -z "$ac_c_werror_flag" ||
  25814. test ! -s conftest.err
  25815. } && test -s conftest.$ac_objext; then
  25816. ac_cv_type_intptr_t=yes
  25817. else
  25818. echo "$as_me: failed program was:" >&5
  25819. sed 's/^/| /' conftest.$ac_ext >&5
  25820. ac_cv_type_intptr_t=no
  25821. fi
  25822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25823. fi
  25824. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  25825. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  25826. if test $ac_cv_type_intptr_t = yes; then
  25827. cat >>confdefs.h <<_ACEOF
  25828. #define HAVE_INTPTR_T 1
  25829. _ACEOF
  25830. fi
  25831. { echo "$as_me:$LINENO: checking for uint_t" >&5
  25832. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  25833. if test "${ac_cv_type_uint_t+set}" = set; then
  25834. echo $ECHO_N "(cached) $ECHO_C" >&6
  25835. else
  25836. cat >conftest.$ac_ext <<_ACEOF
  25837. /* confdefs.h. */
  25838. _ACEOF
  25839. cat confdefs.h >>conftest.$ac_ext
  25840. cat >>conftest.$ac_ext <<_ACEOF
  25841. /* end confdefs.h. */
  25842. $ac_includes_default
  25843. typedef uint_t ac__type_new_;
  25844. int
  25845. main ()
  25846. {
  25847. if ((ac__type_new_ *) 0)
  25848. return 0;
  25849. if (sizeof (ac__type_new_))
  25850. return 0;
  25851. ;
  25852. return 0;
  25853. }
  25854. _ACEOF
  25855. rm -f conftest.$ac_objext
  25856. if { (ac_try="$ac_compile"
  25857. case "(($ac_try" in
  25858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25859. *) ac_try_echo=$ac_try;;
  25860. esac
  25861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25862. (eval "$ac_compile") 2>conftest.er1
  25863. ac_status=$?
  25864. grep -v '^ *+' conftest.er1 >conftest.err
  25865. rm -f conftest.er1
  25866. cat conftest.err >&5
  25867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25868. (exit $ac_status); } && {
  25869. test -z "$ac_c_werror_flag" ||
  25870. test ! -s conftest.err
  25871. } && test -s conftest.$ac_objext; then
  25872. ac_cv_type_uint_t=yes
  25873. else
  25874. echo "$as_me: failed program was:" >&5
  25875. sed 's/^/| /' conftest.$ac_ext >&5
  25876. ac_cv_type_uint_t=no
  25877. fi
  25878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25879. fi
  25880. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  25881. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  25882. if test $ac_cv_type_uint_t = yes; then
  25883. cat >>confdefs.h <<_ACEOF
  25884. #define HAVE_UINT_T 1
  25885. _ACEOF
  25886. fi
  25887. # ====================
  25888. # uintptr type & sizes
  25889. # ====================
  25890. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  25891. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  25892. if test "${ac_cv_type_uintptr_t+set}" = set; then
  25893. echo $ECHO_N "(cached) $ECHO_C" >&6
  25894. else
  25895. cat >conftest.$ac_ext <<_ACEOF
  25896. /* confdefs.h. */
  25897. _ACEOF
  25898. cat confdefs.h >>conftest.$ac_ext
  25899. cat >>conftest.$ac_ext <<_ACEOF
  25900. /* end confdefs.h. */
  25901. $ac_includes_default
  25902. typedef uintptr_t ac__type_new_;
  25903. int
  25904. main ()
  25905. {
  25906. if ((ac__type_new_ *) 0)
  25907. return 0;
  25908. if (sizeof (ac__type_new_))
  25909. return 0;
  25910. ;
  25911. return 0;
  25912. }
  25913. _ACEOF
  25914. rm -f conftest.$ac_objext
  25915. if { (ac_try="$ac_compile"
  25916. case "(($ac_try" in
  25917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25918. *) ac_try_echo=$ac_try;;
  25919. esac
  25920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25921. (eval "$ac_compile") 2>conftest.er1
  25922. ac_status=$?
  25923. grep -v '^ *+' conftest.er1 >conftest.err
  25924. rm -f conftest.er1
  25925. cat conftest.err >&5
  25926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25927. (exit $ac_status); } && {
  25928. test -z "$ac_c_werror_flag" ||
  25929. test ! -s conftest.err
  25930. } && test -s conftest.$ac_objext; then
  25931. ac_cv_type_uintptr_t=yes
  25932. else
  25933. echo "$as_me: failed program was:" >&5
  25934. sed 's/^/| /' conftest.$ac_ext >&5
  25935. ac_cv_type_uintptr_t=no
  25936. fi
  25937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25938. fi
  25939. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  25940. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  25941. if test $ac_cv_type_uintptr_t = yes; then
  25942. cat >>confdefs.h <<_ACEOF
  25943. #define HAVE_UINTPTR_T 1
  25944. _ACEOF
  25945. else
  25946. cat >>confdefs.h <<\_ACEOF
  25947. #define uintptr_t unsigned long
  25948. _ACEOF
  25949. fi
  25950. { echo "$as_me:$LINENO: checking for char*" >&5
  25951. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  25952. if test "${ac_cv_type_charp+set}" = set; then
  25953. echo $ECHO_N "(cached) $ECHO_C" >&6
  25954. else
  25955. cat >conftest.$ac_ext <<_ACEOF
  25956. /* confdefs.h. */
  25957. _ACEOF
  25958. cat confdefs.h >>conftest.$ac_ext
  25959. cat >>conftest.$ac_ext <<_ACEOF
  25960. /* end confdefs.h. */
  25961. $ac_includes_default
  25962. typedef char* ac__type_new_;
  25963. int
  25964. main ()
  25965. {
  25966. if ((ac__type_new_ *) 0)
  25967. return 0;
  25968. if (sizeof (ac__type_new_))
  25969. return 0;
  25970. ;
  25971. return 0;
  25972. }
  25973. _ACEOF
  25974. rm -f conftest.$ac_objext
  25975. if { (ac_try="$ac_compile"
  25976. case "(($ac_try" in
  25977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25978. *) ac_try_echo=$ac_try;;
  25979. esac
  25980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25981. (eval "$ac_compile") 2>conftest.er1
  25982. ac_status=$?
  25983. grep -v '^ *+' conftest.er1 >conftest.err
  25984. rm -f conftest.er1
  25985. cat conftest.err >&5
  25986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25987. (exit $ac_status); } && {
  25988. test -z "$ac_c_werror_flag" ||
  25989. test ! -s conftest.err
  25990. } && test -s conftest.$ac_objext; then
  25991. ac_cv_type_charp=yes
  25992. else
  25993. echo "$as_me: failed program was:" >&5
  25994. sed 's/^/| /' conftest.$ac_ext >&5
  25995. ac_cv_type_charp=no
  25996. fi
  25997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25998. fi
  25999. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  26000. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  26001. # The cast to long int works around a bug in the HP C Compiler
  26002. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26003. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26004. # This bug is HP SR number 8606223364.
  26005. { echo "$as_me:$LINENO: checking size of char*" >&5
  26006. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  26007. if test "${ac_cv_sizeof_charp+set}" = set; then
  26008. echo $ECHO_N "(cached) $ECHO_C" >&6
  26009. else
  26010. if test "$cross_compiling" = yes; then
  26011. # Depending upon the size, compute the lo and hi bounds.
  26012. cat >conftest.$ac_ext <<_ACEOF
  26013. /* confdefs.h. */
  26014. _ACEOF
  26015. cat confdefs.h >>conftest.$ac_ext
  26016. cat >>conftest.$ac_ext <<_ACEOF
  26017. /* end confdefs.h. */
  26018. $ac_includes_default
  26019. typedef char* ac__type_sizeof_;
  26020. int
  26021. main ()
  26022. {
  26023. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26024. test_array [0] = 0
  26025. ;
  26026. return 0;
  26027. }
  26028. _ACEOF
  26029. rm -f conftest.$ac_objext
  26030. if { (ac_try="$ac_compile"
  26031. case "(($ac_try" in
  26032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26033. *) ac_try_echo=$ac_try;;
  26034. esac
  26035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26036. (eval "$ac_compile") 2>conftest.er1
  26037. ac_status=$?
  26038. grep -v '^ *+' conftest.er1 >conftest.err
  26039. rm -f conftest.er1
  26040. cat conftest.err >&5
  26041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26042. (exit $ac_status); } && {
  26043. test -z "$ac_c_werror_flag" ||
  26044. test ! -s conftest.err
  26045. } && test -s conftest.$ac_objext; then
  26046. ac_lo=0 ac_mid=0
  26047. while :; do
  26048. cat >conftest.$ac_ext <<_ACEOF
  26049. /* confdefs.h. */
  26050. _ACEOF
  26051. cat confdefs.h >>conftest.$ac_ext
  26052. cat >>conftest.$ac_ext <<_ACEOF
  26053. /* end confdefs.h. */
  26054. $ac_includes_default
  26055. typedef char* ac__type_sizeof_;
  26056. int
  26057. main ()
  26058. {
  26059. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26060. test_array [0] = 0
  26061. ;
  26062. return 0;
  26063. }
  26064. _ACEOF
  26065. rm -f conftest.$ac_objext
  26066. if { (ac_try="$ac_compile"
  26067. case "(($ac_try" in
  26068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26069. *) ac_try_echo=$ac_try;;
  26070. esac
  26071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26072. (eval "$ac_compile") 2>conftest.er1
  26073. ac_status=$?
  26074. grep -v '^ *+' conftest.er1 >conftest.err
  26075. rm -f conftest.er1
  26076. cat conftest.err >&5
  26077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26078. (exit $ac_status); } && {
  26079. test -z "$ac_c_werror_flag" ||
  26080. test ! -s conftest.err
  26081. } && test -s conftest.$ac_objext; then
  26082. ac_hi=$ac_mid; break
  26083. else
  26084. echo "$as_me: failed program was:" >&5
  26085. sed 's/^/| /' conftest.$ac_ext >&5
  26086. ac_lo=`expr $ac_mid + 1`
  26087. if test $ac_lo -le $ac_mid; then
  26088. ac_lo= ac_hi=
  26089. break
  26090. fi
  26091. ac_mid=`expr 2 '*' $ac_mid + 1`
  26092. fi
  26093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26094. done
  26095. else
  26096. echo "$as_me: failed program was:" >&5
  26097. sed 's/^/| /' conftest.$ac_ext >&5
  26098. cat >conftest.$ac_ext <<_ACEOF
  26099. /* confdefs.h. */
  26100. _ACEOF
  26101. cat confdefs.h >>conftest.$ac_ext
  26102. cat >>conftest.$ac_ext <<_ACEOF
  26103. /* end confdefs.h. */
  26104. $ac_includes_default
  26105. typedef char* ac__type_sizeof_;
  26106. int
  26107. main ()
  26108. {
  26109. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26110. test_array [0] = 0
  26111. ;
  26112. return 0;
  26113. }
  26114. _ACEOF
  26115. rm -f conftest.$ac_objext
  26116. if { (ac_try="$ac_compile"
  26117. case "(($ac_try" in
  26118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26119. *) ac_try_echo=$ac_try;;
  26120. esac
  26121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26122. (eval "$ac_compile") 2>conftest.er1
  26123. ac_status=$?
  26124. grep -v '^ *+' conftest.er1 >conftest.err
  26125. rm -f conftest.er1
  26126. cat conftest.err >&5
  26127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26128. (exit $ac_status); } && {
  26129. test -z "$ac_c_werror_flag" ||
  26130. test ! -s conftest.err
  26131. } && test -s conftest.$ac_objext; then
  26132. ac_hi=-1 ac_mid=-1
  26133. while :; do
  26134. cat >conftest.$ac_ext <<_ACEOF
  26135. /* confdefs.h. */
  26136. _ACEOF
  26137. cat confdefs.h >>conftest.$ac_ext
  26138. cat >>conftest.$ac_ext <<_ACEOF
  26139. /* end confdefs.h. */
  26140. $ac_includes_default
  26141. typedef char* ac__type_sizeof_;
  26142. int
  26143. main ()
  26144. {
  26145. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26146. test_array [0] = 0
  26147. ;
  26148. return 0;
  26149. }
  26150. _ACEOF
  26151. rm -f conftest.$ac_objext
  26152. if { (ac_try="$ac_compile"
  26153. case "(($ac_try" in
  26154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26155. *) ac_try_echo=$ac_try;;
  26156. esac
  26157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26158. (eval "$ac_compile") 2>conftest.er1
  26159. ac_status=$?
  26160. grep -v '^ *+' conftest.er1 >conftest.err
  26161. rm -f conftest.er1
  26162. cat conftest.err >&5
  26163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26164. (exit $ac_status); } && {
  26165. test -z "$ac_c_werror_flag" ||
  26166. test ! -s conftest.err
  26167. } && test -s conftest.$ac_objext; then
  26168. ac_lo=$ac_mid; break
  26169. else
  26170. echo "$as_me: failed program was:" >&5
  26171. sed 's/^/| /' conftest.$ac_ext >&5
  26172. ac_hi=`expr '(' $ac_mid ')' - 1`
  26173. if test $ac_mid -le $ac_hi; then
  26174. ac_lo= ac_hi=
  26175. break
  26176. fi
  26177. ac_mid=`expr 2 '*' $ac_mid`
  26178. fi
  26179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26180. done
  26181. else
  26182. echo "$as_me: failed program was:" >&5
  26183. sed 's/^/| /' conftest.$ac_ext >&5
  26184. ac_lo= ac_hi=
  26185. fi
  26186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26187. fi
  26188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26189. # Binary search between lo and hi bounds.
  26190. while test "x$ac_lo" != "x$ac_hi"; do
  26191. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26192. cat >conftest.$ac_ext <<_ACEOF
  26193. /* confdefs.h. */
  26194. _ACEOF
  26195. cat confdefs.h >>conftest.$ac_ext
  26196. cat >>conftest.$ac_ext <<_ACEOF
  26197. /* end confdefs.h. */
  26198. $ac_includes_default
  26199. typedef char* ac__type_sizeof_;
  26200. int
  26201. main ()
  26202. {
  26203. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26204. test_array [0] = 0
  26205. ;
  26206. return 0;
  26207. }
  26208. _ACEOF
  26209. rm -f conftest.$ac_objext
  26210. if { (ac_try="$ac_compile"
  26211. case "(($ac_try" in
  26212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26213. *) ac_try_echo=$ac_try;;
  26214. esac
  26215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26216. (eval "$ac_compile") 2>conftest.er1
  26217. ac_status=$?
  26218. grep -v '^ *+' conftest.er1 >conftest.err
  26219. rm -f conftest.er1
  26220. cat conftest.err >&5
  26221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26222. (exit $ac_status); } && {
  26223. test -z "$ac_c_werror_flag" ||
  26224. test ! -s conftest.err
  26225. } && test -s conftest.$ac_objext; then
  26226. ac_hi=$ac_mid
  26227. else
  26228. echo "$as_me: failed program was:" >&5
  26229. sed 's/^/| /' conftest.$ac_ext >&5
  26230. ac_lo=`expr '(' $ac_mid ')' + 1`
  26231. fi
  26232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26233. done
  26234. case $ac_lo in
  26235. ?*) ac_cv_sizeof_charp=$ac_lo;;
  26236. '') if test "$ac_cv_type_charp" = yes; then
  26237. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26238. See \`config.log' for more details." >&5
  26239. echo "$as_me: error: cannot compute sizeof (char*)
  26240. See \`config.log' for more details." >&2;}
  26241. { (exit 77); exit 77; }; }
  26242. else
  26243. ac_cv_sizeof_charp=0
  26244. fi ;;
  26245. esac
  26246. else
  26247. cat >conftest.$ac_ext <<_ACEOF
  26248. /* confdefs.h. */
  26249. _ACEOF
  26250. cat confdefs.h >>conftest.$ac_ext
  26251. cat >>conftest.$ac_ext <<_ACEOF
  26252. /* end confdefs.h. */
  26253. $ac_includes_default
  26254. typedef char* ac__type_sizeof_;
  26255. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26256. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26257. #include <stdio.h>
  26258. #include <stdlib.h>
  26259. int
  26260. main ()
  26261. {
  26262. FILE *f = fopen ("conftest.val", "w");
  26263. if (! f)
  26264. return 1;
  26265. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26266. {
  26267. long int i = longval ();
  26268. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26269. return 1;
  26270. fprintf (f, "%ld\n", i);
  26271. }
  26272. else
  26273. {
  26274. unsigned long int i = ulongval ();
  26275. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26276. return 1;
  26277. fprintf (f, "%lu\n", i);
  26278. }
  26279. return ferror (f) || fclose (f) != 0;
  26280. ;
  26281. return 0;
  26282. }
  26283. _ACEOF
  26284. rm -f conftest$ac_exeext
  26285. if { (ac_try="$ac_link"
  26286. case "(($ac_try" in
  26287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26288. *) ac_try_echo=$ac_try;;
  26289. esac
  26290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26291. (eval "$ac_link") 2>&5
  26292. ac_status=$?
  26293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26294. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26295. { (case "(($ac_try" in
  26296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26297. *) ac_try_echo=$ac_try;;
  26298. esac
  26299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26300. (eval "$ac_try") 2>&5
  26301. ac_status=$?
  26302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26303. (exit $ac_status); }; }; then
  26304. ac_cv_sizeof_charp=`cat conftest.val`
  26305. else
  26306. echo "$as_me: program exited with status $ac_status" >&5
  26307. echo "$as_me: failed program was:" >&5
  26308. sed 's/^/| /' conftest.$ac_ext >&5
  26309. ( exit $ac_status )
  26310. if test "$ac_cv_type_charp" = yes; then
  26311. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26312. See \`config.log' for more details." >&5
  26313. echo "$as_me: error: cannot compute sizeof (char*)
  26314. See \`config.log' for more details." >&2;}
  26315. { (exit 77); exit 77; }; }
  26316. else
  26317. ac_cv_sizeof_charp=0
  26318. fi
  26319. fi
  26320. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26321. fi
  26322. rm -f conftest.val
  26323. fi
  26324. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  26325. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  26326. cat >>confdefs.h <<_ACEOF
  26327. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  26328. _ACEOF
  26329. { echo "$as_me:$LINENO: checking for int" >&5
  26330. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  26331. if test "${ac_cv_type_int+set}" = set; then
  26332. echo $ECHO_N "(cached) $ECHO_C" >&6
  26333. else
  26334. cat >conftest.$ac_ext <<_ACEOF
  26335. /* confdefs.h. */
  26336. _ACEOF
  26337. cat confdefs.h >>conftest.$ac_ext
  26338. cat >>conftest.$ac_ext <<_ACEOF
  26339. /* end confdefs.h. */
  26340. $ac_includes_default
  26341. typedef int ac__type_new_;
  26342. int
  26343. main ()
  26344. {
  26345. if ((ac__type_new_ *) 0)
  26346. return 0;
  26347. if (sizeof (ac__type_new_))
  26348. return 0;
  26349. ;
  26350. return 0;
  26351. }
  26352. _ACEOF
  26353. rm -f conftest.$ac_objext
  26354. if { (ac_try="$ac_compile"
  26355. case "(($ac_try" in
  26356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26357. *) ac_try_echo=$ac_try;;
  26358. esac
  26359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26360. (eval "$ac_compile") 2>conftest.er1
  26361. ac_status=$?
  26362. grep -v '^ *+' conftest.er1 >conftest.err
  26363. rm -f conftest.er1
  26364. cat conftest.err >&5
  26365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26366. (exit $ac_status); } && {
  26367. test -z "$ac_c_werror_flag" ||
  26368. test ! -s conftest.err
  26369. } && test -s conftest.$ac_objext; then
  26370. ac_cv_type_int=yes
  26371. else
  26372. echo "$as_me: failed program was:" >&5
  26373. sed 's/^/| /' conftest.$ac_ext >&5
  26374. ac_cv_type_int=no
  26375. fi
  26376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26377. fi
  26378. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  26379. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  26380. # The cast to long int works around a bug in the HP C Compiler
  26381. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26382. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26383. # This bug is HP SR number 8606223364.
  26384. { echo "$as_me:$LINENO: checking size of int" >&5
  26385. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  26386. if test "${ac_cv_sizeof_int+set}" = set; then
  26387. echo $ECHO_N "(cached) $ECHO_C" >&6
  26388. else
  26389. if test "$cross_compiling" = yes; then
  26390. # Depending upon the size, compute the lo and hi bounds.
  26391. cat >conftest.$ac_ext <<_ACEOF
  26392. /* confdefs.h. */
  26393. _ACEOF
  26394. cat confdefs.h >>conftest.$ac_ext
  26395. cat >>conftest.$ac_ext <<_ACEOF
  26396. /* end confdefs.h. */
  26397. $ac_includes_default
  26398. typedef int ac__type_sizeof_;
  26399. int
  26400. main ()
  26401. {
  26402. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26403. test_array [0] = 0
  26404. ;
  26405. return 0;
  26406. }
  26407. _ACEOF
  26408. rm -f conftest.$ac_objext
  26409. if { (ac_try="$ac_compile"
  26410. case "(($ac_try" in
  26411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26412. *) ac_try_echo=$ac_try;;
  26413. esac
  26414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26415. (eval "$ac_compile") 2>conftest.er1
  26416. ac_status=$?
  26417. grep -v '^ *+' conftest.er1 >conftest.err
  26418. rm -f conftest.er1
  26419. cat conftest.err >&5
  26420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26421. (exit $ac_status); } && {
  26422. test -z "$ac_c_werror_flag" ||
  26423. test ! -s conftest.err
  26424. } && test -s conftest.$ac_objext; then
  26425. ac_lo=0 ac_mid=0
  26426. while :; do
  26427. cat >conftest.$ac_ext <<_ACEOF
  26428. /* confdefs.h. */
  26429. _ACEOF
  26430. cat confdefs.h >>conftest.$ac_ext
  26431. cat >>conftest.$ac_ext <<_ACEOF
  26432. /* end confdefs.h. */
  26433. $ac_includes_default
  26434. typedef int ac__type_sizeof_;
  26435. int
  26436. main ()
  26437. {
  26438. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26439. test_array [0] = 0
  26440. ;
  26441. return 0;
  26442. }
  26443. _ACEOF
  26444. rm -f conftest.$ac_objext
  26445. if { (ac_try="$ac_compile"
  26446. case "(($ac_try" in
  26447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26448. *) ac_try_echo=$ac_try;;
  26449. esac
  26450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26451. (eval "$ac_compile") 2>conftest.er1
  26452. ac_status=$?
  26453. grep -v '^ *+' conftest.er1 >conftest.err
  26454. rm -f conftest.er1
  26455. cat conftest.err >&5
  26456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26457. (exit $ac_status); } && {
  26458. test -z "$ac_c_werror_flag" ||
  26459. test ! -s conftest.err
  26460. } && test -s conftest.$ac_objext; then
  26461. ac_hi=$ac_mid; break
  26462. else
  26463. echo "$as_me: failed program was:" >&5
  26464. sed 's/^/| /' conftest.$ac_ext >&5
  26465. ac_lo=`expr $ac_mid + 1`
  26466. if test $ac_lo -le $ac_mid; then
  26467. ac_lo= ac_hi=
  26468. break
  26469. fi
  26470. ac_mid=`expr 2 '*' $ac_mid + 1`
  26471. fi
  26472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26473. done
  26474. else
  26475. echo "$as_me: failed program was:" >&5
  26476. sed 's/^/| /' conftest.$ac_ext >&5
  26477. cat >conftest.$ac_ext <<_ACEOF
  26478. /* confdefs.h. */
  26479. _ACEOF
  26480. cat confdefs.h >>conftest.$ac_ext
  26481. cat >>conftest.$ac_ext <<_ACEOF
  26482. /* end confdefs.h. */
  26483. $ac_includes_default
  26484. typedef int ac__type_sizeof_;
  26485. int
  26486. main ()
  26487. {
  26488. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26489. test_array [0] = 0
  26490. ;
  26491. return 0;
  26492. }
  26493. _ACEOF
  26494. rm -f conftest.$ac_objext
  26495. if { (ac_try="$ac_compile"
  26496. case "(($ac_try" in
  26497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26498. *) ac_try_echo=$ac_try;;
  26499. esac
  26500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26501. (eval "$ac_compile") 2>conftest.er1
  26502. ac_status=$?
  26503. grep -v '^ *+' conftest.er1 >conftest.err
  26504. rm -f conftest.er1
  26505. cat conftest.err >&5
  26506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26507. (exit $ac_status); } && {
  26508. test -z "$ac_c_werror_flag" ||
  26509. test ! -s conftest.err
  26510. } && test -s conftest.$ac_objext; then
  26511. ac_hi=-1 ac_mid=-1
  26512. while :; do
  26513. cat >conftest.$ac_ext <<_ACEOF
  26514. /* confdefs.h. */
  26515. _ACEOF
  26516. cat confdefs.h >>conftest.$ac_ext
  26517. cat >>conftest.$ac_ext <<_ACEOF
  26518. /* end confdefs.h. */
  26519. $ac_includes_default
  26520. typedef int ac__type_sizeof_;
  26521. int
  26522. main ()
  26523. {
  26524. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26525. test_array [0] = 0
  26526. ;
  26527. return 0;
  26528. }
  26529. _ACEOF
  26530. rm -f conftest.$ac_objext
  26531. if { (ac_try="$ac_compile"
  26532. case "(($ac_try" in
  26533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26534. *) ac_try_echo=$ac_try;;
  26535. esac
  26536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26537. (eval "$ac_compile") 2>conftest.er1
  26538. ac_status=$?
  26539. grep -v '^ *+' conftest.er1 >conftest.err
  26540. rm -f conftest.er1
  26541. cat conftest.err >&5
  26542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26543. (exit $ac_status); } && {
  26544. test -z "$ac_c_werror_flag" ||
  26545. test ! -s conftest.err
  26546. } && test -s conftest.$ac_objext; then
  26547. ac_lo=$ac_mid; break
  26548. else
  26549. echo "$as_me: failed program was:" >&5
  26550. sed 's/^/| /' conftest.$ac_ext >&5
  26551. ac_hi=`expr '(' $ac_mid ')' - 1`
  26552. if test $ac_mid -le $ac_hi; then
  26553. ac_lo= ac_hi=
  26554. break
  26555. fi
  26556. ac_mid=`expr 2 '*' $ac_mid`
  26557. fi
  26558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26559. done
  26560. else
  26561. echo "$as_me: failed program was:" >&5
  26562. sed 's/^/| /' conftest.$ac_ext >&5
  26563. ac_lo= ac_hi=
  26564. fi
  26565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26566. fi
  26567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26568. # Binary search between lo and hi bounds.
  26569. while test "x$ac_lo" != "x$ac_hi"; do
  26570. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26571. cat >conftest.$ac_ext <<_ACEOF
  26572. /* confdefs.h. */
  26573. _ACEOF
  26574. cat confdefs.h >>conftest.$ac_ext
  26575. cat >>conftest.$ac_ext <<_ACEOF
  26576. /* end confdefs.h. */
  26577. $ac_includes_default
  26578. typedef int ac__type_sizeof_;
  26579. int
  26580. main ()
  26581. {
  26582. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26583. test_array [0] = 0
  26584. ;
  26585. return 0;
  26586. }
  26587. _ACEOF
  26588. rm -f conftest.$ac_objext
  26589. if { (ac_try="$ac_compile"
  26590. case "(($ac_try" in
  26591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26592. *) ac_try_echo=$ac_try;;
  26593. esac
  26594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26595. (eval "$ac_compile") 2>conftest.er1
  26596. ac_status=$?
  26597. grep -v '^ *+' conftest.er1 >conftest.err
  26598. rm -f conftest.er1
  26599. cat conftest.err >&5
  26600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26601. (exit $ac_status); } && {
  26602. test -z "$ac_c_werror_flag" ||
  26603. test ! -s conftest.err
  26604. } && test -s conftest.$ac_objext; then
  26605. ac_hi=$ac_mid
  26606. else
  26607. echo "$as_me: failed program was:" >&5
  26608. sed 's/^/| /' conftest.$ac_ext >&5
  26609. ac_lo=`expr '(' $ac_mid ')' + 1`
  26610. fi
  26611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26612. done
  26613. case $ac_lo in
  26614. ?*) ac_cv_sizeof_int=$ac_lo;;
  26615. '') if test "$ac_cv_type_int" = yes; then
  26616. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26617. See \`config.log' for more details." >&5
  26618. echo "$as_me: error: cannot compute sizeof (int)
  26619. See \`config.log' for more details." >&2;}
  26620. { (exit 77); exit 77; }; }
  26621. else
  26622. ac_cv_sizeof_int=0
  26623. fi ;;
  26624. esac
  26625. else
  26626. cat >conftest.$ac_ext <<_ACEOF
  26627. /* confdefs.h. */
  26628. _ACEOF
  26629. cat confdefs.h >>conftest.$ac_ext
  26630. cat >>conftest.$ac_ext <<_ACEOF
  26631. /* end confdefs.h. */
  26632. $ac_includes_default
  26633. typedef int ac__type_sizeof_;
  26634. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26635. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26636. #include <stdio.h>
  26637. #include <stdlib.h>
  26638. int
  26639. main ()
  26640. {
  26641. FILE *f = fopen ("conftest.val", "w");
  26642. if (! f)
  26643. return 1;
  26644. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26645. {
  26646. long int i = longval ();
  26647. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26648. return 1;
  26649. fprintf (f, "%ld\n", i);
  26650. }
  26651. else
  26652. {
  26653. unsigned long int i = ulongval ();
  26654. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26655. return 1;
  26656. fprintf (f, "%lu\n", i);
  26657. }
  26658. return ferror (f) || fclose (f) != 0;
  26659. ;
  26660. return 0;
  26661. }
  26662. _ACEOF
  26663. rm -f conftest$ac_exeext
  26664. if { (ac_try="$ac_link"
  26665. case "(($ac_try" in
  26666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26667. *) ac_try_echo=$ac_try;;
  26668. esac
  26669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26670. (eval "$ac_link") 2>&5
  26671. ac_status=$?
  26672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26673. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26674. { (case "(($ac_try" in
  26675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26676. *) ac_try_echo=$ac_try;;
  26677. esac
  26678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26679. (eval "$ac_try") 2>&5
  26680. ac_status=$?
  26681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26682. (exit $ac_status); }; }; then
  26683. ac_cv_sizeof_int=`cat conftest.val`
  26684. else
  26685. echo "$as_me: program exited with status $ac_status" >&5
  26686. echo "$as_me: failed program was:" >&5
  26687. sed 's/^/| /' conftest.$ac_ext >&5
  26688. ( exit $ac_status )
  26689. if test "$ac_cv_type_int" = yes; then
  26690. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26691. See \`config.log' for more details." >&5
  26692. echo "$as_me: error: cannot compute sizeof (int)
  26693. See \`config.log' for more details." >&2;}
  26694. { (exit 77); exit 77; }; }
  26695. else
  26696. ac_cv_sizeof_int=0
  26697. fi
  26698. fi
  26699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26700. fi
  26701. rm -f conftest.val
  26702. fi
  26703. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  26704. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  26705. cat >>confdefs.h <<_ACEOF
  26706. #define SIZEOF_INT $ac_cv_sizeof_int
  26707. _ACEOF
  26708. { echo "$as_me:$LINENO: checking for long" >&5
  26709. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  26710. if test "${ac_cv_type_long+set}" = set; then
  26711. echo $ECHO_N "(cached) $ECHO_C" >&6
  26712. else
  26713. cat >conftest.$ac_ext <<_ACEOF
  26714. /* confdefs.h. */
  26715. _ACEOF
  26716. cat confdefs.h >>conftest.$ac_ext
  26717. cat >>conftest.$ac_ext <<_ACEOF
  26718. /* end confdefs.h. */
  26719. $ac_includes_default
  26720. typedef long ac__type_new_;
  26721. int
  26722. main ()
  26723. {
  26724. if ((ac__type_new_ *) 0)
  26725. return 0;
  26726. if (sizeof (ac__type_new_))
  26727. return 0;
  26728. ;
  26729. return 0;
  26730. }
  26731. _ACEOF
  26732. rm -f conftest.$ac_objext
  26733. if { (ac_try="$ac_compile"
  26734. case "(($ac_try" in
  26735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26736. *) ac_try_echo=$ac_try;;
  26737. esac
  26738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26739. (eval "$ac_compile") 2>conftest.er1
  26740. ac_status=$?
  26741. grep -v '^ *+' conftest.er1 >conftest.err
  26742. rm -f conftest.er1
  26743. cat conftest.err >&5
  26744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26745. (exit $ac_status); } && {
  26746. test -z "$ac_c_werror_flag" ||
  26747. test ! -s conftest.err
  26748. } && test -s conftest.$ac_objext; then
  26749. ac_cv_type_long=yes
  26750. else
  26751. echo "$as_me: failed program was:" >&5
  26752. sed 's/^/| /' conftest.$ac_ext >&5
  26753. ac_cv_type_long=no
  26754. fi
  26755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26756. fi
  26757. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  26758. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  26759. # The cast to long int works around a bug in the HP C Compiler
  26760. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26761. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26762. # This bug is HP SR number 8606223364.
  26763. { echo "$as_me:$LINENO: checking size of long" >&5
  26764. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  26765. if test "${ac_cv_sizeof_long+set}" = set; then
  26766. echo $ECHO_N "(cached) $ECHO_C" >&6
  26767. else
  26768. if test "$cross_compiling" = yes; then
  26769. # Depending upon the size, compute the lo and hi bounds.
  26770. cat >conftest.$ac_ext <<_ACEOF
  26771. /* confdefs.h. */
  26772. _ACEOF
  26773. cat confdefs.h >>conftest.$ac_ext
  26774. cat >>conftest.$ac_ext <<_ACEOF
  26775. /* end confdefs.h. */
  26776. $ac_includes_default
  26777. typedef long ac__type_sizeof_;
  26778. int
  26779. main ()
  26780. {
  26781. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26782. test_array [0] = 0
  26783. ;
  26784. return 0;
  26785. }
  26786. _ACEOF
  26787. rm -f conftest.$ac_objext
  26788. if { (ac_try="$ac_compile"
  26789. case "(($ac_try" in
  26790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26791. *) ac_try_echo=$ac_try;;
  26792. esac
  26793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26794. (eval "$ac_compile") 2>conftest.er1
  26795. ac_status=$?
  26796. grep -v '^ *+' conftest.er1 >conftest.err
  26797. rm -f conftest.er1
  26798. cat conftest.err >&5
  26799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26800. (exit $ac_status); } && {
  26801. test -z "$ac_c_werror_flag" ||
  26802. test ! -s conftest.err
  26803. } && test -s conftest.$ac_objext; then
  26804. ac_lo=0 ac_mid=0
  26805. while :; do
  26806. cat >conftest.$ac_ext <<_ACEOF
  26807. /* confdefs.h. */
  26808. _ACEOF
  26809. cat confdefs.h >>conftest.$ac_ext
  26810. cat >>conftest.$ac_ext <<_ACEOF
  26811. /* end confdefs.h. */
  26812. $ac_includes_default
  26813. typedef long ac__type_sizeof_;
  26814. int
  26815. main ()
  26816. {
  26817. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26818. test_array [0] = 0
  26819. ;
  26820. return 0;
  26821. }
  26822. _ACEOF
  26823. rm -f conftest.$ac_objext
  26824. if { (ac_try="$ac_compile"
  26825. case "(($ac_try" in
  26826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26827. *) ac_try_echo=$ac_try;;
  26828. esac
  26829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26830. (eval "$ac_compile") 2>conftest.er1
  26831. ac_status=$?
  26832. grep -v '^ *+' conftest.er1 >conftest.err
  26833. rm -f conftest.er1
  26834. cat conftest.err >&5
  26835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26836. (exit $ac_status); } && {
  26837. test -z "$ac_c_werror_flag" ||
  26838. test ! -s conftest.err
  26839. } && test -s conftest.$ac_objext; then
  26840. ac_hi=$ac_mid; break
  26841. else
  26842. echo "$as_me: failed program was:" >&5
  26843. sed 's/^/| /' conftest.$ac_ext >&5
  26844. ac_lo=`expr $ac_mid + 1`
  26845. if test $ac_lo -le $ac_mid; then
  26846. ac_lo= ac_hi=
  26847. break
  26848. fi
  26849. ac_mid=`expr 2 '*' $ac_mid + 1`
  26850. fi
  26851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26852. done
  26853. else
  26854. echo "$as_me: failed program was:" >&5
  26855. sed 's/^/| /' conftest.$ac_ext >&5
  26856. cat >conftest.$ac_ext <<_ACEOF
  26857. /* confdefs.h. */
  26858. _ACEOF
  26859. cat confdefs.h >>conftest.$ac_ext
  26860. cat >>conftest.$ac_ext <<_ACEOF
  26861. /* end confdefs.h. */
  26862. $ac_includes_default
  26863. typedef long ac__type_sizeof_;
  26864. int
  26865. main ()
  26866. {
  26867. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26868. test_array [0] = 0
  26869. ;
  26870. return 0;
  26871. }
  26872. _ACEOF
  26873. rm -f conftest.$ac_objext
  26874. if { (ac_try="$ac_compile"
  26875. case "(($ac_try" in
  26876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26877. *) ac_try_echo=$ac_try;;
  26878. esac
  26879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26880. (eval "$ac_compile") 2>conftest.er1
  26881. ac_status=$?
  26882. grep -v '^ *+' conftest.er1 >conftest.err
  26883. rm -f conftest.er1
  26884. cat conftest.err >&5
  26885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26886. (exit $ac_status); } && {
  26887. test -z "$ac_c_werror_flag" ||
  26888. test ! -s conftest.err
  26889. } && test -s conftest.$ac_objext; then
  26890. ac_hi=-1 ac_mid=-1
  26891. while :; do
  26892. cat >conftest.$ac_ext <<_ACEOF
  26893. /* confdefs.h. */
  26894. _ACEOF
  26895. cat confdefs.h >>conftest.$ac_ext
  26896. cat >>conftest.$ac_ext <<_ACEOF
  26897. /* end confdefs.h. */
  26898. $ac_includes_default
  26899. typedef long ac__type_sizeof_;
  26900. int
  26901. main ()
  26902. {
  26903. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26904. test_array [0] = 0
  26905. ;
  26906. return 0;
  26907. }
  26908. _ACEOF
  26909. rm -f conftest.$ac_objext
  26910. if { (ac_try="$ac_compile"
  26911. case "(($ac_try" in
  26912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26913. *) ac_try_echo=$ac_try;;
  26914. esac
  26915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26916. (eval "$ac_compile") 2>conftest.er1
  26917. ac_status=$?
  26918. grep -v '^ *+' conftest.er1 >conftest.err
  26919. rm -f conftest.er1
  26920. cat conftest.err >&5
  26921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26922. (exit $ac_status); } && {
  26923. test -z "$ac_c_werror_flag" ||
  26924. test ! -s conftest.err
  26925. } && test -s conftest.$ac_objext; then
  26926. ac_lo=$ac_mid; break
  26927. else
  26928. echo "$as_me: failed program was:" >&5
  26929. sed 's/^/| /' conftest.$ac_ext >&5
  26930. ac_hi=`expr '(' $ac_mid ')' - 1`
  26931. if test $ac_mid -le $ac_hi; then
  26932. ac_lo= ac_hi=
  26933. break
  26934. fi
  26935. ac_mid=`expr 2 '*' $ac_mid`
  26936. fi
  26937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26938. done
  26939. else
  26940. echo "$as_me: failed program was:" >&5
  26941. sed 's/^/| /' conftest.$ac_ext >&5
  26942. ac_lo= ac_hi=
  26943. fi
  26944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26945. fi
  26946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26947. # Binary search between lo and hi bounds.
  26948. while test "x$ac_lo" != "x$ac_hi"; do
  26949. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26950. cat >conftest.$ac_ext <<_ACEOF
  26951. /* confdefs.h. */
  26952. _ACEOF
  26953. cat confdefs.h >>conftest.$ac_ext
  26954. cat >>conftest.$ac_ext <<_ACEOF
  26955. /* end confdefs.h. */
  26956. $ac_includes_default
  26957. typedef long ac__type_sizeof_;
  26958. int
  26959. main ()
  26960. {
  26961. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26962. test_array [0] = 0
  26963. ;
  26964. return 0;
  26965. }
  26966. _ACEOF
  26967. rm -f conftest.$ac_objext
  26968. if { (ac_try="$ac_compile"
  26969. case "(($ac_try" in
  26970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26971. *) ac_try_echo=$ac_try;;
  26972. esac
  26973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26974. (eval "$ac_compile") 2>conftest.er1
  26975. ac_status=$?
  26976. grep -v '^ *+' conftest.er1 >conftest.err
  26977. rm -f conftest.er1
  26978. cat conftest.err >&5
  26979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26980. (exit $ac_status); } && {
  26981. test -z "$ac_c_werror_flag" ||
  26982. test ! -s conftest.err
  26983. } && test -s conftest.$ac_objext; then
  26984. ac_hi=$ac_mid
  26985. else
  26986. echo "$as_me: failed program was:" >&5
  26987. sed 's/^/| /' conftest.$ac_ext >&5
  26988. ac_lo=`expr '(' $ac_mid ')' + 1`
  26989. fi
  26990. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26991. done
  26992. case $ac_lo in
  26993. ?*) ac_cv_sizeof_long=$ac_lo;;
  26994. '') if test "$ac_cv_type_long" = yes; then
  26995. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26996. See \`config.log' for more details." >&5
  26997. echo "$as_me: error: cannot compute sizeof (long)
  26998. See \`config.log' for more details." >&2;}
  26999. { (exit 77); exit 77; }; }
  27000. else
  27001. ac_cv_sizeof_long=0
  27002. fi ;;
  27003. esac
  27004. else
  27005. cat >conftest.$ac_ext <<_ACEOF
  27006. /* confdefs.h. */
  27007. _ACEOF
  27008. cat confdefs.h >>conftest.$ac_ext
  27009. cat >>conftest.$ac_ext <<_ACEOF
  27010. /* end confdefs.h. */
  27011. $ac_includes_default
  27012. typedef long ac__type_sizeof_;
  27013. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27014. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27015. #include <stdio.h>
  27016. #include <stdlib.h>
  27017. int
  27018. main ()
  27019. {
  27020. FILE *f = fopen ("conftest.val", "w");
  27021. if (! f)
  27022. return 1;
  27023. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27024. {
  27025. long int i = longval ();
  27026. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27027. return 1;
  27028. fprintf (f, "%ld\n", i);
  27029. }
  27030. else
  27031. {
  27032. unsigned long int i = ulongval ();
  27033. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27034. return 1;
  27035. fprintf (f, "%lu\n", i);
  27036. }
  27037. return ferror (f) || fclose (f) != 0;
  27038. ;
  27039. return 0;
  27040. }
  27041. _ACEOF
  27042. rm -f conftest$ac_exeext
  27043. if { (ac_try="$ac_link"
  27044. case "(($ac_try" in
  27045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27046. *) ac_try_echo=$ac_try;;
  27047. esac
  27048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27049. (eval "$ac_link") 2>&5
  27050. ac_status=$?
  27051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27052. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27053. { (case "(($ac_try" in
  27054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27055. *) ac_try_echo=$ac_try;;
  27056. esac
  27057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27058. (eval "$ac_try") 2>&5
  27059. ac_status=$?
  27060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27061. (exit $ac_status); }; }; then
  27062. ac_cv_sizeof_long=`cat conftest.val`
  27063. else
  27064. echo "$as_me: program exited with status $ac_status" >&5
  27065. echo "$as_me: failed program was:" >&5
  27066. sed 's/^/| /' conftest.$ac_ext >&5
  27067. ( exit $ac_status )
  27068. if test "$ac_cv_type_long" = yes; then
  27069. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27070. See \`config.log' for more details." >&5
  27071. echo "$as_me: error: cannot compute sizeof (long)
  27072. See \`config.log' for more details." >&2;}
  27073. { (exit 77); exit 77; }; }
  27074. else
  27075. ac_cv_sizeof_long=0
  27076. fi
  27077. fi
  27078. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27079. fi
  27080. rm -f conftest.val
  27081. fi
  27082. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  27083. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  27084. cat >>confdefs.h <<_ACEOF
  27085. #define SIZEOF_LONG $ac_cv_sizeof_long
  27086. _ACEOF
  27087. { echo "$as_me:$LINENO: checking for short" >&5
  27088. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  27089. if test "${ac_cv_type_short+set}" = set; then
  27090. echo $ECHO_N "(cached) $ECHO_C" >&6
  27091. else
  27092. cat >conftest.$ac_ext <<_ACEOF
  27093. /* confdefs.h. */
  27094. _ACEOF
  27095. cat confdefs.h >>conftest.$ac_ext
  27096. cat >>conftest.$ac_ext <<_ACEOF
  27097. /* end confdefs.h. */
  27098. $ac_includes_default
  27099. typedef short ac__type_new_;
  27100. int
  27101. main ()
  27102. {
  27103. if ((ac__type_new_ *) 0)
  27104. return 0;
  27105. if (sizeof (ac__type_new_))
  27106. return 0;
  27107. ;
  27108. return 0;
  27109. }
  27110. _ACEOF
  27111. rm -f conftest.$ac_objext
  27112. if { (ac_try="$ac_compile"
  27113. case "(($ac_try" in
  27114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27115. *) ac_try_echo=$ac_try;;
  27116. esac
  27117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27118. (eval "$ac_compile") 2>conftest.er1
  27119. ac_status=$?
  27120. grep -v '^ *+' conftest.er1 >conftest.err
  27121. rm -f conftest.er1
  27122. cat conftest.err >&5
  27123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27124. (exit $ac_status); } && {
  27125. test -z "$ac_c_werror_flag" ||
  27126. test ! -s conftest.err
  27127. } && test -s conftest.$ac_objext; then
  27128. ac_cv_type_short=yes
  27129. else
  27130. echo "$as_me: failed program was:" >&5
  27131. sed 's/^/| /' conftest.$ac_ext >&5
  27132. ac_cv_type_short=no
  27133. fi
  27134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27135. fi
  27136. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  27137. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  27138. # The cast to long int works around a bug in the HP C Compiler
  27139. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27140. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27141. # This bug is HP SR number 8606223364.
  27142. { echo "$as_me:$LINENO: checking size of short" >&5
  27143. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  27144. if test "${ac_cv_sizeof_short+set}" = set; then
  27145. echo $ECHO_N "(cached) $ECHO_C" >&6
  27146. else
  27147. if test "$cross_compiling" = yes; then
  27148. # Depending upon the size, compute the lo and hi bounds.
  27149. cat >conftest.$ac_ext <<_ACEOF
  27150. /* confdefs.h. */
  27151. _ACEOF
  27152. cat confdefs.h >>conftest.$ac_ext
  27153. cat >>conftest.$ac_ext <<_ACEOF
  27154. /* end confdefs.h. */
  27155. $ac_includes_default
  27156. typedef short ac__type_sizeof_;
  27157. int
  27158. main ()
  27159. {
  27160. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  27161. test_array [0] = 0
  27162. ;
  27163. return 0;
  27164. }
  27165. _ACEOF
  27166. rm -f conftest.$ac_objext
  27167. if { (ac_try="$ac_compile"
  27168. case "(($ac_try" in
  27169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27170. *) ac_try_echo=$ac_try;;
  27171. esac
  27172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27173. (eval "$ac_compile") 2>conftest.er1
  27174. ac_status=$?
  27175. grep -v '^ *+' conftest.er1 >conftest.err
  27176. rm -f conftest.er1
  27177. cat conftest.err >&5
  27178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27179. (exit $ac_status); } && {
  27180. test -z "$ac_c_werror_flag" ||
  27181. test ! -s conftest.err
  27182. } && test -s conftest.$ac_objext; then
  27183. ac_lo=0 ac_mid=0
  27184. while :; do
  27185. cat >conftest.$ac_ext <<_ACEOF
  27186. /* confdefs.h. */
  27187. _ACEOF
  27188. cat confdefs.h >>conftest.$ac_ext
  27189. cat >>conftest.$ac_ext <<_ACEOF
  27190. /* end confdefs.h. */
  27191. $ac_includes_default
  27192. typedef short ac__type_sizeof_;
  27193. int
  27194. main ()
  27195. {
  27196. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27197. test_array [0] = 0
  27198. ;
  27199. return 0;
  27200. }
  27201. _ACEOF
  27202. rm -f conftest.$ac_objext
  27203. if { (ac_try="$ac_compile"
  27204. case "(($ac_try" in
  27205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27206. *) ac_try_echo=$ac_try;;
  27207. esac
  27208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27209. (eval "$ac_compile") 2>conftest.er1
  27210. ac_status=$?
  27211. grep -v '^ *+' conftest.er1 >conftest.err
  27212. rm -f conftest.er1
  27213. cat conftest.err >&5
  27214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27215. (exit $ac_status); } && {
  27216. test -z "$ac_c_werror_flag" ||
  27217. test ! -s conftest.err
  27218. } && test -s conftest.$ac_objext; then
  27219. ac_hi=$ac_mid; break
  27220. else
  27221. echo "$as_me: failed program was:" >&5
  27222. sed 's/^/| /' conftest.$ac_ext >&5
  27223. ac_lo=`expr $ac_mid + 1`
  27224. if test $ac_lo -le $ac_mid; then
  27225. ac_lo= ac_hi=
  27226. break
  27227. fi
  27228. ac_mid=`expr 2 '*' $ac_mid + 1`
  27229. fi
  27230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27231. done
  27232. else
  27233. echo "$as_me: failed program was:" >&5
  27234. sed 's/^/| /' conftest.$ac_ext >&5
  27235. cat >conftest.$ac_ext <<_ACEOF
  27236. /* confdefs.h. */
  27237. _ACEOF
  27238. cat confdefs.h >>conftest.$ac_ext
  27239. cat >>conftest.$ac_ext <<_ACEOF
  27240. /* end confdefs.h. */
  27241. $ac_includes_default
  27242. typedef short ac__type_sizeof_;
  27243. int
  27244. main ()
  27245. {
  27246. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  27247. test_array [0] = 0
  27248. ;
  27249. return 0;
  27250. }
  27251. _ACEOF
  27252. rm -f conftest.$ac_objext
  27253. if { (ac_try="$ac_compile"
  27254. case "(($ac_try" in
  27255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27256. *) ac_try_echo=$ac_try;;
  27257. esac
  27258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27259. (eval "$ac_compile") 2>conftest.er1
  27260. ac_status=$?
  27261. grep -v '^ *+' conftest.er1 >conftest.err
  27262. rm -f conftest.er1
  27263. cat conftest.err >&5
  27264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27265. (exit $ac_status); } && {
  27266. test -z "$ac_c_werror_flag" ||
  27267. test ! -s conftest.err
  27268. } && test -s conftest.$ac_objext; then
  27269. ac_hi=-1 ac_mid=-1
  27270. while :; do
  27271. cat >conftest.$ac_ext <<_ACEOF
  27272. /* confdefs.h. */
  27273. _ACEOF
  27274. cat confdefs.h >>conftest.$ac_ext
  27275. cat >>conftest.$ac_ext <<_ACEOF
  27276. /* end confdefs.h. */
  27277. $ac_includes_default
  27278. typedef short ac__type_sizeof_;
  27279. int
  27280. main ()
  27281. {
  27282. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  27283. test_array [0] = 0
  27284. ;
  27285. return 0;
  27286. }
  27287. _ACEOF
  27288. rm -f conftest.$ac_objext
  27289. if { (ac_try="$ac_compile"
  27290. case "(($ac_try" in
  27291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27292. *) ac_try_echo=$ac_try;;
  27293. esac
  27294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27295. (eval "$ac_compile") 2>conftest.er1
  27296. ac_status=$?
  27297. grep -v '^ *+' conftest.er1 >conftest.err
  27298. rm -f conftest.er1
  27299. cat conftest.err >&5
  27300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27301. (exit $ac_status); } && {
  27302. test -z "$ac_c_werror_flag" ||
  27303. test ! -s conftest.err
  27304. } && test -s conftest.$ac_objext; then
  27305. ac_lo=$ac_mid; break
  27306. else
  27307. echo "$as_me: failed program was:" >&5
  27308. sed 's/^/| /' conftest.$ac_ext >&5
  27309. ac_hi=`expr '(' $ac_mid ')' - 1`
  27310. if test $ac_mid -le $ac_hi; then
  27311. ac_lo= ac_hi=
  27312. break
  27313. fi
  27314. ac_mid=`expr 2 '*' $ac_mid`
  27315. fi
  27316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27317. done
  27318. else
  27319. echo "$as_me: failed program was:" >&5
  27320. sed 's/^/| /' conftest.$ac_ext >&5
  27321. ac_lo= ac_hi=
  27322. fi
  27323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27324. fi
  27325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27326. # Binary search between lo and hi bounds.
  27327. while test "x$ac_lo" != "x$ac_hi"; do
  27328. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27329. cat >conftest.$ac_ext <<_ACEOF
  27330. /* confdefs.h. */
  27331. _ACEOF
  27332. cat confdefs.h >>conftest.$ac_ext
  27333. cat >>conftest.$ac_ext <<_ACEOF
  27334. /* end confdefs.h. */
  27335. $ac_includes_default
  27336. typedef short ac__type_sizeof_;
  27337. int
  27338. main ()
  27339. {
  27340. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27341. test_array [0] = 0
  27342. ;
  27343. return 0;
  27344. }
  27345. _ACEOF
  27346. rm -f conftest.$ac_objext
  27347. if { (ac_try="$ac_compile"
  27348. case "(($ac_try" in
  27349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27350. *) ac_try_echo=$ac_try;;
  27351. esac
  27352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27353. (eval "$ac_compile") 2>conftest.er1
  27354. ac_status=$?
  27355. grep -v '^ *+' conftest.er1 >conftest.err
  27356. rm -f conftest.er1
  27357. cat conftest.err >&5
  27358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27359. (exit $ac_status); } && {
  27360. test -z "$ac_c_werror_flag" ||
  27361. test ! -s conftest.err
  27362. } && test -s conftest.$ac_objext; then
  27363. ac_hi=$ac_mid
  27364. else
  27365. echo "$as_me: failed program was:" >&5
  27366. sed 's/^/| /' conftest.$ac_ext >&5
  27367. ac_lo=`expr '(' $ac_mid ')' + 1`
  27368. fi
  27369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27370. done
  27371. case $ac_lo in
  27372. ?*) ac_cv_sizeof_short=$ac_lo;;
  27373. '') if test "$ac_cv_type_short" = yes; then
  27374. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27375. See \`config.log' for more details." >&5
  27376. echo "$as_me: error: cannot compute sizeof (short)
  27377. See \`config.log' for more details." >&2;}
  27378. { (exit 77); exit 77; }; }
  27379. else
  27380. ac_cv_sizeof_short=0
  27381. fi ;;
  27382. esac
  27383. else
  27384. cat >conftest.$ac_ext <<_ACEOF
  27385. /* confdefs.h. */
  27386. _ACEOF
  27387. cat confdefs.h >>conftest.$ac_ext
  27388. cat >>conftest.$ac_ext <<_ACEOF
  27389. /* end confdefs.h. */
  27390. $ac_includes_default
  27391. typedef short ac__type_sizeof_;
  27392. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27393. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27394. #include <stdio.h>
  27395. #include <stdlib.h>
  27396. int
  27397. main ()
  27398. {
  27399. FILE *f = fopen ("conftest.val", "w");
  27400. if (! f)
  27401. return 1;
  27402. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27403. {
  27404. long int i = longval ();
  27405. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27406. return 1;
  27407. fprintf (f, "%ld\n", i);
  27408. }
  27409. else
  27410. {
  27411. unsigned long int i = ulongval ();
  27412. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27413. return 1;
  27414. fprintf (f, "%lu\n", i);
  27415. }
  27416. return ferror (f) || fclose (f) != 0;
  27417. ;
  27418. return 0;
  27419. }
  27420. _ACEOF
  27421. rm -f conftest$ac_exeext
  27422. if { (ac_try="$ac_link"
  27423. case "(($ac_try" in
  27424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27425. *) ac_try_echo=$ac_try;;
  27426. esac
  27427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27428. (eval "$ac_link") 2>&5
  27429. ac_status=$?
  27430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27431. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27432. { (case "(($ac_try" in
  27433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27434. *) ac_try_echo=$ac_try;;
  27435. esac
  27436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27437. (eval "$ac_try") 2>&5
  27438. ac_status=$?
  27439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27440. (exit $ac_status); }; }; then
  27441. ac_cv_sizeof_short=`cat conftest.val`
  27442. else
  27443. echo "$as_me: program exited with status $ac_status" >&5
  27444. echo "$as_me: failed program was:" >&5
  27445. sed 's/^/| /' conftest.$ac_ext >&5
  27446. ( exit $ac_status )
  27447. if test "$ac_cv_type_short" = yes; then
  27448. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27449. See \`config.log' for more details." >&5
  27450. echo "$as_me: error: cannot compute sizeof (short)
  27451. See \`config.log' for more details." >&2;}
  27452. { (exit 77); exit 77; }; }
  27453. else
  27454. ac_cv_sizeof_short=0
  27455. fi
  27456. fi
  27457. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27458. fi
  27459. rm -f conftest.val
  27460. fi
  27461. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  27462. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  27463. cat >>confdefs.h <<_ACEOF
  27464. #define SIZEOF_SHORT $ac_cv_sizeof_short
  27465. _ACEOF
  27466. # ----------------------------------------------------------------------
  27467. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  27468. # ----------------------------------------------------------------------
  27469. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  27470. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  27471. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  27472. echo $ECHO_N "(cached) $ECHO_C" >&6
  27473. else
  27474. ac_check_lib_save_LIBS=$LIBS
  27475. LIBS="-lgen $LIBS"
  27476. cat >conftest.$ac_ext <<_ACEOF
  27477. /* confdefs.h. */
  27478. _ACEOF
  27479. cat confdefs.h >>conftest.$ac_ext
  27480. cat >>conftest.$ac_ext <<_ACEOF
  27481. /* end confdefs.h. */
  27482. /* Override any GCC internal prototype to avoid an error.
  27483. Use char because int might match the return type of a GCC
  27484. builtin and then its argument prototype would still apply. */
  27485. #ifdef __cplusplus
  27486. extern "C"
  27487. #endif
  27488. char pathfind ();
  27489. int
  27490. main ()
  27491. {
  27492. return pathfind ();
  27493. ;
  27494. return 0;
  27495. }
  27496. _ACEOF
  27497. rm -f conftest.$ac_objext conftest$ac_exeext
  27498. if { (ac_try="$ac_link"
  27499. case "(($ac_try" in
  27500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27501. *) ac_try_echo=$ac_try;;
  27502. esac
  27503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27504. (eval "$ac_link") 2>conftest.er1
  27505. ac_status=$?
  27506. grep -v '^ *+' conftest.er1 >conftest.err
  27507. rm -f conftest.er1
  27508. cat conftest.err >&5
  27509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27510. (exit $ac_status); } && {
  27511. test -z "$ac_c_werror_flag" ||
  27512. test ! -s conftest.err
  27513. } && test -s conftest$ac_exeext &&
  27514. $as_test_x conftest$ac_exeext; then
  27515. ac_cv_lib_gen_pathfind=yes
  27516. else
  27517. echo "$as_me: failed program was:" >&5
  27518. sed 's/^/| /' conftest.$ac_ext >&5
  27519. ac_cv_lib_gen_pathfind=no
  27520. fi
  27521. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27522. conftest$ac_exeext conftest.$ac_ext
  27523. LIBS=$ac_check_lib_save_LIBS
  27524. fi
  27525. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27526. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  27527. if test $ac_cv_lib_gen_pathfind = yes; then
  27528. cat >>confdefs.h <<_ACEOF
  27529. #define HAVE_LIBGEN 1
  27530. _ACEOF
  27531. LIBS="-lgen $LIBS"
  27532. fi
  27533. for ac_func in vprintf
  27534. do
  27535. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27536. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27537. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27538. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27539. echo $ECHO_N "(cached) $ECHO_C" >&6
  27540. else
  27541. cat >conftest.$ac_ext <<_ACEOF
  27542. /* confdefs.h. */
  27543. _ACEOF
  27544. cat confdefs.h >>conftest.$ac_ext
  27545. cat >>conftest.$ac_ext <<_ACEOF
  27546. /* end confdefs.h. */
  27547. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27548. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27549. #define $ac_func innocuous_$ac_func
  27550. /* System header to define __stub macros and hopefully few prototypes,
  27551. which can conflict with char $ac_func (); below.
  27552. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27553. <limits.h> exists even on freestanding compilers. */
  27554. #ifdef __STDC__
  27555. # include <limits.h>
  27556. #else
  27557. # include <assert.h>
  27558. #endif
  27559. #undef $ac_func
  27560. /* Override any GCC internal prototype to avoid an error.
  27561. Use char because int might match the return type of a GCC
  27562. builtin and then its argument prototype would still apply. */
  27563. #ifdef __cplusplus
  27564. extern "C"
  27565. #endif
  27566. char $ac_func ();
  27567. /* The GNU C library defines this for functions which it implements
  27568. to always fail with ENOSYS. Some functions are actually named
  27569. something starting with __ and the normal name is an alias. */
  27570. #if defined __stub_$ac_func || defined __stub___$ac_func
  27571. choke me
  27572. #endif
  27573. int
  27574. main ()
  27575. {
  27576. return $ac_func ();
  27577. ;
  27578. return 0;
  27579. }
  27580. _ACEOF
  27581. rm -f conftest.$ac_objext conftest$ac_exeext
  27582. if { (ac_try="$ac_link"
  27583. case "(($ac_try" in
  27584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27585. *) ac_try_echo=$ac_try;;
  27586. esac
  27587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27588. (eval "$ac_link") 2>conftest.er1
  27589. ac_status=$?
  27590. grep -v '^ *+' conftest.er1 >conftest.err
  27591. rm -f conftest.er1
  27592. cat conftest.err >&5
  27593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27594. (exit $ac_status); } && {
  27595. test -z "$ac_c_werror_flag" ||
  27596. test ! -s conftest.err
  27597. } && test -s conftest$ac_exeext &&
  27598. $as_test_x conftest$ac_exeext; then
  27599. eval "$as_ac_var=yes"
  27600. else
  27601. echo "$as_me: failed program was:" >&5
  27602. sed 's/^/| /' conftest.$ac_ext >&5
  27603. eval "$as_ac_var=no"
  27604. fi
  27605. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27606. conftest$ac_exeext conftest.$ac_ext
  27607. fi
  27608. ac_res=`eval echo '${'$as_ac_var'}'`
  27609. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27610. echo "${ECHO_T}$ac_res" >&6; }
  27611. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27612. cat >>confdefs.h <<_ACEOF
  27613. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27614. _ACEOF
  27615. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  27616. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  27617. if test "${ac_cv_func__doprnt+set}" = set; then
  27618. echo $ECHO_N "(cached) $ECHO_C" >&6
  27619. else
  27620. cat >conftest.$ac_ext <<_ACEOF
  27621. /* confdefs.h. */
  27622. _ACEOF
  27623. cat confdefs.h >>conftest.$ac_ext
  27624. cat >>conftest.$ac_ext <<_ACEOF
  27625. /* end confdefs.h. */
  27626. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  27627. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27628. #define _doprnt innocuous__doprnt
  27629. /* System header to define __stub macros and hopefully few prototypes,
  27630. which can conflict with char _doprnt (); below.
  27631. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27632. <limits.h> exists even on freestanding compilers. */
  27633. #ifdef __STDC__
  27634. # include <limits.h>
  27635. #else
  27636. # include <assert.h>
  27637. #endif
  27638. #undef _doprnt
  27639. /* Override any GCC internal prototype to avoid an error.
  27640. Use char because int might match the return type of a GCC
  27641. builtin and then its argument prototype would still apply. */
  27642. #ifdef __cplusplus
  27643. extern "C"
  27644. #endif
  27645. char _doprnt ();
  27646. /* The GNU C library defines this for functions which it implements
  27647. to always fail with ENOSYS. Some functions are actually named
  27648. something starting with __ and the normal name is an alias. */
  27649. #if defined __stub__doprnt || defined __stub____doprnt
  27650. choke me
  27651. #endif
  27652. int
  27653. main ()
  27654. {
  27655. return _doprnt ();
  27656. ;
  27657. return 0;
  27658. }
  27659. _ACEOF
  27660. rm -f conftest.$ac_objext conftest$ac_exeext
  27661. if { (ac_try="$ac_link"
  27662. case "(($ac_try" in
  27663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27664. *) ac_try_echo=$ac_try;;
  27665. esac
  27666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27667. (eval "$ac_link") 2>conftest.er1
  27668. ac_status=$?
  27669. grep -v '^ *+' conftest.er1 >conftest.err
  27670. rm -f conftest.er1
  27671. cat conftest.err >&5
  27672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27673. (exit $ac_status); } && {
  27674. test -z "$ac_c_werror_flag" ||
  27675. test ! -s conftest.err
  27676. } && test -s conftest$ac_exeext &&
  27677. $as_test_x conftest$ac_exeext; then
  27678. ac_cv_func__doprnt=yes
  27679. else
  27680. echo "$as_me: failed program was:" >&5
  27681. sed 's/^/| /' conftest.$ac_ext >&5
  27682. ac_cv_func__doprnt=no
  27683. fi
  27684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27685. conftest$ac_exeext conftest.$ac_ext
  27686. fi
  27687. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  27688. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  27689. if test $ac_cv_func__doprnt = yes; then
  27690. cat >>confdefs.h <<\_ACEOF
  27691. #define HAVE_DOPRNT 1
  27692. _ACEOF
  27693. fi
  27694. fi
  27695. done
  27696. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  27697. do
  27698. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27699. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27700. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27701. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27702. echo $ECHO_N "(cached) $ECHO_C" >&6
  27703. else
  27704. cat >conftest.$ac_ext <<_ACEOF
  27705. /* confdefs.h. */
  27706. _ACEOF
  27707. cat confdefs.h >>conftest.$ac_ext
  27708. cat >>conftest.$ac_ext <<_ACEOF
  27709. /* end confdefs.h. */
  27710. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27711. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27712. #define $ac_func innocuous_$ac_func
  27713. /* System header to define __stub macros and hopefully few prototypes,
  27714. which can conflict with char $ac_func (); below.
  27715. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27716. <limits.h> exists even on freestanding compilers. */
  27717. #ifdef __STDC__
  27718. # include <limits.h>
  27719. #else
  27720. # include <assert.h>
  27721. #endif
  27722. #undef $ac_func
  27723. /* Override any GCC internal prototype to avoid an error.
  27724. Use char because int might match the return type of a GCC
  27725. builtin and then its argument prototype would still apply. */
  27726. #ifdef __cplusplus
  27727. extern "C"
  27728. #endif
  27729. char $ac_func ();
  27730. /* The GNU C library defines this for functions which it implements
  27731. to always fail with ENOSYS. Some functions are actually named
  27732. something starting with __ and the normal name is an alias. */
  27733. #if defined __stub_$ac_func || defined __stub___$ac_func
  27734. choke me
  27735. #endif
  27736. int
  27737. main ()
  27738. {
  27739. return $ac_func ();
  27740. ;
  27741. return 0;
  27742. }
  27743. _ACEOF
  27744. rm -f conftest.$ac_objext conftest$ac_exeext
  27745. if { (ac_try="$ac_link"
  27746. case "(($ac_try" in
  27747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27748. *) ac_try_echo=$ac_try;;
  27749. esac
  27750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27751. (eval "$ac_link") 2>conftest.er1
  27752. ac_status=$?
  27753. grep -v '^ *+' conftest.er1 >conftest.err
  27754. rm -f conftest.er1
  27755. cat conftest.err >&5
  27756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27757. (exit $ac_status); } && {
  27758. test -z "$ac_c_werror_flag" ||
  27759. test ! -s conftest.err
  27760. } && test -s conftest$ac_exeext &&
  27761. $as_test_x conftest$ac_exeext; then
  27762. eval "$as_ac_var=yes"
  27763. else
  27764. echo "$as_me: failed program was:" >&5
  27765. sed 's/^/| /' conftest.$ac_ext >&5
  27766. eval "$as_ac_var=no"
  27767. fi
  27768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27769. conftest$ac_exeext conftest.$ac_ext
  27770. fi
  27771. ac_res=`eval echo '${'$as_ac_var'}'`
  27772. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27773. echo "${ECHO_T}$ac_res" >&6; }
  27774. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27775. cat >>confdefs.h <<_ACEOF
  27776. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27777. _ACEOF
  27778. fi
  27779. done
  27780. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  27781. fi
  27782. # Check to see if a reg expr header is specified.
  27783. # Check whether --with-regex-header was given.
  27784. if test "${with_regex_header+set}" = set; then
  27785. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  27786. else
  27787. { echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  27788. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6; }
  27789. if test "${libopts_cv_with_regex_header+set}" = set; then
  27790. echo $ECHO_N "(cached) $ECHO_C" >&6
  27791. else
  27792. libopts_cv_with_regex_header=no
  27793. fi
  27794. { echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  27795. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6; }
  27796. fi
  27797. # end of AC_ARG_WITH
  27798. if test "X${libopts_cv_with_regex_header}" != Xno
  27799. then
  27800. cat >>confdefs.h <<_ACEOF
  27801. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  27802. _ACEOF
  27803. else
  27804. cat >>confdefs.h <<\_ACEOF
  27805. #define REGEX_HEADER <regex.h>
  27806. _ACEOF
  27807. fi
  27808. # Check to see if a working libregex can be found.
  27809. # Check whether --with-libregex was given.
  27810. if test "${with_libregex+set}" = set; then
  27811. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  27812. else
  27813. { echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  27814. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6; }
  27815. if test "${libopts_cv_with_libregex_root+set}" = set; then
  27816. echo $ECHO_N "(cached) $ECHO_C" >&6
  27817. else
  27818. libopts_cv_with_libregex_root=no
  27819. fi
  27820. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  27821. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6; }
  27822. fi
  27823. # end of AC_ARG_WITH libregex
  27824. if test "${with_libguile+set}" = set && \
  27825. test "${withval}" = no
  27826. then ## disabled by request
  27827. libopts_cv_with_libregex_root=no
  27828. libopts_cv_with_libregex_cflags=no
  27829. libopts_cv_with_libregex_libs=no
  27830. else
  27831. # Check whether --with-libregex-cflags was given.
  27832. if test "${with_libregex_cflags+set}" = set; then
  27833. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  27834. else
  27835. { echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  27836. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6; }
  27837. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  27838. echo $ECHO_N "(cached) $ECHO_C" >&6
  27839. else
  27840. libopts_cv_with_libregex_cflags=no
  27841. fi
  27842. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  27843. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6; }
  27844. fi
  27845. # end of AC_ARG_WITH libregex-cflags
  27846. # Check whether --with-libregex-libs was given.
  27847. if test "${with_libregex_libs+set}" = set; then
  27848. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  27849. else
  27850. { echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  27851. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6; }
  27852. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  27853. echo $ECHO_N "(cached) $ECHO_C" >&6
  27854. else
  27855. libopts_cv_with_libregex_libs=no
  27856. fi
  27857. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  27858. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6; }
  27859. fi
  27860. # end of AC_ARG_WITH libregex-libs
  27861. case "X${libopts_cv_with_libregex_cflags}" in
  27862. Xyes|Xno|X )
  27863. case "X${libopts_cv_with_libregex_root}" in
  27864. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  27865. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  27866. esac
  27867. esac
  27868. case "X${libopts_cv_with_libregex_libs}" in
  27869. Xyes|Xno|X )
  27870. case "X${libopts_cv_with_libregex_root}" in
  27871. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  27872. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  27873. esac
  27874. esac
  27875. libopts_save_CPPFLAGS="${CPPFLAGS}"
  27876. libopts_save_LIBS="${LIBS}"
  27877. fi ## disabled by request
  27878. case "X${libopts_cv_with_libregex_cflags}" in
  27879. Xyes|Xno|X )
  27880. libopts_cv_with_libregex_cflags="" ;;
  27881. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  27882. esac
  27883. case "X${libopts_cv_with_libregex_libs}" in
  27884. Xyes|Xno|X )
  27885. libopts_cv_with_libregex_libs="" ;;
  27886. * )
  27887. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  27888. esac
  27889. LIBREGEX_CFLAGS=""
  27890. LIBREGEX_LIBS=""
  27891. { echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  27892. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6; }
  27893. if test "${libopts_cv_with_libregex+set}" = set; then
  27894. echo $ECHO_N "(cached) $ECHO_C" >&6
  27895. else
  27896. if test "$cross_compiling" = yes; then
  27897. libopts_cv_with_libregex=no
  27898. else
  27899. cat >conftest.$ac_ext <<_ACEOF
  27900. /* confdefs.h. */
  27901. _ACEOF
  27902. cat confdefs.h >>conftest.$ac_ext
  27903. cat >>conftest.$ac_ext <<_ACEOF
  27904. /* end confdefs.h. */
  27905. #include <stdio.h>
  27906. #include <stdlib.h>
  27907. #include <sys/types.h>
  27908. #include REGEX_HEADER
  27909. static regex_t re;
  27910. void comp_re( char const* pzPat ) {
  27911. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  27912. if (res == 0) return;
  27913. exit( res ); }
  27914. int main() {
  27915. regmatch_t m[2];
  27916. comp_re( "^.*\$" );
  27917. comp_re( "()|no.*" );
  27918. comp_re( "." );
  27919. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  27920. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  27921. fputs( "error: regex -->.<-- did not match\n", stderr );
  27922. return 1;
  27923. }
  27924. return 0; }
  27925. _ACEOF
  27926. rm -f conftest$ac_exeext
  27927. if { (ac_try="$ac_link"
  27928. case "(($ac_try" in
  27929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27930. *) ac_try_echo=$ac_try;;
  27931. esac
  27932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27933. (eval "$ac_link") 2>&5
  27934. ac_status=$?
  27935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27936. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27937. { (case "(($ac_try" in
  27938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27939. *) ac_try_echo=$ac_try;;
  27940. esac
  27941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27942. (eval "$ac_try") 2>&5
  27943. ac_status=$?
  27944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27945. (exit $ac_status); }; }; then
  27946. libopts_cv_with_libregex=yes
  27947. else
  27948. echo "$as_me: program exited with status $ac_status" >&5
  27949. echo "$as_me: failed program was:" >&5
  27950. sed 's/^/| /' conftest.$ac_ext >&5
  27951. ( exit $ac_status )
  27952. libopts_cv_with_libregex=no
  27953. fi
  27954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27955. fi
  27956. # end of AC_TRY_RUN
  27957. fi
  27958. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  27959. { echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  27960. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6; }
  27961. if test "X${libopts_cv_with_libregex}" != Xno
  27962. then
  27963. cat >>confdefs.h <<\_ACEOF
  27964. #define WITH_LIBREGEX 1
  27965. _ACEOF
  27966. else
  27967. CPPFLAGS="${libopts_save_CPPFLAGS}"
  27968. LIBS="${libopts_save_LIBS}"
  27969. fi
  27970. # Check to see if pathfind(3) works.
  27971. { echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  27972. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6; }
  27973. if test "${libopts_cv_run_pathfind+set}" = set; then
  27974. echo $ECHO_N "(cached) $ECHO_C" >&6
  27975. else
  27976. if test "$cross_compiling" = yes; then
  27977. libopts_cv_run_pathfind=no
  27978. else
  27979. cat >conftest.$ac_ext <<_ACEOF
  27980. /* confdefs.h. */
  27981. _ACEOF
  27982. cat confdefs.h >>conftest.$ac_ext
  27983. cat >>conftest.$ac_ext <<_ACEOF
  27984. /* end confdefs.h. */
  27985. #include <string.h>
  27986. #include <stdlib.h>
  27987. int main (int argc, char** argv) {
  27988. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  27989. return (pz == 0) ? 1 : 0;
  27990. }
  27991. _ACEOF
  27992. rm -f conftest$ac_exeext
  27993. if { (ac_try="$ac_link"
  27994. case "(($ac_try" in
  27995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27996. *) ac_try_echo=$ac_try;;
  27997. esac
  27998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27999. (eval "$ac_link") 2>&5
  28000. ac_status=$?
  28001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28002. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28003. { (case "(($ac_try" in
  28004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28005. *) ac_try_echo=$ac_try;;
  28006. esac
  28007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28008. (eval "$ac_try") 2>&5
  28009. ac_status=$?
  28010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28011. (exit $ac_status); }; }; then
  28012. libopts_cv_run_pathfind=yes
  28013. else
  28014. echo "$as_me: program exited with status $ac_status" >&5
  28015. echo "$as_me: failed program was:" >&5
  28016. sed 's/^/| /' conftest.$ac_ext >&5
  28017. ( exit $ac_status )
  28018. libopts_cv_run_pathfind=no
  28019. fi
  28020. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28021. fi
  28022. # end of TRY_RUN
  28023. fi
  28024. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  28025. { echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  28026. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6; }
  28027. if test "X${libopts_cv_run_pathfind}" != Xno
  28028. then
  28029. cat >>confdefs.h <<\_ACEOF
  28030. #define HAVE_PATHFIND 1
  28031. _ACEOF
  28032. fi
  28033. # Check to see if /dev/zero is readable device.
  28034. { echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  28035. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6; }
  28036. if test "${libopts_cv_test_dev_zero+set}" = set; then
  28037. echo $ECHO_N "(cached) $ECHO_C" >&6
  28038. else
  28039. libopts_cv_test_dev_zero=`exec 2> /dev/null
  28040. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  28041. test -z "${dzero}" && exit 1
  28042. echo ${dzero}`
  28043. if test $? -ne 0
  28044. then libopts_cv_test_dev_zero=no
  28045. elif test -z "$libopts_cv_test_dev_zero"
  28046. then libopts_cv_test_dev_zero=no
  28047. fi
  28048. fi
  28049. # end of CACHE_VAL of libopts_cv_test_dev_zero
  28050. { echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  28051. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6; }
  28052. if test "X${libopts_cv_test_dev_zero}" != Xno
  28053. then
  28054. cat >>confdefs.h <<\_ACEOF
  28055. #define HAVE_DEV_ZERO 1
  28056. _ACEOF
  28057. fi
  28058. # Check to see if we have a functional realpath(3C).
  28059. { echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  28060. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6; }
  28061. if test "${libopts_cv_run_realpath+set}" = set; then
  28062. echo $ECHO_N "(cached) $ECHO_C" >&6
  28063. else
  28064. if test "$cross_compiling" = yes; then
  28065. libopts_cv_run_realpath=no
  28066. else
  28067. cat >conftest.$ac_ext <<_ACEOF
  28068. /* confdefs.h. */
  28069. _ACEOF
  28070. cat confdefs.h >>conftest.$ac_ext
  28071. cat >>conftest.$ac_ext <<_ACEOF
  28072. /* end confdefs.h. */
  28073. #include <limits.h>
  28074. #include <stdlib.h>
  28075. int main (int argc, char** argv) {
  28076. #ifndef PATH_MAX
  28077. choke me!!
  28078. #else
  28079. char zPath[PATH_MAX+1];
  28080. #endif
  28081. char *pz = realpath(argv[0], zPath);
  28082. return (pz == zPath) ? 0 : 1;
  28083. }
  28084. _ACEOF
  28085. rm -f conftest$ac_exeext
  28086. if { (ac_try="$ac_link"
  28087. case "(($ac_try" in
  28088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28089. *) ac_try_echo=$ac_try;;
  28090. esac
  28091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28092. (eval "$ac_link") 2>&5
  28093. ac_status=$?
  28094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28095. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28096. { (case "(($ac_try" in
  28097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28098. *) ac_try_echo=$ac_try;;
  28099. esac
  28100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28101. (eval "$ac_try") 2>&5
  28102. ac_status=$?
  28103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28104. (exit $ac_status); }; }; then
  28105. libopts_cv_run_realpath=yes
  28106. else
  28107. echo "$as_me: program exited with status $ac_status" >&5
  28108. echo "$as_me: failed program was:" >&5
  28109. sed 's/^/| /' conftest.$ac_ext >&5
  28110. ( exit $ac_status )
  28111. libopts_cv_run_realpath=no
  28112. fi
  28113. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28114. fi
  28115. # end of TRY_RUN
  28116. fi
  28117. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  28118. { echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  28119. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6; }
  28120. if test "X${libopts_cv_run_realpath}" != Xno
  28121. then
  28122. cat >>confdefs.h <<\_ACEOF
  28123. #define HAVE_REALPATH 1
  28124. _ACEOF
  28125. fi
  28126. # Check to see if strftime() works.
  28127. { echo "$as_me:$LINENO: checking whether strftime() works" >&5
  28128. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6; }
  28129. if test "${libopts_cv_run_strftime+set}" = set; then
  28130. echo $ECHO_N "(cached) $ECHO_C" >&6
  28131. else
  28132. if test "$cross_compiling" = yes; then
  28133. libopts_cv_run_strftime=no
  28134. else
  28135. cat >conftest.$ac_ext <<_ACEOF
  28136. /* confdefs.h. */
  28137. _ACEOF
  28138. cat confdefs.h >>conftest.$ac_ext
  28139. cat >>conftest.$ac_ext <<_ACEOF
  28140. /* end confdefs.h. */
  28141. #include <time.h>
  28142. #include <string.h>
  28143. char t_buf[ 64 ];
  28144. int main() {
  28145. static char const z[] = "Thursday Aug 28 240";
  28146. struct tm tm;
  28147. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  28148. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  28149. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  28150. tm.tm_mday = 28; /* day of the month [1, 31] */
  28151. tm.tm_mon = 7; /* months since January [0, 11] */
  28152. tm.tm_year = 86; /* years since 1900 */
  28153. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  28154. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  28155. tm.tm_isdst = 1; /* flag for daylight savings time */
  28156. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  28157. return (strcmp( t_buf, z ) != 0); }
  28158. _ACEOF
  28159. rm -f conftest$ac_exeext
  28160. if { (ac_try="$ac_link"
  28161. case "(($ac_try" in
  28162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28163. *) ac_try_echo=$ac_try;;
  28164. esac
  28165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28166. (eval "$ac_link") 2>&5
  28167. ac_status=$?
  28168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28169. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28170. { (case "(($ac_try" in
  28171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28172. *) ac_try_echo=$ac_try;;
  28173. esac
  28174. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28175. (eval "$ac_try") 2>&5
  28176. ac_status=$?
  28177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28178. (exit $ac_status); }; }; then
  28179. libopts_cv_run_strftime=yes
  28180. else
  28181. echo "$as_me: program exited with status $ac_status" >&5
  28182. echo "$as_me: failed program was:" >&5
  28183. sed 's/^/| /' conftest.$ac_ext >&5
  28184. ( exit $ac_status )
  28185. libopts_cv_run_strftime=no
  28186. fi
  28187. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28188. fi
  28189. # end of TRY_RUN
  28190. fi
  28191. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  28192. { echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  28193. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6; }
  28194. if test "X${libopts_cv_run_strftime}" != Xno
  28195. then
  28196. cat >>confdefs.h <<\_ACEOF
  28197. #define HAVE_STRFTIME 1
  28198. _ACEOF
  28199. fi
  28200. # Check to see if fopen accepts "b" mode.
  28201. { echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  28202. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6; }
  28203. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  28204. echo $ECHO_N "(cached) $ECHO_C" >&6
  28205. else
  28206. if test "$cross_compiling" = yes; then
  28207. libopts_cv_run_fopen_binary=no
  28208. else
  28209. cat >conftest.$ac_ext <<_ACEOF
  28210. /* confdefs.h. */
  28211. _ACEOF
  28212. cat confdefs.h >>conftest.$ac_ext
  28213. cat >>conftest.$ac_ext <<_ACEOF
  28214. /* end confdefs.h. */
  28215. #include <stdio.h>
  28216. int main (int argc, char** argv) {
  28217. FILE* fp = fopen("conftest.$ac_ext", "rb");
  28218. return (fp == NULL) ? 1 : fclose(fp); }
  28219. _ACEOF
  28220. rm -f conftest$ac_exeext
  28221. if { (ac_try="$ac_link"
  28222. case "(($ac_try" in
  28223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28224. *) ac_try_echo=$ac_try;;
  28225. esac
  28226. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28227. (eval "$ac_link") 2>&5
  28228. ac_status=$?
  28229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28230. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28231. { (case "(($ac_try" in
  28232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28233. *) ac_try_echo=$ac_try;;
  28234. esac
  28235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28236. (eval "$ac_try") 2>&5
  28237. ac_status=$?
  28238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28239. (exit $ac_status); }; }; then
  28240. libopts_cv_run_fopen_binary=yes
  28241. else
  28242. echo "$as_me: program exited with status $ac_status" >&5
  28243. echo "$as_me: failed program was:" >&5
  28244. sed 's/^/| /' conftest.$ac_ext >&5
  28245. ( exit $ac_status )
  28246. libopts_cv_run_fopen_binary=no
  28247. fi
  28248. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28249. fi
  28250. # end of TRY_RUN
  28251. fi
  28252. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  28253. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  28254. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6; }
  28255. if test "X${libopts_cv_run_fopen_binary}" != Xno
  28256. then
  28257. cat >>confdefs.h <<\_ACEOF
  28258. #define FOPEN_BINARY_FLAG "b"
  28259. _ACEOF
  28260. else
  28261. cat >>confdefs.h <<\_ACEOF
  28262. #define FOPEN_BINARY_FLAG ""
  28263. _ACEOF
  28264. fi
  28265. # Check to see if fopen accepts "t" mode.
  28266. { echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  28267. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6; }
  28268. if test "${libopts_cv_run_fopen_text+set}" = set; then
  28269. echo $ECHO_N "(cached) $ECHO_C" >&6
  28270. else
  28271. if test "$cross_compiling" = yes; then
  28272. libopts_cv_run_fopen_text=no
  28273. else
  28274. cat >conftest.$ac_ext <<_ACEOF
  28275. /* confdefs.h. */
  28276. _ACEOF
  28277. cat confdefs.h >>conftest.$ac_ext
  28278. cat >>conftest.$ac_ext <<_ACEOF
  28279. /* end confdefs.h. */
  28280. #include <stdio.h>
  28281. int main (int argc, char** argv) {
  28282. FILE* fp = fopen("conftest.$ac_ext", "rt");
  28283. return (fp == NULL) ? 1 : fclose(fp); }
  28284. _ACEOF
  28285. rm -f conftest$ac_exeext
  28286. if { (ac_try="$ac_link"
  28287. case "(($ac_try" in
  28288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28289. *) ac_try_echo=$ac_try;;
  28290. esac
  28291. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28292. (eval "$ac_link") 2>&5
  28293. ac_status=$?
  28294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28295. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28296. { (case "(($ac_try" in
  28297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28298. *) ac_try_echo=$ac_try;;
  28299. esac
  28300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28301. (eval "$ac_try") 2>&5
  28302. ac_status=$?
  28303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28304. (exit $ac_status); }; }; then
  28305. libopts_cv_run_fopen_text=yes
  28306. else
  28307. echo "$as_me: program exited with status $ac_status" >&5
  28308. echo "$as_me: failed program was:" >&5
  28309. sed 's/^/| /' conftest.$ac_ext >&5
  28310. ( exit $ac_status )
  28311. libopts_cv_run_fopen_text=no
  28312. fi
  28313. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28314. fi
  28315. # end of TRY_RUN
  28316. fi
  28317. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  28318. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  28319. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6; }
  28320. if test "X${libopts_cv_run_fopen_text}" != Xno
  28321. then
  28322. cat >>confdefs.h <<\_ACEOF
  28323. #define FOPEN_TEXT_FLAG "t"
  28324. _ACEOF
  28325. else
  28326. cat >>confdefs.h <<\_ACEOF
  28327. #define FOPEN_TEXT_FLAG ""
  28328. _ACEOF
  28329. fi
  28330. # Check to see if not wanting optional option args.
  28331. # Check whether --enable-optional-args was given.
  28332. if test "${enable_optional_args+set}" = set; then
  28333. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  28334. else
  28335. { echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
  28336. echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6; }
  28337. if test "${libopts_cv_enable_optional_args+set}" = set; then
  28338. echo $ECHO_N "(cached) $ECHO_C" >&6
  28339. else
  28340. libopts_cv_enable_optional_args=yes
  28341. fi
  28342. { echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
  28343. echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6; }
  28344. fi
  28345. # end of AC_ARG_ENABLE
  28346. if test "X${libopts_cv_enable_optional_args}" = Xno
  28347. then
  28348. cat >>confdefs.h <<\_ACEOF
  28349. #define NO_OPTIONAL_OPT_ARGS 1
  28350. _ACEOF
  28351. fi
  28352. else
  28353. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  28354. # =================
  28355. # AC_HEADER_STDC
  28356. # =================
  28357. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  28358. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  28359. if test "${ac_cv_header_stdc+set}" = set; then
  28360. echo $ECHO_N "(cached) $ECHO_C" >&6
  28361. else
  28362. cat >conftest.$ac_ext <<_ACEOF
  28363. /* confdefs.h. */
  28364. _ACEOF
  28365. cat confdefs.h >>conftest.$ac_ext
  28366. cat >>conftest.$ac_ext <<_ACEOF
  28367. /* end confdefs.h. */
  28368. #include <stdlib.h>
  28369. #include <stdarg.h>
  28370. #include <string.h>
  28371. #include <float.h>
  28372. int
  28373. main ()
  28374. {
  28375. ;
  28376. return 0;
  28377. }
  28378. _ACEOF
  28379. rm -f conftest.$ac_objext
  28380. if { (ac_try="$ac_compile"
  28381. case "(($ac_try" in
  28382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28383. *) ac_try_echo=$ac_try;;
  28384. esac
  28385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28386. (eval "$ac_compile") 2>conftest.er1
  28387. ac_status=$?
  28388. grep -v '^ *+' conftest.er1 >conftest.err
  28389. rm -f conftest.er1
  28390. cat conftest.err >&5
  28391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28392. (exit $ac_status); } && {
  28393. test -z "$ac_c_werror_flag" ||
  28394. test ! -s conftest.err
  28395. } && test -s conftest.$ac_objext; then
  28396. ac_cv_header_stdc=yes
  28397. else
  28398. echo "$as_me: failed program was:" >&5
  28399. sed 's/^/| /' conftest.$ac_ext >&5
  28400. ac_cv_header_stdc=no
  28401. fi
  28402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28403. if test $ac_cv_header_stdc = yes; then
  28404. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  28405. cat >conftest.$ac_ext <<_ACEOF
  28406. /* confdefs.h. */
  28407. _ACEOF
  28408. cat confdefs.h >>conftest.$ac_ext
  28409. cat >>conftest.$ac_ext <<_ACEOF
  28410. /* end confdefs.h. */
  28411. #include <string.h>
  28412. _ACEOF
  28413. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28414. $EGREP "memchr" >/dev/null 2>&1; then
  28415. :
  28416. else
  28417. ac_cv_header_stdc=no
  28418. fi
  28419. rm -f conftest*
  28420. fi
  28421. if test $ac_cv_header_stdc = yes; then
  28422. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  28423. cat >conftest.$ac_ext <<_ACEOF
  28424. /* confdefs.h. */
  28425. _ACEOF
  28426. cat confdefs.h >>conftest.$ac_ext
  28427. cat >>conftest.$ac_ext <<_ACEOF
  28428. /* end confdefs.h. */
  28429. #include <stdlib.h>
  28430. _ACEOF
  28431. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28432. $EGREP "free" >/dev/null 2>&1; then
  28433. :
  28434. else
  28435. ac_cv_header_stdc=no
  28436. fi
  28437. rm -f conftest*
  28438. fi
  28439. if test $ac_cv_header_stdc = yes; then
  28440. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  28441. if test "$cross_compiling" = yes; then
  28442. :
  28443. else
  28444. cat >conftest.$ac_ext <<_ACEOF
  28445. /* confdefs.h. */
  28446. _ACEOF
  28447. cat confdefs.h >>conftest.$ac_ext
  28448. cat >>conftest.$ac_ext <<_ACEOF
  28449. /* end confdefs.h. */
  28450. #include <ctype.h>
  28451. #include <stdlib.h>
  28452. #if ((' ' & 0x0FF) == 0x020)
  28453. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  28454. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  28455. #else
  28456. # define ISLOWER(c) \
  28457. (('a' <= (c) && (c) <= 'i') \
  28458. || ('j' <= (c) && (c) <= 'r') \
  28459. || ('s' <= (c) && (c) <= 'z'))
  28460. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  28461. #endif
  28462. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  28463. int
  28464. main ()
  28465. {
  28466. int i;
  28467. for (i = 0; i < 256; i++)
  28468. if (XOR (islower (i), ISLOWER (i))
  28469. || toupper (i) != TOUPPER (i))
  28470. return 2;
  28471. return 0;
  28472. }
  28473. _ACEOF
  28474. rm -f conftest$ac_exeext
  28475. if { (ac_try="$ac_link"
  28476. case "(($ac_try" in
  28477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28478. *) ac_try_echo=$ac_try;;
  28479. esac
  28480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28481. (eval "$ac_link") 2>&5
  28482. ac_status=$?
  28483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28485. { (case "(($ac_try" in
  28486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28487. *) ac_try_echo=$ac_try;;
  28488. esac
  28489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28490. (eval "$ac_try") 2>&5
  28491. ac_status=$?
  28492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28493. (exit $ac_status); }; }; then
  28494. :
  28495. else
  28496. echo "$as_me: program exited with status $ac_status" >&5
  28497. echo "$as_me: failed program was:" >&5
  28498. sed 's/^/| /' conftest.$ac_ext >&5
  28499. ( exit $ac_status )
  28500. ac_cv_header_stdc=no
  28501. fi
  28502. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28503. fi
  28504. fi
  28505. fi
  28506. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  28507. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  28508. if test $ac_cv_header_stdc = yes; then
  28509. cat >>confdefs.h <<\_ACEOF
  28510. #define STDC_HEADERS 1
  28511. _ACEOF
  28512. fi
  28513. # =================
  28514. # AC_HEADER_DIRENT
  28515. # =================
  28516. ac_header_dirent=no
  28517. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  28518. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  28519. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  28520. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  28521. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28522. echo $ECHO_N "(cached) $ECHO_C" >&6
  28523. else
  28524. cat >conftest.$ac_ext <<_ACEOF
  28525. /* confdefs.h. */
  28526. _ACEOF
  28527. cat confdefs.h >>conftest.$ac_ext
  28528. cat >>conftest.$ac_ext <<_ACEOF
  28529. /* end confdefs.h. */
  28530. #include <sys/types.h>
  28531. #include <$ac_hdr>
  28532. int
  28533. main ()
  28534. {
  28535. if ((DIR *) 0)
  28536. return 0;
  28537. ;
  28538. return 0;
  28539. }
  28540. _ACEOF
  28541. rm -f conftest.$ac_objext
  28542. if { (ac_try="$ac_compile"
  28543. case "(($ac_try" in
  28544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28545. *) ac_try_echo=$ac_try;;
  28546. esac
  28547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28548. (eval "$ac_compile") 2>conftest.er1
  28549. ac_status=$?
  28550. grep -v '^ *+' conftest.er1 >conftest.err
  28551. rm -f conftest.er1
  28552. cat conftest.err >&5
  28553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28554. (exit $ac_status); } && {
  28555. test -z "$ac_c_werror_flag" ||
  28556. test ! -s conftest.err
  28557. } && test -s conftest.$ac_objext; then
  28558. eval "$as_ac_Header=yes"
  28559. else
  28560. echo "$as_me: failed program was:" >&5
  28561. sed 's/^/| /' conftest.$ac_ext >&5
  28562. eval "$as_ac_Header=no"
  28563. fi
  28564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28565. fi
  28566. ac_res=`eval echo '${'$as_ac_Header'}'`
  28567. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28568. echo "${ECHO_T}$ac_res" >&6; }
  28569. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28570. cat >>confdefs.h <<_ACEOF
  28571. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  28572. _ACEOF
  28573. ac_header_dirent=$ac_hdr; break
  28574. fi
  28575. done
  28576. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  28577. if test $ac_header_dirent = dirent.h; then
  28578. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28579. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28580. if test "${ac_cv_search_opendir+set}" = set; then
  28581. echo $ECHO_N "(cached) $ECHO_C" >&6
  28582. else
  28583. ac_func_search_save_LIBS=$LIBS
  28584. cat >conftest.$ac_ext <<_ACEOF
  28585. /* confdefs.h. */
  28586. _ACEOF
  28587. cat confdefs.h >>conftest.$ac_ext
  28588. cat >>conftest.$ac_ext <<_ACEOF
  28589. /* end confdefs.h. */
  28590. /* Override any GCC internal prototype to avoid an error.
  28591. Use char because int might match the return type of a GCC
  28592. builtin and then its argument prototype would still apply. */
  28593. #ifdef __cplusplus
  28594. extern "C"
  28595. #endif
  28596. char opendir ();
  28597. int
  28598. main ()
  28599. {
  28600. return opendir ();
  28601. ;
  28602. return 0;
  28603. }
  28604. _ACEOF
  28605. for ac_lib in '' dir; do
  28606. if test -z "$ac_lib"; then
  28607. ac_res="none required"
  28608. else
  28609. ac_res=-l$ac_lib
  28610. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28611. fi
  28612. rm -f conftest.$ac_objext conftest$ac_exeext
  28613. if { (ac_try="$ac_link"
  28614. case "(($ac_try" in
  28615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28616. *) ac_try_echo=$ac_try;;
  28617. esac
  28618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28619. (eval "$ac_link") 2>conftest.er1
  28620. ac_status=$?
  28621. grep -v '^ *+' conftest.er1 >conftest.err
  28622. rm -f conftest.er1
  28623. cat conftest.err >&5
  28624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28625. (exit $ac_status); } && {
  28626. test -z "$ac_c_werror_flag" ||
  28627. test ! -s conftest.err
  28628. } && test -s conftest$ac_exeext &&
  28629. $as_test_x conftest$ac_exeext; then
  28630. ac_cv_search_opendir=$ac_res
  28631. else
  28632. echo "$as_me: failed program was:" >&5
  28633. sed 's/^/| /' conftest.$ac_ext >&5
  28634. fi
  28635. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28636. conftest$ac_exeext
  28637. if test "${ac_cv_search_opendir+set}" = set; then
  28638. break
  28639. fi
  28640. done
  28641. if test "${ac_cv_search_opendir+set}" = set; then
  28642. :
  28643. else
  28644. ac_cv_search_opendir=no
  28645. fi
  28646. rm conftest.$ac_ext
  28647. LIBS=$ac_func_search_save_LIBS
  28648. fi
  28649. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28650. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28651. ac_res=$ac_cv_search_opendir
  28652. if test "$ac_res" != no; then
  28653. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28654. fi
  28655. else
  28656. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28657. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28658. if test "${ac_cv_search_opendir+set}" = set; then
  28659. echo $ECHO_N "(cached) $ECHO_C" >&6
  28660. else
  28661. ac_func_search_save_LIBS=$LIBS
  28662. cat >conftest.$ac_ext <<_ACEOF
  28663. /* confdefs.h. */
  28664. _ACEOF
  28665. cat confdefs.h >>conftest.$ac_ext
  28666. cat >>conftest.$ac_ext <<_ACEOF
  28667. /* end confdefs.h. */
  28668. /* Override any GCC internal prototype to avoid an error.
  28669. Use char because int might match the return type of a GCC
  28670. builtin and then its argument prototype would still apply. */
  28671. #ifdef __cplusplus
  28672. extern "C"
  28673. #endif
  28674. char opendir ();
  28675. int
  28676. main ()
  28677. {
  28678. return opendir ();
  28679. ;
  28680. return 0;
  28681. }
  28682. _ACEOF
  28683. for ac_lib in '' x; do
  28684. if test -z "$ac_lib"; then
  28685. ac_res="none required"
  28686. else
  28687. ac_res=-l$ac_lib
  28688. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28689. fi
  28690. rm -f conftest.$ac_objext conftest$ac_exeext
  28691. if { (ac_try="$ac_link"
  28692. case "(($ac_try" in
  28693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28694. *) ac_try_echo=$ac_try;;
  28695. esac
  28696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28697. (eval "$ac_link") 2>conftest.er1
  28698. ac_status=$?
  28699. grep -v '^ *+' conftest.er1 >conftest.err
  28700. rm -f conftest.er1
  28701. cat conftest.err >&5
  28702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28703. (exit $ac_status); } && {
  28704. test -z "$ac_c_werror_flag" ||
  28705. test ! -s conftest.err
  28706. } && test -s conftest$ac_exeext &&
  28707. $as_test_x conftest$ac_exeext; then
  28708. ac_cv_search_opendir=$ac_res
  28709. else
  28710. echo "$as_me: failed program was:" >&5
  28711. sed 's/^/| /' conftest.$ac_ext >&5
  28712. fi
  28713. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28714. conftest$ac_exeext
  28715. if test "${ac_cv_search_opendir+set}" = set; then
  28716. break
  28717. fi
  28718. done
  28719. if test "${ac_cv_search_opendir+set}" = set; then
  28720. :
  28721. else
  28722. ac_cv_search_opendir=no
  28723. fi
  28724. rm conftest.$ac_ext
  28725. LIBS=$ac_func_search_save_LIBS
  28726. fi
  28727. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28728. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28729. ac_res=$ac_cv_search_opendir
  28730. if test "$ac_res" != no; then
  28731. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28732. fi
  28733. fi
  28734. # =================
  28735. # AC_CHECK_HEADERS
  28736. # =================
  28737. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  28738. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  28739. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  28740. utime.h sysexits.h
  28741. do
  28742. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28743. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28744. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28745. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28746. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28747. echo $ECHO_N "(cached) $ECHO_C" >&6
  28748. fi
  28749. ac_res=`eval echo '${'$as_ac_Header'}'`
  28750. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28751. echo "${ECHO_T}$ac_res" >&6; }
  28752. else
  28753. # Is the header compilable?
  28754. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28755. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28756. cat >conftest.$ac_ext <<_ACEOF
  28757. /* confdefs.h. */
  28758. _ACEOF
  28759. cat confdefs.h >>conftest.$ac_ext
  28760. cat >>conftest.$ac_ext <<_ACEOF
  28761. /* end confdefs.h. */
  28762. $ac_includes_default
  28763. #include <$ac_header>
  28764. _ACEOF
  28765. rm -f conftest.$ac_objext
  28766. if { (ac_try="$ac_compile"
  28767. case "(($ac_try" in
  28768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28769. *) ac_try_echo=$ac_try;;
  28770. esac
  28771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28772. (eval "$ac_compile") 2>conftest.er1
  28773. ac_status=$?
  28774. grep -v '^ *+' conftest.er1 >conftest.err
  28775. rm -f conftest.er1
  28776. cat conftest.err >&5
  28777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28778. (exit $ac_status); } && {
  28779. test -z "$ac_c_werror_flag" ||
  28780. test ! -s conftest.err
  28781. } && test -s conftest.$ac_objext; then
  28782. ac_header_compiler=yes
  28783. else
  28784. echo "$as_me: failed program was:" >&5
  28785. sed 's/^/| /' conftest.$ac_ext >&5
  28786. ac_header_compiler=no
  28787. fi
  28788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28789. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28790. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28791. # Is the header present?
  28792. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28793. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28794. cat >conftest.$ac_ext <<_ACEOF
  28795. /* confdefs.h. */
  28796. _ACEOF
  28797. cat confdefs.h >>conftest.$ac_ext
  28798. cat >>conftest.$ac_ext <<_ACEOF
  28799. /* end confdefs.h. */
  28800. #include <$ac_header>
  28801. _ACEOF
  28802. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28803. case "(($ac_try" in
  28804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28805. *) ac_try_echo=$ac_try;;
  28806. esac
  28807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28808. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28809. ac_status=$?
  28810. grep -v '^ *+' conftest.er1 >conftest.err
  28811. rm -f conftest.er1
  28812. cat conftest.err >&5
  28813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28814. (exit $ac_status); } >/dev/null && {
  28815. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28816. test ! -s conftest.err
  28817. }; then
  28818. ac_header_preproc=yes
  28819. else
  28820. echo "$as_me: failed program was:" >&5
  28821. sed 's/^/| /' conftest.$ac_ext >&5
  28822. ac_header_preproc=no
  28823. fi
  28824. rm -f conftest.err conftest.$ac_ext
  28825. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28826. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28827. # So? What about this header?
  28828. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28829. yes:no: )
  28830. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28831. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28832. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28833. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28834. ac_header_preproc=yes
  28835. ;;
  28836. no:yes:* )
  28837. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28838. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28839. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28840. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28841. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28842. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28843. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28844. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28845. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28846. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28847. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28848. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28849. ;;
  28850. esac
  28851. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28852. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28853. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28854. echo $ECHO_N "(cached) $ECHO_C" >&6
  28855. else
  28856. eval "$as_ac_Header=\$ac_header_preproc"
  28857. fi
  28858. ac_res=`eval echo '${'$as_ac_Header'}'`
  28859. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28860. echo "${ECHO_T}$ac_res" >&6; }
  28861. fi
  28862. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28863. cat >>confdefs.h <<_ACEOF
  28864. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28865. _ACEOF
  28866. fi
  28867. done
  28868. # --------------------------------------------
  28869. # Verify certain entries from AC_CHECK_HEADERS
  28870. # --------------------------------------------
  28871. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  28872. string errno stdlib memory setjmp
  28873. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  28874. test "${as_ac_var}" = set || \
  28875. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  28876. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  28877. { (exit 1); exit 1; }; }
  28878. done
  28879. # ================================================
  28880. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  28881. # if varargs.h is present define HAVE_VARARGS_H.
  28882. # ================================================
  28883. for ac_header in stdarg.h varargs.h
  28884. do
  28885. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28886. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28887. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28888. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28889. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28890. echo $ECHO_N "(cached) $ECHO_C" >&6
  28891. fi
  28892. ac_res=`eval echo '${'$as_ac_Header'}'`
  28893. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28894. echo "${ECHO_T}$ac_res" >&6; }
  28895. else
  28896. # Is the header compilable?
  28897. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28898. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28899. cat >conftest.$ac_ext <<_ACEOF
  28900. /* confdefs.h. */
  28901. _ACEOF
  28902. cat confdefs.h >>conftest.$ac_ext
  28903. cat >>conftest.$ac_ext <<_ACEOF
  28904. /* end confdefs.h. */
  28905. $ac_includes_default
  28906. #include <$ac_header>
  28907. _ACEOF
  28908. rm -f conftest.$ac_objext
  28909. if { (ac_try="$ac_compile"
  28910. case "(($ac_try" in
  28911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28912. *) ac_try_echo=$ac_try;;
  28913. esac
  28914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28915. (eval "$ac_compile") 2>conftest.er1
  28916. ac_status=$?
  28917. grep -v '^ *+' conftest.er1 >conftest.err
  28918. rm -f conftest.er1
  28919. cat conftest.err >&5
  28920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28921. (exit $ac_status); } && {
  28922. test -z "$ac_c_werror_flag" ||
  28923. test ! -s conftest.err
  28924. } && test -s conftest.$ac_objext; then
  28925. ac_header_compiler=yes
  28926. else
  28927. echo "$as_me: failed program was:" >&5
  28928. sed 's/^/| /' conftest.$ac_ext >&5
  28929. ac_header_compiler=no
  28930. fi
  28931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28932. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28933. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28934. # Is the header present?
  28935. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28936. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28937. cat >conftest.$ac_ext <<_ACEOF
  28938. /* confdefs.h. */
  28939. _ACEOF
  28940. cat confdefs.h >>conftest.$ac_ext
  28941. cat >>conftest.$ac_ext <<_ACEOF
  28942. /* end confdefs.h. */
  28943. #include <$ac_header>
  28944. _ACEOF
  28945. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28946. case "(($ac_try" in
  28947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28948. *) ac_try_echo=$ac_try;;
  28949. esac
  28950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28951. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28952. ac_status=$?
  28953. grep -v '^ *+' conftest.er1 >conftest.err
  28954. rm -f conftest.er1
  28955. cat conftest.err >&5
  28956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28957. (exit $ac_status); } >/dev/null && {
  28958. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28959. test ! -s conftest.err
  28960. }; then
  28961. ac_header_preproc=yes
  28962. else
  28963. echo "$as_me: failed program was:" >&5
  28964. sed 's/^/| /' conftest.$ac_ext >&5
  28965. ac_header_preproc=no
  28966. fi
  28967. rm -f conftest.err conftest.$ac_ext
  28968. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28969. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28970. # So? What about this header?
  28971. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28972. yes:no: )
  28973. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28974. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28975. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28976. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28977. ac_header_preproc=yes
  28978. ;;
  28979. no:yes:* )
  28980. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28981. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28982. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28983. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28984. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28985. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28986. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28987. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28988. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28989. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28990. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28991. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28992. ;;
  28993. esac
  28994. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28995. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28996. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28997. echo $ECHO_N "(cached) $ECHO_C" >&6
  28998. else
  28999. eval "$as_ac_Header=\$ac_header_preproc"
  29000. fi
  29001. ac_res=`eval echo '${'$as_ac_Header'}'`
  29002. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29003. echo "${ECHO_T}$ac_res" >&6; }
  29004. fi
  29005. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29006. cat >>confdefs.h <<_ACEOF
  29007. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29008. _ACEOF
  29009. break
  29010. fi
  29011. done
  29012. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29013. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  29014. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  29015. { (exit 1); exit 1; }; }
  29016. fi
  29017. # ================================================
  29018. # Similarly for the string.h and strings.h headers
  29019. # ================================================
  29020. for ac_header in string.h strings.h
  29021. do
  29022. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29023. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29024. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29025. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29026. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29027. echo $ECHO_N "(cached) $ECHO_C" >&6
  29028. fi
  29029. ac_res=`eval echo '${'$as_ac_Header'}'`
  29030. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29031. echo "${ECHO_T}$ac_res" >&6; }
  29032. else
  29033. # Is the header compilable?
  29034. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29035. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29036. cat >conftest.$ac_ext <<_ACEOF
  29037. /* confdefs.h. */
  29038. _ACEOF
  29039. cat confdefs.h >>conftest.$ac_ext
  29040. cat >>conftest.$ac_ext <<_ACEOF
  29041. /* end confdefs.h. */
  29042. $ac_includes_default
  29043. #include <$ac_header>
  29044. _ACEOF
  29045. rm -f conftest.$ac_objext
  29046. if { (ac_try="$ac_compile"
  29047. case "(($ac_try" in
  29048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29049. *) ac_try_echo=$ac_try;;
  29050. esac
  29051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29052. (eval "$ac_compile") 2>conftest.er1
  29053. ac_status=$?
  29054. grep -v '^ *+' conftest.er1 >conftest.err
  29055. rm -f conftest.er1
  29056. cat conftest.err >&5
  29057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29058. (exit $ac_status); } && {
  29059. test -z "$ac_c_werror_flag" ||
  29060. test ! -s conftest.err
  29061. } && test -s conftest.$ac_objext; then
  29062. ac_header_compiler=yes
  29063. else
  29064. echo "$as_me: failed program was:" >&5
  29065. sed 's/^/| /' conftest.$ac_ext >&5
  29066. ac_header_compiler=no
  29067. fi
  29068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29069. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29070. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29071. # Is the header present?
  29072. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29073. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29074. cat >conftest.$ac_ext <<_ACEOF
  29075. /* confdefs.h. */
  29076. _ACEOF
  29077. cat confdefs.h >>conftest.$ac_ext
  29078. cat >>conftest.$ac_ext <<_ACEOF
  29079. /* end confdefs.h. */
  29080. #include <$ac_header>
  29081. _ACEOF
  29082. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29083. case "(($ac_try" in
  29084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29085. *) ac_try_echo=$ac_try;;
  29086. esac
  29087. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29088. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29089. ac_status=$?
  29090. grep -v '^ *+' conftest.er1 >conftest.err
  29091. rm -f conftest.er1
  29092. cat conftest.err >&5
  29093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29094. (exit $ac_status); } >/dev/null && {
  29095. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29096. test ! -s conftest.err
  29097. }; then
  29098. ac_header_preproc=yes
  29099. else
  29100. echo "$as_me: failed program was:" >&5
  29101. sed 's/^/| /' conftest.$ac_ext >&5
  29102. ac_header_preproc=no
  29103. fi
  29104. rm -f conftest.err conftest.$ac_ext
  29105. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29106. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29107. # So? What about this header?
  29108. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29109. yes:no: )
  29110. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29111. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29112. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29113. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29114. ac_header_preproc=yes
  29115. ;;
  29116. no:yes:* )
  29117. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29118. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29119. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29120. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29121. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29122. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29123. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29124. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29125. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29126. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29127. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29128. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29129. ;;
  29130. esac
  29131. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29132. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29133. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29134. echo $ECHO_N "(cached) $ECHO_C" >&6
  29135. else
  29136. eval "$as_ac_Header=\$ac_header_preproc"
  29137. fi
  29138. ac_res=`eval echo '${'$as_ac_Header'}'`
  29139. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29140. echo "${ECHO_T}$ac_res" >&6; }
  29141. fi
  29142. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29143. cat >>confdefs.h <<_ACEOF
  29144. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29145. _ACEOF
  29146. break
  29147. fi
  29148. done
  29149. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29150. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  29151. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  29152. { (exit 1); exit 1; }; }
  29153. fi
  29154. # =====================
  29155. # ...and limits headers
  29156. # =====================
  29157. for ac_header in limits.h sys/limits.h values.h
  29158. do
  29159. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29160. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29161. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29162. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29163. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29164. echo $ECHO_N "(cached) $ECHO_C" >&6
  29165. fi
  29166. ac_res=`eval echo '${'$as_ac_Header'}'`
  29167. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29168. echo "${ECHO_T}$ac_res" >&6; }
  29169. else
  29170. # Is the header compilable?
  29171. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29172. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29173. cat >conftest.$ac_ext <<_ACEOF
  29174. /* confdefs.h. */
  29175. _ACEOF
  29176. cat confdefs.h >>conftest.$ac_ext
  29177. cat >>conftest.$ac_ext <<_ACEOF
  29178. /* end confdefs.h. */
  29179. $ac_includes_default
  29180. #include <$ac_header>
  29181. _ACEOF
  29182. rm -f conftest.$ac_objext
  29183. if { (ac_try="$ac_compile"
  29184. case "(($ac_try" in
  29185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29186. *) ac_try_echo=$ac_try;;
  29187. esac
  29188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29189. (eval "$ac_compile") 2>conftest.er1
  29190. ac_status=$?
  29191. grep -v '^ *+' conftest.er1 >conftest.err
  29192. rm -f conftest.er1
  29193. cat conftest.err >&5
  29194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29195. (exit $ac_status); } && {
  29196. test -z "$ac_c_werror_flag" ||
  29197. test ! -s conftest.err
  29198. } && test -s conftest.$ac_objext; then
  29199. ac_header_compiler=yes
  29200. else
  29201. echo "$as_me: failed program was:" >&5
  29202. sed 's/^/| /' conftest.$ac_ext >&5
  29203. ac_header_compiler=no
  29204. fi
  29205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29206. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29207. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29208. # Is the header present?
  29209. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29210. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29211. cat >conftest.$ac_ext <<_ACEOF
  29212. /* confdefs.h. */
  29213. _ACEOF
  29214. cat confdefs.h >>conftest.$ac_ext
  29215. cat >>conftest.$ac_ext <<_ACEOF
  29216. /* end confdefs.h. */
  29217. #include <$ac_header>
  29218. _ACEOF
  29219. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29220. case "(($ac_try" in
  29221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29222. *) ac_try_echo=$ac_try;;
  29223. esac
  29224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29225. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29226. ac_status=$?
  29227. grep -v '^ *+' conftest.er1 >conftest.err
  29228. rm -f conftest.er1
  29229. cat conftest.err >&5
  29230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29231. (exit $ac_status); } >/dev/null && {
  29232. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29233. test ! -s conftest.err
  29234. }; then
  29235. ac_header_preproc=yes
  29236. else
  29237. echo "$as_me: failed program was:" >&5
  29238. sed 's/^/| /' conftest.$ac_ext >&5
  29239. ac_header_preproc=no
  29240. fi
  29241. rm -f conftest.err conftest.$ac_ext
  29242. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29243. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29244. # So? What about this header?
  29245. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29246. yes:no: )
  29247. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29248. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29249. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29250. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29251. ac_header_preproc=yes
  29252. ;;
  29253. no:yes:* )
  29254. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29255. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29256. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29257. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29258. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29259. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29260. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29261. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29262. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29263. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29264. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29265. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29266. ;;
  29267. esac
  29268. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29269. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29270. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29271. echo $ECHO_N "(cached) $ECHO_C" >&6
  29272. else
  29273. eval "$as_ac_Header=\$ac_header_preproc"
  29274. fi
  29275. ac_res=`eval echo '${'$as_ac_Header'}'`
  29276. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29277. echo "${ECHO_T}$ac_res" >&6; }
  29278. fi
  29279. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29280. cat >>confdefs.h <<_ACEOF
  29281. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29282. _ACEOF
  29283. break
  29284. fi
  29285. done
  29286. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29287. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  29288. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  29289. { (exit 1); exit 1; }; }
  29290. fi
  29291. # ========================
  29292. # ...and int types headers
  29293. # ========================
  29294. for ac_header in stdint.h inttypes.h
  29295. do
  29296. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29297. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29298. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29300. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29301. echo $ECHO_N "(cached) $ECHO_C" >&6
  29302. fi
  29303. ac_res=`eval echo '${'$as_ac_Header'}'`
  29304. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29305. echo "${ECHO_T}$ac_res" >&6; }
  29306. else
  29307. # Is the header compilable?
  29308. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29309. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29310. cat >conftest.$ac_ext <<_ACEOF
  29311. /* confdefs.h. */
  29312. _ACEOF
  29313. cat confdefs.h >>conftest.$ac_ext
  29314. cat >>conftest.$ac_ext <<_ACEOF
  29315. /* end confdefs.h. */
  29316. $ac_includes_default
  29317. #include <$ac_header>
  29318. _ACEOF
  29319. rm -f conftest.$ac_objext
  29320. if { (ac_try="$ac_compile"
  29321. case "(($ac_try" in
  29322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29323. *) ac_try_echo=$ac_try;;
  29324. esac
  29325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29326. (eval "$ac_compile") 2>conftest.er1
  29327. ac_status=$?
  29328. grep -v '^ *+' conftest.er1 >conftest.err
  29329. rm -f conftest.er1
  29330. cat conftest.err >&5
  29331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29332. (exit $ac_status); } && {
  29333. test -z "$ac_c_werror_flag" ||
  29334. test ! -s conftest.err
  29335. } && test -s conftest.$ac_objext; then
  29336. ac_header_compiler=yes
  29337. else
  29338. echo "$as_me: failed program was:" >&5
  29339. sed 's/^/| /' conftest.$ac_ext >&5
  29340. ac_header_compiler=no
  29341. fi
  29342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29343. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29344. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29345. # Is the header present?
  29346. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29347. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29348. cat >conftest.$ac_ext <<_ACEOF
  29349. /* confdefs.h. */
  29350. _ACEOF
  29351. cat confdefs.h >>conftest.$ac_ext
  29352. cat >>conftest.$ac_ext <<_ACEOF
  29353. /* end confdefs.h. */
  29354. #include <$ac_header>
  29355. _ACEOF
  29356. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29357. case "(($ac_try" in
  29358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29359. *) ac_try_echo=$ac_try;;
  29360. esac
  29361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29362. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29363. ac_status=$?
  29364. grep -v '^ *+' conftest.er1 >conftest.err
  29365. rm -f conftest.er1
  29366. cat conftest.err >&5
  29367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29368. (exit $ac_status); } >/dev/null && {
  29369. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29370. test ! -s conftest.err
  29371. }; then
  29372. ac_header_preproc=yes
  29373. else
  29374. echo "$as_me: failed program was:" >&5
  29375. sed 's/^/| /' conftest.$ac_ext >&5
  29376. ac_header_preproc=no
  29377. fi
  29378. rm -f conftest.err conftest.$ac_ext
  29379. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29380. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29381. # So? What about this header?
  29382. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29383. yes:no: )
  29384. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29385. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29386. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29387. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29388. ac_header_preproc=yes
  29389. ;;
  29390. no:yes:* )
  29391. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29392. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29393. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29394. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29395. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29396. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29397. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29398. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29399. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29400. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29401. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29402. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29403. ;;
  29404. esac
  29405. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29406. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29407. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29408. echo $ECHO_N "(cached) $ECHO_C" >&6
  29409. else
  29410. eval "$as_ac_Header=\$ac_header_preproc"
  29411. fi
  29412. ac_res=`eval echo '${'$as_ac_Header'}'`
  29413. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29414. echo "${ECHO_T}$ac_res" >&6; }
  29415. fi
  29416. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29417. cat >>confdefs.h <<_ACEOF
  29418. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29419. _ACEOF
  29420. break
  29421. fi
  29422. done
  29423. { echo "$as_me:$LINENO: checking for int8_t" >&5
  29424. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  29425. if test "${ac_cv_type_int8_t+set}" = set; then
  29426. echo $ECHO_N "(cached) $ECHO_C" >&6
  29427. else
  29428. cat >conftest.$ac_ext <<_ACEOF
  29429. /* confdefs.h. */
  29430. _ACEOF
  29431. cat confdefs.h >>conftest.$ac_ext
  29432. cat >>conftest.$ac_ext <<_ACEOF
  29433. /* end confdefs.h. */
  29434. $ac_includes_default
  29435. typedef int8_t ac__type_new_;
  29436. int
  29437. main ()
  29438. {
  29439. if ((ac__type_new_ *) 0)
  29440. return 0;
  29441. if (sizeof (ac__type_new_))
  29442. return 0;
  29443. ;
  29444. return 0;
  29445. }
  29446. _ACEOF
  29447. rm -f conftest.$ac_objext
  29448. if { (ac_try="$ac_compile"
  29449. case "(($ac_try" in
  29450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29451. *) ac_try_echo=$ac_try;;
  29452. esac
  29453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29454. (eval "$ac_compile") 2>conftest.er1
  29455. ac_status=$?
  29456. grep -v '^ *+' conftest.er1 >conftest.err
  29457. rm -f conftest.er1
  29458. cat conftest.err >&5
  29459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29460. (exit $ac_status); } && {
  29461. test -z "$ac_c_werror_flag" ||
  29462. test ! -s conftest.err
  29463. } && test -s conftest.$ac_objext; then
  29464. ac_cv_type_int8_t=yes
  29465. else
  29466. echo "$as_me: failed program was:" >&5
  29467. sed 's/^/| /' conftest.$ac_ext >&5
  29468. ac_cv_type_int8_t=no
  29469. fi
  29470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29471. fi
  29472. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  29473. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  29474. if test $ac_cv_type_int8_t = yes; then
  29475. cat >>confdefs.h <<_ACEOF
  29476. #define HAVE_INT8_T 1
  29477. _ACEOF
  29478. fi
  29479. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  29480. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  29481. if test "${ac_cv_type_uint8_t+set}" = set; then
  29482. echo $ECHO_N "(cached) $ECHO_C" >&6
  29483. else
  29484. cat >conftest.$ac_ext <<_ACEOF
  29485. /* confdefs.h. */
  29486. _ACEOF
  29487. cat confdefs.h >>conftest.$ac_ext
  29488. cat >>conftest.$ac_ext <<_ACEOF
  29489. /* end confdefs.h. */
  29490. $ac_includes_default
  29491. typedef uint8_t ac__type_new_;
  29492. int
  29493. main ()
  29494. {
  29495. if ((ac__type_new_ *) 0)
  29496. return 0;
  29497. if (sizeof (ac__type_new_))
  29498. return 0;
  29499. ;
  29500. return 0;
  29501. }
  29502. _ACEOF
  29503. rm -f conftest.$ac_objext
  29504. if { (ac_try="$ac_compile"
  29505. case "(($ac_try" in
  29506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29507. *) ac_try_echo=$ac_try;;
  29508. esac
  29509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29510. (eval "$ac_compile") 2>conftest.er1
  29511. ac_status=$?
  29512. grep -v '^ *+' conftest.er1 >conftest.err
  29513. rm -f conftest.er1
  29514. cat conftest.err >&5
  29515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29516. (exit $ac_status); } && {
  29517. test -z "$ac_c_werror_flag" ||
  29518. test ! -s conftest.err
  29519. } && test -s conftest.$ac_objext; then
  29520. ac_cv_type_uint8_t=yes
  29521. else
  29522. echo "$as_me: failed program was:" >&5
  29523. sed 's/^/| /' conftest.$ac_ext >&5
  29524. ac_cv_type_uint8_t=no
  29525. fi
  29526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29527. fi
  29528. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  29529. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  29530. if test $ac_cv_type_uint8_t = yes; then
  29531. cat >>confdefs.h <<_ACEOF
  29532. #define HAVE_UINT8_T 1
  29533. _ACEOF
  29534. fi
  29535. { echo "$as_me:$LINENO: checking for int16_t" >&5
  29536. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  29537. if test "${ac_cv_type_int16_t+set}" = set; then
  29538. echo $ECHO_N "(cached) $ECHO_C" >&6
  29539. else
  29540. cat >conftest.$ac_ext <<_ACEOF
  29541. /* confdefs.h. */
  29542. _ACEOF
  29543. cat confdefs.h >>conftest.$ac_ext
  29544. cat >>conftest.$ac_ext <<_ACEOF
  29545. /* end confdefs.h. */
  29546. $ac_includes_default
  29547. typedef int16_t ac__type_new_;
  29548. int
  29549. main ()
  29550. {
  29551. if ((ac__type_new_ *) 0)
  29552. return 0;
  29553. if (sizeof (ac__type_new_))
  29554. return 0;
  29555. ;
  29556. return 0;
  29557. }
  29558. _ACEOF
  29559. rm -f conftest.$ac_objext
  29560. if { (ac_try="$ac_compile"
  29561. case "(($ac_try" in
  29562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29563. *) ac_try_echo=$ac_try;;
  29564. esac
  29565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29566. (eval "$ac_compile") 2>conftest.er1
  29567. ac_status=$?
  29568. grep -v '^ *+' conftest.er1 >conftest.err
  29569. rm -f conftest.er1
  29570. cat conftest.err >&5
  29571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29572. (exit $ac_status); } && {
  29573. test -z "$ac_c_werror_flag" ||
  29574. test ! -s conftest.err
  29575. } && test -s conftest.$ac_objext; then
  29576. ac_cv_type_int16_t=yes
  29577. else
  29578. echo "$as_me: failed program was:" >&5
  29579. sed 's/^/| /' conftest.$ac_ext >&5
  29580. ac_cv_type_int16_t=no
  29581. fi
  29582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29583. fi
  29584. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  29585. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  29586. if test $ac_cv_type_int16_t = yes; then
  29587. cat >>confdefs.h <<_ACEOF
  29588. #define HAVE_INT16_T 1
  29589. _ACEOF
  29590. fi
  29591. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  29592. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  29593. if test "${ac_cv_type_uint16_t+set}" = set; then
  29594. echo $ECHO_N "(cached) $ECHO_C" >&6
  29595. else
  29596. cat >conftest.$ac_ext <<_ACEOF
  29597. /* confdefs.h. */
  29598. _ACEOF
  29599. cat confdefs.h >>conftest.$ac_ext
  29600. cat >>conftest.$ac_ext <<_ACEOF
  29601. /* end confdefs.h. */
  29602. $ac_includes_default
  29603. typedef uint16_t ac__type_new_;
  29604. int
  29605. main ()
  29606. {
  29607. if ((ac__type_new_ *) 0)
  29608. return 0;
  29609. if (sizeof (ac__type_new_))
  29610. return 0;
  29611. ;
  29612. return 0;
  29613. }
  29614. _ACEOF
  29615. rm -f conftest.$ac_objext
  29616. if { (ac_try="$ac_compile"
  29617. case "(($ac_try" in
  29618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29619. *) ac_try_echo=$ac_try;;
  29620. esac
  29621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29622. (eval "$ac_compile") 2>conftest.er1
  29623. ac_status=$?
  29624. grep -v '^ *+' conftest.er1 >conftest.err
  29625. rm -f conftest.er1
  29626. cat conftest.err >&5
  29627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29628. (exit $ac_status); } && {
  29629. test -z "$ac_c_werror_flag" ||
  29630. test ! -s conftest.err
  29631. } && test -s conftest.$ac_objext; then
  29632. ac_cv_type_uint16_t=yes
  29633. else
  29634. echo "$as_me: failed program was:" >&5
  29635. sed 's/^/| /' conftest.$ac_ext >&5
  29636. ac_cv_type_uint16_t=no
  29637. fi
  29638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29639. fi
  29640. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  29641. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  29642. if test $ac_cv_type_uint16_t = yes; then
  29643. cat >>confdefs.h <<_ACEOF
  29644. #define HAVE_UINT16_T 1
  29645. _ACEOF
  29646. fi
  29647. { echo "$as_me:$LINENO: checking for int32_t" >&5
  29648. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  29649. if test "${ac_cv_type_int32_t+set}" = set; then
  29650. echo $ECHO_N "(cached) $ECHO_C" >&6
  29651. else
  29652. cat >conftest.$ac_ext <<_ACEOF
  29653. /* confdefs.h. */
  29654. _ACEOF
  29655. cat confdefs.h >>conftest.$ac_ext
  29656. cat >>conftest.$ac_ext <<_ACEOF
  29657. /* end confdefs.h. */
  29658. $ac_includes_default
  29659. typedef int32_t ac__type_new_;
  29660. int
  29661. main ()
  29662. {
  29663. if ((ac__type_new_ *) 0)
  29664. return 0;
  29665. if (sizeof (ac__type_new_))
  29666. return 0;
  29667. ;
  29668. return 0;
  29669. }
  29670. _ACEOF
  29671. rm -f conftest.$ac_objext
  29672. if { (ac_try="$ac_compile"
  29673. case "(($ac_try" in
  29674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29675. *) ac_try_echo=$ac_try;;
  29676. esac
  29677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29678. (eval "$ac_compile") 2>conftest.er1
  29679. ac_status=$?
  29680. grep -v '^ *+' conftest.er1 >conftest.err
  29681. rm -f conftest.er1
  29682. cat conftest.err >&5
  29683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29684. (exit $ac_status); } && {
  29685. test -z "$ac_c_werror_flag" ||
  29686. test ! -s conftest.err
  29687. } && test -s conftest.$ac_objext; then
  29688. ac_cv_type_int32_t=yes
  29689. else
  29690. echo "$as_me: failed program was:" >&5
  29691. sed 's/^/| /' conftest.$ac_ext >&5
  29692. ac_cv_type_int32_t=no
  29693. fi
  29694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29695. fi
  29696. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  29697. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  29698. if test $ac_cv_type_int32_t = yes; then
  29699. cat >>confdefs.h <<_ACEOF
  29700. #define HAVE_INT32_T 1
  29701. _ACEOF
  29702. fi
  29703. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  29704. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  29705. if test "${ac_cv_type_uint32_t+set}" = set; then
  29706. echo $ECHO_N "(cached) $ECHO_C" >&6
  29707. else
  29708. cat >conftest.$ac_ext <<_ACEOF
  29709. /* confdefs.h. */
  29710. _ACEOF
  29711. cat confdefs.h >>conftest.$ac_ext
  29712. cat >>conftest.$ac_ext <<_ACEOF
  29713. /* end confdefs.h. */
  29714. $ac_includes_default
  29715. typedef uint32_t ac__type_new_;
  29716. int
  29717. main ()
  29718. {
  29719. if ((ac__type_new_ *) 0)
  29720. return 0;
  29721. if (sizeof (ac__type_new_))
  29722. return 0;
  29723. ;
  29724. return 0;
  29725. }
  29726. _ACEOF
  29727. rm -f conftest.$ac_objext
  29728. if { (ac_try="$ac_compile"
  29729. case "(($ac_try" in
  29730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29731. *) ac_try_echo=$ac_try;;
  29732. esac
  29733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29734. (eval "$ac_compile") 2>conftest.er1
  29735. ac_status=$?
  29736. grep -v '^ *+' conftest.er1 >conftest.err
  29737. rm -f conftest.er1
  29738. cat conftest.err >&5
  29739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29740. (exit $ac_status); } && {
  29741. test -z "$ac_c_werror_flag" ||
  29742. test ! -s conftest.err
  29743. } && test -s conftest.$ac_objext; then
  29744. ac_cv_type_uint32_t=yes
  29745. else
  29746. echo "$as_me: failed program was:" >&5
  29747. sed 's/^/| /' conftest.$ac_ext >&5
  29748. ac_cv_type_uint32_t=no
  29749. fi
  29750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29751. fi
  29752. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  29753. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  29754. if test $ac_cv_type_uint32_t = yes; then
  29755. cat >>confdefs.h <<_ACEOF
  29756. #define HAVE_UINT32_T 1
  29757. _ACEOF
  29758. fi
  29759. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  29760. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  29761. if test "${ac_cv_type_intptr_t+set}" = set; then
  29762. echo $ECHO_N "(cached) $ECHO_C" >&6
  29763. else
  29764. cat >conftest.$ac_ext <<_ACEOF
  29765. /* confdefs.h. */
  29766. _ACEOF
  29767. cat confdefs.h >>conftest.$ac_ext
  29768. cat >>conftest.$ac_ext <<_ACEOF
  29769. /* end confdefs.h. */
  29770. $ac_includes_default
  29771. typedef intptr_t ac__type_new_;
  29772. int
  29773. main ()
  29774. {
  29775. if ((ac__type_new_ *) 0)
  29776. return 0;
  29777. if (sizeof (ac__type_new_))
  29778. return 0;
  29779. ;
  29780. return 0;
  29781. }
  29782. _ACEOF
  29783. rm -f conftest.$ac_objext
  29784. if { (ac_try="$ac_compile"
  29785. case "(($ac_try" in
  29786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29787. *) ac_try_echo=$ac_try;;
  29788. esac
  29789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29790. (eval "$ac_compile") 2>conftest.er1
  29791. ac_status=$?
  29792. grep -v '^ *+' conftest.er1 >conftest.err
  29793. rm -f conftest.er1
  29794. cat conftest.err >&5
  29795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29796. (exit $ac_status); } && {
  29797. test -z "$ac_c_werror_flag" ||
  29798. test ! -s conftest.err
  29799. } && test -s conftest.$ac_objext; then
  29800. ac_cv_type_intptr_t=yes
  29801. else
  29802. echo "$as_me: failed program was:" >&5
  29803. sed 's/^/| /' conftest.$ac_ext >&5
  29804. ac_cv_type_intptr_t=no
  29805. fi
  29806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29807. fi
  29808. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  29809. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  29810. if test $ac_cv_type_intptr_t = yes; then
  29811. cat >>confdefs.h <<_ACEOF
  29812. #define HAVE_INTPTR_T 1
  29813. _ACEOF
  29814. fi
  29815. { echo "$as_me:$LINENO: checking for uint_t" >&5
  29816. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  29817. if test "${ac_cv_type_uint_t+set}" = set; then
  29818. echo $ECHO_N "(cached) $ECHO_C" >&6
  29819. else
  29820. cat >conftest.$ac_ext <<_ACEOF
  29821. /* confdefs.h. */
  29822. _ACEOF
  29823. cat confdefs.h >>conftest.$ac_ext
  29824. cat >>conftest.$ac_ext <<_ACEOF
  29825. /* end confdefs.h. */
  29826. $ac_includes_default
  29827. typedef uint_t ac__type_new_;
  29828. int
  29829. main ()
  29830. {
  29831. if ((ac__type_new_ *) 0)
  29832. return 0;
  29833. if (sizeof (ac__type_new_))
  29834. return 0;
  29835. ;
  29836. return 0;
  29837. }
  29838. _ACEOF
  29839. rm -f conftest.$ac_objext
  29840. if { (ac_try="$ac_compile"
  29841. case "(($ac_try" in
  29842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29843. *) ac_try_echo=$ac_try;;
  29844. esac
  29845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29846. (eval "$ac_compile") 2>conftest.er1
  29847. ac_status=$?
  29848. grep -v '^ *+' conftest.er1 >conftest.err
  29849. rm -f conftest.er1
  29850. cat conftest.err >&5
  29851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29852. (exit $ac_status); } && {
  29853. test -z "$ac_c_werror_flag" ||
  29854. test ! -s conftest.err
  29855. } && test -s conftest.$ac_objext; then
  29856. ac_cv_type_uint_t=yes
  29857. else
  29858. echo "$as_me: failed program was:" >&5
  29859. sed 's/^/| /' conftest.$ac_ext >&5
  29860. ac_cv_type_uint_t=no
  29861. fi
  29862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29863. fi
  29864. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  29865. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  29866. if test $ac_cv_type_uint_t = yes; then
  29867. cat >>confdefs.h <<_ACEOF
  29868. #define HAVE_UINT_T 1
  29869. _ACEOF
  29870. fi
  29871. # ====================
  29872. # uintptr type & sizes
  29873. # ====================
  29874. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  29875. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  29876. if test "${ac_cv_type_uintptr_t+set}" = set; then
  29877. echo $ECHO_N "(cached) $ECHO_C" >&6
  29878. else
  29879. cat >conftest.$ac_ext <<_ACEOF
  29880. /* confdefs.h. */
  29881. _ACEOF
  29882. cat confdefs.h >>conftest.$ac_ext
  29883. cat >>conftest.$ac_ext <<_ACEOF
  29884. /* end confdefs.h. */
  29885. $ac_includes_default
  29886. typedef uintptr_t ac__type_new_;
  29887. int
  29888. main ()
  29889. {
  29890. if ((ac__type_new_ *) 0)
  29891. return 0;
  29892. if (sizeof (ac__type_new_))
  29893. return 0;
  29894. ;
  29895. return 0;
  29896. }
  29897. _ACEOF
  29898. rm -f conftest.$ac_objext
  29899. if { (ac_try="$ac_compile"
  29900. case "(($ac_try" in
  29901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29902. *) ac_try_echo=$ac_try;;
  29903. esac
  29904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29905. (eval "$ac_compile") 2>conftest.er1
  29906. ac_status=$?
  29907. grep -v '^ *+' conftest.er1 >conftest.err
  29908. rm -f conftest.er1
  29909. cat conftest.err >&5
  29910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29911. (exit $ac_status); } && {
  29912. test -z "$ac_c_werror_flag" ||
  29913. test ! -s conftest.err
  29914. } && test -s conftest.$ac_objext; then
  29915. ac_cv_type_uintptr_t=yes
  29916. else
  29917. echo "$as_me: failed program was:" >&5
  29918. sed 's/^/| /' conftest.$ac_ext >&5
  29919. ac_cv_type_uintptr_t=no
  29920. fi
  29921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29922. fi
  29923. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  29924. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  29925. if test $ac_cv_type_uintptr_t = yes; then
  29926. cat >>confdefs.h <<_ACEOF
  29927. #define HAVE_UINTPTR_T 1
  29928. _ACEOF
  29929. else
  29930. cat >>confdefs.h <<\_ACEOF
  29931. #define uintptr_t unsigned long
  29932. _ACEOF
  29933. fi
  29934. { echo "$as_me:$LINENO: checking for char*" >&5
  29935. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  29936. if test "${ac_cv_type_charp+set}" = set; then
  29937. echo $ECHO_N "(cached) $ECHO_C" >&6
  29938. else
  29939. cat >conftest.$ac_ext <<_ACEOF
  29940. /* confdefs.h. */
  29941. _ACEOF
  29942. cat confdefs.h >>conftest.$ac_ext
  29943. cat >>conftest.$ac_ext <<_ACEOF
  29944. /* end confdefs.h. */
  29945. $ac_includes_default
  29946. typedef char* ac__type_new_;
  29947. int
  29948. main ()
  29949. {
  29950. if ((ac__type_new_ *) 0)
  29951. return 0;
  29952. if (sizeof (ac__type_new_))
  29953. return 0;
  29954. ;
  29955. return 0;
  29956. }
  29957. _ACEOF
  29958. rm -f conftest.$ac_objext
  29959. if { (ac_try="$ac_compile"
  29960. case "(($ac_try" in
  29961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29962. *) ac_try_echo=$ac_try;;
  29963. esac
  29964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29965. (eval "$ac_compile") 2>conftest.er1
  29966. ac_status=$?
  29967. grep -v '^ *+' conftest.er1 >conftest.err
  29968. rm -f conftest.er1
  29969. cat conftest.err >&5
  29970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29971. (exit $ac_status); } && {
  29972. test -z "$ac_c_werror_flag" ||
  29973. test ! -s conftest.err
  29974. } && test -s conftest.$ac_objext; then
  29975. ac_cv_type_charp=yes
  29976. else
  29977. echo "$as_me: failed program was:" >&5
  29978. sed 's/^/| /' conftest.$ac_ext >&5
  29979. ac_cv_type_charp=no
  29980. fi
  29981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29982. fi
  29983. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  29984. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  29985. # The cast to long int works around a bug in the HP C Compiler
  29986. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29987. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29988. # This bug is HP SR number 8606223364.
  29989. { echo "$as_me:$LINENO: checking size of char*" >&5
  29990. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  29991. if test "${ac_cv_sizeof_charp+set}" = set; then
  29992. echo $ECHO_N "(cached) $ECHO_C" >&6
  29993. else
  29994. if test "$cross_compiling" = yes; then
  29995. # Depending upon the size, compute the lo and hi bounds.
  29996. cat >conftest.$ac_ext <<_ACEOF
  29997. /* confdefs.h. */
  29998. _ACEOF
  29999. cat confdefs.h >>conftest.$ac_ext
  30000. cat >>conftest.$ac_ext <<_ACEOF
  30001. /* end confdefs.h. */
  30002. $ac_includes_default
  30003. typedef char* ac__type_sizeof_;
  30004. int
  30005. main ()
  30006. {
  30007. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30008. test_array [0] = 0
  30009. ;
  30010. return 0;
  30011. }
  30012. _ACEOF
  30013. rm -f conftest.$ac_objext
  30014. if { (ac_try="$ac_compile"
  30015. case "(($ac_try" in
  30016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30017. *) ac_try_echo=$ac_try;;
  30018. esac
  30019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30020. (eval "$ac_compile") 2>conftest.er1
  30021. ac_status=$?
  30022. grep -v '^ *+' conftest.er1 >conftest.err
  30023. rm -f conftest.er1
  30024. cat conftest.err >&5
  30025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30026. (exit $ac_status); } && {
  30027. test -z "$ac_c_werror_flag" ||
  30028. test ! -s conftest.err
  30029. } && test -s conftest.$ac_objext; then
  30030. ac_lo=0 ac_mid=0
  30031. while :; do
  30032. cat >conftest.$ac_ext <<_ACEOF
  30033. /* confdefs.h. */
  30034. _ACEOF
  30035. cat confdefs.h >>conftest.$ac_ext
  30036. cat >>conftest.$ac_ext <<_ACEOF
  30037. /* end confdefs.h. */
  30038. $ac_includes_default
  30039. typedef char* ac__type_sizeof_;
  30040. int
  30041. main ()
  30042. {
  30043. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30044. test_array [0] = 0
  30045. ;
  30046. return 0;
  30047. }
  30048. _ACEOF
  30049. rm -f conftest.$ac_objext
  30050. if { (ac_try="$ac_compile"
  30051. case "(($ac_try" in
  30052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30053. *) ac_try_echo=$ac_try;;
  30054. esac
  30055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30056. (eval "$ac_compile") 2>conftest.er1
  30057. ac_status=$?
  30058. grep -v '^ *+' conftest.er1 >conftest.err
  30059. rm -f conftest.er1
  30060. cat conftest.err >&5
  30061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30062. (exit $ac_status); } && {
  30063. test -z "$ac_c_werror_flag" ||
  30064. test ! -s conftest.err
  30065. } && test -s conftest.$ac_objext; then
  30066. ac_hi=$ac_mid; break
  30067. else
  30068. echo "$as_me: failed program was:" >&5
  30069. sed 's/^/| /' conftest.$ac_ext >&5
  30070. ac_lo=`expr $ac_mid + 1`
  30071. if test $ac_lo -le $ac_mid; then
  30072. ac_lo= ac_hi=
  30073. break
  30074. fi
  30075. ac_mid=`expr 2 '*' $ac_mid + 1`
  30076. fi
  30077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30078. done
  30079. else
  30080. echo "$as_me: failed program was:" >&5
  30081. sed 's/^/| /' conftest.$ac_ext >&5
  30082. cat >conftest.$ac_ext <<_ACEOF
  30083. /* confdefs.h. */
  30084. _ACEOF
  30085. cat confdefs.h >>conftest.$ac_ext
  30086. cat >>conftest.$ac_ext <<_ACEOF
  30087. /* end confdefs.h. */
  30088. $ac_includes_default
  30089. typedef char* ac__type_sizeof_;
  30090. int
  30091. main ()
  30092. {
  30093. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30094. test_array [0] = 0
  30095. ;
  30096. return 0;
  30097. }
  30098. _ACEOF
  30099. rm -f conftest.$ac_objext
  30100. if { (ac_try="$ac_compile"
  30101. case "(($ac_try" in
  30102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30103. *) ac_try_echo=$ac_try;;
  30104. esac
  30105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30106. (eval "$ac_compile") 2>conftest.er1
  30107. ac_status=$?
  30108. grep -v '^ *+' conftest.er1 >conftest.err
  30109. rm -f conftest.er1
  30110. cat conftest.err >&5
  30111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30112. (exit $ac_status); } && {
  30113. test -z "$ac_c_werror_flag" ||
  30114. test ! -s conftest.err
  30115. } && test -s conftest.$ac_objext; then
  30116. ac_hi=-1 ac_mid=-1
  30117. while :; do
  30118. cat >conftest.$ac_ext <<_ACEOF
  30119. /* confdefs.h. */
  30120. _ACEOF
  30121. cat confdefs.h >>conftest.$ac_ext
  30122. cat >>conftest.$ac_ext <<_ACEOF
  30123. /* end confdefs.h. */
  30124. $ac_includes_default
  30125. typedef char* ac__type_sizeof_;
  30126. int
  30127. main ()
  30128. {
  30129. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30130. test_array [0] = 0
  30131. ;
  30132. return 0;
  30133. }
  30134. _ACEOF
  30135. rm -f conftest.$ac_objext
  30136. if { (ac_try="$ac_compile"
  30137. case "(($ac_try" in
  30138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30139. *) ac_try_echo=$ac_try;;
  30140. esac
  30141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30142. (eval "$ac_compile") 2>conftest.er1
  30143. ac_status=$?
  30144. grep -v '^ *+' conftest.er1 >conftest.err
  30145. rm -f conftest.er1
  30146. cat conftest.err >&5
  30147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30148. (exit $ac_status); } && {
  30149. test -z "$ac_c_werror_flag" ||
  30150. test ! -s conftest.err
  30151. } && test -s conftest.$ac_objext; then
  30152. ac_lo=$ac_mid; break
  30153. else
  30154. echo "$as_me: failed program was:" >&5
  30155. sed 's/^/| /' conftest.$ac_ext >&5
  30156. ac_hi=`expr '(' $ac_mid ')' - 1`
  30157. if test $ac_mid -le $ac_hi; then
  30158. ac_lo= ac_hi=
  30159. break
  30160. fi
  30161. ac_mid=`expr 2 '*' $ac_mid`
  30162. fi
  30163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30164. done
  30165. else
  30166. echo "$as_me: failed program was:" >&5
  30167. sed 's/^/| /' conftest.$ac_ext >&5
  30168. ac_lo= ac_hi=
  30169. fi
  30170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30171. fi
  30172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30173. # Binary search between lo and hi bounds.
  30174. while test "x$ac_lo" != "x$ac_hi"; do
  30175. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30176. cat >conftest.$ac_ext <<_ACEOF
  30177. /* confdefs.h. */
  30178. _ACEOF
  30179. cat confdefs.h >>conftest.$ac_ext
  30180. cat >>conftest.$ac_ext <<_ACEOF
  30181. /* end confdefs.h. */
  30182. $ac_includes_default
  30183. typedef char* ac__type_sizeof_;
  30184. int
  30185. main ()
  30186. {
  30187. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30188. test_array [0] = 0
  30189. ;
  30190. return 0;
  30191. }
  30192. _ACEOF
  30193. rm -f conftest.$ac_objext
  30194. if { (ac_try="$ac_compile"
  30195. case "(($ac_try" in
  30196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30197. *) ac_try_echo=$ac_try;;
  30198. esac
  30199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30200. (eval "$ac_compile") 2>conftest.er1
  30201. ac_status=$?
  30202. grep -v '^ *+' conftest.er1 >conftest.err
  30203. rm -f conftest.er1
  30204. cat conftest.err >&5
  30205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30206. (exit $ac_status); } && {
  30207. test -z "$ac_c_werror_flag" ||
  30208. test ! -s conftest.err
  30209. } && test -s conftest.$ac_objext; then
  30210. ac_hi=$ac_mid
  30211. else
  30212. echo "$as_me: failed program was:" >&5
  30213. sed 's/^/| /' conftest.$ac_ext >&5
  30214. ac_lo=`expr '(' $ac_mid ')' + 1`
  30215. fi
  30216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30217. done
  30218. case $ac_lo in
  30219. ?*) ac_cv_sizeof_charp=$ac_lo;;
  30220. '') if test "$ac_cv_type_charp" = yes; then
  30221. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30222. See \`config.log' for more details." >&5
  30223. echo "$as_me: error: cannot compute sizeof (char*)
  30224. See \`config.log' for more details." >&2;}
  30225. { (exit 77); exit 77; }; }
  30226. else
  30227. ac_cv_sizeof_charp=0
  30228. fi ;;
  30229. esac
  30230. else
  30231. cat >conftest.$ac_ext <<_ACEOF
  30232. /* confdefs.h. */
  30233. _ACEOF
  30234. cat confdefs.h >>conftest.$ac_ext
  30235. cat >>conftest.$ac_ext <<_ACEOF
  30236. /* end confdefs.h. */
  30237. $ac_includes_default
  30238. typedef char* ac__type_sizeof_;
  30239. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30240. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30241. #include <stdio.h>
  30242. #include <stdlib.h>
  30243. int
  30244. main ()
  30245. {
  30246. FILE *f = fopen ("conftest.val", "w");
  30247. if (! f)
  30248. return 1;
  30249. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30250. {
  30251. long int i = longval ();
  30252. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30253. return 1;
  30254. fprintf (f, "%ld\n", i);
  30255. }
  30256. else
  30257. {
  30258. unsigned long int i = ulongval ();
  30259. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30260. return 1;
  30261. fprintf (f, "%lu\n", i);
  30262. }
  30263. return ferror (f) || fclose (f) != 0;
  30264. ;
  30265. return 0;
  30266. }
  30267. _ACEOF
  30268. rm -f conftest$ac_exeext
  30269. if { (ac_try="$ac_link"
  30270. case "(($ac_try" in
  30271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30272. *) ac_try_echo=$ac_try;;
  30273. esac
  30274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30275. (eval "$ac_link") 2>&5
  30276. ac_status=$?
  30277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30278. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30279. { (case "(($ac_try" in
  30280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30281. *) ac_try_echo=$ac_try;;
  30282. esac
  30283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30284. (eval "$ac_try") 2>&5
  30285. ac_status=$?
  30286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30287. (exit $ac_status); }; }; then
  30288. ac_cv_sizeof_charp=`cat conftest.val`
  30289. else
  30290. echo "$as_me: program exited with status $ac_status" >&5
  30291. echo "$as_me: failed program was:" >&5
  30292. sed 's/^/| /' conftest.$ac_ext >&5
  30293. ( exit $ac_status )
  30294. if test "$ac_cv_type_charp" = yes; then
  30295. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30296. See \`config.log' for more details." >&5
  30297. echo "$as_me: error: cannot compute sizeof (char*)
  30298. See \`config.log' for more details." >&2;}
  30299. { (exit 77); exit 77; }; }
  30300. else
  30301. ac_cv_sizeof_charp=0
  30302. fi
  30303. fi
  30304. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30305. fi
  30306. rm -f conftest.val
  30307. fi
  30308. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  30309. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  30310. cat >>confdefs.h <<_ACEOF
  30311. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  30312. _ACEOF
  30313. { echo "$as_me:$LINENO: checking for int" >&5
  30314. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  30315. if test "${ac_cv_type_int+set}" = set; then
  30316. echo $ECHO_N "(cached) $ECHO_C" >&6
  30317. else
  30318. cat >conftest.$ac_ext <<_ACEOF
  30319. /* confdefs.h. */
  30320. _ACEOF
  30321. cat confdefs.h >>conftest.$ac_ext
  30322. cat >>conftest.$ac_ext <<_ACEOF
  30323. /* end confdefs.h. */
  30324. $ac_includes_default
  30325. typedef int ac__type_new_;
  30326. int
  30327. main ()
  30328. {
  30329. if ((ac__type_new_ *) 0)
  30330. return 0;
  30331. if (sizeof (ac__type_new_))
  30332. return 0;
  30333. ;
  30334. return 0;
  30335. }
  30336. _ACEOF
  30337. rm -f conftest.$ac_objext
  30338. if { (ac_try="$ac_compile"
  30339. case "(($ac_try" in
  30340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30341. *) ac_try_echo=$ac_try;;
  30342. esac
  30343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30344. (eval "$ac_compile") 2>conftest.er1
  30345. ac_status=$?
  30346. grep -v '^ *+' conftest.er1 >conftest.err
  30347. rm -f conftest.er1
  30348. cat conftest.err >&5
  30349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30350. (exit $ac_status); } && {
  30351. test -z "$ac_c_werror_flag" ||
  30352. test ! -s conftest.err
  30353. } && test -s conftest.$ac_objext; then
  30354. ac_cv_type_int=yes
  30355. else
  30356. echo "$as_me: failed program was:" >&5
  30357. sed 's/^/| /' conftest.$ac_ext >&5
  30358. ac_cv_type_int=no
  30359. fi
  30360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30361. fi
  30362. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  30363. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  30364. # The cast to long int works around a bug in the HP C Compiler
  30365. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30366. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30367. # This bug is HP SR number 8606223364.
  30368. { echo "$as_me:$LINENO: checking size of int" >&5
  30369. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  30370. if test "${ac_cv_sizeof_int+set}" = set; then
  30371. echo $ECHO_N "(cached) $ECHO_C" >&6
  30372. else
  30373. if test "$cross_compiling" = yes; then
  30374. # Depending upon the size, compute the lo and hi bounds.
  30375. cat >conftest.$ac_ext <<_ACEOF
  30376. /* confdefs.h. */
  30377. _ACEOF
  30378. cat confdefs.h >>conftest.$ac_ext
  30379. cat >>conftest.$ac_ext <<_ACEOF
  30380. /* end confdefs.h. */
  30381. $ac_includes_default
  30382. typedef int ac__type_sizeof_;
  30383. int
  30384. main ()
  30385. {
  30386. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30387. test_array [0] = 0
  30388. ;
  30389. return 0;
  30390. }
  30391. _ACEOF
  30392. rm -f conftest.$ac_objext
  30393. if { (ac_try="$ac_compile"
  30394. case "(($ac_try" in
  30395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30396. *) ac_try_echo=$ac_try;;
  30397. esac
  30398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30399. (eval "$ac_compile") 2>conftest.er1
  30400. ac_status=$?
  30401. grep -v '^ *+' conftest.er1 >conftest.err
  30402. rm -f conftest.er1
  30403. cat conftest.err >&5
  30404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30405. (exit $ac_status); } && {
  30406. test -z "$ac_c_werror_flag" ||
  30407. test ! -s conftest.err
  30408. } && test -s conftest.$ac_objext; then
  30409. ac_lo=0 ac_mid=0
  30410. while :; do
  30411. cat >conftest.$ac_ext <<_ACEOF
  30412. /* confdefs.h. */
  30413. _ACEOF
  30414. cat confdefs.h >>conftest.$ac_ext
  30415. cat >>conftest.$ac_ext <<_ACEOF
  30416. /* end confdefs.h. */
  30417. $ac_includes_default
  30418. typedef int ac__type_sizeof_;
  30419. int
  30420. main ()
  30421. {
  30422. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30423. test_array [0] = 0
  30424. ;
  30425. return 0;
  30426. }
  30427. _ACEOF
  30428. rm -f conftest.$ac_objext
  30429. if { (ac_try="$ac_compile"
  30430. case "(($ac_try" in
  30431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30432. *) ac_try_echo=$ac_try;;
  30433. esac
  30434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30435. (eval "$ac_compile") 2>conftest.er1
  30436. ac_status=$?
  30437. grep -v '^ *+' conftest.er1 >conftest.err
  30438. rm -f conftest.er1
  30439. cat conftest.err >&5
  30440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30441. (exit $ac_status); } && {
  30442. test -z "$ac_c_werror_flag" ||
  30443. test ! -s conftest.err
  30444. } && test -s conftest.$ac_objext; then
  30445. ac_hi=$ac_mid; break
  30446. else
  30447. echo "$as_me: failed program was:" >&5
  30448. sed 's/^/| /' conftest.$ac_ext >&5
  30449. ac_lo=`expr $ac_mid + 1`
  30450. if test $ac_lo -le $ac_mid; then
  30451. ac_lo= ac_hi=
  30452. break
  30453. fi
  30454. ac_mid=`expr 2 '*' $ac_mid + 1`
  30455. fi
  30456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30457. done
  30458. else
  30459. echo "$as_me: failed program was:" >&5
  30460. sed 's/^/| /' conftest.$ac_ext >&5
  30461. cat >conftest.$ac_ext <<_ACEOF
  30462. /* confdefs.h. */
  30463. _ACEOF
  30464. cat confdefs.h >>conftest.$ac_ext
  30465. cat >>conftest.$ac_ext <<_ACEOF
  30466. /* end confdefs.h. */
  30467. $ac_includes_default
  30468. typedef int ac__type_sizeof_;
  30469. int
  30470. main ()
  30471. {
  30472. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30473. test_array [0] = 0
  30474. ;
  30475. return 0;
  30476. }
  30477. _ACEOF
  30478. rm -f conftest.$ac_objext
  30479. if { (ac_try="$ac_compile"
  30480. case "(($ac_try" in
  30481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30482. *) ac_try_echo=$ac_try;;
  30483. esac
  30484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30485. (eval "$ac_compile") 2>conftest.er1
  30486. ac_status=$?
  30487. grep -v '^ *+' conftest.er1 >conftest.err
  30488. rm -f conftest.er1
  30489. cat conftest.err >&5
  30490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30491. (exit $ac_status); } && {
  30492. test -z "$ac_c_werror_flag" ||
  30493. test ! -s conftest.err
  30494. } && test -s conftest.$ac_objext; then
  30495. ac_hi=-1 ac_mid=-1
  30496. while :; do
  30497. cat >conftest.$ac_ext <<_ACEOF
  30498. /* confdefs.h. */
  30499. _ACEOF
  30500. cat confdefs.h >>conftest.$ac_ext
  30501. cat >>conftest.$ac_ext <<_ACEOF
  30502. /* end confdefs.h. */
  30503. $ac_includes_default
  30504. typedef int ac__type_sizeof_;
  30505. int
  30506. main ()
  30507. {
  30508. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30509. test_array [0] = 0
  30510. ;
  30511. return 0;
  30512. }
  30513. _ACEOF
  30514. rm -f conftest.$ac_objext
  30515. if { (ac_try="$ac_compile"
  30516. case "(($ac_try" in
  30517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30518. *) ac_try_echo=$ac_try;;
  30519. esac
  30520. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30521. (eval "$ac_compile") 2>conftest.er1
  30522. ac_status=$?
  30523. grep -v '^ *+' conftest.er1 >conftest.err
  30524. rm -f conftest.er1
  30525. cat conftest.err >&5
  30526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30527. (exit $ac_status); } && {
  30528. test -z "$ac_c_werror_flag" ||
  30529. test ! -s conftest.err
  30530. } && test -s conftest.$ac_objext; then
  30531. ac_lo=$ac_mid; break
  30532. else
  30533. echo "$as_me: failed program was:" >&5
  30534. sed 's/^/| /' conftest.$ac_ext >&5
  30535. ac_hi=`expr '(' $ac_mid ')' - 1`
  30536. if test $ac_mid -le $ac_hi; then
  30537. ac_lo= ac_hi=
  30538. break
  30539. fi
  30540. ac_mid=`expr 2 '*' $ac_mid`
  30541. fi
  30542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30543. done
  30544. else
  30545. echo "$as_me: failed program was:" >&5
  30546. sed 's/^/| /' conftest.$ac_ext >&5
  30547. ac_lo= ac_hi=
  30548. fi
  30549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30550. fi
  30551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30552. # Binary search between lo and hi bounds.
  30553. while test "x$ac_lo" != "x$ac_hi"; do
  30554. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30555. cat >conftest.$ac_ext <<_ACEOF
  30556. /* confdefs.h. */
  30557. _ACEOF
  30558. cat confdefs.h >>conftest.$ac_ext
  30559. cat >>conftest.$ac_ext <<_ACEOF
  30560. /* end confdefs.h. */
  30561. $ac_includes_default
  30562. typedef int ac__type_sizeof_;
  30563. int
  30564. main ()
  30565. {
  30566. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30567. test_array [0] = 0
  30568. ;
  30569. return 0;
  30570. }
  30571. _ACEOF
  30572. rm -f conftest.$ac_objext
  30573. if { (ac_try="$ac_compile"
  30574. case "(($ac_try" in
  30575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30576. *) ac_try_echo=$ac_try;;
  30577. esac
  30578. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30579. (eval "$ac_compile") 2>conftest.er1
  30580. ac_status=$?
  30581. grep -v '^ *+' conftest.er1 >conftest.err
  30582. rm -f conftest.er1
  30583. cat conftest.err >&5
  30584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30585. (exit $ac_status); } && {
  30586. test -z "$ac_c_werror_flag" ||
  30587. test ! -s conftest.err
  30588. } && test -s conftest.$ac_objext; then
  30589. ac_hi=$ac_mid
  30590. else
  30591. echo "$as_me: failed program was:" >&5
  30592. sed 's/^/| /' conftest.$ac_ext >&5
  30593. ac_lo=`expr '(' $ac_mid ')' + 1`
  30594. fi
  30595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30596. done
  30597. case $ac_lo in
  30598. ?*) ac_cv_sizeof_int=$ac_lo;;
  30599. '') if test "$ac_cv_type_int" = yes; then
  30600. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30601. See \`config.log' for more details." >&5
  30602. echo "$as_me: error: cannot compute sizeof (int)
  30603. See \`config.log' for more details." >&2;}
  30604. { (exit 77); exit 77; }; }
  30605. else
  30606. ac_cv_sizeof_int=0
  30607. fi ;;
  30608. esac
  30609. else
  30610. cat >conftest.$ac_ext <<_ACEOF
  30611. /* confdefs.h. */
  30612. _ACEOF
  30613. cat confdefs.h >>conftest.$ac_ext
  30614. cat >>conftest.$ac_ext <<_ACEOF
  30615. /* end confdefs.h. */
  30616. $ac_includes_default
  30617. typedef int ac__type_sizeof_;
  30618. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30619. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30620. #include <stdio.h>
  30621. #include <stdlib.h>
  30622. int
  30623. main ()
  30624. {
  30625. FILE *f = fopen ("conftest.val", "w");
  30626. if (! f)
  30627. return 1;
  30628. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30629. {
  30630. long int i = longval ();
  30631. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30632. return 1;
  30633. fprintf (f, "%ld\n", i);
  30634. }
  30635. else
  30636. {
  30637. unsigned long int i = ulongval ();
  30638. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30639. return 1;
  30640. fprintf (f, "%lu\n", i);
  30641. }
  30642. return ferror (f) || fclose (f) != 0;
  30643. ;
  30644. return 0;
  30645. }
  30646. _ACEOF
  30647. rm -f conftest$ac_exeext
  30648. if { (ac_try="$ac_link"
  30649. case "(($ac_try" in
  30650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30651. *) ac_try_echo=$ac_try;;
  30652. esac
  30653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30654. (eval "$ac_link") 2>&5
  30655. ac_status=$?
  30656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30657. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30658. { (case "(($ac_try" in
  30659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30660. *) ac_try_echo=$ac_try;;
  30661. esac
  30662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30663. (eval "$ac_try") 2>&5
  30664. ac_status=$?
  30665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30666. (exit $ac_status); }; }; then
  30667. ac_cv_sizeof_int=`cat conftest.val`
  30668. else
  30669. echo "$as_me: program exited with status $ac_status" >&5
  30670. echo "$as_me: failed program was:" >&5
  30671. sed 's/^/| /' conftest.$ac_ext >&5
  30672. ( exit $ac_status )
  30673. if test "$ac_cv_type_int" = yes; then
  30674. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30675. See \`config.log' for more details." >&5
  30676. echo "$as_me: error: cannot compute sizeof (int)
  30677. See \`config.log' for more details." >&2;}
  30678. { (exit 77); exit 77; }; }
  30679. else
  30680. ac_cv_sizeof_int=0
  30681. fi
  30682. fi
  30683. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30684. fi
  30685. rm -f conftest.val
  30686. fi
  30687. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  30688. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  30689. cat >>confdefs.h <<_ACEOF
  30690. #define SIZEOF_INT $ac_cv_sizeof_int
  30691. _ACEOF
  30692. { echo "$as_me:$LINENO: checking for long" >&5
  30693. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  30694. if test "${ac_cv_type_long+set}" = set; then
  30695. echo $ECHO_N "(cached) $ECHO_C" >&6
  30696. else
  30697. cat >conftest.$ac_ext <<_ACEOF
  30698. /* confdefs.h. */
  30699. _ACEOF
  30700. cat confdefs.h >>conftest.$ac_ext
  30701. cat >>conftest.$ac_ext <<_ACEOF
  30702. /* end confdefs.h. */
  30703. $ac_includes_default
  30704. typedef long ac__type_new_;
  30705. int
  30706. main ()
  30707. {
  30708. if ((ac__type_new_ *) 0)
  30709. return 0;
  30710. if (sizeof (ac__type_new_))
  30711. return 0;
  30712. ;
  30713. return 0;
  30714. }
  30715. _ACEOF
  30716. rm -f conftest.$ac_objext
  30717. if { (ac_try="$ac_compile"
  30718. case "(($ac_try" in
  30719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30720. *) ac_try_echo=$ac_try;;
  30721. esac
  30722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30723. (eval "$ac_compile") 2>conftest.er1
  30724. ac_status=$?
  30725. grep -v '^ *+' conftest.er1 >conftest.err
  30726. rm -f conftest.er1
  30727. cat conftest.err >&5
  30728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30729. (exit $ac_status); } && {
  30730. test -z "$ac_c_werror_flag" ||
  30731. test ! -s conftest.err
  30732. } && test -s conftest.$ac_objext; then
  30733. ac_cv_type_long=yes
  30734. else
  30735. echo "$as_me: failed program was:" >&5
  30736. sed 's/^/| /' conftest.$ac_ext >&5
  30737. ac_cv_type_long=no
  30738. fi
  30739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30740. fi
  30741. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  30742. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  30743. # The cast to long int works around a bug in the HP C Compiler
  30744. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30745. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30746. # This bug is HP SR number 8606223364.
  30747. { echo "$as_me:$LINENO: checking size of long" >&5
  30748. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  30749. if test "${ac_cv_sizeof_long+set}" = set; then
  30750. echo $ECHO_N "(cached) $ECHO_C" >&6
  30751. else
  30752. if test "$cross_compiling" = yes; then
  30753. # Depending upon the size, compute the lo and hi bounds.
  30754. cat >conftest.$ac_ext <<_ACEOF
  30755. /* confdefs.h. */
  30756. _ACEOF
  30757. cat confdefs.h >>conftest.$ac_ext
  30758. cat >>conftest.$ac_ext <<_ACEOF
  30759. /* end confdefs.h. */
  30760. $ac_includes_default
  30761. typedef long ac__type_sizeof_;
  30762. int
  30763. main ()
  30764. {
  30765. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30766. test_array [0] = 0
  30767. ;
  30768. return 0;
  30769. }
  30770. _ACEOF
  30771. rm -f conftest.$ac_objext
  30772. if { (ac_try="$ac_compile"
  30773. case "(($ac_try" in
  30774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30775. *) ac_try_echo=$ac_try;;
  30776. esac
  30777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30778. (eval "$ac_compile") 2>conftest.er1
  30779. ac_status=$?
  30780. grep -v '^ *+' conftest.er1 >conftest.err
  30781. rm -f conftest.er1
  30782. cat conftest.err >&5
  30783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30784. (exit $ac_status); } && {
  30785. test -z "$ac_c_werror_flag" ||
  30786. test ! -s conftest.err
  30787. } && test -s conftest.$ac_objext; then
  30788. ac_lo=0 ac_mid=0
  30789. while :; do
  30790. cat >conftest.$ac_ext <<_ACEOF
  30791. /* confdefs.h. */
  30792. _ACEOF
  30793. cat confdefs.h >>conftest.$ac_ext
  30794. cat >>conftest.$ac_ext <<_ACEOF
  30795. /* end confdefs.h. */
  30796. $ac_includes_default
  30797. typedef long ac__type_sizeof_;
  30798. int
  30799. main ()
  30800. {
  30801. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30802. test_array [0] = 0
  30803. ;
  30804. return 0;
  30805. }
  30806. _ACEOF
  30807. rm -f conftest.$ac_objext
  30808. if { (ac_try="$ac_compile"
  30809. case "(($ac_try" in
  30810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30811. *) ac_try_echo=$ac_try;;
  30812. esac
  30813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30814. (eval "$ac_compile") 2>conftest.er1
  30815. ac_status=$?
  30816. grep -v '^ *+' conftest.er1 >conftest.err
  30817. rm -f conftest.er1
  30818. cat conftest.err >&5
  30819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30820. (exit $ac_status); } && {
  30821. test -z "$ac_c_werror_flag" ||
  30822. test ! -s conftest.err
  30823. } && test -s conftest.$ac_objext; then
  30824. ac_hi=$ac_mid; break
  30825. else
  30826. echo "$as_me: failed program was:" >&5
  30827. sed 's/^/| /' conftest.$ac_ext >&5
  30828. ac_lo=`expr $ac_mid + 1`
  30829. if test $ac_lo -le $ac_mid; then
  30830. ac_lo= ac_hi=
  30831. break
  30832. fi
  30833. ac_mid=`expr 2 '*' $ac_mid + 1`
  30834. fi
  30835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30836. done
  30837. else
  30838. echo "$as_me: failed program was:" >&5
  30839. sed 's/^/| /' conftest.$ac_ext >&5
  30840. cat >conftest.$ac_ext <<_ACEOF
  30841. /* confdefs.h. */
  30842. _ACEOF
  30843. cat confdefs.h >>conftest.$ac_ext
  30844. cat >>conftest.$ac_ext <<_ACEOF
  30845. /* end confdefs.h. */
  30846. $ac_includes_default
  30847. typedef long ac__type_sizeof_;
  30848. int
  30849. main ()
  30850. {
  30851. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30852. test_array [0] = 0
  30853. ;
  30854. return 0;
  30855. }
  30856. _ACEOF
  30857. rm -f conftest.$ac_objext
  30858. if { (ac_try="$ac_compile"
  30859. case "(($ac_try" in
  30860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30861. *) ac_try_echo=$ac_try;;
  30862. esac
  30863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30864. (eval "$ac_compile") 2>conftest.er1
  30865. ac_status=$?
  30866. grep -v '^ *+' conftest.er1 >conftest.err
  30867. rm -f conftest.er1
  30868. cat conftest.err >&5
  30869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30870. (exit $ac_status); } && {
  30871. test -z "$ac_c_werror_flag" ||
  30872. test ! -s conftest.err
  30873. } && test -s conftest.$ac_objext; then
  30874. ac_hi=-1 ac_mid=-1
  30875. while :; do
  30876. cat >conftest.$ac_ext <<_ACEOF
  30877. /* confdefs.h. */
  30878. _ACEOF
  30879. cat confdefs.h >>conftest.$ac_ext
  30880. cat >>conftest.$ac_ext <<_ACEOF
  30881. /* end confdefs.h. */
  30882. $ac_includes_default
  30883. typedef long ac__type_sizeof_;
  30884. int
  30885. main ()
  30886. {
  30887. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30888. test_array [0] = 0
  30889. ;
  30890. return 0;
  30891. }
  30892. _ACEOF
  30893. rm -f conftest.$ac_objext
  30894. if { (ac_try="$ac_compile"
  30895. case "(($ac_try" in
  30896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30897. *) ac_try_echo=$ac_try;;
  30898. esac
  30899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30900. (eval "$ac_compile") 2>conftest.er1
  30901. ac_status=$?
  30902. grep -v '^ *+' conftest.er1 >conftest.err
  30903. rm -f conftest.er1
  30904. cat conftest.err >&5
  30905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30906. (exit $ac_status); } && {
  30907. test -z "$ac_c_werror_flag" ||
  30908. test ! -s conftest.err
  30909. } && test -s conftest.$ac_objext; then
  30910. ac_lo=$ac_mid; break
  30911. else
  30912. echo "$as_me: failed program was:" >&5
  30913. sed 's/^/| /' conftest.$ac_ext >&5
  30914. ac_hi=`expr '(' $ac_mid ')' - 1`
  30915. if test $ac_mid -le $ac_hi; then
  30916. ac_lo= ac_hi=
  30917. break
  30918. fi
  30919. ac_mid=`expr 2 '*' $ac_mid`
  30920. fi
  30921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30922. done
  30923. else
  30924. echo "$as_me: failed program was:" >&5
  30925. sed 's/^/| /' conftest.$ac_ext >&5
  30926. ac_lo= ac_hi=
  30927. fi
  30928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30929. fi
  30930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30931. # Binary search between lo and hi bounds.
  30932. while test "x$ac_lo" != "x$ac_hi"; do
  30933. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30934. cat >conftest.$ac_ext <<_ACEOF
  30935. /* confdefs.h. */
  30936. _ACEOF
  30937. cat confdefs.h >>conftest.$ac_ext
  30938. cat >>conftest.$ac_ext <<_ACEOF
  30939. /* end confdefs.h. */
  30940. $ac_includes_default
  30941. typedef long ac__type_sizeof_;
  30942. int
  30943. main ()
  30944. {
  30945. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30946. test_array [0] = 0
  30947. ;
  30948. return 0;
  30949. }
  30950. _ACEOF
  30951. rm -f conftest.$ac_objext
  30952. if { (ac_try="$ac_compile"
  30953. case "(($ac_try" in
  30954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30955. *) ac_try_echo=$ac_try;;
  30956. esac
  30957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30958. (eval "$ac_compile") 2>conftest.er1
  30959. ac_status=$?
  30960. grep -v '^ *+' conftest.er1 >conftest.err
  30961. rm -f conftest.er1
  30962. cat conftest.err >&5
  30963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30964. (exit $ac_status); } && {
  30965. test -z "$ac_c_werror_flag" ||
  30966. test ! -s conftest.err
  30967. } && test -s conftest.$ac_objext; then
  30968. ac_hi=$ac_mid
  30969. else
  30970. echo "$as_me: failed program was:" >&5
  30971. sed 's/^/| /' conftest.$ac_ext >&5
  30972. ac_lo=`expr '(' $ac_mid ')' + 1`
  30973. fi
  30974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30975. done
  30976. case $ac_lo in
  30977. ?*) ac_cv_sizeof_long=$ac_lo;;
  30978. '') if test "$ac_cv_type_long" = yes; then
  30979. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30980. See \`config.log' for more details." >&5
  30981. echo "$as_me: error: cannot compute sizeof (long)
  30982. See \`config.log' for more details." >&2;}
  30983. { (exit 77); exit 77; }; }
  30984. else
  30985. ac_cv_sizeof_long=0
  30986. fi ;;
  30987. esac
  30988. else
  30989. cat >conftest.$ac_ext <<_ACEOF
  30990. /* confdefs.h. */
  30991. _ACEOF
  30992. cat confdefs.h >>conftest.$ac_ext
  30993. cat >>conftest.$ac_ext <<_ACEOF
  30994. /* end confdefs.h. */
  30995. $ac_includes_default
  30996. typedef long ac__type_sizeof_;
  30997. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30998. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30999. #include <stdio.h>
  31000. #include <stdlib.h>
  31001. int
  31002. main ()
  31003. {
  31004. FILE *f = fopen ("conftest.val", "w");
  31005. if (! f)
  31006. return 1;
  31007. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31008. {
  31009. long int i = longval ();
  31010. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31011. return 1;
  31012. fprintf (f, "%ld\n", i);
  31013. }
  31014. else
  31015. {
  31016. unsigned long int i = ulongval ();
  31017. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31018. return 1;
  31019. fprintf (f, "%lu\n", i);
  31020. }
  31021. return ferror (f) || fclose (f) != 0;
  31022. ;
  31023. return 0;
  31024. }
  31025. _ACEOF
  31026. rm -f conftest$ac_exeext
  31027. if { (ac_try="$ac_link"
  31028. case "(($ac_try" in
  31029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31030. *) ac_try_echo=$ac_try;;
  31031. esac
  31032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31033. (eval "$ac_link") 2>&5
  31034. ac_status=$?
  31035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31036. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31037. { (case "(($ac_try" in
  31038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31039. *) ac_try_echo=$ac_try;;
  31040. esac
  31041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31042. (eval "$ac_try") 2>&5
  31043. ac_status=$?
  31044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31045. (exit $ac_status); }; }; then
  31046. ac_cv_sizeof_long=`cat conftest.val`
  31047. else
  31048. echo "$as_me: program exited with status $ac_status" >&5
  31049. echo "$as_me: failed program was:" >&5
  31050. sed 's/^/| /' conftest.$ac_ext >&5
  31051. ( exit $ac_status )
  31052. if test "$ac_cv_type_long" = yes; then
  31053. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  31054. See \`config.log' for more details." >&5
  31055. echo "$as_me: error: cannot compute sizeof (long)
  31056. See \`config.log' for more details." >&2;}
  31057. { (exit 77); exit 77; }; }
  31058. else
  31059. ac_cv_sizeof_long=0
  31060. fi
  31061. fi
  31062. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31063. fi
  31064. rm -f conftest.val
  31065. fi
  31066. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  31067. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  31068. cat >>confdefs.h <<_ACEOF
  31069. #define SIZEOF_LONG $ac_cv_sizeof_long
  31070. _ACEOF
  31071. { echo "$as_me:$LINENO: checking for short" >&5
  31072. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  31073. if test "${ac_cv_type_short+set}" = set; then
  31074. echo $ECHO_N "(cached) $ECHO_C" >&6
  31075. else
  31076. cat >conftest.$ac_ext <<_ACEOF
  31077. /* confdefs.h. */
  31078. _ACEOF
  31079. cat confdefs.h >>conftest.$ac_ext
  31080. cat >>conftest.$ac_ext <<_ACEOF
  31081. /* end confdefs.h. */
  31082. $ac_includes_default
  31083. typedef short ac__type_new_;
  31084. int
  31085. main ()
  31086. {
  31087. if ((ac__type_new_ *) 0)
  31088. return 0;
  31089. if (sizeof (ac__type_new_))
  31090. return 0;
  31091. ;
  31092. return 0;
  31093. }
  31094. _ACEOF
  31095. rm -f conftest.$ac_objext
  31096. if { (ac_try="$ac_compile"
  31097. case "(($ac_try" in
  31098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31099. *) ac_try_echo=$ac_try;;
  31100. esac
  31101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31102. (eval "$ac_compile") 2>conftest.er1
  31103. ac_status=$?
  31104. grep -v '^ *+' conftest.er1 >conftest.err
  31105. rm -f conftest.er1
  31106. cat conftest.err >&5
  31107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31108. (exit $ac_status); } && {
  31109. test -z "$ac_c_werror_flag" ||
  31110. test ! -s conftest.err
  31111. } && test -s conftest.$ac_objext; then
  31112. ac_cv_type_short=yes
  31113. else
  31114. echo "$as_me: failed program was:" >&5
  31115. sed 's/^/| /' conftest.$ac_ext >&5
  31116. ac_cv_type_short=no
  31117. fi
  31118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31119. fi
  31120. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  31121. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  31122. # The cast to long int works around a bug in the HP C Compiler
  31123. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31124. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31125. # This bug is HP SR number 8606223364.
  31126. { echo "$as_me:$LINENO: checking size of short" >&5
  31127. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  31128. if test "${ac_cv_sizeof_short+set}" = set; then
  31129. echo $ECHO_N "(cached) $ECHO_C" >&6
  31130. else
  31131. if test "$cross_compiling" = yes; then
  31132. # Depending upon the size, compute the lo and hi bounds.
  31133. cat >conftest.$ac_ext <<_ACEOF
  31134. /* confdefs.h. */
  31135. _ACEOF
  31136. cat confdefs.h >>conftest.$ac_ext
  31137. cat >>conftest.$ac_ext <<_ACEOF
  31138. /* end confdefs.h. */
  31139. $ac_includes_default
  31140. typedef short ac__type_sizeof_;
  31141. int
  31142. main ()
  31143. {
  31144. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  31145. test_array [0] = 0
  31146. ;
  31147. return 0;
  31148. }
  31149. _ACEOF
  31150. rm -f conftest.$ac_objext
  31151. if { (ac_try="$ac_compile"
  31152. case "(($ac_try" in
  31153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31154. *) ac_try_echo=$ac_try;;
  31155. esac
  31156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31157. (eval "$ac_compile") 2>conftest.er1
  31158. ac_status=$?
  31159. grep -v '^ *+' conftest.er1 >conftest.err
  31160. rm -f conftest.er1
  31161. cat conftest.err >&5
  31162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31163. (exit $ac_status); } && {
  31164. test -z "$ac_c_werror_flag" ||
  31165. test ! -s conftest.err
  31166. } && test -s conftest.$ac_objext; then
  31167. ac_lo=0 ac_mid=0
  31168. while :; do
  31169. cat >conftest.$ac_ext <<_ACEOF
  31170. /* confdefs.h. */
  31171. _ACEOF
  31172. cat confdefs.h >>conftest.$ac_ext
  31173. cat >>conftest.$ac_ext <<_ACEOF
  31174. /* end confdefs.h. */
  31175. $ac_includes_default
  31176. typedef short ac__type_sizeof_;
  31177. int
  31178. main ()
  31179. {
  31180. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31181. test_array [0] = 0
  31182. ;
  31183. return 0;
  31184. }
  31185. _ACEOF
  31186. rm -f conftest.$ac_objext
  31187. if { (ac_try="$ac_compile"
  31188. case "(($ac_try" in
  31189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31190. *) ac_try_echo=$ac_try;;
  31191. esac
  31192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31193. (eval "$ac_compile") 2>conftest.er1
  31194. ac_status=$?
  31195. grep -v '^ *+' conftest.er1 >conftest.err
  31196. rm -f conftest.er1
  31197. cat conftest.err >&5
  31198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31199. (exit $ac_status); } && {
  31200. test -z "$ac_c_werror_flag" ||
  31201. test ! -s conftest.err
  31202. } && test -s conftest.$ac_objext; then
  31203. ac_hi=$ac_mid; break
  31204. else
  31205. echo "$as_me: failed program was:" >&5
  31206. sed 's/^/| /' conftest.$ac_ext >&5
  31207. ac_lo=`expr $ac_mid + 1`
  31208. if test $ac_lo -le $ac_mid; then
  31209. ac_lo= ac_hi=
  31210. break
  31211. fi
  31212. ac_mid=`expr 2 '*' $ac_mid + 1`
  31213. fi
  31214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31215. done
  31216. else
  31217. echo "$as_me: failed program was:" >&5
  31218. sed 's/^/| /' conftest.$ac_ext >&5
  31219. cat >conftest.$ac_ext <<_ACEOF
  31220. /* confdefs.h. */
  31221. _ACEOF
  31222. cat confdefs.h >>conftest.$ac_ext
  31223. cat >>conftest.$ac_ext <<_ACEOF
  31224. /* end confdefs.h. */
  31225. $ac_includes_default
  31226. typedef short ac__type_sizeof_;
  31227. int
  31228. main ()
  31229. {
  31230. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  31231. test_array [0] = 0
  31232. ;
  31233. return 0;
  31234. }
  31235. _ACEOF
  31236. rm -f conftest.$ac_objext
  31237. if { (ac_try="$ac_compile"
  31238. case "(($ac_try" in
  31239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31240. *) ac_try_echo=$ac_try;;
  31241. esac
  31242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31243. (eval "$ac_compile") 2>conftest.er1
  31244. ac_status=$?
  31245. grep -v '^ *+' conftest.er1 >conftest.err
  31246. rm -f conftest.er1
  31247. cat conftest.err >&5
  31248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31249. (exit $ac_status); } && {
  31250. test -z "$ac_c_werror_flag" ||
  31251. test ! -s conftest.err
  31252. } && test -s conftest.$ac_objext; then
  31253. ac_hi=-1 ac_mid=-1
  31254. while :; do
  31255. cat >conftest.$ac_ext <<_ACEOF
  31256. /* confdefs.h. */
  31257. _ACEOF
  31258. cat confdefs.h >>conftest.$ac_ext
  31259. cat >>conftest.$ac_ext <<_ACEOF
  31260. /* end confdefs.h. */
  31261. $ac_includes_default
  31262. typedef short ac__type_sizeof_;
  31263. int
  31264. main ()
  31265. {
  31266. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  31267. test_array [0] = 0
  31268. ;
  31269. return 0;
  31270. }
  31271. _ACEOF
  31272. rm -f conftest.$ac_objext
  31273. if { (ac_try="$ac_compile"
  31274. case "(($ac_try" in
  31275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31276. *) ac_try_echo=$ac_try;;
  31277. esac
  31278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31279. (eval "$ac_compile") 2>conftest.er1
  31280. ac_status=$?
  31281. grep -v '^ *+' conftest.er1 >conftest.err
  31282. rm -f conftest.er1
  31283. cat conftest.err >&5
  31284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31285. (exit $ac_status); } && {
  31286. test -z "$ac_c_werror_flag" ||
  31287. test ! -s conftest.err
  31288. } && test -s conftest.$ac_objext; then
  31289. ac_lo=$ac_mid; break
  31290. else
  31291. echo "$as_me: failed program was:" >&5
  31292. sed 's/^/| /' conftest.$ac_ext >&5
  31293. ac_hi=`expr '(' $ac_mid ')' - 1`
  31294. if test $ac_mid -le $ac_hi; then
  31295. ac_lo= ac_hi=
  31296. break
  31297. fi
  31298. ac_mid=`expr 2 '*' $ac_mid`
  31299. fi
  31300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31301. done
  31302. else
  31303. echo "$as_me: failed program was:" >&5
  31304. sed 's/^/| /' conftest.$ac_ext >&5
  31305. ac_lo= ac_hi=
  31306. fi
  31307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31308. fi
  31309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31310. # Binary search between lo and hi bounds.
  31311. while test "x$ac_lo" != "x$ac_hi"; do
  31312. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31313. cat >conftest.$ac_ext <<_ACEOF
  31314. /* confdefs.h. */
  31315. _ACEOF
  31316. cat confdefs.h >>conftest.$ac_ext
  31317. cat >>conftest.$ac_ext <<_ACEOF
  31318. /* end confdefs.h. */
  31319. $ac_includes_default
  31320. typedef short ac__type_sizeof_;
  31321. int
  31322. main ()
  31323. {
  31324. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31325. test_array [0] = 0
  31326. ;
  31327. return 0;
  31328. }
  31329. _ACEOF
  31330. rm -f conftest.$ac_objext
  31331. if { (ac_try="$ac_compile"
  31332. case "(($ac_try" in
  31333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31334. *) ac_try_echo=$ac_try;;
  31335. esac
  31336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31337. (eval "$ac_compile") 2>conftest.er1
  31338. ac_status=$?
  31339. grep -v '^ *+' conftest.er1 >conftest.err
  31340. rm -f conftest.er1
  31341. cat conftest.err >&5
  31342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31343. (exit $ac_status); } && {
  31344. test -z "$ac_c_werror_flag" ||
  31345. test ! -s conftest.err
  31346. } && test -s conftest.$ac_objext; then
  31347. ac_hi=$ac_mid
  31348. else
  31349. echo "$as_me: failed program was:" >&5
  31350. sed 's/^/| /' conftest.$ac_ext >&5
  31351. ac_lo=`expr '(' $ac_mid ')' + 1`
  31352. fi
  31353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31354. done
  31355. case $ac_lo in
  31356. ?*) ac_cv_sizeof_short=$ac_lo;;
  31357. '') if test "$ac_cv_type_short" = yes; then
  31358. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31359. See \`config.log' for more details." >&5
  31360. echo "$as_me: error: cannot compute sizeof (short)
  31361. See \`config.log' for more details." >&2;}
  31362. { (exit 77); exit 77; }; }
  31363. else
  31364. ac_cv_sizeof_short=0
  31365. fi ;;
  31366. esac
  31367. else
  31368. cat >conftest.$ac_ext <<_ACEOF
  31369. /* confdefs.h. */
  31370. _ACEOF
  31371. cat confdefs.h >>conftest.$ac_ext
  31372. cat >>conftest.$ac_ext <<_ACEOF
  31373. /* end confdefs.h. */
  31374. $ac_includes_default
  31375. typedef short ac__type_sizeof_;
  31376. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31377. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31378. #include <stdio.h>
  31379. #include <stdlib.h>
  31380. int
  31381. main ()
  31382. {
  31383. FILE *f = fopen ("conftest.val", "w");
  31384. if (! f)
  31385. return 1;
  31386. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31387. {
  31388. long int i = longval ();
  31389. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31390. return 1;
  31391. fprintf (f, "%ld\n", i);
  31392. }
  31393. else
  31394. {
  31395. unsigned long int i = ulongval ();
  31396. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31397. return 1;
  31398. fprintf (f, "%lu\n", i);
  31399. }
  31400. return ferror (f) || fclose (f) != 0;
  31401. ;
  31402. return 0;
  31403. }
  31404. _ACEOF
  31405. rm -f conftest$ac_exeext
  31406. if { (ac_try="$ac_link"
  31407. case "(($ac_try" in
  31408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31409. *) ac_try_echo=$ac_try;;
  31410. esac
  31411. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31412. (eval "$ac_link") 2>&5
  31413. ac_status=$?
  31414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31415. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31416. { (case "(($ac_try" in
  31417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31418. *) ac_try_echo=$ac_try;;
  31419. esac
  31420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31421. (eval "$ac_try") 2>&5
  31422. ac_status=$?
  31423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31424. (exit $ac_status); }; }; then
  31425. ac_cv_sizeof_short=`cat conftest.val`
  31426. else
  31427. echo "$as_me: program exited with status $ac_status" >&5
  31428. echo "$as_me: failed program was:" >&5
  31429. sed 's/^/| /' conftest.$ac_ext >&5
  31430. ( exit $ac_status )
  31431. if test "$ac_cv_type_short" = yes; then
  31432. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31433. See \`config.log' for more details." >&5
  31434. echo "$as_me: error: cannot compute sizeof (short)
  31435. See \`config.log' for more details." >&2;}
  31436. { (exit 77); exit 77; }; }
  31437. else
  31438. ac_cv_sizeof_short=0
  31439. fi
  31440. fi
  31441. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31442. fi
  31443. rm -f conftest.val
  31444. fi
  31445. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  31446. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  31447. cat >>confdefs.h <<_ACEOF
  31448. #define SIZEOF_SHORT $ac_cv_sizeof_short
  31449. _ACEOF
  31450. # ----------------------------------------------------------------------
  31451. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  31452. # ----------------------------------------------------------------------
  31453. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  31454. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  31455. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  31456. echo $ECHO_N "(cached) $ECHO_C" >&6
  31457. else
  31458. ac_check_lib_save_LIBS=$LIBS
  31459. LIBS="-lgen $LIBS"
  31460. cat >conftest.$ac_ext <<_ACEOF
  31461. /* confdefs.h. */
  31462. _ACEOF
  31463. cat confdefs.h >>conftest.$ac_ext
  31464. cat >>conftest.$ac_ext <<_ACEOF
  31465. /* end confdefs.h. */
  31466. /* Override any GCC internal prototype to avoid an error.
  31467. Use char because int might match the return type of a GCC
  31468. builtin and then its argument prototype would still apply. */
  31469. #ifdef __cplusplus
  31470. extern "C"
  31471. #endif
  31472. char pathfind ();
  31473. int
  31474. main ()
  31475. {
  31476. return pathfind ();
  31477. ;
  31478. return 0;
  31479. }
  31480. _ACEOF
  31481. rm -f conftest.$ac_objext conftest$ac_exeext
  31482. if { (ac_try="$ac_link"
  31483. case "(($ac_try" in
  31484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31485. *) ac_try_echo=$ac_try;;
  31486. esac
  31487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31488. (eval "$ac_link") 2>conftest.er1
  31489. ac_status=$?
  31490. grep -v '^ *+' conftest.er1 >conftest.err
  31491. rm -f conftest.er1
  31492. cat conftest.err >&5
  31493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31494. (exit $ac_status); } && {
  31495. test -z "$ac_c_werror_flag" ||
  31496. test ! -s conftest.err
  31497. } && test -s conftest$ac_exeext &&
  31498. $as_test_x conftest$ac_exeext; then
  31499. ac_cv_lib_gen_pathfind=yes
  31500. else
  31501. echo "$as_me: failed program was:" >&5
  31502. sed 's/^/| /' conftest.$ac_ext >&5
  31503. ac_cv_lib_gen_pathfind=no
  31504. fi
  31505. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31506. conftest$ac_exeext conftest.$ac_ext
  31507. LIBS=$ac_check_lib_save_LIBS
  31508. fi
  31509. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  31510. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  31511. if test $ac_cv_lib_gen_pathfind = yes; then
  31512. cat >>confdefs.h <<_ACEOF
  31513. #define HAVE_LIBGEN 1
  31514. _ACEOF
  31515. LIBS="-lgen $LIBS"
  31516. fi
  31517. for ac_func in vprintf
  31518. do
  31519. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31520. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31521. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31522. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31523. echo $ECHO_N "(cached) $ECHO_C" >&6
  31524. else
  31525. cat >conftest.$ac_ext <<_ACEOF
  31526. /* confdefs.h. */
  31527. _ACEOF
  31528. cat confdefs.h >>conftest.$ac_ext
  31529. cat >>conftest.$ac_ext <<_ACEOF
  31530. /* end confdefs.h. */
  31531. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31532. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31533. #define $ac_func innocuous_$ac_func
  31534. /* System header to define __stub macros and hopefully few prototypes,
  31535. which can conflict with char $ac_func (); below.
  31536. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31537. <limits.h> exists even on freestanding compilers. */
  31538. #ifdef __STDC__
  31539. # include <limits.h>
  31540. #else
  31541. # include <assert.h>
  31542. #endif
  31543. #undef $ac_func
  31544. /* Override any GCC internal prototype to avoid an error.
  31545. Use char because int might match the return type of a GCC
  31546. builtin and then its argument prototype would still apply. */
  31547. #ifdef __cplusplus
  31548. extern "C"
  31549. #endif
  31550. char $ac_func ();
  31551. /* The GNU C library defines this for functions which it implements
  31552. to always fail with ENOSYS. Some functions are actually named
  31553. something starting with __ and the normal name is an alias. */
  31554. #if defined __stub_$ac_func || defined __stub___$ac_func
  31555. choke me
  31556. #endif
  31557. int
  31558. main ()
  31559. {
  31560. return $ac_func ();
  31561. ;
  31562. return 0;
  31563. }
  31564. _ACEOF
  31565. rm -f conftest.$ac_objext conftest$ac_exeext
  31566. if { (ac_try="$ac_link"
  31567. case "(($ac_try" in
  31568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31569. *) ac_try_echo=$ac_try;;
  31570. esac
  31571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31572. (eval "$ac_link") 2>conftest.er1
  31573. ac_status=$?
  31574. grep -v '^ *+' conftest.er1 >conftest.err
  31575. rm -f conftest.er1
  31576. cat conftest.err >&5
  31577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31578. (exit $ac_status); } && {
  31579. test -z "$ac_c_werror_flag" ||
  31580. test ! -s conftest.err
  31581. } && test -s conftest$ac_exeext &&
  31582. $as_test_x conftest$ac_exeext; then
  31583. eval "$as_ac_var=yes"
  31584. else
  31585. echo "$as_me: failed program was:" >&5
  31586. sed 's/^/| /' conftest.$ac_ext >&5
  31587. eval "$as_ac_var=no"
  31588. fi
  31589. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31590. conftest$ac_exeext conftest.$ac_ext
  31591. fi
  31592. ac_res=`eval echo '${'$as_ac_var'}'`
  31593. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31594. echo "${ECHO_T}$ac_res" >&6; }
  31595. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31596. cat >>confdefs.h <<_ACEOF
  31597. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31598. _ACEOF
  31599. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  31600. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  31601. if test "${ac_cv_func__doprnt+set}" = set; then
  31602. echo $ECHO_N "(cached) $ECHO_C" >&6
  31603. else
  31604. cat >conftest.$ac_ext <<_ACEOF
  31605. /* confdefs.h. */
  31606. _ACEOF
  31607. cat confdefs.h >>conftest.$ac_ext
  31608. cat >>conftest.$ac_ext <<_ACEOF
  31609. /* end confdefs.h. */
  31610. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  31611. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31612. #define _doprnt innocuous__doprnt
  31613. /* System header to define __stub macros and hopefully few prototypes,
  31614. which can conflict with char _doprnt (); below.
  31615. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31616. <limits.h> exists even on freestanding compilers. */
  31617. #ifdef __STDC__
  31618. # include <limits.h>
  31619. #else
  31620. # include <assert.h>
  31621. #endif
  31622. #undef _doprnt
  31623. /* Override any GCC internal prototype to avoid an error.
  31624. Use char because int might match the return type of a GCC
  31625. builtin and then its argument prototype would still apply. */
  31626. #ifdef __cplusplus
  31627. extern "C"
  31628. #endif
  31629. char _doprnt ();
  31630. /* The GNU C library defines this for functions which it implements
  31631. to always fail with ENOSYS. Some functions are actually named
  31632. something starting with __ and the normal name is an alias. */
  31633. #if defined __stub__doprnt || defined __stub____doprnt
  31634. choke me
  31635. #endif
  31636. int
  31637. main ()
  31638. {
  31639. return _doprnt ();
  31640. ;
  31641. return 0;
  31642. }
  31643. _ACEOF
  31644. rm -f conftest.$ac_objext conftest$ac_exeext
  31645. if { (ac_try="$ac_link"
  31646. case "(($ac_try" in
  31647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31648. *) ac_try_echo=$ac_try;;
  31649. esac
  31650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31651. (eval "$ac_link") 2>conftest.er1
  31652. ac_status=$?
  31653. grep -v '^ *+' conftest.er1 >conftest.err
  31654. rm -f conftest.er1
  31655. cat conftest.err >&5
  31656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31657. (exit $ac_status); } && {
  31658. test -z "$ac_c_werror_flag" ||
  31659. test ! -s conftest.err
  31660. } && test -s conftest$ac_exeext &&
  31661. $as_test_x conftest$ac_exeext; then
  31662. ac_cv_func__doprnt=yes
  31663. else
  31664. echo "$as_me: failed program was:" >&5
  31665. sed 's/^/| /' conftest.$ac_ext >&5
  31666. ac_cv_func__doprnt=no
  31667. fi
  31668. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31669. conftest$ac_exeext conftest.$ac_ext
  31670. fi
  31671. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  31672. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  31673. if test $ac_cv_func__doprnt = yes; then
  31674. cat >>confdefs.h <<\_ACEOF
  31675. #define HAVE_DOPRNT 1
  31676. _ACEOF
  31677. fi
  31678. fi
  31679. done
  31680. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  31681. do
  31682. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31683. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31684. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31685. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31686. echo $ECHO_N "(cached) $ECHO_C" >&6
  31687. else
  31688. cat >conftest.$ac_ext <<_ACEOF
  31689. /* confdefs.h. */
  31690. _ACEOF
  31691. cat confdefs.h >>conftest.$ac_ext
  31692. cat >>conftest.$ac_ext <<_ACEOF
  31693. /* end confdefs.h. */
  31694. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31695. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31696. #define $ac_func innocuous_$ac_func
  31697. /* System header to define __stub macros and hopefully few prototypes,
  31698. which can conflict with char $ac_func (); below.
  31699. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31700. <limits.h> exists even on freestanding compilers. */
  31701. #ifdef __STDC__
  31702. # include <limits.h>
  31703. #else
  31704. # include <assert.h>
  31705. #endif
  31706. #undef $ac_func
  31707. /* Override any GCC internal prototype to avoid an error.
  31708. Use char because int might match the return type of a GCC
  31709. builtin and then its argument prototype would still apply. */
  31710. #ifdef __cplusplus
  31711. extern "C"
  31712. #endif
  31713. char $ac_func ();
  31714. /* The GNU C library defines this for functions which it implements
  31715. to always fail with ENOSYS. Some functions are actually named
  31716. something starting with __ and the normal name is an alias. */
  31717. #if defined __stub_$ac_func || defined __stub___$ac_func
  31718. choke me
  31719. #endif
  31720. int
  31721. main ()
  31722. {
  31723. return $ac_func ();
  31724. ;
  31725. return 0;
  31726. }
  31727. _ACEOF
  31728. rm -f conftest.$ac_objext conftest$ac_exeext
  31729. if { (ac_try="$ac_link"
  31730. case "(($ac_try" in
  31731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31732. *) ac_try_echo=$ac_try;;
  31733. esac
  31734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31735. (eval "$ac_link") 2>conftest.er1
  31736. ac_status=$?
  31737. grep -v '^ *+' conftest.er1 >conftest.err
  31738. rm -f conftest.er1
  31739. cat conftest.err >&5
  31740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31741. (exit $ac_status); } && {
  31742. test -z "$ac_c_werror_flag" ||
  31743. test ! -s conftest.err
  31744. } && test -s conftest$ac_exeext &&
  31745. $as_test_x conftest$ac_exeext; then
  31746. eval "$as_ac_var=yes"
  31747. else
  31748. echo "$as_me: failed program was:" >&5
  31749. sed 's/^/| /' conftest.$ac_ext >&5
  31750. eval "$as_ac_var=no"
  31751. fi
  31752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31753. conftest$ac_exeext conftest.$ac_ext
  31754. fi
  31755. ac_res=`eval echo '${'$as_ac_var'}'`
  31756. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31757. echo "${ECHO_T}$ac_res" >&6; }
  31758. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31759. cat >>confdefs.h <<_ACEOF
  31760. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31761. _ACEOF
  31762. fi
  31763. done
  31764. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  31765. fi
  31766. fi
  31767. # end of AC_DEFUN of LIBOPTS_CHECK
  31768. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/flow/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  31769. cat >confcache <<\_ACEOF
  31770. # This file is a shell script that caches the results of configure
  31771. # tests run on this system so they can be shared between configure
  31772. # scripts and configure runs, see configure's option --config-cache.
  31773. # It is not useful on other systems. If it contains results you don't
  31774. # want to keep, you may remove or edit it.
  31775. #
  31776. # config.status only pays attention to the cache file if you give it
  31777. # the --recheck option to rerun configure.
  31778. #
  31779. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31780. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31781. # following values.
  31782. _ACEOF
  31783. # The following way of writing the cache mishandles newlines in values,
  31784. # but we know of no workaround that is simple, portable, and efficient.
  31785. # So, we kill variables containing newlines.
  31786. # Ultrix sh set writes to stderr and can't be redirected directly,
  31787. # and sets the high bit in the cache file unless we assign to the vars.
  31788. (
  31789. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31790. eval ac_val=\$$ac_var
  31791. case $ac_val in #(
  31792. *${as_nl}*)
  31793. case $ac_var in #(
  31794. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  31795. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  31796. esac
  31797. case $ac_var in #(
  31798. _ | IFS | as_nl) ;; #(
  31799. *) $as_unset $ac_var ;;
  31800. esac ;;
  31801. esac
  31802. done
  31803. (set) 2>&1 |
  31804. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31805. *${as_nl}ac_space=\ *)
  31806. # `set' does not quote correctly, so add quotes (double-quote
  31807. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31808. sed -n \
  31809. "s/'/'\\\\''/g;
  31810. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31811. ;; #(
  31812. *)
  31813. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31814. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31815. ;;
  31816. esac |
  31817. sort
  31818. ) |
  31819. sed '
  31820. /^ac_cv_env_/b end
  31821. t clear
  31822. :clear
  31823. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31824. t end
  31825. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31826. :end' >>confcache
  31827. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31828. if test -w "$cache_file"; then
  31829. test "x$cache_file" != "x/dev/null" &&
  31830. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31831. echo "$as_me: updating cache $cache_file" >&6;}
  31832. cat confcache >$cache_file
  31833. else
  31834. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31835. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31836. fi
  31837. fi
  31838. rm -f confcache
  31839. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31840. # Let make expand exec_prefix.
  31841. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31842. DEFS=-DHAVE_CONFIG_H
  31843. ac_libobjs=
  31844. ac_ltlibobjs=
  31845. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31846. # 1. Remove the extension, and $U if already installed.
  31847. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31848. ac_i=`echo "$ac_i" | sed "$ac_script"`
  31849. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31850. # will be set to the directory where LIBOBJS objects are built.
  31851. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31852. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31853. done
  31854. LIBOBJS=$ac_libobjs
  31855. LTLIBOBJS=$ac_ltlibobjs
  31856. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  31857. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  31858. Usually this means the macro was only invoked conditionally." >&5
  31859. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  31860. Usually this means the macro was only invoked conditionally." >&2;}
  31861. { (exit 1); exit 1; }; }
  31862. fi
  31863. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  31864. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  31865. Usually this means the macro was only invoked conditionally." >&5
  31866. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  31867. Usually this means the macro was only invoked conditionally." >&2;}
  31868. { (exit 1); exit 1; }; }
  31869. fi
  31870. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31871. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31872. Usually this means the macro was only invoked conditionally." >&5
  31873. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31874. Usually this means the macro was only invoked conditionally." >&2;}
  31875. { (exit 1); exit 1; }; }
  31876. fi
  31877. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31878. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31879. Usually this means the macro was only invoked conditionally." >&5
  31880. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31881. Usually this means the macro was only invoked conditionally." >&2;}
  31882. { (exit 1); exit 1; }; }
  31883. fi
  31884. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31885. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31886. Usually this means the macro was only invoked conditionally." >&5
  31887. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31888. Usually this means the macro was only invoked conditionally." >&2;}
  31889. { (exit 1); exit 1; }; }
  31890. fi
  31891. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31892. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31893. Usually this means the macro was only invoked conditionally." >&5
  31894. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31895. Usually this means the macro was only invoked conditionally." >&2;}
  31896. { (exit 1); exit 1; }; }
  31897. fi
  31898. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  31899. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31900. Usually this means the macro was only invoked conditionally." >&5
  31901. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31902. Usually this means the macro was only invoked conditionally." >&2;}
  31903. { (exit 1); exit 1; }; }
  31904. fi
  31905. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  31906. { { echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31907. Usually this means the macro was only invoked conditionally." >&5
  31908. echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31909. Usually this means the macro was only invoked conditionally." >&2;}
  31910. { (exit 1); exit 1; }; }
  31911. fi
  31912. if test -z "${ENABLE_TCPREPLAY_EDIT_TRUE}" && test -z "${ENABLE_TCPREPLAY_EDIT_FALSE}"; then
  31913. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31914. Usually this means the macro was only invoked conditionally." >&5
  31915. echo "$as_me: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31916. Usually this means the macro was only invoked conditionally." >&2;}
  31917. { (exit 1); exit 1; }; }
  31918. fi
  31919. if test -z "${ENABLE_FLOWREPLAY_TRUE}" && test -z "${ENABLE_FLOWREPLAY_FALSE}"; then
  31920. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31921. Usually this means the macro was only invoked conditionally." >&5
  31922. echo "$as_me: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31923. Usually this means the macro was only invoked conditionally." >&2;}
  31924. { (exit 1); exit 1; }; }
  31925. fi
  31926. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  31927. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31928. Usually this means the macro was only invoked conditionally." >&5
  31929. echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31930. Usually this means the macro was only invoked conditionally." >&2;}
  31931. { (exit 1); exit 1; }; }
  31932. fi
  31933. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  31934. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31935. Usually this means the macro was only invoked conditionally." >&5
  31936. echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31937. Usually this means the macro was only invoked conditionally." >&2;}
  31938. { (exit 1); exit 1; }; }
  31939. fi
  31940. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  31941. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  31942. Usually this means the macro was only invoked conditionally." >&5
  31943. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  31944. Usually this means the macro was only invoked conditionally." >&2;}
  31945. { (exit 1); exit 1; }; }
  31946. fi
  31947. : ${CONFIG_STATUS=./config.status}
  31948. ac_clean_files_save=$ac_clean_files
  31949. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31950. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31951. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31952. cat >$CONFIG_STATUS <<_ACEOF
  31953. #! $SHELL
  31954. # Generated by $as_me.
  31955. # Run this file to recreate the current configuration.
  31956. # Compiler output produced by configure, useful for debugging
  31957. # configure, is in config.log if it exists.
  31958. debug=false
  31959. ac_cs_recheck=false
  31960. ac_cs_silent=false
  31961. SHELL=\${CONFIG_SHELL-$SHELL}
  31962. _ACEOF
  31963. cat >>$CONFIG_STATUS <<\_ACEOF
  31964. ## --------------------- ##
  31965. ## M4sh Initialization. ##
  31966. ## --------------------- ##
  31967. # Be more Bourne compatible
  31968. DUALCASE=1; export DUALCASE # for MKS sh
  31969. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31970. emulate sh
  31971. NULLCMD=:
  31972. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31973. # is contrary to our usage. Disable this feature.
  31974. alias -g '${1+"$@"}'='"$@"'
  31975. setopt NO_GLOB_SUBST
  31976. else
  31977. case `(set -o) 2>/dev/null` in
  31978. *posix*) set -o posix ;;
  31979. esac
  31980. fi
  31981. # PATH needs CR
  31982. # Avoid depending upon Character Ranges.
  31983. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31984. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31985. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31986. as_cr_digits='0123456789'
  31987. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31988. # The user is always right.
  31989. if test "${PATH_SEPARATOR+set}" != set; then
  31990. echo "#! /bin/sh" >conf$$.sh
  31991. echo "exit 0" >>conf$$.sh
  31992. chmod +x conf$$.sh
  31993. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31994. PATH_SEPARATOR=';'
  31995. else
  31996. PATH_SEPARATOR=:
  31997. fi
  31998. rm -f conf$$.sh
  31999. fi
  32000. # Support unset when possible.
  32001. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  32002. as_unset=unset
  32003. else
  32004. as_unset=false
  32005. fi
  32006. # IFS
  32007. # We need space, tab and new line, in precisely that order. Quoting is
  32008. # there to prevent editors from complaining about space-tab.
  32009. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  32010. # splitting by setting IFS to empty value.)
  32011. as_nl='
  32012. '
  32013. IFS=" "" $as_nl"
  32014. # Find who we are. Look in the path if we contain no directory separator.
  32015. case $0 in
  32016. *[\\/]* ) as_myself=$0 ;;
  32017. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32018. for as_dir in $PATH
  32019. do
  32020. IFS=$as_save_IFS
  32021. test -z "$as_dir" && as_dir=.
  32022. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  32023. done
  32024. IFS=$as_save_IFS
  32025. ;;
  32026. esac
  32027. # We did not find ourselves, most probably we were run as `sh COMMAND'
  32028. # in which case we are not to be found in the path.
  32029. if test "x$as_myself" = x; then
  32030. as_myself=$0
  32031. fi
  32032. if test ! -f "$as_myself"; then
  32033. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  32034. { (exit 1); exit 1; }
  32035. fi
  32036. # Work around bugs in pre-3.0 UWIN ksh.
  32037. for as_var in ENV MAIL MAILPATH
  32038. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32039. done
  32040. PS1='$ '
  32041. PS2='> '
  32042. PS4='+ '
  32043. # NLS nuisances.
  32044. for as_var in \
  32045. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  32046. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  32047. LC_TELEPHONE LC_TIME
  32048. do
  32049. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  32050. eval $as_var=C; export $as_var
  32051. else
  32052. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32053. fi
  32054. done
  32055. # Required to use basename.
  32056. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32057. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32058. as_expr=expr
  32059. else
  32060. as_expr=false
  32061. fi
  32062. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  32063. as_basename=basename
  32064. else
  32065. as_basename=false
  32066. fi
  32067. # Name of the executable.
  32068. as_me=`$as_basename -- "$0" ||
  32069. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  32070. X"$0" : 'X\(//\)$' \| \
  32071. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  32072. echo X/"$0" |
  32073. sed '/^.*\/\([^/][^/]*\)\/*$/{
  32074. s//\1/
  32075. q
  32076. }
  32077. /^X\/\(\/\/\)$/{
  32078. s//\1/
  32079. q
  32080. }
  32081. /^X\/\(\/\).*/{
  32082. s//\1/
  32083. q
  32084. }
  32085. s/.*/./; q'`
  32086. # CDPATH.
  32087. $as_unset CDPATH
  32088. as_lineno_1=$LINENO
  32089. as_lineno_2=$LINENO
  32090. test "x$as_lineno_1" != "x$as_lineno_2" &&
  32091. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  32092. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  32093. # uniformly replaced by the line number. The first 'sed' inserts a
  32094. # line-number line after each line using $LINENO; the second 'sed'
  32095. # does the real work. The second script uses 'N' to pair each
  32096. # line-number line with the line containing $LINENO, and appends
  32097. # trailing '-' during substitution so that $LINENO is not a special
  32098. # case at line end.
  32099. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  32100. # scripts with optimization help from Paolo Bonzini. Blame Lee
  32101. # E. McMahon (1931-1989) for sed's syntax. :-)
  32102. sed -n '
  32103. p
  32104. /[$]LINENO/=
  32105. ' <$as_myself |
  32106. sed '
  32107. s/[$]LINENO.*/&-/
  32108. t lineno
  32109. b
  32110. :lineno
  32111. N
  32112. :loop
  32113. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  32114. t loop
  32115. s/-\n.*//
  32116. ' >$as_me.lineno &&
  32117. chmod +x "$as_me.lineno" ||
  32118. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  32119. { (exit 1); exit 1; }; }
  32120. # Don't try to exec as it changes $[0], causing all sort of problems
  32121. # (the dirname of $[0] is not the place where we might find the
  32122. # original and so on. Autoconf is especially sensitive to this).
  32123. . "./$as_me.lineno"
  32124. # Exit status is that of the last command.
  32125. exit
  32126. }
  32127. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  32128. as_dirname=dirname
  32129. else
  32130. as_dirname=false
  32131. fi
  32132. ECHO_C= ECHO_N= ECHO_T=
  32133. case `echo -n x` in
  32134. -n*)
  32135. case `echo 'x\c'` in
  32136. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  32137. *) ECHO_C='\c';;
  32138. esac;;
  32139. *)
  32140. ECHO_N='-n';;
  32141. esac
  32142. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32143. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32144. as_expr=expr
  32145. else
  32146. as_expr=false
  32147. fi
  32148. rm -f conf$$ conf$$.exe conf$$.file
  32149. if test -d conf$$.dir; then
  32150. rm -f conf$$.dir/conf$$.file
  32151. else
  32152. rm -f conf$$.dir
  32153. mkdir conf$$.dir
  32154. fi
  32155. echo >conf$$.file
  32156. if ln -s conf$$.file conf$$ 2>/dev/null; then
  32157. as_ln_s='ln -s'
  32158. # ... but there are two gotchas:
  32159. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  32160. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  32161. # In both cases, we have to default to `cp -p'.
  32162. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  32163. as_ln_s='cp -p'
  32164. elif ln conf$$.file conf$$ 2>/dev/null; then
  32165. as_ln_s=ln
  32166. else
  32167. as_ln_s='cp -p'
  32168. fi
  32169. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  32170. rmdir conf$$.dir 2>/dev/null
  32171. if mkdir -p . 2>/dev/null; then
  32172. as_mkdir_p=:
  32173. else
  32174. test -d ./-p && rmdir ./-p
  32175. as_mkdir_p=false
  32176. fi
  32177. if test -x / >/dev/null 2>&1; then
  32178. as_test_x='test -x'
  32179. else
  32180. if ls -dL / >/dev/null 2>&1; then
  32181. as_ls_L_option=L
  32182. else
  32183. as_ls_L_option=
  32184. fi
  32185. as_test_x='
  32186. eval sh -c '\''
  32187. if test -d "$1"; then
  32188. test -d "$1/.";
  32189. else
  32190. case $1 in
  32191. -*)set "./$1";;
  32192. esac;
  32193. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  32194. ???[sx]*):;;*)false;;esac;fi
  32195. '\'' sh
  32196. '
  32197. fi
  32198. as_executable_p=$as_test_x
  32199. # Sed expression to map a string onto a valid CPP name.
  32200. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  32201. # Sed expression to map a string onto a valid variable name.
  32202. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  32203. exec 6>&1
  32204. # Save the log message, to keep $[0] and so on meaningful, and to
  32205. # report actual input values of CONFIG_FILES etc. instead of their
  32206. # values after options handling.
  32207. ac_log="
  32208. This file was extended by $as_me, which was
  32209. generated by GNU Autoconf 2.61. Invocation command line was
  32210. CONFIG_FILES = $CONFIG_FILES
  32211. CONFIG_HEADERS = $CONFIG_HEADERS
  32212. CONFIG_LINKS = $CONFIG_LINKS
  32213. CONFIG_COMMANDS = $CONFIG_COMMANDS
  32214. $ $0 $@
  32215. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  32216. "
  32217. _ACEOF
  32218. cat >>$CONFIG_STATUS <<_ACEOF
  32219. # Files that config.status was made for.
  32220. config_files="$ac_config_files"
  32221. config_headers="$ac_config_headers"
  32222. config_commands="$ac_config_commands"
  32223. _ACEOF
  32224. cat >>$CONFIG_STATUS <<\_ACEOF
  32225. ac_cs_usage="\
  32226. \`$as_me' instantiates files from templates according to the
  32227. current configuration.
  32228. Usage: $0 [OPTIONS] [FILE]...
  32229. -h, --help print this help, then exit
  32230. -V, --version print version number and configuration settings, then exit
  32231. -q, --quiet do not print progress messages
  32232. -d, --debug don't remove temporary files
  32233. --recheck update $as_me by reconfiguring in the same conditions
  32234. --file=FILE[:TEMPLATE]
  32235. instantiate the configuration file FILE
  32236. --header=FILE[:TEMPLATE]
  32237. instantiate the configuration header FILE
  32238. Configuration files:
  32239. $config_files
  32240. Configuration headers:
  32241. $config_headers
  32242. Configuration commands:
  32243. $config_commands
  32244. Report bugs to <bug-autoconf@gnu.org>."
  32245. _ACEOF
  32246. cat >>$CONFIG_STATUS <<_ACEOF
  32247. ac_cs_version="\\
  32248. config.status
  32249. configured by $0, generated by GNU Autoconf 2.61,
  32250. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  32251. Copyright (C) 2006 Free Software Foundation, Inc.
  32252. This config.status script is free software; the Free Software Foundation
  32253. gives unlimited permission to copy, distribute and modify it."
  32254. ac_pwd='$ac_pwd'
  32255. srcdir='$srcdir'
  32256. INSTALL='$INSTALL'
  32257. MKDIR_P='$MKDIR_P'
  32258. _ACEOF
  32259. cat >>$CONFIG_STATUS <<\_ACEOF
  32260. # If no file are specified by the user, then we need to provide default
  32261. # value. By we need to know if files were specified by the user.
  32262. ac_need_defaults=:
  32263. while test $# != 0
  32264. do
  32265. case $1 in
  32266. --*=*)
  32267. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  32268. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  32269. ac_shift=:
  32270. ;;
  32271. *)
  32272. ac_option=$1
  32273. ac_optarg=$2
  32274. ac_shift=shift
  32275. ;;
  32276. esac
  32277. case $ac_option in
  32278. # Handling of the options.
  32279. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  32280. ac_cs_recheck=: ;;
  32281. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  32282. echo "$ac_cs_version"; exit ;;
  32283. --debug | --debu | --deb | --de | --d | -d )
  32284. debug=: ;;
  32285. --file | --fil | --fi | --f )
  32286. $ac_shift
  32287. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  32288. ac_need_defaults=false;;
  32289. --header | --heade | --head | --hea )
  32290. $ac_shift
  32291. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  32292. ac_need_defaults=false;;
  32293. --he | --h)
  32294. # Conflict between --help and --header
  32295. { echo "$as_me: error: ambiguous option: $1
  32296. Try \`$0 --help' for more information." >&2
  32297. { (exit 1); exit 1; }; };;
  32298. --help | --hel | -h )
  32299. echo "$ac_cs_usage"; exit ;;
  32300. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  32301. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  32302. ac_cs_silent=: ;;
  32303. # This is an error.
  32304. -*) { echo "$as_me: error: unrecognized option: $1
  32305. Try \`$0 --help' for more information." >&2
  32306. { (exit 1); exit 1; }; } ;;
  32307. *) ac_config_targets="$ac_config_targets $1"
  32308. ac_need_defaults=false ;;
  32309. esac
  32310. shift
  32311. done
  32312. ac_configure_extra_args=
  32313. if $ac_cs_silent; then
  32314. exec 6>/dev/null
  32315. ac_configure_extra_args="$ac_configure_extra_args --silent"
  32316. fi
  32317. _ACEOF
  32318. cat >>$CONFIG_STATUS <<_ACEOF
  32319. if \$ac_cs_recheck; then
  32320. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  32321. CONFIG_SHELL=$SHELL
  32322. export CONFIG_SHELL
  32323. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  32324. fi
  32325. _ACEOF
  32326. cat >>$CONFIG_STATUS <<\_ACEOF
  32327. exec 5>>config.log
  32328. {
  32329. echo
  32330. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  32331. ## Running $as_me. ##
  32332. _ASBOX
  32333. echo "$ac_log"
  32334. } >&5
  32335. _ACEOF
  32336. cat >>$CONFIG_STATUS <<_ACEOF
  32337. #
  32338. # INIT-COMMANDS
  32339. #
  32340. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  32341. _ACEOF
  32342. cat >>$CONFIG_STATUS <<\_ACEOF
  32343. # Handling of arguments.
  32344. for ac_config_target in $ac_config_targets
  32345. do
  32346. case $ac_config_target in
  32347. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  32348. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  32349. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  32350. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  32351. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  32352. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  32353. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  32354. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  32355. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  32356. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  32357. "src/flow/Makefile") CONFIG_FILES="$CONFIG_FILES src/flow/Makefile" ;;
  32358. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  32359. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  32360. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  32361. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  32362. "tcpreplay.spec") CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  32363. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  32364. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  32365. { (exit 1); exit 1; }; };;
  32366. esac
  32367. done
  32368. # If the user did not use the arguments to specify the items to instantiate,
  32369. # then the envvar interface is used. Set only those that are not.
  32370. # We use the long form for the default assignment because of an extremely
  32371. # bizarre bug on SunOS 4.1.3.
  32372. if $ac_need_defaults; then
  32373. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  32374. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  32375. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  32376. fi
  32377. # Have a temporary directory for convenience. Make it in the build tree
  32378. # simply because there is no reason against having it here, and in addition,
  32379. # creating and moving files from /tmp can sometimes cause problems.
  32380. # Hook for its removal unless debugging.
  32381. # Note that there is a small window in which the directory will not be cleaned:
  32382. # after its creation but before its name has been assigned to `$tmp'.
  32383. $debug ||
  32384. {
  32385. tmp=
  32386. trap 'exit_status=$?
  32387. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  32388. ' 0
  32389. trap '{ (exit 1); exit 1; }' 1 2 13 15
  32390. }
  32391. # Create a (secure) tmp directory for tmp files.
  32392. {
  32393. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  32394. test -n "$tmp" && test -d "$tmp"
  32395. } ||
  32396. {
  32397. tmp=./conf$$-$RANDOM
  32398. (umask 077 && mkdir "$tmp")
  32399. } ||
  32400. {
  32401. echo "$me: cannot create a temporary directory in ." >&2
  32402. { (exit 1); exit 1; }
  32403. }
  32404. #
  32405. # Set up the sed scripts for CONFIG_FILES section.
  32406. #
  32407. # No need to generate the scripts if there are no CONFIG_FILES.
  32408. # This happens for instance when ./config.status config.h
  32409. if test -n "$CONFIG_FILES"; then
  32410. _ACEOF
  32411. ac_delim='%!_!# '
  32412. for ac_last_try in false false false false false :; do
  32413. cat >conf$$subs.sed <<_ACEOF
  32414. SHELL!$SHELL$ac_delim
  32415. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  32416. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  32417. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  32418. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  32419. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  32420. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  32421. exec_prefix!$exec_prefix$ac_delim
  32422. prefix!$prefix$ac_delim
  32423. program_transform_name!$program_transform_name$ac_delim
  32424. bindir!$bindir$ac_delim
  32425. sbindir!$sbindir$ac_delim
  32426. libexecdir!$libexecdir$ac_delim
  32427. datarootdir!$datarootdir$ac_delim
  32428. datadir!$datadir$ac_delim
  32429. sysconfdir!$sysconfdir$ac_delim
  32430. sharedstatedir!$sharedstatedir$ac_delim
  32431. localstatedir!$localstatedir$ac_delim
  32432. includedir!$includedir$ac_delim
  32433. oldincludedir!$oldincludedir$ac_delim
  32434. docdir!$docdir$ac_delim
  32435. infodir!$infodir$ac_delim
  32436. htmldir!$htmldir$ac_delim
  32437. dvidir!$dvidir$ac_delim
  32438. pdfdir!$pdfdir$ac_delim
  32439. psdir!$psdir$ac_delim
  32440. libdir!$libdir$ac_delim
  32441. localedir!$localedir$ac_delim
  32442. mandir!$mandir$ac_delim
  32443. DEFS!$DEFS$ac_delim
  32444. ECHO_C!$ECHO_C$ac_delim
  32445. ECHO_N!$ECHO_N$ac_delim
  32446. ECHO_T!$ECHO_T$ac_delim
  32447. LIBS!$LIBS$ac_delim
  32448. build_alias!$build_alias$ac_delim
  32449. host_alias!$host_alias$ac_delim
  32450. target_alias!$target_alias$ac_delim
  32451. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  32452. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  32453. MAINT!$MAINT$ac_delim
  32454. TCPREPLAY_VERSION!$TCPREPLAY_VERSION$ac_delim
  32455. TCPREPLAY_RELEASE!$TCPREPLAY_RELEASE$ac_delim
  32456. build!$build$ac_delim
  32457. build_cpu!$build_cpu$ac_delim
  32458. build_vendor!$build_vendor$ac_delim
  32459. build_os!$build_os$ac_delim
  32460. host!$host$ac_delim
  32461. host_cpu!$host_cpu$ac_delim
  32462. host_vendor!$host_vendor$ac_delim
  32463. host_os!$host_os$ac_delim
  32464. target!$target$ac_delim
  32465. target_cpu!$target_cpu$ac_delim
  32466. target_vendor!$target_vendor$ac_delim
  32467. target_os!$target_os$ac_delim
  32468. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  32469. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  32470. INSTALL_DATA!$INSTALL_DATA$ac_delim
  32471. am__isrc!$am__isrc$ac_delim
  32472. CYGPATH_W!$CYGPATH_W$ac_delim
  32473. PACKAGE!$PACKAGE$ac_delim
  32474. VERSION!$VERSION$ac_delim
  32475. ACLOCAL!$ACLOCAL$ac_delim
  32476. AUTOCONF!$AUTOCONF$ac_delim
  32477. AUTOMAKE!$AUTOMAKE$ac_delim
  32478. AUTOHEADER!$AUTOHEADER$ac_delim
  32479. MAKEINFO!$MAKEINFO$ac_delim
  32480. install_sh!$install_sh$ac_delim
  32481. STRIP!$STRIP$ac_delim
  32482. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  32483. mkdir_p!$mkdir_p$ac_delim
  32484. AWK!$AWK$ac_delim
  32485. SET_MAKE!$SET_MAKE$ac_delim
  32486. am__leading_dot!$am__leading_dot$ac_delim
  32487. AMTAR!$AMTAR$ac_delim
  32488. am__tar!$am__tar$ac_delim
  32489. am__untar!$am__untar$ac_delim
  32490. CC!$CC$ac_delim
  32491. CFLAGS!$CFLAGS$ac_delim
  32492. LDFLAGS!$LDFLAGS$ac_delim
  32493. CPPFLAGS!$CPPFLAGS$ac_delim
  32494. ac_ct_CC!$ac_ct_CC$ac_delim
  32495. EXEEXT!$EXEEXT$ac_delim
  32496. OBJEXT!$OBJEXT$ac_delim
  32497. DEPDIR!$DEPDIR$ac_delim
  32498. am__include!$am__include$ac_delim
  32499. am__quote!$am__quote$ac_delim
  32500. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  32501. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  32502. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  32503. CCDEPMODE!$CCDEPMODE$ac_delim
  32504. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  32505. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  32506. SED!$SED$ac_delim
  32507. GREP!$GREP$ac_delim
  32508. EGREP!$EGREP$ac_delim
  32509. LN_S!$LN_S$ac_delim
  32510. ECHO!$ECHO$ac_delim
  32511. _ACEOF
  32512. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  32513. break
  32514. elif $ac_last_try; then
  32515. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32516. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32517. { (exit 1); exit 1; }; }
  32518. else
  32519. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32520. fi
  32521. done
  32522. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32523. if test -n "$ac_eof"; then
  32524. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32525. ac_eof=`expr $ac_eof + 1`
  32526. fi
  32527. cat >>$CONFIG_STATUS <<_ACEOF
  32528. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  32529. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32530. _ACEOF
  32531. sed '
  32532. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32533. s/^/s,@/; s/!/@,|#_!!_#|/
  32534. :n
  32535. t n
  32536. s/'"$ac_delim"'$/,g/; t
  32537. s/$/\\/; p
  32538. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32539. ' >>$CONFIG_STATUS <conf$$subs.sed
  32540. rm -f conf$$subs.sed
  32541. cat >>$CONFIG_STATUS <<_ACEOF
  32542. CEOF$ac_eof
  32543. _ACEOF
  32544. ac_delim='%!_!# '
  32545. for ac_last_try in false false false false false :; do
  32546. cat >conf$$subs.sed <<_ACEOF
  32547. AR!$AR$ac_delim
  32548. RANLIB!$RANLIB$ac_delim
  32549. CPP!$CPP$ac_delim
  32550. CXX!$CXX$ac_delim
  32551. CXXFLAGS!$CXXFLAGS$ac_delim
  32552. ac_ct_CXX!$ac_ct_CXX$ac_delim
  32553. CXXDEPMODE!$CXXDEPMODE$ac_delim
  32554. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  32555. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  32556. CXXCPP!$CXXCPP$ac_delim
  32557. F77!$F77$ac_delim
  32558. FFLAGS!$FFLAGS$ac_delim
  32559. ac_ct_F77!$ac_ct_F77$ac_delim
  32560. LIBTOOL!$LIBTOOL$ac_delim
  32561. PRINTF!$PRINTF$ac_delim
  32562. AUTOGEN!$AUTOGEN$ac_delim
  32563. LIBOBJS!$LIBOBJS$ac_delim
  32564. SYSTEM_STRLCPY_TRUE!$SYSTEM_STRLCPY_TRUE$ac_delim
  32565. SYSTEM_STRLCPY_FALSE!$SYSTEM_STRLCPY_FALSE$ac_delim
  32566. WORDS_BIGENDIAN_TRUE!$WORDS_BIGENDIAN_TRUE$ac_delim
  32567. WORDS_BIGENDIAN_FALSE!$WORDS_BIGENDIAN_FALSE$ac_delim
  32568. debug_flag!$debug_flag$ac_delim
  32569. ENABLE_TCPREPLAY_EDIT_TRUE!$ENABLE_TCPREPLAY_EDIT_TRUE$ac_delim
  32570. ENABLE_TCPREPLAY_EDIT_FALSE!$ENABLE_TCPREPLAY_EDIT_FALSE$ac_delim
  32571. ENABLE_FLOWREPLAY_TRUE!$ENABLE_FLOWREPLAY_TRUE$ac_delim
  32572. ENABLE_FLOWREPLAY_FALSE!$ENABLE_FLOWREPLAY_FALSE$ac_delim
  32573. LNETINC!$LNETINC$ac_delim
  32574. LNETLIB!$LNETLIB$ac_delim
  32575. LPCAPINC!$LPCAPINC$ac_delim
  32576. LPCAPLIB!$LPCAPLIB$ac_delim
  32577. PCAP_BPF_H_FILE!$PCAP_BPF_H_FILE$ac_delim
  32578. pcncfg!$pcncfg$ac_delim
  32579. LNAVLIB!$LNAVLIB$ac_delim
  32580. LNAV_CFLAGS!$LNAV_CFLAGS$ac_delim
  32581. tcpdump_path!$tcpdump_path$ac_delim
  32582. ENABLE_TCPDUMP_TRUE!$ENABLE_TCPDUMP_TRUE$ac_delim
  32583. ENABLE_TCPDUMP_FALSE!$ENABLE_TCPDUMP_FALSE$ac_delim
  32584. nic1!$nic1$ac_delim
  32585. nic2!$nic2$ac_delim
  32586. LIBOPTS_DIR!$LIBOPTS_DIR$ac_delim
  32587. INSTALL_LIBOPTS_TRUE!$INSTALL_LIBOPTS_TRUE$ac_delim
  32588. INSTALL_LIBOPTS_FALSE!$INSTALL_LIBOPTS_FALSE$ac_delim
  32589. NEED_LIBOPTS_TRUE!$NEED_LIBOPTS_TRUE$ac_delim
  32590. NEED_LIBOPTS_FALSE!$NEED_LIBOPTS_FALSE$ac_delim
  32591. LIBOPTS_LDADD!$LIBOPTS_LDADD$ac_delim
  32592. LIBOPTS_CFLAGS!$LIBOPTS_CFLAGS$ac_delim
  32593. LTLIBOBJS!$LTLIBOBJS$ac_delim
  32594. _ACEOF
  32595. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
  32596. break
  32597. elif $ac_last_try; then
  32598. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32599. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32600. { (exit 1); exit 1; }; }
  32601. else
  32602. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32603. fi
  32604. done
  32605. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32606. if test -n "$ac_eof"; then
  32607. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32608. ac_eof=`expr $ac_eof + 1`
  32609. fi
  32610. cat >>$CONFIG_STATUS <<_ACEOF
  32611. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  32612. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  32613. _ACEOF
  32614. sed '
  32615. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32616. s/^/s,@/; s/!/@,|#_!!_#|/
  32617. :n
  32618. t n
  32619. s/'"$ac_delim"'$/,g/; t
  32620. s/$/\\/; p
  32621. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32622. ' >>$CONFIG_STATUS <conf$$subs.sed
  32623. rm -f conf$$subs.sed
  32624. cat >>$CONFIG_STATUS <<_ACEOF
  32625. :end
  32626. s/|#_!!_#|//g
  32627. CEOF$ac_eof
  32628. _ACEOF
  32629. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32630. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32631. # trailing colons and then remove the whole line if VPATH becomes empty
  32632. # (actually we leave an empty line to preserve line numbers).
  32633. if test "x$srcdir" = x.; then
  32634. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32635. s/:*\$(srcdir):*/:/
  32636. s/:*\${srcdir}:*/:/
  32637. s/:*@srcdir@:*/:/
  32638. s/^\([^=]*=[ ]*\):*/\1/
  32639. s/:*$//
  32640. s/^[^=]*=[ ]*$//
  32641. }'
  32642. fi
  32643. cat >>$CONFIG_STATUS <<\_ACEOF
  32644. fi # test -n "$CONFIG_FILES"
  32645. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  32646. do
  32647. case $ac_tag in
  32648. :[FHLC]) ac_mode=$ac_tag; continue;;
  32649. esac
  32650. case $ac_mode$ac_tag in
  32651. :[FHL]*:*);;
  32652. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  32653. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  32654. { (exit 1); exit 1; }; };;
  32655. :[FH]-) ac_tag=-:-;;
  32656. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32657. esac
  32658. ac_save_IFS=$IFS
  32659. IFS=:
  32660. set x $ac_tag
  32661. IFS=$ac_save_IFS
  32662. shift
  32663. ac_file=$1
  32664. shift
  32665. case $ac_mode in
  32666. :L) ac_source=$1;;
  32667. :[FH])
  32668. ac_file_inputs=
  32669. for ac_f
  32670. do
  32671. case $ac_f in
  32672. -) ac_f="$tmp/stdin";;
  32673. *) # Look for the file first in the build tree, then in the source tree
  32674. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32675. # because $ac_f cannot contain `:'.
  32676. test -f "$ac_f" ||
  32677. case $ac_f in
  32678. [\\/$]*) false;;
  32679. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32680. esac ||
  32681. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32682. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32683. { (exit 1); exit 1; }; };;
  32684. esac
  32685. ac_file_inputs="$ac_file_inputs $ac_f"
  32686. done
  32687. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32688. # use $as_me), people would be surprised to read:
  32689. # /* config.h. Generated by config.status. */
  32690. configure_input="Generated from "`IFS=:
  32691. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  32692. if test x"$ac_file" != x-; then
  32693. configure_input="$ac_file. $configure_input"
  32694. { echo "$as_me:$LINENO: creating $ac_file" >&5
  32695. echo "$as_me: creating $ac_file" >&6;}
  32696. fi
  32697. case $ac_tag in
  32698. *:-:* | *:-) cat >"$tmp/stdin";;
  32699. esac
  32700. ;;
  32701. esac
  32702. ac_dir=`$as_dirname -- "$ac_file" ||
  32703. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32704. X"$ac_file" : 'X\(//\)[^/]' \| \
  32705. X"$ac_file" : 'X\(//\)$' \| \
  32706. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32707. echo X"$ac_file" |
  32708. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32709. s//\1/
  32710. q
  32711. }
  32712. /^X\(\/\/\)[^/].*/{
  32713. s//\1/
  32714. q
  32715. }
  32716. /^X\(\/\/\)$/{
  32717. s//\1/
  32718. q
  32719. }
  32720. /^X\(\/\).*/{
  32721. s//\1/
  32722. q
  32723. }
  32724. s/.*/./; q'`
  32725. { as_dir="$ac_dir"
  32726. case $as_dir in #(
  32727. -*) as_dir=./$as_dir;;
  32728. esac
  32729. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32730. as_dirs=
  32731. while :; do
  32732. case $as_dir in #(
  32733. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32734. *) as_qdir=$as_dir;;
  32735. esac
  32736. as_dirs="'$as_qdir' $as_dirs"
  32737. as_dir=`$as_dirname -- "$as_dir" ||
  32738. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32739. X"$as_dir" : 'X\(//\)[^/]' \| \
  32740. X"$as_dir" : 'X\(//\)$' \| \
  32741. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32742. echo X"$as_dir" |
  32743. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32744. s//\1/
  32745. q
  32746. }
  32747. /^X\(\/\/\)[^/].*/{
  32748. s//\1/
  32749. q
  32750. }
  32751. /^X\(\/\/\)$/{
  32752. s//\1/
  32753. q
  32754. }
  32755. /^X\(\/\).*/{
  32756. s//\1/
  32757. q
  32758. }
  32759. s/.*/./; q'`
  32760. test -d "$as_dir" && break
  32761. done
  32762. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32763. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32764. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32765. { (exit 1); exit 1; }; }; }
  32766. ac_builddir=.
  32767. case "$ac_dir" in
  32768. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32769. *)
  32770. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32771. # A ".." for each directory in $ac_dir_suffix.
  32772. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32773. case $ac_top_builddir_sub in
  32774. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32775. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32776. esac ;;
  32777. esac
  32778. ac_abs_top_builddir=$ac_pwd
  32779. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32780. # for backward compatibility:
  32781. ac_top_builddir=$ac_top_build_prefix
  32782. case $srcdir in
  32783. .) # We are building in place.
  32784. ac_srcdir=.
  32785. ac_top_srcdir=$ac_top_builddir_sub
  32786. ac_abs_top_srcdir=$ac_pwd ;;
  32787. [\\/]* | ?:[\\/]* ) # Absolute name.
  32788. ac_srcdir=$srcdir$ac_dir_suffix;
  32789. ac_top_srcdir=$srcdir
  32790. ac_abs_top_srcdir=$srcdir ;;
  32791. *) # Relative name.
  32792. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32793. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32794. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32795. esac
  32796. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32797. case $ac_mode in
  32798. :F)
  32799. #
  32800. # CONFIG_FILE
  32801. #
  32802. case $INSTALL in
  32803. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32804. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32805. esac
  32806. ac_MKDIR_P=$MKDIR_P
  32807. case $MKDIR_P in
  32808. [\\/$]* | ?:[\\/]* ) ;;
  32809. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  32810. esac
  32811. _ACEOF
  32812. cat >>$CONFIG_STATUS <<\_ACEOF
  32813. # If the template does not know about datarootdir, expand it.
  32814. # FIXME: This hack should be removed a few years after 2.60.
  32815. ac_datarootdir_hack=; ac_datarootdir_seen=
  32816. case `sed -n '/datarootdir/ {
  32817. p
  32818. q
  32819. }
  32820. /@datadir@/p
  32821. /@docdir@/p
  32822. /@infodir@/p
  32823. /@localedir@/p
  32824. /@mandir@/p
  32825. ' $ac_file_inputs` in
  32826. *datarootdir*) ac_datarootdir_seen=yes;;
  32827. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32828. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32829. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32830. _ACEOF
  32831. cat >>$CONFIG_STATUS <<_ACEOF
  32832. ac_datarootdir_hack='
  32833. s&@datadir@&$datadir&g
  32834. s&@docdir@&$docdir&g
  32835. s&@infodir@&$infodir&g
  32836. s&@localedir@&$localedir&g
  32837. s&@mandir@&$mandir&g
  32838. s&\\\${datarootdir}&$datarootdir&g' ;;
  32839. esac
  32840. _ACEOF
  32841. # Neutralize VPATH when `$srcdir' = `.'.
  32842. # Shell code in configure.ac might set extrasub.
  32843. # FIXME: do we really want to maintain this feature?
  32844. cat >>$CONFIG_STATUS <<_ACEOF
  32845. sed "$ac_vpsub
  32846. $extrasub
  32847. _ACEOF
  32848. cat >>$CONFIG_STATUS <<\_ACEOF
  32849. :t
  32850. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32851. s&@configure_input@&$configure_input&;t t
  32852. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32853. s&@srcdir@&$ac_srcdir&;t t
  32854. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32855. s&@top_srcdir@&$ac_top_srcdir&;t t
  32856. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32857. s&@builddir@&$ac_builddir&;t t
  32858. s&@abs_builddir@&$ac_abs_builddir&;t t
  32859. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32860. s&@INSTALL@&$ac_INSTALL&;t t
  32861. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  32862. $ac_datarootdir_hack
  32863. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  32864. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32865. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32866. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32867. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32868. which seems to be undefined. Please make sure it is defined." >&5
  32869. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32870. which seems to be undefined. Please make sure it is defined." >&2;}
  32871. rm -f "$tmp/stdin"
  32872. case $ac_file in
  32873. -) cat "$tmp/out"; rm -f "$tmp/out";;
  32874. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  32875. esac
  32876. ;;
  32877. :H)
  32878. #
  32879. # CONFIG_HEADER
  32880. #
  32881. _ACEOF
  32882. # Transform confdefs.h into a sed script `conftest.defines', that
  32883. # substitutes the proper values into config.h.in to produce config.h.
  32884. rm -f conftest.defines conftest.tail
  32885. # First, append a space to every undef/define line, to ease matching.
  32886. echo 's/$/ /' >conftest.defines
  32887. # Then, protect against being on the right side of a sed subst, or in
  32888. # an unquoted here document, in config.status. If some macros were
  32889. # called several times there might be several #defines for the same
  32890. # symbol, which is useless. But do not sort them, since the last
  32891. # AC_DEFINE must be honored.
  32892. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32893. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  32894. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  32895. # PARAMS is the parameter list in the macro definition--in most cases, it's
  32896. # just an empty string.
  32897. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  32898. ac_dB='\\)[ (].*,\\1define\\2'
  32899. ac_dC=' '
  32900. ac_dD=' ,'
  32901. uniq confdefs.h |
  32902. sed -n '
  32903. t rset
  32904. :rset
  32905. s/^[ ]*#[ ]*define[ ][ ]*//
  32906. t ok
  32907. d
  32908. :ok
  32909. s/[\\&,]/\\&/g
  32910. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  32911. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  32912. ' >>conftest.defines
  32913. # Remove the space that was appended to ease matching.
  32914. # Then replace #undef with comments. This is necessary, for
  32915. # example, in the case of _POSIX_SOURCE, which is predefined and required
  32916. # on some systems where configure will not decide to define it.
  32917. # (The regexp can be short, since the line contains either #define or #undef.)
  32918. echo 's/ $//
  32919. s,^[ #]*u.*,/* & */,' >>conftest.defines
  32920. # Break up conftest.defines:
  32921. ac_max_sed_lines=50
  32922. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  32923. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  32924. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  32925. # et cetera.
  32926. ac_in='$ac_file_inputs'
  32927. ac_out='"$tmp/out1"'
  32928. ac_nxt='"$tmp/out2"'
  32929. while :
  32930. do
  32931. # Write a here document:
  32932. cat >>$CONFIG_STATUS <<_ACEOF
  32933. # First, check the format of the line:
  32934. cat >"\$tmp/defines.sed" <<\\CEOF
  32935. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  32936. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  32937. b
  32938. :def
  32939. _ACEOF
  32940. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  32941. echo 'CEOF
  32942. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  32943. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  32944. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  32945. grep . conftest.tail >/dev/null || break
  32946. rm -f conftest.defines
  32947. mv conftest.tail conftest.defines
  32948. done
  32949. rm -f conftest.defines conftest.tail
  32950. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  32951. cat >>$CONFIG_STATUS <<\_ACEOF
  32952. if test x"$ac_file" != x-; then
  32953. echo "/* $configure_input */" >"$tmp/config.h"
  32954. cat "$ac_result" >>"$tmp/config.h"
  32955. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  32956. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32957. echo "$as_me: $ac_file is unchanged" >&6;}
  32958. else
  32959. rm -f $ac_file
  32960. mv "$tmp/config.h" $ac_file
  32961. fi
  32962. else
  32963. echo "/* $configure_input */"
  32964. cat "$ac_result"
  32965. fi
  32966. rm -f "$tmp/out12"
  32967. # Compute $ac_file's index in $config_headers.
  32968. _am_stamp_count=1
  32969. for _am_header in $config_headers :; do
  32970. case $_am_header in
  32971. $ac_file | $ac_file:* )
  32972. break ;;
  32973. * )
  32974. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  32975. esac
  32976. done
  32977. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  32978. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32979. X$ac_file : 'X\(//\)[^/]' \| \
  32980. X$ac_file : 'X\(//\)$' \| \
  32981. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  32982. echo X$ac_file |
  32983. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32984. s//\1/
  32985. q
  32986. }
  32987. /^X\(\/\/\)[^/].*/{
  32988. s//\1/
  32989. q
  32990. }
  32991. /^X\(\/\/\)$/{
  32992. s//\1/
  32993. q
  32994. }
  32995. /^X\(\/\).*/{
  32996. s//\1/
  32997. q
  32998. }
  32999. s/.*/./; q'`/stamp-h$_am_stamp_count
  33000. ;;
  33001. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  33002. echo "$as_me: executing $ac_file commands" >&6;}
  33003. ;;
  33004. esac
  33005. case $ac_file$ac_mode in
  33006. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  33007. # Strip MF so we end up with the name of the file.
  33008. mf=`echo "$mf" | sed -e 's/:.*$//'`
  33009. # Check whether this is an Automake generated Makefile or not.
  33010. # We used to match only the files named `Makefile.in', but
  33011. # some people rename them; so instead we look at the file content.
  33012. # Grep'ing the first line is not enough: some people post-process
  33013. # each Makefile.in and add a new line on top of each file to say so.
  33014. # Grep'ing the whole file is not good either: AIX grep has a line
  33015. # limit of 2048, but all sed's we know have understand at least 4000.
  33016. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  33017. dirpart=`$as_dirname -- "$mf" ||
  33018. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33019. X"$mf" : 'X\(//\)[^/]' \| \
  33020. X"$mf" : 'X\(//\)$' \| \
  33021. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  33022. echo X"$mf" |
  33023. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33024. s//\1/
  33025. q
  33026. }
  33027. /^X\(\/\/\)[^/].*/{
  33028. s//\1/
  33029. q
  33030. }
  33031. /^X\(\/\/\)$/{
  33032. s//\1/
  33033. q
  33034. }
  33035. /^X\(\/\).*/{
  33036. s//\1/
  33037. q
  33038. }
  33039. s/.*/./; q'`
  33040. else
  33041. continue
  33042. fi
  33043. # Extract the definition of DEPDIR, am__include, and am__quote
  33044. # from the Makefile without running `make'.
  33045. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  33046. test -z "$DEPDIR" && continue
  33047. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  33048. test -z "am__include" && continue
  33049. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  33050. # When using ansi2knr, U may be empty or an underscore; expand it
  33051. U=`sed -n 's/^U = //p' < "$mf"`
  33052. # Find all dependency output files, they are included files with
  33053. # $(DEPDIR) in their names. We invoke sed twice because it is the
  33054. # simplest approach to changing $(DEPDIR) to its actual value in the
  33055. # expansion.
  33056. for file in `sed -n "
  33057. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  33058. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  33059. # Make sure the directory exists.
  33060. test -f "$dirpart/$file" && continue
  33061. fdir=`$as_dirname -- "$file" ||
  33062. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33063. X"$file" : 'X\(//\)[^/]' \| \
  33064. X"$file" : 'X\(//\)$' \| \
  33065. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  33066. echo X"$file" |
  33067. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33068. s//\1/
  33069. q
  33070. }
  33071. /^X\(\/\/\)[^/].*/{
  33072. s//\1/
  33073. q
  33074. }
  33075. /^X\(\/\/\)$/{
  33076. s//\1/
  33077. q
  33078. }
  33079. /^X\(\/\).*/{
  33080. s//\1/
  33081. q
  33082. }
  33083. s/.*/./; q'`
  33084. { as_dir=$dirpart/$fdir
  33085. case $as_dir in #(
  33086. -*) as_dir=./$as_dir;;
  33087. esac
  33088. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  33089. as_dirs=
  33090. while :; do
  33091. case $as_dir in #(
  33092. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  33093. *) as_qdir=$as_dir;;
  33094. esac
  33095. as_dirs="'$as_qdir' $as_dirs"
  33096. as_dir=`$as_dirname -- "$as_dir" ||
  33097. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33098. X"$as_dir" : 'X\(//\)[^/]' \| \
  33099. X"$as_dir" : 'X\(//\)$' \| \
  33100. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  33101. echo X"$as_dir" |
  33102. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33103. s//\1/
  33104. q
  33105. }
  33106. /^X\(\/\/\)[^/].*/{
  33107. s//\1/
  33108. q
  33109. }
  33110. /^X\(\/\/\)$/{
  33111. s//\1/
  33112. q
  33113. }
  33114. /^X\(\/\).*/{
  33115. s//\1/
  33116. q
  33117. }
  33118. s/.*/./; q'`
  33119. test -d "$as_dir" && break
  33120. done
  33121. test -z "$as_dirs" || eval "mkdir $as_dirs"
  33122. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  33123. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  33124. { (exit 1); exit 1; }; }; }
  33125. # echo "creating $dirpart/$file"
  33126. echo '# dummy' > "$dirpart/$file"
  33127. done
  33128. done
  33129. ;;
  33130. esac
  33131. done # for ac_tag
  33132. { (exit 0); exit 0; }
  33133. _ACEOF
  33134. chmod +x $CONFIG_STATUS
  33135. ac_clean_files=$ac_clean_files_save
  33136. # configure is writing to config.log, and then calls config.status.
  33137. # config.status does its own redirection, appending to config.log.
  33138. # Unfortunately, on DOS this fails, as config.log is still kept open
  33139. # by configure, so config.status won't be able to write to it; its
  33140. # output is simply discarded. So we exec the FD to /dev/null,
  33141. # effectively closing config.log, so it can be properly (re)opened and
  33142. # appended to by config.status. When coming back to configure, we
  33143. # need to make the FD available again.
  33144. if test "$no_create" != yes; then
  33145. ac_cs_success=:
  33146. ac_config_status_args=
  33147. test "$silent" = yes &&
  33148. ac_config_status_args="$ac_config_status_args --quiet"
  33149. exec 5>/dev/null
  33150. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  33151. exec 5>>config.log
  33152. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  33153. # would make configure fail if this is the last instruction.
  33154. $ac_cs_success || { (exit 1); exit 1; }
  33155. fi
  33156. # Configuration results
  33157. { echo "$as_me:$LINENO: result: ##########################################################################
  33158. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33159. ##########################################################################
  33160. libpcap: ${foundpcap} (${libpcap_version})
  33161. libnet: ${foundnet}
  33162. autogen: ${AUTOGEN}
  33163. 64bit counter support: ${use64bit_counters}
  33164. tcpdump binary path: ${tcpdump_path}
  33165. tcpreplay edit support: ${tcpreplay_edit}
  33166. tcpbridge support: ${enable_tcpbridge}
  33167. Supported Packet Injection Methods (*):
  33168. Linux PF_PACKET: ${have_pf}
  33169. BSD BPF: ${have_bpf}
  33170. libnet: ${have_libnet}
  33171. pcap_inject: ${have_pcap_inject}
  33172. pcap_sendpacket: ${have_pcap_sendpacket}
  33173. * In order of preference; see configure --help to override
  33174. " >&5
  33175. echo "${ECHO_T}##########################################################################
  33176. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33177. ##########################################################################
  33178. libpcap: ${foundpcap} (${libpcap_version})
  33179. libnet: ${foundnet}
  33180. autogen: ${AUTOGEN}
  33181. 64bit counter support: ${use64bit_counters}
  33182. tcpdump binary path: ${tcpdump_path}
  33183. tcpreplay edit support: ${tcpreplay_edit}
  33184. tcpbridge support: ${enable_tcpbridge}
  33185. Supported Packet Injection Methods (*):
  33186. Linux PF_PACKET: ${have_pf}
  33187. BSD BPF: ${have_bpf}
  33188. libnet: ${have_libnet}
  33189. pcap_inject: ${have_pcap_inject}
  33190. pcap_sendpacket: ${have_pcap_sendpacket}
  33191. * In order of preference; see configure --help to override
  33192. " >&6; }
  33193. case $host in
  33194. *-apple-darwin*)
  33195. { echo "$as_me:$LINENO: WARNING: Apple OS X has a serious problem!
  33196. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  33197. echo "$as_me: WARNING: Apple OS X has a serious problem!
  33198. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  33199. ;;
  33200. *-*-cygwin)
  33201. { echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33202. http://tcpreplay.synfin.net/trac/newticket" >&5
  33203. echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33204. http://tcpreplay.synfin.net/trac/newticket" >&2;}
  33205. ;;
  33206. esac