configure 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271
  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. LNETINC
  791. LNETLIB
  792. LPCAPINC
  793. LPCAPLIB
  794. PCAP_BPF_H_FILE
  795. pcncfg
  796. LNAVLIB
  797. LNAV_CFLAGS
  798. tcpdump_path
  799. ENABLE_TCPDUMP_TRUE
  800. ENABLE_TCPDUMP_FALSE
  801. nic1
  802. nic2
  803. LIBOPTS_DIR
  804. INSTALL_LIBOPTS_TRUE
  805. INSTALL_LIBOPTS_FALSE
  806. NEED_LIBOPTS_TRUE
  807. NEED_LIBOPTS_FALSE
  808. LIBOPTS_LDADD
  809. LIBOPTS_CFLAGS
  810. LTLIBOBJS'
  811. ac_subst_files=''
  812. ac_precious_vars='build_alias
  813. host_alias
  814. target_alias
  815. CC
  816. CFLAGS
  817. LDFLAGS
  818. LIBS
  819. CPPFLAGS
  820. CPP
  821. CXX
  822. CXXFLAGS
  823. CCC
  824. CXXCPP
  825. F77
  826. FFLAGS'
  827. # Initialize some variables set by options.
  828. ac_init_help=
  829. ac_init_version=false
  830. # The variables have the same names as the options, with
  831. # dashes changed to underlines.
  832. cache_file=/dev/null
  833. exec_prefix=NONE
  834. no_create=
  835. no_recursion=
  836. prefix=NONE
  837. program_prefix=NONE
  838. program_suffix=NONE
  839. program_transform_name=s,x,x,
  840. silent=
  841. site=
  842. srcdir=
  843. verbose=
  844. x_includes=NONE
  845. x_libraries=NONE
  846. # Installation directory options.
  847. # These are left unexpanded so users can "make install exec_prefix=/foo"
  848. # and all the variables that are supposed to be based on exec_prefix
  849. # by default will actually change.
  850. # Use braces instead of parens because sh, perl, etc. also accept them.
  851. # (The list follows the same order as the GNU Coding Standards.)
  852. bindir='${exec_prefix}/bin'
  853. sbindir='${exec_prefix}/sbin'
  854. libexecdir='${exec_prefix}/libexec'
  855. datarootdir='${prefix}/share'
  856. datadir='${datarootdir}'
  857. sysconfdir='${prefix}/etc'
  858. sharedstatedir='${prefix}/com'
  859. localstatedir='${prefix}/var'
  860. includedir='${prefix}/include'
  861. oldincludedir='/usr/include'
  862. docdir='${datarootdir}/doc/${PACKAGE}'
  863. infodir='${datarootdir}/info'
  864. htmldir='${docdir}'
  865. dvidir='${docdir}'
  866. pdfdir='${docdir}'
  867. psdir='${docdir}'
  868. libdir='${exec_prefix}/lib'
  869. localedir='${datarootdir}/locale'
  870. mandir='${datarootdir}/man'
  871. ac_prev=
  872. ac_dashdash=
  873. for ac_option
  874. do
  875. # If the previous option needs an argument, assign it.
  876. if test -n "$ac_prev"; then
  877. eval $ac_prev=\$ac_option
  878. ac_prev=
  879. continue
  880. fi
  881. case $ac_option in
  882. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  883. *) ac_optarg=yes ;;
  884. esac
  885. # Accept the important Cygnus configure options, so we can diagnose typos.
  886. case $ac_dashdash$ac_option in
  887. --)
  888. ac_dashdash=yes ;;
  889. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  890. ac_prev=bindir ;;
  891. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  892. bindir=$ac_optarg ;;
  893. -build | --build | --buil | --bui | --bu)
  894. ac_prev=build_alias ;;
  895. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  896. build_alias=$ac_optarg ;;
  897. -cache-file | --cache-file | --cache-fil | --cache-fi \
  898. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  899. ac_prev=cache_file ;;
  900. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  901. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  902. cache_file=$ac_optarg ;;
  903. --config-cache | -C)
  904. cache_file=config.cache ;;
  905. -datadir | --datadir | --datadi | --datad)
  906. ac_prev=datadir ;;
  907. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  908. datadir=$ac_optarg ;;
  909. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  910. | --dataroo | --dataro | --datar)
  911. ac_prev=datarootdir ;;
  912. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  913. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  914. datarootdir=$ac_optarg ;;
  915. -disable-* | --disable-*)
  916. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  917. # Reject names that are not valid shell variable names.
  918. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  919. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  920. { (exit 1); exit 1; }; }
  921. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  922. eval enable_$ac_feature=no ;;
  923. -docdir | --docdir | --docdi | --doc | --do)
  924. ac_prev=docdir ;;
  925. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  926. docdir=$ac_optarg ;;
  927. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  928. ac_prev=dvidir ;;
  929. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  930. dvidir=$ac_optarg ;;
  931. -enable-* | --enable-*)
  932. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  935. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  936. { (exit 1); exit 1; }; }
  937. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  938. eval enable_$ac_feature=\$ac_optarg ;;
  939. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  940. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  941. | --exec | --exe | --ex)
  942. ac_prev=exec_prefix ;;
  943. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  944. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  945. | --exec=* | --exe=* | --ex=*)
  946. exec_prefix=$ac_optarg ;;
  947. -gas | --gas | --ga | --g)
  948. # Obsolete; use --with-gas.
  949. with_gas=yes ;;
  950. -help | --help | --hel | --he | -h)
  951. ac_init_help=long ;;
  952. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  953. ac_init_help=recursive ;;
  954. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  955. ac_init_help=short ;;
  956. -host | --host | --hos | --ho)
  957. ac_prev=host_alias ;;
  958. -host=* | --host=* | --hos=* | --ho=*)
  959. host_alias=$ac_optarg ;;
  960. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  961. ac_prev=htmldir ;;
  962. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  963. | --ht=*)
  964. htmldir=$ac_optarg ;;
  965. -includedir | --includedir | --includedi | --included | --include \
  966. | --includ | --inclu | --incl | --inc)
  967. ac_prev=includedir ;;
  968. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  969. | --includ=* | --inclu=* | --incl=* | --inc=*)
  970. includedir=$ac_optarg ;;
  971. -infodir | --infodir | --infodi | --infod | --info | --inf)
  972. ac_prev=infodir ;;
  973. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  974. infodir=$ac_optarg ;;
  975. -libdir | --libdir | --libdi | --libd)
  976. ac_prev=libdir ;;
  977. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  978. libdir=$ac_optarg ;;
  979. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  980. | --libexe | --libex | --libe)
  981. ac_prev=libexecdir ;;
  982. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  983. | --libexe=* | --libex=* | --libe=*)
  984. libexecdir=$ac_optarg ;;
  985. -localedir | --localedir | --localedi | --localed | --locale)
  986. ac_prev=localedir ;;
  987. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  988. localedir=$ac_optarg ;;
  989. -localstatedir | --localstatedir | --localstatedi | --localstated \
  990. | --localstate | --localstat | --localsta | --localst | --locals)
  991. ac_prev=localstatedir ;;
  992. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  993. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  994. localstatedir=$ac_optarg ;;
  995. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  996. ac_prev=mandir ;;
  997. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  998. mandir=$ac_optarg ;;
  999. -nfp | --nfp | --nf)
  1000. # Obsolete; use --without-fp.
  1001. with_fp=no ;;
  1002. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1003. | --no-cr | --no-c | -n)
  1004. no_create=yes ;;
  1005. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1006. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1007. no_recursion=yes ;;
  1008. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1009. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1010. | --oldin | --oldi | --old | --ol | --o)
  1011. ac_prev=oldincludedir ;;
  1012. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1013. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1014. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1015. oldincludedir=$ac_optarg ;;
  1016. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1017. ac_prev=prefix ;;
  1018. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1019. prefix=$ac_optarg ;;
  1020. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1021. | --program-pre | --program-pr | --program-p)
  1022. ac_prev=program_prefix ;;
  1023. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1024. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1025. program_prefix=$ac_optarg ;;
  1026. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1027. | --program-suf | --program-su | --program-s)
  1028. ac_prev=program_suffix ;;
  1029. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1030. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1031. program_suffix=$ac_optarg ;;
  1032. -program-transform-name | --program-transform-name \
  1033. | --program-transform-nam | --program-transform-na \
  1034. | --program-transform-n | --program-transform- \
  1035. | --program-transform | --program-transfor \
  1036. | --program-transfo | --program-transf \
  1037. | --program-trans | --program-tran \
  1038. | --progr-tra | --program-tr | --program-t)
  1039. ac_prev=program_transform_name ;;
  1040. -program-transform-name=* | --program-transform-name=* \
  1041. | --program-transform-nam=* | --program-transform-na=* \
  1042. | --program-transform-n=* | --program-transform-=* \
  1043. | --program-transform=* | --program-transfor=* \
  1044. | --program-transfo=* | --program-transf=* \
  1045. | --program-trans=* | --program-tran=* \
  1046. | --progr-tra=* | --program-tr=* | --program-t=*)
  1047. program_transform_name=$ac_optarg ;;
  1048. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1049. ac_prev=pdfdir ;;
  1050. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1051. pdfdir=$ac_optarg ;;
  1052. -psdir | --psdir | --psdi | --psd | --ps)
  1053. ac_prev=psdir ;;
  1054. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1055. psdir=$ac_optarg ;;
  1056. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1057. | -silent | --silent | --silen | --sile | --sil)
  1058. silent=yes ;;
  1059. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1060. ac_prev=sbindir ;;
  1061. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1062. | --sbi=* | --sb=*)
  1063. sbindir=$ac_optarg ;;
  1064. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1065. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1066. | --sharedst | --shareds | --shared | --share | --shar \
  1067. | --sha | --sh)
  1068. ac_prev=sharedstatedir ;;
  1069. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1070. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1071. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1072. | --sha=* | --sh=*)
  1073. sharedstatedir=$ac_optarg ;;
  1074. -site | --site | --sit)
  1075. ac_prev=site ;;
  1076. -site=* | --site=* | --sit=*)
  1077. site=$ac_optarg ;;
  1078. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1079. ac_prev=srcdir ;;
  1080. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1081. srcdir=$ac_optarg ;;
  1082. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1083. | --syscon | --sysco | --sysc | --sys | --sy)
  1084. ac_prev=sysconfdir ;;
  1085. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1086. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1087. sysconfdir=$ac_optarg ;;
  1088. -target | --target | --targe | --targ | --tar | --ta | --t)
  1089. ac_prev=target_alias ;;
  1090. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1091. target_alias=$ac_optarg ;;
  1092. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1093. verbose=yes ;;
  1094. -version | --version | --versio | --versi | --vers | -V)
  1095. ac_init_version=: ;;
  1096. -with-* | --with-*)
  1097. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1098. # Reject names that are not valid shell variable names.
  1099. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1100. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1101. { (exit 1); exit 1; }; }
  1102. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1103. eval with_$ac_package=\$ac_optarg ;;
  1104. -without-* | --without-*)
  1105. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1106. # Reject names that are not valid shell variable names.
  1107. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1108. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1109. { (exit 1); exit 1; }; }
  1110. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1111. eval with_$ac_package=no ;;
  1112. --x)
  1113. # Obsolete; use --with-x.
  1114. with_x=yes ;;
  1115. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1116. | --x-incl | --x-inc | --x-in | --x-i)
  1117. ac_prev=x_includes ;;
  1118. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1119. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1120. x_includes=$ac_optarg ;;
  1121. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1122. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1123. ac_prev=x_libraries ;;
  1124. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1125. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1126. x_libraries=$ac_optarg ;;
  1127. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1128. Try \`$0 --help' for more information." >&2
  1129. { (exit 1); exit 1; }; }
  1130. ;;
  1131. *=*)
  1132. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1133. # Reject names that are not valid shell variable names.
  1134. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1135. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1136. { (exit 1); exit 1; }; }
  1137. eval $ac_envvar=\$ac_optarg
  1138. export $ac_envvar ;;
  1139. *)
  1140. # FIXME: should be removed in autoconf 3.0.
  1141. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1142. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1143. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1144. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1145. ;;
  1146. esac
  1147. done
  1148. if test -n "$ac_prev"; then
  1149. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1150. { echo "$as_me: error: missing argument to $ac_option" >&2
  1151. { (exit 1); exit 1; }; }
  1152. fi
  1153. # Be sure to have absolute directory names.
  1154. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1155. datadir sysconfdir sharedstatedir localstatedir includedir \
  1156. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1157. libdir localedir mandir
  1158. do
  1159. eval ac_val=\$$ac_var
  1160. case $ac_val in
  1161. [\\/$]* | ?:[\\/]* ) continue;;
  1162. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1163. esac
  1164. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1165. { (exit 1); exit 1; }; }
  1166. done
  1167. # There might be people who depend on the old broken behavior: `$host'
  1168. # used to hold the argument of --host etc.
  1169. # FIXME: To remove some day.
  1170. build=$build_alias
  1171. host=$host_alias
  1172. target=$target_alias
  1173. # FIXME: To remove some day.
  1174. if test "x$host_alias" != x; then
  1175. if test "x$build_alias" = x; then
  1176. cross_compiling=maybe
  1177. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1178. If a cross compiler is detected then cross compile mode will be used." >&2
  1179. elif test "x$build_alias" != "x$host_alias"; then
  1180. cross_compiling=yes
  1181. fi
  1182. fi
  1183. ac_tool_prefix=
  1184. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1185. test "$silent" = yes && exec 6>/dev/null
  1186. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1187. ac_ls_di=`ls -di .` &&
  1188. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1189. { echo "$as_me: error: Working directory cannot be determined" >&2
  1190. { (exit 1); exit 1; }; }
  1191. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1192. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1193. { (exit 1); exit 1; }; }
  1194. # Find the source files, if location was not specified.
  1195. if test -z "$srcdir"; then
  1196. ac_srcdir_defaulted=yes
  1197. # Try the directory containing this script, then the parent directory.
  1198. ac_confdir=`$as_dirname -- "$0" ||
  1199. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1200. X"$0" : 'X\(//\)[^/]' \| \
  1201. X"$0" : 'X\(//\)$' \| \
  1202. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1203. echo X"$0" |
  1204. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1205. s//\1/
  1206. q
  1207. }
  1208. /^X\(\/\/\)[^/].*/{
  1209. s//\1/
  1210. q
  1211. }
  1212. /^X\(\/\/\)$/{
  1213. s//\1/
  1214. q
  1215. }
  1216. /^X\(\/\).*/{
  1217. s//\1/
  1218. q
  1219. }
  1220. s/.*/./; q'`
  1221. srcdir=$ac_confdir
  1222. if test ! -r "$srcdir/$ac_unique_file"; then
  1223. srcdir=..
  1224. fi
  1225. else
  1226. ac_srcdir_defaulted=no
  1227. fi
  1228. if test ! -r "$srcdir/$ac_unique_file"; then
  1229. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1230. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1231. { (exit 1); exit 1; }; }
  1232. fi
  1233. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1234. ac_abs_confdir=`(
  1235. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1236. { (exit 1); exit 1; }; }
  1237. pwd)`
  1238. # When building in place, set srcdir=.
  1239. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1240. srcdir=.
  1241. fi
  1242. # Remove unnecessary trailing slashes from srcdir.
  1243. # Double slashes in file names in object file debugging info
  1244. # mess up M-x gdb in Emacs.
  1245. case $srcdir in
  1246. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1247. esac
  1248. for ac_var in $ac_precious_vars; do
  1249. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1250. eval ac_env_${ac_var}_value=\$${ac_var}
  1251. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1253. done
  1254. #
  1255. # Report the --help message.
  1256. #
  1257. if test "$ac_init_help" = "long"; then
  1258. # Omit some internal or obsolete options to make the list less imposing.
  1259. # This message is too long to be a string in the A/UX 3.1 sh.
  1260. cat <<_ACEOF
  1261. \`configure' configures this package to adapt to many kinds of systems.
  1262. Usage: $0 [OPTION]... [VAR=VALUE]...
  1263. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1264. VAR=VALUE. See below for descriptions of some of the useful variables.
  1265. Defaults for the options are specified in brackets.
  1266. Configuration:
  1267. -h, --help display this help and exit
  1268. --help=short display options specific to this package
  1269. --help=recursive display the short help of all the included packages
  1270. -V, --version display version information and exit
  1271. -q, --quiet, --silent do not print \`checking...' messages
  1272. --cache-file=FILE cache test results in FILE [disabled]
  1273. -C, --config-cache alias for \`--cache-file=config.cache'
  1274. -n, --no-create do not create output files
  1275. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1276. Installation directories:
  1277. --prefix=PREFIX install architecture-independent files in PREFIX
  1278. [$ac_default_prefix]
  1279. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1280. [PREFIX]
  1281. By default, \`make install' will install all the files in
  1282. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1283. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1284. for instance \`--prefix=\$HOME'.
  1285. For better control, use the options below.
  1286. Fine tuning of the installation directories:
  1287. --bindir=DIR user executables [EPREFIX/bin]
  1288. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1289. --libexecdir=DIR program executables [EPREFIX/libexec]
  1290. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1291. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1292. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1293. --libdir=DIR object code libraries [EPREFIX/lib]
  1294. --includedir=DIR C header files [PREFIX/include]
  1295. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1296. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1297. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1298. --infodir=DIR info documentation [DATAROOTDIR/info]
  1299. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1300. --mandir=DIR man documentation [DATAROOTDIR/man]
  1301. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1302. --htmldir=DIR html documentation [DOCDIR]
  1303. --dvidir=DIR dvi documentation [DOCDIR]
  1304. --pdfdir=DIR pdf documentation [DOCDIR]
  1305. --psdir=DIR ps documentation [DOCDIR]
  1306. _ACEOF
  1307. cat <<\_ACEOF
  1308. Program names:
  1309. --program-prefix=PREFIX prepend PREFIX to installed program names
  1310. --program-suffix=SUFFIX append SUFFIX to installed program names
  1311. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1312. System types:
  1313. --build=BUILD configure for building on BUILD [guessed]
  1314. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1315. --target=TARGET configure for building compilers for TARGET [HOST]
  1316. _ACEOF
  1317. fi
  1318. if test -n "$ac_init_help"; then
  1319. cat <<\_ACEOF
  1320. Optional Features:
  1321. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1322. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1323. --enable-maintainer-mode enable make rules and dependencies not useful
  1324. (and sometimes confusing) to the casual installer
  1325. --enable-shared[=PKGS] build shared libraries [default=yes]
  1326. --enable-static[=PKGS] build static libraries [default=yes]
  1327. --enable-fast-install[=PKGS]
  1328. optimize for fast installation [default=yes]
  1329. --disable-dependency-tracking speeds up one-time build
  1330. --enable-dependency-tracking do not reject slow dependency extractors
  1331. --disable-libtool-lock avoid locking (might break parallel builds)
  1332. --disable-largefile omit support for large files
  1333. --enable-debug Enable debugging code and support for the -d option
  1334. --enable-pedantic Enable gcc's -pedantic option
  1335. --enable-efence Enable Electric Fence memory debugger
  1336. --enable-gprof Enable GNU Profiler
  1337. --disable-64bits Do not use 64bit packet counters
  1338. --enable-force-bpf Force using BPF for sending packets
  1339. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1340. --enable-force-libnet Force using libnet for sending packets
  1341. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1342. packets
  1343. --enable-force-sendpacket
  1344. Force using libpcap's pcap_sendpacket() for sending
  1345. packets
  1346. --enable-tcpreplay-edit Link packet editing code with tcpreplay
  1347. --enable-dynamic-link Dynamically link libraries
  1348. --enable-libnet Enable using the libnet 1.1.x library (deprecated)
  1349. --enable-local-libopts Force using the supplied libopts tearoff code
  1350. --disable-libopts-install
  1351. Do not install libopts with client installation
  1352. --disable-optional-args not wanting optional option args
  1353. Optional Packages:
  1354. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1355. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1356. --with-dmalloc use dmalloc, as in
  1357. http://www.dmalloc.com/dmalloc.tar.gz
  1358. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1359. --with-pic try to use only PIC/non-PIC objects [default=use
  1360. both]
  1361. --with-tags[=TAGS] include additional configurations [automatic]
  1362. --with-libnet=DIR Use libnet in DIR
  1363. --with-libpcap=DIR Use libpcap in DIR
  1364. --with-pcapnav-config=FILE
  1365. Use given pcapnav-config
  1366. --with-tcpdump=FILE Path to tcpdump binary
  1367. --with-testnic=NIC Select which network card to use for testing
  1368. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1369. testing
  1370. --with-autoopts-config specify the config-info script
  1371. --with-regex-header a reg expr header is specified
  1372. --with-libregex libregex installation prefix
  1373. --with-libregex-cflags libregex compile flags
  1374. --with-libregex-libs libregex link command arguments
  1375. Some influential environment variables:
  1376. CC C compiler command
  1377. CFLAGS C compiler flags
  1378. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1379. nonstandard directory <lib dir>
  1380. LIBS libraries to pass to the linker, e.g. -l<library>
  1381. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1382. you have headers in a nonstandard directory <include dir>
  1383. CPP C preprocessor
  1384. CXX C++ compiler command
  1385. CXXFLAGS C++ compiler flags
  1386. CXXCPP C++ preprocessor
  1387. F77 Fortran 77 compiler command
  1388. FFLAGS Fortran 77 compiler flags
  1389. Use these variables to override the choices made by `configure' or to help
  1390. it to find libraries and programs with nonstandard names/locations.
  1391. _ACEOF
  1392. ac_status=$?
  1393. fi
  1394. if test "$ac_init_help" = "recursive"; then
  1395. # If there are subdirs, report their specific --help.
  1396. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1397. test -d "$ac_dir" || continue
  1398. ac_builddir=.
  1399. case "$ac_dir" in
  1400. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1401. *)
  1402. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1403. # A ".." for each directory in $ac_dir_suffix.
  1404. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1405. case $ac_top_builddir_sub in
  1406. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1407. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1408. esac ;;
  1409. esac
  1410. ac_abs_top_builddir=$ac_pwd
  1411. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1412. # for backward compatibility:
  1413. ac_top_builddir=$ac_top_build_prefix
  1414. case $srcdir in
  1415. .) # We are building in place.
  1416. ac_srcdir=.
  1417. ac_top_srcdir=$ac_top_builddir_sub
  1418. ac_abs_top_srcdir=$ac_pwd ;;
  1419. [\\/]* | ?:[\\/]* ) # Absolute name.
  1420. ac_srcdir=$srcdir$ac_dir_suffix;
  1421. ac_top_srcdir=$srcdir
  1422. ac_abs_top_srcdir=$srcdir ;;
  1423. *) # Relative name.
  1424. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1425. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1426. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1427. esac
  1428. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1429. cd "$ac_dir" || { ac_status=$?; continue; }
  1430. # Check for guested configure.
  1431. if test -f "$ac_srcdir/configure.gnu"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1434. elif test -f "$ac_srcdir/configure"; then
  1435. echo &&
  1436. $SHELL "$ac_srcdir/configure" --help=recursive
  1437. else
  1438. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1439. fi || ac_status=$?
  1440. cd "$ac_pwd" || { ac_status=$?; break; }
  1441. done
  1442. fi
  1443. test -n "$ac_init_help" && exit $ac_status
  1444. if $ac_init_version; then
  1445. cat <<\_ACEOF
  1446. configure
  1447. generated by GNU Autoconf 2.61
  1448. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1449. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1450. This configure script is free software; the Free Software Foundation
  1451. gives unlimited permission to copy, distribute and modify it.
  1452. _ACEOF
  1453. exit
  1454. fi
  1455. cat >config.log <<_ACEOF
  1456. This file contains any messages produced by compilers while
  1457. running configure, to aid debugging if configure makes a mistake.
  1458. It was created by $as_me, which was
  1459. generated by GNU Autoconf 2.61. Invocation command line was
  1460. $ $0 $@
  1461. _ACEOF
  1462. exec 5>>config.log
  1463. {
  1464. cat <<_ASUNAME
  1465. ## --------- ##
  1466. ## Platform. ##
  1467. ## --------- ##
  1468. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1469. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1470. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1471. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1472. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1473. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1474. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1475. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1476. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1477. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1478. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1479. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1480. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1481. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1482. _ASUNAME
  1483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1484. for as_dir in $PATH
  1485. do
  1486. IFS=$as_save_IFS
  1487. test -z "$as_dir" && as_dir=.
  1488. echo "PATH: $as_dir"
  1489. done
  1490. IFS=$as_save_IFS
  1491. } >&5
  1492. cat >&5 <<_ACEOF
  1493. ## ----------- ##
  1494. ## Core tests. ##
  1495. ## ----------- ##
  1496. _ACEOF
  1497. # Keep a trace of the command line.
  1498. # Strip out --no-create and --no-recursion so they do not pile up.
  1499. # Strip out --silent because we don't want to record it for future runs.
  1500. # Also quote any args containing shell meta-characters.
  1501. # Make two passes to allow for proper duplicate-argument suppression.
  1502. ac_configure_args=
  1503. ac_configure_args0=
  1504. ac_configure_args1=
  1505. ac_must_keep_next=false
  1506. for ac_pass in 1 2
  1507. do
  1508. for ac_arg
  1509. do
  1510. case $ac_arg in
  1511. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1512. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1513. | -silent | --silent | --silen | --sile | --sil)
  1514. continue ;;
  1515. *\'*)
  1516. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1517. esac
  1518. case $ac_pass in
  1519. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1520. 2)
  1521. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1522. if test $ac_must_keep_next = true; then
  1523. ac_must_keep_next=false # Got value, back to normal.
  1524. else
  1525. case $ac_arg in
  1526. *=* | --config-cache | -C | -disable-* | --disable-* \
  1527. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1528. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1529. | -with-* | --with-* | -without-* | --without-* | --x)
  1530. case "$ac_configure_args0 " in
  1531. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1532. esac
  1533. ;;
  1534. -* ) ac_must_keep_next=true ;;
  1535. esac
  1536. fi
  1537. ac_configure_args="$ac_configure_args '$ac_arg'"
  1538. ;;
  1539. esac
  1540. done
  1541. done
  1542. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1543. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1544. # When interrupted or exit'd, cleanup temporary files, and complete
  1545. # config.log. We remove comments because anyway the quotes in there
  1546. # would cause problems or look ugly.
  1547. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1548. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1549. trap 'exit_status=$?
  1550. # Save into config.log some information that might help in debugging.
  1551. {
  1552. echo
  1553. cat <<\_ASBOX
  1554. ## ---------------- ##
  1555. ## Cache variables. ##
  1556. ## ---------------- ##
  1557. _ASBOX
  1558. echo
  1559. # The following way of writing the cache mishandles newlines in values,
  1560. (
  1561. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1562. eval ac_val=\$$ac_var
  1563. case $ac_val in #(
  1564. *${as_nl}*)
  1565. case $ac_var in #(
  1566. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1567. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1568. esac
  1569. case $ac_var in #(
  1570. _ | IFS | as_nl) ;; #(
  1571. *) $as_unset $ac_var ;;
  1572. esac ;;
  1573. esac
  1574. done
  1575. (set) 2>&1 |
  1576. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1577. *${as_nl}ac_space=\ *)
  1578. sed -n \
  1579. "s/'\''/'\''\\\\'\'''\''/g;
  1580. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1581. ;; #(
  1582. *)
  1583. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1584. ;;
  1585. esac |
  1586. sort
  1587. )
  1588. echo
  1589. cat <<\_ASBOX
  1590. ## ----------------- ##
  1591. ## Output variables. ##
  1592. ## ----------------- ##
  1593. _ASBOX
  1594. echo
  1595. for ac_var in $ac_subst_vars
  1596. do
  1597. eval ac_val=\$$ac_var
  1598. case $ac_val in
  1599. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1600. esac
  1601. echo "$ac_var='\''$ac_val'\''"
  1602. done | sort
  1603. echo
  1604. if test -n "$ac_subst_files"; then
  1605. cat <<\_ASBOX
  1606. ## ------------------- ##
  1607. ## File substitutions. ##
  1608. ## ------------------- ##
  1609. _ASBOX
  1610. echo
  1611. for ac_var in $ac_subst_files
  1612. do
  1613. eval ac_val=\$$ac_var
  1614. case $ac_val in
  1615. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1616. esac
  1617. echo "$ac_var='\''$ac_val'\''"
  1618. done | sort
  1619. echo
  1620. fi
  1621. if test -s confdefs.h; then
  1622. cat <<\_ASBOX
  1623. ## ----------- ##
  1624. ## confdefs.h. ##
  1625. ## ----------- ##
  1626. _ASBOX
  1627. echo
  1628. cat confdefs.h
  1629. echo
  1630. fi
  1631. test "$ac_signal" != 0 &&
  1632. echo "$as_me: caught signal $ac_signal"
  1633. echo "$as_me: exit $exit_status"
  1634. } >&5
  1635. rm -f core *.core core.conftest.* &&
  1636. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1637. exit $exit_status
  1638. ' 0
  1639. for ac_signal in 1 2 13 15; do
  1640. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1641. done
  1642. ac_signal=0
  1643. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1644. rm -f -r conftest* confdefs.h
  1645. # Predefined preprocessor variables.
  1646. cat >>confdefs.h <<_ACEOF
  1647. #define PACKAGE_NAME "$PACKAGE_NAME"
  1648. _ACEOF
  1649. cat >>confdefs.h <<_ACEOF
  1650. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1651. _ACEOF
  1652. cat >>confdefs.h <<_ACEOF
  1653. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1654. _ACEOF
  1655. cat >>confdefs.h <<_ACEOF
  1656. #define PACKAGE_STRING "$PACKAGE_STRING"
  1657. _ACEOF
  1658. cat >>confdefs.h <<_ACEOF
  1659. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1660. _ACEOF
  1661. # Let the site file select an alternate cache file if it wants to.
  1662. # Prefer explicitly selected file to automatically selected ones.
  1663. if test -n "$CONFIG_SITE"; then
  1664. set x "$CONFIG_SITE"
  1665. elif test "x$prefix" != xNONE; then
  1666. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1667. else
  1668. set x "$ac_default_prefix/share/config.site" \
  1669. "$ac_default_prefix/etc/config.site"
  1670. fi
  1671. shift
  1672. for ac_site_file
  1673. do
  1674. if test -r "$ac_site_file"; then
  1675. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1676. echo "$as_me: loading site script $ac_site_file" >&6;}
  1677. sed 's/^/| /' "$ac_site_file" >&5
  1678. . "$ac_site_file"
  1679. fi
  1680. done
  1681. if test -r "$cache_file"; then
  1682. # Some versions of bash will fail to source /dev/null (special
  1683. # files actually), so we avoid doing that.
  1684. if test -f "$cache_file"; then
  1685. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1686. echo "$as_me: loading cache $cache_file" >&6;}
  1687. case $cache_file in
  1688. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1689. *) . "./$cache_file";;
  1690. esac
  1691. fi
  1692. else
  1693. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1694. echo "$as_me: creating cache $cache_file" >&6;}
  1695. >$cache_file
  1696. fi
  1697. # Check that the precious variables saved in the cache have kept the same
  1698. # value.
  1699. ac_cache_corrupted=false
  1700. for ac_var in $ac_precious_vars; do
  1701. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1702. eval ac_new_set=\$ac_env_${ac_var}_set
  1703. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1704. eval ac_new_val=\$ac_env_${ac_var}_value
  1705. case $ac_old_set,$ac_new_set in
  1706. set,)
  1707. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1708. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1709. ac_cache_corrupted=: ;;
  1710. ,set)
  1711. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1712. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1713. ac_cache_corrupted=: ;;
  1714. ,);;
  1715. *)
  1716. if test "x$ac_old_val" != "x$ac_new_val"; then
  1717. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1718. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1719. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1720. echo "$as_me: former value: $ac_old_val" >&2;}
  1721. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1722. echo "$as_me: current value: $ac_new_val" >&2;}
  1723. ac_cache_corrupted=:
  1724. fi;;
  1725. esac
  1726. # Pass precious variables to config.status.
  1727. if test "$ac_new_set" = set; then
  1728. case $ac_new_val in
  1729. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1730. *) ac_arg=$ac_var=$ac_new_val ;;
  1731. esac
  1732. case " $ac_configure_args " in
  1733. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1734. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1735. esac
  1736. fi
  1737. done
  1738. if $ac_cache_corrupted; then
  1739. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1740. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1741. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1742. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1743. { (exit 1); exit 1; }; }
  1744. fi
  1745. ac_ext=c
  1746. ac_cpp='$CPP $CPPFLAGS'
  1747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1750. ac_config_headers="$ac_config_headers src/config.h"
  1751. ac_aux_dir=
  1752. for ac_dir in config "$srcdir"/config; do
  1753. if test -f "$ac_dir/install-sh"; then
  1754. ac_aux_dir=$ac_dir
  1755. ac_install_sh="$ac_aux_dir/install-sh -c"
  1756. break
  1757. elif test -f "$ac_dir/install.sh"; then
  1758. ac_aux_dir=$ac_dir
  1759. ac_install_sh="$ac_aux_dir/install.sh -c"
  1760. break
  1761. elif test -f "$ac_dir/shtool"; then
  1762. ac_aux_dir=$ac_dir
  1763. ac_install_sh="$ac_aux_dir/shtool install -c"
  1764. break
  1765. fi
  1766. done
  1767. if test -z "$ac_aux_dir"; then
  1768. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1769. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1770. { (exit 1); exit 1; }; }
  1771. fi
  1772. # These three variables are undocumented and unsupported,
  1773. # and are intended to be withdrawn in a future Autoconf release.
  1774. # They can cause serious problems if a builder's source tree is in a directory
  1775. # whose full name contains unusual characters.
  1776. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1777. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1778. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1779. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1780. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  1781. # Check whether --enable-maintainer-mode was given.
  1782. if test "${enable_maintainer_mode+set}" = set; then
  1783. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1784. else
  1785. USE_MAINTAINER_MODE=no
  1786. fi
  1787. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1788. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  1789. if test $USE_MAINTAINER_MODE = yes; then
  1790. MAINTAINER_MODE_TRUE=
  1791. MAINTAINER_MODE_FALSE='#'
  1792. else
  1793. MAINTAINER_MODE_TRUE='#'
  1794. MAINTAINER_MODE_FALSE=
  1795. fi
  1796. MAINT=$MAINTAINER_MODE_TRUE
  1797. { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1798. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
  1799. # Check whether --with-dmalloc was given.
  1800. if test "${with_dmalloc+set}" = set; then
  1801. withval=$with_dmalloc; if test "$withval" = yes; then
  1802. { echo "$as_me:$LINENO: result: yes" >&5
  1803. echo "${ECHO_T}yes" >&6; }
  1804. cat >>confdefs.h <<\_ACEOF
  1805. #define WITH_DMALLOC 1
  1806. _ACEOF
  1807. LIBS="$LIBS -ldmalloc"
  1808. LDFLAGS="$LDFLAGS -g"
  1809. else
  1810. { echo "$as_me:$LINENO: result: no" >&5
  1811. echo "${ECHO_T}no" >&6; }
  1812. fi
  1813. else
  1814. { echo "$as_me:$LINENO: result: no" >&5
  1815. echo "${ECHO_T}no" >&6; }
  1816. fi
  1817. MAJOR_VERSION=3
  1818. MINOR_VERSION=2
  1819. MICRO_VERSION=4
  1820. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1821. TCPREPLAY_RELEASE=1
  1822. cat >>confdefs.h <<\_ACEOF
  1823. #define PACKAGE tcpreplay
  1824. _ACEOF
  1825. cat >>confdefs.h <<_ACEOF
  1826. #define VERSION "$TCPREPLAY_VERSION"
  1827. _ACEOF
  1828. USER_CFLAGS=$CFLAGS
  1829. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1830. # Make sure we can run config.sub.
  1831. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1832. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1833. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1834. { (exit 1); exit 1; }; }
  1835. { echo "$as_me:$LINENO: checking build system type" >&5
  1836. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1837. if test "${ac_cv_build+set}" = set; then
  1838. echo $ECHO_N "(cached) $ECHO_C" >&6
  1839. else
  1840. ac_build_alias=$build_alias
  1841. test "x$ac_build_alias" = x &&
  1842. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1843. test "x$ac_build_alias" = x &&
  1844. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1845. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1846. { (exit 1); exit 1; }; }
  1847. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1848. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1849. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1850. { (exit 1); exit 1; }; }
  1851. fi
  1852. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1853. echo "${ECHO_T}$ac_cv_build" >&6; }
  1854. case $ac_cv_build in
  1855. *-*-*) ;;
  1856. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1857. echo "$as_me: error: invalid value of canonical build" >&2;}
  1858. { (exit 1); exit 1; }; };;
  1859. esac
  1860. build=$ac_cv_build
  1861. ac_save_IFS=$IFS; IFS='-'
  1862. set x $ac_cv_build
  1863. shift
  1864. build_cpu=$1
  1865. build_vendor=$2
  1866. shift; shift
  1867. # Remember, the first character of IFS is used to create $*,
  1868. # except with old shells:
  1869. build_os=$*
  1870. IFS=$ac_save_IFS
  1871. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1872. { echo "$as_me:$LINENO: checking host system type" >&5
  1873. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1874. if test "${ac_cv_host+set}" = set; then
  1875. echo $ECHO_N "(cached) $ECHO_C" >&6
  1876. else
  1877. if test "x$host_alias" = x; then
  1878. ac_cv_host=$ac_cv_build
  1879. else
  1880. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1881. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1882. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1883. { (exit 1); exit 1; }; }
  1884. fi
  1885. fi
  1886. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1887. echo "${ECHO_T}$ac_cv_host" >&6; }
  1888. case $ac_cv_host in
  1889. *-*-*) ;;
  1890. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1891. echo "$as_me: error: invalid value of canonical host" >&2;}
  1892. { (exit 1); exit 1; }; };;
  1893. esac
  1894. host=$ac_cv_host
  1895. ac_save_IFS=$IFS; IFS='-'
  1896. set x $ac_cv_host
  1897. shift
  1898. host_cpu=$1
  1899. host_vendor=$2
  1900. shift; shift
  1901. # Remember, the first character of IFS is used to create $*,
  1902. # except with old shells:
  1903. host_os=$*
  1904. IFS=$ac_save_IFS
  1905. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1906. { echo "$as_me:$LINENO: checking target system type" >&5
  1907. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1908. if test "${ac_cv_target+set}" = set; then
  1909. echo $ECHO_N "(cached) $ECHO_C" >&6
  1910. else
  1911. if test "x$target_alias" = x; then
  1912. ac_cv_target=$ac_cv_host
  1913. else
  1914. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1915. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1916. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1917. { (exit 1); exit 1; }; }
  1918. fi
  1919. fi
  1920. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1921. echo "${ECHO_T}$ac_cv_target" >&6; }
  1922. case $ac_cv_target in
  1923. *-*-*) ;;
  1924. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1925. echo "$as_me: error: invalid value of canonical target" >&2;}
  1926. { (exit 1); exit 1; }; };;
  1927. esac
  1928. target=$ac_cv_target
  1929. ac_save_IFS=$IFS; IFS='-'
  1930. set x $ac_cv_target
  1931. shift
  1932. target_cpu=$1
  1933. target_vendor=$2
  1934. shift; shift
  1935. # Remember, the first character of IFS is used to create $*,
  1936. # except with old shells:
  1937. target_os=$*
  1938. IFS=$ac_save_IFS
  1939. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1940. # The aliases save the names the user supplied, while $host etc.
  1941. # will get canonicalized.
  1942. test -n "$target_alias" &&
  1943. test "$program_prefix$program_suffix$program_transform_name" = \
  1944. NONENONEs,x,x, &&
  1945. program_prefix=${target_alias}-
  1946. { echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  1947. echo $ECHO_N "checking for cygwin development environment... $ECHO_C" >&6; }
  1948. if test `echo $target | grep -c cygwin` -gt 0 ; then
  1949. cat >>confdefs.h <<\_ACEOF
  1950. #define HAVE_WIN32 1
  1951. _ACEOF
  1952. { echo "$as_me:$LINENO: result: yes" >&5
  1953. echo "${ECHO_T}yes" >&6; }
  1954. else
  1955. { echo "$as_me:$LINENO: result: no" >&5
  1956. echo "${ECHO_T}no" >&6; }
  1957. fi
  1958. am__api_version='1.10'
  1959. # Find a good install program. We prefer a C program (faster),
  1960. # so one script is as good as another. But avoid the broken or
  1961. # incompatible versions:
  1962. # SysV /etc/install, /usr/sbin/install
  1963. # SunOS /usr/etc/install
  1964. # IRIX /sbin/install
  1965. # AIX /bin/install
  1966. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1967. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1968. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1969. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1970. # OS/2's system install, which has a completely different semantic
  1971. # ./install, which can be erroneously created by make from ./install.sh.
  1972. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1973. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1974. if test -z "$INSTALL"; then
  1975. if test "${ac_cv_path_install+set}" = set; then
  1976. echo $ECHO_N "(cached) $ECHO_C" >&6
  1977. else
  1978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1979. for as_dir in $PATH
  1980. do
  1981. IFS=$as_save_IFS
  1982. test -z "$as_dir" && as_dir=.
  1983. # Account for people who put trailing slashes in PATH elements.
  1984. case $as_dir/ in
  1985. ./ | .// | /cC/* | \
  1986. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1987. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1988. /usr/ucb/* ) ;;
  1989. *)
  1990. # OSF1 and SCO ODT 3.0 have their own names for install.
  1991. # Don't use installbsd from OSF since it installs stuff as root
  1992. # by default.
  1993. for ac_prog in ginstall scoinst install; do
  1994. for ac_exec_ext in '' $ac_executable_extensions; do
  1995. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1996. if test $ac_prog = install &&
  1997. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1998. # AIX install. It has an incompatible calling convention.
  1999. :
  2000. elif test $ac_prog = install &&
  2001. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2002. # program-specific install script used by HP pwplus--don't use.
  2003. :
  2004. else
  2005. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2006. break 3
  2007. fi
  2008. fi
  2009. done
  2010. done
  2011. ;;
  2012. esac
  2013. done
  2014. IFS=$as_save_IFS
  2015. fi
  2016. if test "${ac_cv_path_install+set}" = set; then
  2017. INSTALL=$ac_cv_path_install
  2018. else
  2019. # As a last resort, use the slow shell script. Don't cache a
  2020. # value for INSTALL within a source directory, because that will
  2021. # break other packages using the cache if that directory is
  2022. # removed, or if the value is a relative name.
  2023. INSTALL=$ac_install_sh
  2024. fi
  2025. fi
  2026. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2027. echo "${ECHO_T}$INSTALL" >&6; }
  2028. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2029. # It thinks the first close brace ends the variable substitution.
  2030. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2031. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2032. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2033. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2034. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2035. # Just in case
  2036. sleep 1
  2037. echo timestamp > conftest.file
  2038. # Do `set' in a subshell so we don't clobber the current shell's
  2039. # arguments. Must try -L first in case configure is actually a
  2040. # symlink; some systems play weird games with the mod time of symlinks
  2041. # (eg FreeBSD returns the mod time of the symlink's containing
  2042. # directory).
  2043. if (
  2044. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2045. if test "$*" = "X"; then
  2046. # -L didn't work.
  2047. set X `ls -t $srcdir/configure conftest.file`
  2048. fi
  2049. rm -f conftest.file
  2050. if test "$*" != "X $srcdir/configure conftest.file" \
  2051. && test "$*" != "X conftest.file $srcdir/configure"; then
  2052. # If neither matched, then we have a broken ls. This can happen
  2053. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2054. # broken ls alias from the environment. This has actually
  2055. # happened. Such a system could not be considered "sane".
  2056. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2057. alias in your environment" >&5
  2058. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2059. alias in your environment" >&2;}
  2060. { (exit 1); exit 1; }; }
  2061. fi
  2062. test "$2" = conftest.file
  2063. )
  2064. then
  2065. # Ok.
  2066. :
  2067. else
  2068. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2069. Check your system clock" >&5
  2070. echo "$as_me: error: newly created file is older than distributed files!
  2071. Check your system clock" >&2;}
  2072. { (exit 1); exit 1; }; }
  2073. fi
  2074. { echo "$as_me:$LINENO: result: yes" >&5
  2075. echo "${ECHO_T}yes" >&6; }
  2076. test "$program_prefix" != NONE &&
  2077. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2078. # Use a double $ so make ignores it.
  2079. test "$program_suffix" != NONE &&
  2080. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2081. # Double any \ or $. echo might interpret backslashes.
  2082. # By default was `s,x,x', remove it if useless.
  2083. cat <<\_ACEOF >conftest.sed
  2084. s/[\\$]/&&/g;s/;s,x,x,$//
  2085. _ACEOF
  2086. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2087. rm -f conftest.sed
  2088. # expand $ac_aux_dir to an absolute path
  2089. am_aux_dir=`cd $ac_aux_dir && pwd`
  2090. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2091. # Use eval to expand $SHELL
  2092. if eval "$MISSING --run true"; then
  2093. am_missing_run="$MISSING --run "
  2094. else
  2095. am_missing_run=
  2096. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2097. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2098. fi
  2099. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2100. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2101. if test -z "$MKDIR_P"; then
  2102. if test "${ac_cv_path_mkdir+set}" = set; then
  2103. echo $ECHO_N "(cached) $ECHO_C" >&6
  2104. else
  2105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2106. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2107. do
  2108. IFS=$as_save_IFS
  2109. test -z "$as_dir" && as_dir=.
  2110. for ac_prog in mkdir gmkdir; do
  2111. for ac_exec_ext in '' $ac_executable_extensions; do
  2112. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2113. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2114. 'mkdir (GNU coreutils) '* | \
  2115. 'mkdir (coreutils) '* | \
  2116. 'mkdir (fileutils) '4.1*)
  2117. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2118. break 3;;
  2119. esac
  2120. done
  2121. done
  2122. done
  2123. IFS=$as_save_IFS
  2124. fi
  2125. if test "${ac_cv_path_mkdir+set}" = set; then
  2126. MKDIR_P="$ac_cv_path_mkdir -p"
  2127. else
  2128. # As a last resort, use the slow shell script. Don't cache a
  2129. # value for MKDIR_P within a source directory, because that will
  2130. # break other packages using the cache if that directory is
  2131. # removed, or if the value is a relative name.
  2132. test -d ./--version && rmdir ./--version
  2133. MKDIR_P="$ac_install_sh -d"
  2134. fi
  2135. fi
  2136. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2137. echo "${ECHO_T}$MKDIR_P" >&6; }
  2138. mkdir_p="$MKDIR_P"
  2139. case $mkdir_p in
  2140. [\\/$]* | ?:[\\/]*) ;;
  2141. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2142. esac
  2143. for ac_prog in gawk mawk nawk awk
  2144. do
  2145. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2146. set dummy $ac_prog; ac_word=$2
  2147. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2148. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2149. if test "${ac_cv_prog_AWK+set}" = set; then
  2150. echo $ECHO_N "(cached) $ECHO_C" >&6
  2151. else
  2152. if test -n "$AWK"; then
  2153. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2154. else
  2155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2156. for as_dir in $PATH
  2157. do
  2158. IFS=$as_save_IFS
  2159. test -z "$as_dir" && as_dir=.
  2160. for ac_exec_ext in '' $ac_executable_extensions; do
  2161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2162. ac_cv_prog_AWK="$ac_prog"
  2163. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2164. break 2
  2165. fi
  2166. done
  2167. done
  2168. IFS=$as_save_IFS
  2169. fi
  2170. fi
  2171. AWK=$ac_cv_prog_AWK
  2172. if test -n "$AWK"; then
  2173. { echo "$as_me:$LINENO: result: $AWK" >&5
  2174. echo "${ECHO_T}$AWK" >&6; }
  2175. else
  2176. { echo "$as_me:$LINENO: result: no" >&5
  2177. echo "${ECHO_T}no" >&6; }
  2178. fi
  2179. test -n "$AWK" && break
  2180. done
  2181. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2182. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2183. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2184. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2185. echo $ECHO_N "(cached) $ECHO_C" >&6
  2186. else
  2187. cat >conftest.make <<\_ACEOF
  2188. SHELL = /bin/sh
  2189. all:
  2190. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2191. _ACEOF
  2192. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2193. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2194. *@@@%%%=?*=@@@%%%*)
  2195. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2196. *)
  2197. eval ac_cv_prog_make_${ac_make}_set=no;;
  2198. esac
  2199. rm -f conftest.make
  2200. fi
  2201. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2202. { echo "$as_me:$LINENO: result: yes" >&5
  2203. echo "${ECHO_T}yes" >&6; }
  2204. SET_MAKE=
  2205. else
  2206. { echo "$as_me:$LINENO: result: no" >&5
  2207. echo "${ECHO_T}no" >&6; }
  2208. SET_MAKE="MAKE=${MAKE-make}"
  2209. fi
  2210. rm -rf .tst 2>/dev/null
  2211. mkdir .tst 2>/dev/null
  2212. if test -d .tst; then
  2213. am__leading_dot=.
  2214. else
  2215. am__leading_dot=_
  2216. fi
  2217. rmdir .tst 2>/dev/null
  2218. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2219. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2220. # is not polluted with repeated "-I."
  2221. am__isrc=' -I$(srcdir)'
  2222. # test to see if srcdir already configured
  2223. if test -f $srcdir/config.status; then
  2224. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2225. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2226. { (exit 1); exit 1; }; }
  2227. fi
  2228. fi
  2229. # test whether we have cygpath
  2230. if test -z "$CYGPATH_W"; then
  2231. if (cygpath --version) >/dev/null 2>/dev/null; then
  2232. CYGPATH_W='cygpath -w'
  2233. else
  2234. CYGPATH_W=echo
  2235. fi
  2236. fi
  2237. # Define the identity of the package.
  2238. PACKAGE=tcpreplay
  2239. VERSION=$TCPREPLAY_VERSION
  2240. # Some tools Automake needs.
  2241. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2242. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2243. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2244. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2245. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2246. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2247. # Installed binaries are usually stripped using `strip' when the user
  2248. # run `make install-strip'. However `strip' might not be the right
  2249. # tool to use in cross-compilation environments, therefore Automake
  2250. # will honor the `STRIP' environment variable to overrule this program.
  2251. if test "$cross_compiling" != no; then
  2252. if test -n "$ac_tool_prefix"; then
  2253. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2254. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2255. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2256. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2257. if test "${ac_cv_prog_STRIP+set}" = set; then
  2258. echo $ECHO_N "(cached) $ECHO_C" >&6
  2259. else
  2260. if test -n "$STRIP"; then
  2261. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2262. else
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. for ac_exec_ext in '' $ac_executable_extensions; do
  2269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2270. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2271. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2272. break 2
  2273. fi
  2274. done
  2275. done
  2276. IFS=$as_save_IFS
  2277. fi
  2278. fi
  2279. STRIP=$ac_cv_prog_STRIP
  2280. if test -n "$STRIP"; then
  2281. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2282. echo "${ECHO_T}$STRIP" >&6; }
  2283. else
  2284. { echo "$as_me:$LINENO: result: no" >&5
  2285. echo "${ECHO_T}no" >&6; }
  2286. fi
  2287. fi
  2288. if test -z "$ac_cv_prog_STRIP"; then
  2289. ac_ct_STRIP=$STRIP
  2290. # Extract the first word of "strip", so it can be a program name with args.
  2291. set dummy strip; ac_word=$2
  2292. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2293. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2294. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2295. echo $ECHO_N "(cached) $ECHO_C" >&6
  2296. else
  2297. if test -n "$ac_ct_STRIP"; then
  2298. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2299. else
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. for ac_exec_ext in '' $ac_executable_extensions; do
  2306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2307. ac_cv_prog_ac_ct_STRIP="strip"
  2308. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2309. break 2
  2310. fi
  2311. done
  2312. done
  2313. IFS=$as_save_IFS
  2314. fi
  2315. fi
  2316. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2317. if test -n "$ac_ct_STRIP"; then
  2318. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2319. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2320. else
  2321. { echo "$as_me:$LINENO: result: no" >&5
  2322. echo "${ECHO_T}no" >&6; }
  2323. fi
  2324. if test "x$ac_ct_STRIP" = x; then
  2325. STRIP=":"
  2326. else
  2327. case $cross_compiling:$ac_tool_warned in
  2328. yes:)
  2329. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2330. whose name does not start with the host triplet. If you think this
  2331. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2332. echo "$as_me: 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." >&2;}
  2335. ac_tool_warned=yes ;;
  2336. esac
  2337. STRIP=$ac_ct_STRIP
  2338. fi
  2339. else
  2340. STRIP="$ac_cv_prog_STRIP"
  2341. fi
  2342. fi
  2343. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2344. # We need awk for the "check" target. The system "awk" is bad on
  2345. # some platforms.
  2346. # Always define AMTAR for backward compatibility.
  2347. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2348. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2349. # Find a good install program. We prefer a C program (faster),
  2350. # so one script is as good as another. But avoid the broken or
  2351. # incompatible versions:
  2352. # SysV /etc/install, /usr/sbin/install
  2353. # SunOS /usr/etc/install
  2354. # IRIX /sbin/install
  2355. # AIX /bin/install
  2356. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2357. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2358. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2359. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2360. # OS/2's system install, which has a completely different semantic
  2361. # ./install, which can be erroneously created by make from ./install.sh.
  2362. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2363. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2364. if test -z "$INSTALL"; then
  2365. if test "${ac_cv_path_install+set}" = set; then
  2366. echo $ECHO_N "(cached) $ECHO_C" >&6
  2367. else
  2368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2369. for as_dir in $PATH
  2370. do
  2371. IFS=$as_save_IFS
  2372. test -z "$as_dir" && as_dir=.
  2373. # Account for people who put trailing slashes in PATH elements.
  2374. case $as_dir/ in
  2375. ./ | .// | /cC/* | \
  2376. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2377. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2378. /usr/ucb/* ) ;;
  2379. *)
  2380. # OSF1 and SCO ODT 3.0 have their own names for install.
  2381. # Don't use installbsd from OSF since it installs stuff as root
  2382. # by default.
  2383. for ac_prog in ginstall scoinst install; do
  2384. for ac_exec_ext in '' $ac_executable_extensions; do
  2385. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2386. if test $ac_prog = install &&
  2387. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2388. # AIX install. It has an incompatible calling convention.
  2389. :
  2390. elif test $ac_prog = install &&
  2391. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2392. # program-specific install script used by HP pwplus--don't use.
  2393. :
  2394. else
  2395. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2396. break 3
  2397. fi
  2398. fi
  2399. done
  2400. done
  2401. ;;
  2402. esac
  2403. done
  2404. IFS=$as_save_IFS
  2405. fi
  2406. if test "${ac_cv_path_install+set}" = set; then
  2407. INSTALL=$ac_cv_path_install
  2408. else
  2409. # As a last resort, use the slow shell script. Don't cache a
  2410. # value for INSTALL within a source directory, because that will
  2411. # break other packages using the cache if that directory is
  2412. # removed, or if the value is a relative name.
  2413. INSTALL=$ac_install_sh
  2414. fi
  2415. fi
  2416. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2417. echo "${ECHO_T}$INSTALL" >&6; }
  2418. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2419. # It thinks the first close brace ends the variable substitution.
  2420. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2421. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2422. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2423. # Check whether --enable-shared was given.
  2424. if test "${enable_shared+set}" = set; then
  2425. enableval=$enable_shared; p=${PACKAGE-default}
  2426. case $enableval in
  2427. yes) enable_shared=yes ;;
  2428. no) enable_shared=no ;;
  2429. *)
  2430. enable_shared=no
  2431. # Look at the argument we got. We use all the common list separators.
  2432. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2433. for pkg in $enableval; do
  2434. IFS="$lt_save_ifs"
  2435. if test "X$pkg" = "X$p"; then
  2436. enable_shared=yes
  2437. fi
  2438. done
  2439. IFS="$lt_save_ifs"
  2440. ;;
  2441. esac
  2442. else
  2443. enable_shared=yes
  2444. fi
  2445. # Check whether --enable-static was given.
  2446. if test "${enable_static+set}" = set; then
  2447. enableval=$enable_static; p=${PACKAGE-default}
  2448. case $enableval in
  2449. yes) enable_static=yes ;;
  2450. no) enable_static=no ;;
  2451. *)
  2452. enable_static=no
  2453. # Look at the argument we got. We use all the common list separators.
  2454. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2455. for pkg in $enableval; do
  2456. IFS="$lt_save_ifs"
  2457. if test "X$pkg" = "X$p"; then
  2458. enable_static=yes
  2459. fi
  2460. done
  2461. IFS="$lt_save_ifs"
  2462. ;;
  2463. esac
  2464. else
  2465. enable_static=yes
  2466. fi
  2467. # Check whether --enable-fast-install was given.
  2468. if test "${enable_fast_install+set}" = set; then
  2469. enableval=$enable_fast_install; p=${PACKAGE-default}
  2470. case $enableval in
  2471. yes) enable_fast_install=yes ;;
  2472. no) enable_fast_install=no ;;
  2473. *)
  2474. enable_fast_install=no
  2475. # Look at the argument we got. We use all the common list separators.
  2476. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2477. for pkg in $enableval; do
  2478. IFS="$lt_save_ifs"
  2479. if test "X$pkg" = "X$p"; then
  2480. enable_fast_install=yes
  2481. fi
  2482. done
  2483. IFS="$lt_save_ifs"
  2484. ;;
  2485. esac
  2486. else
  2487. enable_fast_install=yes
  2488. fi
  2489. DEPDIR="${am__leading_dot}deps"
  2490. ac_config_commands="$ac_config_commands depfiles"
  2491. am_make=${MAKE-make}
  2492. cat > confinc << 'END'
  2493. am__doit:
  2494. @echo done
  2495. .PHONY: am__doit
  2496. END
  2497. # If we don't find an include directive, just comment out the code.
  2498. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2499. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2500. am__include="#"
  2501. am__quote=
  2502. _am_result=none
  2503. # First try GNU make style include.
  2504. echo "include confinc" > confmf
  2505. # We grep out `Entering directory' and `Leaving directory'
  2506. # messages which can occur if `w' ends up in MAKEFLAGS.
  2507. # In particular we don't look at `^make:' because GNU make might
  2508. # be invoked under some other name (usually "gmake"), in which
  2509. # case it prints its new name instead of `make'.
  2510. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2511. am__include=include
  2512. am__quote=
  2513. _am_result=GNU
  2514. fi
  2515. # Now try BSD make style include.
  2516. if test "$am__include" = "#"; then
  2517. echo '.include "confinc"' > confmf
  2518. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2519. am__include=.include
  2520. am__quote="\""
  2521. _am_result=BSD
  2522. fi
  2523. fi
  2524. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2525. echo "${ECHO_T}$_am_result" >&6; }
  2526. rm -f confinc confmf
  2527. # Check whether --enable-dependency-tracking was given.
  2528. if test "${enable_dependency_tracking+set}" = set; then
  2529. enableval=$enable_dependency_tracking;
  2530. fi
  2531. if test "x$enable_dependency_tracking" != xno; then
  2532. am_depcomp="$ac_aux_dir/depcomp"
  2533. AMDEPBACKSLASH='\'
  2534. fi
  2535. if test "x$enable_dependency_tracking" != xno; then
  2536. AMDEP_TRUE=
  2537. AMDEP_FALSE='#'
  2538. else
  2539. AMDEP_TRUE='#'
  2540. AMDEP_FALSE=
  2541. fi
  2542. ac_ext=c
  2543. ac_cpp='$CPP $CPPFLAGS'
  2544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2547. if test -n "$ac_tool_prefix"; then
  2548. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2549. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2550. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2551. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2552. if test "${ac_cv_prog_CC+set}" = set; then
  2553. echo $ECHO_N "(cached) $ECHO_C" >&6
  2554. else
  2555. if test -n "$CC"; then
  2556. ac_cv_prog_CC="$CC" # Let the user override the test.
  2557. else
  2558. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2559. for as_dir in $PATH
  2560. do
  2561. IFS=$as_save_IFS
  2562. test -z "$as_dir" && as_dir=.
  2563. for ac_exec_ext in '' $ac_executable_extensions; do
  2564. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2565. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2566. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2567. break 2
  2568. fi
  2569. done
  2570. done
  2571. IFS=$as_save_IFS
  2572. fi
  2573. fi
  2574. CC=$ac_cv_prog_CC
  2575. if test -n "$CC"; then
  2576. { echo "$as_me:$LINENO: result: $CC" >&5
  2577. echo "${ECHO_T}$CC" >&6; }
  2578. else
  2579. { echo "$as_me:$LINENO: result: no" >&5
  2580. echo "${ECHO_T}no" >&6; }
  2581. fi
  2582. fi
  2583. if test -z "$ac_cv_prog_CC"; then
  2584. ac_ct_CC=$CC
  2585. # Extract the first word of "gcc", so it can be a program name with args.
  2586. set dummy gcc; ac_word=$2
  2587. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2588. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2589. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2590. echo $ECHO_N "(cached) $ECHO_C" >&6
  2591. else
  2592. if test -n "$ac_ct_CC"; then
  2593. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2594. else
  2595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2596. for as_dir in $PATH
  2597. do
  2598. IFS=$as_save_IFS
  2599. test -z "$as_dir" && as_dir=.
  2600. for ac_exec_ext in '' $ac_executable_extensions; do
  2601. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2602. ac_cv_prog_ac_ct_CC="gcc"
  2603. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2604. break 2
  2605. fi
  2606. done
  2607. done
  2608. IFS=$as_save_IFS
  2609. fi
  2610. fi
  2611. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2612. if test -n "$ac_ct_CC"; then
  2613. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2614. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2615. else
  2616. { echo "$as_me:$LINENO: result: no" >&5
  2617. echo "${ECHO_T}no" >&6; }
  2618. fi
  2619. if test "x$ac_ct_CC" = x; then
  2620. CC=""
  2621. else
  2622. case $cross_compiling:$ac_tool_warned in
  2623. yes:)
  2624. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2625. whose name does not start with the host triplet. If you think this
  2626. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2627. echo "$as_me: 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." >&2;}
  2630. ac_tool_warned=yes ;;
  2631. esac
  2632. CC=$ac_ct_CC
  2633. fi
  2634. else
  2635. CC="$ac_cv_prog_CC"
  2636. fi
  2637. if test -z "$CC"; then
  2638. if test -n "$ac_tool_prefix"; then
  2639. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2640. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2641. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2642. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2643. if test "${ac_cv_prog_CC+set}" = set; then
  2644. echo $ECHO_N "(cached) $ECHO_C" >&6
  2645. else
  2646. if test -n "$CC"; then
  2647. ac_cv_prog_CC="$CC" # Let the user override the test.
  2648. else
  2649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2650. for as_dir in $PATH
  2651. do
  2652. IFS=$as_save_IFS
  2653. test -z "$as_dir" && as_dir=.
  2654. for ac_exec_ext in '' $ac_executable_extensions; do
  2655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2656. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2657. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2658. break 2
  2659. fi
  2660. done
  2661. done
  2662. IFS=$as_save_IFS
  2663. fi
  2664. fi
  2665. CC=$ac_cv_prog_CC
  2666. if test -n "$CC"; then
  2667. { echo "$as_me:$LINENO: result: $CC" >&5
  2668. echo "${ECHO_T}$CC" >&6; }
  2669. else
  2670. { echo "$as_me:$LINENO: result: no" >&5
  2671. echo "${ECHO_T}no" >&6; }
  2672. fi
  2673. fi
  2674. fi
  2675. if test -z "$CC"; then
  2676. # Extract the first word of "cc", so it can be a program name with args.
  2677. set dummy cc; ac_word=$2
  2678. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2679. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2680. if test "${ac_cv_prog_CC+set}" = set; then
  2681. echo $ECHO_N "(cached) $ECHO_C" >&6
  2682. else
  2683. if test -n "$CC"; then
  2684. ac_cv_prog_CC="$CC" # Let the user override the test.
  2685. else
  2686. ac_prog_rejected=no
  2687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2688. for as_dir in $PATH
  2689. do
  2690. IFS=$as_save_IFS
  2691. test -z "$as_dir" && as_dir=.
  2692. for ac_exec_ext in '' $ac_executable_extensions; do
  2693. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2694. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2695. ac_prog_rejected=yes
  2696. continue
  2697. fi
  2698. ac_cv_prog_CC="cc"
  2699. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2700. break 2
  2701. fi
  2702. done
  2703. done
  2704. IFS=$as_save_IFS
  2705. if test $ac_prog_rejected = yes; then
  2706. # We found a bogon in the path, so make sure we never use it.
  2707. set dummy $ac_cv_prog_CC
  2708. shift
  2709. if test $# != 0; then
  2710. # We chose a different compiler from the bogus one.
  2711. # However, it has the same basename, so the bogon will be chosen
  2712. # first if we set CC to just the basename; use the full file name.
  2713. shift
  2714. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2715. fi
  2716. fi
  2717. fi
  2718. fi
  2719. CC=$ac_cv_prog_CC
  2720. if test -n "$CC"; then
  2721. { echo "$as_me:$LINENO: result: $CC" >&5
  2722. echo "${ECHO_T}$CC" >&6; }
  2723. else
  2724. { echo "$as_me:$LINENO: result: no" >&5
  2725. echo "${ECHO_T}no" >&6; }
  2726. fi
  2727. fi
  2728. if test -z "$CC"; then
  2729. if test -n "$ac_tool_prefix"; then
  2730. for ac_prog in cl.exe
  2731. do
  2732. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2733. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2734. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2735. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2736. if test "${ac_cv_prog_CC+set}" = set; then
  2737. echo $ECHO_N "(cached) $ECHO_C" >&6
  2738. else
  2739. if test -n "$CC"; then
  2740. ac_cv_prog_CC="$CC" # Let the user override the test.
  2741. else
  2742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2743. for as_dir in $PATH
  2744. do
  2745. IFS=$as_save_IFS
  2746. test -z "$as_dir" && as_dir=.
  2747. for ac_exec_ext in '' $ac_executable_extensions; do
  2748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2749. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2750. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2751. break 2
  2752. fi
  2753. done
  2754. done
  2755. IFS=$as_save_IFS
  2756. fi
  2757. fi
  2758. CC=$ac_cv_prog_CC
  2759. if test -n "$CC"; then
  2760. { echo "$as_me:$LINENO: result: $CC" >&5
  2761. echo "${ECHO_T}$CC" >&6; }
  2762. else
  2763. { echo "$as_me:$LINENO: result: no" >&5
  2764. echo "${ECHO_T}no" >&6; }
  2765. fi
  2766. test -n "$CC" && break
  2767. done
  2768. fi
  2769. if test -z "$CC"; then
  2770. ac_ct_CC=$CC
  2771. for ac_prog in cl.exe
  2772. do
  2773. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2774. set dummy $ac_prog; ac_word=$2
  2775. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2776. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2777. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. if test -n "$ac_ct_CC"; then
  2781. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2782. else
  2783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2784. for as_dir in $PATH
  2785. do
  2786. IFS=$as_save_IFS
  2787. test -z "$as_dir" && as_dir=.
  2788. for ac_exec_ext in '' $ac_executable_extensions; do
  2789. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2790. ac_cv_prog_ac_ct_CC="$ac_prog"
  2791. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2792. break 2
  2793. fi
  2794. done
  2795. done
  2796. IFS=$as_save_IFS
  2797. fi
  2798. fi
  2799. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2800. if test -n "$ac_ct_CC"; then
  2801. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2802. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2803. else
  2804. { echo "$as_me:$LINENO: result: no" >&5
  2805. echo "${ECHO_T}no" >&6; }
  2806. fi
  2807. test -n "$ac_ct_CC" && break
  2808. done
  2809. if test "x$ac_ct_CC" = x; then
  2810. CC=""
  2811. else
  2812. case $cross_compiling:$ac_tool_warned in
  2813. yes:)
  2814. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2815. whose name does not start with the host triplet. If you think this
  2816. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2817. echo "$as_me: 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." >&2;}
  2820. ac_tool_warned=yes ;;
  2821. esac
  2822. CC=$ac_ct_CC
  2823. fi
  2824. fi
  2825. fi
  2826. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2827. See \`config.log' for more details." >&5
  2828. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2829. See \`config.log' for more details." >&2;}
  2830. { (exit 1); exit 1; }; }
  2831. # Provide some information about the compiler.
  2832. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2833. ac_compiler=`set X $ac_compile; echo $2`
  2834. { (ac_try="$ac_compiler --version >&5"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2840. (eval "$ac_compiler --version >&5") 2>&5
  2841. ac_status=$?
  2842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843. (exit $ac_status); }
  2844. { (ac_try="$ac_compiler -v >&5"
  2845. case "(($ac_try" in
  2846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847. *) ac_try_echo=$ac_try;;
  2848. esac
  2849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2850. (eval "$ac_compiler -v >&5") 2>&5
  2851. ac_status=$?
  2852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2853. (exit $ac_status); }
  2854. { (ac_try="$ac_compiler -V >&5"
  2855. case "(($ac_try" in
  2856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2857. *) ac_try_echo=$ac_try;;
  2858. esac
  2859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2860. (eval "$ac_compiler -V >&5") 2>&5
  2861. ac_status=$?
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); }
  2864. cat >conftest.$ac_ext <<_ACEOF
  2865. /* confdefs.h. */
  2866. _ACEOF
  2867. cat confdefs.h >>conftest.$ac_ext
  2868. cat >>conftest.$ac_ext <<_ACEOF
  2869. /* end confdefs.h. */
  2870. int
  2871. main ()
  2872. {
  2873. ;
  2874. return 0;
  2875. }
  2876. _ACEOF
  2877. ac_clean_files_save=$ac_clean_files
  2878. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2879. # Try to create an executable without -o first, disregard a.out.
  2880. # It will help us diagnose broken compilers, and finding out an intuition
  2881. # of exeext.
  2882. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2883. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2884. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2885. #
  2886. # List of possible output files, starting from the most likely.
  2887. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2888. # only as a last resort. b.out is created by i960 compilers.
  2889. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2890. #
  2891. # The IRIX 6 linker writes into existing files which may not be
  2892. # executable, retaining their permissions. Remove them first so a
  2893. # subsequent execution test works.
  2894. ac_rmfiles=
  2895. for ac_file in $ac_files
  2896. do
  2897. case $ac_file in
  2898. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2899. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2900. esac
  2901. done
  2902. rm -f $ac_rmfiles
  2903. if { (ac_try="$ac_link_default"
  2904. case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2909. (eval "$ac_link_default") 2>&5
  2910. ac_status=$?
  2911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2912. (exit $ac_status); }; then
  2913. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2914. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2915. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2916. # so that the user can short-circuit this test for compilers unknown to
  2917. # Autoconf.
  2918. for ac_file in $ac_files ''
  2919. do
  2920. test -f "$ac_file" || continue
  2921. case $ac_file in
  2922. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2923. ;;
  2924. [ab].out )
  2925. # We found the default executable, but exeext='' is most
  2926. # certainly right.
  2927. break;;
  2928. *.* )
  2929. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2930. then :; else
  2931. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2932. fi
  2933. # We set ac_cv_exeext here because the later test for it is not
  2934. # safe: cross compilers may not add the suffix if given an `-o'
  2935. # argument, so we may need to know it at that point already.
  2936. # Even if this section looks crufty: it has the advantage of
  2937. # actually working.
  2938. break;;
  2939. * )
  2940. break;;
  2941. esac
  2942. done
  2943. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2944. else
  2945. ac_file=''
  2946. fi
  2947. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2948. echo "${ECHO_T}$ac_file" >&6; }
  2949. if test -z "$ac_file"; then
  2950. echo "$as_me: failed program was:" >&5
  2951. sed 's/^/| /' conftest.$ac_ext >&5
  2952. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2953. See \`config.log' for more details." >&5
  2954. echo "$as_me: error: C compiler cannot create executables
  2955. See \`config.log' for more details." >&2;}
  2956. { (exit 77); exit 77; }; }
  2957. fi
  2958. ac_exeext=$ac_cv_exeext
  2959. # Check that the compiler produces executables we can run. If not, either
  2960. # the compiler is broken, or we cross compile.
  2961. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2962. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2963. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2964. # If not cross compiling, check that we can run a simple program.
  2965. if test "$cross_compiling" != yes; then
  2966. if { ac_try='./$ac_file'
  2967. { (case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2972. (eval "$ac_try") 2>&5
  2973. ac_status=$?
  2974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2975. (exit $ac_status); }; }; then
  2976. cross_compiling=no
  2977. else
  2978. if test "$cross_compiling" = maybe; then
  2979. cross_compiling=yes
  2980. else
  2981. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2982. If you meant to cross compile, use \`--host'.
  2983. See \`config.log' for more details." >&5
  2984. echo "$as_me: error: cannot run C compiled programs.
  2985. If you meant to cross compile, use \`--host'.
  2986. See \`config.log' for more details." >&2;}
  2987. { (exit 1); exit 1; }; }
  2988. fi
  2989. fi
  2990. fi
  2991. { echo "$as_me:$LINENO: result: yes" >&5
  2992. echo "${ECHO_T}yes" >&6; }
  2993. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2994. ac_clean_files=$ac_clean_files_save
  2995. # Check that the compiler produces executables we can run. If not, either
  2996. # the compiler is broken, or we cross compile.
  2997. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2998. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2999. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3000. echo "${ECHO_T}$cross_compiling" >&6; }
  3001. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3002. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3003. if { (ac_try="$ac_link"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3009. (eval "$ac_link") 2>&5
  3010. ac_status=$?
  3011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3012. (exit $ac_status); }; then
  3013. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3014. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3015. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3016. # `rm'.
  3017. for ac_file in conftest.exe conftest conftest.*; do
  3018. test -f "$ac_file" || continue
  3019. case $ac_file in
  3020. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3021. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3022. break;;
  3023. * ) break;;
  3024. esac
  3025. done
  3026. else
  3027. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3028. See \`config.log' for more details." >&5
  3029. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3030. See \`config.log' for more details." >&2;}
  3031. { (exit 1); exit 1; }; }
  3032. fi
  3033. rm -f conftest$ac_cv_exeext
  3034. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3035. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3036. rm -f conftest.$ac_ext
  3037. EXEEXT=$ac_cv_exeext
  3038. ac_exeext=$EXEEXT
  3039. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3040. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3041. if test "${ac_cv_objext+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. cat >conftest.$ac_ext <<_ACEOF
  3045. /* confdefs.h. */
  3046. _ACEOF
  3047. cat confdefs.h >>conftest.$ac_ext
  3048. cat >>conftest.$ac_ext <<_ACEOF
  3049. /* end confdefs.h. */
  3050. int
  3051. main ()
  3052. {
  3053. ;
  3054. return 0;
  3055. }
  3056. _ACEOF
  3057. rm -f conftest.o conftest.obj
  3058. if { (ac_try="$ac_compile"
  3059. case "(($ac_try" in
  3060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3061. *) ac_try_echo=$ac_try;;
  3062. esac
  3063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3064. (eval "$ac_compile") 2>&5
  3065. ac_status=$?
  3066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3067. (exit $ac_status); }; then
  3068. for ac_file in conftest.o conftest.obj conftest.*; do
  3069. test -f "$ac_file" || continue;
  3070. case $ac_file in
  3071. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3072. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3073. break;;
  3074. esac
  3075. done
  3076. else
  3077. echo "$as_me: failed program was:" >&5
  3078. sed 's/^/| /' conftest.$ac_ext >&5
  3079. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3080. See \`config.log' for more details." >&5
  3081. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3082. See \`config.log' for more details." >&2;}
  3083. { (exit 1); exit 1; }; }
  3084. fi
  3085. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3086. fi
  3087. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3088. echo "${ECHO_T}$ac_cv_objext" >&6; }
  3089. OBJEXT=$ac_cv_objext
  3090. ac_objext=$OBJEXT
  3091. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3092. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3093. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3094. echo $ECHO_N "(cached) $ECHO_C" >&6
  3095. else
  3096. cat >conftest.$ac_ext <<_ACEOF
  3097. /* confdefs.h. */
  3098. _ACEOF
  3099. cat confdefs.h >>conftest.$ac_ext
  3100. cat >>conftest.$ac_ext <<_ACEOF
  3101. /* end confdefs.h. */
  3102. int
  3103. main ()
  3104. {
  3105. #ifndef __GNUC__
  3106. choke me
  3107. #endif
  3108. ;
  3109. return 0;
  3110. }
  3111. _ACEOF
  3112. rm -f conftest.$ac_objext
  3113. if { (ac_try="$ac_compile"
  3114. case "(($ac_try" in
  3115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3116. *) ac_try_echo=$ac_try;;
  3117. esac
  3118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3119. (eval "$ac_compile") 2>conftest.er1
  3120. ac_status=$?
  3121. grep -v '^ *+' conftest.er1 >conftest.err
  3122. rm -f conftest.er1
  3123. cat conftest.err >&5
  3124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. (exit $ac_status); } && {
  3126. test -z "$ac_c_werror_flag" ||
  3127. test ! -s conftest.err
  3128. } && test -s conftest.$ac_objext; then
  3129. ac_compiler_gnu=yes
  3130. else
  3131. echo "$as_me: failed program was:" >&5
  3132. sed 's/^/| /' conftest.$ac_ext >&5
  3133. ac_compiler_gnu=no
  3134. fi
  3135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3136. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3137. fi
  3138. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3139. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3140. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3141. ac_test_CFLAGS=${CFLAGS+set}
  3142. ac_save_CFLAGS=$CFLAGS
  3143. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3144. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3145. if test "${ac_cv_prog_cc_g+set}" = set; then
  3146. echo $ECHO_N "(cached) $ECHO_C" >&6
  3147. else
  3148. ac_save_c_werror_flag=$ac_c_werror_flag
  3149. ac_c_werror_flag=yes
  3150. ac_cv_prog_cc_g=no
  3151. CFLAGS="-g"
  3152. cat >conftest.$ac_ext <<_ACEOF
  3153. /* confdefs.h. */
  3154. _ACEOF
  3155. cat confdefs.h >>conftest.$ac_ext
  3156. cat >>conftest.$ac_ext <<_ACEOF
  3157. /* end confdefs.h. */
  3158. int
  3159. main ()
  3160. {
  3161. ;
  3162. return 0;
  3163. }
  3164. _ACEOF
  3165. rm -f conftest.$ac_objext
  3166. if { (ac_try="$ac_compile"
  3167. case "(($ac_try" in
  3168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3169. *) ac_try_echo=$ac_try;;
  3170. esac
  3171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3172. (eval "$ac_compile") 2>conftest.er1
  3173. ac_status=$?
  3174. grep -v '^ *+' conftest.er1 >conftest.err
  3175. rm -f conftest.er1
  3176. cat conftest.err >&5
  3177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3178. (exit $ac_status); } && {
  3179. test -z "$ac_c_werror_flag" ||
  3180. test ! -s conftest.err
  3181. } && test -s conftest.$ac_objext; then
  3182. ac_cv_prog_cc_g=yes
  3183. else
  3184. echo "$as_me: failed program was:" >&5
  3185. sed 's/^/| /' conftest.$ac_ext >&5
  3186. CFLAGS=""
  3187. cat >conftest.$ac_ext <<_ACEOF
  3188. /* confdefs.h. */
  3189. _ACEOF
  3190. cat confdefs.h >>conftest.$ac_ext
  3191. cat >>conftest.$ac_ext <<_ACEOF
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. rm -f conftest.$ac_objext
  3201. if { (ac_try="$ac_compile"
  3202. case "(($ac_try" in
  3203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3204. *) ac_try_echo=$ac_try;;
  3205. esac
  3206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3207. (eval "$ac_compile") 2>conftest.er1
  3208. ac_status=$?
  3209. grep -v '^ *+' conftest.er1 >conftest.err
  3210. rm -f conftest.er1
  3211. cat conftest.err >&5
  3212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3213. (exit $ac_status); } && {
  3214. test -z "$ac_c_werror_flag" ||
  3215. test ! -s conftest.err
  3216. } && test -s conftest.$ac_objext; then
  3217. :
  3218. else
  3219. echo "$as_me: failed program was:" >&5
  3220. sed 's/^/| /' conftest.$ac_ext >&5
  3221. ac_c_werror_flag=$ac_save_c_werror_flag
  3222. CFLAGS="-g"
  3223. cat >conftest.$ac_ext <<_ACEOF
  3224. /* confdefs.h. */
  3225. _ACEOF
  3226. cat confdefs.h >>conftest.$ac_ext
  3227. cat >>conftest.$ac_ext <<_ACEOF
  3228. /* end confdefs.h. */
  3229. int
  3230. main ()
  3231. {
  3232. ;
  3233. return 0;
  3234. }
  3235. _ACEOF
  3236. rm -f conftest.$ac_objext
  3237. if { (ac_try="$ac_compile"
  3238. case "(($ac_try" in
  3239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3240. *) ac_try_echo=$ac_try;;
  3241. esac
  3242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3243. (eval "$ac_compile") 2>conftest.er1
  3244. ac_status=$?
  3245. grep -v '^ *+' conftest.er1 >conftest.err
  3246. rm -f conftest.er1
  3247. cat conftest.err >&5
  3248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3249. (exit $ac_status); } && {
  3250. test -z "$ac_c_werror_flag" ||
  3251. test ! -s conftest.err
  3252. } && test -s conftest.$ac_objext; then
  3253. ac_cv_prog_cc_g=yes
  3254. else
  3255. echo "$as_me: failed program was:" >&5
  3256. sed 's/^/| /' conftest.$ac_ext >&5
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3259. fi
  3260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3261. fi
  3262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3263. ac_c_werror_flag=$ac_save_c_werror_flag
  3264. fi
  3265. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3266. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3267. if test "$ac_test_CFLAGS" = set; then
  3268. CFLAGS=$ac_save_CFLAGS
  3269. elif test $ac_cv_prog_cc_g = yes; then
  3270. if test "$GCC" = yes; then
  3271. CFLAGS="-g -O2"
  3272. else
  3273. CFLAGS="-g"
  3274. fi
  3275. else
  3276. if test "$GCC" = yes; then
  3277. CFLAGS="-O2"
  3278. else
  3279. CFLAGS=
  3280. fi
  3281. fi
  3282. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3283. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3284. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3285. echo $ECHO_N "(cached) $ECHO_C" >&6
  3286. else
  3287. ac_cv_prog_cc_c89=no
  3288. ac_save_CC=$CC
  3289. cat >conftest.$ac_ext <<_ACEOF
  3290. /* confdefs.h. */
  3291. _ACEOF
  3292. cat confdefs.h >>conftest.$ac_ext
  3293. cat >>conftest.$ac_ext <<_ACEOF
  3294. /* end confdefs.h. */
  3295. #include <stdarg.h>
  3296. #include <stdio.h>
  3297. #include <sys/types.h>
  3298. #include <sys/stat.h>
  3299. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3300. struct buf { int x; };
  3301. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3302. static char *e (p, i)
  3303. char **p;
  3304. int i;
  3305. {
  3306. return p[i];
  3307. }
  3308. static char *f (char * (*g) (char **, int), char **p, ...)
  3309. {
  3310. char *s;
  3311. va_list v;
  3312. va_start (v,p);
  3313. s = g (p, va_arg (v,int));
  3314. va_end (v);
  3315. return s;
  3316. }
  3317. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3318. function prototypes and stuff, but not '\xHH' hex character constants.
  3319. These don't provoke an error unfortunately, instead are silently treated
  3320. as 'x'. The following induces an error, until -std is added to get
  3321. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3322. array size at least. It's necessary to write '\x00'==0 to get something
  3323. that's true only with -std. */
  3324. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3325. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3326. inside strings and character constants. */
  3327. #define FOO(x) 'x'
  3328. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3329. int test (int i, double x);
  3330. struct s1 {int (*f) (int a);};
  3331. struct s2 {int (*f) (double a);};
  3332. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3333. int argc;
  3334. char **argv;
  3335. int
  3336. main ()
  3337. {
  3338. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3339. ;
  3340. return 0;
  3341. }
  3342. _ACEOF
  3343. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3344. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3345. do
  3346. CC="$ac_save_CC $ac_arg"
  3347. rm -f conftest.$ac_objext
  3348. if { (ac_try="$ac_compile"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3354. (eval "$ac_compile") 2>conftest.er1
  3355. ac_status=$?
  3356. grep -v '^ *+' conftest.er1 >conftest.err
  3357. rm -f conftest.er1
  3358. cat conftest.err >&5
  3359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3360. (exit $ac_status); } && {
  3361. test -z "$ac_c_werror_flag" ||
  3362. test ! -s conftest.err
  3363. } && test -s conftest.$ac_objext; then
  3364. ac_cv_prog_cc_c89=$ac_arg
  3365. else
  3366. echo "$as_me: failed program was:" >&5
  3367. sed 's/^/| /' conftest.$ac_ext >&5
  3368. fi
  3369. rm -f core conftest.err conftest.$ac_objext
  3370. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3371. done
  3372. rm -f conftest.$ac_ext
  3373. CC=$ac_save_CC
  3374. fi
  3375. # AC_CACHE_VAL
  3376. case "x$ac_cv_prog_cc_c89" in
  3377. x)
  3378. { echo "$as_me:$LINENO: result: none needed" >&5
  3379. echo "${ECHO_T}none needed" >&6; } ;;
  3380. xno)
  3381. { echo "$as_me:$LINENO: result: unsupported" >&5
  3382. echo "${ECHO_T}unsupported" >&6; } ;;
  3383. *)
  3384. CC="$CC $ac_cv_prog_cc_c89"
  3385. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3386. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3387. esac
  3388. ac_ext=c
  3389. ac_cpp='$CPP $CPPFLAGS'
  3390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3393. depcc="$CC" am_compiler_list=
  3394. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3395. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3396. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3397. echo $ECHO_N "(cached) $ECHO_C" >&6
  3398. else
  3399. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3400. # We make a subdir and do the tests there. Otherwise we can end up
  3401. # making bogus files that we don't know about and never remove. For
  3402. # instance it was reported that on HP-UX the gcc test will end up
  3403. # making a dummy file named `D' -- because `-MD' means `put the output
  3404. # in D'.
  3405. mkdir conftest.dir
  3406. # Copy depcomp to subdir because otherwise we won't find it if we're
  3407. # using a relative directory.
  3408. cp "$am_depcomp" conftest.dir
  3409. cd conftest.dir
  3410. # We will build objects and dependencies in a subdirectory because
  3411. # it helps to detect inapplicable dependency modes. For instance
  3412. # both Tru64's cc and ICC support -MD to output dependencies as a
  3413. # side effect of compilation, but ICC will put the dependencies in
  3414. # the current directory while Tru64 will put them in the object
  3415. # directory.
  3416. mkdir sub
  3417. am_cv_CC_dependencies_compiler_type=none
  3418. if test "$am_compiler_list" = ""; then
  3419. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3420. fi
  3421. for depmode in $am_compiler_list; do
  3422. # Setup a source with many dependencies, because some compilers
  3423. # like to wrap large dependency lists on column 80 (with \), and
  3424. # we should not choose a depcomp mode which is confused by this.
  3425. #
  3426. # We need to recreate these files for each test, as the compiler may
  3427. # overwrite some of them when testing with obscure command lines.
  3428. # This happens at least with the AIX C compiler.
  3429. : > sub/conftest.c
  3430. for i in 1 2 3 4 5 6; do
  3431. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3432. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3433. # Solaris 8's {/usr,}/bin/sh.
  3434. touch sub/conftst$i.h
  3435. done
  3436. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3437. case $depmode in
  3438. nosideeffect)
  3439. # after this tag, mechanisms are not by side-effect, so they'll
  3440. # only be used when explicitly requested
  3441. if test "x$enable_dependency_tracking" = xyes; then
  3442. continue
  3443. else
  3444. break
  3445. fi
  3446. ;;
  3447. none) break ;;
  3448. esac
  3449. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3450. # mode. It turns out that the SunPro C++ compiler does not properly
  3451. # handle `-M -o', and we need to detect this.
  3452. if depmode=$depmode \
  3453. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3454. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3455. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3456. >/dev/null 2>conftest.err &&
  3457. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3458. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3459. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3460. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3461. # icc doesn't choke on unknown options, it will just issue warnings
  3462. # or remarks (even with -Werror). So we grep stderr for any message
  3463. # that says an option was ignored or not supported.
  3464. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3465. # icc: Command line warning: ignoring option '-M'; no argument required
  3466. # The diagnosis changed in icc 8.0:
  3467. # icc: Command line remark: option '-MP' not supported
  3468. if (grep 'ignoring option' conftest.err ||
  3469. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3470. am_cv_CC_dependencies_compiler_type=$depmode
  3471. break
  3472. fi
  3473. fi
  3474. done
  3475. cd ..
  3476. rm -rf conftest.dir
  3477. else
  3478. am_cv_CC_dependencies_compiler_type=none
  3479. fi
  3480. fi
  3481. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3482. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3483. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3484. if
  3485. test "x$enable_dependency_tracking" != xno \
  3486. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3487. am__fastdepCC_TRUE=
  3488. am__fastdepCC_FALSE='#'
  3489. else
  3490. am__fastdepCC_TRUE='#'
  3491. am__fastdepCC_FALSE=
  3492. fi
  3493. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3494. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3495. if test "${lt_cv_path_SED+set}" = set; then
  3496. echo $ECHO_N "(cached) $ECHO_C" >&6
  3497. else
  3498. # Loop through the user's path and test for sed and gsed.
  3499. # Then use that list of sed's as ones to test for truncation.
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for lt_ac_prog in sed gsed; do
  3506. for ac_exec_ext in '' $ac_executable_extensions; do
  3507. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3508. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3509. fi
  3510. done
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. lt_ac_max=0
  3515. lt_ac_count=0
  3516. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3517. # along with /bin/sed that truncates output.
  3518. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3519. test ! -f $lt_ac_sed && continue
  3520. cat /dev/null > conftest.in
  3521. lt_ac_count=0
  3522. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3523. # Check for GNU sed and select it if it is found.
  3524. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3525. lt_cv_path_SED=$lt_ac_sed
  3526. break
  3527. fi
  3528. while true; do
  3529. cat conftest.in conftest.in >conftest.tmp
  3530. mv conftest.tmp conftest.in
  3531. cp conftest.in conftest.nl
  3532. echo >>conftest.nl
  3533. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3534. cmp -s conftest.out conftest.nl || break
  3535. # 10000 chars as input seems more than enough
  3536. test $lt_ac_count -gt 10 && break
  3537. lt_ac_count=`expr $lt_ac_count + 1`
  3538. if test $lt_ac_count -gt $lt_ac_max; then
  3539. lt_ac_max=$lt_ac_count
  3540. lt_cv_path_SED=$lt_ac_sed
  3541. fi
  3542. done
  3543. done
  3544. fi
  3545. SED=$lt_cv_path_SED
  3546. { echo "$as_me:$LINENO: result: $SED" >&5
  3547. echo "${ECHO_T}$SED" >&6; }
  3548. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3549. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3550. if test "${ac_cv_path_GREP+set}" = set; then
  3551. echo $ECHO_N "(cached) $ECHO_C" >&6
  3552. else
  3553. # Extract the first word of "grep ggrep" to use in msg output
  3554. if test -z "$GREP"; then
  3555. set dummy grep ggrep; ac_prog_name=$2
  3556. if test "${ac_cv_path_GREP+set}" = set; then
  3557. echo $ECHO_N "(cached) $ECHO_C" >&6
  3558. else
  3559. ac_path_GREP_found=false
  3560. # Loop through the user's path and test for each of PROGNAME-LIST
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_prog in grep ggrep; do
  3567. for ac_exec_ext in '' $ac_executable_extensions; do
  3568. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3569. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3570. # Check for GNU ac_path_GREP and select it if it is found.
  3571. # Check for GNU $ac_path_GREP
  3572. case `"$ac_path_GREP" --version 2>&1` in
  3573. *GNU*)
  3574. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3575. *)
  3576. ac_count=0
  3577. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3578. while :
  3579. do
  3580. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3581. mv "conftest.tmp" "conftest.in"
  3582. cp "conftest.in" "conftest.nl"
  3583. echo 'GREP' >> "conftest.nl"
  3584. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3585. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3586. ac_count=`expr $ac_count + 1`
  3587. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3588. # Best one so far, save it but keep looking for a better one
  3589. ac_cv_path_GREP="$ac_path_GREP"
  3590. ac_path_GREP_max=$ac_count
  3591. fi
  3592. # 10*(2^10) chars as input seems more than enough
  3593. test $ac_count -gt 10 && break
  3594. done
  3595. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3596. esac
  3597. $ac_path_GREP_found && break 3
  3598. done
  3599. done
  3600. done
  3601. IFS=$as_save_IFS
  3602. fi
  3603. GREP="$ac_cv_path_GREP"
  3604. if test -z "$GREP"; then
  3605. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3606. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3607. { (exit 1); exit 1; }; }
  3608. fi
  3609. else
  3610. ac_cv_path_GREP=$GREP
  3611. fi
  3612. fi
  3613. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3614. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3615. GREP="$ac_cv_path_GREP"
  3616. { echo "$as_me:$LINENO: checking for egrep" >&5
  3617. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3618. if test "${ac_cv_path_EGREP+set}" = set; then
  3619. echo $ECHO_N "(cached) $ECHO_C" >&6
  3620. else
  3621. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3622. then ac_cv_path_EGREP="$GREP -E"
  3623. else
  3624. # Extract the first word of "egrep" to use in msg output
  3625. if test -z "$EGREP"; then
  3626. set dummy egrep; ac_prog_name=$2
  3627. if test "${ac_cv_path_EGREP+set}" = set; then
  3628. echo $ECHO_N "(cached) $ECHO_C" >&6
  3629. else
  3630. ac_path_EGREP_found=false
  3631. # Loop through the user's path and test for each of PROGNAME-LIST
  3632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3633. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3634. do
  3635. IFS=$as_save_IFS
  3636. test -z "$as_dir" && as_dir=.
  3637. for ac_prog in egrep; do
  3638. for ac_exec_ext in '' $ac_executable_extensions; do
  3639. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3640. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3641. # Check for GNU ac_path_EGREP and select it if it is found.
  3642. # Check for GNU $ac_path_EGREP
  3643. case `"$ac_path_EGREP" --version 2>&1` in
  3644. *GNU*)
  3645. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3646. *)
  3647. ac_count=0
  3648. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3649. while :
  3650. do
  3651. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3652. mv "conftest.tmp" "conftest.in"
  3653. cp "conftest.in" "conftest.nl"
  3654. echo 'EGREP' >> "conftest.nl"
  3655. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3656. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3657. ac_count=`expr $ac_count + 1`
  3658. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3659. # Best one so far, save it but keep looking for a better one
  3660. ac_cv_path_EGREP="$ac_path_EGREP"
  3661. ac_path_EGREP_max=$ac_count
  3662. fi
  3663. # 10*(2^10) chars as input seems more than enough
  3664. test $ac_count -gt 10 && break
  3665. done
  3666. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3667. esac
  3668. $ac_path_EGREP_found && break 3
  3669. done
  3670. done
  3671. done
  3672. IFS=$as_save_IFS
  3673. fi
  3674. EGREP="$ac_cv_path_EGREP"
  3675. if test -z "$EGREP"; then
  3676. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3677. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3678. { (exit 1); exit 1; }; }
  3679. fi
  3680. else
  3681. ac_cv_path_EGREP=$EGREP
  3682. fi
  3683. fi
  3684. fi
  3685. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3686. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3687. EGREP="$ac_cv_path_EGREP"
  3688. # Check whether --with-gnu-ld was given.
  3689. if test "${with_gnu_ld+set}" = set; then
  3690. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3691. else
  3692. with_gnu_ld=no
  3693. fi
  3694. ac_prog=ld
  3695. if test "$GCC" = yes; then
  3696. # Check if gcc -print-prog-name=ld gives a path.
  3697. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3698. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3699. case $host in
  3700. *-*-mingw*)
  3701. # gcc leaves a trailing carriage return which upsets mingw
  3702. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3703. *)
  3704. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3705. esac
  3706. case $ac_prog in
  3707. # Accept absolute paths.
  3708. [\\/]* | ?:[\\/]*)
  3709. re_direlt='/[^/][^/]*/\.\./'
  3710. # Canonicalize the pathname of ld
  3711. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3712. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3713. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3714. done
  3715. test -z "$LD" && LD="$ac_prog"
  3716. ;;
  3717. "")
  3718. # If it fails, then pretend we aren't using GCC.
  3719. ac_prog=ld
  3720. ;;
  3721. *)
  3722. # If it is relative, then search for the first ld in PATH.
  3723. with_gnu_ld=unknown
  3724. ;;
  3725. esac
  3726. elif test "$with_gnu_ld" = yes; then
  3727. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3728. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3729. else
  3730. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3731. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3732. fi
  3733. if test "${lt_cv_path_LD+set}" = set; then
  3734. echo $ECHO_N "(cached) $ECHO_C" >&6
  3735. else
  3736. if test -z "$LD"; then
  3737. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3738. for ac_dir in $PATH; do
  3739. IFS="$lt_save_ifs"
  3740. test -z "$ac_dir" && ac_dir=.
  3741. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3742. lt_cv_path_LD="$ac_dir/$ac_prog"
  3743. # Check to see if the program is GNU ld. I'd rather use --version,
  3744. # but apparently some variants of GNU ld only accept -v.
  3745. # Break only if it was the GNU/non-GNU ld that we prefer.
  3746. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3747. *GNU* | *'with BFD'*)
  3748. test "$with_gnu_ld" != no && break
  3749. ;;
  3750. *)
  3751. test "$with_gnu_ld" != yes && break
  3752. ;;
  3753. esac
  3754. fi
  3755. done
  3756. IFS="$lt_save_ifs"
  3757. else
  3758. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3759. fi
  3760. fi
  3761. LD="$lt_cv_path_LD"
  3762. if test -n "$LD"; then
  3763. { echo "$as_me:$LINENO: result: $LD" >&5
  3764. echo "${ECHO_T}$LD" >&6; }
  3765. else
  3766. { echo "$as_me:$LINENO: result: no" >&5
  3767. echo "${ECHO_T}no" >&6; }
  3768. fi
  3769. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3770. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3771. { (exit 1); exit 1; }; }
  3772. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3773. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3774. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3775. echo $ECHO_N "(cached) $ECHO_C" >&6
  3776. else
  3777. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3778. case `$LD -v 2>&1 </dev/null` in
  3779. *GNU* | *'with BFD'*)
  3780. lt_cv_prog_gnu_ld=yes
  3781. ;;
  3782. *)
  3783. lt_cv_prog_gnu_ld=no
  3784. ;;
  3785. esac
  3786. fi
  3787. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3788. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3789. with_gnu_ld=$lt_cv_prog_gnu_ld
  3790. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3791. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3792. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3793. echo $ECHO_N "(cached) $ECHO_C" >&6
  3794. else
  3795. lt_cv_ld_reload_flag='-r'
  3796. fi
  3797. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3798. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3799. reload_flag=$lt_cv_ld_reload_flag
  3800. case $reload_flag in
  3801. "" | " "*) ;;
  3802. *) reload_flag=" $reload_flag" ;;
  3803. esac
  3804. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3805. case $host_os in
  3806. darwin*)
  3807. if test "$GCC" = yes; then
  3808. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3809. else
  3810. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3811. fi
  3812. ;;
  3813. esac
  3814. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3815. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3816. if test "${lt_cv_path_NM+set}" = set; then
  3817. echo $ECHO_N "(cached) $ECHO_C" >&6
  3818. else
  3819. if test -n "$NM"; then
  3820. # Let the user override the test.
  3821. lt_cv_path_NM="$NM"
  3822. else
  3823. lt_nm_to_check="${ac_tool_prefix}nm"
  3824. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3825. lt_nm_to_check="$lt_nm_to_check nm"
  3826. fi
  3827. for lt_tmp_nm in $lt_nm_to_check; do
  3828. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3829. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3830. IFS="$lt_save_ifs"
  3831. test -z "$ac_dir" && ac_dir=.
  3832. tmp_nm="$ac_dir/$lt_tmp_nm"
  3833. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3834. # Check to see if the nm accepts a BSD-compat flag.
  3835. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3836. # nm: unknown option "B" ignored
  3837. # Tru64's nm complains that /dev/null is an invalid object file
  3838. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3839. */dev/null* | *'Invalid file or object type'*)
  3840. lt_cv_path_NM="$tmp_nm -B"
  3841. break
  3842. ;;
  3843. *)
  3844. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3845. */dev/null*)
  3846. lt_cv_path_NM="$tmp_nm -p"
  3847. break
  3848. ;;
  3849. *)
  3850. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3851. continue # so that we can try to find one that supports BSD flags
  3852. ;;
  3853. esac
  3854. ;;
  3855. esac
  3856. fi
  3857. done
  3858. IFS="$lt_save_ifs"
  3859. done
  3860. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3861. fi
  3862. fi
  3863. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3864. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3865. NM="$lt_cv_path_NM"
  3866. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3867. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3868. LN_S=$as_ln_s
  3869. if test "$LN_S" = "ln -s"; then
  3870. { echo "$as_me:$LINENO: result: yes" >&5
  3871. echo "${ECHO_T}yes" >&6; }
  3872. else
  3873. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3874. echo "${ECHO_T}no, using $LN_S" >&6; }
  3875. fi
  3876. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3877. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3878. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3879. echo $ECHO_N "(cached) $ECHO_C" >&6
  3880. else
  3881. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3882. lt_cv_file_magic_test_file=
  3883. lt_cv_deplibs_check_method='unknown'
  3884. # Need to set the preceding variable on all platforms that support
  3885. # interlibrary dependencies.
  3886. # 'none' -- dependencies not supported.
  3887. # `unknown' -- same as none, but documents that we really don't know.
  3888. # 'pass_all' -- all dependencies passed with no checks.
  3889. # 'test_compile' -- check by making test program.
  3890. # 'file_magic [[regex]]' -- check by looking for files in library path
  3891. # which responds to the $file_magic_cmd with a given extended regex.
  3892. # If you have `file' or equivalent on your system and you're not sure
  3893. # whether `pass_all' will *always* work, you probably want this one.
  3894. case $host_os in
  3895. aix4* | aix5*)
  3896. lt_cv_deplibs_check_method=pass_all
  3897. ;;
  3898. beos*)
  3899. lt_cv_deplibs_check_method=pass_all
  3900. ;;
  3901. bsdi[45]*)
  3902. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3903. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3904. lt_cv_file_magic_test_file=/shlib/libc.so
  3905. ;;
  3906. cygwin*)
  3907. # func_win32_libid is a shell function defined in ltmain.sh
  3908. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3909. lt_cv_file_magic_cmd='func_win32_libid'
  3910. ;;
  3911. mingw* | pw32*)
  3912. # Base MSYS/MinGW do not provide the 'file' command needed by
  3913. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3914. # unless we find 'file', for example because we are cross-compiling.
  3915. if ( file / ) >/dev/null 2>&1; then
  3916. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3917. lt_cv_file_magic_cmd='func_win32_libid'
  3918. else
  3919. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3920. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3921. fi
  3922. ;;
  3923. darwin* | rhapsody*)
  3924. lt_cv_deplibs_check_method=pass_all
  3925. ;;
  3926. freebsd* | dragonfly*)
  3927. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3928. case $host_cpu in
  3929. i*86 )
  3930. # Not sure whether the presence of OpenBSD here was a mistake.
  3931. # Let's accept both of them until this is cleared up.
  3932. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3933. lt_cv_file_magic_cmd=/usr/bin/file
  3934. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3935. ;;
  3936. esac
  3937. else
  3938. lt_cv_deplibs_check_method=pass_all
  3939. fi
  3940. ;;
  3941. gnu*)
  3942. lt_cv_deplibs_check_method=pass_all
  3943. ;;
  3944. hpux10.20* | hpux11*)
  3945. lt_cv_file_magic_cmd=/usr/bin/file
  3946. case $host_cpu in
  3947. ia64*)
  3948. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3949. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3950. ;;
  3951. hppa*64*)
  3952. 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]'
  3953. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3954. ;;
  3955. *)
  3956. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3957. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3958. ;;
  3959. esac
  3960. ;;
  3961. interix[3-9]*)
  3962. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3963. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3964. ;;
  3965. irix5* | irix6* | nonstopux*)
  3966. case $LD in
  3967. *-32|*"-32 ") libmagic=32-bit;;
  3968. *-n32|*"-n32 ") libmagic=N32;;
  3969. *-64|*"-64 ") libmagic=64-bit;;
  3970. *) libmagic=never-match;;
  3971. esac
  3972. lt_cv_deplibs_check_method=pass_all
  3973. ;;
  3974. # This must be Linux ELF.
  3975. linux* | k*bsd*-gnu)
  3976. lt_cv_deplibs_check_method=pass_all
  3977. ;;
  3978. netbsd*)
  3979. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3980. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3981. else
  3982. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3983. fi
  3984. ;;
  3985. newos6*)
  3986. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3987. lt_cv_file_magic_cmd=/usr/bin/file
  3988. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3989. ;;
  3990. nto-qnx*)
  3991. lt_cv_deplibs_check_method=unknown
  3992. ;;
  3993. openbsd*)
  3994. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3995. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3996. else
  3997. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3998. fi
  3999. ;;
  4000. osf3* | osf4* | osf5*)
  4001. lt_cv_deplibs_check_method=pass_all
  4002. ;;
  4003. rdos*)
  4004. lt_cv_deplibs_check_method=pass_all
  4005. ;;
  4006. solaris*)
  4007. lt_cv_deplibs_check_method=pass_all
  4008. ;;
  4009. sysv4 | sysv4.3*)
  4010. case $host_vendor in
  4011. motorola)
  4012. 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]'
  4013. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4014. ;;
  4015. ncr)
  4016. lt_cv_deplibs_check_method=pass_all
  4017. ;;
  4018. sequent)
  4019. lt_cv_file_magic_cmd='/bin/file'
  4020. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4021. ;;
  4022. sni)
  4023. lt_cv_file_magic_cmd='/bin/file'
  4024. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4025. lt_cv_file_magic_test_file=/lib/libc.so
  4026. ;;
  4027. siemens)
  4028. lt_cv_deplibs_check_method=pass_all
  4029. ;;
  4030. pc)
  4031. lt_cv_deplibs_check_method=pass_all
  4032. ;;
  4033. esac
  4034. ;;
  4035. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4036. lt_cv_deplibs_check_method=pass_all
  4037. ;;
  4038. esac
  4039. fi
  4040. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4041. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4042. file_magic_cmd=$lt_cv_file_magic_cmd
  4043. deplibs_check_method=$lt_cv_deplibs_check_method
  4044. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4045. # If no C compiler was specified, use CC.
  4046. LTCC=${LTCC-"$CC"}
  4047. # If no C compiler flags were specified, use CFLAGS.
  4048. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4049. # Allow CC to be a program name with arguments.
  4050. compiler=$CC
  4051. # Check whether --enable-libtool-lock was given.
  4052. if test "${enable_libtool_lock+set}" = set; then
  4053. enableval=$enable_libtool_lock;
  4054. fi
  4055. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4056. # Some flags need to be propagated to the compiler or linker for good
  4057. # libtool support.
  4058. case $host in
  4059. ia64-*-hpux*)
  4060. # Find out which ABI we are using.
  4061. echo 'int i;' > conftest.$ac_ext
  4062. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4063. (eval $ac_compile) 2>&5
  4064. ac_status=$?
  4065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); }; then
  4067. case `/usr/bin/file conftest.$ac_objext` in
  4068. *ELF-32*)
  4069. HPUX_IA64_MODE="32"
  4070. ;;
  4071. *ELF-64*)
  4072. HPUX_IA64_MODE="64"
  4073. ;;
  4074. esac
  4075. fi
  4076. rm -rf conftest*
  4077. ;;
  4078. *-*-irix6*)
  4079. # Find out which ABI we are using.
  4080. echo '#line 4587 "configure"' > conftest.$ac_ext
  4081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4082. (eval $ac_compile) 2>&5
  4083. ac_status=$?
  4084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4085. (exit $ac_status); }; then
  4086. if test "$lt_cv_prog_gnu_ld" = yes; then
  4087. case `/usr/bin/file conftest.$ac_objext` in
  4088. *32-bit*)
  4089. LD="${LD-ld} -melf32bsmip"
  4090. ;;
  4091. *N32*)
  4092. LD="${LD-ld} -melf32bmipn32"
  4093. ;;
  4094. *64-bit*)
  4095. LD="${LD-ld} -melf64bmip"
  4096. ;;
  4097. esac
  4098. else
  4099. case `/usr/bin/file conftest.$ac_objext` in
  4100. *32-bit*)
  4101. LD="${LD-ld} -32"
  4102. ;;
  4103. *N32*)
  4104. LD="${LD-ld} -n32"
  4105. ;;
  4106. *64-bit*)
  4107. LD="${LD-ld} -64"
  4108. ;;
  4109. esac
  4110. fi
  4111. fi
  4112. rm -rf conftest*
  4113. ;;
  4114. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4115. s390*-*linux*|sparc*-*linux*)
  4116. # Find out which ABI we are using.
  4117. echo 'int i;' > conftest.$ac_ext
  4118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4119. (eval $ac_compile) 2>&5
  4120. ac_status=$?
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); }; then
  4123. case `/usr/bin/file conftest.o` in
  4124. *32-bit*)
  4125. case $host in
  4126. x86_64-*kfreebsd*-gnu)
  4127. LD="${LD-ld} -m elf_i386_fbsd"
  4128. ;;
  4129. x86_64-*linux*)
  4130. LD="${LD-ld} -m elf_i386"
  4131. ;;
  4132. ppc64-*linux*|powerpc64-*linux*)
  4133. LD="${LD-ld} -m elf32ppclinux"
  4134. ;;
  4135. s390x-*linux*)
  4136. LD="${LD-ld} -m elf_s390"
  4137. ;;
  4138. sparc64-*linux*)
  4139. LD="${LD-ld} -m elf32_sparc"
  4140. ;;
  4141. esac
  4142. ;;
  4143. *64-bit*)
  4144. case $host in
  4145. x86_64-*kfreebsd*-gnu)
  4146. LD="${LD-ld} -m elf_x86_64_fbsd"
  4147. ;;
  4148. x86_64-*linux*)
  4149. LD="${LD-ld} -m elf_x86_64"
  4150. ;;
  4151. ppc*-*linux*|powerpc*-*linux*)
  4152. LD="${LD-ld} -m elf64ppc"
  4153. ;;
  4154. s390*-*linux*)
  4155. LD="${LD-ld} -m elf64_s390"
  4156. ;;
  4157. sparc*-*linux*)
  4158. LD="${LD-ld} -m elf64_sparc"
  4159. ;;
  4160. esac
  4161. ;;
  4162. esac
  4163. fi
  4164. rm -rf conftest*
  4165. ;;
  4166. *-*-sco3.2v5*)
  4167. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4168. SAVE_CFLAGS="$CFLAGS"
  4169. CFLAGS="$CFLAGS -belf"
  4170. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4171. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4172. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4173. echo $ECHO_N "(cached) $ECHO_C" >&6
  4174. else
  4175. ac_ext=c
  4176. ac_cpp='$CPP $CPPFLAGS'
  4177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4180. cat >conftest.$ac_ext <<_ACEOF
  4181. /* confdefs.h. */
  4182. _ACEOF
  4183. cat confdefs.h >>conftest.$ac_ext
  4184. cat >>conftest.$ac_ext <<_ACEOF
  4185. /* end confdefs.h. */
  4186. int
  4187. main ()
  4188. {
  4189. ;
  4190. return 0;
  4191. }
  4192. _ACEOF
  4193. rm -f conftest.$ac_objext conftest$ac_exeext
  4194. if { (ac_try="$ac_link"
  4195. case "(($ac_try" in
  4196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4197. *) ac_try_echo=$ac_try;;
  4198. esac
  4199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4200. (eval "$ac_link") 2>conftest.er1
  4201. ac_status=$?
  4202. grep -v '^ *+' conftest.er1 >conftest.err
  4203. rm -f conftest.er1
  4204. cat conftest.err >&5
  4205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4206. (exit $ac_status); } && {
  4207. test -z "$ac_c_werror_flag" ||
  4208. test ! -s conftest.err
  4209. } && test -s conftest$ac_exeext &&
  4210. $as_test_x conftest$ac_exeext; then
  4211. lt_cv_cc_needs_belf=yes
  4212. else
  4213. echo "$as_me: failed program was:" >&5
  4214. sed 's/^/| /' conftest.$ac_ext >&5
  4215. lt_cv_cc_needs_belf=no
  4216. fi
  4217. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4218. conftest$ac_exeext conftest.$ac_ext
  4219. ac_ext=c
  4220. ac_cpp='$CPP $CPPFLAGS'
  4221. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4222. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4223. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4224. fi
  4225. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4226. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4227. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4228. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4229. CFLAGS="$SAVE_CFLAGS"
  4230. fi
  4231. ;;
  4232. sparc*-*solaris*)
  4233. # Find out which ABI we are using.
  4234. echo 'int i;' > conftest.$ac_ext
  4235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4236. (eval $ac_compile) 2>&5
  4237. ac_status=$?
  4238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4239. (exit $ac_status); }; then
  4240. case `/usr/bin/file conftest.o` in
  4241. *64-bit*)
  4242. case $lt_cv_prog_gnu_ld in
  4243. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4244. *) LD="${LD-ld} -64" ;;
  4245. esac
  4246. ;;
  4247. esac
  4248. fi
  4249. rm -rf conftest*
  4250. ;;
  4251. esac
  4252. need_locks="$enable_libtool_lock"
  4253. ac_ext=c
  4254. ac_cpp='$CPP $CPPFLAGS'
  4255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4258. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4259. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4260. # On Suns, sometimes $CPP names a directory.
  4261. if test -n "$CPP" && test -d "$CPP"; then
  4262. CPP=
  4263. fi
  4264. if test -z "$CPP"; then
  4265. if test "${ac_cv_prog_CPP+set}" = set; then
  4266. echo $ECHO_N "(cached) $ECHO_C" >&6
  4267. else
  4268. # Double quotes because CPP needs to be expanded
  4269. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4270. do
  4271. ac_preproc_ok=false
  4272. for ac_c_preproc_warn_flag in '' yes
  4273. do
  4274. # Use a header file that comes with gcc, so configuring glibc
  4275. # with a fresh cross-compiler works.
  4276. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4277. # <limits.h> exists even on freestanding compilers.
  4278. # On the NeXT, cc -E runs the code through the compiler's parser,
  4279. # not just through cpp. "Syntax error" is here to catch this case.
  4280. cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h. */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h. */
  4286. #ifdef __STDC__
  4287. # include <limits.h>
  4288. #else
  4289. # include <assert.h>
  4290. #endif
  4291. Syntax error
  4292. _ACEOF
  4293. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4294. case "(($ac_try" in
  4295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4296. *) ac_try_echo=$ac_try;;
  4297. esac
  4298. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4299. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4300. ac_status=$?
  4301. grep -v '^ *+' conftest.er1 >conftest.err
  4302. rm -f conftest.er1
  4303. cat conftest.err >&5
  4304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4305. (exit $ac_status); } >/dev/null && {
  4306. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4307. test ! -s conftest.err
  4308. }; then
  4309. :
  4310. else
  4311. echo "$as_me: failed program was:" >&5
  4312. sed 's/^/| /' conftest.$ac_ext >&5
  4313. # Broken: fails on valid input.
  4314. continue
  4315. fi
  4316. rm -f conftest.err conftest.$ac_ext
  4317. # OK, works on sane cases. Now check whether nonexistent headers
  4318. # can be detected and how.
  4319. cat >conftest.$ac_ext <<_ACEOF
  4320. /* confdefs.h. */
  4321. _ACEOF
  4322. cat confdefs.h >>conftest.$ac_ext
  4323. cat >>conftest.$ac_ext <<_ACEOF
  4324. /* end confdefs.h. */
  4325. #include <ac_nonexistent.h>
  4326. _ACEOF
  4327. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4328. case "(($ac_try" in
  4329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4330. *) ac_try_echo=$ac_try;;
  4331. esac
  4332. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4333. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4334. ac_status=$?
  4335. grep -v '^ *+' conftest.er1 >conftest.err
  4336. rm -f conftest.er1
  4337. cat conftest.err >&5
  4338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4339. (exit $ac_status); } >/dev/null && {
  4340. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4341. test ! -s conftest.err
  4342. }; then
  4343. # Broken: success on invalid input.
  4344. continue
  4345. else
  4346. echo "$as_me: failed program was:" >&5
  4347. sed 's/^/| /' conftest.$ac_ext >&5
  4348. # Passes both tests.
  4349. ac_preproc_ok=:
  4350. break
  4351. fi
  4352. rm -f conftest.err conftest.$ac_ext
  4353. done
  4354. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4355. rm -f conftest.err conftest.$ac_ext
  4356. if $ac_preproc_ok; then
  4357. break
  4358. fi
  4359. done
  4360. ac_cv_prog_CPP=$CPP
  4361. fi
  4362. CPP=$ac_cv_prog_CPP
  4363. else
  4364. ac_cv_prog_CPP=$CPP
  4365. fi
  4366. { echo "$as_me:$LINENO: result: $CPP" >&5
  4367. echo "${ECHO_T}$CPP" >&6; }
  4368. ac_preproc_ok=false
  4369. for ac_c_preproc_warn_flag in '' yes
  4370. do
  4371. # Use a header file that comes with gcc, so configuring glibc
  4372. # with a fresh cross-compiler works.
  4373. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4374. # <limits.h> exists even on freestanding compilers.
  4375. # On the NeXT, cc -E runs the code through the compiler's parser,
  4376. # not just through cpp. "Syntax error" is here to catch this case.
  4377. cat >conftest.$ac_ext <<_ACEOF
  4378. /* confdefs.h. */
  4379. _ACEOF
  4380. cat confdefs.h >>conftest.$ac_ext
  4381. cat >>conftest.$ac_ext <<_ACEOF
  4382. /* end confdefs.h. */
  4383. #ifdef __STDC__
  4384. # include <limits.h>
  4385. #else
  4386. # include <assert.h>
  4387. #endif
  4388. Syntax error
  4389. _ACEOF
  4390. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4391. case "(($ac_try" in
  4392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4393. *) ac_try_echo=$ac_try;;
  4394. esac
  4395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4396. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4397. ac_status=$?
  4398. grep -v '^ *+' conftest.er1 >conftest.err
  4399. rm -f conftest.er1
  4400. cat conftest.err >&5
  4401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4402. (exit $ac_status); } >/dev/null && {
  4403. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4404. test ! -s conftest.err
  4405. }; then
  4406. :
  4407. else
  4408. echo "$as_me: failed program was:" >&5
  4409. sed 's/^/| /' conftest.$ac_ext >&5
  4410. # Broken: fails on valid input.
  4411. continue
  4412. fi
  4413. rm -f conftest.err conftest.$ac_ext
  4414. # OK, works on sane cases. Now check whether nonexistent headers
  4415. # can be detected and how.
  4416. cat >conftest.$ac_ext <<_ACEOF
  4417. /* confdefs.h. */
  4418. _ACEOF
  4419. cat confdefs.h >>conftest.$ac_ext
  4420. cat >>conftest.$ac_ext <<_ACEOF
  4421. /* end confdefs.h. */
  4422. #include <ac_nonexistent.h>
  4423. _ACEOF
  4424. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4425. case "(($ac_try" in
  4426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4427. *) ac_try_echo=$ac_try;;
  4428. esac
  4429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4430. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4431. ac_status=$?
  4432. grep -v '^ *+' conftest.er1 >conftest.err
  4433. rm -f conftest.er1
  4434. cat conftest.err >&5
  4435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4436. (exit $ac_status); } >/dev/null && {
  4437. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4438. test ! -s conftest.err
  4439. }; then
  4440. # Broken: success on invalid input.
  4441. continue
  4442. else
  4443. echo "$as_me: failed program was:" >&5
  4444. sed 's/^/| /' conftest.$ac_ext >&5
  4445. # Passes both tests.
  4446. ac_preproc_ok=:
  4447. break
  4448. fi
  4449. rm -f conftest.err conftest.$ac_ext
  4450. done
  4451. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4452. rm -f conftest.err conftest.$ac_ext
  4453. if $ac_preproc_ok; then
  4454. :
  4455. else
  4456. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4457. See \`config.log' for more details." >&5
  4458. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4459. See \`config.log' for more details." >&2;}
  4460. { (exit 1); exit 1; }; }
  4461. fi
  4462. ac_ext=c
  4463. ac_cpp='$CPP $CPPFLAGS'
  4464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4467. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4468. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4469. if test "${ac_cv_header_stdc+set}" = set; then
  4470. echo $ECHO_N "(cached) $ECHO_C" >&6
  4471. else
  4472. cat >conftest.$ac_ext <<_ACEOF
  4473. /* confdefs.h. */
  4474. _ACEOF
  4475. cat confdefs.h >>conftest.$ac_ext
  4476. cat >>conftest.$ac_ext <<_ACEOF
  4477. /* end confdefs.h. */
  4478. #include <stdlib.h>
  4479. #include <stdarg.h>
  4480. #include <string.h>
  4481. #include <float.h>
  4482. int
  4483. main ()
  4484. {
  4485. ;
  4486. return 0;
  4487. }
  4488. _ACEOF
  4489. rm -f conftest.$ac_objext
  4490. if { (ac_try="$ac_compile"
  4491. case "(($ac_try" in
  4492. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4493. *) ac_try_echo=$ac_try;;
  4494. esac
  4495. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4496. (eval "$ac_compile") 2>conftest.er1
  4497. ac_status=$?
  4498. grep -v '^ *+' conftest.er1 >conftest.err
  4499. rm -f conftest.er1
  4500. cat conftest.err >&5
  4501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4502. (exit $ac_status); } && {
  4503. test -z "$ac_c_werror_flag" ||
  4504. test ! -s conftest.err
  4505. } && test -s conftest.$ac_objext; then
  4506. ac_cv_header_stdc=yes
  4507. else
  4508. echo "$as_me: failed program was:" >&5
  4509. sed 's/^/| /' conftest.$ac_ext >&5
  4510. ac_cv_header_stdc=no
  4511. fi
  4512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4513. if test $ac_cv_header_stdc = yes; then
  4514. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4515. cat >conftest.$ac_ext <<_ACEOF
  4516. /* confdefs.h. */
  4517. _ACEOF
  4518. cat confdefs.h >>conftest.$ac_ext
  4519. cat >>conftest.$ac_ext <<_ACEOF
  4520. /* end confdefs.h. */
  4521. #include <string.h>
  4522. _ACEOF
  4523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4524. $EGREP "memchr" >/dev/null 2>&1; then
  4525. :
  4526. else
  4527. ac_cv_header_stdc=no
  4528. fi
  4529. rm -f conftest*
  4530. fi
  4531. if test $ac_cv_header_stdc = yes; then
  4532. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4533. cat >conftest.$ac_ext <<_ACEOF
  4534. /* confdefs.h. */
  4535. _ACEOF
  4536. cat confdefs.h >>conftest.$ac_ext
  4537. cat >>conftest.$ac_ext <<_ACEOF
  4538. /* end confdefs.h. */
  4539. #include <stdlib.h>
  4540. _ACEOF
  4541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4542. $EGREP "free" >/dev/null 2>&1; then
  4543. :
  4544. else
  4545. ac_cv_header_stdc=no
  4546. fi
  4547. rm -f conftest*
  4548. fi
  4549. if test $ac_cv_header_stdc = yes; then
  4550. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4551. if test "$cross_compiling" = yes; then
  4552. :
  4553. else
  4554. cat >conftest.$ac_ext <<_ACEOF
  4555. /* confdefs.h. */
  4556. _ACEOF
  4557. cat confdefs.h >>conftest.$ac_ext
  4558. cat >>conftest.$ac_ext <<_ACEOF
  4559. /* end confdefs.h. */
  4560. #include <ctype.h>
  4561. #include <stdlib.h>
  4562. #if ((' ' & 0x0FF) == 0x020)
  4563. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4564. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4565. #else
  4566. # define ISLOWER(c) \
  4567. (('a' <= (c) && (c) <= 'i') \
  4568. || ('j' <= (c) && (c) <= 'r') \
  4569. || ('s' <= (c) && (c) <= 'z'))
  4570. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4571. #endif
  4572. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4573. int
  4574. main ()
  4575. {
  4576. int i;
  4577. for (i = 0; i < 256; i++)
  4578. if (XOR (islower (i), ISLOWER (i))
  4579. || toupper (i) != TOUPPER (i))
  4580. return 2;
  4581. return 0;
  4582. }
  4583. _ACEOF
  4584. rm -f conftest$ac_exeext
  4585. if { (ac_try="$ac_link"
  4586. case "(($ac_try" in
  4587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4588. *) ac_try_echo=$ac_try;;
  4589. esac
  4590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4591. (eval "$ac_link") 2>&5
  4592. ac_status=$?
  4593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4594. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4595. { (case "(($ac_try" in
  4596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4597. *) ac_try_echo=$ac_try;;
  4598. esac
  4599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4600. (eval "$ac_try") 2>&5
  4601. ac_status=$?
  4602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4603. (exit $ac_status); }; }; then
  4604. :
  4605. else
  4606. echo "$as_me: program exited with status $ac_status" >&5
  4607. echo "$as_me: failed program was:" >&5
  4608. sed 's/^/| /' conftest.$ac_ext >&5
  4609. ( exit $ac_status )
  4610. ac_cv_header_stdc=no
  4611. fi
  4612. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4613. fi
  4614. fi
  4615. fi
  4616. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4617. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4618. if test $ac_cv_header_stdc = yes; then
  4619. cat >>confdefs.h <<\_ACEOF
  4620. #define STDC_HEADERS 1
  4621. _ACEOF
  4622. fi
  4623. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4624. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4625. inttypes.h stdint.h unistd.h
  4626. do
  4627. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4628. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4629. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4630. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4631. echo $ECHO_N "(cached) $ECHO_C" >&6
  4632. else
  4633. cat >conftest.$ac_ext <<_ACEOF
  4634. /* confdefs.h. */
  4635. _ACEOF
  4636. cat confdefs.h >>conftest.$ac_ext
  4637. cat >>conftest.$ac_ext <<_ACEOF
  4638. /* end confdefs.h. */
  4639. $ac_includes_default
  4640. #include <$ac_header>
  4641. _ACEOF
  4642. rm -f conftest.$ac_objext
  4643. if { (ac_try="$ac_compile"
  4644. case "(($ac_try" in
  4645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4646. *) ac_try_echo=$ac_try;;
  4647. esac
  4648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4649. (eval "$ac_compile") 2>conftest.er1
  4650. ac_status=$?
  4651. grep -v '^ *+' conftest.er1 >conftest.err
  4652. rm -f conftest.er1
  4653. cat conftest.err >&5
  4654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4655. (exit $ac_status); } && {
  4656. test -z "$ac_c_werror_flag" ||
  4657. test ! -s conftest.err
  4658. } && test -s conftest.$ac_objext; then
  4659. eval "$as_ac_Header=yes"
  4660. else
  4661. echo "$as_me: failed program was:" >&5
  4662. sed 's/^/| /' conftest.$ac_ext >&5
  4663. eval "$as_ac_Header=no"
  4664. fi
  4665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4666. fi
  4667. ac_res=`eval echo '${'$as_ac_Header'}'`
  4668. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4669. echo "${ECHO_T}$ac_res" >&6; }
  4670. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4671. cat >>confdefs.h <<_ACEOF
  4672. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4673. _ACEOF
  4674. fi
  4675. done
  4676. for ac_header in dlfcn.h
  4677. do
  4678. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4679. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4680. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4681. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4682. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4683. echo $ECHO_N "(cached) $ECHO_C" >&6
  4684. fi
  4685. ac_res=`eval echo '${'$as_ac_Header'}'`
  4686. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4687. echo "${ECHO_T}$ac_res" >&6; }
  4688. else
  4689. # Is the header compilable?
  4690. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4691. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4692. cat >conftest.$ac_ext <<_ACEOF
  4693. /* confdefs.h. */
  4694. _ACEOF
  4695. cat confdefs.h >>conftest.$ac_ext
  4696. cat >>conftest.$ac_ext <<_ACEOF
  4697. /* end confdefs.h. */
  4698. $ac_includes_default
  4699. #include <$ac_header>
  4700. _ACEOF
  4701. rm -f conftest.$ac_objext
  4702. if { (ac_try="$ac_compile"
  4703. case "(($ac_try" in
  4704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4705. *) ac_try_echo=$ac_try;;
  4706. esac
  4707. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4708. (eval "$ac_compile") 2>conftest.er1
  4709. ac_status=$?
  4710. grep -v '^ *+' conftest.er1 >conftest.err
  4711. rm -f conftest.er1
  4712. cat conftest.err >&5
  4713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4714. (exit $ac_status); } && {
  4715. test -z "$ac_c_werror_flag" ||
  4716. test ! -s conftest.err
  4717. } && test -s conftest.$ac_objext; then
  4718. ac_header_compiler=yes
  4719. else
  4720. echo "$as_me: failed program was:" >&5
  4721. sed 's/^/| /' conftest.$ac_ext >&5
  4722. ac_header_compiler=no
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4725. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4726. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4727. # Is the header present?
  4728. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4729. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4730. cat >conftest.$ac_ext <<_ACEOF
  4731. /* confdefs.h. */
  4732. _ACEOF
  4733. cat confdefs.h >>conftest.$ac_ext
  4734. cat >>conftest.$ac_ext <<_ACEOF
  4735. /* end confdefs.h. */
  4736. #include <$ac_header>
  4737. _ACEOF
  4738. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4739. case "(($ac_try" in
  4740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4741. *) ac_try_echo=$ac_try;;
  4742. esac
  4743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4744. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4745. ac_status=$?
  4746. grep -v '^ *+' conftest.er1 >conftest.err
  4747. rm -f conftest.er1
  4748. cat conftest.err >&5
  4749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); } >/dev/null && {
  4751. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4752. test ! -s conftest.err
  4753. }; then
  4754. ac_header_preproc=yes
  4755. else
  4756. echo "$as_me: failed program was:" >&5
  4757. sed 's/^/| /' conftest.$ac_ext >&5
  4758. ac_header_preproc=no
  4759. fi
  4760. rm -f conftest.err conftest.$ac_ext
  4761. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4762. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4763. # So? What about this header?
  4764. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4765. yes:no: )
  4766. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4767. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4768. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4769. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4770. ac_header_preproc=yes
  4771. ;;
  4772. no:yes:* )
  4773. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4774. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4775. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4776. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4777. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4778. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4779. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4780. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4781. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4782. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4783. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4784. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4785. ;;
  4786. esac
  4787. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4788. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4789. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4790. echo $ECHO_N "(cached) $ECHO_C" >&6
  4791. else
  4792. eval "$as_ac_Header=\$ac_header_preproc"
  4793. fi
  4794. ac_res=`eval echo '${'$as_ac_Header'}'`
  4795. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4796. echo "${ECHO_T}$ac_res" >&6; }
  4797. fi
  4798. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4799. cat >>confdefs.h <<_ACEOF
  4800. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4801. _ACEOF
  4802. fi
  4803. done
  4804. ac_ext=cpp
  4805. ac_cpp='$CXXCPP $CPPFLAGS'
  4806. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4807. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4808. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4809. if test -z "$CXX"; then
  4810. if test -n "$CCC"; then
  4811. CXX=$CCC
  4812. else
  4813. if test -n "$ac_tool_prefix"; then
  4814. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4815. do
  4816. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4817. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4818. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4819. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4820. if test "${ac_cv_prog_CXX+set}" = set; then
  4821. echo $ECHO_N "(cached) $ECHO_C" >&6
  4822. else
  4823. if test -n "$CXX"; then
  4824. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4825. else
  4826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4827. for as_dir in $PATH
  4828. do
  4829. IFS=$as_save_IFS
  4830. test -z "$as_dir" && as_dir=.
  4831. for ac_exec_ext in '' $ac_executable_extensions; do
  4832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4833. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4834. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4835. break 2
  4836. fi
  4837. done
  4838. done
  4839. IFS=$as_save_IFS
  4840. fi
  4841. fi
  4842. CXX=$ac_cv_prog_CXX
  4843. if test -n "$CXX"; then
  4844. { echo "$as_me:$LINENO: result: $CXX" >&5
  4845. echo "${ECHO_T}$CXX" >&6; }
  4846. else
  4847. { echo "$as_me:$LINENO: result: no" >&5
  4848. echo "${ECHO_T}no" >&6; }
  4849. fi
  4850. test -n "$CXX" && break
  4851. done
  4852. fi
  4853. if test -z "$CXX"; then
  4854. ac_ct_CXX=$CXX
  4855. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4856. do
  4857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4858. set dummy $ac_prog; ac_word=$2
  4859. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4860. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4861. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4862. echo $ECHO_N "(cached) $ECHO_C" >&6
  4863. else
  4864. if test -n "$ac_ct_CXX"; then
  4865. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4866. else
  4867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4868. for as_dir in $PATH
  4869. do
  4870. IFS=$as_save_IFS
  4871. test -z "$as_dir" && as_dir=.
  4872. for ac_exec_ext in '' $ac_executable_extensions; do
  4873. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4874. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4875. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4876. break 2
  4877. fi
  4878. done
  4879. done
  4880. IFS=$as_save_IFS
  4881. fi
  4882. fi
  4883. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4884. if test -n "$ac_ct_CXX"; then
  4885. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4886. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4887. else
  4888. { echo "$as_me:$LINENO: result: no" >&5
  4889. echo "${ECHO_T}no" >&6; }
  4890. fi
  4891. test -n "$ac_ct_CXX" && break
  4892. done
  4893. if test "x$ac_ct_CXX" = x; then
  4894. CXX="g++"
  4895. else
  4896. case $cross_compiling:$ac_tool_warned in
  4897. yes:)
  4898. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4899. whose name does not start with the host triplet. If you think this
  4900. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4901. echo "$as_me: 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." >&2;}
  4904. ac_tool_warned=yes ;;
  4905. esac
  4906. CXX=$ac_ct_CXX
  4907. fi
  4908. fi
  4909. fi
  4910. fi
  4911. # Provide some information about the compiler.
  4912. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4913. ac_compiler=`set X $ac_compile; echo $2`
  4914. { (ac_try="$ac_compiler --version >&5"
  4915. case "(($ac_try" in
  4916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4917. *) ac_try_echo=$ac_try;;
  4918. esac
  4919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4920. (eval "$ac_compiler --version >&5") 2>&5
  4921. ac_status=$?
  4922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4923. (exit $ac_status); }
  4924. { (ac_try="$ac_compiler -v >&5"
  4925. case "(($ac_try" in
  4926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4927. *) ac_try_echo=$ac_try;;
  4928. esac
  4929. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4930. (eval "$ac_compiler -v >&5") 2>&5
  4931. ac_status=$?
  4932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4933. (exit $ac_status); }
  4934. { (ac_try="$ac_compiler -V >&5"
  4935. case "(($ac_try" in
  4936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4937. *) ac_try_echo=$ac_try;;
  4938. esac
  4939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4940. (eval "$ac_compiler -V >&5") 2>&5
  4941. ac_status=$?
  4942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4943. (exit $ac_status); }
  4944. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4945. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4946. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4947. echo $ECHO_N "(cached) $ECHO_C" >&6
  4948. else
  4949. cat >conftest.$ac_ext <<_ACEOF
  4950. /* confdefs.h. */
  4951. _ACEOF
  4952. cat confdefs.h >>conftest.$ac_ext
  4953. cat >>conftest.$ac_ext <<_ACEOF
  4954. /* end confdefs.h. */
  4955. int
  4956. main ()
  4957. {
  4958. #ifndef __GNUC__
  4959. choke me
  4960. #endif
  4961. ;
  4962. return 0;
  4963. }
  4964. _ACEOF
  4965. rm -f conftest.$ac_objext
  4966. if { (ac_try="$ac_compile"
  4967. case "(($ac_try" in
  4968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4969. *) ac_try_echo=$ac_try;;
  4970. esac
  4971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4972. (eval "$ac_compile") 2>conftest.er1
  4973. ac_status=$?
  4974. grep -v '^ *+' conftest.er1 >conftest.err
  4975. rm -f conftest.er1
  4976. cat conftest.err >&5
  4977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4978. (exit $ac_status); } && {
  4979. test -z "$ac_cxx_werror_flag" ||
  4980. test ! -s conftest.err
  4981. } && test -s conftest.$ac_objext; then
  4982. ac_compiler_gnu=yes
  4983. else
  4984. echo "$as_me: failed program was:" >&5
  4985. sed 's/^/| /' conftest.$ac_ext >&5
  4986. ac_compiler_gnu=no
  4987. fi
  4988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4989. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4990. fi
  4991. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4992. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4993. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4994. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4995. ac_save_CXXFLAGS=$CXXFLAGS
  4996. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4997. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4998. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4999. echo $ECHO_N "(cached) $ECHO_C" >&6
  5000. else
  5001. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5002. ac_cxx_werror_flag=yes
  5003. ac_cv_prog_cxx_g=no
  5004. CXXFLAGS="-g"
  5005. cat >conftest.$ac_ext <<_ACEOF
  5006. /* confdefs.h. */
  5007. _ACEOF
  5008. cat confdefs.h >>conftest.$ac_ext
  5009. cat >>conftest.$ac_ext <<_ACEOF
  5010. /* end confdefs.h. */
  5011. int
  5012. main ()
  5013. {
  5014. ;
  5015. return 0;
  5016. }
  5017. _ACEOF
  5018. rm -f conftest.$ac_objext
  5019. if { (ac_try="$ac_compile"
  5020. case "(($ac_try" in
  5021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5022. *) ac_try_echo=$ac_try;;
  5023. esac
  5024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5025. (eval "$ac_compile") 2>conftest.er1
  5026. ac_status=$?
  5027. grep -v '^ *+' conftest.er1 >conftest.err
  5028. rm -f conftest.er1
  5029. cat conftest.err >&5
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); } && {
  5032. test -z "$ac_cxx_werror_flag" ||
  5033. test ! -s conftest.err
  5034. } && test -s conftest.$ac_objext; then
  5035. ac_cv_prog_cxx_g=yes
  5036. else
  5037. echo "$as_me: failed program was:" >&5
  5038. sed 's/^/| /' conftest.$ac_ext >&5
  5039. CXXFLAGS=""
  5040. cat >conftest.$ac_ext <<_ACEOF
  5041. /* confdefs.h. */
  5042. _ACEOF
  5043. cat confdefs.h >>conftest.$ac_ext
  5044. cat >>conftest.$ac_ext <<_ACEOF
  5045. /* end confdefs.h. */
  5046. int
  5047. main ()
  5048. {
  5049. ;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. rm -f conftest.$ac_objext
  5054. if { (ac_try="$ac_compile"
  5055. case "(($ac_try" in
  5056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5057. *) ac_try_echo=$ac_try;;
  5058. esac
  5059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5060. (eval "$ac_compile") 2>conftest.er1
  5061. ac_status=$?
  5062. grep -v '^ *+' conftest.er1 >conftest.err
  5063. rm -f conftest.er1
  5064. cat conftest.err >&5
  5065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5066. (exit $ac_status); } && {
  5067. test -z "$ac_cxx_werror_flag" ||
  5068. test ! -s conftest.err
  5069. } && test -s conftest.$ac_objext; then
  5070. :
  5071. else
  5072. echo "$as_me: failed program was:" >&5
  5073. sed 's/^/| /' conftest.$ac_ext >&5
  5074. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5075. CXXFLAGS="-g"
  5076. cat >conftest.$ac_ext <<_ACEOF
  5077. /* confdefs.h. */
  5078. _ACEOF
  5079. cat confdefs.h >>conftest.$ac_ext
  5080. cat >>conftest.$ac_ext <<_ACEOF
  5081. /* end confdefs.h. */
  5082. int
  5083. main ()
  5084. {
  5085. ;
  5086. return 0;
  5087. }
  5088. _ACEOF
  5089. rm -f conftest.$ac_objext
  5090. if { (ac_try="$ac_compile"
  5091. case "(($ac_try" in
  5092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5093. *) ac_try_echo=$ac_try;;
  5094. esac
  5095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5096. (eval "$ac_compile") 2>conftest.er1
  5097. ac_status=$?
  5098. grep -v '^ *+' conftest.er1 >conftest.err
  5099. rm -f conftest.er1
  5100. cat conftest.err >&5
  5101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5102. (exit $ac_status); } && {
  5103. test -z "$ac_cxx_werror_flag" ||
  5104. test ! -s conftest.err
  5105. } && test -s conftest.$ac_objext; then
  5106. ac_cv_prog_cxx_g=yes
  5107. else
  5108. echo "$as_me: failed program was:" >&5
  5109. sed 's/^/| /' conftest.$ac_ext >&5
  5110. fi
  5111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5112. fi
  5113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5117. fi
  5118. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5119. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5120. if test "$ac_test_CXXFLAGS" = set; then
  5121. CXXFLAGS=$ac_save_CXXFLAGS
  5122. elif test $ac_cv_prog_cxx_g = yes; then
  5123. if test "$GXX" = yes; then
  5124. CXXFLAGS="-g -O2"
  5125. else
  5126. CXXFLAGS="-g"
  5127. fi
  5128. else
  5129. if test "$GXX" = yes; then
  5130. CXXFLAGS="-O2"
  5131. else
  5132. CXXFLAGS=
  5133. fi
  5134. fi
  5135. ac_ext=cpp
  5136. ac_cpp='$CXXCPP $CPPFLAGS'
  5137. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5138. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5139. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5140. depcc="$CXX" am_compiler_list=
  5141. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5142. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5143. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5144. echo $ECHO_N "(cached) $ECHO_C" >&6
  5145. else
  5146. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5147. # We make a subdir and do the tests there. Otherwise we can end up
  5148. # making bogus files that we don't know about and never remove. For
  5149. # instance it was reported that on HP-UX the gcc test will end up
  5150. # making a dummy file named `D' -- because `-MD' means `put the output
  5151. # in D'.
  5152. mkdir conftest.dir
  5153. # Copy depcomp to subdir because otherwise we won't find it if we're
  5154. # using a relative directory.
  5155. cp "$am_depcomp" conftest.dir
  5156. cd conftest.dir
  5157. # We will build objects and dependencies in a subdirectory because
  5158. # it helps to detect inapplicable dependency modes. For instance
  5159. # both Tru64's cc and ICC support -MD to output dependencies as a
  5160. # side effect of compilation, but ICC will put the dependencies in
  5161. # the current directory while Tru64 will put them in the object
  5162. # directory.
  5163. mkdir sub
  5164. am_cv_CXX_dependencies_compiler_type=none
  5165. if test "$am_compiler_list" = ""; then
  5166. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5167. fi
  5168. for depmode in $am_compiler_list; do
  5169. # Setup a source with many dependencies, because some compilers
  5170. # like to wrap large dependency lists on column 80 (with \), and
  5171. # we should not choose a depcomp mode which is confused by this.
  5172. #
  5173. # We need to recreate these files for each test, as the compiler may
  5174. # overwrite some of them when testing with obscure command lines.
  5175. # This happens at least with the AIX C compiler.
  5176. : > sub/conftest.c
  5177. for i in 1 2 3 4 5 6; do
  5178. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5179. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5180. # Solaris 8's {/usr,}/bin/sh.
  5181. touch sub/conftst$i.h
  5182. done
  5183. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5184. case $depmode in
  5185. nosideeffect)
  5186. # after this tag, mechanisms are not by side-effect, so they'll
  5187. # only be used when explicitly requested
  5188. if test "x$enable_dependency_tracking" = xyes; then
  5189. continue
  5190. else
  5191. break
  5192. fi
  5193. ;;
  5194. none) break ;;
  5195. esac
  5196. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5197. # mode. It turns out that the SunPro C++ compiler does not properly
  5198. # handle `-M -o', and we need to detect this.
  5199. if depmode=$depmode \
  5200. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5201. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5202. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5203. >/dev/null 2>conftest.err &&
  5204. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5205. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5206. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5207. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5208. # icc doesn't choke on unknown options, it will just issue warnings
  5209. # or remarks (even with -Werror). So we grep stderr for any message
  5210. # that says an option was ignored or not supported.
  5211. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5212. # icc: Command line warning: ignoring option '-M'; no argument required
  5213. # The diagnosis changed in icc 8.0:
  5214. # icc: Command line remark: option '-MP' not supported
  5215. if (grep 'ignoring option' conftest.err ||
  5216. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5217. am_cv_CXX_dependencies_compiler_type=$depmode
  5218. break
  5219. fi
  5220. fi
  5221. done
  5222. cd ..
  5223. rm -rf conftest.dir
  5224. else
  5225. am_cv_CXX_dependencies_compiler_type=none
  5226. fi
  5227. fi
  5228. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5229. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5230. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5231. if
  5232. test "x$enable_dependency_tracking" != xno \
  5233. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5234. am__fastdepCXX_TRUE=
  5235. am__fastdepCXX_FALSE='#'
  5236. else
  5237. am__fastdepCXX_TRUE='#'
  5238. am__fastdepCXX_FALSE=
  5239. fi
  5240. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5241. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5242. (test "X$CXX" != "Xg++"))) ; then
  5243. ac_ext=cpp
  5244. ac_cpp='$CXXCPP $CPPFLAGS'
  5245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5248. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5249. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5250. if test -z "$CXXCPP"; then
  5251. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5252. echo $ECHO_N "(cached) $ECHO_C" >&6
  5253. else
  5254. # Double quotes because CXXCPP needs to be expanded
  5255. for CXXCPP in "$CXX -E" "/lib/cpp"
  5256. do
  5257. ac_preproc_ok=false
  5258. for ac_cxx_preproc_warn_flag in '' yes
  5259. do
  5260. # Use a header file that comes with gcc, so configuring glibc
  5261. # with a fresh cross-compiler works.
  5262. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5263. # <limits.h> exists even on freestanding compilers.
  5264. # On the NeXT, cc -E runs the code through the compiler's parser,
  5265. # not just through cpp. "Syntax error" is here to catch this case.
  5266. cat >conftest.$ac_ext <<_ACEOF
  5267. /* confdefs.h. */
  5268. _ACEOF
  5269. cat confdefs.h >>conftest.$ac_ext
  5270. cat >>conftest.$ac_ext <<_ACEOF
  5271. /* end confdefs.h. */
  5272. #ifdef __STDC__
  5273. # include <limits.h>
  5274. #else
  5275. # include <assert.h>
  5276. #endif
  5277. Syntax error
  5278. _ACEOF
  5279. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5280. case "(($ac_try" in
  5281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5282. *) ac_try_echo=$ac_try;;
  5283. esac
  5284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5285. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5286. ac_status=$?
  5287. grep -v '^ *+' conftest.er1 >conftest.err
  5288. rm -f conftest.er1
  5289. cat conftest.err >&5
  5290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5291. (exit $ac_status); } >/dev/null && {
  5292. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5293. test ! -s conftest.err
  5294. }; then
  5295. :
  5296. else
  5297. echo "$as_me: failed program was:" >&5
  5298. sed 's/^/| /' conftest.$ac_ext >&5
  5299. # Broken: fails on valid input.
  5300. continue
  5301. fi
  5302. rm -f conftest.err conftest.$ac_ext
  5303. # OK, works on sane cases. Now check whether nonexistent headers
  5304. # can be detected and how.
  5305. cat >conftest.$ac_ext <<_ACEOF
  5306. /* confdefs.h. */
  5307. _ACEOF
  5308. cat confdefs.h >>conftest.$ac_ext
  5309. cat >>conftest.$ac_ext <<_ACEOF
  5310. /* end confdefs.h. */
  5311. #include <ac_nonexistent.h>
  5312. _ACEOF
  5313. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5314. case "(($ac_try" in
  5315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5316. *) ac_try_echo=$ac_try;;
  5317. esac
  5318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5319. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5320. ac_status=$?
  5321. grep -v '^ *+' conftest.er1 >conftest.err
  5322. rm -f conftest.er1
  5323. cat conftest.err >&5
  5324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5325. (exit $ac_status); } >/dev/null && {
  5326. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5327. test ! -s conftest.err
  5328. }; then
  5329. # Broken: success on invalid input.
  5330. continue
  5331. else
  5332. echo "$as_me: failed program was:" >&5
  5333. sed 's/^/| /' conftest.$ac_ext >&5
  5334. # Passes both tests.
  5335. ac_preproc_ok=:
  5336. break
  5337. fi
  5338. rm -f conftest.err conftest.$ac_ext
  5339. done
  5340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5341. rm -f conftest.err conftest.$ac_ext
  5342. if $ac_preproc_ok; then
  5343. break
  5344. fi
  5345. done
  5346. ac_cv_prog_CXXCPP=$CXXCPP
  5347. fi
  5348. CXXCPP=$ac_cv_prog_CXXCPP
  5349. else
  5350. ac_cv_prog_CXXCPP=$CXXCPP
  5351. fi
  5352. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5353. echo "${ECHO_T}$CXXCPP" >&6; }
  5354. ac_preproc_ok=false
  5355. for ac_cxx_preproc_warn_flag in '' yes
  5356. do
  5357. # Use a header file that comes with gcc, so configuring glibc
  5358. # with a fresh cross-compiler works.
  5359. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5360. # <limits.h> exists even on freestanding compilers.
  5361. # On the NeXT, cc -E runs the code through the compiler's parser,
  5362. # not just through cpp. "Syntax error" is here to catch this case.
  5363. cat >conftest.$ac_ext <<_ACEOF
  5364. /* confdefs.h. */
  5365. _ACEOF
  5366. cat confdefs.h >>conftest.$ac_ext
  5367. cat >>conftest.$ac_ext <<_ACEOF
  5368. /* end confdefs.h. */
  5369. #ifdef __STDC__
  5370. # include <limits.h>
  5371. #else
  5372. # include <assert.h>
  5373. #endif
  5374. Syntax error
  5375. _ACEOF
  5376. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5377. case "(($ac_try" in
  5378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5379. *) ac_try_echo=$ac_try;;
  5380. esac
  5381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5382. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5383. ac_status=$?
  5384. grep -v '^ *+' conftest.er1 >conftest.err
  5385. rm -f conftest.er1
  5386. cat conftest.err >&5
  5387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5388. (exit $ac_status); } >/dev/null && {
  5389. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5390. test ! -s conftest.err
  5391. }; then
  5392. :
  5393. else
  5394. echo "$as_me: failed program was:" >&5
  5395. sed 's/^/| /' conftest.$ac_ext >&5
  5396. # Broken: fails on valid input.
  5397. continue
  5398. fi
  5399. rm -f conftest.err conftest.$ac_ext
  5400. # OK, works on sane cases. Now check whether nonexistent headers
  5401. # can be detected and how.
  5402. cat >conftest.$ac_ext <<_ACEOF
  5403. /* confdefs.h. */
  5404. _ACEOF
  5405. cat confdefs.h >>conftest.$ac_ext
  5406. cat >>conftest.$ac_ext <<_ACEOF
  5407. /* end confdefs.h. */
  5408. #include <ac_nonexistent.h>
  5409. _ACEOF
  5410. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5411. case "(($ac_try" in
  5412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5413. *) ac_try_echo=$ac_try;;
  5414. esac
  5415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5416. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5417. ac_status=$?
  5418. grep -v '^ *+' conftest.er1 >conftest.err
  5419. rm -f conftest.er1
  5420. cat conftest.err >&5
  5421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5422. (exit $ac_status); } >/dev/null && {
  5423. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5424. test ! -s conftest.err
  5425. }; then
  5426. # Broken: success on invalid input.
  5427. continue
  5428. else
  5429. echo "$as_me: failed program was:" >&5
  5430. sed 's/^/| /' conftest.$ac_ext >&5
  5431. # Passes both tests.
  5432. ac_preproc_ok=:
  5433. break
  5434. fi
  5435. rm -f conftest.err conftest.$ac_ext
  5436. done
  5437. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5438. rm -f conftest.err conftest.$ac_ext
  5439. if $ac_preproc_ok; then
  5440. :
  5441. else
  5442. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5443. See \`config.log' for more details." >&5
  5444. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5445. See \`config.log' for more details." >&2;}
  5446. { (exit 1); exit 1; }; }
  5447. fi
  5448. ac_ext=cpp
  5449. ac_cpp='$CXXCPP $CPPFLAGS'
  5450. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5451. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5452. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5453. fi
  5454. ac_ext=f
  5455. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5456. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5457. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5458. if test -n "$ac_tool_prefix"; then
  5459. 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
  5460. do
  5461. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5462. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5463. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5464. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5465. if test "${ac_cv_prog_F77+set}" = set; then
  5466. echo $ECHO_N "(cached) $ECHO_C" >&6
  5467. else
  5468. if test -n "$F77"; then
  5469. ac_cv_prog_F77="$F77" # Let the user override the test.
  5470. else
  5471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472. for as_dir in $PATH
  5473. do
  5474. IFS=$as_save_IFS
  5475. test -z "$as_dir" && as_dir=.
  5476. for ac_exec_ext in '' $ac_executable_extensions; do
  5477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5478. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5479. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5480. break 2
  5481. fi
  5482. done
  5483. done
  5484. IFS=$as_save_IFS
  5485. fi
  5486. fi
  5487. F77=$ac_cv_prog_F77
  5488. if test -n "$F77"; then
  5489. { echo "$as_me:$LINENO: result: $F77" >&5
  5490. echo "${ECHO_T}$F77" >&6; }
  5491. else
  5492. { echo "$as_me:$LINENO: result: no" >&5
  5493. echo "${ECHO_T}no" >&6; }
  5494. fi
  5495. test -n "$F77" && break
  5496. done
  5497. fi
  5498. if test -z "$F77"; then
  5499. ac_ct_F77=$F77
  5500. 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
  5501. do
  5502. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5503. set dummy $ac_prog; ac_word=$2
  5504. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5506. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. else
  5509. if test -n "$ac_ct_F77"; then
  5510. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5511. else
  5512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5513. for as_dir in $PATH
  5514. do
  5515. IFS=$as_save_IFS
  5516. test -z "$as_dir" && as_dir=.
  5517. for ac_exec_ext in '' $ac_executable_extensions; do
  5518. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5519. ac_cv_prog_ac_ct_F77="$ac_prog"
  5520. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5521. break 2
  5522. fi
  5523. done
  5524. done
  5525. IFS=$as_save_IFS
  5526. fi
  5527. fi
  5528. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5529. if test -n "$ac_ct_F77"; then
  5530. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5531. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5532. else
  5533. { echo "$as_me:$LINENO: result: no" >&5
  5534. echo "${ECHO_T}no" >&6; }
  5535. fi
  5536. test -n "$ac_ct_F77" && break
  5537. done
  5538. if test "x$ac_ct_F77" = x; then
  5539. F77=""
  5540. else
  5541. case $cross_compiling:$ac_tool_warned in
  5542. yes:)
  5543. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5544. whose name does not start with the host triplet. If you think this
  5545. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5546. echo "$as_me: 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." >&2;}
  5549. ac_tool_warned=yes ;;
  5550. esac
  5551. F77=$ac_ct_F77
  5552. fi
  5553. fi
  5554. # Provide some information about the compiler.
  5555. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5556. ac_compiler=`set X $ac_compile; echo $2`
  5557. { (ac_try="$ac_compiler --version >&5"
  5558. case "(($ac_try" in
  5559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5560. *) ac_try_echo=$ac_try;;
  5561. esac
  5562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5563. (eval "$ac_compiler --version >&5") 2>&5
  5564. ac_status=$?
  5565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5566. (exit $ac_status); }
  5567. { (ac_try="$ac_compiler -v >&5"
  5568. case "(($ac_try" in
  5569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5570. *) ac_try_echo=$ac_try;;
  5571. esac
  5572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5573. (eval "$ac_compiler -v >&5") 2>&5
  5574. ac_status=$?
  5575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5576. (exit $ac_status); }
  5577. { (ac_try="$ac_compiler -V >&5"
  5578. case "(($ac_try" in
  5579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5580. *) ac_try_echo=$ac_try;;
  5581. esac
  5582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5583. (eval "$ac_compiler -V >&5") 2>&5
  5584. ac_status=$?
  5585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5586. (exit $ac_status); }
  5587. rm -f a.out
  5588. # If we don't use `.F' as extension, the preprocessor is not run on the
  5589. # input file. (Note that this only needs to work for GNU compilers.)
  5590. ac_save_ext=$ac_ext
  5591. ac_ext=F
  5592. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5593. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5594. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. cat >conftest.$ac_ext <<_ACEOF
  5598. program main
  5599. #ifndef __GNUC__
  5600. choke me
  5601. #endif
  5602. end
  5603. _ACEOF
  5604. rm -f conftest.$ac_objext
  5605. if { (ac_try="$ac_compile"
  5606. case "(($ac_try" in
  5607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5608. *) ac_try_echo=$ac_try;;
  5609. esac
  5610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5611. (eval "$ac_compile") 2>conftest.er1
  5612. ac_status=$?
  5613. grep -v '^ *+' conftest.er1 >conftest.err
  5614. rm -f conftest.er1
  5615. cat conftest.err >&5
  5616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617. (exit $ac_status); } && {
  5618. test -z "$ac_f77_werror_flag" ||
  5619. test ! -s conftest.err
  5620. } && test -s conftest.$ac_objext; then
  5621. ac_compiler_gnu=yes
  5622. else
  5623. echo "$as_me: failed program was:" >&5
  5624. sed 's/^/| /' conftest.$ac_ext >&5
  5625. ac_compiler_gnu=no
  5626. fi
  5627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5628. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5629. fi
  5630. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5631. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5632. ac_ext=$ac_save_ext
  5633. ac_test_FFLAGS=${FFLAGS+set}
  5634. ac_save_FFLAGS=$FFLAGS
  5635. FFLAGS=
  5636. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5637. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5638. if test "${ac_cv_prog_f77_g+set}" = set; then
  5639. echo $ECHO_N "(cached) $ECHO_C" >&6
  5640. else
  5641. FFLAGS=-g
  5642. cat >conftest.$ac_ext <<_ACEOF
  5643. program main
  5644. end
  5645. _ACEOF
  5646. rm -f conftest.$ac_objext
  5647. if { (ac_try="$ac_compile"
  5648. case "(($ac_try" in
  5649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5650. *) ac_try_echo=$ac_try;;
  5651. esac
  5652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5653. (eval "$ac_compile") 2>conftest.er1
  5654. ac_status=$?
  5655. grep -v '^ *+' conftest.er1 >conftest.err
  5656. rm -f conftest.er1
  5657. cat conftest.err >&5
  5658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5659. (exit $ac_status); } && {
  5660. test -z "$ac_f77_werror_flag" ||
  5661. test ! -s conftest.err
  5662. } && test -s conftest.$ac_objext; then
  5663. ac_cv_prog_f77_g=yes
  5664. else
  5665. echo "$as_me: failed program was:" >&5
  5666. sed 's/^/| /' conftest.$ac_ext >&5
  5667. ac_cv_prog_f77_g=no
  5668. fi
  5669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5670. fi
  5671. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5672. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5673. if test "$ac_test_FFLAGS" = set; then
  5674. FFLAGS=$ac_save_FFLAGS
  5675. elif test $ac_cv_prog_f77_g = yes; then
  5676. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5677. FFLAGS="-g -O2"
  5678. else
  5679. FFLAGS="-g"
  5680. fi
  5681. else
  5682. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5683. FFLAGS="-O2"
  5684. else
  5685. FFLAGS=
  5686. fi
  5687. fi
  5688. G77=`test $ac_compiler_gnu = yes && echo yes`
  5689. ac_ext=c
  5690. ac_cpp='$CPP $CPPFLAGS'
  5691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5694. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5695. # find the maximum length of command line arguments
  5696. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5697. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5698. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5699. echo $ECHO_N "(cached) $ECHO_C" >&6
  5700. else
  5701. i=0
  5702. teststring="ABCD"
  5703. case $build_os in
  5704. msdosdjgpp*)
  5705. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5706. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5707. # during glob expansion). Even if it were fixed, the result of this
  5708. # check would be larger than it should be.
  5709. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5710. ;;
  5711. gnu*)
  5712. # Under GNU Hurd, this test is not required because there is
  5713. # no limit to the length of command line arguments.
  5714. # Libtool will interpret -1 as no limit whatsoever
  5715. lt_cv_sys_max_cmd_len=-1;
  5716. ;;
  5717. cygwin* | mingw*)
  5718. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5719. # about 5 minutes as the teststring grows exponentially.
  5720. # Worse, since 9x/ME are not pre-emptively multitasking,
  5721. # you end up with a "frozen" computer, even though with patience
  5722. # the test eventually succeeds (with a max line length of 256k).
  5723. # Instead, let's just punt: use the minimum linelength reported by
  5724. # all of the supported platforms: 8192 (on NT/2K/XP).
  5725. lt_cv_sys_max_cmd_len=8192;
  5726. ;;
  5727. amigaos*)
  5728. # On AmigaOS with pdksh, this test takes hours, literally.
  5729. # So we just punt and use a minimum line length of 8192.
  5730. lt_cv_sys_max_cmd_len=8192;
  5731. ;;
  5732. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5733. # This has been around since 386BSD, at least. Likely further.
  5734. if test -x /sbin/sysctl; then
  5735. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5736. elif test -x /usr/sbin/sysctl; then
  5737. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5738. else
  5739. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5740. fi
  5741. # And add a safety zone
  5742. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5743. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5744. ;;
  5745. interix*)
  5746. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5747. lt_cv_sys_max_cmd_len=196608
  5748. ;;
  5749. osf*)
  5750. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5751. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5752. # nice to cause kernel panics so lets avoid the loop below.
  5753. # First set a reasonable default.
  5754. lt_cv_sys_max_cmd_len=16384
  5755. #
  5756. if test -x /sbin/sysconfig; then
  5757. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5758. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5759. esac
  5760. fi
  5761. ;;
  5762. sco3.2v5*)
  5763. lt_cv_sys_max_cmd_len=102400
  5764. ;;
  5765. sysv5* | sco5v6* | sysv4.2uw2*)
  5766. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5767. if test -n "$kargmax"; then
  5768. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5769. else
  5770. lt_cv_sys_max_cmd_len=32768
  5771. fi
  5772. ;;
  5773. *)
  5774. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5775. if test -n "$lt_cv_sys_max_cmd_len"; then
  5776. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5777. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5778. else
  5779. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5780. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5781. = "XX$teststring") >/dev/null 2>&1 &&
  5782. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5783. lt_cv_sys_max_cmd_len=$new_result &&
  5784. test $i != 17 # 1/2 MB should be enough
  5785. do
  5786. i=`expr $i + 1`
  5787. teststring=$teststring$teststring
  5788. done
  5789. teststring=
  5790. # Add a significant safety factor because C++ compilers can tack on massive
  5791. # amounts of additional arguments before passing them to the linker.
  5792. # It appears as though 1/2 is a usable value.
  5793. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5794. fi
  5795. ;;
  5796. esac
  5797. fi
  5798. if test -n $lt_cv_sys_max_cmd_len ; then
  5799. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5800. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5801. else
  5802. { echo "$as_me:$LINENO: result: none" >&5
  5803. echo "${ECHO_T}none" >&6; }
  5804. fi
  5805. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5806. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5807. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5808. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5809. echo $ECHO_N "(cached) $ECHO_C" >&6
  5810. else
  5811. # These are sane defaults that work on at least a few old systems.
  5812. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5813. # Character class describing NM global symbol codes.
  5814. symcode='[BCDEGRST]'
  5815. # Regexp to match symbols that can be accessed directly from C.
  5816. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5817. # Transform an extracted symbol line into a proper C declaration
  5818. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5819. # Transform an extracted symbol line into symbol name and symbol address
  5820. 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'"
  5821. # Define system-specific variables.
  5822. case $host_os in
  5823. aix*)
  5824. symcode='[BCDT]'
  5825. ;;
  5826. cygwin* | mingw* | pw32*)
  5827. symcode='[ABCDGISTW]'
  5828. ;;
  5829. hpux*) # Its linker distinguishes data from code symbols
  5830. if test "$host_cpu" = ia64; then
  5831. symcode='[ABCDEGRST]'
  5832. fi
  5833. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5834. 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'"
  5835. ;;
  5836. linux* | k*bsd*-gnu)
  5837. if test "$host_cpu" = ia64; then
  5838. symcode='[ABCDGIRSTW]'
  5839. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5840. 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'"
  5841. fi
  5842. ;;
  5843. irix* | nonstopux*)
  5844. symcode='[BCDEGRST]'
  5845. ;;
  5846. osf*)
  5847. symcode='[BCDEGQRST]'
  5848. ;;
  5849. solaris*)
  5850. symcode='[BDRT]'
  5851. ;;
  5852. sco3.2v5*)
  5853. symcode='[DT]'
  5854. ;;
  5855. sysv4.2uw2*)
  5856. symcode='[DT]'
  5857. ;;
  5858. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5859. symcode='[ABDT]'
  5860. ;;
  5861. sysv4)
  5862. symcode='[DFNSTU]'
  5863. ;;
  5864. esac
  5865. # Handle CRLF in mingw tool chain
  5866. opt_cr=
  5867. case $build_os in
  5868. mingw*)
  5869. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5870. ;;
  5871. esac
  5872. # If we're using GNU nm, then use its standard symbol codes.
  5873. case `$NM -V 2>&1` in
  5874. *GNU* | *'with BFD'*)
  5875. symcode='[ABCDGIRSTW]' ;;
  5876. esac
  5877. # Try without a prefix undercore, then with it.
  5878. for ac_symprfx in "" "_"; do
  5879. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5880. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5881. # Write the raw and C identifiers.
  5882. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5883. # Check to see that the pipe works correctly.
  5884. pipe_works=no
  5885. rm -f conftest*
  5886. cat > conftest.$ac_ext <<EOF
  5887. #ifdef __cplusplus
  5888. extern "C" {
  5889. #endif
  5890. char nm_test_var;
  5891. void nm_test_func(){}
  5892. #ifdef __cplusplus
  5893. }
  5894. #endif
  5895. int main(){nm_test_var='a';nm_test_func();return(0);}
  5896. EOF
  5897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5898. (eval $ac_compile) 2>&5
  5899. ac_status=$?
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); }; then
  5902. # Now try to grab the symbols.
  5903. nlist=conftest.nm
  5904. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5905. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5906. ac_status=$?
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); } && test -s "$nlist"; then
  5909. # Try sorting and uniquifying the output.
  5910. if sort "$nlist" | uniq > "$nlist"T; then
  5911. mv -f "$nlist"T "$nlist"
  5912. else
  5913. rm -f "$nlist"T
  5914. fi
  5915. # Make sure that we snagged all the symbols we need.
  5916. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5917. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5918. cat <<EOF > conftest.$ac_ext
  5919. #ifdef __cplusplus
  5920. extern "C" {
  5921. #endif
  5922. EOF
  5923. # Now generate the symbol file.
  5924. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5925. cat <<EOF >> conftest.$ac_ext
  5926. #if defined (__STDC__) && __STDC__
  5927. # define lt_ptr_t void *
  5928. #else
  5929. # define lt_ptr_t char *
  5930. # define const
  5931. #endif
  5932. /* The mapping between symbol names and symbols. */
  5933. const struct {
  5934. const char *name;
  5935. lt_ptr_t address;
  5936. }
  5937. lt_preloaded_symbols[] =
  5938. {
  5939. EOF
  5940. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5941. cat <<\EOF >> conftest.$ac_ext
  5942. {0, (lt_ptr_t) 0}
  5943. };
  5944. #ifdef __cplusplus
  5945. }
  5946. #endif
  5947. EOF
  5948. # Now try linking the two files.
  5949. mv conftest.$ac_objext conftstm.$ac_objext
  5950. lt_save_LIBS="$LIBS"
  5951. lt_save_CFLAGS="$CFLAGS"
  5952. LIBS="conftstm.$ac_objext"
  5953. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5954. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5955. (eval $ac_link) 2>&5
  5956. ac_status=$?
  5957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5958. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5959. pipe_works=yes
  5960. fi
  5961. LIBS="$lt_save_LIBS"
  5962. CFLAGS="$lt_save_CFLAGS"
  5963. else
  5964. echo "cannot find nm_test_func in $nlist" >&5
  5965. fi
  5966. else
  5967. echo "cannot find nm_test_var in $nlist" >&5
  5968. fi
  5969. else
  5970. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5971. fi
  5972. else
  5973. echo "$progname: failed program was:" >&5
  5974. cat conftest.$ac_ext >&5
  5975. fi
  5976. rm -f conftest* conftst*
  5977. # Do not use the global_symbol_pipe unless it works.
  5978. if test "$pipe_works" = yes; then
  5979. break
  5980. else
  5981. lt_cv_sys_global_symbol_pipe=
  5982. fi
  5983. done
  5984. fi
  5985. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5986. lt_cv_sys_global_symbol_to_cdecl=
  5987. fi
  5988. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5989. { echo "$as_me:$LINENO: result: failed" >&5
  5990. echo "${ECHO_T}failed" >&6; }
  5991. else
  5992. { echo "$as_me:$LINENO: result: ok" >&5
  5993. echo "${ECHO_T}ok" >&6; }
  5994. fi
  5995. { echo "$as_me:$LINENO: checking for objdir" >&5
  5996. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5997. if test "${lt_cv_objdir+set}" = set; then
  5998. echo $ECHO_N "(cached) $ECHO_C" >&6
  5999. else
  6000. rm -f .libs 2>/dev/null
  6001. mkdir .libs 2>/dev/null
  6002. if test -d .libs; then
  6003. lt_cv_objdir=.libs
  6004. else
  6005. # MS-DOS does not allow filenames that begin with a dot.
  6006. lt_cv_objdir=_libs
  6007. fi
  6008. rmdir .libs 2>/dev/null
  6009. fi
  6010. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6011. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6012. objdir=$lt_cv_objdir
  6013. case $host_os in
  6014. aix3*)
  6015. # AIX sometimes has problems with the GCC collect2 program. For some
  6016. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6017. # vanish in a puff of smoke.
  6018. if test "X${COLLECT_NAMES+set}" != Xset; then
  6019. COLLECT_NAMES=
  6020. export COLLECT_NAMES
  6021. fi
  6022. ;;
  6023. esac
  6024. # Sed substitution that helps us do robust quoting. It backslashifies
  6025. # metacharacters that are still active within double-quoted strings.
  6026. Xsed='sed -e 1s/^X//'
  6027. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6028. # Same as above, but do not quote variable references.
  6029. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6030. # Sed substitution to delay expansion of an escaped shell variable in a
  6031. # double_quote_subst'ed string.
  6032. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6033. # Sed substitution to avoid accidental globbing in evaled expressions
  6034. no_glob_subst='s/\*/\\\*/g'
  6035. # Constants:
  6036. rm="rm -f"
  6037. # Global variables:
  6038. default_ofile=libtool
  6039. can_build_shared=yes
  6040. # All known linkers require a `.a' archive for static linking (except MSVC,
  6041. # which needs '.lib').
  6042. libext=a
  6043. ltmain="$ac_aux_dir/ltmain.sh"
  6044. ofile="$default_ofile"
  6045. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6046. if test -n "$ac_tool_prefix"; then
  6047. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6048. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6049. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6050. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6051. if test "${ac_cv_prog_AR+set}" = set; then
  6052. echo $ECHO_N "(cached) $ECHO_C" >&6
  6053. else
  6054. if test -n "$AR"; then
  6055. ac_cv_prog_AR="$AR" # Let the user override the test.
  6056. else
  6057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6058. for as_dir in $PATH
  6059. do
  6060. IFS=$as_save_IFS
  6061. test -z "$as_dir" && as_dir=.
  6062. for ac_exec_ext in '' $ac_executable_extensions; do
  6063. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6064. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6065. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6066. break 2
  6067. fi
  6068. done
  6069. done
  6070. IFS=$as_save_IFS
  6071. fi
  6072. fi
  6073. AR=$ac_cv_prog_AR
  6074. if test -n "$AR"; then
  6075. { echo "$as_me:$LINENO: result: $AR" >&5
  6076. echo "${ECHO_T}$AR" >&6; }
  6077. else
  6078. { echo "$as_me:$LINENO: result: no" >&5
  6079. echo "${ECHO_T}no" >&6; }
  6080. fi
  6081. fi
  6082. if test -z "$ac_cv_prog_AR"; then
  6083. ac_ct_AR=$AR
  6084. # Extract the first word of "ar", so it can be a program name with args.
  6085. set dummy ar; ac_word=$2
  6086. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6087. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6088. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6089. echo $ECHO_N "(cached) $ECHO_C" >&6
  6090. else
  6091. if test -n "$ac_ct_AR"; then
  6092. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6093. else
  6094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6095. for as_dir in $PATH
  6096. do
  6097. IFS=$as_save_IFS
  6098. test -z "$as_dir" && as_dir=.
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6101. ac_cv_prog_ac_ct_AR="ar"
  6102. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi
  6109. fi
  6110. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6111. if test -n "$ac_ct_AR"; then
  6112. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6113. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6114. else
  6115. { echo "$as_me:$LINENO: result: no" >&5
  6116. echo "${ECHO_T}no" >&6; }
  6117. fi
  6118. if test "x$ac_ct_AR" = x; then
  6119. AR="false"
  6120. else
  6121. case $cross_compiling:$ac_tool_warned in
  6122. yes:)
  6123. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6124. whose name does not start with the host triplet. If you think this
  6125. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6126. echo "$as_me: 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." >&2;}
  6129. ac_tool_warned=yes ;;
  6130. esac
  6131. AR=$ac_ct_AR
  6132. fi
  6133. else
  6134. AR="$ac_cv_prog_AR"
  6135. fi
  6136. if test -n "$ac_tool_prefix"; then
  6137. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6138. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6139. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6141. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6142. echo $ECHO_N "(cached) $ECHO_C" >&6
  6143. else
  6144. if test -n "$RANLIB"; then
  6145. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6146. else
  6147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6148. for as_dir in $PATH
  6149. do
  6150. IFS=$as_save_IFS
  6151. test -z "$as_dir" && as_dir=.
  6152. for ac_exec_ext in '' $ac_executable_extensions; do
  6153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6154. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6155. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6156. break 2
  6157. fi
  6158. done
  6159. done
  6160. IFS=$as_save_IFS
  6161. fi
  6162. fi
  6163. RANLIB=$ac_cv_prog_RANLIB
  6164. if test -n "$RANLIB"; then
  6165. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6166. echo "${ECHO_T}$RANLIB" >&6; }
  6167. else
  6168. { echo "$as_me:$LINENO: result: no" >&5
  6169. echo "${ECHO_T}no" >&6; }
  6170. fi
  6171. fi
  6172. if test -z "$ac_cv_prog_RANLIB"; then
  6173. ac_ct_RANLIB=$RANLIB
  6174. # Extract the first word of "ranlib", so it can be a program name with args.
  6175. set dummy ranlib; ac_word=$2
  6176. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6177. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6178. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6179. echo $ECHO_N "(cached) $ECHO_C" >&6
  6180. else
  6181. if test -n "$ac_ct_RANLIB"; then
  6182. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6183. else
  6184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6185. for as_dir in $PATH
  6186. do
  6187. IFS=$as_save_IFS
  6188. test -z "$as_dir" && as_dir=.
  6189. for ac_exec_ext in '' $ac_executable_extensions; do
  6190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6191. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6192. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6193. break 2
  6194. fi
  6195. done
  6196. done
  6197. IFS=$as_save_IFS
  6198. fi
  6199. fi
  6200. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6201. if test -n "$ac_ct_RANLIB"; then
  6202. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6203. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6204. else
  6205. { echo "$as_me:$LINENO: result: no" >&5
  6206. echo "${ECHO_T}no" >&6; }
  6207. fi
  6208. if test "x$ac_ct_RANLIB" = x; then
  6209. RANLIB=":"
  6210. else
  6211. case $cross_compiling:$ac_tool_warned in
  6212. yes:)
  6213. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6214. whose name does not start with the host triplet. If you think this
  6215. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6216. echo "$as_me: 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." >&2;}
  6219. ac_tool_warned=yes ;;
  6220. esac
  6221. RANLIB=$ac_ct_RANLIB
  6222. fi
  6223. else
  6224. RANLIB="$ac_cv_prog_RANLIB"
  6225. fi
  6226. if test -n "$ac_tool_prefix"; then
  6227. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6228. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6229. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6230. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6231. if test "${ac_cv_prog_STRIP+set}" = set; then
  6232. echo $ECHO_N "(cached) $ECHO_C" >&6
  6233. else
  6234. if test -n "$STRIP"; then
  6235. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6236. else
  6237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6238. for as_dir in $PATH
  6239. do
  6240. IFS=$as_save_IFS
  6241. test -z "$as_dir" && as_dir=.
  6242. for ac_exec_ext in '' $ac_executable_extensions; do
  6243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6244. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6245. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6246. break 2
  6247. fi
  6248. done
  6249. done
  6250. IFS=$as_save_IFS
  6251. fi
  6252. fi
  6253. STRIP=$ac_cv_prog_STRIP
  6254. if test -n "$STRIP"; then
  6255. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6256. echo "${ECHO_T}$STRIP" >&6; }
  6257. else
  6258. { echo "$as_me:$LINENO: result: no" >&5
  6259. echo "${ECHO_T}no" >&6; }
  6260. fi
  6261. fi
  6262. if test -z "$ac_cv_prog_STRIP"; then
  6263. ac_ct_STRIP=$STRIP
  6264. # Extract the first word of "strip", so it can be a program name with args.
  6265. set dummy strip; ac_word=$2
  6266. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6268. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6269. echo $ECHO_N "(cached) $ECHO_C" >&6
  6270. else
  6271. if test -n "$ac_ct_STRIP"; then
  6272. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. test -z "$as_dir" && as_dir=.
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6281. ac_cv_prog_ac_ct_STRIP="strip"
  6282. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi
  6289. fi
  6290. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6291. if test -n "$ac_ct_STRIP"; then
  6292. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6293. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6294. else
  6295. { echo "$as_me:$LINENO: result: no" >&5
  6296. echo "${ECHO_T}no" >&6; }
  6297. fi
  6298. if test "x$ac_ct_STRIP" = x; then
  6299. STRIP=":"
  6300. else
  6301. case $cross_compiling:$ac_tool_warned in
  6302. yes:)
  6303. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6304. whose name does not start with the host triplet. If you think this
  6305. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6306. echo "$as_me: 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." >&2;}
  6309. ac_tool_warned=yes ;;
  6310. esac
  6311. STRIP=$ac_ct_STRIP
  6312. fi
  6313. else
  6314. STRIP="$ac_cv_prog_STRIP"
  6315. fi
  6316. old_CC="$CC"
  6317. old_CFLAGS="$CFLAGS"
  6318. # Set sane defaults for various variables
  6319. test -z "$AR" && AR=ar
  6320. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6321. test -z "$AS" && AS=as
  6322. test -z "$CC" && CC=cc
  6323. test -z "$LTCC" && LTCC=$CC
  6324. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6325. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6326. test -z "$LD" && LD=ld
  6327. test -z "$LN_S" && LN_S="ln -s"
  6328. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6329. test -z "$NM" && NM=nm
  6330. test -z "$SED" && SED=sed
  6331. test -z "$OBJDUMP" && OBJDUMP=objdump
  6332. test -z "$RANLIB" && RANLIB=:
  6333. test -z "$STRIP" && STRIP=:
  6334. test -z "$ac_objext" && ac_objext=o
  6335. # Determine commands to create old-style static archives.
  6336. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6337. old_postinstall_cmds='chmod 644 $oldlib'
  6338. old_postuninstall_cmds=
  6339. if test -n "$RANLIB"; then
  6340. case $host_os in
  6341. openbsd*)
  6342. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6343. ;;
  6344. *)
  6345. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6346. ;;
  6347. esac
  6348. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6349. fi
  6350. for cc_temp in $compiler""; do
  6351. case $cc_temp in
  6352. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6353. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6354. \-*) ;;
  6355. *) break;;
  6356. esac
  6357. done
  6358. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6359. # Only perform the check for file, if the check method requires it
  6360. case $deplibs_check_method in
  6361. file_magic*)
  6362. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6363. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6364. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6365. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6366. echo $ECHO_N "(cached) $ECHO_C" >&6
  6367. else
  6368. case $MAGIC_CMD in
  6369. [\\/*] | ?:[\\/]*)
  6370. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6371. ;;
  6372. *)
  6373. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6374. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6375. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6376. for ac_dir in $ac_dummy; do
  6377. IFS="$lt_save_ifs"
  6378. test -z "$ac_dir" && ac_dir=.
  6379. if test -f $ac_dir/${ac_tool_prefix}file; then
  6380. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6381. if test -n "$file_magic_test_file"; then
  6382. case $deplibs_check_method in
  6383. "file_magic "*)
  6384. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6385. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6386. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6387. $EGREP "$file_magic_regex" > /dev/null; then
  6388. :
  6389. else
  6390. cat <<EOF 1>&2
  6391. *** Warning: the command libtool uses to detect shared libraries,
  6392. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6393. *** The result is that libtool may fail to recognize shared libraries
  6394. *** as such. This will affect the creation of libtool libraries that
  6395. *** depend on shared libraries, but programs linked with such libtool
  6396. *** libraries will work regardless of this problem. Nevertheless, you
  6397. *** may want to report the problem to your system manager and/or to
  6398. *** bug-libtool@gnu.org
  6399. EOF
  6400. fi ;;
  6401. esac
  6402. fi
  6403. break
  6404. fi
  6405. done
  6406. IFS="$lt_save_ifs"
  6407. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6408. ;;
  6409. esac
  6410. fi
  6411. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6412. if test -n "$MAGIC_CMD"; then
  6413. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6414. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6415. else
  6416. { echo "$as_me:$LINENO: result: no" >&5
  6417. echo "${ECHO_T}no" >&6; }
  6418. fi
  6419. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6420. if test -n "$ac_tool_prefix"; then
  6421. { echo "$as_me:$LINENO: checking for file" >&5
  6422. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6423. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6424. echo $ECHO_N "(cached) $ECHO_C" >&6
  6425. else
  6426. case $MAGIC_CMD in
  6427. [\\/*] | ?:[\\/]*)
  6428. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6429. ;;
  6430. *)
  6431. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6432. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6433. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6434. for ac_dir in $ac_dummy; do
  6435. IFS="$lt_save_ifs"
  6436. test -z "$ac_dir" && ac_dir=.
  6437. if test -f $ac_dir/file; then
  6438. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6439. if test -n "$file_magic_test_file"; then
  6440. case $deplibs_check_method in
  6441. "file_magic "*)
  6442. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6443. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6444. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6445. $EGREP "$file_magic_regex" > /dev/null; then
  6446. :
  6447. else
  6448. cat <<EOF 1>&2
  6449. *** Warning: the command libtool uses to detect shared libraries,
  6450. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6451. *** The result is that libtool may fail to recognize shared libraries
  6452. *** as such. This will affect the creation of libtool libraries that
  6453. *** depend on shared libraries, but programs linked with such libtool
  6454. *** libraries will work regardless of this problem. Nevertheless, you
  6455. *** may want to report the problem to your system manager and/or to
  6456. *** bug-libtool@gnu.org
  6457. EOF
  6458. fi ;;
  6459. esac
  6460. fi
  6461. break
  6462. fi
  6463. done
  6464. IFS="$lt_save_ifs"
  6465. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6466. ;;
  6467. esac
  6468. fi
  6469. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6470. if test -n "$MAGIC_CMD"; then
  6471. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6472. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6473. else
  6474. { echo "$as_me:$LINENO: result: no" >&5
  6475. echo "${ECHO_T}no" >&6; }
  6476. fi
  6477. else
  6478. MAGIC_CMD=:
  6479. fi
  6480. fi
  6481. fi
  6482. ;;
  6483. esac
  6484. enable_dlopen=no
  6485. enable_win32_dll=no
  6486. # Check whether --enable-libtool-lock was given.
  6487. if test "${enable_libtool_lock+set}" = set; then
  6488. enableval=$enable_libtool_lock;
  6489. fi
  6490. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6491. # Check whether --with-pic was given.
  6492. if test "${with_pic+set}" = set; then
  6493. withval=$with_pic; pic_mode="$withval"
  6494. else
  6495. pic_mode=default
  6496. fi
  6497. test -z "$pic_mode" && pic_mode=default
  6498. # Use C for the default configuration in the libtool script
  6499. tagname=
  6500. lt_save_CC="$CC"
  6501. ac_ext=c
  6502. ac_cpp='$CPP $CPPFLAGS'
  6503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6506. # Source file extension for C test sources.
  6507. ac_ext=c
  6508. # Object file extension for compiled C test sources.
  6509. objext=o
  6510. objext=$objext
  6511. # Code to be used in simple compile tests
  6512. lt_simple_compile_test_code="int some_variable = 0;"
  6513. # Code to be used in simple link tests
  6514. lt_simple_link_test_code='int main(){return(0);}'
  6515. # If no C compiler was specified, use CC.
  6516. LTCC=${LTCC-"$CC"}
  6517. # If no C compiler flags were specified, use CFLAGS.
  6518. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6519. # Allow CC to be a program name with arguments.
  6520. compiler=$CC
  6521. # save warnings/boilerplate of simple test code
  6522. ac_outfile=conftest.$ac_objext
  6523. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6524. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6525. _lt_compiler_boilerplate=`cat conftest.err`
  6526. $rm conftest*
  6527. ac_outfile=conftest.$ac_objext
  6528. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6529. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6530. _lt_linker_boilerplate=`cat conftest.err`
  6531. $rm conftest*
  6532. lt_prog_compiler_no_builtin_flag=
  6533. if test "$GCC" = yes; then
  6534. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6535. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6536. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6537. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6538. echo $ECHO_N "(cached) $ECHO_C" >&6
  6539. else
  6540. lt_cv_prog_compiler_rtti_exceptions=no
  6541. ac_outfile=conftest.$ac_objext
  6542. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6543. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6544. # Insert the option either (1) after the last *FLAGS variable, or
  6545. # (2) before a word containing "conftest.", or (3) at the end.
  6546. # Note that $ac_compile itself does not contain backslashes and begins
  6547. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6548. # The option is referenced via a variable to avoid confusing sed.
  6549. lt_compile=`echo "$ac_compile" | $SED \
  6550. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6551. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6552. -e 's:$: $lt_compiler_flag:'`
  6553. (eval echo "\"\$as_me:7324: $lt_compile\"" >&5)
  6554. (eval "$lt_compile" 2>conftest.err)
  6555. ac_status=$?
  6556. cat conftest.err >&5
  6557. echo "$as_me:7328: \$? = $ac_status" >&5
  6558. if (exit $ac_status) && test -s "$ac_outfile"; then
  6559. # The compiler can only warn and ignore the option if not recognized
  6560. # So say no if there are warnings other than the usual output.
  6561. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6562. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6563. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6564. lt_cv_prog_compiler_rtti_exceptions=yes
  6565. fi
  6566. fi
  6567. $rm conftest*
  6568. fi
  6569. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6570. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6571. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6572. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6573. else
  6574. :
  6575. fi
  6576. fi
  6577. lt_prog_compiler_wl=
  6578. lt_prog_compiler_pic=
  6579. lt_prog_compiler_static=
  6580. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6581. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6582. if test "$GCC" = yes; then
  6583. lt_prog_compiler_wl='-Wl,'
  6584. lt_prog_compiler_static='-static'
  6585. case $host_os in
  6586. aix*)
  6587. # All AIX code is PIC.
  6588. if test "$host_cpu" = ia64; then
  6589. # AIX 5 now supports IA64 processor
  6590. lt_prog_compiler_static='-Bstatic'
  6591. fi
  6592. ;;
  6593. amigaos*)
  6594. # FIXME: we need at least 68020 code to build shared libraries, but
  6595. # adding the `-m68020' flag to GCC prevents building anything better,
  6596. # like `-m68040'.
  6597. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6598. ;;
  6599. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6600. # PIC is the default for these OSes.
  6601. ;;
  6602. mingw* | cygwin* | pw32* | os2*)
  6603. # This hack is so that the source file can tell whether it is being
  6604. # built for inclusion in a dll (and should export symbols for example).
  6605. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6606. # (--disable-auto-import) libraries
  6607. lt_prog_compiler_pic='-DDLL_EXPORT'
  6608. ;;
  6609. darwin* | rhapsody*)
  6610. # PIC is the default on this platform
  6611. # Common symbols not allowed in MH_DYLIB files
  6612. lt_prog_compiler_pic='-fno-common'
  6613. ;;
  6614. interix[3-9]*)
  6615. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6616. # Instead, we relocate shared libraries at runtime.
  6617. ;;
  6618. msdosdjgpp*)
  6619. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6620. # on systems that don't support them.
  6621. lt_prog_compiler_can_build_shared=no
  6622. enable_shared=no
  6623. ;;
  6624. sysv4*MP*)
  6625. if test -d /usr/nec; then
  6626. lt_prog_compiler_pic=-Kconform_pic
  6627. fi
  6628. ;;
  6629. hpux*)
  6630. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6631. # not for PA HP-UX.
  6632. case $host_cpu in
  6633. hppa*64*|ia64*)
  6634. # +Z the default
  6635. ;;
  6636. *)
  6637. lt_prog_compiler_pic='-fPIC'
  6638. ;;
  6639. esac
  6640. ;;
  6641. *)
  6642. lt_prog_compiler_pic='-fPIC'
  6643. ;;
  6644. esac
  6645. else
  6646. # PORTME Check for flag to pass linker flags through the system compiler.
  6647. case $host_os in
  6648. aix*)
  6649. lt_prog_compiler_wl='-Wl,'
  6650. if test "$host_cpu" = ia64; then
  6651. # AIX 5 now supports IA64 processor
  6652. lt_prog_compiler_static='-Bstatic'
  6653. else
  6654. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6655. fi
  6656. ;;
  6657. darwin*)
  6658. # PIC is the default on this platform
  6659. # Common symbols not allowed in MH_DYLIB files
  6660. case $cc_basename in
  6661. xlc*)
  6662. lt_prog_compiler_pic='-qnocommon'
  6663. lt_prog_compiler_wl='-Wl,'
  6664. ;;
  6665. esac
  6666. ;;
  6667. mingw* | cygwin* | pw32* | os2*)
  6668. # This hack is so that the source file can tell whether it is being
  6669. # built for inclusion in a dll (and should export symbols for example).
  6670. lt_prog_compiler_pic='-DDLL_EXPORT'
  6671. ;;
  6672. hpux9* | hpux10* | hpux11*)
  6673. lt_prog_compiler_wl='-Wl,'
  6674. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6675. # not for PA HP-UX.
  6676. case $host_cpu in
  6677. hppa*64*|ia64*)
  6678. # +Z the default
  6679. ;;
  6680. *)
  6681. lt_prog_compiler_pic='+Z'
  6682. ;;
  6683. esac
  6684. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6685. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6686. ;;
  6687. irix5* | irix6* | nonstopux*)
  6688. lt_prog_compiler_wl='-Wl,'
  6689. # PIC (with -KPIC) is the default.
  6690. lt_prog_compiler_static='-non_shared'
  6691. ;;
  6692. newsos6)
  6693. lt_prog_compiler_pic='-KPIC'
  6694. lt_prog_compiler_static='-Bstatic'
  6695. ;;
  6696. linux* | k*bsd*-gnu)
  6697. case $cc_basename in
  6698. icc* | ecc*)
  6699. lt_prog_compiler_wl='-Wl,'
  6700. lt_prog_compiler_pic='-KPIC'
  6701. lt_prog_compiler_static='-static'
  6702. ;;
  6703. pgcc* | pgf77* | pgf90* | pgf95*)
  6704. # Portland Group compilers (*not* the Pentium gcc compiler,
  6705. # which looks to be a dead project)
  6706. lt_prog_compiler_wl='-Wl,'
  6707. lt_prog_compiler_pic='-fpic'
  6708. lt_prog_compiler_static='-Bstatic'
  6709. ;;
  6710. ccc*)
  6711. lt_prog_compiler_wl='-Wl,'
  6712. # All Alpha code is PIC.
  6713. lt_prog_compiler_static='-non_shared'
  6714. ;;
  6715. *)
  6716. case `$CC -V 2>&1 | sed 5q` in
  6717. *Sun\ C*)
  6718. # Sun C 5.9
  6719. lt_prog_compiler_pic='-KPIC'
  6720. lt_prog_compiler_static='-Bstatic'
  6721. lt_prog_compiler_wl='-Wl,'
  6722. ;;
  6723. *Sun\ F*)
  6724. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6725. lt_prog_compiler_pic='-KPIC'
  6726. lt_prog_compiler_static='-Bstatic'
  6727. lt_prog_compiler_wl=''
  6728. ;;
  6729. esac
  6730. ;;
  6731. esac
  6732. ;;
  6733. osf3* | osf4* | osf5*)
  6734. lt_prog_compiler_wl='-Wl,'
  6735. # All OSF/1 code is PIC.
  6736. lt_prog_compiler_static='-non_shared'
  6737. ;;
  6738. rdos*)
  6739. lt_prog_compiler_static='-non_shared'
  6740. ;;
  6741. solaris*)
  6742. lt_prog_compiler_pic='-KPIC'
  6743. lt_prog_compiler_static='-Bstatic'
  6744. case $cc_basename in
  6745. f77* | f90* | f95*)
  6746. lt_prog_compiler_wl='-Qoption ld ';;
  6747. *)
  6748. lt_prog_compiler_wl='-Wl,';;
  6749. esac
  6750. ;;
  6751. sunos4*)
  6752. lt_prog_compiler_wl='-Qoption ld '
  6753. lt_prog_compiler_pic='-PIC'
  6754. lt_prog_compiler_static='-Bstatic'
  6755. ;;
  6756. sysv4 | sysv4.2uw2* | sysv4.3*)
  6757. lt_prog_compiler_wl='-Wl,'
  6758. lt_prog_compiler_pic='-KPIC'
  6759. lt_prog_compiler_static='-Bstatic'
  6760. ;;
  6761. sysv4*MP*)
  6762. if test -d /usr/nec ;then
  6763. lt_prog_compiler_pic='-Kconform_pic'
  6764. lt_prog_compiler_static='-Bstatic'
  6765. fi
  6766. ;;
  6767. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6768. lt_prog_compiler_wl='-Wl,'
  6769. lt_prog_compiler_pic='-KPIC'
  6770. lt_prog_compiler_static='-Bstatic'
  6771. ;;
  6772. unicos*)
  6773. lt_prog_compiler_wl='-Wl,'
  6774. lt_prog_compiler_can_build_shared=no
  6775. ;;
  6776. uts4*)
  6777. lt_prog_compiler_pic='-pic'
  6778. lt_prog_compiler_static='-Bstatic'
  6779. ;;
  6780. *)
  6781. lt_prog_compiler_can_build_shared=no
  6782. ;;
  6783. esac
  6784. fi
  6785. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6786. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6787. #
  6788. # Check to make sure the PIC flag actually works.
  6789. #
  6790. if test -n "$lt_prog_compiler_pic"; then
  6791. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6792. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6793. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6794. echo $ECHO_N "(cached) $ECHO_C" >&6
  6795. else
  6796. lt_prog_compiler_pic_works=no
  6797. ac_outfile=conftest.$ac_objext
  6798. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6799. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6800. # Insert the option either (1) after the last *FLAGS variable, or
  6801. # (2) before a word containing "conftest.", or (3) at the end.
  6802. # Note that $ac_compile itself does not contain backslashes and begins
  6803. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6804. # The option is referenced via a variable to avoid confusing sed.
  6805. lt_compile=`echo "$ac_compile" | $SED \
  6806. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6807. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6808. -e 's:$: $lt_compiler_flag:'`
  6809. (eval echo "\"\$as_me:7614: $lt_compile\"" >&5)
  6810. (eval "$lt_compile" 2>conftest.err)
  6811. ac_status=$?
  6812. cat conftest.err >&5
  6813. echo "$as_me:7618: \$? = $ac_status" >&5
  6814. if (exit $ac_status) && test -s "$ac_outfile"; then
  6815. # The compiler can only warn and ignore the option if not recognized
  6816. # So say no if there are warnings other than the usual output.
  6817. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6818. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6819. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6820. lt_prog_compiler_pic_works=yes
  6821. fi
  6822. fi
  6823. $rm conftest*
  6824. fi
  6825. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6826. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6827. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6828. case $lt_prog_compiler_pic in
  6829. "" | " "*) ;;
  6830. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6831. esac
  6832. else
  6833. lt_prog_compiler_pic=
  6834. lt_prog_compiler_can_build_shared=no
  6835. fi
  6836. fi
  6837. case $host_os in
  6838. # For platforms which do not support PIC, -DPIC is meaningless:
  6839. *djgpp*)
  6840. lt_prog_compiler_pic=
  6841. ;;
  6842. *)
  6843. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6844. ;;
  6845. esac
  6846. #
  6847. # Check to make sure the static flag actually works.
  6848. #
  6849. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6850. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6851. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6852. if test "${lt_prog_compiler_static_works+set}" = set; then
  6853. echo $ECHO_N "(cached) $ECHO_C" >&6
  6854. else
  6855. lt_prog_compiler_static_works=no
  6856. save_LDFLAGS="$LDFLAGS"
  6857. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6858. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6859. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6860. # The linker can only warn and ignore the option if not recognized
  6861. # So say no if there are warnings
  6862. if test -s conftest.err; then
  6863. # Append any errors to the config.log.
  6864. cat conftest.err 1>&5
  6865. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6866. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6867. if diff conftest.exp conftest.er2 >/dev/null; then
  6868. lt_prog_compiler_static_works=yes
  6869. fi
  6870. else
  6871. lt_prog_compiler_static_works=yes
  6872. fi
  6873. fi
  6874. $rm conftest*
  6875. LDFLAGS="$save_LDFLAGS"
  6876. fi
  6877. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6878. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6879. if test x"$lt_prog_compiler_static_works" = xyes; then
  6880. :
  6881. else
  6882. lt_prog_compiler_static=
  6883. fi
  6884. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6885. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6886. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6887. echo $ECHO_N "(cached) $ECHO_C" >&6
  6888. else
  6889. lt_cv_prog_compiler_c_o=no
  6890. $rm -r conftest 2>/dev/null
  6891. mkdir conftest
  6892. cd conftest
  6893. mkdir out
  6894. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6895. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6896. # Insert the option either (1) after the last *FLAGS variable, or
  6897. # (2) before a word containing "conftest.", or (3) at the end.
  6898. # Note that $ac_compile itself does not contain backslashes and begins
  6899. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6900. lt_compile=`echo "$ac_compile" | $SED \
  6901. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6902. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6903. -e 's:$: $lt_compiler_flag:'`
  6904. (eval echo "\"\$as_me:7718: $lt_compile\"" >&5)
  6905. (eval "$lt_compile" 2>out/conftest.err)
  6906. ac_status=$?
  6907. cat out/conftest.err >&5
  6908. echo "$as_me:7722: \$? = $ac_status" >&5
  6909. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6910. then
  6911. # The compiler can only warn and ignore the option if not recognized
  6912. # So say no if there are warnings
  6913. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6914. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6915. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6916. lt_cv_prog_compiler_c_o=yes
  6917. fi
  6918. fi
  6919. chmod u+w . 2>&5
  6920. $rm conftest*
  6921. # SGI C++ compiler will create directory out/ii_files/ for
  6922. # template instantiation
  6923. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6924. $rm out/* && rmdir out
  6925. cd ..
  6926. rmdir conftest
  6927. $rm conftest*
  6928. fi
  6929. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6930. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6931. hard_links="nottested"
  6932. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6933. # do not overwrite the value of need_locks provided by the user
  6934. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6935. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6936. hard_links=yes
  6937. $rm conftest*
  6938. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6939. touch conftest.a
  6940. ln conftest.a conftest.b 2>&5 || hard_links=no
  6941. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6942. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6943. echo "${ECHO_T}$hard_links" >&6; }
  6944. if test "$hard_links" = no; then
  6945. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6946. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6947. need_locks=warn
  6948. fi
  6949. else
  6950. need_locks=no
  6951. fi
  6952. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6953. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6954. runpath_var=
  6955. allow_undefined_flag=
  6956. enable_shared_with_static_runtimes=no
  6957. archive_cmds=
  6958. archive_expsym_cmds=
  6959. old_archive_From_new_cmds=
  6960. old_archive_from_expsyms_cmds=
  6961. export_dynamic_flag_spec=
  6962. whole_archive_flag_spec=
  6963. thread_safe_flag_spec=
  6964. hardcode_libdir_flag_spec=
  6965. hardcode_libdir_flag_spec_ld=
  6966. hardcode_libdir_separator=
  6967. hardcode_direct=no
  6968. hardcode_minus_L=no
  6969. hardcode_shlibpath_var=unsupported
  6970. link_all_deplibs=unknown
  6971. hardcode_automatic=no
  6972. module_cmds=
  6973. module_expsym_cmds=
  6974. always_export_symbols=no
  6975. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6976. # include_expsyms should be a list of space-separated symbols to be *always*
  6977. # included in the symbol list
  6978. include_expsyms=
  6979. # exclude_expsyms can be an extended regexp of symbols to exclude
  6980. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6981. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6982. # as well as any symbol that contains `d'.
  6983. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6984. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6985. # platforms (ab)use it in PIC code, but their linkers get confused if
  6986. # the symbol is explicitly referenced. Since portable code cannot
  6987. # rely on this symbol name, it's probably fine to never include it in
  6988. # preloaded symbol tables.
  6989. extract_expsyms_cmds=
  6990. # Just being paranoid about ensuring that cc_basename is set.
  6991. for cc_temp in $compiler""; do
  6992. case $cc_temp in
  6993. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6994. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6995. \-*) ;;
  6996. *) break;;
  6997. esac
  6998. done
  6999. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7000. case $host_os in
  7001. cygwin* | mingw* | pw32*)
  7002. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7003. # When not using gcc, we currently assume that we are using
  7004. # Microsoft Visual C++.
  7005. if test "$GCC" != yes; then
  7006. with_gnu_ld=no
  7007. fi
  7008. ;;
  7009. interix*)
  7010. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7011. with_gnu_ld=yes
  7012. ;;
  7013. openbsd*)
  7014. with_gnu_ld=no
  7015. ;;
  7016. esac
  7017. ld_shlibs=yes
  7018. if test "$with_gnu_ld" = yes; then
  7019. # If archive_cmds runs LD, not CC, wlarc should be empty
  7020. wlarc='${wl}'
  7021. # Set some defaults for GNU ld with shared library support. These
  7022. # are reset later if shared libraries are not supported. Putting them
  7023. # here allows them to be overridden if necessary.
  7024. runpath_var=LD_RUN_PATH
  7025. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7026. export_dynamic_flag_spec='${wl}--export-dynamic'
  7027. # ancient GNU ld didn't support --whole-archive et. al.
  7028. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7029. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7030. else
  7031. whole_archive_flag_spec=
  7032. fi
  7033. supports_anon_versioning=no
  7034. case `$LD -v 2>/dev/null` in
  7035. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7036. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7037. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7038. *\ 2.11.*) ;; # other 2.11 versions
  7039. *) supports_anon_versioning=yes ;;
  7040. esac
  7041. # See if GNU ld supports shared libraries.
  7042. case $host_os in
  7043. aix3* | aix4* | aix5*)
  7044. # On AIX/PPC, the GNU linker is very broken
  7045. if test "$host_cpu" != ia64; then
  7046. ld_shlibs=no
  7047. cat <<EOF 1>&2
  7048. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7049. *** to be unable to reliably create shared libraries on AIX.
  7050. *** Therefore, libtool is disabling shared libraries support. If you
  7051. *** really care for shared libraries, you may want to modify your PATH
  7052. *** so that a non-GNU linker is found, and then restart.
  7053. EOF
  7054. fi
  7055. ;;
  7056. amigaos*)
  7057. 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)'
  7058. hardcode_libdir_flag_spec='-L$libdir'
  7059. hardcode_minus_L=yes
  7060. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7061. # that the semantics of dynamic libraries on AmigaOS, at least up
  7062. # to version 4, is to share data among multiple programs linked
  7063. # with the same dynamic library. Since this doesn't match the
  7064. # behavior of shared libraries on other platforms, we can't use
  7065. # them.
  7066. ld_shlibs=no
  7067. ;;
  7068. beos*)
  7069. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7070. allow_undefined_flag=unsupported
  7071. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7072. # support --undefined. This deserves some investigation. FIXME
  7073. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7074. else
  7075. ld_shlibs=no
  7076. fi
  7077. ;;
  7078. cygwin* | mingw* | pw32*)
  7079. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7080. # as there is no search path for DLLs.
  7081. hardcode_libdir_flag_spec='-L$libdir'
  7082. allow_undefined_flag=unsupported
  7083. always_export_symbols=no
  7084. enable_shared_with_static_runtimes=yes
  7085. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7086. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7087. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7088. # If the export-symbols file already is a .def file (1st line
  7089. # is EXPORTS), use it as is; otherwise, prepend...
  7090. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7091. cp $export_symbols $output_objdir/$soname.def;
  7092. else
  7093. echo EXPORTS > $output_objdir/$soname.def;
  7094. cat $export_symbols >> $output_objdir/$soname.def;
  7095. fi~
  7096. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7097. else
  7098. ld_shlibs=no
  7099. fi
  7100. ;;
  7101. interix[3-9]*)
  7102. hardcode_direct=no
  7103. hardcode_shlibpath_var=no
  7104. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7105. export_dynamic_flag_spec='${wl}-E'
  7106. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7107. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7108. # default) and relocated if they conflict, which is a slow very memory
  7109. # consuming and fragmenting process. To avoid this, we pick a random,
  7110. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7111. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7112. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7113. 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'
  7114. ;;
  7115. gnu* | linux* | k*bsd*-gnu)
  7116. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7117. tmp_addflag=
  7118. case $cc_basename,$host_cpu in
  7119. pgcc*) # Portland Group C compiler
  7120. 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'
  7121. tmp_addflag=' $pic_flag'
  7122. ;;
  7123. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7124. 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'
  7125. tmp_addflag=' $pic_flag -Mnomain' ;;
  7126. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7127. tmp_addflag=' -i_dynamic' ;;
  7128. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7129. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7130. ifc* | ifort*) # Intel Fortran compiler
  7131. tmp_addflag=' -nofor_main' ;;
  7132. esac
  7133. case `$CC -V 2>&1 | sed 5q` in
  7134. *Sun\ C*) # Sun C 5.9
  7135. 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'
  7136. tmp_sharedflag='-G' ;;
  7137. *Sun\ F*) # Sun Fortran 8.3
  7138. tmp_sharedflag='-G' ;;
  7139. *)
  7140. tmp_sharedflag='-shared' ;;
  7141. esac
  7142. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7143. if test $supports_anon_versioning = yes; then
  7144. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7145. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7146. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7147. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7148. fi
  7149. else
  7150. ld_shlibs=no
  7151. fi
  7152. ;;
  7153. netbsd*)
  7154. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7155. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7156. wlarc=
  7157. else
  7158. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7159. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7160. fi
  7161. ;;
  7162. solaris*)
  7163. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7164. ld_shlibs=no
  7165. cat <<EOF 1>&2
  7166. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7167. *** create shared libraries on Solaris systems. Therefore, libtool
  7168. *** is disabling shared libraries support. We urge you to upgrade GNU
  7169. *** binutils to release 2.9.1 or newer. Another option is to modify
  7170. *** your PATH or compiler configuration so that the native linker is
  7171. *** used, and then restart.
  7172. EOF
  7173. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7174. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7175. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7176. else
  7177. ld_shlibs=no
  7178. fi
  7179. ;;
  7180. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7181. case `$LD -v 2>&1` in
  7182. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7183. ld_shlibs=no
  7184. cat <<_LT_EOF 1>&2
  7185. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7186. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7187. *** is disabling shared libraries support. We urge you to upgrade GNU
  7188. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7189. *** your PATH or compiler configuration so that the native linker is
  7190. *** used, and then restart.
  7191. _LT_EOF
  7192. ;;
  7193. *)
  7194. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7195. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7196. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7197. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7198. else
  7199. ld_shlibs=no
  7200. fi
  7201. ;;
  7202. esac
  7203. ;;
  7204. sunos4*)
  7205. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7206. wlarc=
  7207. hardcode_direct=yes
  7208. hardcode_shlibpath_var=no
  7209. ;;
  7210. *)
  7211. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7212. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7213. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7214. else
  7215. ld_shlibs=no
  7216. fi
  7217. ;;
  7218. esac
  7219. if test "$ld_shlibs" = no; then
  7220. runpath_var=
  7221. hardcode_libdir_flag_spec=
  7222. export_dynamic_flag_spec=
  7223. whole_archive_flag_spec=
  7224. fi
  7225. else
  7226. # PORTME fill in a description of your system's linker (not GNU ld)
  7227. case $host_os in
  7228. aix3*)
  7229. allow_undefined_flag=unsupported
  7230. always_export_symbols=yes
  7231. 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'
  7232. # Note: this linker hardcodes the directories in LIBPATH if there
  7233. # are no directories specified by -L.
  7234. hardcode_minus_L=yes
  7235. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7236. # Neither direct hardcoding nor static linking is supported with a
  7237. # broken collect2.
  7238. hardcode_direct=unsupported
  7239. fi
  7240. ;;
  7241. aix4* | aix5*)
  7242. if test "$host_cpu" = ia64; then
  7243. # On IA64, the linker does run time linking by default, so we don't
  7244. # have to do anything special.
  7245. aix_use_runtimelinking=no
  7246. exp_sym_flag='-Bexport'
  7247. no_entry_flag=""
  7248. else
  7249. # If we're using GNU nm, then we don't want the "-C" option.
  7250. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7251. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7252. 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'
  7253. else
  7254. 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'
  7255. fi
  7256. aix_use_runtimelinking=no
  7257. # Test if we are trying to use run time linking or normal
  7258. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7259. # need to do runtime linking.
  7260. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7261. for ld_flag in $LDFLAGS; do
  7262. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7263. aix_use_runtimelinking=yes
  7264. break
  7265. fi
  7266. done
  7267. ;;
  7268. esac
  7269. exp_sym_flag='-bexport'
  7270. no_entry_flag='-bnoentry'
  7271. fi
  7272. # When large executables or shared objects are built, AIX ld can
  7273. # have problems creating the table of contents. If linking a library
  7274. # or program results in "error TOC overflow" add -mminimal-toc to
  7275. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7276. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7277. archive_cmds=''
  7278. hardcode_direct=yes
  7279. hardcode_libdir_separator=':'
  7280. link_all_deplibs=yes
  7281. if test "$GCC" = yes; then
  7282. case $host_os in aix4.[012]|aix4.[012].*)
  7283. # We only want to do this on AIX 4.2 and lower, the check
  7284. # below for broken collect2 doesn't work under 4.3+
  7285. collect2name=`${CC} -print-prog-name=collect2`
  7286. if test -f "$collect2name" && \
  7287. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7288. then
  7289. # We have reworked collect2
  7290. :
  7291. else
  7292. # We have old collect2
  7293. hardcode_direct=unsupported
  7294. # It fails to find uninstalled libraries when the uninstalled
  7295. # path is not listed in the libpath. Setting hardcode_minus_L
  7296. # to unsupported forces relinking
  7297. hardcode_minus_L=yes
  7298. hardcode_libdir_flag_spec='-L$libdir'
  7299. hardcode_libdir_separator=
  7300. fi
  7301. ;;
  7302. esac
  7303. shared_flag='-shared'
  7304. if test "$aix_use_runtimelinking" = yes; then
  7305. shared_flag="$shared_flag "'${wl}-G'
  7306. fi
  7307. else
  7308. # not using gcc
  7309. if test "$host_cpu" = ia64; then
  7310. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7311. # chokes on -Wl,-G. The following line is correct:
  7312. shared_flag='-G'
  7313. else
  7314. if test "$aix_use_runtimelinking" = yes; then
  7315. shared_flag='${wl}-G'
  7316. else
  7317. shared_flag='${wl}-bM:SRE'
  7318. fi
  7319. fi
  7320. fi
  7321. # It seems that -bexpall does not export symbols beginning with
  7322. # underscore (_), so it is better to generate a list of symbols to export.
  7323. always_export_symbols=yes
  7324. if test "$aix_use_runtimelinking" = yes; then
  7325. # Warning - without using the other runtime loading flags (-brtl),
  7326. # -berok will link without error, but may produce a broken library.
  7327. allow_undefined_flag='-berok'
  7328. # Determine the default libpath from the value encoded in an empty executable.
  7329. cat >conftest.$ac_ext <<_ACEOF
  7330. /* confdefs.h. */
  7331. _ACEOF
  7332. cat confdefs.h >>conftest.$ac_ext
  7333. cat >>conftest.$ac_ext <<_ACEOF
  7334. /* end confdefs.h. */
  7335. int
  7336. main ()
  7337. {
  7338. ;
  7339. return 0;
  7340. }
  7341. _ACEOF
  7342. rm -f conftest.$ac_objext conftest$ac_exeext
  7343. if { (ac_try="$ac_link"
  7344. case "(($ac_try" in
  7345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7346. *) ac_try_echo=$ac_try;;
  7347. esac
  7348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7349. (eval "$ac_link") 2>conftest.er1
  7350. ac_status=$?
  7351. grep -v '^ *+' conftest.er1 >conftest.err
  7352. rm -f conftest.er1
  7353. cat conftest.err >&5
  7354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7355. (exit $ac_status); } && {
  7356. test -z "$ac_c_werror_flag" ||
  7357. test ! -s conftest.err
  7358. } && test -s conftest$ac_exeext &&
  7359. $as_test_x conftest$ac_exeext; then
  7360. lt_aix_libpath_sed='
  7361. /Import File Strings/,/^$/ {
  7362. /^0/ {
  7363. s/^0 *\(.*\)$/\1/
  7364. p
  7365. }
  7366. }'
  7367. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7368. # Check for a 64-bit object if we didn't find anything.
  7369. if test -z "$aix_libpath"; then
  7370. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7371. fi
  7372. else
  7373. echo "$as_me: failed program was:" >&5
  7374. sed 's/^/| /' conftest.$ac_ext >&5
  7375. fi
  7376. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7377. conftest$ac_exeext conftest.$ac_ext
  7378. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7379. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7380. 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"
  7381. else
  7382. if test "$host_cpu" = ia64; then
  7383. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7384. allow_undefined_flag="-z nodefs"
  7385. 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"
  7386. else
  7387. # Determine the default libpath from the value encoded in an empty executable.
  7388. cat >conftest.$ac_ext <<_ACEOF
  7389. /* confdefs.h. */
  7390. _ACEOF
  7391. cat confdefs.h >>conftest.$ac_ext
  7392. cat >>conftest.$ac_ext <<_ACEOF
  7393. /* end confdefs.h. */
  7394. int
  7395. main ()
  7396. {
  7397. ;
  7398. return 0;
  7399. }
  7400. _ACEOF
  7401. rm -f conftest.$ac_objext conftest$ac_exeext
  7402. if { (ac_try="$ac_link"
  7403. case "(($ac_try" in
  7404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7405. *) ac_try_echo=$ac_try;;
  7406. esac
  7407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7408. (eval "$ac_link") 2>conftest.er1
  7409. ac_status=$?
  7410. grep -v '^ *+' conftest.er1 >conftest.err
  7411. rm -f conftest.er1
  7412. cat conftest.err >&5
  7413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7414. (exit $ac_status); } && {
  7415. test -z "$ac_c_werror_flag" ||
  7416. test ! -s conftest.err
  7417. } && test -s conftest$ac_exeext &&
  7418. $as_test_x conftest$ac_exeext; then
  7419. lt_aix_libpath_sed='
  7420. /Import File Strings/,/^$/ {
  7421. /^0/ {
  7422. s/^0 *\(.*\)$/\1/
  7423. p
  7424. }
  7425. }'
  7426. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7427. # Check for a 64-bit object if we didn't find anything.
  7428. if test -z "$aix_libpath"; then
  7429. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7430. fi
  7431. else
  7432. echo "$as_me: failed program was:" >&5
  7433. sed 's/^/| /' conftest.$ac_ext >&5
  7434. fi
  7435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7436. conftest$ac_exeext conftest.$ac_ext
  7437. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7438. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7439. # Warning - without using the other run time loading flags,
  7440. # -berok will link without error, but may produce a broken library.
  7441. no_undefined_flag=' ${wl}-bernotok'
  7442. allow_undefined_flag=' ${wl}-berok'
  7443. # Exported symbols can be pulled into shared objects from archives
  7444. whole_archive_flag_spec='$convenience'
  7445. archive_cmds_need_lc=yes
  7446. # This is similar to how AIX traditionally builds its shared libraries.
  7447. 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'
  7448. fi
  7449. fi
  7450. ;;
  7451. amigaos*)
  7452. 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)'
  7453. hardcode_libdir_flag_spec='-L$libdir'
  7454. hardcode_minus_L=yes
  7455. # see comment about different semantics on the GNU ld section
  7456. ld_shlibs=no
  7457. ;;
  7458. bsdi[45]*)
  7459. export_dynamic_flag_spec=-rdynamic
  7460. ;;
  7461. cygwin* | mingw* | pw32*)
  7462. # When not using gcc, we currently assume that we are using
  7463. # Microsoft Visual C++.
  7464. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7465. # no search path for DLLs.
  7466. hardcode_libdir_flag_spec=' '
  7467. allow_undefined_flag=unsupported
  7468. # Tell ltmain to make .lib files, not .a files.
  7469. libext=lib
  7470. # Tell ltmain to make .dll files, not .so files.
  7471. shrext_cmds=".dll"
  7472. # FIXME: Setting linknames here is a bad hack.
  7473. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7474. # The linker will automatically build a .lib file if we build a DLL.
  7475. old_archive_From_new_cmds='true'
  7476. # FIXME: Should let the user specify the lib program.
  7477. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7478. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7479. enable_shared_with_static_runtimes=yes
  7480. ;;
  7481. darwin* | rhapsody*)
  7482. case $host_os in
  7483. rhapsody* | darwin1.[012])
  7484. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7485. ;;
  7486. *) # Darwin 1.3 on
  7487. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7488. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7489. else
  7490. case ${MACOSX_DEPLOYMENT_TARGET} in
  7491. 10.[012])
  7492. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7493. ;;
  7494. 10.*)
  7495. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7496. ;;
  7497. esac
  7498. fi
  7499. ;;
  7500. esac
  7501. archive_cmds_need_lc=no
  7502. hardcode_direct=no
  7503. hardcode_automatic=yes
  7504. hardcode_shlibpath_var=unsupported
  7505. whole_archive_flag_spec=''
  7506. link_all_deplibs=yes
  7507. if test "$GCC" = yes ; then
  7508. output_verbose_link_cmd='echo'
  7509. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7510. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7511. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7512. 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}'
  7513. 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}'
  7514. else
  7515. case $cc_basename in
  7516. xlc*)
  7517. output_verbose_link_cmd='echo'
  7518. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7519. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7520. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7521. 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}'
  7522. 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}'
  7523. ;;
  7524. *)
  7525. ld_shlibs=no
  7526. ;;
  7527. esac
  7528. fi
  7529. ;;
  7530. dgux*)
  7531. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7532. hardcode_libdir_flag_spec='-L$libdir'
  7533. hardcode_shlibpath_var=no
  7534. ;;
  7535. freebsd1*)
  7536. ld_shlibs=no
  7537. ;;
  7538. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7539. # support. Future versions do this automatically, but an explicit c++rt0.o
  7540. # does not break anything, and helps significantly (at the cost of a little
  7541. # extra space).
  7542. freebsd2.2*)
  7543. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7544. hardcode_libdir_flag_spec='-R$libdir'
  7545. hardcode_direct=yes
  7546. hardcode_shlibpath_var=no
  7547. ;;
  7548. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7549. freebsd2*)
  7550. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7551. hardcode_direct=yes
  7552. hardcode_minus_L=yes
  7553. hardcode_shlibpath_var=no
  7554. ;;
  7555. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7556. freebsd* | dragonfly*)
  7557. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7558. hardcode_libdir_flag_spec='-R$libdir'
  7559. hardcode_direct=yes
  7560. hardcode_shlibpath_var=no
  7561. ;;
  7562. hpux9*)
  7563. if test "$GCC" = yes; then
  7564. 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'
  7565. else
  7566. 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'
  7567. fi
  7568. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7569. hardcode_libdir_separator=:
  7570. hardcode_direct=yes
  7571. # hardcode_minus_L: Not really in the search PATH,
  7572. # but as the default location of the library.
  7573. hardcode_minus_L=yes
  7574. export_dynamic_flag_spec='${wl}-E'
  7575. ;;
  7576. hpux10*)
  7577. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7578. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7579. else
  7580. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7581. fi
  7582. if test "$with_gnu_ld" = no; then
  7583. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7584. hardcode_libdir_separator=:
  7585. hardcode_direct=yes
  7586. export_dynamic_flag_spec='${wl}-E'
  7587. # hardcode_minus_L: Not really in the search PATH,
  7588. # but as the default location of the library.
  7589. hardcode_minus_L=yes
  7590. fi
  7591. ;;
  7592. hpux11*)
  7593. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7594. case $host_cpu in
  7595. hppa*64*)
  7596. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7597. ;;
  7598. ia64*)
  7599. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7600. ;;
  7601. *)
  7602. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7603. ;;
  7604. esac
  7605. else
  7606. case $host_cpu in
  7607. hppa*64*)
  7608. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7609. ;;
  7610. ia64*)
  7611. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7612. ;;
  7613. *)
  7614. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7615. ;;
  7616. esac
  7617. fi
  7618. if test "$with_gnu_ld" = no; then
  7619. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7620. hardcode_libdir_separator=:
  7621. case $host_cpu in
  7622. hppa*64*|ia64*)
  7623. hardcode_libdir_flag_spec_ld='+b $libdir'
  7624. hardcode_direct=no
  7625. hardcode_shlibpath_var=no
  7626. ;;
  7627. *)
  7628. hardcode_direct=yes
  7629. export_dynamic_flag_spec='${wl}-E'
  7630. # hardcode_minus_L: Not really in the search PATH,
  7631. # but as the default location of the library.
  7632. hardcode_minus_L=yes
  7633. ;;
  7634. esac
  7635. fi
  7636. ;;
  7637. irix5* | irix6* | nonstopux*)
  7638. if test "$GCC" = yes; then
  7639. 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'
  7640. else
  7641. 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'
  7642. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7643. fi
  7644. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7645. hardcode_libdir_separator=:
  7646. link_all_deplibs=yes
  7647. ;;
  7648. netbsd*)
  7649. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7650. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7651. else
  7652. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7653. fi
  7654. hardcode_libdir_flag_spec='-R$libdir'
  7655. hardcode_direct=yes
  7656. hardcode_shlibpath_var=no
  7657. ;;
  7658. newsos6)
  7659. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7660. hardcode_direct=yes
  7661. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7662. hardcode_libdir_separator=:
  7663. hardcode_shlibpath_var=no
  7664. ;;
  7665. openbsd*)
  7666. if test -f /usr/libexec/ld.so; then
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7670. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7671. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7672. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7673. export_dynamic_flag_spec='${wl}-E'
  7674. else
  7675. case $host_os in
  7676. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7677. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7678. hardcode_libdir_flag_spec='-R$libdir'
  7679. ;;
  7680. *)
  7681. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7682. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7683. ;;
  7684. esac
  7685. fi
  7686. else
  7687. ld_shlibs=no
  7688. fi
  7689. ;;
  7690. os2*)
  7691. hardcode_libdir_flag_spec='-L$libdir'
  7692. hardcode_minus_L=yes
  7693. allow_undefined_flag=unsupported
  7694. 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'
  7695. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7696. ;;
  7697. osf3*)
  7698. if test "$GCC" = yes; then
  7699. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7700. 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'
  7701. else
  7702. allow_undefined_flag=' -expect_unresolved \*'
  7703. 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'
  7704. fi
  7705. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7706. hardcode_libdir_separator=:
  7707. ;;
  7708. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7709. if test "$GCC" = yes; then
  7710. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7711. 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'
  7712. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7713. else
  7714. allow_undefined_flag=' -expect_unresolved \*'
  7715. 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'
  7716. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7717. $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'
  7718. # Both c and cxx compiler support -rpath directly
  7719. hardcode_libdir_flag_spec='-rpath $libdir'
  7720. fi
  7721. hardcode_libdir_separator=:
  7722. ;;
  7723. solaris*)
  7724. no_undefined_flag=' -z text'
  7725. if test "$GCC" = yes; then
  7726. wlarc='${wl}'
  7727. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7728. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7729. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7730. else
  7731. wlarc=''
  7732. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7733. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7734. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7735. fi
  7736. hardcode_libdir_flag_spec='-R$libdir'
  7737. hardcode_shlibpath_var=no
  7738. case $host_os in
  7739. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7740. *)
  7741. # The compiler driver will combine and reorder linker options,
  7742. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7743. # but is careful enough not to reorder.
  7744. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7745. if test "$GCC" = yes; then
  7746. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7747. else
  7748. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7749. fi
  7750. ;;
  7751. esac
  7752. link_all_deplibs=yes
  7753. ;;
  7754. sunos4*)
  7755. if test "x$host_vendor" = xsequent; then
  7756. # Use $CC to link under sequent, because it throws in some extra .o
  7757. # files that make .init and .fini sections work.
  7758. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7759. else
  7760. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7761. fi
  7762. hardcode_libdir_flag_spec='-L$libdir'
  7763. hardcode_direct=yes
  7764. hardcode_minus_L=yes
  7765. hardcode_shlibpath_var=no
  7766. ;;
  7767. sysv4)
  7768. case $host_vendor in
  7769. sni)
  7770. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7771. hardcode_direct=yes # is this really true???
  7772. ;;
  7773. siemens)
  7774. ## LD is ld it makes a PLAMLIB
  7775. ## CC just makes a GrossModule.
  7776. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7777. reload_cmds='$CC -r -o $output$reload_objs'
  7778. hardcode_direct=no
  7779. ;;
  7780. motorola)
  7781. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7782. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7783. ;;
  7784. esac
  7785. runpath_var='LD_RUN_PATH'
  7786. hardcode_shlibpath_var=no
  7787. ;;
  7788. sysv4.3*)
  7789. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7790. hardcode_shlibpath_var=no
  7791. export_dynamic_flag_spec='-Bexport'
  7792. ;;
  7793. sysv4*MP*)
  7794. if test -d /usr/nec; then
  7795. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7796. hardcode_shlibpath_var=no
  7797. runpath_var=LD_RUN_PATH
  7798. hardcode_runpath_var=yes
  7799. ld_shlibs=yes
  7800. fi
  7801. ;;
  7802. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7803. no_undefined_flag='${wl}-z,text'
  7804. archive_cmds_need_lc=no
  7805. hardcode_shlibpath_var=no
  7806. runpath_var='LD_RUN_PATH'
  7807. if test "$GCC" = yes; then
  7808. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7809. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7810. else
  7811. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7812. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7813. fi
  7814. ;;
  7815. sysv5* | sco3.2v5* | sco5v6*)
  7816. # Note: We can NOT use -z defs as we might desire, because we do not
  7817. # link with -lc, and that would cause any symbols used from libc to
  7818. # always be unresolved, which means just about no library would
  7819. # ever link correctly. If we're not using GNU ld we use -z text
  7820. # though, which does catch some bad symbols but isn't as heavy-handed
  7821. # as -z defs.
  7822. no_undefined_flag='${wl}-z,text'
  7823. allow_undefined_flag='${wl}-z,nodefs'
  7824. archive_cmds_need_lc=no
  7825. hardcode_shlibpath_var=no
  7826. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7827. hardcode_libdir_separator=':'
  7828. link_all_deplibs=yes
  7829. export_dynamic_flag_spec='${wl}-Bexport'
  7830. runpath_var='LD_RUN_PATH'
  7831. if test "$GCC" = yes; then
  7832. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7833. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7834. else
  7835. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7836. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7837. fi
  7838. ;;
  7839. uts4*)
  7840. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7841. hardcode_libdir_flag_spec='-L$libdir'
  7842. hardcode_shlibpath_var=no
  7843. ;;
  7844. *)
  7845. ld_shlibs=no
  7846. ;;
  7847. esac
  7848. fi
  7849. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7850. echo "${ECHO_T}$ld_shlibs" >&6; }
  7851. test "$ld_shlibs" = no && can_build_shared=no
  7852. #
  7853. # Do we need to explicitly link libc?
  7854. #
  7855. case "x$archive_cmds_need_lc" in
  7856. x|xyes)
  7857. # Assume -lc should be added
  7858. archive_cmds_need_lc=yes
  7859. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7860. case $archive_cmds in
  7861. *'~'*)
  7862. # FIXME: we may have to deal with multi-command sequences.
  7863. ;;
  7864. '$CC '*)
  7865. # Test whether the compiler implicitly links with -lc since on some
  7866. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7867. # to ld, don't add -lc before -lgcc.
  7868. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7869. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7870. $rm conftest*
  7871. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7872. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7873. (eval $ac_compile) 2>&5
  7874. ac_status=$?
  7875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7876. (exit $ac_status); } 2>conftest.err; then
  7877. soname=conftest
  7878. lib=conftest
  7879. libobjs=conftest.$ac_objext
  7880. deplibs=
  7881. wl=$lt_prog_compiler_wl
  7882. pic_flag=$lt_prog_compiler_pic
  7883. compiler_flags=-v
  7884. linker_flags=-v
  7885. verstring=
  7886. output_objdir=.
  7887. libname=conftest
  7888. lt_save_allow_undefined_flag=$allow_undefined_flag
  7889. allow_undefined_flag=
  7890. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7891. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7892. ac_status=$?
  7893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7894. (exit $ac_status); }
  7895. then
  7896. archive_cmds_need_lc=no
  7897. else
  7898. archive_cmds_need_lc=yes
  7899. fi
  7900. allow_undefined_flag=$lt_save_allow_undefined_flag
  7901. else
  7902. cat conftest.err 1>&5
  7903. fi
  7904. $rm conftest*
  7905. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7906. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7907. ;;
  7908. esac
  7909. fi
  7910. ;;
  7911. esac
  7912. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7913. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7914. library_names_spec=
  7915. libname_spec='lib$name'
  7916. soname_spec=
  7917. shrext_cmds=".so"
  7918. postinstall_cmds=
  7919. postuninstall_cmds=
  7920. finish_cmds=
  7921. finish_eval=
  7922. shlibpath_var=
  7923. shlibpath_overrides_runpath=unknown
  7924. version_type=none
  7925. dynamic_linker="$host_os ld.so"
  7926. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7927. if test "$GCC" = yes; then
  7928. case $host_os in
  7929. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7930. *) lt_awk_arg="/^libraries:/" ;;
  7931. esac
  7932. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7933. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7934. # if the path contains ";" then we assume it to be the separator
  7935. # otherwise default to the standard path separator (i.e. ":") - it is
  7936. # assumed that no part of a normal pathname contains ";" but that should
  7937. # okay in the real world where ";" in dirpaths is itself problematic.
  7938. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7939. else
  7940. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7941. fi
  7942. # Ok, now we have the path, separated by spaces, we can step through it
  7943. # and add multilib dir if necessary.
  7944. lt_tmp_lt_search_path_spec=
  7945. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7946. for lt_sys_path in $lt_search_path_spec; do
  7947. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7948. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7949. else
  7950. test -d "$lt_sys_path" && \
  7951. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7952. fi
  7953. done
  7954. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7955. BEGIN {RS=" "; FS="/|\n";} {
  7956. lt_foo="";
  7957. lt_count=0;
  7958. for (lt_i = NF; lt_i > 0; lt_i--) {
  7959. if ($lt_i != "" && $lt_i != ".") {
  7960. if ($lt_i == "..") {
  7961. lt_count++;
  7962. } else {
  7963. if (lt_count == 0) {
  7964. lt_foo="/" $lt_i lt_foo;
  7965. } else {
  7966. lt_count--;
  7967. }
  7968. }
  7969. }
  7970. }
  7971. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7972. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7973. }'`
  7974. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7975. else
  7976. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7977. fi
  7978. need_lib_prefix=unknown
  7979. hardcode_into_libs=no
  7980. # when you set need_version to no, make sure it does not cause -set_version
  7981. # flags to be left without arguments
  7982. need_version=unknown
  7983. case $host_os in
  7984. aix3*)
  7985. version_type=linux
  7986. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7987. shlibpath_var=LIBPATH
  7988. # AIX 3 has no versioning support, so we append a major version to the name.
  7989. soname_spec='${libname}${release}${shared_ext}$major'
  7990. ;;
  7991. aix4* | aix5*)
  7992. version_type=linux
  7993. need_lib_prefix=no
  7994. need_version=no
  7995. hardcode_into_libs=yes
  7996. if test "$host_cpu" = ia64; then
  7997. # AIX 5 supports IA64
  7998. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7999. shlibpath_var=LD_LIBRARY_PATH
  8000. else
  8001. # With GCC up to 2.95.x, collect2 would create an import file
  8002. # for dependence libraries. The import file would start with
  8003. # the line `#! .'. This would cause the generated library to
  8004. # depend on `.', always an invalid library. This was fixed in
  8005. # development snapshots of GCC prior to 3.0.
  8006. case $host_os in
  8007. aix4 | aix4.[01] | aix4.[01].*)
  8008. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8009. echo ' yes '
  8010. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8011. :
  8012. else
  8013. can_build_shared=no
  8014. fi
  8015. ;;
  8016. esac
  8017. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8018. # soname into executable. Probably we can add versioning support to
  8019. # collect2, so additional links can be useful in future.
  8020. if test "$aix_use_runtimelinking" = yes; then
  8021. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8022. # instead of lib<name>.a to let people know that these are not
  8023. # typical AIX shared libraries.
  8024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8025. else
  8026. # We preserve .a as extension for shared libraries through AIX4.2
  8027. # and later when we are not doing run time linking.
  8028. library_names_spec='${libname}${release}.a $libname.a'
  8029. soname_spec='${libname}${release}${shared_ext}$major'
  8030. fi
  8031. shlibpath_var=LIBPATH
  8032. fi
  8033. ;;
  8034. amigaos*)
  8035. library_names_spec='$libname.ixlibrary $libname.a'
  8036. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8037. 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'
  8038. ;;
  8039. beos*)
  8040. library_names_spec='${libname}${shared_ext}'
  8041. dynamic_linker="$host_os ld.so"
  8042. shlibpath_var=LIBRARY_PATH
  8043. ;;
  8044. bsdi[45]*)
  8045. version_type=linux
  8046. need_version=no
  8047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8048. soname_spec='${libname}${release}${shared_ext}$major'
  8049. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8050. shlibpath_var=LD_LIBRARY_PATH
  8051. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8052. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8053. # the default ld.so.conf also contains /usr/contrib/lib and
  8054. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8055. # libtool to hard-code these into programs
  8056. ;;
  8057. cygwin* | mingw* | pw32*)
  8058. version_type=windows
  8059. shrext_cmds=".dll"
  8060. need_version=no
  8061. need_lib_prefix=no
  8062. case $GCC,$host_os in
  8063. yes,cygwin* | yes,mingw* | yes,pw32*)
  8064. library_names_spec='$libname.dll.a'
  8065. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8066. postinstall_cmds='base_file=`basename \${file}`~
  8067. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8068. dldir=$destdir/`dirname \$dlpath`~
  8069. test -d \$dldir || mkdir -p \$dldir~
  8070. $install_prog $dir/$dlname \$dldir/$dlname~
  8071. chmod a+x \$dldir/$dlname'
  8072. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8073. dlpath=$dir/\$dldll~
  8074. $rm \$dlpath'
  8075. shlibpath_overrides_runpath=yes
  8076. case $host_os in
  8077. cygwin*)
  8078. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8079. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8080. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8081. ;;
  8082. mingw*)
  8083. # MinGW DLLs use traditional 'lib' prefix
  8084. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8085. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8086. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8087. # It is most probably a Windows format PATH printed by
  8088. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8089. # path with ; separators, and with drive letters. We can handle the
  8090. # drive letters (cygwin fileutils understands them), so leave them,
  8091. # especially as we might pass files found there to a mingw objdump,
  8092. # which wouldn't understand a cygwinified path. Ahh.
  8093. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8094. else
  8095. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8096. fi
  8097. ;;
  8098. pw32*)
  8099. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8100. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8101. ;;
  8102. esac
  8103. ;;
  8104. *)
  8105. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8106. ;;
  8107. esac
  8108. dynamic_linker='Win32 ld.exe'
  8109. # FIXME: first we should search . and the directory the executable is in
  8110. shlibpath_var=PATH
  8111. ;;
  8112. darwin* | rhapsody*)
  8113. dynamic_linker="$host_os dyld"
  8114. version_type=darwin
  8115. need_lib_prefix=no
  8116. need_version=no
  8117. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8118. soname_spec='${libname}${release}${major}$shared_ext'
  8119. shlibpath_overrides_runpath=yes
  8120. shlibpath_var=DYLD_LIBRARY_PATH
  8121. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8122. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8123. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8124. ;;
  8125. dgux*)
  8126. version_type=linux
  8127. need_lib_prefix=no
  8128. need_version=no
  8129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8130. soname_spec='${libname}${release}${shared_ext}$major'
  8131. shlibpath_var=LD_LIBRARY_PATH
  8132. ;;
  8133. freebsd1*)
  8134. dynamic_linker=no
  8135. ;;
  8136. freebsd* | dragonfly*)
  8137. # DragonFly does not have aout. When/if they implement a new
  8138. # versioning mechanism, adjust this.
  8139. if test -x /usr/bin/objformat; then
  8140. objformat=`/usr/bin/objformat`
  8141. else
  8142. case $host_os in
  8143. freebsd[123]*) objformat=aout ;;
  8144. *) objformat=elf ;;
  8145. esac
  8146. fi
  8147. version_type=freebsd-$objformat
  8148. case $version_type in
  8149. freebsd-elf*)
  8150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8151. need_version=no
  8152. need_lib_prefix=no
  8153. ;;
  8154. freebsd-*)
  8155. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8156. need_version=yes
  8157. ;;
  8158. esac
  8159. shlibpath_var=LD_LIBRARY_PATH
  8160. case $host_os in
  8161. freebsd2*)
  8162. shlibpath_overrides_runpath=yes
  8163. ;;
  8164. freebsd3.[01]* | freebsdelf3.[01]*)
  8165. shlibpath_overrides_runpath=yes
  8166. hardcode_into_libs=yes
  8167. ;;
  8168. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8169. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8170. shlibpath_overrides_runpath=no
  8171. hardcode_into_libs=yes
  8172. ;;
  8173. *) # from 4.6 on, and DragonFly
  8174. shlibpath_overrides_runpath=yes
  8175. hardcode_into_libs=yes
  8176. ;;
  8177. esac
  8178. ;;
  8179. gnu*)
  8180. version_type=linux
  8181. need_lib_prefix=no
  8182. need_version=no
  8183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8184. soname_spec='${libname}${release}${shared_ext}$major'
  8185. shlibpath_var=LD_LIBRARY_PATH
  8186. hardcode_into_libs=yes
  8187. ;;
  8188. hpux9* | hpux10* | hpux11*)
  8189. # Give a soname corresponding to the major version so that dld.sl refuses to
  8190. # link against other versions.
  8191. version_type=sunos
  8192. need_lib_prefix=no
  8193. need_version=no
  8194. case $host_cpu in
  8195. ia64*)
  8196. shrext_cmds='.so'
  8197. hardcode_into_libs=yes
  8198. dynamic_linker="$host_os dld.so"
  8199. shlibpath_var=LD_LIBRARY_PATH
  8200. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8202. soname_spec='${libname}${release}${shared_ext}$major'
  8203. if test "X$HPUX_IA64_MODE" = X32; then
  8204. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8205. else
  8206. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8207. fi
  8208. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8209. ;;
  8210. hppa*64*)
  8211. shrext_cmds='.sl'
  8212. hardcode_into_libs=yes
  8213. dynamic_linker="$host_os dld.sl"
  8214. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8215. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8217. soname_spec='${libname}${release}${shared_ext}$major'
  8218. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8219. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8220. ;;
  8221. *)
  8222. shrext_cmds='.sl'
  8223. dynamic_linker="$host_os dld.sl"
  8224. shlibpath_var=SHLIB_PATH
  8225. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8227. soname_spec='${libname}${release}${shared_ext}$major'
  8228. ;;
  8229. esac
  8230. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8231. postinstall_cmds='chmod 555 $lib'
  8232. ;;
  8233. interix[3-9]*)
  8234. version_type=linux
  8235. need_lib_prefix=no
  8236. need_version=no
  8237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8238. soname_spec='${libname}${release}${shared_ext}$major'
  8239. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8240. shlibpath_var=LD_LIBRARY_PATH
  8241. shlibpath_overrides_runpath=no
  8242. hardcode_into_libs=yes
  8243. ;;
  8244. irix5* | irix6* | nonstopux*)
  8245. case $host_os in
  8246. nonstopux*) version_type=nonstopux ;;
  8247. *)
  8248. if test "$lt_cv_prog_gnu_ld" = yes; then
  8249. version_type=linux
  8250. else
  8251. version_type=irix
  8252. fi ;;
  8253. esac
  8254. need_lib_prefix=no
  8255. need_version=no
  8256. soname_spec='${libname}${release}${shared_ext}$major'
  8257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8258. case $host_os in
  8259. irix5* | nonstopux*)
  8260. libsuff= shlibsuff=
  8261. ;;
  8262. *)
  8263. case $LD in # libtool.m4 will add one of these switches to LD
  8264. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8265. libsuff= shlibsuff= libmagic=32-bit;;
  8266. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8267. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8268. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8269. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8270. *) libsuff= shlibsuff= libmagic=never-match;;
  8271. esac
  8272. ;;
  8273. esac
  8274. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8275. shlibpath_overrides_runpath=no
  8276. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8277. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8278. hardcode_into_libs=yes
  8279. ;;
  8280. # No shared lib support for Linux oldld, aout, or coff.
  8281. linux*oldld* | linux*aout* | linux*coff*)
  8282. dynamic_linker=no
  8283. ;;
  8284. # This must be Linux ELF.
  8285. linux* | k*bsd*-gnu)
  8286. version_type=linux
  8287. need_lib_prefix=no
  8288. need_version=no
  8289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8290. soname_spec='${libname}${release}${shared_ext}$major'
  8291. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8292. shlibpath_var=LD_LIBRARY_PATH
  8293. shlibpath_overrides_runpath=no
  8294. # This implies no fast_install, which is unacceptable.
  8295. # Some rework will be needed to allow for fast_install
  8296. # before this can be enabled.
  8297. hardcode_into_libs=yes
  8298. # Append ld.so.conf contents to the search path
  8299. if test -f /etc/ld.so.conf; then
  8300. 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' ' '`
  8301. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8302. fi
  8303. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8304. # powerpc, because MkLinux only supported shared libraries with the
  8305. # GNU dynamic linker. Since this was broken with cross compilers,
  8306. # most powerpc-linux boxes support dynamic linking these days and
  8307. # people can always --disable-shared, the test was removed, and we
  8308. # assume the GNU/Linux dynamic linker is in use.
  8309. dynamic_linker='GNU/Linux ld.so'
  8310. ;;
  8311. netbsd*)
  8312. version_type=sunos
  8313. need_lib_prefix=no
  8314. need_version=no
  8315. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8317. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8318. dynamic_linker='NetBSD (a.out) ld.so'
  8319. else
  8320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8321. soname_spec='${libname}${release}${shared_ext}$major'
  8322. dynamic_linker='NetBSD ld.elf_so'
  8323. fi
  8324. shlibpath_var=LD_LIBRARY_PATH
  8325. shlibpath_overrides_runpath=yes
  8326. hardcode_into_libs=yes
  8327. ;;
  8328. newsos6)
  8329. version_type=linux
  8330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8331. shlibpath_var=LD_LIBRARY_PATH
  8332. shlibpath_overrides_runpath=yes
  8333. ;;
  8334. nto-qnx*)
  8335. version_type=linux
  8336. need_lib_prefix=no
  8337. need_version=no
  8338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8339. soname_spec='${libname}${release}${shared_ext}$major'
  8340. shlibpath_var=LD_LIBRARY_PATH
  8341. shlibpath_overrides_runpath=yes
  8342. ;;
  8343. openbsd*)
  8344. version_type=sunos
  8345. sys_lib_dlsearch_path_spec="/usr/lib"
  8346. need_lib_prefix=no
  8347. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8348. case $host_os in
  8349. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8350. *) need_version=no ;;
  8351. esac
  8352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8353. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8354. shlibpath_var=LD_LIBRARY_PATH
  8355. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8356. case $host_os in
  8357. openbsd2.[89] | openbsd2.[89].*)
  8358. shlibpath_overrides_runpath=no
  8359. ;;
  8360. *)
  8361. shlibpath_overrides_runpath=yes
  8362. ;;
  8363. esac
  8364. else
  8365. shlibpath_overrides_runpath=yes
  8366. fi
  8367. ;;
  8368. os2*)
  8369. libname_spec='$name'
  8370. shrext_cmds=".dll"
  8371. need_lib_prefix=no
  8372. library_names_spec='$libname${shared_ext} $libname.a'
  8373. dynamic_linker='OS/2 ld.exe'
  8374. shlibpath_var=LIBPATH
  8375. ;;
  8376. osf3* | osf4* | osf5*)
  8377. version_type=osf
  8378. need_lib_prefix=no
  8379. need_version=no
  8380. soname_spec='${libname}${release}${shared_ext}$major'
  8381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8382. shlibpath_var=LD_LIBRARY_PATH
  8383. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8384. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8385. ;;
  8386. rdos*)
  8387. dynamic_linker=no
  8388. ;;
  8389. solaris*)
  8390. version_type=linux
  8391. need_lib_prefix=no
  8392. need_version=no
  8393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8394. soname_spec='${libname}${release}${shared_ext}$major'
  8395. shlibpath_var=LD_LIBRARY_PATH
  8396. shlibpath_overrides_runpath=yes
  8397. hardcode_into_libs=yes
  8398. # ldd complains unless libraries are executable
  8399. postinstall_cmds='chmod +x $lib'
  8400. ;;
  8401. sunos4*)
  8402. version_type=sunos
  8403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8404. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8405. shlibpath_var=LD_LIBRARY_PATH
  8406. shlibpath_overrides_runpath=yes
  8407. if test "$with_gnu_ld" = yes; then
  8408. need_lib_prefix=no
  8409. fi
  8410. need_version=yes
  8411. ;;
  8412. sysv4 | sysv4.3*)
  8413. version_type=linux
  8414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8415. soname_spec='${libname}${release}${shared_ext}$major'
  8416. shlibpath_var=LD_LIBRARY_PATH
  8417. case $host_vendor in
  8418. sni)
  8419. shlibpath_overrides_runpath=no
  8420. need_lib_prefix=no
  8421. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8422. runpath_var=LD_RUN_PATH
  8423. ;;
  8424. siemens)
  8425. need_lib_prefix=no
  8426. ;;
  8427. motorola)
  8428. need_lib_prefix=no
  8429. need_version=no
  8430. shlibpath_overrides_runpath=no
  8431. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8432. ;;
  8433. esac
  8434. ;;
  8435. sysv4*MP*)
  8436. if test -d /usr/nec ;then
  8437. version_type=linux
  8438. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8439. soname_spec='$libname${shared_ext}.$major'
  8440. shlibpath_var=LD_LIBRARY_PATH
  8441. fi
  8442. ;;
  8443. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8444. version_type=freebsd-elf
  8445. need_lib_prefix=no
  8446. need_version=no
  8447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8448. soname_spec='${libname}${release}${shared_ext}$major'
  8449. shlibpath_var=LD_LIBRARY_PATH
  8450. hardcode_into_libs=yes
  8451. if test "$with_gnu_ld" = yes; then
  8452. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8453. shlibpath_overrides_runpath=no
  8454. else
  8455. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8456. shlibpath_overrides_runpath=yes
  8457. case $host_os in
  8458. sco3.2v5*)
  8459. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8460. ;;
  8461. esac
  8462. fi
  8463. sys_lib_dlsearch_path_spec='/usr/lib'
  8464. ;;
  8465. uts4*)
  8466. version_type=linux
  8467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8468. soname_spec='${libname}${release}${shared_ext}$major'
  8469. shlibpath_var=LD_LIBRARY_PATH
  8470. ;;
  8471. *)
  8472. dynamic_linker=no
  8473. ;;
  8474. esac
  8475. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8476. echo "${ECHO_T}$dynamic_linker" >&6; }
  8477. test "$dynamic_linker" = no && can_build_shared=no
  8478. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8479. if test "$GCC" = yes; then
  8480. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8481. fi
  8482. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8483. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8484. hardcode_action=
  8485. if test -n "$hardcode_libdir_flag_spec" || \
  8486. test -n "$runpath_var" || \
  8487. test "X$hardcode_automatic" = "Xyes" ; then
  8488. # We can hardcode non-existant directories.
  8489. if test "$hardcode_direct" != no &&
  8490. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8491. # have to relink, otherwise we might link with an installed library
  8492. # when we should be linking with a yet-to-be-installed one
  8493. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8494. test "$hardcode_minus_L" != no; then
  8495. # Linking always hardcodes the temporary library directory.
  8496. hardcode_action=relink
  8497. else
  8498. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8499. hardcode_action=immediate
  8500. fi
  8501. else
  8502. # We cannot hardcode anything, or else we can only hardcode existing
  8503. # directories.
  8504. hardcode_action=unsupported
  8505. fi
  8506. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8507. echo "${ECHO_T}$hardcode_action" >&6; }
  8508. if test "$hardcode_action" = relink; then
  8509. # Fast installation is not supported
  8510. enable_fast_install=no
  8511. elif test "$shlibpath_overrides_runpath" = yes ||
  8512. test "$enable_shared" = no; then
  8513. # Fast installation is not necessary
  8514. enable_fast_install=needless
  8515. fi
  8516. striplib=
  8517. old_striplib=
  8518. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8519. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8520. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8521. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8522. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8523. { echo "$as_me:$LINENO: result: yes" >&5
  8524. echo "${ECHO_T}yes" >&6; }
  8525. else
  8526. # FIXME - insert some real tests, host_os isn't really good enough
  8527. case $host_os in
  8528. darwin*)
  8529. if test -n "$STRIP" ; then
  8530. striplib="$STRIP -x"
  8531. old_striplib="$STRIP -S"
  8532. { echo "$as_me:$LINENO: result: yes" >&5
  8533. echo "${ECHO_T}yes" >&6; }
  8534. else
  8535. { echo "$as_me:$LINENO: result: no" >&5
  8536. echo "${ECHO_T}no" >&6; }
  8537. fi
  8538. ;;
  8539. *)
  8540. { echo "$as_me:$LINENO: result: no" >&5
  8541. echo "${ECHO_T}no" >&6; }
  8542. ;;
  8543. esac
  8544. fi
  8545. if test "x$enable_dlopen" != xyes; then
  8546. enable_dlopen=unknown
  8547. enable_dlopen_self=unknown
  8548. enable_dlopen_self_static=unknown
  8549. else
  8550. lt_cv_dlopen=no
  8551. lt_cv_dlopen_libs=
  8552. case $host_os in
  8553. beos*)
  8554. lt_cv_dlopen="load_add_on"
  8555. lt_cv_dlopen_libs=
  8556. lt_cv_dlopen_self=yes
  8557. ;;
  8558. mingw* | pw32*)
  8559. lt_cv_dlopen="LoadLibrary"
  8560. lt_cv_dlopen_libs=
  8561. ;;
  8562. cygwin*)
  8563. lt_cv_dlopen="dlopen"
  8564. lt_cv_dlopen_libs=
  8565. ;;
  8566. darwin*)
  8567. # if libdl is installed we need to link against it
  8568. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8569. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8570. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8571. echo $ECHO_N "(cached) $ECHO_C" >&6
  8572. else
  8573. ac_check_lib_save_LIBS=$LIBS
  8574. LIBS="-ldl $LIBS"
  8575. cat >conftest.$ac_ext <<_ACEOF
  8576. /* confdefs.h. */
  8577. _ACEOF
  8578. cat confdefs.h >>conftest.$ac_ext
  8579. cat >>conftest.$ac_ext <<_ACEOF
  8580. /* end confdefs.h. */
  8581. /* Override any GCC internal prototype to avoid an error.
  8582. Use char because int might match the return type of a GCC
  8583. builtin and then its argument prototype would still apply. */
  8584. #ifdef __cplusplus
  8585. extern "C"
  8586. #endif
  8587. char dlopen ();
  8588. int
  8589. main ()
  8590. {
  8591. return dlopen ();
  8592. ;
  8593. return 0;
  8594. }
  8595. _ACEOF
  8596. rm -f conftest.$ac_objext conftest$ac_exeext
  8597. if { (ac_try="$ac_link"
  8598. case "(($ac_try" in
  8599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8600. *) ac_try_echo=$ac_try;;
  8601. esac
  8602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8603. (eval "$ac_link") 2>conftest.er1
  8604. ac_status=$?
  8605. grep -v '^ *+' conftest.er1 >conftest.err
  8606. rm -f conftest.er1
  8607. cat conftest.err >&5
  8608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8609. (exit $ac_status); } && {
  8610. test -z "$ac_c_werror_flag" ||
  8611. test ! -s conftest.err
  8612. } && test -s conftest$ac_exeext &&
  8613. $as_test_x conftest$ac_exeext; then
  8614. ac_cv_lib_dl_dlopen=yes
  8615. else
  8616. echo "$as_me: failed program was:" >&5
  8617. sed 's/^/| /' conftest.$ac_ext >&5
  8618. ac_cv_lib_dl_dlopen=no
  8619. fi
  8620. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8621. conftest$ac_exeext conftest.$ac_ext
  8622. LIBS=$ac_check_lib_save_LIBS
  8623. fi
  8624. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8625. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8626. if test $ac_cv_lib_dl_dlopen = yes; then
  8627. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8628. else
  8629. lt_cv_dlopen="dyld"
  8630. lt_cv_dlopen_libs=
  8631. lt_cv_dlopen_self=yes
  8632. fi
  8633. ;;
  8634. *)
  8635. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8636. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8637. if test "${ac_cv_func_shl_load+set}" = set; then
  8638. echo $ECHO_N "(cached) $ECHO_C" >&6
  8639. else
  8640. cat >conftest.$ac_ext <<_ACEOF
  8641. /* confdefs.h. */
  8642. _ACEOF
  8643. cat confdefs.h >>conftest.$ac_ext
  8644. cat >>conftest.$ac_ext <<_ACEOF
  8645. /* end confdefs.h. */
  8646. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8647. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8648. #define shl_load innocuous_shl_load
  8649. /* System header to define __stub macros and hopefully few prototypes,
  8650. which can conflict with char shl_load (); below.
  8651. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8652. <limits.h> exists even on freestanding compilers. */
  8653. #ifdef __STDC__
  8654. # include <limits.h>
  8655. #else
  8656. # include <assert.h>
  8657. #endif
  8658. #undef shl_load
  8659. /* Override any GCC internal prototype to avoid an error.
  8660. Use char because int might match the return type of a GCC
  8661. builtin and then its argument prototype would still apply. */
  8662. #ifdef __cplusplus
  8663. extern "C"
  8664. #endif
  8665. char shl_load ();
  8666. /* The GNU C library defines this for functions which it implements
  8667. to always fail with ENOSYS. Some functions are actually named
  8668. something starting with __ and the normal name is an alias. */
  8669. #if defined __stub_shl_load || defined __stub___shl_load
  8670. choke me
  8671. #endif
  8672. int
  8673. main ()
  8674. {
  8675. return shl_load ();
  8676. ;
  8677. return 0;
  8678. }
  8679. _ACEOF
  8680. rm -f conftest.$ac_objext conftest$ac_exeext
  8681. if { (ac_try="$ac_link"
  8682. case "(($ac_try" in
  8683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8684. *) ac_try_echo=$ac_try;;
  8685. esac
  8686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8687. (eval "$ac_link") 2>conftest.er1
  8688. ac_status=$?
  8689. grep -v '^ *+' conftest.er1 >conftest.err
  8690. rm -f conftest.er1
  8691. cat conftest.err >&5
  8692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8693. (exit $ac_status); } && {
  8694. test -z "$ac_c_werror_flag" ||
  8695. test ! -s conftest.err
  8696. } && test -s conftest$ac_exeext &&
  8697. $as_test_x conftest$ac_exeext; then
  8698. ac_cv_func_shl_load=yes
  8699. else
  8700. echo "$as_me: failed program was:" >&5
  8701. sed 's/^/| /' conftest.$ac_ext >&5
  8702. ac_cv_func_shl_load=no
  8703. fi
  8704. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8705. conftest$ac_exeext conftest.$ac_ext
  8706. fi
  8707. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8708. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8709. if test $ac_cv_func_shl_load = yes; then
  8710. lt_cv_dlopen="shl_load"
  8711. else
  8712. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8713. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8714. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8715. echo $ECHO_N "(cached) $ECHO_C" >&6
  8716. else
  8717. ac_check_lib_save_LIBS=$LIBS
  8718. LIBS="-ldld $LIBS"
  8719. cat >conftest.$ac_ext <<_ACEOF
  8720. /* confdefs.h. */
  8721. _ACEOF
  8722. cat confdefs.h >>conftest.$ac_ext
  8723. cat >>conftest.$ac_ext <<_ACEOF
  8724. /* end confdefs.h. */
  8725. /* Override any GCC internal prototype to avoid an error.
  8726. Use char because int might match the return type of a GCC
  8727. builtin and then its argument prototype would still apply. */
  8728. #ifdef __cplusplus
  8729. extern "C"
  8730. #endif
  8731. char shl_load ();
  8732. int
  8733. main ()
  8734. {
  8735. return shl_load ();
  8736. ;
  8737. return 0;
  8738. }
  8739. _ACEOF
  8740. rm -f conftest.$ac_objext conftest$ac_exeext
  8741. if { (ac_try="$ac_link"
  8742. case "(($ac_try" in
  8743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8744. *) ac_try_echo=$ac_try;;
  8745. esac
  8746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8747. (eval "$ac_link") 2>conftest.er1
  8748. ac_status=$?
  8749. grep -v '^ *+' conftest.er1 >conftest.err
  8750. rm -f conftest.er1
  8751. cat conftest.err >&5
  8752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8753. (exit $ac_status); } && {
  8754. test -z "$ac_c_werror_flag" ||
  8755. test ! -s conftest.err
  8756. } && test -s conftest$ac_exeext &&
  8757. $as_test_x conftest$ac_exeext; then
  8758. ac_cv_lib_dld_shl_load=yes
  8759. else
  8760. echo "$as_me: failed program was:" >&5
  8761. sed 's/^/| /' conftest.$ac_ext >&5
  8762. ac_cv_lib_dld_shl_load=no
  8763. fi
  8764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8765. conftest$ac_exeext conftest.$ac_ext
  8766. LIBS=$ac_check_lib_save_LIBS
  8767. fi
  8768. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8769. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8770. if test $ac_cv_lib_dld_shl_load = yes; then
  8771. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8772. else
  8773. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8774. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8775. if test "${ac_cv_func_dlopen+set}" = set; then
  8776. echo $ECHO_N "(cached) $ECHO_C" >&6
  8777. else
  8778. cat >conftest.$ac_ext <<_ACEOF
  8779. /* confdefs.h. */
  8780. _ACEOF
  8781. cat confdefs.h >>conftest.$ac_ext
  8782. cat >>conftest.$ac_ext <<_ACEOF
  8783. /* end confdefs.h. */
  8784. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8785. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8786. #define dlopen innocuous_dlopen
  8787. /* System header to define __stub macros and hopefully few prototypes,
  8788. which can conflict with char dlopen (); below.
  8789. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8790. <limits.h> exists even on freestanding compilers. */
  8791. #ifdef __STDC__
  8792. # include <limits.h>
  8793. #else
  8794. # include <assert.h>
  8795. #endif
  8796. #undef dlopen
  8797. /* Override any GCC internal prototype to avoid an error.
  8798. Use char because int might match the return type of a GCC
  8799. builtin and then its argument prototype would still apply. */
  8800. #ifdef __cplusplus
  8801. extern "C"
  8802. #endif
  8803. char dlopen ();
  8804. /* The GNU C library defines this for functions which it implements
  8805. to always fail with ENOSYS. Some functions are actually named
  8806. something starting with __ and the normal name is an alias. */
  8807. #if defined __stub_dlopen || defined __stub___dlopen
  8808. choke me
  8809. #endif
  8810. int
  8811. main ()
  8812. {
  8813. return dlopen ();
  8814. ;
  8815. return 0;
  8816. }
  8817. _ACEOF
  8818. rm -f conftest.$ac_objext conftest$ac_exeext
  8819. if { (ac_try="$ac_link"
  8820. case "(($ac_try" in
  8821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8822. *) ac_try_echo=$ac_try;;
  8823. esac
  8824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8825. (eval "$ac_link") 2>conftest.er1
  8826. ac_status=$?
  8827. grep -v '^ *+' conftest.er1 >conftest.err
  8828. rm -f conftest.er1
  8829. cat conftest.err >&5
  8830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8831. (exit $ac_status); } && {
  8832. test -z "$ac_c_werror_flag" ||
  8833. test ! -s conftest.err
  8834. } && test -s conftest$ac_exeext &&
  8835. $as_test_x conftest$ac_exeext; then
  8836. ac_cv_func_dlopen=yes
  8837. else
  8838. echo "$as_me: failed program was:" >&5
  8839. sed 's/^/| /' conftest.$ac_ext >&5
  8840. ac_cv_func_dlopen=no
  8841. fi
  8842. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8843. conftest$ac_exeext conftest.$ac_ext
  8844. fi
  8845. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8846. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8847. if test $ac_cv_func_dlopen = yes; then
  8848. lt_cv_dlopen="dlopen"
  8849. else
  8850. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8851. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8852. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8853. echo $ECHO_N "(cached) $ECHO_C" >&6
  8854. else
  8855. ac_check_lib_save_LIBS=$LIBS
  8856. LIBS="-ldl $LIBS"
  8857. cat >conftest.$ac_ext <<_ACEOF
  8858. /* confdefs.h. */
  8859. _ACEOF
  8860. cat confdefs.h >>conftest.$ac_ext
  8861. cat >>conftest.$ac_ext <<_ACEOF
  8862. /* end confdefs.h. */
  8863. /* Override any GCC internal prototype to avoid an error.
  8864. Use char because int might match the return type of a GCC
  8865. builtin and then its argument prototype would still apply. */
  8866. #ifdef __cplusplus
  8867. extern "C"
  8868. #endif
  8869. char dlopen ();
  8870. int
  8871. main ()
  8872. {
  8873. return dlopen ();
  8874. ;
  8875. return 0;
  8876. }
  8877. _ACEOF
  8878. rm -f conftest.$ac_objext conftest$ac_exeext
  8879. if { (ac_try="$ac_link"
  8880. case "(($ac_try" in
  8881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8882. *) ac_try_echo=$ac_try;;
  8883. esac
  8884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8885. (eval "$ac_link") 2>conftest.er1
  8886. ac_status=$?
  8887. grep -v '^ *+' conftest.er1 >conftest.err
  8888. rm -f conftest.er1
  8889. cat conftest.err >&5
  8890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8891. (exit $ac_status); } && {
  8892. test -z "$ac_c_werror_flag" ||
  8893. test ! -s conftest.err
  8894. } && test -s conftest$ac_exeext &&
  8895. $as_test_x conftest$ac_exeext; then
  8896. ac_cv_lib_dl_dlopen=yes
  8897. else
  8898. echo "$as_me: failed program was:" >&5
  8899. sed 's/^/| /' conftest.$ac_ext >&5
  8900. ac_cv_lib_dl_dlopen=no
  8901. fi
  8902. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8903. conftest$ac_exeext conftest.$ac_ext
  8904. LIBS=$ac_check_lib_save_LIBS
  8905. fi
  8906. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8907. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8908. if test $ac_cv_lib_dl_dlopen = yes; then
  8909. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8910. else
  8911. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8912. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8913. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8914. echo $ECHO_N "(cached) $ECHO_C" >&6
  8915. else
  8916. ac_check_lib_save_LIBS=$LIBS
  8917. LIBS="-lsvld $LIBS"
  8918. cat >conftest.$ac_ext <<_ACEOF
  8919. /* confdefs.h. */
  8920. _ACEOF
  8921. cat confdefs.h >>conftest.$ac_ext
  8922. cat >>conftest.$ac_ext <<_ACEOF
  8923. /* end confdefs.h. */
  8924. /* Override any GCC internal prototype to avoid an error.
  8925. Use char because int might match the return type of a GCC
  8926. builtin and then its argument prototype would still apply. */
  8927. #ifdef __cplusplus
  8928. extern "C"
  8929. #endif
  8930. char dlopen ();
  8931. int
  8932. main ()
  8933. {
  8934. return dlopen ();
  8935. ;
  8936. return 0;
  8937. }
  8938. _ACEOF
  8939. rm -f conftest.$ac_objext conftest$ac_exeext
  8940. if { (ac_try="$ac_link"
  8941. case "(($ac_try" in
  8942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8943. *) ac_try_echo=$ac_try;;
  8944. esac
  8945. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8946. (eval "$ac_link") 2>conftest.er1
  8947. ac_status=$?
  8948. grep -v '^ *+' conftest.er1 >conftest.err
  8949. rm -f conftest.er1
  8950. cat conftest.err >&5
  8951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8952. (exit $ac_status); } && {
  8953. test -z "$ac_c_werror_flag" ||
  8954. test ! -s conftest.err
  8955. } && test -s conftest$ac_exeext &&
  8956. $as_test_x conftest$ac_exeext; then
  8957. ac_cv_lib_svld_dlopen=yes
  8958. else
  8959. echo "$as_me: failed program was:" >&5
  8960. sed 's/^/| /' conftest.$ac_ext >&5
  8961. ac_cv_lib_svld_dlopen=no
  8962. fi
  8963. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8964. conftest$ac_exeext conftest.$ac_ext
  8965. LIBS=$ac_check_lib_save_LIBS
  8966. fi
  8967. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8968. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8969. if test $ac_cv_lib_svld_dlopen = yes; then
  8970. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8971. else
  8972. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8973. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8974. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8975. echo $ECHO_N "(cached) $ECHO_C" >&6
  8976. else
  8977. ac_check_lib_save_LIBS=$LIBS
  8978. LIBS="-ldld $LIBS"
  8979. cat >conftest.$ac_ext <<_ACEOF
  8980. /* confdefs.h. */
  8981. _ACEOF
  8982. cat confdefs.h >>conftest.$ac_ext
  8983. cat >>conftest.$ac_ext <<_ACEOF
  8984. /* end confdefs.h. */
  8985. /* Override any GCC internal prototype to avoid an error.
  8986. Use char because int might match the return type of a GCC
  8987. builtin and then its argument prototype would still apply. */
  8988. #ifdef __cplusplus
  8989. extern "C"
  8990. #endif
  8991. char dld_link ();
  8992. int
  8993. main ()
  8994. {
  8995. return dld_link ();
  8996. ;
  8997. return 0;
  8998. }
  8999. _ACEOF
  9000. rm -f conftest.$ac_objext conftest$ac_exeext
  9001. if { (ac_try="$ac_link"
  9002. case "(($ac_try" in
  9003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9004. *) ac_try_echo=$ac_try;;
  9005. esac
  9006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9007. (eval "$ac_link") 2>conftest.er1
  9008. ac_status=$?
  9009. grep -v '^ *+' conftest.er1 >conftest.err
  9010. rm -f conftest.er1
  9011. cat conftest.err >&5
  9012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9013. (exit $ac_status); } && {
  9014. test -z "$ac_c_werror_flag" ||
  9015. test ! -s conftest.err
  9016. } && test -s conftest$ac_exeext &&
  9017. $as_test_x conftest$ac_exeext; then
  9018. ac_cv_lib_dld_dld_link=yes
  9019. else
  9020. echo "$as_me: failed program was:" >&5
  9021. sed 's/^/| /' conftest.$ac_ext >&5
  9022. ac_cv_lib_dld_dld_link=no
  9023. fi
  9024. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9025. conftest$ac_exeext conftest.$ac_ext
  9026. LIBS=$ac_check_lib_save_LIBS
  9027. fi
  9028. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9029. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9030. if test $ac_cv_lib_dld_dld_link = yes; then
  9031. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9032. fi
  9033. fi
  9034. fi
  9035. fi
  9036. fi
  9037. fi
  9038. ;;
  9039. esac
  9040. if test "x$lt_cv_dlopen" != xno; then
  9041. enable_dlopen=yes
  9042. else
  9043. enable_dlopen=no
  9044. fi
  9045. case $lt_cv_dlopen in
  9046. dlopen)
  9047. save_CPPFLAGS="$CPPFLAGS"
  9048. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9049. save_LDFLAGS="$LDFLAGS"
  9050. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9051. save_LIBS="$LIBS"
  9052. LIBS="$lt_cv_dlopen_libs $LIBS"
  9053. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9054. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9055. if test "${lt_cv_dlopen_self+set}" = set; then
  9056. echo $ECHO_N "(cached) $ECHO_C" >&6
  9057. else
  9058. if test "$cross_compiling" = yes; then :
  9059. lt_cv_dlopen_self=cross
  9060. else
  9061. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9062. lt_status=$lt_dlunknown
  9063. cat > conftest.$ac_ext <<EOF
  9064. #line 10067 "configure"
  9065. #include "confdefs.h"
  9066. #if HAVE_DLFCN_H
  9067. #include <dlfcn.h>
  9068. #endif
  9069. #include <stdio.h>
  9070. #ifdef RTLD_GLOBAL
  9071. # define LT_DLGLOBAL RTLD_GLOBAL
  9072. #else
  9073. # ifdef DL_GLOBAL
  9074. # define LT_DLGLOBAL DL_GLOBAL
  9075. # else
  9076. # define LT_DLGLOBAL 0
  9077. # endif
  9078. #endif
  9079. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9080. find out it does not work in some platform. */
  9081. #ifndef LT_DLLAZY_OR_NOW
  9082. # ifdef RTLD_LAZY
  9083. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9084. # else
  9085. # ifdef DL_LAZY
  9086. # define LT_DLLAZY_OR_NOW DL_LAZY
  9087. # else
  9088. # ifdef RTLD_NOW
  9089. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9090. # else
  9091. # ifdef DL_NOW
  9092. # define LT_DLLAZY_OR_NOW DL_NOW
  9093. # else
  9094. # define LT_DLLAZY_OR_NOW 0
  9095. # endif
  9096. # endif
  9097. # endif
  9098. # endif
  9099. #endif
  9100. #ifdef __cplusplus
  9101. extern "C" void exit (int);
  9102. #endif
  9103. void fnord() { int i=42;}
  9104. int main ()
  9105. {
  9106. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9107. int status = $lt_dlunknown;
  9108. if (self)
  9109. {
  9110. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9111. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9112. /* dlclose (self); */
  9113. }
  9114. else
  9115. puts (dlerror ());
  9116. exit (status);
  9117. }
  9118. EOF
  9119. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9120. (eval $ac_link) 2>&5
  9121. ac_status=$?
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9124. (./conftest; exit; ) >&5 2>/dev/null
  9125. lt_status=$?
  9126. case x$lt_status in
  9127. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9128. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9129. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9130. esac
  9131. else :
  9132. # compilation failed
  9133. lt_cv_dlopen_self=no
  9134. fi
  9135. fi
  9136. rm -fr conftest*
  9137. fi
  9138. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9139. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9140. if test "x$lt_cv_dlopen_self" = xyes; then
  9141. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9142. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9143. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9144. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9145. echo $ECHO_N "(cached) $ECHO_C" >&6
  9146. else
  9147. if test "$cross_compiling" = yes; then :
  9148. lt_cv_dlopen_self_static=cross
  9149. else
  9150. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9151. lt_status=$lt_dlunknown
  9152. cat > conftest.$ac_ext <<EOF
  9153. #line 10167 "configure"
  9154. #include "confdefs.h"
  9155. #if HAVE_DLFCN_H
  9156. #include <dlfcn.h>
  9157. #endif
  9158. #include <stdio.h>
  9159. #ifdef RTLD_GLOBAL
  9160. # define LT_DLGLOBAL RTLD_GLOBAL
  9161. #else
  9162. # ifdef DL_GLOBAL
  9163. # define LT_DLGLOBAL DL_GLOBAL
  9164. # else
  9165. # define LT_DLGLOBAL 0
  9166. # endif
  9167. #endif
  9168. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9169. find out it does not work in some platform. */
  9170. #ifndef LT_DLLAZY_OR_NOW
  9171. # ifdef RTLD_LAZY
  9172. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9173. # else
  9174. # ifdef DL_LAZY
  9175. # define LT_DLLAZY_OR_NOW DL_LAZY
  9176. # else
  9177. # ifdef RTLD_NOW
  9178. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9179. # else
  9180. # ifdef DL_NOW
  9181. # define LT_DLLAZY_OR_NOW DL_NOW
  9182. # else
  9183. # define LT_DLLAZY_OR_NOW 0
  9184. # endif
  9185. # endif
  9186. # endif
  9187. # endif
  9188. #endif
  9189. #ifdef __cplusplus
  9190. extern "C" void exit (int);
  9191. #endif
  9192. void fnord() { int i=42;}
  9193. int main ()
  9194. {
  9195. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9196. int status = $lt_dlunknown;
  9197. if (self)
  9198. {
  9199. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9200. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9201. /* dlclose (self); */
  9202. }
  9203. else
  9204. puts (dlerror ());
  9205. exit (status);
  9206. }
  9207. EOF
  9208. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9209. (eval $ac_link) 2>&5
  9210. ac_status=$?
  9211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9212. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9213. (./conftest; exit; ) >&5 2>/dev/null
  9214. lt_status=$?
  9215. case x$lt_status in
  9216. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9217. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9218. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9219. esac
  9220. else :
  9221. # compilation failed
  9222. lt_cv_dlopen_self_static=no
  9223. fi
  9224. fi
  9225. rm -fr conftest*
  9226. fi
  9227. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9228. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9229. fi
  9230. CPPFLAGS="$save_CPPFLAGS"
  9231. LDFLAGS="$save_LDFLAGS"
  9232. LIBS="$save_LIBS"
  9233. ;;
  9234. esac
  9235. case $lt_cv_dlopen_self in
  9236. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9237. *) enable_dlopen_self=unknown ;;
  9238. esac
  9239. case $lt_cv_dlopen_self_static in
  9240. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9241. *) enable_dlopen_self_static=unknown ;;
  9242. esac
  9243. fi
  9244. # Report which library types will actually be built
  9245. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9246. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9247. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9248. echo "${ECHO_T}$can_build_shared" >&6; }
  9249. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9250. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9251. test "$can_build_shared" = "no" && enable_shared=no
  9252. # On AIX, shared libraries and static libraries use the same namespace, and
  9253. # are all built from PIC.
  9254. case $host_os in
  9255. aix3*)
  9256. test "$enable_shared" = yes && enable_static=no
  9257. if test -n "$RANLIB"; then
  9258. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9259. postinstall_cmds='$RANLIB $lib'
  9260. fi
  9261. ;;
  9262. aix4* | aix5*)
  9263. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9264. test "$enable_shared" = yes && enable_static=no
  9265. fi
  9266. ;;
  9267. esac
  9268. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9269. echo "${ECHO_T}$enable_shared" >&6; }
  9270. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9271. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9272. # Make sure either enable_shared or enable_static is yes.
  9273. test "$enable_shared" = yes || enable_static=yes
  9274. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9275. echo "${ECHO_T}$enable_static" >&6; }
  9276. # The else clause should only fire when bootstrapping the
  9277. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9278. # with your package, and you will get complaints that there are
  9279. # no rules to generate ltmain.sh.
  9280. if test -f "$ltmain"; then
  9281. # See if we are running on zsh, and set the options which allow our commands through
  9282. # without removal of \ escapes.
  9283. if test -n "${ZSH_VERSION+set}" ; then
  9284. setopt NO_GLOB_SUBST
  9285. fi
  9286. # Now quote all the things that may contain metacharacters while being
  9287. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9288. # variables and quote the copies for generation of the libtool script.
  9289. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9290. SED SHELL STRIP \
  9291. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9292. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9293. deplibs_check_method reload_flag reload_cmds need_locks \
  9294. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9295. lt_cv_sys_global_symbol_to_c_name_address \
  9296. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9297. old_postinstall_cmds old_postuninstall_cmds \
  9298. compiler \
  9299. CC \
  9300. LD \
  9301. lt_prog_compiler_wl \
  9302. lt_prog_compiler_pic \
  9303. lt_prog_compiler_static \
  9304. lt_prog_compiler_no_builtin_flag \
  9305. export_dynamic_flag_spec \
  9306. thread_safe_flag_spec \
  9307. whole_archive_flag_spec \
  9308. enable_shared_with_static_runtimes \
  9309. old_archive_cmds \
  9310. old_archive_from_new_cmds \
  9311. predep_objects \
  9312. postdep_objects \
  9313. predeps \
  9314. postdeps \
  9315. compiler_lib_search_path \
  9316. archive_cmds \
  9317. archive_expsym_cmds \
  9318. postinstall_cmds \
  9319. postuninstall_cmds \
  9320. old_archive_from_expsyms_cmds \
  9321. allow_undefined_flag \
  9322. no_undefined_flag \
  9323. export_symbols_cmds \
  9324. hardcode_libdir_flag_spec \
  9325. hardcode_libdir_flag_spec_ld \
  9326. hardcode_libdir_separator \
  9327. hardcode_automatic \
  9328. module_cmds \
  9329. module_expsym_cmds \
  9330. lt_cv_prog_compiler_c_o \
  9331. fix_srcfile_path \
  9332. exclude_expsyms \
  9333. include_expsyms; do
  9334. case $var in
  9335. old_archive_cmds | \
  9336. old_archive_from_new_cmds | \
  9337. archive_cmds | \
  9338. archive_expsym_cmds | \
  9339. module_cmds | \
  9340. module_expsym_cmds | \
  9341. old_archive_from_expsyms_cmds | \
  9342. export_symbols_cmds | \
  9343. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9344. postinstall_cmds | postuninstall_cmds | \
  9345. old_postinstall_cmds | old_postuninstall_cmds | \
  9346. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9347. # Double-quote double-evaled strings.
  9348. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9349. ;;
  9350. *)
  9351. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9352. ;;
  9353. esac
  9354. done
  9355. case $lt_echo in
  9356. *'\$0 --fallback-echo"')
  9357. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9358. ;;
  9359. esac
  9360. cfgfile="${ofile}T"
  9361. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9362. $rm -f "$cfgfile"
  9363. { echo "$as_me:$LINENO: creating $ofile" >&5
  9364. echo "$as_me: creating $ofile" >&6;}
  9365. cat <<__EOF__ >> "$cfgfile"
  9366. #! $SHELL
  9367. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9368. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9369. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9370. #
  9371. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9372. # Free Software Foundation, Inc.
  9373. #
  9374. # This file is part of GNU Libtool:
  9375. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9376. #
  9377. # This program is free software; you can redistribute it and/or modify
  9378. # it under the terms of the GNU General Public License as published by
  9379. # the Free Software Foundation; either version 2 of the License, or
  9380. # (at your option) any later version.
  9381. #
  9382. # This program is distributed in the hope that it will be useful, but
  9383. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9384. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9385. # General Public License for more details.
  9386. #
  9387. # You should have received a copy of the GNU General Public License
  9388. # along with this program; if not, write to the Free Software
  9389. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9390. #
  9391. # As a special exception to the GNU General Public License, if you
  9392. # distribute this file as part of a program that contains a
  9393. # configuration script generated by Autoconf, you may include it under
  9394. # the same distribution terms that you use for the rest of that program.
  9395. # A sed program that does not truncate output.
  9396. SED=$lt_SED
  9397. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9398. Xsed="$SED -e 1s/^X//"
  9399. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9400. # if CDPATH is set.
  9401. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9402. # The names of the tagged configurations supported by this script.
  9403. available_tags=
  9404. # ### BEGIN LIBTOOL CONFIG
  9405. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9406. # Shell to use when invoking shell scripts.
  9407. SHELL=$lt_SHELL
  9408. # Whether or not to build shared libraries.
  9409. build_libtool_libs=$enable_shared
  9410. # Whether or not to build static libraries.
  9411. build_old_libs=$enable_static
  9412. # Whether or not to add -lc for building shared libraries.
  9413. build_libtool_need_lc=$archive_cmds_need_lc
  9414. # Whether or not to disallow shared libs when runtime libs are static
  9415. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9416. # Whether or not to optimize for fast installation.
  9417. fast_install=$enable_fast_install
  9418. # The host system.
  9419. host_alias=$host_alias
  9420. host=$host
  9421. host_os=$host_os
  9422. # The build system.
  9423. build_alias=$build_alias
  9424. build=$build
  9425. build_os=$build_os
  9426. # An echo program that does not interpret backslashes.
  9427. echo=$lt_echo
  9428. # The archiver.
  9429. AR=$lt_AR
  9430. AR_FLAGS=$lt_AR_FLAGS
  9431. # A C compiler.
  9432. LTCC=$lt_LTCC
  9433. # LTCC compiler flags.
  9434. LTCFLAGS=$lt_LTCFLAGS
  9435. # A language-specific compiler.
  9436. CC=$lt_compiler
  9437. # Is the compiler the GNU C compiler?
  9438. with_gcc=$GCC
  9439. # An ERE matcher.
  9440. EGREP=$lt_EGREP
  9441. # The linker used to build libraries.
  9442. LD=$lt_LD
  9443. # Whether we need hard or soft links.
  9444. LN_S=$lt_LN_S
  9445. # A BSD-compatible nm program.
  9446. NM=$lt_NM
  9447. # A symbol stripping program
  9448. STRIP=$lt_STRIP
  9449. # Used to examine libraries when file_magic_cmd begins "file"
  9450. MAGIC_CMD=$MAGIC_CMD
  9451. # Used on cygwin: DLL creation program.
  9452. DLLTOOL="$DLLTOOL"
  9453. # Used on cygwin: object dumper.
  9454. OBJDUMP="$OBJDUMP"
  9455. # Used on cygwin: assembler.
  9456. AS="$AS"
  9457. # The name of the directory that contains temporary libtool files.
  9458. objdir=$objdir
  9459. # How to create reloadable object files.
  9460. reload_flag=$lt_reload_flag
  9461. reload_cmds=$lt_reload_cmds
  9462. # How to pass a linker flag through the compiler.
  9463. wl=$lt_lt_prog_compiler_wl
  9464. # Object file suffix (normally "o").
  9465. objext="$ac_objext"
  9466. # Old archive suffix (normally "a").
  9467. libext="$libext"
  9468. # Shared library suffix (normally ".so").
  9469. shrext_cmds='$shrext_cmds'
  9470. # Executable file suffix (normally "").
  9471. exeext="$exeext"
  9472. # Additional compiler flags for building library objects.
  9473. pic_flag=$lt_lt_prog_compiler_pic
  9474. pic_mode=$pic_mode
  9475. # What is the maximum length of a command?
  9476. max_cmd_len=$lt_cv_sys_max_cmd_len
  9477. # Does compiler simultaneously support -c and -o options?
  9478. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9479. # Must we lock files when doing compilation?
  9480. need_locks=$lt_need_locks
  9481. # Do we need the lib prefix for modules?
  9482. need_lib_prefix=$need_lib_prefix
  9483. # Do we need a version for libraries?
  9484. need_version=$need_version
  9485. # Whether dlopen is supported.
  9486. dlopen_support=$enable_dlopen
  9487. # Whether dlopen of programs is supported.
  9488. dlopen_self=$enable_dlopen_self
  9489. # Whether dlopen of statically linked programs is supported.
  9490. dlopen_self_static=$enable_dlopen_self_static
  9491. # Compiler flag to prevent dynamic linking.
  9492. link_static_flag=$lt_lt_prog_compiler_static
  9493. # Compiler flag to turn off builtin functions.
  9494. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9495. # Compiler flag to allow reflexive dlopens.
  9496. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9497. # Compiler flag to generate shared objects directly from archives.
  9498. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9499. # Compiler flag to generate thread-safe objects.
  9500. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9501. # Library versioning type.
  9502. version_type=$version_type
  9503. # Format of library name prefix.
  9504. libname_spec=$lt_libname_spec
  9505. # List of archive names. First name is the real one, the rest are links.
  9506. # The last name is the one that the linker finds with -lNAME.
  9507. library_names_spec=$lt_library_names_spec
  9508. # The coded name of the library, if different from the real name.
  9509. soname_spec=$lt_soname_spec
  9510. # Commands used to build and install an old-style archive.
  9511. RANLIB=$lt_RANLIB
  9512. old_archive_cmds=$lt_old_archive_cmds
  9513. old_postinstall_cmds=$lt_old_postinstall_cmds
  9514. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9515. # Create an old-style archive from a shared archive.
  9516. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9517. # Create a temporary old-style archive to link instead of a shared archive.
  9518. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9519. # Commands used to build and install a shared archive.
  9520. archive_cmds=$lt_archive_cmds
  9521. archive_expsym_cmds=$lt_archive_expsym_cmds
  9522. postinstall_cmds=$lt_postinstall_cmds
  9523. postuninstall_cmds=$lt_postuninstall_cmds
  9524. # Commands used to build a loadable module (assumed same as above if empty)
  9525. module_cmds=$lt_module_cmds
  9526. module_expsym_cmds=$lt_module_expsym_cmds
  9527. # Commands to strip libraries.
  9528. old_striplib=$lt_old_striplib
  9529. striplib=$lt_striplib
  9530. # Dependencies to place before the objects being linked to create a
  9531. # shared library.
  9532. predep_objects=$lt_predep_objects
  9533. # Dependencies to place after the objects being linked to create a
  9534. # shared library.
  9535. postdep_objects=$lt_postdep_objects
  9536. # Dependencies to place before the objects being linked to create a
  9537. # shared library.
  9538. predeps=$lt_predeps
  9539. # Dependencies to place after the objects being linked to create a
  9540. # shared library.
  9541. postdeps=$lt_postdeps
  9542. # The library search path used internally by the compiler when linking
  9543. # a shared library.
  9544. compiler_lib_search_path=$lt_compiler_lib_search_path
  9545. # Method to check whether dependent libraries are shared objects.
  9546. deplibs_check_method=$lt_deplibs_check_method
  9547. # Command to use when deplibs_check_method == file_magic.
  9548. file_magic_cmd=$lt_file_magic_cmd
  9549. # Flag that allows shared libraries with undefined symbols to be built.
  9550. allow_undefined_flag=$lt_allow_undefined_flag
  9551. # Flag that forces no undefined symbols.
  9552. no_undefined_flag=$lt_no_undefined_flag
  9553. # Commands used to finish a libtool library installation in a directory.
  9554. finish_cmds=$lt_finish_cmds
  9555. # Same as above, but a single script fragment to be evaled but not shown.
  9556. finish_eval=$lt_finish_eval
  9557. # Take the output of nm and produce a listing of raw symbols and C names.
  9558. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9559. # Transform the output of nm in a proper C declaration
  9560. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9561. # Transform the output of nm in a C name address pair
  9562. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9563. # This is the shared library runtime path variable.
  9564. runpath_var=$runpath_var
  9565. # This is the shared library path variable.
  9566. shlibpath_var=$shlibpath_var
  9567. # Is shlibpath searched before the hard-coded library search path?
  9568. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9569. # How to hardcode a shared library path into an executable.
  9570. hardcode_action=$hardcode_action
  9571. # Whether we should hardcode library paths into libraries.
  9572. hardcode_into_libs=$hardcode_into_libs
  9573. # Flag to hardcode \$libdir into a binary during linking.
  9574. # This must work even if \$libdir does not exist.
  9575. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9576. # If ld is used when linking, flag to hardcode \$libdir into
  9577. # a binary during linking. This must work even if \$libdir does
  9578. # not exist.
  9579. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9580. # Whether we need a single -rpath flag with a separated argument.
  9581. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9582. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9583. # resulting binary.
  9584. hardcode_direct=$hardcode_direct
  9585. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9586. # resulting binary.
  9587. hardcode_minus_L=$hardcode_minus_L
  9588. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9589. # the resulting binary.
  9590. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9591. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9592. # and all subsequent libraries and executables linked against it.
  9593. hardcode_automatic=$hardcode_automatic
  9594. # Variables whose values should be saved in libtool wrapper scripts and
  9595. # restored at relink time.
  9596. variables_saved_for_relink="$variables_saved_for_relink"
  9597. # Whether libtool must link a program against all its dependency libraries.
  9598. link_all_deplibs=$link_all_deplibs
  9599. # Compile-time system search path for libraries
  9600. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9601. # Run-time system search path for libraries
  9602. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9603. # Fix the shell variable \$srcfile for the compiler.
  9604. fix_srcfile_path=$lt_fix_srcfile_path
  9605. # Set to yes if exported symbols are required.
  9606. always_export_symbols=$always_export_symbols
  9607. # The commands to list exported symbols.
  9608. export_symbols_cmds=$lt_export_symbols_cmds
  9609. # The commands to extract the exported symbol list from a shared archive.
  9610. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9611. # Symbols that should not be listed in the preloaded symbols.
  9612. exclude_expsyms=$lt_exclude_expsyms
  9613. # Symbols that must always be exported.
  9614. include_expsyms=$lt_include_expsyms
  9615. # ### END LIBTOOL CONFIG
  9616. __EOF__
  9617. case $host_os in
  9618. aix3*)
  9619. cat <<\EOF >> "$cfgfile"
  9620. # AIX sometimes has problems with the GCC collect2 program. For some
  9621. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9622. # vanish in a puff of smoke.
  9623. if test "X${COLLECT_NAMES+set}" != Xset; then
  9624. COLLECT_NAMES=
  9625. export COLLECT_NAMES
  9626. fi
  9627. EOF
  9628. ;;
  9629. esac
  9630. # We use sed instead of cat because bash on DJGPP gets confused if
  9631. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9632. # text mode, it properly converts lines to CR/LF. This bash problem
  9633. # is reportedly fixed, but why not run on old versions too?
  9634. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9635. mv -f "$cfgfile" "$ofile" || \
  9636. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9637. chmod +x "$ofile"
  9638. else
  9639. # If there is no Makefile yet, we rely on a make rule to execute
  9640. # `config.status --recheck' to rerun these tests and create the
  9641. # libtool script then.
  9642. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9643. if test -f "$ltmain_in"; then
  9644. test -f Makefile && make "$ltmain"
  9645. fi
  9646. fi
  9647. ac_ext=c
  9648. ac_cpp='$CPP $CPPFLAGS'
  9649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9652. CC="$lt_save_CC"
  9653. # Check whether --with-tags was given.
  9654. if test "${with_tags+set}" = set; then
  9655. withval=$with_tags; tagnames="$withval"
  9656. fi
  9657. if test -f "$ltmain" && test -n "$tagnames"; then
  9658. if test ! -f "${ofile}"; then
  9659. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9660. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9661. fi
  9662. if test -z "$LTCC"; then
  9663. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9664. if test -z "$LTCC"; then
  9665. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9666. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9667. else
  9668. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9669. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9670. fi
  9671. fi
  9672. if test -z "$LTCFLAGS"; then
  9673. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9674. fi
  9675. # Extract list of available tagged configurations in $ofile.
  9676. # Note that this assumes the entire list is on one line.
  9677. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9678. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9679. for tagname in $tagnames; do
  9680. IFS="$lt_save_ifs"
  9681. # Check whether tagname contains only valid characters
  9682. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9683. "") ;;
  9684. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9685. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9686. { (exit 1); exit 1; }; }
  9687. ;;
  9688. esac
  9689. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9690. then
  9691. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9692. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9693. { (exit 1); exit 1; }; }
  9694. fi
  9695. # Update the list of available tags.
  9696. if test -n "$tagname"; then
  9697. echo appending configuration tag \"$tagname\" to $ofile
  9698. case $tagname in
  9699. CXX)
  9700. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9701. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9702. (test "X$CXX" != "Xg++"))) ; then
  9703. ac_ext=cpp
  9704. ac_cpp='$CXXCPP $CPPFLAGS'
  9705. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9706. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9707. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9708. archive_cmds_need_lc_CXX=no
  9709. allow_undefined_flag_CXX=
  9710. always_export_symbols_CXX=no
  9711. archive_expsym_cmds_CXX=
  9712. export_dynamic_flag_spec_CXX=
  9713. hardcode_direct_CXX=no
  9714. hardcode_libdir_flag_spec_CXX=
  9715. hardcode_libdir_flag_spec_ld_CXX=
  9716. hardcode_libdir_separator_CXX=
  9717. hardcode_minus_L_CXX=no
  9718. hardcode_shlibpath_var_CXX=unsupported
  9719. hardcode_automatic_CXX=no
  9720. module_cmds_CXX=
  9721. module_expsym_cmds_CXX=
  9722. link_all_deplibs_CXX=unknown
  9723. old_archive_cmds_CXX=$old_archive_cmds
  9724. no_undefined_flag_CXX=
  9725. whole_archive_flag_spec_CXX=
  9726. enable_shared_with_static_runtimes_CXX=no
  9727. # Dependencies to place before and after the object being linked:
  9728. predep_objects_CXX=
  9729. postdep_objects_CXX=
  9730. predeps_CXX=
  9731. postdeps_CXX=
  9732. compiler_lib_search_path_CXX=
  9733. # Source file extension for C++ test sources.
  9734. ac_ext=cpp
  9735. # Object file extension for compiled C++ test sources.
  9736. objext=o
  9737. objext_CXX=$objext
  9738. # Code to be used in simple compile tests
  9739. lt_simple_compile_test_code="int some_variable = 0;"
  9740. # Code to be used in simple link tests
  9741. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9742. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9743. # If no C compiler was specified, use CC.
  9744. LTCC=${LTCC-"$CC"}
  9745. # If no C compiler flags were specified, use CFLAGS.
  9746. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9747. # Allow CC to be a program name with arguments.
  9748. compiler=$CC
  9749. # save warnings/boilerplate of simple test code
  9750. ac_outfile=conftest.$ac_objext
  9751. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9752. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9753. _lt_compiler_boilerplate=`cat conftest.err`
  9754. $rm conftest*
  9755. ac_outfile=conftest.$ac_objext
  9756. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9757. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9758. _lt_linker_boilerplate=`cat conftest.err`
  9759. $rm conftest*
  9760. # Allow CC to be a program name with arguments.
  9761. lt_save_CC=$CC
  9762. lt_save_LD=$LD
  9763. lt_save_GCC=$GCC
  9764. GCC=$GXX
  9765. lt_save_with_gnu_ld=$with_gnu_ld
  9766. lt_save_path_LD=$lt_cv_path_LD
  9767. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9768. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9769. else
  9770. $as_unset lt_cv_prog_gnu_ld
  9771. fi
  9772. if test -n "${lt_cv_path_LDCXX+set}"; then
  9773. lt_cv_path_LD=$lt_cv_path_LDCXX
  9774. else
  9775. $as_unset lt_cv_path_LD
  9776. fi
  9777. test -z "${LDCXX+set}" || LD=$LDCXX
  9778. CC=${CXX-"c++"}
  9779. compiler=$CC
  9780. compiler_CXX=$CC
  9781. for cc_temp in $compiler""; do
  9782. case $cc_temp in
  9783. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9784. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9785. \-*) ;;
  9786. *) break;;
  9787. esac
  9788. done
  9789. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9790. # We don't want -fno-exception wen compiling C++ code, so set the
  9791. # no_builtin_flag separately
  9792. if test "$GXX" = yes; then
  9793. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9794. else
  9795. lt_prog_compiler_no_builtin_flag_CXX=
  9796. fi
  9797. if test "$GXX" = yes; then
  9798. # Set up default GNU C++ configuration
  9799. # Check whether --with-gnu-ld was given.
  9800. if test "${with_gnu_ld+set}" = set; then
  9801. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9802. else
  9803. with_gnu_ld=no
  9804. fi
  9805. ac_prog=ld
  9806. if test "$GCC" = yes; then
  9807. # Check if gcc -print-prog-name=ld gives a path.
  9808. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9809. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9810. case $host in
  9811. *-*-mingw*)
  9812. # gcc leaves a trailing carriage return which upsets mingw
  9813. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9814. *)
  9815. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9816. esac
  9817. case $ac_prog in
  9818. # Accept absolute paths.
  9819. [\\/]* | ?:[\\/]*)
  9820. re_direlt='/[^/][^/]*/\.\./'
  9821. # Canonicalize the pathname of ld
  9822. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9823. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9824. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9825. done
  9826. test -z "$LD" && LD="$ac_prog"
  9827. ;;
  9828. "")
  9829. # If it fails, then pretend we aren't using GCC.
  9830. ac_prog=ld
  9831. ;;
  9832. *)
  9833. # If it is relative, then search for the first ld in PATH.
  9834. with_gnu_ld=unknown
  9835. ;;
  9836. esac
  9837. elif test "$with_gnu_ld" = yes; then
  9838. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9839. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9840. else
  9841. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9842. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9843. fi
  9844. if test "${lt_cv_path_LD+set}" = set; then
  9845. echo $ECHO_N "(cached) $ECHO_C" >&6
  9846. else
  9847. if test -z "$LD"; then
  9848. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9849. for ac_dir in $PATH; do
  9850. IFS="$lt_save_ifs"
  9851. test -z "$ac_dir" && ac_dir=.
  9852. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9853. lt_cv_path_LD="$ac_dir/$ac_prog"
  9854. # Check to see if the program is GNU ld. I'd rather use --version,
  9855. # but apparently some variants of GNU ld only accept -v.
  9856. # Break only if it was the GNU/non-GNU ld that we prefer.
  9857. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9858. *GNU* | *'with BFD'*)
  9859. test "$with_gnu_ld" != no && break
  9860. ;;
  9861. *)
  9862. test "$with_gnu_ld" != yes && break
  9863. ;;
  9864. esac
  9865. fi
  9866. done
  9867. IFS="$lt_save_ifs"
  9868. else
  9869. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9870. fi
  9871. fi
  9872. LD="$lt_cv_path_LD"
  9873. if test -n "$LD"; then
  9874. { echo "$as_me:$LINENO: result: $LD" >&5
  9875. echo "${ECHO_T}$LD" >&6; }
  9876. else
  9877. { echo "$as_me:$LINENO: result: no" >&5
  9878. echo "${ECHO_T}no" >&6; }
  9879. fi
  9880. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9881. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9882. { (exit 1); exit 1; }; }
  9883. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9884. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9885. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9886. echo $ECHO_N "(cached) $ECHO_C" >&6
  9887. else
  9888. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9889. case `$LD -v 2>&1 </dev/null` in
  9890. *GNU* | *'with BFD'*)
  9891. lt_cv_prog_gnu_ld=yes
  9892. ;;
  9893. *)
  9894. lt_cv_prog_gnu_ld=no
  9895. ;;
  9896. esac
  9897. fi
  9898. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9899. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9900. with_gnu_ld=$lt_cv_prog_gnu_ld
  9901. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9902. # archiving commands below assume that GNU ld is being used.
  9903. if test "$with_gnu_ld" = yes; then
  9904. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9905. 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'
  9906. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9907. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9908. # If archive_cmds runs LD, not CC, wlarc should be empty
  9909. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9910. # investigate it a little bit more. (MM)
  9911. wlarc='${wl}'
  9912. # ancient GNU ld didn't support --whole-archive et. al.
  9913. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9914. grep 'no-whole-archive' > /dev/null; then
  9915. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9916. else
  9917. whole_archive_flag_spec_CXX=
  9918. fi
  9919. else
  9920. with_gnu_ld=no
  9921. wlarc=
  9922. # A generic and very simple default shared library creation
  9923. # command for GNU C++ for the case where it uses the native
  9924. # linker, instead of GNU ld. If possible, this setting should
  9925. # overridden to take advantage of the native linker features on
  9926. # the platform it is being used on.
  9927. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9928. fi
  9929. # Commands to make compiler produce verbose output that lists
  9930. # what "hidden" libraries, object files and flags are used when
  9931. # linking a shared library.
  9932. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9933. else
  9934. GXX=no
  9935. with_gnu_ld=no
  9936. wlarc=
  9937. fi
  9938. # PORTME: fill in a description of your system's C++ link characteristics
  9939. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9940. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9941. ld_shlibs_CXX=yes
  9942. case $host_os in
  9943. aix3*)
  9944. # FIXME: insert proper C++ library support
  9945. ld_shlibs_CXX=no
  9946. ;;
  9947. aix4* | aix5*)
  9948. if test "$host_cpu" = ia64; then
  9949. # On IA64, the linker does run time linking by default, so we don't
  9950. # have to do anything special.
  9951. aix_use_runtimelinking=no
  9952. exp_sym_flag='-Bexport'
  9953. no_entry_flag=""
  9954. else
  9955. aix_use_runtimelinking=no
  9956. # Test if we are trying to use run time linking or normal
  9957. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9958. # need to do runtime linking.
  9959. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9960. for ld_flag in $LDFLAGS; do
  9961. case $ld_flag in
  9962. *-brtl*)
  9963. aix_use_runtimelinking=yes
  9964. break
  9965. ;;
  9966. esac
  9967. done
  9968. ;;
  9969. esac
  9970. exp_sym_flag='-bexport'
  9971. no_entry_flag='-bnoentry'
  9972. fi
  9973. # When large executables or shared objects are built, AIX ld can
  9974. # have problems creating the table of contents. If linking a library
  9975. # or program results in "error TOC overflow" add -mminimal-toc to
  9976. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9977. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9978. archive_cmds_CXX=''
  9979. hardcode_direct_CXX=yes
  9980. hardcode_libdir_separator_CXX=':'
  9981. link_all_deplibs_CXX=yes
  9982. if test "$GXX" = yes; then
  9983. case $host_os in aix4.[012]|aix4.[012].*)
  9984. # We only want to do this on AIX 4.2 and lower, the check
  9985. # below for broken collect2 doesn't work under 4.3+
  9986. collect2name=`${CC} -print-prog-name=collect2`
  9987. if test -f "$collect2name" && \
  9988. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9989. then
  9990. # We have reworked collect2
  9991. :
  9992. else
  9993. # We have old collect2
  9994. hardcode_direct_CXX=unsupported
  9995. # It fails to find uninstalled libraries when the uninstalled
  9996. # path is not listed in the libpath. Setting hardcode_minus_L
  9997. # to unsupported forces relinking
  9998. hardcode_minus_L_CXX=yes
  9999. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10000. hardcode_libdir_separator_CXX=
  10001. fi
  10002. ;;
  10003. esac
  10004. shared_flag='-shared'
  10005. if test "$aix_use_runtimelinking" = yes; then
  10006. shared_flag="$shared_flag "'${wl}-G'
  10007. fi
  10008. else
  10009. # not using gcc
  10010. if test "$host_cpu" = ia64; then
  10011. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10012. # chokes on -Wl,-G. The following line is correct:
  10013. shared_flag='-G'
  10014. else
  10015. if test "$aix_use_runtimelinking" = yes; then
  10016. shared_flag='${wl}-G'
  10017. else
  10018. shared_flag='${wl}-bM:SRE'
  10019. fi
  10020. fi
  10021. fi
  10022. # It seems that -bexpall does not export symbols beginning with
  10023. # underscore (_), so it is better to generate a list of symbols to export.
  10024. always_export_symbols_CXX=yes
  10025. if test "$aix_use_runtimelinking" = yes; then
  10026. # Warning - without using the other runtime loading flags (-brtl),
  10027. # -berok will link without error, but may produce a broken library.
  10028. allow_undefined_flag_CXX='-berok'
  10029. # Determine the default libpath from the value encoded in an empty executable.
  10030. cat >conftest.$ac_ext <<_ACEOF
  10031. /* confdefs.h. */
  10032. _ACEOF
  10033. cat confdefs.h >>conftest.$ac_ext
  10034. cat >>conftest.$ac_ext <<_ACEOF
  10035. /* end confdefs.h. */
  10036. int
  10037. main ()
  10038. {
  10039. ;
  10040. return 0;
  10041. }
  10042. _ACEOF
  10043. rm -f conftest.$ac_objext conftest$ac_exeext
  10044. if { (ac_try="$ac_link"
  10045. case "(($ac_try" in
  10046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10047. *) ac_try_echo=$ac_try;;
  10048. esac
  10049. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10050. (eval "$ac_link") 2>conftest.er1
  10051. ac_status=$?
  10052. grep -v '^ *+' conftest.er1 >conftest.err
  10053. rm -f conftest.er1
  10054. cat conftest.err >&5
  10055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10056. (exit $ac_status); } && {
  10057. test -z "$ac_cxx_werror_flag" ||
  10058. test ! -s conftest.err
  10059. } && test -s conftest$ac_exeext &&
  10060. $as_test_x conftest$ac_exeext; then
  10061. lt_aix_libpath_sed='
  10062. /Import File Strings/,/^$/ {
  10063. /^0/ {
  10064. s/^0 *\(.*\)$/\1/
  10065. p
  10066. }
  10067. }'
  10068. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10069. # Check for a 64-bit object if we didn't find anything.
  10070. if test -z "$aix_libpath"; then
  10071. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10072. fi
  10073. else
  10074. echo "$as_me: failed program was:" >&5
  10075. sed 's/^/| /' conftest.$ac_ext >&5
  10076. fi
  10077. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10078. conftest$ac_exeext conftest.$ac_ext
  10079. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10080. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10081. 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"
  10082. else
  10083. if test "$host_cpu" = ia64; then
  10084. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10085. allow_undefined_flag_CXX="-z nodefs"
  10086. 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"
  10087. else
  10088. # Determine the default libpath from the value encoded in an empty executable.
  10089. cat >conftest.$ac_ext <<_ACEOF
  10090. /* confdefs.h. */
  10091. _ACEOF
  10092. cat confdefs.h >>conftest.$ac_ext
  10093. cat >>conftest.$ac_ext <<_ACEOF
  10094. /* end confdefs.h. */
  10095. int
  10096. main ()
  10097. {
  10098. ;
  10099. return 0;
  10100. }
  10101. _ACEOF
  10102. rm -f conftest.$ac_objext conftest$ac_exeext
  10103. if { (ac_try="$ac_link"
  10104. case "(($ac_try" in
  10105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10106. *) ac_try_echo=$ac_try;;
  10107. esac
  10108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10109. (eval "$ac_link") 2>conftest.er1
  10110. ac_status=$?
  10111. grep -v '^ *+' conftest.er1 >conftest.err
  10112. rm -f conftest.er1
  10113. cat conftest.err >&5
  10114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10115. (exit $ac_status); } && {
  10116. test -z "$ac_cxx_werror_flag" ||
  10117. test ! -s conftest.err
  10118. } && test -s conftest$ac_exeext &&
  10119. $as_test_x conftest$ac_exeext; then
  10120. lt_aix_libpath_sed='
  10121. /Import File Strings/,/^$/ {
  10122. /^0/ {
  10123. s/^0 *\(.*\)$/\1/
  10124. p
  10125. }
  10126. }'
  10127. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10128. # Check for a 64-bit object if we didn't find anything.
  10129. if test -z "$aix_libpath"; then
  10130. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10131. fi
  10132. else
  10133. echo "$as_me: failed program was:" >&5
  10134. sed 's/^/| /' conftest.$ac_ext >&5
  10135. fi
  10136. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10137. conftest$ac_exeext conftest.$ac_ext
  10138. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10139. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10140. # Warning - without using the other run time loading flags,
  10141. # -berok will link without error, but may produce a broken library.
  10142. no_undefined_flag_CXX=' ${wl}-bernotok'
  10143. allow_undefined_flag_CXX=' ${wl}-berok'
  10144. # Exported symbols can be pulled into shared objects from archives
  10145. whole_archive_flag_spec_CXX='$convenience'
  10146. archive_cmds_need_lc_CXX=yes
  10147. # This is similar to how AIX traditionally builds its shared libraries.
  10148. 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'
  10149. fi
  10150. fi
  10151. ;;
  10152. beos*)
  10153. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10154. allow_undefined_flag_CXX=unsupported
  10155. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10156. # support --undefined. This deserves some investigation. FIXME
  10157. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10158. else
  10159. ld_shlibs_CXX=no
  10160. fi
  10161. ;;
  10162. chorus*)
  10163. case $cc_basename in
  10164. *)
  10165. # FIXME: insert proper C++ library support
  10166. ld_shlibs_CXX=no
  10167. ;;
  10168. esac
  10169. ;;
  10170. cygwin* | mingw* | pw32*)
  10171. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10172. # as there is no search path for DLLs.
  10173. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10174. allow_undefined_flag_CXX=unsupported
  10175. always_export_symbols_CXX=no
  10176. enable_shared_with_static_runtimes_CXX=yes
  10177. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10178. 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'
  10179. # If the export-symbols file already is a .def file (1st line
  10180. # is EXPORTS), use it as is; otherwise, prepend...
  10181. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10182. cp $export_symbols $output_objdir/$soname.def;
  10183. else
  10184. echo EXPORTS > $output_objdir/$soname.def;
  10185. cat $export_symbols >> $output_objdir/$soname.def;
  10186. fi~
  10187. $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'
  10188. else
  10189. ld_shlibs_CXX=no
  10190. fi
  10191. ;;
  10192. darwin* | rhapsody*)
  10193. case $host_os in
  10194. rhapsody* | darwin1.[012])
  10195. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10196. ;;
  10197. *) # Darwin 1.3 on
  10198. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10199. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10200. else
  10201. case ${MACOSX_DEPLOYMENT_TARGET} in
  10202. 10.[012])
  10203. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10204. ;;
  10205. 10.*)
  10206. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10207. ;;
  10208. esac
  10209. fi
  10210. ;;
  10211. esac
  10212. archive_cmds_need_lc_CXX=no
  10213. hardcode_direct_CXX=no
  10214. hardcode_automatic_CXX=yes
  10215. hardcode_shlibpath_var_CXX=unsupported
  10216. whole_archive_flag_spec_CXX=''
  10217. link_all_deplibs_CXX=yes
  10218. if test "$GXX" = yes ; then
  10219. lt_int_apple_cc_single_mod=no
  10220. output_verbose_link_cmd='echo'
  10221. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10222. lt_int_apple_cc_single_mod=yes
  10223. fi
  10224. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10225. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10226. else
  10227. 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'
  10228. fi
  10229. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10230. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10231. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10232. 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}'
  10233. else
  10234. 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}'
  10235. fi
  10236. 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}'
  10237. else
  10238. case $cc_basename in
  10239. xlc*)
  10240. output_verbose_link_cmd='echo'
  10241. 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'
  10242. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10243. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10244. 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}'
  10245. 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}'
  10246. ;;
  10247. *)
  10248. ld_shlibs_CXX=no
  10249. ;;
  10250. esac
  10251. fi
  10252. ;;
  10253. dgux*)
  10254. case $cc_basename in
  10255. ec++*)
  10256. # FIXME: insert proper C++ library support
  10257. ld_shlibs_CXX=no
  10258. ;;
  10259. ghcx*)
  10260. # Green Hills C++ Compiler
  10261. # FIXME: insert proper C++ library support
  10262. ld_shlibs_CXX=no
  10263. ;;
  10264. *)
  10265. # FIXME: insert proper C++ library support
  10266. ld_shlibs_CXX=no
  10267. ;;
  10268. esac
  10269. ;;
  10270. freebsd[12]*)
  10271. # C++ shared libraries reported to be fairly broken before switch to ELF
  10272. ld_shlibs_CXX=no
  10273. ;;
  10274. freebsd-elf*)
  10275. archive_cmds_need_lc_CXX=no
  10276. ;;
  10277. freebsd* | dragonfly*)
  10278. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10279. # conventions
  10280. ld_shlibs_CXX=yes
  10281. ;;
  10282. gnu*)
  10283. ;;
  10284. hpux9*)
  10285. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10286. hardcode_libdir_separator_CXX=:
  10287. export_dynamic_flag_spec_CXX='${wl}-E'
  10288. hardcode_direct_CXX=yes
  10289. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10290. # but as the default
  10291. # location of the library.
  10292. case $cc_basename in
  10293. CC*)
  10294. # FIXME: insert proper C++ library support
  10295. ld_shlibs_CXX=no
  10296. ;;
  10297. aCC*)
  10298. 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'
  10299. # Commands to make compiler produce verbose output that lists
  10300. # what "hidden" libraries, object files and flags are used when
  10301. # linking a shared library.
  10302. #
  10303. # There doesn't appear to be a way to prevent this compiler from
  10304. # explicitly linking system object files so we need to strip them
  10305. # from the output so that they don't get included in the library
  10306. # dependencies.
  10307. 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'
  10308. ;;
  10309. *)
  10310. if test "$GXX" = yes; then
  10311. 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'
  10312. else
  10313. # FIXME: insert proper C++ library support
  10314. ld_shlibs_CXX=no
  10315. fi
  10316. ;;
  10317. esac
  10318. ;;
  10319. hpux10*|hpux11*)
  10320. if test $with_gnu_ld = no; then
  10321. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10322. hardcode_libdir_separator_CXX=:
  10323. case $host_cpu in
  10324. hppa*64*|ia64*) ;;
  10325. *)
  10326. export_dynamic_flag_spec_CXX='${wl}-E'
  10327. ;;
  10328. esac
  10329. fi
  10330. case $host_cpu in
  10331. hppa*64*|ia64*)
  10332. hardcode_direct_CXX=no
  10333. hardcode_shlibpath_var_CXX=no
  10334. ;;
  10335. *)
  10336. hardcode_direct_CXX=yes
  10337. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10338. # but as the default
  10339. # location of the library.
  10340. ;;
  10341. esac
  10342. case $cc_basename in
  10343. CC*)
  10344. # FIXME: insert proper C++ library support
  10345. ld_shlibs_CXX=no
  10346. ;;
  10347. aCC*)
  10348. case $host_cpu in
  10349. hppa*64*)
  10350. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10351. ;;
  10352. ia64*)
  10353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10354. ;;
  10355. *)
  10356. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10357. ;;
  10358. esac
  10359. # Commands to make compiler produce verbose output that lists
  10360. # what "hidden" libraries, object files and flags are used when
  10361. # linking a shared library.
  10362. #
  10363. # There doesn't appear to be a way to prevent this compiler from
  10364. # explicitly linking system object files so we need to strip them
  10365. # from the output so that they don't get included in the library
  10366. # dependencies.
  10367. 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'
  10368. ;;
  10369. *)
  10370. if test "$GXX" = yes; then
  10371. if test $with_gnu_ld = no; then
  10372. case $host_cpu in
  10373. hppa*64*)
  10374. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10375. ;;
  10376. ia64*)
  10377. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10378. ;;
  10379. *)
  10380. 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'
  10381. ;;
  10382. esac
  10383. fi
  10384. else
  10385. # FIXME: insert proper C++ library support
  10386. ld_shlibs_CXX=no
  10387. fi
  10388. ;;
  10389. esac
  10390. ;;
  10391. interix[3-9]*)
  10392. hardcode_direct_CXX=no
  10393. hardcode_shlibpath_var_CXX=no
  10394. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10395. export_dynamic_flag_spec_CXX='${wl}-E'
  10396. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10397. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10398. # default) and relocated if they conflict, which is a slow very memory
  10399. # consuming and fragmenting process. To avoid this, we pick a random,
  10400. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10401. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10402. 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'
  10403. 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'
  10404. ;;
  10405. irix5* | irix6*)
  10406. case $cc_basename in
  10407. CC*)
  10408. # SGI C++
  10409. 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'
  10410. # Archives containing C++ object files must be created using
  10411. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10412. # necessary to make sure instantiated templates are included
  10413. # in the archive.
  10414. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10415. ;;
  10416. *)
  10417. if test "$GXX" = yes; then
  10418. if test "$with_gnu_ld" = no; then
  10419. 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'
  10420. else
  10421. 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'
  10422. fi
  10423. fi
  10424. link_all_deplibs_CXX=yes
  10425. ;;
  10426. esac
  10427. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10428. hardcode_libdir_separator_CXX=:
  10429. ;;
  10430. linux* | k*bsd*-gnu)
  10431. case $cc_basename in
  10432. KCC*)
  10433. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10434. # KCC will only create a shared library if the output file
  10435. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10436. # to its proper name (with version) after linking.
  10437. 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'
  10438. 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'
  10439. # Commands to make compiler produce verbose output that lists
  10440. # what "hidden" libraries, object files and flags are used when
  10441. # linking a shared library.
  10442. #
  10443. # There doesn't appear to be a way to prevent this compiler from
  10444. # explicitly linking system object files so we need to strip them
  10445. # from the output so that they don't get included in the library
  10446. # dependencies.
  10447. 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'
  10448. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10449. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10450. # Archives containing C++ object files must be created using
  10451. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10452. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10453. ;;
  10454. icpc*)
  10455. # Intel C++
  10456. with_gnu_ld=yes
  10457. # version 8.0 and above of icpc choke on multiply defined symbols
  10458. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10459. # earlier do not add the objects themselves.
  10460. case `$CC -V 2>&1` in
  10461. *"Version 7."*)
  10462. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10463. 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'
  10464. ;;
  10465. *) # Version 8.0 or newer
  10466. tmp_idyn=
  10467. case $host_cpu in
  10468. ia64*) tmp_idyn=' -i_dynamic';;
  10469. esac
  10470. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10471. 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'
  10472. ;;
  10473. esac
  10474. archive_cmds_need_lc_CXX=no
  10475. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10476. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10477. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10478. ;;
  10479. pgCC*)
  10480. # Portland Group C++ compiler
  10481. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10482. 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'
  10483. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10484. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10485. 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'
  10486. ;;
  10487. cxx*)
  10488. # Compaq C++
  10489. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10490. 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'
  10491. runpath_var=LD_RUN_PATH
  10492. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10493. hardcode_libdir_separator_CXX=:
  10494. # Commands to make compiler produce verbose output that lists
  10495. # what "hidden" libraries, object files and flags are used when
  10496. # linking a shared library.
  10497. #
  10498. # There doesn't appear to be a way to prevent this compiler from
  10499. # explicitly linking system object files so we need to strip them
  10500. # from the output so that they don't get included in the library
  10501. # dependencies.
  10502. 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'
  10503. ;;
  10504. *)
  10505. case `$CC -V 2>&1 | sed 5q` in
  10506. *Sun\ C*)
  10507. # Sun C++ 5.9
  10508. no_undefined_flag_CXX=' -zdefs'
  10509. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10510. 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'
  10511. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10512. 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'
  10513. # Not sure whether something based on
  10514. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10515. # would be better.
  10516. output_verbose_link_cmd='echo'
  10517. # Archives containing C++ object files must be created using
  10518. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10519. # necessary to make sure instantiated templates are included
  10520. # in the archive.
  10521. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10522. ;;
  10523. esac
  10524. ;;
  10525. esac
  10526. ;;
  10527. lynxos*)
  10528. # FIXME: insert proper C++ library support
  10529. ld_shlibs_CXX=no
  10530. ;;
  10531. m88k*)
  10532. # FIXME: insert proper C++ library support
  10533. ld_shlibs_CXX=no
  10534. ;;
  10535. mvs*)
  10536. case $cc_basename in
  10537. cxx*)
  10538. # FIXME: insert proper C++ library support
  10539. ld_shlibs_CXX=no
  10540. ;;
  10541. *)
  10542. # FIXME: insert proper C++ library support
  10543. ld_shlibs_CXX=no
  10544. ;;
  10545. esac
  10546. ;;
  10547. netbsd*)
  10548. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10549. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10550. wlarc=
  10551. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10552. hardcode_direct_CXX=yes
  10553. hardcode_shlibpath_var_CXX=no
  10554. fi
  10555. # Workaround some broken pre-1.5 toolchains
  10556. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10557. ;;
  10558. openbsd2*)
  10559. # C++ shared libraries are fairly broken
  10560. ld_shlibs_CXX=no
  10561. ;;
  10562. openbsd*)
  10563. if test -f /usr/libexec/ld.so; then
  10564. hardcode_direct_CXX=yes
  10565. hardcode_shlibpath_var_CXX=no
  10566. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10567. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10568. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10569. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10570. export_dynamic_flag_spec_CXX='${wl}-E'
  10571. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10572. fi
  10573. output_verbose_link_cmd='echo'
  10574. else
  10575. ld_shlibs_CXX=no
  10576. fi
  10577. ;;
  10578. osf3*)
  10579. case $cc_basename in
  10580. KCC*)
  10581. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10582. # KCC will only create a shared library if the output file
  10583. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10584. # to its proper name (with version) after linking.
  10585. 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'
  10586. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10587. hardcode_libdir_separator_CXX=:
  10588. # Archives containing C++ object files must be created using
  10589. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10590. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10591. ;;
  10592. RCC*)
  10593. # Rational C++ 2.4.1
  10594. # FIXME: insert proper C++ library support
  10595. ld_shlibs_CXX=no
  10596. ;;
  10597. cxx*)
  10598. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10599. 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'
  10600. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10601. hardcode_libdir_separator_CXX=:
  10602. # Commands to make compiler produce verbose output that lists
  10603. # what "hidden" libraries, object files and flags are used when
  10604. # linking a shared library.
  10605. #
  10606. # There doesn't appear to be a way to prevent this compiler from
  10607. # explicitly linking system object files so we need to strip them
  10608. # from the output so that they don't get included in the library
  10609. # dependencies.
  10610. 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'
  10611. ;;
  10612. *)
  10613. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10614. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10615. 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'
  10616. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10617. hardcode_libdir_separator_CXX=:
  10618. # Commands to make compiler produce verbose output that lists
  10619. # what "hidden" libraries, object files and flags are used when
  10620. # linking a shared library.
  10621. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10622. else
  10623. # FIXME: insert proper C++ library support
  10624. ld_shlibs_CXX=no
  10625. fi
  10626. ;;
  10627. esac
  10628. ;;
  10629. osf4* | osf5*)
  10630. case $cc_basename in
  10631. KCC*)
  10632. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10633. # KCC will only create a shared library if the output file
  10634. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10635. # to its proper name (with version) after linking.
  10636. 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'
  10637. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10638. hardcode_libdir_separator_CXX=:
  10639. # Archives containing C++ object files must be created using
  10640. # the KAI C++ compiler.
  10641. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10642. ;;
  10643. RCC*)
  10644. # Rational C++ 2.4.1
  10645. # FIXME: insert proper C++ library support
  10646. ld_shlibs_CXX=no
  10647. ;;
  10648. cxx*)
  10649. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10650. 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'
  10651. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10652. echo "-hidden">> $lib.exp~
  10653. $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~
  10654. $rm $lib.exp'
  10655. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10656. hardcode_libdir_separator_CXX=:
  10657. # Commands to make compiler produce verbose output that lists
  10658. # what "hidden" libraries, object files and flags are used when
  10659. # linking a shared library.
  10660. #
  10661. # There doesn't appear to be a way to prevent this compiler from
  10662. # explicitly linking system object files so we need to strip them
  10663. # from the output so that they don't get included in the library
  10664. # dependencies.
  10665. 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'
  10666. ;;
  10667. *)
  10668. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10669. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10670. 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'
  10671. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10672. hardcode_libdir_separator_CXX=:
  10673. # Commands to make compiler produce verbose output that lists
  10674. # what "hidden" libraries, object files and flags are used when
  10675. # linking a shared library.
  10676. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10677. else
  10678. # FIXME: insert proper C++ library support
  10679. ld_shlibs_CXX=no
  10680. fi
  10681. ;;
  10682. esac
  10683. ;;
  10684. psos*)
  10685. # FIXME: insert proper C++ library support
  10686. ld_shlibs_CXX=no
  10687. ;;
  10688. sunos4*)
  10689. case $cc_basename in
  10690. CC*)
  10691. # Sun C++ 4.x
  10692. # FIXME: insert proper C++ library support
  10693. ld_shlibs_CXX=no
  10694. ;;
  10695. lcc*)
  10696. # Lucid
  10697. # FIXME: insert proper C++ library support
  10698. ld_shlibs_CXX=no
  10699. ;;
  10700. *)
  10701. # FIXME: insert proper C++ library support
  10702. ld_shlibs_CXX=no
  10703. ;;
  10704. esac
  10705. ;;
  10706. solaris*)
  10707. case $cc_basename in
  10708. CC*)
  10709. # Sun C++ 4.2, 5.x and Centerline C++
  10710. archive_cmds_need_lc_CXX=yes
  10711. no_undefined_flag_CXX=' -zdefs'
  10712. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10713. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10714. $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'
  10715. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10716. hardcode_shlibpath_var_CXX=no
  10717. case $host_os in
  10718. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10719. *)
  10720. # The compiler driver will combine and reorder linker options,
  10721. # but understands `-z linker_flag'.
  10722. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10723. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10724. ;;
  10725. esac
  10726. link_all_deplibs_CXX=yes
  10727. output_verbose_link_cmd='echo'
  10728. # Archives containing C++ object files must be created using
  10729. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10730. # necessary to make sure instantiated templates are included
  10731. # in the archive.
  10732. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10733. ;;
  10734. gcx*)
  10735. # Green Hills C++ Compiler
  10736. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10737. # The C++ compiler must be used to create the archive.
  10738. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10739. ;;
  10740. *)
  10741. # GNU C++ compiler with Solaris linker
  10742. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10743. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10744. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10745. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10746. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10747. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10748. # Commands to make compiler produce verbose output that lists
  10749. # what "hidden" libraries, object files and flags are used when
  10750. # linking a shared library.
  10751. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10752. else
  10753. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10754. # platform.
  10755. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10756. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10757. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10758. # Commands to make compiler produce verbose output that lists
  10759. # what "hidden" libraries, object files and flags are used when
  10760. # linking a shared library.
  10761. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10762. fi
  10763. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10764. case $host_os in
  10765. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10766. *)
  10767. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10768. ;;
  10769. esac
  10770. fi
  10771. ;;
  10772. esac
  10773. ;;
  10774. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10775. no_undefined_flag_CXX='${wl}-z,text'
  10776. archive_cmds_need_lc_CXX=no
  10777. hardcode_shlibpath_var_CXX=no
  10778. runpath_var='LD_RUN_PATH'
  10779. case $cc_basename in
  10780. CC*)
  10781. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10782. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10783. ;;
  10784. *)
  10785. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10786. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10787. ;;
  10788. esac
  10789. ;;
  10790. sysv5* | sco3.2v5* | sco5v6*)
  10791. # Note: We can NOT use -z defs as we might desire, because we do not
  10792. # link with -lc, and that would cause any symbols used from libc to
  10793. # always be unresolved, which means just about no library would
  10794. # ever link correctly. If we're not using GNU ld we use -z text
  10795. # though, which does catch some bad symbols but isn't as heavy-handed
  10796. # as -z defs.
  10797. # For security reasons, it is highly recommended that you always
  10798. # use absolute paths for naming shared libraries, and exclude the
  10799. # DT_RUNPATH tag from executables and libraries. But doing so
  10800. # requires that you compile everything twice, which is a pain.
  10801. # So that behaviour is only enabled if SCOABSPATH is set to a
  10802. # non-empty value in the environment. Most likely only useful for
  10803. # creating official distributions of packages.
  10804. # This is a hack until libtool officially supports absolute path
  10805. # names for shared libraries.
  10806. no_undefined_flag_CXX='${wl}-z,text'
  10807. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10808. archive_cmds_need_lc_CXX=no
  10809. hardcode_shlibpath_var_CXX=no
  10810. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10811. hardcode_libdir_separator_CXX=':'
  10812. link_all_deplibs_CXX=yes
  10813. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10814. runpath_var='LD_RUN_PATH'
  10815. case $cc_basename in
  10816. CC*)
  10817. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10818. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10819. ;;
  10820. *)
  10821. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10822. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10823. ;;
  10824. esac
  10825. ;;
  10826. tandem*)
  10827. case $cc_basename in
  10828. NCC*)
  10829. # NonStop-UX NCC 3.20
  10830. # FIXME: insert proper C++ library support
  10831. ld_shlibs_CXX=no
  10832. ;;
  10833. *)
  10834. # FIXME: insert proper C++ library support
  10835. ld_shlibs_CXX=no
  10836. ;;
  10837. esac
  10838. ;;
  10839. vxworks*)
  10840. # FIXME: insert proper C++ library support
  10841. ld_shlibs_CXX=no
  10842. ;;
  10843. *)
  10844. # FIXME: insert proper C++ library support
  10845. ld_shlibs_CXX=no
  10846. ;;
  10847. esac
  10848. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10849. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10850. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10851. GCC_CXX="$GXX"
  10852. LD_CXX="$LD"
  10853. cat > conftest.$ac_ext <<EOF
  10854. class Foo
  10855. {
  10856. public:
  10857. Foo (void) { a = 0; }
  10858. private:
  10859. int a;
  10860. };
  10861. EOF
  10862. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10863. (eval $ac_compile) 2>&5
  10864. ac_status=$?
  10865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10866. (exit $ac_status); }; then
  10867. # Parse the compiler output and extract the necessary
  10868. # objects, libraries and library flags.
  10869. # Sentinel used to keep track of whether or not we are before
  10870. # the conftest object file.
  10871. pre_test_object_deps_done=no
  10872. # The `*' in the case matches for architectures that use `case' in
  10873. # $output_verbose_cmd can trigger glob expansion during the loop
  10874. # eval without this substitution.
  10875. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10876. for p in `eval $output_verbose_link_cmd`; do
  10877. case $p in
  10878. -L* | -R* | -l*)
  10879. # Some compilers place space between "-{L,R}" and the path.
  10880. # Remove the space.
  10881. if test $p = "-L" \
  10882. || test $p = "-R"; then
  10883. prev=$p
  10884. continue
  10885. else
  10886. prev=
  10887. fi
  10888. if test "$pre_test_object_deps_done" = no; then
  10889. case $p in
  10890. -L* | -R*)
  10891. # Internal compiler library paths should come after those
  10892. # provided the user. The postdeps already come after the
  10893. # user supplied libs so there is no need to process them.
  10894. if test -z "$compiler_lib_search_path_CXX"; then
  10895. compiler_lib_search_path_CXX="${prev}${p}"
  10896. else
  10897. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10898. fi
  10899. ;;
  10900. # The "-l" case would never come before the object being
  10901. # linked, so don't bother handling this case.
  10902. esac
  10903. else
  10904. if test -z "$postdeps_CXX"; then
  10905. postdeps_CXX="${prev}${p}"
  10906. else
  10907. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10908. fi
  10909. fi
  10910. ;;
  10911. *.$objext)
  10912. # This assumes that the test object file only shows up
  10913. # once in the compiler output.
  10914. if test "$p" = "conftest.$objext"; then
  10915. pre_test_object_deps_done=yes
  10916. continue
  10917. fi
  10918. if test "$pre_test_object_deps_done" = no; then
  10919. if test -z "$predep_objects_CXX"; then
  10920. predep_objects_CXX="$p"
  10921. else
  10922. predep_objects_CXX="$predep_objects_CXX $p"
  10923. fi
  10924. else
  10925. if test -z "$postdep_objects_CXX"; then
  10926. postdep_objects_CXX="$p"
  10927. else
  10928. postdep_objects_CXX="$postdep_objects_CXX $p"
  10929. fi
  10930. fi
  10931. ;;
  10932. *) ;; # Ignore the rest.
  10933. esac
  10934. done
  10935. # Clean up.
  10936. rm -f a.out a.exe
  10937. else
  10938. echo "libtool.m4: error: problem compiling CXX test program"
  10939. fi
  10940. $rm -f confest.$objext
  10941. # PORTME: override above test on systems where it is broken
  10942. case $host_os in
  10943. interix[3-9]*)
  10944. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10945. # hack all around it, let's just trust "g++" to DTRT.
  10946. predep_objects_CXX=
  10947. postdep_objects_CXX=
  10948. postdeps_CXX=
  10949. ;;
  10950. linux*)
  10951. case `$CC -V 2>&1 | sed 5q` in
  10952. *Sun\ C*)
  10953. # Sun C++ 5.9
  10954. #
  10955. # The more standards-conforming stlport4 library is
  10956. # incompatible with the Cstd library. Avoid specifying
  10957. # it if it's in CXXFLAGS. Ignore libCrun as
  10958. # -library=stlport4 depends on it.
  10959. case " $CXX $CXXFLAGS " in
  10960. *" -library=stlport4 "*)
  10961. solaris_use_stlport4=yes
  10962. ;;
  10963. esac
  10964. if test "$solaris_use_stlport4" != yes; then
  10965. postdeps_CXX='-library=Cstd -library=Crun'
  10966. fi
  10967. ;;
  10968. esac
  10969. ;;
  10970. solaris*)
  10971. case $cc_basename in
  10972. CC*)
  10973. # The more standards-conforming stlport4 library is
  10974. # incompatible with the Cstd library. Avoid specifying
  10975. # it if it's in CXXFLAGS. Ignore libCrun as
  10976. # -library=stlport4 depends on it.
  10977. case " $CXX $CXXFLAGS " in
  10978. *" -library=stlport4 "*)
  10979. solaris_use_stlport4=yes
  10980. ;;
  10981. esac
  10982. # Adding this requires a known-good setup of shared libraries for
  10983. # Sun compiler versions before 5.6, else PIC objects from an old
  10984. # archive will be linked into the output, leading to subtle bugs.
  10985. if test "$solaris_use_stlport4" != yes; then
  10986. postdeps_CXX='-library=Cstd -library=Crun'
  10987. fi
  10988. ;;
  10989. esac
  10990. ;;
  10991. esac
  10992. case " $postdeps_CXX " in
  10993. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10994. esac
  10995. lt_prog_compiler_wl_CXX=
  10996. lt_prog_compiler_pic_CXX=
  10997. lt_prog_compiler_static_CXX=
  10998. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10999. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11000. # C++ specific cases for pic, static, wl, etc.
  11001. if test "$GXX" = yes; then
  11002. lt_prog_compiler_wl_CXX='-Wl,'
  11003. lt_prog_compiler_static_CXX='-static'
  11004. case $host_os in
  11005. aix*)
  11006. # All AIX code is PIC.
  11007. if test "$host_cpu" = ia64; then
  11008. # AIX 5 now supports IA64 processor
  11009. lt_prog_compiler_static_CXX='-Bstatic'
  11010. fi
  11011. ;;
  11012. amigaos*)
  11013. # FIXME: we need at least 68020 code to build shared libraries, but
  11014. # adding the `-m68020' flag to GCC prevents building anything better,
  11015. # like `-m68040'.
  11016. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11017. ;;
  11018. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11019. # PIC is the default for these OSes.
  11020. ;;
  11021. mingw* | cygwin* | os2* | pw32*)
  11022. # This hack is so that the source file can tell whether it is being
  11023. # built for inclusion in a dll (and should export symbols for example).
  11024. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11025. # (--disable-auto-import) libraries
  11026. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11027. ;;
  11028. darwin* | rhapsody*)
  11029. # PIC is the default on this platform
  11030. # Common symbols not allowed in MH_DYLIB files
  11031. lt_prog_compiler_pic_CXX='-fno-common'
  11032. ;;
  11033. *djgpp*)
  11034. # DJGPP does not support shared libraries at all
  11035. lt_prog_compiler_pic_CXX=
  11036. ;;
  11037. interix[3-9]*)
  11038. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11039. # Instead, we relocate shared libraries at runtime.
  11040. ;;
  11041. sysv4*MP*)
  11042. if test -d /usr/nec; then
  11043. lt_prog_compiler_pic_CXX=-Kconform_pic
  11044. fi
  11045. ;;
  11046. hpux*)
  11047. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11048. # not for PA HP-UX.
  11049. case $host_cpu in
  11050. hppa*64*|ia64*)
  11051. ;;
  11052. *)
  11053. lt_prog_compiler_pic_CXX='-fPIC'
  11054. ;;
  11055. esac
  11056. ;;
  11057. *)
  11058. lt_prog_compiler_pic_CXX='-fPIC'
  11059. ;;
  11060. esac
  11061. else
  11062. case $host_os in
  11063. aix4* | aix5*)
  11064. # All AIX code is PIC.
  11065. if test "$host_cpu" = ia64; then
  11066. # AIX 5 now supports IA64 processor
  11067. lt_prog_compiler_static_CXX='-Bstatic'
  11068. else
  11069. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11070. fi
  11071. ;;
  11072. chorus*)
  11073. case $cc_basename in
  11074. cxch68*)
  11075. # Green Hills C++ Compiler
  11076. # _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"
  11077. ;;
  11078. esac
  11079. ;;
  11080. darwin*)
  11081. # PIC is the default on this platform
  11082. # Common symbols not allowed in MH_DYLIB files
  11083. case $cc_basename in
  11084. xlc*)
  11085. lt_prog_compiler_pic_CXX='-qnocommon'
  11086. lt_prog_compiler_wl_CXX='-Wl,'
  11087. ;;
  11088. esac
  11089. ;;
  11090. dgux*)
  11091. case $cc_basename in
  11092. ec++*)
  11093. lt_prog_compiler_pic_CXX='-KPIC'
  11094. ;;
  11095. ghcx*)
  11096. # Green Hills C++ Compiler
  11097. lt_prog_compiler_pic_CXX='-pic'
  11098. ;;
  11099. *)
  11100. ;;
  11101. esac
  11102. ;;
  11103. freebsd* | dragonfly*)
  11104. # FreeBSD uses GNU C++
  11105. ;;
  11106. hpux9* | hpux10* | hpux11*)
  11107. case $cc_basename in
  11108. CC*)
  11109. lt_prog_compiler_wl_CXX='-Wl,'
  11110. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11111. if test "$host_cpu" != ia64; then
  11112. lt_prog_compiler_pic_CXX='+Z'
  11113. fi
  11114. ;;
  11115. aCC*)
  11116. lt_prog_compiler_wl_CXX='-Wl,'
  11117. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11118. case $host_cpu in
  11119. hppa*64*|ia64*)
  11120. # +Z the default
  11121. ;;
  11122. *)
  11123. lt_prog_compiler_pic_CXX='+Z'
  11124. ;;
  11125. esac
  11126. ;;
  11127. *)
  11128. ;;
  11129. esac
  11130. ;;
  11131. interix*)
  11132. # This is c89, which is MS Visual C++ (no shared libs)
  11133. # Anyone wants to do a port?
  11134. ;;
  11135. irix5* | irix6* | nonstopux*)
  11136. case $cc_basename in
  11137. CC*)
  11138. lt_prog_compiler_wl_CXX='-Wl,'
  11139. lt_prog_compiler_static_CXX='-non_shared'
  11140. # CC pic flag -KPIC is the default.
  11141. ;;
  11142. *)
  11143. ;;
  11144. esac
  11145. ;;
  11146. linux* | k*bsd*-gnu)
  11147. case $cc_basename in
  11148. KCC*)
  11149. # KAI C++ Compiler
  11150. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11151. lt_prog_compiler_pic_CXX='-fPIC'
  11152. ;;
  11153. icpc* | ecpc*)
  11154. # Intel C++
  11155. lt_prog_compiler_wl_CXX='-Wl,'
  11156. lt_prog_compiler_pic_CXX='-KPIC'
  11157. lt_prog_compiler_static_CXX='-static'
  11158. ;;
  11159. pgCC*)
  11160. # Portland Group C++ compiler.
  11161. lt_prog_compiler_wl_CXX='-Wl,'
  11162. lt_prog_compiler_pic_CXX='-fpic'
  11163. lt_prog_compiler_static_CXX='-Bstatic'
  11164. ;;
  11165. cxx*)
  11166. # Compaq C++
  11167. # Make sure the PIC flag is empty. It appears that all Alpha
  11168. # Linux and Compaq Tru64 Unix objects are PIC.
  11169. lt_prog_compiler_pic_CXX=
  11170. lt_prog_compiler_static_CXX='-non_shared'
  11171. ;;
  11172. *)
  11173. case `$CC -V 2>&1 | sed 5q` in
  11174. *Sun\ C*)
  11175. # Sun C++ 5.9
  11176. lt_prog_compiler_pic_CXX='-KPIC'
  11177. lt_prog_compiler_static_CXX='-Bstatic'
  11178. lt_prog_compiler_wl_CXX='-Qoption ld '
  11179. ;;
  11180. esac
  11181. ;;
  11182. esac
  11183. ;;
  11184. lynxos*)
  11185. ;;
  11186. m88k*)
  11187. ;;
  11188. mvs*)
  11189. case $cc_basename in
  11190. cxx*)
  11191. lt_prog_compiler_pic_CXX='-W c,exportall'
  11192. ;;
  11193. *)
  11194. ;;
  11195. esac
  11196. ;;
  11197. netbsd*)
  11198. ;;
  11199. osf3* | osf4* | osf5*)
  11200. case $cc_basename in
  11201. KCC*)
  11202. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11203. ;;
  11204. RCC*)
  11205. # Rational C++ 2.4.1
  11206. lt_prog_compiler_pic_CXX='-pic'
  11207. ;;
  11208. cxx*)
  11209. # Digital/Compaq C++
  11210. lt_prog_compiler_wl_CXX='-Wl,'
  11211. # Make sure the PIC flag is empty. It appears that all Alpha
  11212. # Linux and Compaq Tru64 Unix objects are PIC.
  11213. lt_prog_compiler_pic_CXX=
  11214. lt_prog_compiler_static_CXX='-non_shared'
  11215. ;;
  11216. *)
  11217. ;;
  11218. esac
  11219. ;;
  11220. psos*)
  11221. ;;
  11222. solaris*)
  11223. case $cc_basename in
  11224. CC*)
  11225. # Sun C++ 4.2, 5.x and Centerline C++
  11226. lt_prog_compiler_pic_CXX='-KPIC'
  11227. lt_prog_compiler_static_CXX='-Bstatic'
  11228. lt_prog_compiler_wl_CXX='-Qoption ld '
  11229. ;;
  11230. gcx*)
  11231. # Green Hills C++ Compiler
  11232. lt_prog_compiler_pic_CXX='-PIC'
  11233. ;;
  11234. *)
  11235. ;;
  11236. esac
  11237. ;;
  11238. sunos4*)
  11239. case $cc_basename in
  11240. CC*)
  11241. # Sun C++ 4.x
  11242. lt_prog_compiler_pic_CXX='-pic'
  11243. lt_prog_compiler_static_CXX='-Bstatic'
  11244. ;;
  11245. lcc*)
  11246. # Lucid
  11247. lt_prog_compiler_pic_CXX='-pic'
  11248. ;;
  11249. *)
  11250. ;;
  11251. esac
  11252. ;;
  11253. tandem*)
  11254. case $cc_basename in
  11255. NCC*)
  11256. # NonStop-UX NCC 3.20
  11257. lt_prog_compiler_pic_CXX='-KPIC'
  11258. ;;
  11259. *)
  11260. ;;
  11261. esac
  11262. ;;
  11263. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11264. case $cc_basename in
  11265. CC*)
  11266. lt_prog_compiler_wl_CXX='-Wl,'
  11267. lt_prog_compiler_pic_CXX='-KPIC'
  11268. lt_prog_compiler_static_CXX='-Bstatic'
  11269. ;;
  11270. esac
  11271. ;;
  11272. vxworks*)
  11273. ;;
  11274. *)
  11275. lt_prog_compiler_can_build_shared_CXX=no
  11276. ;;
  11277. esac
  11278. fi
  11279. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11280. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11281. #
  11282. # Check to make sure the PIC flag actually works.
  11283. #
  11284. if test -n "$lt_prog_compiler_pic_CXX"; then
  11285. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11286. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11287. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11288. echo $ECHO_N "(cached) $ECHO_C" >&6
  11289. else
  11290. lt_prog_compiler_pic_works_CXX=no
  11291. ac_outfile=conftest.$ac_objext
  11292. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11293. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11294. # Insert the option either (1) after the last *FLAGS variable, or
  11295. # (2) before a word containing "conftest.", or (3) at the end.
  11296. # Note that $ac_compile itself does not contain backslashes and begins
  11297. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11298. # The option is referenced via a variable to avoid confusing sed.
  11299. lt_compile=`echo "$ac_compile" | $SED \
  11300. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11301. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11302. -e 's:$: $lt_compiler_flag:'`
  11303. (eval echo "\"\$as_me:12587: $lt_compile\"" >&5)
  11304. (eval "$lt_compile" 2>conftest.err)
  11305. ac_status=$?
  11306. cat conftest.err >&5
  11307. echo "$as_me:12591: \$? = $ac_status" >&5
  11308. if (exit $ac_status) && test -s "$ac_outfile"; then
  11309. # The compiler can only warn and ignore the option if not recognized
  11310. # So say no if there are warnings other than the usual output.
  11311. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11312. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11313. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11314. lt_prog_compiler_pic_works_CXX=yes
  11315. fi
  11316. fi
  11317. $rm conftest*
  11318. fi
  11319. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11320. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11321. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11322. case $lt_prog_compiler_pic_CXX in
  11323. "" | " "*) ;;
  11324. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11325. esac
  11326. else
  11327. lt_prog_compiler_pic_CXX=
  11328. lt_prog_compiler_can_build_shared_CXX=no
  11329. fi
  11330. fi
  11331. case $host_os in
  11332. # For platforms which do not support PIC, -DPIC is meaningless:
  11333. *djgpp*)
  11334. lt_prog_compiler_pic_CXX=
  11335. ;;
  11336. *)
  11337. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11338. ;;
  11339. esac
  11340. #
  11341. # Check to make sure the static flag actually works.
  11342. #
  11343. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11344. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11345. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11346. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11347. echo $ECHO_N "(cached) $ECHO_C" >&6
  11348. else
  11349. lt_prog_compiler_static_works_CXX=no
  11350. save_LDFLAGS="$LDFLAGS"
  11351. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11352. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11353. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11354. # The linker can only warn and ignore the option if not recognized
  11355. # So say no if there are warnings
  11356. if test -s conftest.err; then
  11357. # Append any errors to the config.log.
  11358. cat conftest.err 1>&5
  11359. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11360. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11361. if diff conftest.exp conftest.er2 >/dev/null; then
  11362. lt_prog_compiler_static_works_CXX=yes
  11363. fi
  11364. else
  11365. lt_prog_compiler_static_works_CXX=yes
  11366. fi
  11367. fi
  11368. $rm conftest*
  11369. LDFLAGS="$save_LDFLAGS"
  11370. fi
  11371. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11372. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11373. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11374. :
  11375. else
  11376. lt_prog_compiler_static_CXX=
  11377. fi
  11378. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11379. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11380. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11381. echo $ECHO_N "(cached) $ECHO_C" >&6
  11382. else
  11383. lt_cv_prog_compiler_c_o_CXX=no
  11384. $rm -r conftest 2>/dev/null
  11385. mkdir conftest
  11386. cd conftest
  11387. mkdir out
  11388. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11389. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11390. # Insert the option either (1) after the last *FLAGS variable, or
  11391. # (2) before a word containing "conftest.", or (3) at the end.
  11392. # Note that $ac_compile itself does not contain backslashes and begins
  11393. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11394. lt_compile=`echo "$ac_compile" | $SED \
  11395. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11396. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11397. -e 's:$: $lt_compiler_flag:'`
  11398. (eval echo "\"\$as_me:12691: $lt_compile\"" >&5)
  11399. (eval "$lt_compile" 2>out/conftest.err)
  11400. ac_status=$?
  11401. cat out/conftest.err >&5
  11402. echo "$as_me:12695: \$? = $ac_status" >&5
  11403. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11404. then
  11405. # The compiler can only warn and ignore the option if not recognized
  11406. # So say no if there are warnings
  11407. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11408. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11409. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11410. lt_cv_prog_compiler_c_o_CXX=yes
  11411. fi
  11412. fi
  11413. chmod u+w . 2>&5
  11414. $rm conftest*
  11415. # SGI C++ compiler will create directory out/ii_files/ for
  11416. # template instantiation
  11417. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11418. $rm out/* && rmdir out
  11419. cd ..
  11420. rmdir conftest
  11421. $rm conftest*
  11422. fi
  11423. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11424. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11425. hard_links="nottested"
  11426. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11427. # do not overwrite the value of need_locks provided by the user
  11428. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11429. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11430. hard_links=yes
  11431. $rm conftest*
  11432. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11433. touch conftest.a
  11434. ln conftest.a conftest.b 2>&5 || hard_links=no
  11435. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11436. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11437. echo "${ECHO_T}$hard_links" >&6; }
  11438. if test "$hard_links" = no; then
  11439. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11440. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11441. need_locks=warn
  11442. fi
  11443. else
  11444. need_locks=no
  11445. fi
  11446. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11447. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11448. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11449. case $host_os in
  11450. aix4* | aix5*)
  11451. # If we're using GNU nm, then we don't want the "-C" option.
  11452. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11453. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11454. 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'
  11455. else
  11456. 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'
  11457. fi
  11458. ;;
  11459. pw32*)
  11460. export_symbols_cmds_CXX="$ltdll_cmds"
  11461. ;;
  11462. cygwin* | mingw*)
  11463. 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'
  11464. ;;
  11465. *)
  11466. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11467. ;;
  11468. esac
  11469. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11470. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11471. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11472. #
  11473. # Do we need to explicitly link libc?
  11474. #
  11475. case "x$archive_cmds_need_lc_CXX" in
  11476. x|xyes)
  11477. # Assume -lc should be added
  11478. archive_cmds_need_lc_CXX=yes
  11479. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11480. case $archive_cmds_CXX in
  11481. *'~'*)
  11482. # FIXME: we may have to deal with multi-command sequences.
  11483. ;;
  11484. '$CC '*)
  11485. # Test whether the compiler implicitly links with -lc since on some
  11486. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11487. # to ld, don't add -lc before -lgcc.
  11488. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11489. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11490. $rm conftest*
  11491. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11493. (eval $ac_compile) 2>&5
  11494. ac_status=$?
  11495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11496. (exit $ac_status); } 2>conftest.err; then
  11497. soname=conftest
  11498. lib=conftest
  11499. libobjs=conftest.$ac_objext
  11500. deplibs=
  11501. wl=$lt_prog_compiler_wl_CXX
  11502. pic_flag=$lt_prog_compiler_pic_CXX
  11503. compiler_flags=-v
  11504. linker_flags=-v
  11505. verstring=
  11506. output_objdir=.
  11507. libname=conftest
  11508. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11509. allow_undefined_flag_CXX=
  11510. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11511. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11512. ac_status=$?
  11513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11514. (exit $ac_status); }
  11515. then
  11516. archive_cmds_need_lc_CXX=no
  11517. else
  11518. archive_cmds_need_lc_CXX=yes
  11519. fi
  11520. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11521. else
  11522. cat conftest.err 1>&5
  11523. fi
  11524. $rm conftest*
  11525. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11526. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11527. ;;
  11528. esac
  11529. fi
  11530. ;;
  11531. esac
  11532. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11533. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11534. library_names_spec=
  11535. libname_spec='lib$name'
  11536. soname_spec=
  11537. shrext_cmds=".so"
  11538. postinstall_cmds=
  11539. postuninstall_cmds=
  11540. finish_cmds=
  11541. finish_eval=
  11542. shlibpath_var=
  11543. shlibpath_overrides_runpath=unknown
  11544. version_type=none
  11545. dynamic_linker="$host_os ld.so"
  11546. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11547. need_lib_prefix=unknown
  11548. hardcode_into_libs=no
  11549. # when you set need_version to no, make sure it does not cause -set_version
  11550. # flags to be left without arguments
  11551. need_version=unknown
  11552. case $host_os in
  11553. aix3*)
  11554. version_type=linux
  11555. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11556. shlibpath_var=LIBPATH
  11557. # AIX 3 has no versioning support, so we append a major version to the name.
  11558. soname_spec='${libname}${release}${shared_ext}$major'
  11559. ;;
  11560. aix4* | aix5*)
  11561. version_type=linux
  11562. need_lib_prefix=no
  11563. need_version=no
  11564. hardcode_into_libs=yes
  11565. if test "$host_cpu" = ia64; then
  11566. # AIX 5 supports IA64
  11567. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11568. shlibpath_var=LD_LIBRARY_PATH
  11569. else
  11570. # With GCC up to 2.95.x, collect2 would create an import file
  11571. # for dependence libraries. The import file would start with
  11572. # the line `#! .'. This would cause the generated library to
  11573. # depend on `.', always an invalid library. This was fixed in
  11574. # development snapshots of GCC prior to 3.0.
  11575. case $host_os in
  11576. aix4 | aix4.[01] | aix4.[01].*)
  11577. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11578. echo ' yes '
  11579. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11580. :
  11581. else
  11582. can_build_shared=no
  11583. fi
  11584. ;;
  11585. esac
  11586. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11587. # soname into executable. Probably we can add versioning support to
  11588. # collect2, so additional links can be useful in future.
  11589. if test "$aix_use_runtimelinking" = yes; then
  11590. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11591. # instead of lib<name>.a to let people know that these are not
  11592. # typical AIX shared libraries.
  11593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11594. else
  11595. # We preserve .a as extension for shared libraries through AIX4.2
  11596. # and later when we are not doing run time linking.
  11597. library_names_spec='${libname}${release}.a $libname.a'
  11598. soname_spec='${libname}${release}${shared_ext}$major'
  11599. fi
  11600. shlibpath_var=LIBPATH
  11601. fi
  11602. ;;
  11603. amigaos*)
  11604. library_names_spec='$libname.ixlibrary $libname.a'
  11605. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11606. 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'
  11607. ;;
  11608. beos*)
  11609. library_names_spec='${libname}${shared_ext}'
  11610. dynamic_linker="$host_os ld.so"
  11611. shlibpath_var=LIBRARY_PATH
  11612. ;;
  11613. bsdi[45]*)
  11614. version_type=linux
  11615. need_version=no
  11616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11617. soname_spec='${libname}${release}${shared_ext}$major'
  11618. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11619. shlibpath_var=LD_LIBRARY_PATH
  11620. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11621. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11622. # the default ld.so.conf also contains /usr/contrib/lib and
  11623. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11624. # libtool to hard-code these into programs
  11625. ;;
  11626. cygwin* | mingw* | pw32*)
  11627. version_type=windows
  11628. shrext_cmds=".dll"
  11629. need_version=no
  11630. need_lib_prefix=no
  11631. case $GCC,$host_os in
  11632. yes,cygwin* | yes,mingw* | yes,pw32*)
  11633. library_names_spec='$libname.dll.a'
  11634. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11635. postinstall_cmds='base_file=`basename \${file}`~
  11636. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11637. dldir=$destdir/`dirname \$dlpath`~
  11638. test -d \$dldir || mkdir -p \$dldir~
  11639. $install_prog $dir/$dlname \$dldir/$dlname~
  11640. chmod a+x \$dldir/$dlname'
  11641. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11642. dlpath=$dir/\$dldll~
  11643. $rm \$dlpath'
  11644. shlibpath_overrides_runpath=yes
  11645. case $host_os in
  11646. cygwin*)
  11647. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11648. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11649. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11650. ;;
  11651. mingw*)
  11652. # MinGW DLLs use traditional 'lib' prefix
  11653. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11654. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11655. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11656. # It is most probably a Windows format PATH printed by
  11657. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11658. # path with ; separators, and with drive letters. We can handle the
  11659. # drive letters (cygwin fileutils understands them), so leave them,
  11660. # especially as we might pass files found there to a mingw objdump,
  11661. # which wouldn't understand a cygwinified path. Ahh.
  11662. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11663. else
  11664. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11665. fi
  11666. ;;
  11667. pw32*)
  11668. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11669. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11670. ;;
  11671. esac
  11672. ;;
  11673. *)
  11674. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11675. ;;
  11676. esac
  11677. dynamic_linker='Win32 ld.exe'
  11678. # FIXME: first we should search . and the directory the executable is in
  11679. shlibpath_var=PATH
  11680. ;;
  11681. darwin* | rhapsody*)
  11682. dynamic_linker="$host_os dyld"
  11683. version_type=darwin
  11684. need_lib_prefix=no
  11685. need_version=no
  11686. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11687. soname_spec='${libname}${release}${major}$shared_ext'
  11688. shlibpath_overrides_runpath=yes
  11689. shlibpath_var=DYLD_LIBRARY_PATH
  11690. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11691. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11692. ;;
  11693. dgux*)
  11694. version_type=linux
  11695. need_lib_prefix=no
  11696. need_version=no
  11697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11698. soname_spec='${libname}${release}${shared_ext}$major'
  11699. shlibpath_var=LD_LIBRARY_PATH
  11700. ;;
  11701. freebsd1*)
  11702. dynamic_linker=no
  11703. ;;
  11704. freebsd* | dragonfly*)
  11705. # DragonFly does not have aout. When/if they implement a new
  11706. # versioning mechanism, adjust this.
  11707. if test -x /usr/bin/objformat; then
  11708. objformat=`/usr/bin/objformat`
  11709. else
  11710. case $host_os in
  11711. freebsd[123]*) objformat=aout ;;
  11712. *) objformat=elf ;;
  11713. esac
  11714. fi
  11715. version_type=freebsd-$objformat
  11716. case $version_type in
  11717. freebsd-elf*)
  11718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11719. need_version=no
  11720. need_lib_prefix=no
  11721. ;;
  11722. freebsd-*)
  11723. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11724. need_version=yes
  11725. ;;
  11726. esac
  11727. shlibpath_var=LD_LIBRARY_PATH
  11728. case $host_os in
  11729. freebsd2*)
  11730. shlibpath_overrides_runpath=yes
  11731. ;;
  11732. freebsd3.[01]* | freebsdelf3.[01]*)
  11733. shlibpath_overrides_runpath=yes
  11734. hardcode_into_libs=yes
  11735. ;;
  11736. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11737. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11738. shlibpath_overrides_runpath=no
  11739. hardcode_into_libs=yes
  11740. ;;
  11741. *) # from 4.6 on, and DragonFly
  11742. shlibpath_overrides_runpath=yes
  11743. hardcode_into_libs=yes
  11744. ;;
  11745. esac
  11746. ;;
  11747. gnu*)
  11748. version_type=linux
  11749. need_lib_prefix=no
  11750. need_version=no
  11751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11752. soname_spec='${libname}${release}${shared_ext}$major'
  11753. shlibpath_var=LD_LIBRARY_PATH
  11754. hardcode_into_libs=yes
  11755. ;;
  11756. hpux9* | hpux10* | hpux11*)
  11757. # Give a soname corresponding to the major version so that dld.sl refuses to
  11758. # link against other versions.
  11759. version_type=sunos
  11760. need_lib_prefix=no
  11761. need_version=no
  11762. case $host_cpu in
  11763. ia64*)
  11764. shrext_cmds='.so'
  11765. hardcode_into_libs=yes
  11766. dynamic_linker="$host_os dld.so"
  11767. shlibpath_var=LD_LIBRARY_PATH
  11768. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11770. soname_spec='${libname}${release}${shared_ext}$major'
  11771. if test "X$HPUX_IA64_MODE" = X32; then
  11772. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11773. else
  11774. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11775. fi
  11776. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11777. ;;
  11778. hppa*64*)
  11779. shrext_cmds='.sl'
  11780. hardcode_into_libs=yes
  11781. dynamic_linker="$host_os dld.sl"
  11782. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11783. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11785. soname_spec='${libname}${release}${shared_ext}$major'
  11786. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11787. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11788. ;;
  11789. *)
  11790. shrext_cmds='.sl'
  11791. dynamic_linker="$host_os dld.sl"
  11792. shlibpath_var=SHLIB_PATH
  11793. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11795. soname_spec='${libname}${release}${shared_ext}$major'
  11796. ;;
  11797. esac
  11798. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11799. postinstall_cmds='chmod 555 $lib'
  11800. ;;
  11801. interix[3-9]*)
  11802. version_type=linux
  11803. need_lib_prefix=no
  11804. need_version=no
  11805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11806. soname_spec='${libname}${release}${shared_ext}$major'
  11807. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11808. shlibpath_var=LD_LIBRARY_PATH
  11809. shlibpath_overrides_runpath=no
  11810. hardcode_into_libs=yes
  11811. ;;
  11812. irix5* | irix6* | nonstopux*)
  11813. case $host_os in
  11814. nonstopux*) version_type=nonstopux ;;
  11815. *)
  11816. if test "$lt_cv_prog_gnu_ld" = yes; then
  11817. version_type=linux
  11818. else
  11819. version_type=irix
  11820. fi ;;
  11821. esac
  11822. need_lib_prefix=no
  11823. need_version=no
  11824. soname_spec='${libname}${release}${shared_ext}$major'
  11825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11826. case $host_os in
  11827. irix5* | nonstopux*)
  11828. libsuff= shlibsuff=
  11829. ;;
  11830. *)
  11831. case $LD in # libtool.m4 will add one of these switches to LD
  11832. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11833. libsuff= shlibsuff= libmagic=32-bit;;
  11834. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11835. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11836. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11837. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11838. *) libsuff= shlibsuff= libmagic=never-match;;
  11839. esac
  11840. ;;
  11841. esac
  11842. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11843. shlibpath_overrides_runpath=no
  11844. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11845. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11846. hardcode_into_libs=yes
  11847. ;;
  11848. # No shared lib support for Linux oldld, aout, or coff.
  11849. linux*oldld* | linux*aout* | linux*coff*)
  11850. dynamic_linker=no
  11851. ;;
  11852. # This must be Linux ELF.
  11853. linux* | k*bsd*-gnu)
  11854. version_type=linux
  11855. need_lib_prefix=no
  11856. need_version=no
  11857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11858. soname_spec='${libname}${release}${shared_ext}$major'
  11859. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11860. shlibpath_var=LD_LIBRARY_PATH
  11861. shlibpath_overrides_runpath=no
  11862. # This implies no fast_install, which is unacceptable.
  11863. # Some rework will be needed to allow for fast_install
  11864. # before this can be enabled.
  11865. hardcode_into_libs=yes
  11866. # Append ld.so.conf contents to the search path
  11867. if test -f /etc/ld.so.conf; then
  11868. 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' ' '`
  11869. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11870. fi
  11871. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11872. # powerpc, because MkLinux only supported shared libraries with the
  11873. # GNU dynamic linker. Since this was broken with cross compilers,
  11874. # most powerpc-linux boxes support dynamic linking these days and
  11875. # people can always --disable-shared, the test was removed, and we
  11876. # assume the GNU/Linux dynamic linker is in use.
  11877. dynamic_linker='GNU/Linux ld.so'
  11878. ;;
  11879. netbsd*)
  11880. version_type=sunos
  11881. need_lib_prefix=no
  11882. need_version=no
  11883. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11885. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11886. dynamic_linker='NetBSD (a.out) ld.so'
  11887. else
  11888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11889. soname_spec='${libname}${release}${shared_ext}$major'
  11890. dynamic_linker='NetBSD ld.elf_so'
  11891. fi
  11892. shlibpath_var=LD_LIBRARY_PATH
  11893. shlibpath_overrides_runpath=yes
  11894. hardcode_into_libs=yes
  11895. ;;
  11896. newsos6)
  11897. version_type=linux
  11898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11899. shlibpath_var=LD_LIBRARY_PATH
  11900. shlibpath_overrides_runpath=yes
  11901. ;;
  11902. nto-qnx*)
  11903. version_type=linux
  11904. need_lib_prefix=no
  11905. need_version=no
  11906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11907. soname_spec='${libname}${release}${shared_ext}$major'
  11908. shlibpath_var=LD_LIBRARY_PATH
  11909. shlibpath_overrides_runpath=yes
  11910. ;;
  11911. openbsd*)
  11912. version_type=sunos
  11913. sys_lib_dlsearch_path_spec="/usr/lib"
  11914. need_lib_prefix=no
  11915. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11916. case $host_os in
  11917. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11918. *) need_version=no ;;
  11919. esac
  11920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11921. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11922. shlibpath_var=LD_LIBRARY_PATH
  11923. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11924. case $host_os in
  11925. openbsd2.[89] | openbsd2.[89].*)
  11926. shlibpath_overrides_runpath=no
  11927. ;;
  11928. *)
  11929. shlibpath_overrides_runpath=yes
  11930. ;;
  11931. esac
  11932. else
  11933. shlibpath_overrides_runpath=yes
  11934. fi
  11935. ;;
  11936. os2*)
  11937. libname_spec='$name'
  11938. shrext_cmds=".dll"
  11939. need_lib_prefix=no
  11940. library_names_spec='$libname${shared_ext} $libname.a'
  11941. dynamic_linker='OS/2 ld.exe'
  11942. shlibpath_var=LIBPATH
  11943. ;;
  11944. osf3* | osf4* | osf5*)
  11945. version_type=osf
  11946. need_lib_prefix=no
  11947. need_version=no
  11948. soname_spec='${libname}${release}${shared_ext}$major'
  11949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11950. shlibpath_var=LD_LIBRARY_PATH
  11951. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11952. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11953. ;;
  11954. rdos*)
  11955. dynamic_linker=no
  11956. ;;
  11957. solaris*)
  11958. version_type=linux
  11959. need_lib_prefix=no
  11960. need_version=no
  11961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11962. soname_spec='${libname}${release}${shared_ext}$major'
  11963. shlibpath_var=LD_LIBRARY_PATH
  11964. shlibpath_overrides_runpath=yes
  11965. hardcode_into_libs=yes
  11966. # ldd complains unless libraries are executable
  11967. postinstall_cmds='chmod +x $lib'
  11968. ;;
  11969. sunos4*)
  11970. version_type=sunos
  11971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11972. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11973. shlibpath_var=LD_LIBRARY_PATH
  11974. shlibpath_overrides_runpath=yes
  11975. if test "$with_gnu_ld" = yes; then
  11976. need_lib_prefix=no
  11977. fi
  11978. need_version=yes
  11979. ;;
  11980. sysv4 | sysv4.3*)
  11981. version_type=linux
  11982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11983. soname_spec='${libname}${release}${shared_ext}$major'
  11984. shlibpath_var=LD_LIBRARY_PATH
  11985. case $host_vendor in
  11986. sni)
  11987. shlibpath_overrides_runpath=no
  11988. need_lib_prefix=no
  11989. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11990. runpath_var=LD_RUN_PATH
  11991. ;;
  11992. siemens)
  11993. need_lib_prefix=no
  11994. ;;
  11995. motorola)
  11996. need_lib_prefix=no
  11997. need_version=no
  11998. shlibpath_overrides_runpath=no
  11999. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12000. ;;
  12001. esac
  12002. ;;
  12003. sysv4*MP*)
  12004. if test -d /usr/nec ;then
  12005. version_type=linux
  12006. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12007. soname_spec='$libname${shared_ext}.$major'
  12008. shlibpath_var=LD_LIBRARY_PATH
  12009. fi
  12010. ;;
  12011. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12012. version_type=freebsd-elf
  12013. need_lib_prefix=no
  12014. need_version=no
  12015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12016. soname_spec='${libname}${release}${shared_ext}$major'
  12017. shlibpath_var=LD_LIBRARY_PATH
  12018. hardcode_into_libs=yes
  12019. if test "$with_gnu_ld" = yes; then
  12020. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12021. shlibpath_overrides_runpath=no
  12022. else
  12023. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12024. shlibpath_overrides_runpath=yes
  12025. case $host_os in
  12026. sco3.2v5*)
  12027. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12028. ;;
  12029. esac
  12030. fi
  12031. sys_lib_dlsearch_path_spec='/usr/lib'
  12032. ;;
  12033. uts4*)
  12034. version_type=linux
  12035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12036. soname_spec='${libname}${release}${shared_ext}$major'
  12037. shlibpath_var=LD_LIBRARY_PATH
  12038. ;;
  12039. *)
  12040. dynamic_linker=no
  12041. ;;
  12042. esac
  12043. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12044. echo "${ECHO_T}$dynamic_linker" >&6; }
  12045. test "$dynamic_linker" = no && can_build_shared=no
  12046. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12047. if test "$GCC" = yes; then
  12048. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12049. fi
  12050. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12051. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12052. hardcode_action_CXX=
  12053. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12054. test -n "$runpath_var_CXX" || \
  12055. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12056. # We can hardcode non-existant directories.
  12057. if test "$hardcode_direct_CXX" != no &&
  12058. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12059. # have to relink, otherwise we might link with an installed library
  12060. # when we should be linking with a yet-to-be-installed one
  12061. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12062. test "$hardcode_minus_L_CXX" != no; then
  12063. # Linking always hardcodes the temporary library directory.
  12064. hardcode_action_CXX=relink
  12065. else
  12066. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12067. hardcode_action_CXX=immediate
  12068. fi
  12069. else
  12070. # We cannot hardcode anything, or else we can only hardcode existing
  12071. # directories.
  12072. hardcode_action_CXX=unsupported
  12073. fi
  12074. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12075. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12076. if test "$hardcode_action_CXX" = relink; then
  12077. # Fast installation is not supported
  12078. enable_fast_install=no
  12079. elif test "$shlibpath_overrides_runpath" = yes ||
  12080. test "$enable_shared" = no; then
  12081. # Fast installation is not necessary
  12082. enable_fast_install=needless
  12083. fi
  12084. # The else clause should only fire when bootstrapping the
  12085. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12086. # with your package, and you will get complaints that there are
  12087. # no rules to generate ltmain.sh.
  12088. if test -f "$ltmain"; then
  12089. # See if we are running on zsh, and set the options which allow our commands through
  12090. # without removal of \ escapes.
  12091. if test -n "${ZSH_VERSION+set}" ; then
  12092. setopt NO_GLOB_SUBST
  12093. fi
  12094. # Now quote all the things that may contain metacharacters while being
  12095. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12096. # variables and quote the copies for generation of the libtool script.
  12097. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12098. SED SHELL STRIP \
  12099. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12100. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12101. deplibs_check_method reload_flag reload_cmds need_locks \
  12102. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12103. lt_cv_sys_global_symbol_to_c_name_address \
  12104. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12105. old_postinstall_cmds old_postuninstall_cmds \
  12106. compiler_CXX \
  12107. CC_CXX \
  12108. LD_CXX \
  12109. lt_prog_compiler_wl_CXX \
  12110. lt_prog_compiler_pic_CXX \
  12111. lt_prog_compiler_static_CXX \
  12112. lt_prog_compiler_no_builtin_flag_CXX \
  12113. export_dynamic_flag_spec_CXX \
  12114. thread_safe_flag_spec_CXX \
  12115. whole_archive_flag_spec_CXX \
  12116. enable_shared_with_static_runtimes_CXX \
  12117. old_archive_cmds_CXX \
  12118. old_archive_from_new_cmds_CXX \
  12119. predep_objects_CXX \
  12120. postdep_objects_CXX \
  12121. predeps_CXX \
  12122. postdeps_CXX \
  12123. compiler_lib_search_path_CXX \
  12124. archive_cmds_CXX \
  12125. archive_expsym_cmds_CXX \
  12126. postinstall_cmds_CXX \
  12127. postuninstall_cmds_CXX \
  12128. old_archive_from_expsyms_cmds_CXX \
  12129. allow_undefined_flag_CXX \
  12130. no_undefined_flag_CXX \
  12131. export_symbols_cmds_CXX \
  12132. hardcode_libdir_flag_spec_CXX \
  12133. hardcode_libdir_flag_spec_ld_CXX \
  12134. hardcode_libdir_separator_CXX \
  12135. hardcode_automatic_CXX \
  12136. module_cmds_CXX \
  12137. module_expsym_cmds_CXX \
  12138. lt_cv_prog_compiler_c_o_CXX \
  12139. fix_srcfile_path_CXX \
  12140. exclude_expsyms_CXX \
  12141. include_expsyms_CXX; do
  12142. case $var in
  12143. old_archive_cmds_CXX | \
  12144. old_archive_from_new_cmds_CXX | \
  12145. archive_cmds_CXX | \
  12146. archive_expsym_cmds_CXX | \
  12147. module_cmds_CXX | \
  12148. module_expsym_cmds_CXX | \
  12149. old_archive_from_expsyms_cmds_CXX | \
  12150. export_symbols_cmds_CXX | \
  12151. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12152. postinstall_cmds | postuninstall_cmds | \
  12153. old_postinstall_cmds | old_postuninstall_cmds | \
  12154. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12155. # Double-quote double-evaled strings.
  12156. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12157. ;;
  12158. *)
  12159. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12160. ;;
  12161. esac
  12162. done
  12163. case $lt_echo in
  12164. *'\$0 --fallback-echo"')
  12165. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12166. ;;
  12167. esac
  12168. cfgfile="$ofile"
  12169. cat <<__EOF__ >> "$cfgfile"
  12170. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12171. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12172. # Shell to use when invoking shell scripts.
  12173. SHELL=$lt_SHELL
  12174. # Whether or not to build shared libraries.
  12175. build_libtool_libs=$enable_shared
  12176. # Whether or not to build static libraries.
  12177. build_old_libs=$enable_static
  12178. # Whether or not to add -lc for building shared libraries.
  12179. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12180. # Whether or not to disallow shared libs when runtime libs are static
  12181. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12182. # Whether or not to optimize for fast installation.
  12183. fast_install=$enable_fast_install
  12184. # The host system.
  12185. host_alias=$host_alias
  12186. host=$host
  12187. host_os=$host_os
  12188. # The build system.
  12189. build_alias=$build_alias
  12190. build=$build
  12191. build_os=$build_os
  12192. # An echo program that does not interpret backslashes.
  12193. echo=$lt_echo
  12194. # The archiver.
  12195. AR=$lt_AR
  12196. AR_FLAGS=$lt_AR_FLAGS
  12197. # A C compiler.
  12198. LTCC=$lt_LTCC
  12199. # LTCC compiler flags.
  12200. LTCFLAGS=$lt_LTCFLAGS
  12201. # A language-specific compiler.
  12202. CC=$lt_compiler_CXX
  12203. # Is the compiler the GNU C compiler?
  12204. with_gcc=$GCC_CXX
  12205. # An ERE matcher.
  12206. EGREP=$lt_EGREP
  12207. # The linker used to build libraries.
  12208. LD=$lt_LD_CXX
  12209. # Whether we need hard or soft links.
  12210. LN_S=$lt_LN_S
  12211. # A BSD-compatible nm program.
  12212. NM=$lt_NM
  12213. # A symbol stripping program
  12214. STRIP=$lt_STRIP
  12215. # Used to examine libraries when file_magic_cmd begins "file"
  12216. MAGIC_CMD=$MAGIC_CMD
  12217. # Used on cygwin: DLL creation program.
  12218. DLLTOOL="$DLLTOOL"
  12219. # Used on cygwin: object dumper.
  12220. OBJDUMP="$OBJDUMP"
  12221. # Used on cygwin: assembler.
  12222. AS="$AS"
  12223. # The name of the directory that contains temporary libtool files.
  12224. objdir=$objdir
  12225. # How to create reloadable object files.
  12226. reload_flag=$lt_reload_flag
  12227. reload_cmds=$lt_reload_cmds
  12228. # How to pass a linker flag through the compiler.
  12229. wl=$lt_lt_prog_compiler_wl_CXX
  12230. # Object file suffix (normally "o").
  12231. objext="$ac_objext"
  12232. # Old archive suffix (normally "a").
  12233. libext="$libext"
  12234. # Shared library suffix (normally ".so").
  12235. shrext_cmds='$shrext_cmds'
  12236. # Executable file suffix (normally "").
  12237. exeext="$exeext"
  12238. # Additional compiler flags for building library objects.
  12239. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12240. pic_mode=$pic_mode
  12241. # What is the maximum length of a command?
  12242. max_cmd_len=$lt_cv_sys_max_cmd_len
  12243. # Does compiler simultaneously support -c and -o options?
  12244. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12245. # Must we lock files when doing compilation?
  12246. need_locks=$lt_need_locks
  12247. # Do we need the lib prefix for modules?
  12248. need_lib_prefix=$need_lib_prefix
  12249. # Do we need a version for libraries?
  12250. need_version=$need_version
  12251. # Whether dlopen is supported.
  12252. dlopen_support=$enable_dlopen
  12253. # Whether dlopen of programs is supported.
  12254. dlopen_self=$enable_dlopen_self
  12255. # Whether dlopen of statically linked programs is supported.
  12256. dlopen_self_static=$enable_dlopen_self_static
  12257. # Compiler flag to prevent dynamic linking.
  12258. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12259. # Compiler flag to turn off builtin functions.
  12260. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12261. # Compiler flag to allow reflexive dlopens.
  12262. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12263. # Compiler flag to generate shared objects directly from archives.
  12264. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12265. # Compiler flag to generate thread-safe objects.
  12266. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12267. # Library versioning type.
  12268. version_type=$version_type
  12269. # Format of library name prefix.
  12270. libname_spec=$lt_libname_spec
  12271. # List of archive names. First name is the real one, the rest are links.
  12272. # The last name is the one that the linker finds with -lNAME.
  12273. library_names_spec=$lt_library_names_spec
  12274. # The coded name of the library, if different from the real name.
  12275. soname_spec=$lt_soname_spec
  12276. # Commands used to build and install an old-style archive.
  12277. RANLIB=$lt_RANLIB
  12278. old_archive_cmds=$lt_old_archive_cmds_CXX
  12279. old_postinstall_cmds=$lt_old_postinstall_cmds
  12280. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12281. # Create an old-style archive from a shared archive.
  12282. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12283. # Create a temporary old-style archive to link instead of a shared archive.
  12284. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12285. # Commands used to build and install a shared archive.
  12286. archive_cmds=$lt_archive_cmds_CXX
  12287. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12288. postinstall_cmds=$lt_postinstall_cmds
  12289. postuninstall_cmds=$lt_postuninstall_cmds
  12290. # Commands used to build a loadable module (assumed same as above if empty)
  12291. module_cmds=$lt_module_cmds_CXX
  12292. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12293. # Commands to strip libraries.
  12294. old_striplib=$lt_old_striplib
  12295. striplib=$lt_striplib
  12296. # Dependencies to place before the objects being linked to create a
  12297. # shared library.
  12298. predep_objects=$lt_predep_objects_CXX
  12299. # Dependencies to place after the objects being linked to create a
  12300. # shared library.
  12301. postdep_objects=$lt_postdep_objects_CXX
  12302. # Dependencies to place before the objects being linked to create a
  12303. # shared library.
  12304. predeps=$lt_predeps_CXX
  12305. # Dependencies to place after the objects being linked to create a
  12306. # shared library.
  12307. postdeps=$lt_postdeps_CXX
  12308. # The library search path used internally by the compiler when linking
  12309. # a shared library.
  12310. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12311. # Method to check whether dependent libraries are shared objects.
  12312. deplibs_check_method=$lt_deplibs_check_method
  12313. # Command to use when deplibs_check_method == file_magic.
  12314. file_magic_cmd=$lt_file_magic_cmd
  12315. # Flag that allows shared libraries with undefined symbols to be built.
  12316. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12317. # Flag that forces no undefined symbols.
  12318. no_undefined_flag=$lt_no_undefined_flag_CXX
  12319. # Commands used to finish a libtool library installation in a directory.
  12320. finish_cmds=$lt_finish_cmds
  12321. # Same as above, but a single script fragment to be evaled but not shown.
  12322. finish_eval=$lt_finish_eval
  12323. # Take the output of nm and produce a listing of raw symbols and C names.
  12324. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12325. # Transform the output of nm in a proper C declaration
  12326. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12327. # Transform the output of nm in a C name address pair
  12328. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12329. # This is the shared library runtime path variable.
  12330. runpath_var=$runpath_var
  12331. # This is the shared library path variable.
  12332. shlibpath_var=$shlibpath_var
  12333. # Is shlibpath searched before the hard-coded library search path?
  12334. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12335. # How to hardcode a shared library path into an executable.
  12336. hardcode_action=$hardcode_action_CXX
  12337. # Whether we should hardcode library paths into libraries.
  12338. hardcode_into_libs=$hardcode_into_libs
  12339. # Flag to hardcode \$libdir into a binary during linking.
  12340. # This must work even if \$libdir does not exist.
  12341. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12342. # If ld is used when linking, flag to hardcode \$libdir into
  12343. # a binary during linking. This must work even if \$libdir does
  12344. # not exist.
  12345. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12346. # Whether we need a single -rpath flag with a separated argument.
  12347. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12348. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12349. # resulting binary.
  12350. hardcode_direct=$hardcode_direct_CXX
  12351. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12352. # resulting binary.
  12353. hardcode_minus_L=$hardcode_minus_L_CXX
  12354. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12355. # the resulting binary.
  12356. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12357. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12358. # and all subsequent libraries and executables linked against it.
  12359. hardcode_automatic=$hardcode_automatic_CXX
  12360. # Variables whose values should be saved in libtool wrapper scripts and
  12361. # restored at relink time.
  12362. variables_saved_for_relink="$variables_saved_for_relink"
  12363. # Whether libtool must link a program against all its dependency libraries.
  12364. link_all_deplibs=$link_all_deplibs_CXX
  12365. # Compile-time system search path for libraries
  12366. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12367. # Run-time system search path for libraries
  12368. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12369. # Fix the shell variable \$srcfile for the compiler.
  12370. fix_srcfile_path=$lt_fix_srcfile_path
  12371. # Set to yes if exported symbols are required.
  12372. always_export_symbols=$always_export_symbols_CXX
  12373. # The commands to list exported symbols.
  12374. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12375. # The commands to extract the exported symbol list from a shared archive.
  12376. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12377. # Symbols that should not be listed in the preloaded symbols.
  12378. exclude_expsyms=$lt_exclude_expsyms_CXX
  12379. # Symbols that must always be exported.
  12380. include_expsyms=$lt_include_expsyms_CXX
  12381. # ### END LIBTOOL TAG CONFIG: $tagname
  12382. __EOF__
  12383. else
  12384. # If there is no Makefile yet, we rely on a make rule to execute
  12385. # `config.status --recheck' to rerun these tests and create the
  12386. # libtool script then.
  12387. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12388. if test -f "$ltmain_in"; then
  12389. test -f Makefile && make "$ltmain"
  12390. fi
  12391. fi
  12392. ac_ext=c
  12393. ac_cpp='$CPP $CPPFLAGS'
  12394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12397. CC=$lt_save_CC
  12398. LDCXX=$LD
  12399. LD=$lt_save_LD
  12400. GCC=$lt_save_GCC
  12401. with_gnu_ldcxx=$with_gnu_ld
  12402. with_gnu_ld=$lt_save_with_gnu_ld
  12403. lt_cv_path_LDCXX=$lt_cv_path_LD
  12404. lt_cv_path_LD=$lt_save_path_LD
  12405. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12406. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12407. else
  12408. tagname=""
  12409. fi
  12410. ;;
  12411. F77)
  12412. if test -n "$F77" && test "X$F77" != "Xno"; then
  12413. ac_ext=f
  12414. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12415. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12416. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12417. archive_cmds_need_lc_F77=no
  12418. allow_undefined_flag_F77=
  12419. always_export_symbols_F77=no
  12420. archive_expsym_cmds_F77=
  12421. export_dynamic_flag_spec_F77=
  12422. hardcode_direct_F77=no
  12423. hardcode_libdir_flag_spec_F77=
  12424. hardcode_libdir_flag_spec_ld_F77=
  12425. hardcode_libdir_separator_F77=
  12426. hardcode_minus_L_F77=no
  12427. hardcode_automatic_F77=no
  12428. module_cmds_F77=
  12429. module_expsym_cmds_F77=
  12430. link_all_deplibs_F77=unknown
  12431. old_archive_cmds_F77=$old_archive_cmds
  12432. no_undefined_flag_F77=
  12433. whole_archive_flag_spec_F77=
  12434. enable_shared_with_static_runtimes_F77=no
  12435. # Source file extension for f77 test sources.
  12436. ac_ext=f
  12437. # Object file extension for compiled f77 test sources.
  12438. objext=o
  12439. objext_F77=$objext
  12440. # Code to be used in simple compile tests
  12441. lt_simple_compile_test_code="\
  12442. subroutine t
  12443. return
  12444. end
  12445. "
  12446. # Code to be used in simple link tests
  12447. lt_simple_link_test_code="\
  12448. program t
  12449. end
  12450. "
  12451. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12452. # If no C compiler was specified, use CC.
  12453. LTCC=${LTCC-"$CC"}
  12454. # If no C compiler flags were specified, use CFLAGS.
  12455. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12456. # Allow CC to be a program name with arguments.
  12457. compiler=$CC
  12458. # save warnings/boilerplate of simple test code
  12459. ac_outfile=conftest.$ac_objext
  12460. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12461. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12462. _lt_compiler_boilerplate=`cat conftest.err`
  12463. $rm conftest*
  12464. ac_outfile=conftest.$ac_objext
  12465. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12466. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12467. _lt_linker_boilerplate=`cat conftest.err`
  12468. $rm conftest*
  12469. # Allow CC to be a program name with arguments.
  12470. lt_save_CC="$CC"
  12471. CC=${F77-"f77"}
  12472. compiler=$CC
  12473. compiler_F77=$CC
  12474. for cc_temp in $compiler""; do
  12475. case $cc_temp in
  12476. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12477. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12478. \-*) ;;
  12479. *) break;;
  12480. esac
  12481. done
  12482. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12483. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12484. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12485. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12486. echo "${ECHO_T}$can_build_shared" >&6; }
  12487. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12488. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12489. test "$can_build_shared" = "no" && enable_shared=no
  12490. # On AIX, shared libraries and static libraries use the same namespace, and
  12491. # are all built from PIC.
  12492. case $host_os in
  12493. aix3*)
  12494. test "$enable_shared" = yes && enable_static=no
  12495. if test -n "$RANLIB"; then
  12496. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12497. postinstall_cmds='$RANLIB $lib'
  12498. fi
  12499. ;;
  12500. aix4* | aix5*)
  12501. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12502. test "$enable_shared" = yes && enable_static=no
  12503. fi
  12504. ;;
  12505. esac
  12506. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12507. echo "${ECHO_T}$enable_shared" >&6; }
  12508. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12509. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12510. # Make sure either enable_shared or enable_static is yes.
  12511. test "$enable_shared" = yes || enable_static=yes
  12512. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12513. echo "${ECHO_T}$enable_static" >&6; }
  12514. GCC_F77="$G77"
  12515. LD_F77="$LD"
  12516. lt_prog_compiler_wl_F77=
  12517. lt_prog_compiler_pic_F77=
  12518. lt_prog_compiler_static_F77=
  12519. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12520. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12521. if test "$GCC" = yes; then
  12522. lt_prog_compiler_wl_F77='-Wl,'
  12523. lt_prog_compiler_static_F77='-static'
  12524. case $host_os in
  12525. aix*)
  12526. # All AIX code is PIC.
  12527. if test "$host_cpu" = ia64; then
  12528. # AIX 5 now supports IA64 processor
  12529. lt_prog_compiler_static_F77='-Bstatic'
  12530. fi
  12531. ;;
  12532. amigaos*)
  12533. # FIXME: we need at least 68020 code to build shared libraries, but
  12534. # adding the `-m68020' flag to GCC prevents building anything better,
  12535. # like `-m68040'.
  12536. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12537. ;;
  12538. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12539. # PIC is the default for these OSes.
  12540. ;;
  12541. mingw* | cygwin* | pw32* | os2*)
  12542. # This hack is so that the source file can tell whether it is being
  12543. # built for inclusion in a dll (and should export symbols for example).
  12544. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12545. # (--disable-auto-import) libraries
  12546. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12547. ;;
  12548. darwin* | rhapsody*)
  12549. # PIC is the default on this platform
  12550. # Common symbols not allowed in MH_DYLIB files
  12551. lt_prog_compiler_pic_F77='-fno-common'
  12552. ;;
  12553. interix[3-9]*)
  12554. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12555. # Instead, we relocate shared libraries at runtime.
  12556. ;;
  12557. msdosdjgpp*)
  12558. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12559. # on systems that don't support them.
  12560. lt_prog_compiler_can_build_shared_F77=no
  12561. enable_shared=no
  12562. ;;
  12563. sysv4*MP*)
  12564. if test -d /usr/nec; then
  12565. lt_prog_compiler_pic_F77=-Kconform_pic
  12566. fi
  12567. ;;
  12568. hpux*)
  12569. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12570. # not for PA HP-UX.
  12571. case $host_cpu in
  12572. hppa*64*|ia64*)
  12573. # +Z the default
  12574. ;;
  12575. *)
  12576. lt_prog_compiler_pic_F77='-fPIC'
  12577. ;;
  12578. esac
  12579. ;;
  12580. *)
  12581. lt_prog_compiler_pic_F77='-fPIC'
  12582. ;;
  12583. esac
  12584. else
  12585. # PORTME Check for flag to pass linker flags through the system compiler.
  12586. case $host_os in
  12587. aix*)
  12588. lt_prog_compiler_wl_F77='-Wl,'
  12589. if test "$host_cpu" = ia64; then
  12590. # AIX 5 now supports IA64 processor
  12591. lt_prog_compiler_static_F77='-Bstatic'
  12592. else
  12593. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12594. fi
  12595. ;;
  12596. darwin*)
  12597. # PIC is the default on this platform
  12598. # Common symbols not allowed in MH_DYLIB files
  12599. case $cc_basename in
  12600. xlc*)
  12601. lt_prog_compiler_pic_F77='-qnocommon'
  12602. lt_prog_compiler_wl_F77='-Wl,'
  12603. ;;
  12604. esac
  12605. ;;
  12606. mingw* | cygwin* | pw32* | os2*)
  12607. # This hack is so that the source file can tell whether it is being
  12608. # built for inclusion in a dll (and should export symbols for example).
  12609. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12610. ;;
  12611. hpux9* | hpux10* | hpux11*)
  12612. lt_prog_compiler_wl_F77='-Wl,'
  12613. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12614. # not for PA HP-UX.
  12615. case $host_cpu in
  12616. hppa*64*|ia64*)
  12617. # +Z the default
  12618. ;;
  12619. *)
  12620. lt_prog_compiler_pic_F77='+Z'
  12621. ;;
  12622. esac
  12623. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12624. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12625. ;;
  12626. irix5* | irix6* | nonstopux*)
  12627. lt_prog_compiler_wl_F77='-Wl,'
  12628. # PIC (with -KPIC) is the default.
  12629. lt_prog_compiler_static_F77='-non_shared'
  12630. ;;
  12631. newsos6)
  12632. lt_prog_compiler_pic_F77='-KPIC'
  12633. lt_prog_compiler_static_F77='-Bstatic'
  12634. ;;
  12635. linux* | k*bsd*-gnu)
  12636. case $cc_basename in
  12637. icc* | ecc*)
  12638. lt_prog_compiler_wl_F77='-Wl,'
  12639. lt_prog_compiler_pic_F77='-KPIC'
  12640. lt_prog_compiler_static_F77='-static'
  12641. ;;
  12642. pgcc* | pgf77* | pgf90* | pgf95*)
  12643. # Portland Group compilers (*not* the Pentium gcc compiler,
  12644. # which looks to be a dead project)
  12645. lt_prog_compiler_wl_F77='-Wl,'
  12646. lt_prog_compiler_pic_F77='-fpic'
  12647. lt_prog_compiler_static_F77='-Bstatic'
  12648. ;;
  12649. ccc*)
  12650. lt_prog_compiler_wl_F77='-Wl,'
  12651. # All Alpha code is PIC.
  12652. lt_prog_compiler_static_F77='-non_shared'
  12653. ;;
  12654. *)
  12655. case `$CC -V 2>&1 | sed 5q` in
  12656. *Sun\ C*)
  12657. # Sun C 5.9
  12658. lt_prog_compiler_pic_F77='-KPIC'
  12659. lt_prog_compiler_static_F77='-Bstatic'
  12660. lt_prog_compiler_wl_F77='-Wl,'
  12661. ;;
  12662. *Sun\ F*)
  12663. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12664. lt_prog_compiler_pic_F77='-KPIC'
  12665. lt_prog_compiler_static_F77='-Bstatic'
  12666. lt_prog_compiler_wl_F77=''
  12667. ;;
  12668. esac
  12669. ;;
  12670. esac
  12671. ;;
  12672. osf3* | osf4* | osf5*)
  12673. lt_prog_compiler_wl_F77='-Wl,'
  12674. # All OSF/1 code is PIC.
  12675. lt_prog_compiler_static_F77='-non_shared'
  12676. ;;
  12677. rdos*)
  12678. lt_prog_compiler_static_F77='-non_shared'
  12679. ;;
  12680. solaris*)
  12681. lt_prog_compiler_pic_F77='-KPIC'
  12682. lt_prog_compiler_static_F77='-Bstatic'
  12683. case $cc_basename in
  12684. f77* | f90* | f95*)
  12685. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12686. *)
  12687. lt_prog_compiler_wl_F77='-Wl,';;
  12688. esac
  12689. ;;
  12690. sunos4*)
  12691. lt_prog_compiler_wl_F77='-Qoption ld '
  12692. lt_prog_compiler_pic_F77='-PIC'
  12693. lt_prog_compiler_static_F77='-Bstatic'
  12694. ;;
  12695. sysv4 | sysv4.2uw2* | sysv4.3*)
  12696. lt_prog_compiler_wl_F77='-Wl,'
  12697. lt_prog_compiler_pic_F77='-KPIC'
  12698. lt_prog_compiler_static_F77='-Bstatic'
  12699. ;;
  12700. sysv4*MP*)
  12701. if test -d /usr/nec ;then
  12702. lt_prog_compiler_pic_F77='-Kconform_pic'
  12703. lt_prog_compiler_static_F77='-Bstatic'
  12704. fi
  12705. ;;
  12706. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12707. lt_prog_compiler_wl_F77='-Wl,'
  12708. lt_prog_compiler_pic_F77='-KPIC'
  12709. lt_prog_compiler_static_F77='-Bstatic'
  12710. ;;
  12711. unicos*)
  12712. lt_prog_compiler_wl_F77='-Wl,'
  12713. lt_prog_compiler_can_build_shared_F77=no
  12714. ;;
  12715. uts4*)
  12716. lt_prog_compiler_pic_F77='-pic'
  12717. lt_prog_compiler_static_F77='-Bstatic'
  12718. ;;
  12719. *)
  12720. lt_prog_compiler_can_build_shared_F77=no
  12721. ;;
  12722. esac
  12723. fi
  12724. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12725. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12726. #
  12727. # Check to make sure the PIC flag actually works.
  12728. #
  12729. if test -n "$lt_prog_compiler_pic_F77"; then
  12730. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12731. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12732. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12733. echo $ECHO_N "(cached) $ECHO_C" >&6
  12734. else
  12735. lt_prog_compiler_pic_works_F77=no
  12736. ac_outfile=conftest.$ac_objext
  12737. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12738. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12739. # Insert the option either (1) after the last *FLAGS variable, or
  12740. # (2) before a word containing "conftest.", or (3) at the end.
  12741. # Note that $ac_compile itself does not contain backslashes and begins
  12742. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12743. # The option is referenced via a variable to avoid confusing sed.
  12744. lt_compile=`echo "$ac_compile" | $SED \
  12745. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12746. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12747. -e 's:$: $lt_compiler_flag:'`
  12748. (eval echo "\"\$as_me:14253: $lt_compile\"" >&5)
  12749. (eval "$lt_compile" 2>conftest.err)
  12750. ac_status=$?
  12751. cat conftest.err >&5
  12752. echo "$as_me:14257: \$? = $ac_status" >&5
  12753. if (exit $ac_status) && test -s "$ac_outfile"; then
  12754. # The compiler can only warn and ignore the option if not recognized
  12755. # So say no if there are warnings other than the usual output.
  12756. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12757. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12758. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12759. lt_prog_compiler_pic_works_F77=yes
  12760. fi
  12761. fi
  12762. $rm conftest*
  12763. fi
  12764. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12765. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12766. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12767. case $lt_prog_compiler_pic_F77 in
  12768. "" | " "*) ;;
  12769. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12770. esac
  12771. else
  12772. lt_prog_compiler_pic_F77=
  12773. lt_prog_compiler_can_build_shared_F77=no
  12774. fi
  12775. fi
  12776. case $host_os in
  12777. # For platforms which do not support PIC, -DPIC is meaningless:
  12778. *djgpp*)
  12779. lt_prog_compiler_pic_F77=
  12780. ;;
  12781. *)
  12782. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12783. ;;
  12784. esac
  12785. #
  12786. # Check to make sure the static flag actually works.
  12787. #
  12788. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12789. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12790. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12791. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12792. echo $ECHO_N "(cached) $ECHO_C" >&6
  12793. else
  12794. lt_prog_compiler_static_works_F77=no
  12795. save_LDFLAGS="$LDFLAGS"
  12796. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12797. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12798. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12799. # The linker can only warn and ignore the option if not recognized
  12800. # So say no if there are warnings
  12801. if test -s conftest.err; then
  12802. # Append any errors to the config.log.
  12803. cat conftest.err 1>&5
  12804. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12805. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12806. if diff conftest.exp conftest.er2 >/dev/null; then
  12807. lt_prog_compiler_static_works_F77=yes
  12808. fi
  12809. else
  12810. lt_prog_compiler_static_works_F77=yes
  12811. fi
  12812. fi
  12813. $rm conftest*
  12814. LDFLAGS="$save_LDFLAGS"
  12815. fi
  12816. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12817. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12818. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12819. :
  12820. else
  12821. lt_prog_compiler_static_F77=
  12822. fi
  12823. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12824. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12825. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12826. echo $ECHO_N "(cached) $ECHO_C" >&6
  12827. else
  12828. lt_cv_prog_compiler_c_o_F77=no
  12829. $rm -r conftest 2>/dev/null
  12830. mkdir conftest
  12831. cd conftest
  12832. mkdir out
  12833. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12834. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12835. # Insert the option either (1) after the last *FLAGS variable, or
  12836. # (2) before a word containing "conftest.", or (3) at the end.
  12837. # Note that $ac_compile itself does not contain backslashes and begins
  12838. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12839. lt_compile=`echo "$ac_compile" | $SED \
  12840. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12841. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12842. -e 's:$: $lt_compiler_flag:'`
  12843. (eval echo "\"\$as_me:14357: $lt_compile\"" >&5)
  12844. (eval "$lt_compile" 2>out/conftest.err)
  12845. ac_status=$?
  12846. cat out/conftest.err >&5
  12847. echo "$as_me:14361: \$? = $ac_status" >&5
  12848. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12849. then
  12850. # The compiler can only warn and ignore the option if not recognized
  12851. # So say no if there are warnings
  12852. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12853. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12854. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12855. lt_cv_prog_compiler_c_o_F77=yes
  12856. fi
  12857. fi
  12858. chmod u+w . 2>&5
  12859. $rm conftest*
  12860. # SGI C++ compiler will create directory out/ii_files/ for
  12861. # template instantiation
  12862. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12863. $rm out/* && rmdir out
  12864. cd ..
  12865. rmdir conftest
  12866. $rm conftest*
  12867. fi
  12868. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12869. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12870. hard_links="nottested"
  12871. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12872. # do not overwrite the value of need_locks provided by the user
  12873. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12874. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12875. hard_links=yes
  12876. $rm conftest*
  12877. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12878. touch conftest.a
  12879. ln conftest.a conftest.b 2>&5 || hard_links=no
  12880. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12881. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12882. echo "${ECHO_T}$hard_links" >&6; }
  12883. if test "$hard_links" = no; then
  12884. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12885. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12886. need_locks=warn
  12887. fi
  12888. else
  12889. need_locks=no
  12890. fi
  12891. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12892. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12893. runpath_var=
  12894. allow_undefined_flag_F77=
  12895. enable_shared_with_static_runtimes_F77=no
  12896. archive_cmds_F77=
  12897. archive_expsym_cmds_F77=
  12898. old_archive_From_new_cmds_F77=
  12899. old_archive_from_expsyms_cmds_F77=
  12900. export_dynamic_flag_spec_F77=
  12901. whole_archive_flag_spec_F77=
  12902. thread_safe_flag_spec_F77=
  12903. hardcode_libdir_flag_spec_F77=
  12904. hardcode_libdir_flag_spec_ld_F77=
  12905. hardcode_libdir_separator_F77=
  12906. hardcode_direct_F77=no
  12907. hardcode_minus_L_F77=no
  12908. hardcode_shlibpath_var_F77=unsupported
  12909. link_all_deplibs_F77=unknown
  12910. hardcode_automatic_F77=no
  12911. module_cmds_F77=
  12912. module_expsym_cmds_F77=
  12913. always_export_symbols_F77=no
  12914. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12915. # include_expsyms should be a list of space-separated symbols to be *always*
  12916. # included in the symbol list
  12917. include_expsyms_F77=
  12918. # exclude_expsyms can be an extended regexp of symbols to exclude
  12919. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12920. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12921. # as well as any symbol that contains `d'.
  12922. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12923. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12924. # platforms (ab)use it in PIC code, but their linkers get confused if
  12925. # the symbol is explicitly referenced. Since portable code cannot
  12926. # rely on this symbol name, it's probably fine to never include it in
  12927. # preloaded symbol tables.
  12928. extract_expsyms_cmds=
  12929. # Just being paranoid about ensuring that cc_basename is set.
  12930. for cc_temp in $compiler""; do
  12931. case $cc_temp in
  12932. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12933. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12934. \-*) ;;
  12935. *) break;;
  12936. esac
  12937. done
  12938. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12939. case $host_os in
  12940. cygwin* | mingw* | pw32*)
  12941. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12942. # When not using gcc, we currently assume that we are using
  12943. # Microsoft Visual C++.
  12944. if test "$GCC" != yes; then
  12945. with_gnu_ld=no
  12946. fi
  12947. ;;
  12948. interix*)
  12949. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12950. with_gnu_ld=yes
  12951. ;;
  12952. openbsd*)
  12953. with_gnu_ld=no
  12954. ;;
  12955. esac
  12956. ld_shlibs_F77=yes
  12957. if test "$with_gnu_ld" = yes; then
  12958. # If archive_cmds runs LD, not CC, wlarc should be empty
  12959. wlarc='${wl}'
  12960. # Set some defaults for GNU ld with shared library support. These
  12961. # are reset later if shared libraries are not supported. Putting them
  12962. # here allows them to be overridden if necessary.
  12963. runpath_var=LD_RUN_PATH
  12964. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12965. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12966. # ancient GNU ld didn't support --whole-archive et. al.
  12967. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12968. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12969. else
  12970. whole_archive_flag_spec_F77=
  12971. fi
  12972. supports_anon_versioning=no
  12973. case `$LD -v 2>/dev/null` in
  12974. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12975. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12976. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12977. *\ 2.11.*) ;; # other 2.11 versions
  12978. *) supports_anon_versioning=yes ;;
  12979. esac
  12980. # See if GNU ld supports shared libraries.
  12981. case $host_os in
  12982. aix3* | aix4* | aix5*)
  12983. # On AIX/PPC, the GNU linker is very broken
  12984. if test "$host_cpu" != ia64; then
  12985. ld_shlibs_F77=no
  12986. cat <<EOF 1>&2
  12987. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12988. *** to be unable to reliably create shared libraries on AIX.
  12989. *** Therefore, libtool is disabling shared libraries support. If you
  12990. *** really care for shared libraries, you may want to modify your PATH
  12991. *** so that a non-GNU linker is found, and then restart.
  12992. EOF
  12993. fi
  12994. ;;
  12995. amigaos*)
  12996. 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)'
  12997. hardcode_libdir_flag_spec_F77='-L$libdir'
  12998. hardcode_minus_L_F77=yes
  12999. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13000. # that the semantics of dynamic libraries on AmigaOS, at least up
  13001. # to version 4, is to share data among multiple programs linked
  13002. # with the same dynamic library. Since this doesn't match the
  13003. # behavior of shared libraries on other platforms, we can't use
  13004. # them.
  13005. ld_shlibs_F77=no
  13006. ;;
  13007. beos*)
  13008. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13009. allow_undefined_flag_F77=unsupported
  13010. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13011. # support --undefined. This deserves some investigation. FIXME
  13012. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13013. else
  13014. ld_shlibs_F77=no
  13015. fi
  13016. ;;
  13017. cygwin* | mingw* | pw32*)
  13018. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13019. # as there is no search path for DLLs.
  13020. hardcode_libdir_flag_spec_F77='-L$libdir'
  13021. allow_undefined_flag_F77=unsupported
  13022. always_export_symbols_F77=no
  13023. enable_shared_with_static_runtimes_F77=yes
  13024. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13025. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13026. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13027. # If the export-symbols file already is a .def file (1st line
  13028. # is EXPORTS), use it as is; otherwise, prepend...
  13029. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13030. cp $export_symbols $output_objdir/$soname.def;
  13031. else
  13032. echo EXPORTS > $output_objdir/$soname.def;
  13033. cat $export_symbols >> $output_objdir/$soname.def;
  13034. fi~
  13035. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13036. else
  13037. ld_shlibs_F77=no
  13038. fi
  13039. ;;
  13040. interix[3-9]*)
  13041. hardcode_direct_F77=no
  13042. hardcode_shlibpath_var_F77=no
  13043. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13044. export_dynamic_flag_spec_F77='${wl}-E'
  13045. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13046. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13047. # default) and relocated if they conflict, which is a slow very memory
  13048. # consuming and fragmenting process. To avoid this, we pick a random,
  13049. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13050. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13051. 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'
  13052. 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'
  13053. ;;
  13054. gnu* | linux* | k*bsd*-gnu)
  13055. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13056. tmp_addflag=
  13057. case $cc_basename,$host_cpu in
  13058. pgcc*) # Portland Group C compiler
  13059. 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'
  13060. tmp_addflag=' $pic_flag'
  13061. ;;
  13062. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13063. 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'
  13064. tmp_addflag=' $pic_flag -Mnomain' ;;
  13065. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13066. tmp_addflag=' -i_dynamic' ;;
  13067. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13068. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13069. ifc* | ifort*) # Intel Fortran compiler
  13070. tmp_addflag=' -nofor_main' ;;
  13071. esac
  13072. case `$CC -V 2>&1 | sed 5q` in
  13073. *Sun\ C*) # Sun C 5.9
  13074. 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'
  13075. tmp_sharedflag='-G' ;;
  13076. *Sun\ F*) # Sun Fortran 8.3
  13077. tmp_sharedflag='-G' ;;
  13078. *)
  13079. tmp_sharedflag='-shared' ;;
  13080. esac
  13081. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13082. if test $supports_anon_versioning = yes; then
  13083. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13084. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13085. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13086. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13087. fi
  13088. else
  13089. ld_shlibs_F77=no
  13090. fi
  13091. ;;
  13092. netbsd*)
  13093. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13094. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13095. wlarc=
  13096. else
  13097. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13098. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13099. fi
  13100. ;;
  13101. solaris*)
  13102. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13103. ld_shlibs_F77=no
  13104. cat <<EOF 1>&2
  13105. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13106. *** create shared libraries on Solaris systems. Therefore, libtool
  13107. *** is disabling shared libraries support. We urge you to upgrade GNU
  13108. *** binutils to release 2.9.1 or newer. Another option is to modify
  13109. *** your PATH or compiler configuration so that the native linker is
  13110. *** used, and then restart.
  13111. EOF
  13112. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13113. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13114. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13115. else
  13116. ld_shlibs_F77=no
  13117. fi
  13118. ;;
  13119. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13120. case `$LD -v 2>&1` in
  13121. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13122. ld_shlibs_F77=no
  13123. cat <<_LT_EOF 1>&2
  13124. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13125. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13126. *** is disabling shared libraries support. We urge you to upgrade GNU
  13127. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13128. *** your PATH or compiler configuration so that the native linker is
  13129. *** used, and then restart.
  13130. _LT_EOF
  13131. ;;
  13132. *)
  13133. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13134. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13135. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13136. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13137. else
  13138. ld_shlibs_F77=no
  13139. fi
  13140. ;;
  13141. esac
  13142. ;;
  13143. sunos4*)
  13144. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13145. wlarc=
  13146. hardcode_direct_F77=yes
  13147. hardcode_shlibpath_var_F77=no
  13148. ;;
  13149. *)
  13150. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13151. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13152. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13153. else
  13154. ld_shlibs_F77=no
  13155. fi
  13156. ;;
  13157. esac
  13158. if test "$ld_shlibs_F77" = no; then
  13159. runpath_var=
  13160. hardcode_libdir_flag_spec_F77=
  13161. export_dynamic_flag_spec_F77=
  13162. whole_archive_flag_spec_F77=
  13163. fi
  13164. else
  13165. # PORTME fill in a description of your system's linker (not GNU ld)
  13166. case $host_os in
  13167. aix3*)
  13168. allow_undefined_flag_F77=unsupported
  13169. always_export_symbols_F77=yes
  13170. 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'
  13171. # Note: this linker hardcodes the directories in LIBPATH if there
  13172. # are no directories specified by -L.
  13173. hardcode_minus_L_F77=yes
  13174. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13175. # Neither direct hardcoding nor static linking is supported with a
  13176. # broken collect2.
  13177. hardcode_direct_F77=unsupported
  13178. fi
  13179. ;;
  13180. aix4* | aix5*)
  13181. if test "$host_cpu" = ia64; then
  13182. # On IA64, the linker does run time linking by default, so we don't
  13183. # have to do anything special.
  13184. aix_use_runtimelinking=no
  13185. exp_sym_flag='-Bexport'
  13186. no_entry_flag=""
  13187. else
  13188. # If we're using GNU nm, then we don't want the "-C" option.
  13189. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13190. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13191. 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'
  13192. else
  13193. 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'
  13194. fi
  13195. aix_use_runtimelinking=no
  13196. # Test if we are trying to use run time linking or normal
  13197. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13198. # need to do runtime linking.
  13199. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13200. for ld_flag in $LDFLAGS; do
  13201. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13202. aix_use_runtimelinking=yes
  13203. break
  13204. fi
  13205. done
  13206. ;;
  13207. esac
  13208. exp_sym_flag='-bexport'
  13209. no_entry_flag='-bnoentry'
  13210. fi
  13211. # When large executables or shared objects are built, AIX ld can
  13212. # have problems creating the table of contents. If linking a library
  13213. # or program results in "error TOC overflow" add -mminimal-toc to
  13214. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13215. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13216. archive_cmds_F77=''
  13217. hardcode_direct_F77=yes
  13218. hardcode_libdir_separator_F77=':'
  13219. link_all_deplibs_F77=yes
  13220. if test "$GCC" = yes; then
  13221. case $host_os in aix4.[012]|aix4.[012].*)
  13222. # We only want to do this on AIX 4.2 and lower, the check
  13223. # below for broken collect2 doesn't work under 4.3+
  13224. collect2name=`${CC} -print-prog-name=collect2`
  13225. if test -f "$collect2name" && \
  13226. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13227. then
  13228. # We have reworked collect2
  13229. :
  13230. else
  13231. # We have old collect2
  13232. hardcode_direct_F77=unsupported
  13233. # It fails to find uninstalled libraries when the uninstalled
  13234. # path is not listed in the libpath. Setting hardcode_minus_L
  13235. # to unsupported forces relinking
  13236. hardcode_minus_L_F77=yes
  13237. hardcode_libdir_flag_spec_F77='-L$libdir'
  13238. hardcode_libdir_separator_F77=
  13239. fi
  13240. ;;
  13241. esac
  13242. shared_flag='-shared'
  13243. if test "$aix_use_runtimelinking" = yes; then
  13244. shared_flag="$shared_flag "'${wl}-G'
  13245. fi
  13246. else
  13247. # not using gcc
  13248. if test "$host_cpu" = ia64; then
  13249. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13250. # chokes on -Wl,-G. The following line is correct:
  13251. shared_flag='-G'
  13252. else
  13253. if test "$aix_use_runtimelinking" = yes; then
  13254. shared_flag='${wl}-G'
  13255. else
  13256. shared_flag='${wl}-bM:SRE'
  13257. fi
  13258. fi
  13259. fi
  13260. # It seems that -bexpall does not export symbols beginning with
  13261. # underscore (_), so it is better to generate a list of symbols to export.
  13262. always_export_symbols_F77=yes
  13263. if test "$aix_use_runtimelinking" = yes; then
  13264. # Warning - without using the other runtime loading flags (-brtl),
  13265. # -berok will link without error, but may produce a broken library.
  13266. allow_undefined_flag_F77='-berok'
  13267. # Determine the default libpath from the value encoded in an empty executable.
  13268. cat >conftest.$ac_ext <<_ACEOF
  13269. program main
  13270. end
  13271. _ACEOF
  13272. rm -f conftest.$ac_objext conftest$ac_exeext
  13273. if { (ac_try="$ac_link"
  13274. case "(($ac_try" in
  13275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13276. *) ac_try_echo=$ac_try;;
  13277. esac
  13278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13279. (eval "$ac_link") 2>conftest.er1
  13280. ac_status=$?
  13281. grep -v '^ *+' conftest.er1 >conftest.err
  13282. rm -f conftest.er1
  13283. cat conftest.err >&5
  13284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13285. (exit $ac_status); } && {
  13286. test -z "$ac_f77_werror_flag" ||
  13287. test ! -s conftest.err
  13288. } && test -s conftest$ac_exeext &&
  13289. $as_test_x conftest$ac_exeext; then
  13290. lt_aix_libpath_sed='
  13291. /Import File Strings/,/^$/ {
  13292. /^0/ {
  13293. s/^0 *\(.*\)$/\1/
  13294. p
  13295. }
  13296. }'
  13297. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13298. # Check for a 64-bit object if we didn't find anything.
  13299. if test -z "$aix_libpath"; then
  13300. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13301. fi
  13302. else
  13303. echo "$as_me: failed program was:" >&5
  13304. sed 's/^/| /' conftest.$ac_ext >&5
  13305. fi
  13306. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13307. conftest$ac_exeext conftest.$ac_ext
  13308. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13309. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13310. 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"
  13311. else
  13312. if test "$host_cpu" = ia64; then
  13313. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13314. allow_undefined_flag_F77="-z nodefs"
  13315. 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"
  13316. else
  13317. # Determine the default libpath from the value encoded in an empty executable.
  13318. cat >conftest.$ac_ext <<_ACEOF
  13319. program main
  13320. end
  13321. _ACEOF
  13322. rm -f conftest.$ac_objext conftest$ac_exeext
  13323. if { (ac_try="$ac_link"
  13324. case "(($ac_try" in
  13325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13326. *) ac_try_echo=$ac_try;;
  13327. esac
  13328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13329. (eval "$ac_link") 2>conftest.er1
  13330. ac_status=$?
  13331. grep -v '^ *+' conftest.er1 >conftest.err
  13332. rm -f conftest.er1
  13333. cat conftest.err >&5
  13334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13335. (exit $ac_status); } && {
  13336. test -z "$ac_f77_werror_flag" ||
  13337. test ! -s conftest.err
  13338. } && test -s conftest$ac_exeext &&
  13339. $as_test_x conftest$ac_exeext; then
  13340. lt_aix_libpath_sed='
  13341. /Import File Strings/,/^$/ {
  13342. /^0/ {
  13343. s/^0 *\(.*\)$/\1/
  13344. p
  13345. }
  13346. }'
  13347. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13348. # Check for a 64-bit object if we didn't find anything.
  13349. if test -z "$aix_libpath"; then
  13350. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13351. fi
  13352. else
  13353. echo "$as_me: failed program was:" >&5
  13354. sed 's/^/| /' conftest.$ac_ext >&5
  13355. fi
  13356. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13357. conftest$ac_exeext conftest.$ac_ext
  13358. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13359. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13360. # Warning - without using the other run time loading flags,
  13361. # -berok will link without error, but may produce a broken library.
  13362. no_undefined_flag_F77=' ${wl}-bernotok'
  13363. allow_undefined_flag_F77=' ${wl}-berok'
  13364. # Exported symbols can be pulled into shared objects from archives
  13365. whole_archive_flag_spec_F77='$convenience'
  13366. archive_cmds_need_lc_F77=yes
  13367. # This is similar to how AIX traditionally builds its shared libraries.
  13368. 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'
  13369. fi
  13370. fi
  13371. ;;
  13372. amigaos*)
  13373. 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)'
  13374. hardcode_libdir_flag_spec_F77='-L$libdir'
  13375. hardcode_minus_L_F77=yes
  13376. # see comment about different semantics on the GNU ld section
  13377. ld_shlibs_F77=no
  13378. ;;
  13379. bsdi[45]*)
  13380. export_dynamic_flag_spec_F77=-rdynamic
  13381. ;;
  13382. cygwin* | mingw* | pw32*)
  13383. # When not using gcc, we currently assume that we are using
  13384. # Microsoft Visual C++.
  13385. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13386. # no search path for DLLs.
  13387. hardcode_libdir_flag_spec_F77=' '
  13388. allow_undefined_flag_F77=unsupported
  13389. # Tell ltmain to make .lib files, not .a files.
  13390. libext=lib
  13391. # Tell ltmain to make .dll files, not .so files.
  13392. shrext_cmds=".dll"
  13393. # FIXME: Setting linknames here is a bad hack.
  13394. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13395. # The linker will automatically build a .lib file if we build a DLL.
  13396. old_archive_From_new_cmds_F77='true'
  13397. # FIXME: Should let the user specify the lib program.
  13398. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13399. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13400. enable_shared_with_static_runtimes_F77=yes
  13401. ;;
  13402. darwin* | rhapsody*)
  13403. case $host_os in
  13404. rhapsody* | darwin1.[012])
  13405. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13406. ;;
  13407. *) # Darwin 1.3 on
  13408. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13409. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13410. else
  13411. case ${MACOSX_DEPLOYMENT_TARGET} in
  13412. 10.[012])
  13413. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13414. ;;
  13415. 10.*)
  13416. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13417. ;;
  13418. esac
  13419. fi
  13420. ;;
  13421. esac
  13422. archive_cmds_need_lc_F77=no
  13423. hardcode_direct_F77=no
  13424. hardcode_automatic_F77=yes
  13425. hardcode_shlibpath_var_F77=unsupported
  13426. whole_archive_flag_spec_F77=''
  13427. link_all_deplibs_F77=yes
  13428. if test "$GCC" = yes ; then
  13429. output_verbose_link_cmd='echo'
  13430. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13431. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13432. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13433. 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}'
  13434. 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}'
  13435. else
  13436. case $cc_basename in
  13437. xlc*)
  13438. output_verbose_link_cmd='echo'
  13439. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13440. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13441. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13442. 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}'
  13443. 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}'
  13444. ;;
  13445. *)
  13446. ld_shlibs_F77=no
  13447. ;;
  13448. esac
  13449. fi
  13450. ;;
  13451. dgux*)
  13452. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13453. hardcode_libdir_flag_spec_F77='-L$libdir'
  13454. hardcode_shlibpath_var_F77=no
  13455. ;;
  13456. freebsd1*)
  13457. ld_shlibs_F77=no
  13458. ;;
  13459. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13460. # support. Future versions do this automatically, but an explicit c++rt0.o
  13461. # does not break anything, and helps significantly (at the cost of a little
  13462. # extra space).
  13463. freebsd2.2*)
  13464. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13465. hardcode_libdir_flag_spec_F77='-R$libdir'
  13466. hardcode_direct_F77=yes
  13467. hardcode_shlibpath_var_F77=no
  13468. ;;
  13469. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13470. freebsd2*)
  13471. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13472. hardcode_direct_F77=yes
  13473. hardcode_minus_L_F77=yes
  13474. hardcode_shlibpath_var_F77=no
  13475. ;;
  13476. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13477. freebsd* | dragonfly*)
  13478. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13479. hardcode_libdir_flag_spec_F77='-R$libdir'
  13480. hardcode_direct_F77=yes
  13481. hardcode_shlibpath_var_F77=no
  13482. ;;
  13483. hpux9*)
  13484. if test "$GCC" = yes; then
  13485. 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'
  13486. else
  13487. 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'
  13488. fi
  13489. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13490. hardcode_libdir_separator_F77=:
  13491. hardcode_direct_F77=yes
  13492. # hardcode_minus_L: Not really in the search PATH,
  13493. # but as the default location of the library.
  13494. hardcode_minus_L_F77=yes
  13495. export_dynamic_flag_spec_F77='${wl}-E'
  13496. ;;
  13497. hpux10*)
  13498. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13499. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13500. else
  13501. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13502. fi
  13503. if test "$with_gnu_ld" = no; then
  13504. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13505. hardcode_libdir_separator_F77=:
  13506. hardcode_direct_F77=yes
  13507. export_dynamic_flag_spec_F77='${wl}-E'
  13508. # hardcode_minus_L: Not really in the search PATH,
  13509. # but as the default location of the library.
  13510. hardcode_minus_L_F77=yes
  13511. fi
  13512. ;;
  13513. hpux11*)
  13514. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13515. case $host_cpu in
  13516. hppa*64*)
  13517. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13518. ;;
  13519. ia64*)
  13520. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13521. ;;
  13522. *)
  13523. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13524. ;;
  13525. esac
  13526. else
  13527. case $host_cpu in
  13528. hppa*64*)
  13529. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13530. ;;
  13531. ia64*)
  13532. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13533. ;;
  13534. *)
  13535. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13536. ;;
  13537. esac
  13538. fi
  13539. if test "$with_gnu_ld" = no; then
  13540. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13541. hardcode_libdir_separator_F77=:
  13542. case $host_cpu in
  13543. hppa*64*|ia64*)
  13544. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13545. hardcode_direct_F77=no
  13546. hardcode_shlibpath_var_F77=no
  13547. ;;
  13548. *)
  13549. hardcode_direct_F77=yes
  13550. export_dynamic_flag_spec_F77='${wl}-E'
  13551. # hardcode_minus_L: Not really in the search PATH,
  13552. # but as the default location of the library.
  13553. hardcode_minus_L_F77=yes
  13554. ;;
  13555. esac
  13556. fi
  13557. ;;
  13558. irix5* | irix6* | nonstopux*)
  13559. if test "$GCC" = yes; then
  13560. 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'
  13561. else
  13562. 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'
  13563. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13564. fi
  13565. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13566. hardcode_libdir_separator_F77=:
  13567. link_all_deplibs_F77=yes
  13568. ;;
  13569. netbsd*)
  13570. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13571. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13572. else
  13573. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13574. fi
  13575. hardcode_libdir_flag_spec_F77='-R$libdir'
  13576. hardcode_direct_F77=yes
  13577. hardcode_shlibpath_var_F77=no
  13578. ;;
  13579. newsos6)
  13580. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13581. hardcode_direct_F77=yes
  13582. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13583. hardcode_libdir_separator_F77=:
  13584. hardcode_shlibpath_var_F77=no
  13585. ;;
  13586. openbsd*)
  13587. if test -f /usr/libexec/ld.so; then
  13588. hardcode_direct_F77=yes
  13589. hardcode_shlibpath_var_F77=no
  13590. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13591. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13592. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13593. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13594. export_dynamic_flag_spec_F77='${wl}-E'
  13595. else
  13596. case $host_os in
  13597. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13598. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13599. hardcode_libdir_flag_spec_F77='-R$libdir'
  13600. ;;
  13601. *)
  13602. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13603. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13604. ;;
  13605. esac
  13606. fi
  13607. else
  13608. ld_shlibs_F77=no
  13609. fi
  13610. ;;
  13611. os2*)
  13612. hardcode_libdir_flag_spec_F77='-L$libdir'
  13613. hardcode_minus_L_F77=yes
  13614. allow_undefined_flag_F77=unsupported
  13615. 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'
  13616. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13617. ;;
  13618. osf3*)
  13619. if test "$GCC" = yes; then
  13620. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13621. 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'
  13622. else
  13623. allow_undefined_flag_F77=' -expect_unresolved \*'
  13624. 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'
  13625. fi
  13626. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13627. hardcode_libdir_separator_F77=:
  13628. ;;
  13629. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13630. if test "$GCC" = yes; then
  13631. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13632. 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'
  13633. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13634. else
  13635. allow_undefined_flag_F77=' -expect_unresolved \*'
  13636. 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'
  13637. 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~
  13638. $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'
  13639. # Both c and cxx compiler support -rpath directly
  13640. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13641. fi
  13642. hardcode_libdir_separator_F77=:
  13643. ;;
  13644. solaris*)
  13645. no_undefined_flag_F77=' -z text'
  13646. if test "$GCC" = yes; then
  13647. wlarc='${wl}'
  13648. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13650. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13651. else
  13652. wlarc=''
  13653. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13654. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13655. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13656. fi
  13657. hardcode_libdir_flag_spec_F77='-R$libdir'
  13658. hardcode_shlibpath_var_F77=no
  13659. case $host_os in
  13660. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13661. *)
  13662. # The compiler driver will combine and reorder linker options,
  13663. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13664. # but is careful enough not to reorder.
  13665. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13666. if test "$GCC" = yes; then
  13667. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13668. else
  13669. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13670. fi
  13671. ;;
  13672. esac
  13673. link_all_deplibs_F77=yes
  13674. ;;
  13675. sunos4*)
  13676. if test "x$host_vendor" = xsequent; then
  13677. # Use $CC to link under sequent, because it throws in some extra .o
  13678. # files that make .init and .fini sections work.
  13679. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13680. else
  13681. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13682. fi
  13683. hardcode_libdir_flag_spec_F77='-L$libdir'
  13684. hardcode_direct_F77=yes
  13685. hardcode_minus_L_F77=yes
  13686. hardcode_shlibpath_var_F77=no
  13687. ;;
  13688. sysv4)
  13689. case $host_vendor in
  13690. sni)
  13691. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13692. hardcode_direct_F77=yes # is this really true???
  13693. ;;
  13694. siemens)
  13695. ## LD is ld it makes a PLAMLIB
  13696. ## CC just makes a GrossModule.
  13697. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13698. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13699. hardcode_direct_F77=no
  13700. ;;
  13701. motorola)
  13702. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13703. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13704. ;;
  13705. esac
  13706. runpath_var='LD_RUN_PATH'
  13707. hardcode_shlibpath_var_F77=no
  13708. ;;
  13709. sysv4.3*)
  13710. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13711. hardcode_shlibpath_var_F77=no
  13712. export_dynamic_flag_spec_F77='-Bexport'
  13713. ;;
  13714. sysv4*MP*)
  13715. if test -d /usr/nec; then
  13716. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13717. hardcode_shlibpath_var_F77=no
  13718. runpath_var=LD_RUN_PATH
  13719. hardcode_runpath_var=yes
  13720. ld_shlibs_F77=yes
  13721. fi
  13722. ;;
  13723. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13724. no_undefined_flag_F77='${wl}-z,text'
  13725. archive_cmds_need_lc_F77=no
  13726. hardcode_shlibpath_var_F77=no
  13727. runpath_var='LD_RUN_PATH'
  13728. if test "$GCC" = yes; then
  13729. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13730. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13731. else
  13732. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13733. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13734. fi
  13735. ;;
  13736. sysv5* | sco3.2v5* | sco5v6*)
  13737. # Note: We can NOT use -z defs as we might desire, because we do not
  13738. # link with -lc, and that would cause any symbols used from libc to
  13739. # always be unresolved, which means just about no library would
  13740. # ever link correctly. If we're not using GNU ld we use -z text
  13741. # though, which does catch some bad symbols but isn't as heavy-handed
  13742. # as -z defs.
  13743. no_undefined_flag_F77='${wl}-z,text'
  13744. allow_undefined_flag_F77='${wl}-z,nodefs'
  13745. archive_cmds_need_lc_F77=no
  13746. hardcode_shlibpath_var_F77=no
  13747. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13748. hardcode_libdir_separator_F77=':'
  13749. link_all_deplibs_F77=yes
  13750. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13751. runpath_var='LD_RUN_PATH'
  13752. if test "$GCC" = yes; then
  13753. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13754. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13755. else
  13756. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13757. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13758. fi
  13759. ;;
  13760. uts4*)
  13761. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13762. hardcode_libdir_flag_spec_F77='-L$libdir'
  13763. hardcode_shlibpath_var_F77=no
  13764. ;;
  13765. *)
  13766. ld_shlibs_F77=no
  13767. ;;
  13768. esac
  13769. fi
  13770. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13771. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13772. test "$ld_shlibs_F77" = no && can_build_shared=no
  13773. #
  13774. # Do we need to explicitly link libc?
  13775. #
  13776. case "x$archive_cmds_need_lc_F77" in
  13777. x|xyes)
  13778. # Assume -lc should be added
  13779. archive_cmds_need_lc_F77=yes
  13780. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13781. case $archive_cmds_F77 in
  13782. *'~'*)
  13783. # FIXME: we may have to deal with multi-command sequences.
  13784. ;;
  13785. '$CC '*)
  13786. # Test whether the compiler implicitly links with -lc since on some
  13787. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13788. # to ld, don't add -lc before -lgcc.
  13789. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13790. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13791. $rm conftest*
  13792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13793. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13794. (eval $ac_compile) 2>&5
  13795. ac_status=$?
  13796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13797. (exit $ac_status); } 2>conftest.err; then
  13798. soname=conftest
  13799. lib=conftest
  13800. libobjs=conftest.$ac_objext
  13801. deplibs=
  13802. wl=$lt_prog_compiler_wl_F77
  13803. pic_flag=$lt_prog_compiler_pic_F77
  13804. compiler_flags=-v
  13805. linker_flags=-v
  13806. verstring=
  13807. output_objdir=.
  13808. libname=conftest
  13809. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13810. allow_undefined_flag_F77=
  13811. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13812. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13813. ac_status=$?
  13814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13815. (exit $ac_status); }
  13816. then
  13817. archive_cmds_need_lc_F77=no
  13818. else
  13819. archive_cmds_need_lc_F77=yes
  13820. fi
  13821. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13822. else
  13823. cat conftest.err 1>&5
  13824. fi
  13825. $rm conftest*
  13826. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13827. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13828. ;;
  13829. esac
  13830. fi
  13831. ;;
  13832. esac
  13833. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13834. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13835. library_names_spec=
  13836. libname_spec='lib$name'
  13837. soname_spec=
  13838. shrext_cmds=".so"
  13839. postinstall_cmds=
  13840. postuninstall_cmds=
  13841. finish_cmds=
  13842. finish_eval=
  13843. shlibpath_var=
  13844. shlibpath_overrides_runpath=unknown
  13845. version_type=none
  13846. dynamic_linker="$host_os ld.so"
  13847. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13848. need_lib_prefix=unknown
  13849. hardcode_into_libs=no
  13850. # when you set need_version to no, make sure it does not cause -set_version
  13851. # flags to be left without arguments
  13852. need_version=unknown
  13853. case $host_os in
  13854. aix3*)
  13855. version_type=linux
  13856. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13857. shlibpath_var=LIBPATH
  13858. # AIX 3 has no versioning support, so we append a major version to the name.
  13859. soname_spec='${libname}${release}${shared_ext}$major'
  13860. ;;
  13861. aix4* | aix5*)
  13862. version_type=linux
  13863. need_lib_prefix=no
  13864. need_version=no
  13865. hardcode_into_libs=yes
  13866. if test "$host_cpu" = ia64; then
  13867. # AIX 5 supports IA64
  13868. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13869. shlibpath_var=LD_LIBRARY_PATH
  13870. else
  13871. # With GCC up to 2.95.x, collect2 would create an import file
  13872. # for dependence libraries. The import file would start with
  13873. # the line `#! .'. This would cause the generated library to
  13874. # depend on `.', always an invalid library. This was fixed in
  13875. # development snapshots of GCC prior to 3.0.
  13876. case $host_os in
  13877. aix4 | aix4.[01] | aix4.[01].*)
  13878. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13879. echo ' yes '
  13880. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13881. :
  13882. else
  13883. can_build_shared=no
  13884. fi
  13885. ;;
  13886. esac
  13887. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13888. # soname into executable. Probably we can add versioning support to
  13889. # collect2, so additional links can be useful in future.
  13890. if test "$aix_use_runtimelinking" = yes; then
  13891. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13892. # instead of lib<name>.a to let people know that these are not
  13893. # typical AIX shared libraries.
  13894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13895. else
  13896. # We preserve .a as extension for shared libraries through AIX4.2
  13897. # and later when we are not doing run time linking.
  13898. library_names_spec='${libname}${release}.a $libname.a'
  13899. soname_spec='${libname}${release}${shared_ext}$major'
  13900. fi
  13901. shlibpath_var=LIBPATH
  13902. fi
  13903. ;;
  13904. amigaos*)
  13905. library_names_spec='$libname.ixlibrary $libname.a'
  13906. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13907. 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'
  13908. ;;
  13909. beos*)
  13910. library_names_spec='${libname}${shared_ext}'
  13911. dynamic_linker="$host_os ld.so"
  13912. shlibpath_var=LIBRARY_PATH
  13913. ;;
  13914. bsdi[45]*)
  13915. version_type=linux
  13916. need_version=no
  13917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13918. soname_spec='${libname}${release}${shared_ext}$major'
  13919. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13920. shlibpath_var=LD_LIBRARY_PATH
  13921. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13922. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13923. # the default ld.so.conf also contains /usr/contrib/lib and
  13924. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13925. # libtool to hard-code these into programs
  13926. ;;
  13927. cygwin* | mingw* | pw32*)
  13928. version_type=windows
  13929. shrext_cmds=".dll"
  13930. need_version=no
  13931. need_lib_prefix=no
  13932. case $GCC,$host_os in
  13933. yes,cygwin* | yes,mingw* | yes,pw32*)
  13934. library_names_spec='$libname.dll.a'
  13935. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13936. postinstall_cmds='base_file=`basename \${file}`~
  13937. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13938. dldir=$destdir/`dirname \$dlpath`~
  13939. test -d \$dldir || mkdir -p \$dldir~
  13940. $install_prog $dir/$dlname \$dldir/$dlname~
  13941. chmod a+x \$dldir/$dlname'
  13942. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13943. dlpath=$dir/\$dldll~
  13944. $rm \$dlpath'
  13945. shlibpath_overrides_runpath=yes
  13946. case $host_os in
  13947. cygwin*)
  13948. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13949. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13950. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13951. ;;
  13952. mingw*)
  13953. # MinGW DLLs use traditional 'lib' prefix
  13954. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13955. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13956. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13957. # It is most probably a Windows format PATH printed by
  13958. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13959. # path with ; separators, and with drive letters. We can handle the
  13960. # drive letters (cygwin fileutils understands them), so leave them,
  13961. # especially as we might pass files found there to a mingw objdump,
  13962. # which wouldn't understand a cygwinified path. Ahh.
  13963. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13964. else
  13965. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13966. fi
  13967. ;;
  13968. pw32*)
  13969. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13970. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13971. ;;
  13972. esac
  13973. ;;
  13974. *)
  13975. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13976. ;;
  13977. esac
  13978. dynamic_linker='Win32 ld.exe'
  13979. # FIXME: first we should search . and the directory the executable is in
  13980. shlibpath_var=PATH
  13981. ;;
  13982. darwin* | rhapsody*)
  13983. dynamic_linker="$host_os dyld"
  13984. version_type=darwin
  13985. need_lib_prefix=no
  13986. need_version=no
  13987. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13988. soname_spec='${libname}${release}${major}$shared_ext'
  13989. shlibpath_overrides_runpath=yes
  13990. shlibpath_var=DYLD_LIBRARY_PATH
  13991. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13992. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13993. ;;
  13994. dgux*)
  13995. version_type=linux
  13996. need_lib_prefix=no
  13997. need_version=no
  13998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13999. soname_spec='${libname}${release}${shared_ext}$major'
  14000. shlibpath_var=LD_LIBRARY_PATH
  14001. ;;
  14002. freebsd1*)
  14003. dynamic_linker=no
  14004. ;;
  14005. freebsd* | dragonfly*)
  14006. # DragonFly does not have aout. When/if they implement a new
  14007. # versioning mechanism, adjust this.
  14008. if test -x /usr/bin/objformat; then
  14009. objformat=`/usr/bin/objformat`
  14010. else
  14011. case $host_os in
  14012. freebsd[123]*) objformat=aout ;;
  14013. *) objformat=elf ;;
  14014. esac
  14015. fi
  14016. version_type=freebsd-$objformat
  14017. case $version_type in
  14018. freebsd-elf*)
  14019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14020. need_version=no
  14021. need_lib_prefix=no
  14022. ;;
  14023. freebsd-*)
  14024. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14025. need_version=yes
  14026. ;;
  14027. esac
  14028. shlibpath_var=LD_LIBRARY_PATH
  14029. case $host_os in
  14030. freebsd2*)
  14031. shlibpath_overrides_runpath=yes
  14032. ;;
  14033. freebsd3.[01]* | freebsdelf3.[01]*)
  14034. shlibpath_overrides_runpath=yes
  14035. hardcode_into_libs=yes
  14036. ;;
  14037. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14038. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14039. shlibpath_overrides_runpath=no
  14040. hardcode_into_libs=yes
  14041. ;;
  14042. *) # from 4.6 on, and DragonFly
  14043. shlibpath_overrides_runpath=yes
  14044. hardcode_into_libs=yes
  14045. ;;
  14046. esac
  14047. ;;
  14048. gnu*)
  14049. version_type=linux
  14050. need_lib_prefix=no
  14051. need_version=no
  14052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14053. soname_spec='${libname}${release}${shared_ext}$major'
  14054. shlibpath_var=LD_LIBRARY_PATH
  14055. hardcode_into_libs=yes
  14056. ;;
  14057. hpux9* | hpux10* | hpux11*)
  14058. # Give a soname corresponding to the major version so that dld.sl refuses to
  14059. # link against other versions.
  14060. version_type=sunos
  14061. need_lib_prefix=no
  14062. need_version=no
  14063. case $host_cpu in
  14064. ia64*)
  14065. shrext_cmds='.so'
  14066. hardcode_into_libs=yes
  14067. dynamic_linker="$host_os dld.so"
  14068. shlibpath_var=LD_LIBRARY_PATH
  14069. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14071. soname_spec='${libname}${release}${shared_ext}$major'
  14072. if test "X$HPUX_IA64_MODE" = X32; then
  14073. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14074. else
  14075. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14076. fi
  14077. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14078. ;;
  14079. hppa*64*)
  14080. shrext_cmds='.sl'
  14081. hardcode_into_libs=yes
  14082. dynamic_linker="$host_os dld.sl"
  14083. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14084. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14086. soname_spec='${libname}${release}${shared_ext}$major'
  14087. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14088. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14089. ;;
  14090. *)
  14091. shrext_cmds='.sl'
  14092. dynamic_linker="$host_os dld.sl"
  14093. shlibpath_var=SHLIB_PATH
  14094. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14096. soname_spec='${libname}${release}${shared_ext}$major'
  14097. ;;
  14098. esac
  14099. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14100. postinstall_cmds='chmod 555 $lib'
  14101. ;;
  14102. interix[3-9]*)
  14103. version_type=linux
  14104. need_lib_prefix=no
  14105. need_version=no
  14106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14107. soname_spec='${libname}${release}${shared_ext}$major'
  14108. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14109. shlibpath_var=LD_LIBRARY_PATH
  14110. shlibpath_overrides_runpath=no
  14111. hardcode_into_libs=yes
  14112. ;;
  14113. irix5* | irix6* | nonstopux*)
  14114. case $host_os in
  14115. nonstopux*) version_type=nonstopux ;;
  14116. *)
  14117. if test "$lt_cv_prog_gnu_ld" = yes; then
  14118. version_type=linux
  14119. else
  14120. version_type=irix
  14121. fi ;;
  14122. esac
  14123. need_lib_prefix=no
  14124. need_version=no
  14125. soname_spec='${libname}${release}${shared_ext}$major'
  14126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14127. case $host_os in
  14128. irix5* | nonstopux*)
  14129. libsuff= shlibsuff=
  14130. ;;
  14131. *)
  14132. case $LD in # libtool.m4 will add one of these switches to LD
  14133. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14134. libsuff= shlibsuff= libmagic=32-bit;;
  14135. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14136. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14137. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14138. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14139. *) libsuff= shlibsuff= libmagic=never-match;;
  14140. esac
  14141. ;;
  14142. esac
  14143. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14144. shlibpath_overrides_runpath=no
  14145. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14146. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14147. hardcode_into_libs=yes
  14148. ;;
  14149. # No shared lib support for Linux oldld, aout, or coff.
  14150. linux*oldld* | linux*aout* | linux*coff*)
  14151. dynamic_linker=no
  14152. ;;
  14153. # This must be Linux ELF.
  14154. linux* | k*bsd*-gnu)
  14155. version_type=linux
  14156. need_lib_prefix=no
  14157. need_version=no
  14158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14159. soname_spec='${libname}${release}${shared_ext}$major'
  14160. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14161. shlibpath_var=LD_LIBRARY_PATH
  14162. shlibpath_overrides_runpath=no
  14163. # This implies no fast_install, which is unacceptable.
  14164. # Some rework will be needed to allow for fast_install
  14165. # before this can be enabled.
  14166. hardcode_into_libs=yes
  14167. # Append ld.so.conf contents to the search path
  14168. if test -f /etc/ld.so.conf; then
  14169. 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' ' '`
  14170. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14171. fi
  14172. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14173. # powerpc, because MkLinux only supported shared libraries with the
  14174. # GNU dynamic linker. Since this was broken with cross compilers,
  14175. # most powerpc-linux boxes support dynamic linking these days and
  14176. # people can always --disable-shared, the test was removed, and we
  14177. # assume the GNU/Linux dynamic linker is in use.
  14178. dynamic_linker='GNU/Linux ld.so'
  14179. ;;
  14180. netbsd*)
  14181. version_type=sunos
  14182. need_lib_prefix=no
  14183. need_version=no
  14184. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14186. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14187. dynamic_linker='NetBSD (a.out) ld.so'
  14188. else
  14189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14190. soname_spec='${libname}${release}${shared_ext}$major'
  14191. dynamic_linker='NetBSD ld.elf_so'
  14192. fi
  14193. shlibpath_var=LD_LIBRARY_PATH
  14194. shlibpath_overrides_runpath=yes
  14195. hardcode_into_libs=yes
  14196. ;;
  14197. newsos6)
  14198. version_type=linux
  14199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14200. shlibpath_var=LD_LIBRARY_PATH
  14201. shlibpath_overrides_runpath=yes
  14202. ;;
  14203. nto-qnx*)
  14204. version_type=linux
  14205. need_lib_prefix=no
  14206. need_version=no
  14207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14208. soname_spec='${libname}${release}${shared_ext}$major'
  14209. shlibpath_var=LD_LIBRARY_PATH
  14210. shlibpath_overrides_runpath=yes
  14211. ;;
  14212. openbsd*)
  14213. version_type=sunos
  14214. sys_lib_dlsearch_path_spec="/usr/lib"
  14215. need_lib_prefix=no
  14216. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14217. case $host_os in
  14218. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14219. *) need_version=no ;;
  14220. esac
  14221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14222. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14223. shlibpath_var=LD_LIBRARY_PATH
  14224. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14225. case $host_os in
  14226. openbsd2.[89] | openbsd2.[89].*)
  14227. shlibpath_overrides_runpath=no
  14228. ;;
  14229. *)
  14230. shlibpath_overrides_runpath=yes
  14231. ;;
  14232. esac
  14233. else
  14234. shlibpath_overrides_runpath=yes
  14235. fi
  14236. ;;
  14237. os2*)
  14238. libname_spec='$name'
  14239. shrext_cmds=".dll"
  14240. need_lib_prefix=no
  14241. library_names_spec='$libname${shared_ext} $libname.a'
  14242. dynamic_linker='OS/2 ld.exe'
  14243. shlibpath_var=LIBPATH
  14244. ;;
  14245. osf3* | osf4* | osf5*)
  14246. version_type=osf
  14247. need_lib_prefix=no
  14248. need_version=no
  14249. soname_spec='${libname}${release}${shared_ext}$major'
  14250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14251. shlibpath_var=LD_LIBRARY_PATH
  14252. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14253. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14254. ;;
  14255. rdos*)
  14256. dynamic_linker=no
  14257. ;;
  14258. solaris*)
  14259. version_type=linux
  14260. need_lib_prefix=no
  14261. need_version=no
  14262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14263. soname_spec='${libname}${release}${shared_ext}$major'
  14264. shlibpath_var=LD_LIBRARY_PATH
  14265. shlibpath_overrides_runpath=yes
  14266. hardcode_into_libs=yes
  14267. # ldd complains unless libraries are executable
  14268. postinstall_cmds='chmod +x $lib'
  14269. ;;
  14270. sunos4*)
  14271. version_type=sunos
  14272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14273. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14274. shlibpath_var=LD_LIBRARY_PATH
  14275. shlibpath_overrides_runpath=yes
  14276. if test "$with_gnu_ld" = yes; then
  14277. need_lib_prefix=no
  14278. fi
  14279. need_version=yes
  14280. ;;
  14281. sysv4 | sysv4.3*)
  14282. version_type=linux
  14283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14284. soname_spec='${libname}${release}${shared_ext}$major'
  14285. shlibpath_var=LD_LIBRARY_PATH
  14286. case $host_vendor in
  14287. sni)
  14288. shlibpath_overrides_runpath=no
  14289. need_lib_prefix=no
  14290. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14291. runpath_var=LD_RUN_PATH
  14292. ;;
  14293. siemens)
  14294. need_lib_prefix=no
  14295. ;;
  14296. motorola)
  14297. need_lib_prefix=no
  14298. need_version=no
  14299. shlibpath_overrides_runpath=no
  14300. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14301. ;;
  14302. esac
  14303. ;;
  14304. sysv4*MP*)
  14305. if test -d /usr/nec ;then
  14306. version_type=linux
  14307. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14308. soname_spec='$libname${shared_ext}.$major'
  14309. shlibpath_var=LD_LIBRARY_PATH
  14310. fi
  14311. ;;
  14312. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14313. version_type=freebsd-elf
  14314. need_lib_prefix=no
  14315. need_version=no
  14316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14317. soname_spec='${libname}${release}${shared_ext}$major'
  14318. shlibpath_var=LD_LIBRARY_PATH
  14319. hardcode_into_libs=yes
  14320. if test "$with_gnu_ld" = yes; then
  14321. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14322. shlibpath_overrides_runpath=no
  14323. else
  14324. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14325. shlibpath_overrides_runpath=yes
  14326. case $host_os in
  14327. sco3.2v5*)
  14328. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14329. ;;
  14330. esac
  14331. fi
  14332. sys_lib_dlsearch_path_spec='/usr/lib'
  14333. ;;
  14334. uts4*)
  14335. version_type=linux
  14336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14337. soname_spec='${libname}${release}${shared_ext}$major'
  14338. shlibpath_var=LD_LIBRARY_PATH
  14339. ;;
  14340. *)
  14341. dynamic_linker=no
  14342. ;;
  14343. esac
  14344. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14345. echo "${ECHO_T}$dynamic_linker" >&6; }
  14346. test "$dynamic_linker" = no && can_build_shared=no
  14347. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14348. if test "$GCC" = yes; then
  14349. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14350. fi
  14351. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14352. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14353. hardcode_action_F77=
  14354. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14355. test -n "$runpath_var_F77" || \
  14356. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14357. # We can hardcode non-existant directories.
  14358. if test "$hardcode_direct_F77" != no &&
  14359. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14360. # have to relink, otherwise we might link with an installed library
  14361. # when we should be linking with a yet-to-be-installed one
  14362. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14363. test "$hardcode_minus_L_F77" != no; then
  14364. # Linking always hardcodes the temporary library directory.
  14365. hardcode_action_F77=relink
  14366. else
  14367. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14368. hardcode_action_F77=immediate
  14369. fi
  14370. else
  14371. # We cannot hardcode anything, or else we can only hardcode existing
  14372. # directories.
  14373. hardcode_action_F77=unsupported
  14374. fi
  14375. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14376. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14377. if test "$hardcode_action_F77" = relink; then
  14378. # Fast installation is not supported
  14379. enable_fast_install=no
  14380. elif test "$shlibpath_overrides_runpath" = yes ||
  14381. test "$enable_shared" = no; then
  14382. # Fast installation is not necessary
  14383. enable_fast_install=needless
  14384. fi
  14385. # The else clause should only fire when bootstrapping the
  14386. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14387. # with your package, and you will get complaints that there are
  14388. # no rules to generate ltmain.sh.
  14389. if test -f "$ltmain"; then
  14390. # See if we are running on zsh, and set the options which allow our commands through
  14391. # without removal of \ escapes.
  14392. if test -n "${ZSH_VERSION+set}" ; then
  14393. setopt NO_GLOB_SUBST
  14394. fi
  14395. # Now quote all the things that may contain metacharacters while being
  14396. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14397. # variables and quote the copies for generation of the libtool script.
  14398. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14399. SED SHELL STRIP \
  14400. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14401. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14402. deplibs_check_method reload_flag reload_cmds need_locks \
  14403. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14404. lt_cv_sys_global_symbol_to_c_name_address \
  14405. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14406. old_postinstall_cmds old_postuninstall_cmds \
  14407. compiler_F77 \
  14408. CC_F77 \
  14409. LD_F77 \
  14410. lt_prog_compiler_wl_F77 \
  14411. lt_prog_compiler_pic_F77 \
  14412. lt_prog_compiler_static_F77 \
  14413. lt_prog_compiler_no_builtin_flag_F77 \
  14414. export_dynamic_flag_spec_F77 \
  14415. thread_safe_flag_spec_F77 \
  14416. whole_archive_flag_spec_F77 \
  14417. enable_shared_with_static_runtimes_F77 \
  14418. old_archive_cmds_F77 \
  14419. old_archive_from_new_cmds_F77 \
  14420. predep_objects_F77 \
  14421. postdep_objects_F77 \
  14422. predeps_F77 \
  14423. postdeps_F77 \
  14424. compiler_lib_search_path_F77 \
  14425. archive_cmds_F77 \
  14426. archive_expsym_cmds_F77 \
  14427. postinstall_cmds_F77 \
  14428. postuninstall_cmds_F77 \
  14429. old_archive_from_expsyms_cmds_F77 \
  14430. allow_undefined_flag_F77 \
  14431. no_undefined_flag_F77 \
  14432. export_symbols_cmds_F77 \
  14433. hardcode_libdir_flag_spec_F77 \
  14434. hardcode_libdir_flag_spec_ld_F77 \
  14435. hardcode_libdir_separator_F77 \
  14436. hardcode_automatic_F77 \
  14437. module_cmds_F77 \
  14438. module_expsym_cmds_F77 \
  14439. lt_cv_prog_compiler_c_o_F77 \
  14440. fix_srcfile_path_F77 \
  14441. exclude_expsyms_F77 \
  14442. include_expsyms_F77; do
  14443. case $var in
  14444. old_archive_cmds_F77 | \
  14445. old_archive_from_new_cmds_F77 | \
  14446. archive_cmds_F77 | \
  14447. archive_expsym_cmds_F77 | \
  14448. module_cmds_F77 | \
  14449. module_expsym_cmds_F77 | \
  14450. old_archive_from_expsyms_cmds_F77 | \
  14451. export_symbols_cmds_F77 | \
  14452. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14453. postinstall_cmds | postuninstall_cmds | \
  14454. old_postinstall_cmds | old_postuninstall_cmds | \
  14455. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14456. # Double-quote double-evaled strings.
  14457. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14458. ;;
  14459. *)
  14460. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14461. ;;
  14462. esac
  14463. done
  14464. case $lt_echo in
  14465. *'\$0 --fallback-echo"')
  14466. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14467. ;;
  14468. esac
  14469. cfgfile="$ofile"
  14470. cat <<__EOF__ >> "$cfgfile"
  14471. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14472. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14473. # Shell to use when invoking shell scripts.
  14474. SHELL=$lt_SHELL
  14475. # Whether or not to build shared libraries.
  14476. build_libtool_libs=$enable_shared
  14477. # Whether or not to build static libraries.
  14478. build_old_libs=$enable_static
  14479. # Whether or not to add -lc for building shared libraries.
  14480. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14481. # Whether or not to disallow shared libs when runtime libs are static
  14482. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14483. # Whether or not to optimize for fast installation.
  14484. fast_install=$enable_fast_install
  14485. # The host system.
  14486. host_alias=$host_alias
  14487. host=$host
  14488. host_os=$host_os
  14489. # The build system.
  14490. build_alias=$build_alias
  14491. build=$build
  14492. build_os=$build_os
  14493. # An echo program that does not interpret backslashes.
  14494. echo=$lt_echo
  14495. # The archiver.
  14496. AR=$lt_AR
  14497. AR_FLAGS=$lt_AR_FLAGS
  14498. # A C compiler.
  14499. LTCC=$lt_LTCC
  14500. # LTCC compiler flags.
  14501. LTCFLAGS=$lt_LTCFLAGS
  14502. # A language-specific compiler.
  14503. CC=$lt_compiler_F77
  14504. # Is the compiler the GNU C compiler?
  14505. with_gcc=$GCC_F77
  14506. # An ERE matcher.
  14507. EGREP=$lt_EGREP
  14508. # The linker used to build libraries.
  14509. LD=$lt_LD_F77
  14510. # Whether we need hard or soft links.
  14511. LN_S=$lt_LN_S
  14512. # A BSD-compatible nm program.
  14513. NM=$lt_NM
  14514. # A symbol stripping program
  14515. STRIP=$lt_STRIP
  14516. # Used to examine libraries when file_magic_cmd begins "file"
  14517. MAGIC_CMD=$MAGIC_CMD
  14518. # Used on cygwin: DLL creation program.
  14519. DLLTOOL="$DLLTOOL"
  14520. # Used on cygwin: object dumper.
  14521. OBJDUMP="$OBJDUMP"
  14522. # Used on cygwin: assembler.
  14523. AS="$AS"
  14524. # The name of the directory that contains temporary libtool files.
  14525. objdir=$objdir
  14526. # How to create reloadable object files.
  14527. reload_flag=$lt_reload_flag
  14528. reload_cmds=$lt_reload_cmds
  14529. # How to pass a linker flag through the compiler.
  14530. wl=$lt_lt_prog_compiler_wl_F77
  14531. # Object file suffix (normally "o").
  14532. objext="$ac_objext"
  14533. # Old archive suffix (normally "a").
  14534. libext="$libext"
  14535. # Shared library suffix (normally ".so").
  14536. shrext_cmds='$shrext_cmds'
  14537. # Executable file suffix (normally "").
  14538. exeext="$exeext"
  14539. # Additional compiler flags for building library objects.
  14540. pic_flag=$lt_lt_prog_compiler_pic_F77
  14541. pic_mode=$pic_mode
  14542. # What is the maximum length of a command?
  14543. max_cmd_len=$lt_cv_sys_max_cmd_len
  14544. # Does compiler simultaneously support -c and -o options?
  14545. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14546. # Must we lock files when doing compilation?
  14547. need_locks=$lt_need_locks
  14548. # Do we need the lib prefix for modules?
  14549. need_lib_prefix=$need_lib_prefix
  14550. # Do we need a version for libraries?
  14551. need_version=$need_version
  14552. # Whether dlopen is supported.
  14553. dlopen_support=$enable_dlopen
  14554. # Whether dlopen of programs is supported.
  14555. dlopen_self=$enable_dlopen_self
  14556. # Whether dlopen of statically linked programs is supported.
  14557. dlopen_self_static=$enable_dlopen_self_static
  14558. # Compiler flag to prevent dynamic linking.
  14559. link_static_flag=$lt_lt_prog_compiler_static_F77
  14560. # Compiler flag to turn off builtin functions.
  14561. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14562. # Compiler flag to allow reflexive dlopens.
  14563. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14564. # Compiler flag to generate shared objects directly from archives.
  14565. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14566. # Compiler flag to generate thread-safe objects.
  14567. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14568. # Library versioning type.
  14569. version_type=$version_type
  14570. # Format of library name prefix.
  14571. libname_spec=$lt_libname_spec
  14572. # List of archive names. First name is the real one, the rest are links.
  14573. # The last name is the one that the linker finds with -lNAME.
  14574. library_names_spec=$lt_library_names_spec
  14575. # The coded name of the library, if different from the real name.
  14576. soname_spec=$lt_soname_spec
  14577. # Commands used to build and install an old-style archive.
  14578. RANLIB=$lt_RANLIB
  14579. old_archive_cmds=$lt_old_archive_cmds_F77
  14580. old_postinstall_cmds=$lt_old_postinstall_cmds
  14581. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14582. # Create an old-style archive from a shared archive.
  14583. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14584. # Create a temporary old-style archive to link instead of a shared archive.
  14585. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14586. # Commands used to build and install a shared archive.
  14587. archive_cmds=$lt_archive_cmds_F77
  14588. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14589. postinstall_cmds=$lt_postinstall_cmds
  14590. postuninstall_cmds=$lt_postuninstall_cmds
  14591. # Commands used to build a loadable module (assumed same as above if empty)
  14592. module_cmds=$lt_module_cmds_F77
  14593. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14594. # Commands to strip libraries.
  14595. old_striplib=$lt_old_striplib
  14596. striplib=$lt_striplib
  14597. # Dependencies to place before the objects being linked to create a
  14598. # shared library.
  14599. predep_objects=$lt_predep_objects_F77
  14600. # Dependencies to place after the objects being linked to create a
  14601. # shared library.
  14602. postdep_objects=$lt_postdep_objects_F77
  14603. # Dependencies to place before the objects being linked to create a
  14604. # shared library.
  14605. predeps=$lt_predeps_F77
  14606. # Dependencies to place after the objects being linked to create a
  14607. # shared library.
  14608. postdeps=$lt_postdeps_F77
  14609. # The library search path used internally by the compiler when linking
  14610. # a shared library.
  14611. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14612. # Method to check whether dependent libraries are shared objects.
  14613. deplibs_check_method=$lt_deplibs_check_method
  14614. # Command to use when deplibs_check_method == file_magic.
  14615. file_magic_cmd=$lt_file_magic_cmd
  14616. # Flag that allows shared libraries with undefined symbols to be built.
  14617. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14618. # Flag that forces no undefined symbols.
  14619. no_undefined_flag=$lt_no_undefined_flag_F77
  14620. # Commands used to finish a libtool library installation in a directory.
  14621. finish_cmds=$lt_finish_cmds
  14622. # Same as above, but a single script fragment to be evaled but not shown.
  14623. finish_eval=$lt_finish_eval
  14624. # Take the output of nm and produce a listing of raw symbols and C names.
  14625. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14626. # Transform the output of nm in a proper C declaration
  14627. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14628. # Transform the output of nm in a C name address pair
  14629. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14630. # This is the shared library runtime path variable.
  14631. runpath_var=$runpath_var
  14632. # This is the shared library path variable.
  14633. shlibpath_var=$shlibpath_var
  14634. # Is shlibpath searched before the hard-coded library search path?
  14635. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14636. # How to hardcode a shared library path into an executable.
  14637. hardcode_action=$hardcode_action_F77
  14638. # Whether we should hardcode library paths into libraries.
  14639. hardcode_into_libs=$hardcode_into_libs
  14640. # Flag to hardcode \$libdir into a binary during linking.
  14641. # This must work even if \$libdir does not exist.
  14642. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14643. # If ld is used when linking, flag to hardcode \$libdir into
  14644. # a binary during linking. This must work even if \$libdir does
  14645. # not exist.
  14646. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14647. # Whether we need a single -rpath flag with a separated argument.
  14648. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14649. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14650. # resulting binary.
  14651. hardcode_direct=$hardcode_direct_F77
  14652. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14653. # resulting binary.
  14654. hardcode_minus_L=$hardcode_minus_L_F77
  14655. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14656. # the resulting binary.
  14657. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14658. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14659. # and all subsequent libraries and executables linked against it.
  14660. hardcode_automatic=$hardcode_automatic_F77
  14661. # Variables whose values should be saved in libtool wrapper scripts and
  14662. # restored at relink time.
  14663. variables_saved_for_relink="$variables_saved_for_relink"
  14664. # Whether libtool must link a program against all its dependency libraries.
  14665. link_all_deplibs=$link_all_deplibs_F77
  14666. # Compile-time system search path for libraries
  14667. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14668. # Run-time system search path for libraries
  14669. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14670. # Fix the shell variable \$srcfile for the compiler.
  14671. fix_srcfile_path=$lt_fix_srcfile_path
  14672. # Set to yes if exported symbols are required.
  14673. always_export_symbols=$always_export_symbols_F77
  14674. # The commands to list exported symbols.
  14675. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14676. # The commands to extract the exported symbol list from a shared archive.
  14677. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14678. # Symbols that should not be listed in the preloaded symbols.
  14679. exclude_expsyms=$lt_exclude_expsyms_F77
  14680. # Symbols that must always be exported.
  14681. include_expsyms=$lt_include_expsyms_F77
  14682. # ### END LIBTOOL TAG CONFIG: $tagname
  14683. __EOF__
  14684. else
  14685. # If there is no Makefile yet, we rely on a make rule to execute
  14686. # `config.status --recheck' to rerun these tests and create the
  14687. # libtool script then.
  14688. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14689. if test -f "$ltmain_in"; then
  14690. test -f Makefile && make "$ltmain"
  14691. fi
  14692. fi
  14693. ac_ext=c
  14694. ac_cpp='$CPP $CPPFLAGS'
  14695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14698. CC="$lt_save_CC"
  14699. else
  14700. tagname=""
  14701. fi
  14702. ;;
  14703. GCJ)
  14704. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14705. # Source file extension for Java test sources.
  14706. ac_ext=java
  14707. # Object file extension for compiled Java test sources.
  14708. objext=o
  14709. objext_GCJ=$objext
  14710. # Code to be used in simple compile tests
  14711. lt_simple_compile_test_code="class foo {}"
  14712. # Code to be used in simple link tests
  14713. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14714. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14715. # If no C compiler was specified, use CC.
  14716. LTCC=${LTCC-"$CC"}
  14717. # If no C compiler flags were specified, use CFLAGS.
  14718. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14719. # Allow CC to be a program name with arguments.
  14720. compiler=$CC
  14721. # save warnings/boilerplate of simple test code
  14722. ac_outfile=conftest.$ac_objext
  14723. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14724. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14725. _lt_compiler_boilerplate=`cat conftest.err`
  14726. $rm conftest*
  14727. ac_outfile=conftest.$ac_objext
  14728. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14729. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14730. _lt_linker_boilerplate=`cat conftest.err`
  14731. $rm conftest*
  14732. # Allow CC to be a program name with arguments.
  14733. lt_save_CC="$CC"
  14734. CC=${GCJ-"gcj"}
  14735. compiler=$CC
  14736. compiler_GCJ=$CC
  14737. for cc_temp in $compiler""; do
  14738. case $cc_temp in
  14739. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14740. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14741. \-*) ;;
  14742. *) break;;
  14743. esac
  14744. done
  14745. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14746. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14747. archive_cmds_need_lc_GCJ=no
  14748. old_archive_cmds_GCJ=$old_archive_cmds
  14749. lt_prog_compiler_no_builtin_flag_GCJ=
  14750. if test "$GCC" = yes; then
  14751. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14752. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14753. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14754. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14755. echo $ECHO_N "(cached) $ECHO_C" >&6
  14756. else
  14757. lt_cv_prog_compiler_rtti_exceptions=no
  14758. ac_outfile=conftest.$ac_objext
  14759. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14760. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14761. # Insert the option either (1) after the last *FLAGS variable, or
  14762. # (2) before a word containing "conftest.", or (3) at the end.
  14763. # Note that $ac_compile itself does not contain backslashes and begins
  14764. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14765. # The option is referenced via a variable to avoid confusing sed.
  14766. lt_compile=`echo "$ac_compile" | $SED \
  14767. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14768. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14769. -e 's:$: $lt_compiler_flag:'`
  14770. (eval echo "\"\$as_me:16544: $lt_compile\"" >&5)
  14771. (eval "$lt_compile" 2>conftest.err)
  14772. ac_status=$?
  14773. cat conftest.err >&5
  14774. echo "$as_me:16548: \$? = $ac_status" >&5
  14775. if (exit $ac_status) && test -s "$ac_outfile"; then
  14776. # The compiler can only warn and ignore the option if not recognized
  14777. # So say no if there are warnings other than the usual output.
  14778. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14779. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14780. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14781. lt_cv_prog_compiler_rtti_exceptions=yes
  14782. fi
  14783. fi
  14784. $rm conftest*
  14785. fi
  14786. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14787. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14788. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14789. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14790. else
  14791. :
  14792. fi
  14793. fi
  14794. lt_prog_compiler_wl_GCJ=
  14795. lt_prog_compiler_pic_GCJ=
  14796. lt_prog_compiler_static_GCJ=
  14797. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14798. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14799. if test "$GCC" = yes; then
  14800. lt_prog_compiler_wl_GCJ='-Wl,'
  14801. lt_prog_compiler_static_GCJ='-static'
  14802. case $host_os in
  14803. aix*)
  14804. # All AIX code is PIC.
  14805. if test "$host_cpu" = ia64; then
  14806. # AIX 5 now supports IA64 processor
  14807. lt_prog_compiler_static_GCJ='-Bstatic'
  14808. fi
  14809. ;;
  14810. amigaos*)
  14811. # FIXME: we need at least 68020 code to build shared libraries, but
  14812. # adding the `-m68020' flag to GCC prevents building anything better,
  14813. # like `-m68040'.
  14814. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14815. ;;
  14816. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14817. # PIC is the default for these OSes.
  14818. ;;
  14819. mingw* | cygwin* | pw32* | os2*)
  14820. # This hack is so that the source file can tell whether it is being
  14821. # built for inclusion in a dll (and should export symbols for example).
  14822. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14823. # (--disable-auto-import) libraries
  14824. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14825. ;;
  14826. darwin* | rhapsody*)
  14827. # PIC is the default on this platform
  14828. # Common symbols not allowed in MH_DYLIB files
  14829. lt_prog_compiler_pic_GCJ='-fno-common'
  14830. ;;
  14831. interix[3-9]*)
  14832. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14833. # Instead, we relocate shared libraries at runtime.
  14834. ;;
  14835. msdosdjgpp*)
  14836. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14837. # on systems that don't support them.
  14838. lt_prog_compiler_can_build_shared_GCJ=no
  14839. enable_shared=no
  14840. ;;
  14841. sysv4*MP*)
  14842. if test -d /usr/nec; then
  14843. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14844. fi
  14845. ;;
  14846. hpux*)
  14847. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14848. # not for PA HP-UX.
  14849. case $host_cpu in
  14850. hppa*64*|ia64*)
  14851. # +Z the default
  14852. ;;
  14853. *)
  14854. lt_prog_compiler_pic_GCJ='-fPIC'
  14855. ;;
  14856. esac
  14857. ;;
  14858. *)
  14859. lt_prog_compiler_pic_GCJ='-fPIC'
  14860. ;;
  14861. esac
  14862. else
  14863. # PORTME Check for flag to pass linker flags through the system compiler.
  14864. case $host_os in
  14865. aix*)
  14866. lt_prog_compiler_wl_GCJ='-Wl,'
  14867. if test "$host_cpu" = ia64; then
  14868. # AIX 5 now supports IA64 processor
  14869. lt_prog_compiler_static_GCJ='-Bstatic'
  14870. else
  14871. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14872. fi
  14873. ;;
  14874. darwin*)
  14875. # PIC is the default on this platform
  14876. # Common symbols not allowed in MH_DYLIB files
  14877. case $cc_basename in
  14878. xlc*)
  14879. lt_prog_compiler_pic_GCJ='-qnocommon'
  14880. lt_prog_compiler_wl_GCJ='-Wl,'
  14881. ;;
  14882. esac
  14883. ;;
  14884. mingw* | cygwin* | pw32* | os2*)
  14885. # This hack is so that the source file can tell whether it is being
  14886. # built for inclusion in a dll (and should export symbols for example).
  14887. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14888. ;;
  14889. hpux9* | hpux10* | hpux11*)
  14890. lt_prog_compiler_wl_GCJ='-Wl,'
  14891. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14892. # not for PA HP-UX.
  14893. case $host_cpu in
  14894. hppa*64*|ia64*)
  14895. # +Z the default
  14896. ;;
  14897. *)
  14898. lt_prog_compiler_pic_GCJ='+Z'
  14899. ;;
  14900. esac
  14901. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14902. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14903. ;;
  14904. irix5* | irix6* | nonstopux*)
  14905. lt_prog_compiler_wl_GCJ='-Wl,'
  14906. # PIC (with -KPIC) is the default.
  14907. lt_prog_compiler_static_GCJ='-non_shared'
  14908. ;;
  14909. newsos6)
  14910. lt_prog_compiler_pic_GCJ='-KPIC'
  14911. lt_prog_compiler_static_GCJ='-Bstatic'
  14912. ;;
  14913. linux* | k*bsd*-gnu)
  14914. case $cc_basename in
  14915. icc* | ecc*)
  14916. lt_prog_compiler_wl_GCJ='-Wl,'
  14917. lt_prog_compiler_pic_GCJ='-KPIC'
  14918. lt_prog_compiler_static_GCJ='-static'
  14919. ;;
  14920. pgcc* | pgf77* | pgf90* | pgf95*)
  14921. # Portland Group compilers (*not* the Pentium gcc compiler,
  14922. # which looks to be a dead project)
  14923. lt_prog_compiler_wl_GCJ='-Wl,'
  14924. lt_prog_compiler_pic_GCJ='-fpic'
  14925. lt_prog_compiler_static_GCJ='-Bstatic'
  14926. ;;
  14927. ccc*)
  14928. lt_prog_compiler_wl_GCJ='-Wl,'
  14929. # All Alpha code is PIC.
  14930. lt_prog_compiler_static_GCJ='-non_shared'
  14931. ;;
  14932. *)
  14933. case `$CC -V 2>&1 | sed 5q` in
  14934. *Sun\ C*)
  14935. # Sun C 5.9
  14936. lt_prog_compiler_pic_GCJ='-KPIC'
  14937. lt_prog_compiler_static_GCJ='-Bstatic'
  14938. lt_prog_compiler_wl_GCJ='-Wl,'
  14939. ;;
  14940. *Sun\ F*)
  14941. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  14942. lt_prog_compiler_pic_GCJ='-KPIC'
  14943. lt_prog_compiler_static_GCJ='-Bstatic'
  14944. lt_prog_compiler_wl_GCJ=''
  14945. ;;
  14946. esac
  14947. ;;
  14948. esac
  14949. ;;
  14950. osf3* | osf4* | osf5*)
  14951. lt_prog_compiler_wl_GCJ='-Wl,'
  14952. # All OSF/1 code is PIC.
  14953. lt_prog_compiler_static_GCJ='-non_shared'
  14954. ;;
  14955. rdos*)
  14956. lt_prog_compiler_static_GCJ='-non_shared'
  14957. ;;
  14958. solaris*)
  14959. lt_prog_compiler_pic_GCJ='-KPIC'
  14960. lt_prog_compiler_static_GCJ='-Bstatic'
  14961. case $cc_basename in
  14962. f77* | f90* | f95*)
  14963. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14964. *)
  14965. lt_prog_compiler_wl_GCJ='-Wl,';;
  14966. esac
  14967. ;;
  14968. sunos4*)
  14969. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14970. lt_prog_compiler_pic_GCJ='-PIC'
  14971. lt_prog_compiler_static_GCJ='-Bstatic'
  14972. ;;
  14973. sysv4 | sysv4.2uw2* | sysv4.3*)
  14974. lt_prog_compiler_wl_GCJ='-Wl,'
  14975. lt_prog_compiler_pic_GCJ='-KPIC'
  14976. lt_prog_compiler_static_GCJ='-Bstatic'
  14977. ;;
  14978. sysv4*MP*)
  14979. if test -d /usr/nec ;then
  14980. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14981. lt_prog_compiler_static_GCJ='-Bstatic'
  14982. fi
  14983. ;;
  14984. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14985. lt_prog_compiler_wl_GCJ='-Wl,'
  14986. lt_prog_compiler_pic_GCJ='-KPIC'
  14987. lt_prog_compiler_static_GCJ='-Bstatic'
  14988. ;;
  14989. unicos*)
  14990. lt_prog_compiler_wl_GCJ='-Wl,'
  14991. lt_prog_compiler_can_build_shared_GCJ=no
  14992. ;;
  14993. uts4*)
  14994. lt_prog_compiler_pic_GCJ='-pic'
  14995. lt_prog_compiler_static_GCJ='-Bstatic'
  14996. ;;
  14997. *)
  14998. lt_prog_compiler_can_build_shared_GCJ=no
  14999. ;;
  15000. esac
  15001. fi
  15002. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15003. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15004. #
  15005. # Check to make sure the PIC flag actually works.
  15006. #
  15007. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15008. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15009. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15010. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15011. echo $ECHO_N "(cached) $ECHO_C" >&6
  15012. else
  15013. lt_prog_compiler_pic_works_GCJ=no
  15014. ac_outfile=conftest.$ac_objext
  15015. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15016. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15017. # Insert the option either (1) after the last *FLAGS variable, or
  15018. # (2) before a word containing "conftest.", or (3) at the end.
  15019. # Note that $ac_compile itself does not contain backslashes and begins
  15020. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15021. # The option is referenced via a variable to avoid confusing sed.
  15022. lt_compile=`echo "$ac_compile" | $SED \
  15023. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15024. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15025. -e 's:$: $lt_compiler_flag:'`
  15026. (eval echo "\"\$as_me:16834: $lt_compile\"" >&5)
  15027. (eval "$lt_compile" 2>conftest.err)
  15028. ac_status=$?
  15029. cat conftest.err >&5
  15030. echo "$as_me:16838: \$? = $ac_status" >&5
  15031. if (exit $ac_status) && test -s "$ac_outfile"; then
  15032. # The compiler can only warn and ignore the option if not recognized
  15033. # So say no if there are warnings other than the usual output.
  15034. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15035. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15036. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15037. lt_prog_compiler_pic_works_GCJ=yes
  15038. fi
  15039. fi
  15040. $rm conftest*
  15041. fi
  15042. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15043. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15044. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15045. case $lt_prog_compiler_pic_GCJ in
  15046. "" | " "*) ;;
  15047. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15048. esac
  15049. else
  15050. lt_prog_compiler_pic_GCJ=
  15051. lt_prog_compiler_can_build_shared_GCJ=no
  15052. fi
  15053. fi
  15054. case $host_os in
  15055. # For platforms which do not support PIC, -DPIC is meaningless:
  15056. *djgpp*)
  15057. lt_prog_compiler_pic_GCJ=
  15058. ;;
  15059. *)
  15060. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15061. ;;
  15062. esac
  15063. #
  15064. # Check to make sure the static flag actually works.
  15065. #
  15066. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15067. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15068. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15069. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15070. echo $ECHO_N "(cached) $ECHO_C" >&6
  15071. else
  15072. lt_prog_compiler_static_works_GCJ=no
  15073. save_LDFLAGS="$LDFLAGS"
  15074. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15075. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15076. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15077. # The linker can only warn and ignore the option if not recognized
  15078. # So say no if there are warnings
  15079. if test -s conftest.err; then
  15080. # Append any errors to the config.log.
  15081. cat conftest.err 1>&5
  15082. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15083. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15084. if diff conftest.exp conftest.er2 >/dev/null; then
  15085. lt_prog_compiler_static_works_GCJ=yes
  15086. fi
  15087. else
  15088. lt_prog_compiler_static_works_GCJ=yes
  15089. fi
  15090. fi
  15091. $rm conftest*
  15092. LDFLAGS="$save_LDFLAGS"
  15093. fi
  15094. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15095. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15096. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15097. :
  15098. else
  15099. lt_prog_compiler_static_GCJ=
  15100. fi
  15101. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15102. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15103. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15104. echo $ECHO_N "(cached) $ECHO_C" >&6
  15105. else
  15106. lt_cv_prog_compiler_c_o_GCJ=no
  15107. $rm -r conftest 2>/dev/null
  15108. mkdir conftest
  15109. cd conftest
  15110. mkdir out
  15111. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15112. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15113. # Insert the option either (1) after the last *FLAGS variable, or
  15114. # (2) before a word containing "conftest.", or (3) at the end.
  15115. # Note that $ac_compile itself does not contain backslashes and begins
  15116. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15117. lt_compile=`echo "$ac_compile" | $SED \
  15118. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15119. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15120. -e 's:$: $lt_compiler_flag:'`
  15121. (eval echo "\"\$as_me:16938: $lt_compile\"" >&5)
  15122. (eval "$lt_compile" 2>out/conftest.err)
  15123. ac_status=$?
  15124. cat out/conftest.err >&5
  15125. echo "$as_me:16942: \$? = $ac_status" >&5
  15126. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15127. then
  15128. # The compiler can only warn and ignore the option if not recognized
  15129. # So say no if there are warnings
  15130. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15131. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15132. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15133. lt_cv_prog_compiler_c_o_GCJ=yes
  15134. fi
  15135. fi
  15136. chmod u+w . 2>&5
  15137. $rm conftest*
  15138. # SGI C++ compiler will create directory out/ii_files/ for
  15139. # template instantiation
  15140. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15141. $rm out/* && rmdir out
  15142. cd ..
  15143. rmdir conftest
  15144. $rm conftest*
  15145. fi
  15146. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15147. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15148. hard_links="nottested"
  15149. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15150. # do not overwrite the value of need_locks provided by the user
  15151. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15152. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15153. hard_links=yes
  15154. $rm conftest*
  15155. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15156. touch conftest.a
  15157. ln conftest.a conftest.b 2>&5 || hard_links=no
  15158. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15159. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15160. echo "${ECHO_T}$hard_links" >&6; }
  15161. if test "$hard_links" = no; then
  15162. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15163. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15164. need_locks=warn
  15165. fi
  15166. else
  15167. need_locks=no
  15168. fi
  15169. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15170. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15171. runpath_var=
  15172. allow_undefined_flag_GCJ=
  15173. enable_shared_with_static_runtimes_GCJ=no
  15174. archive_cmds_GCJ=
  15175. archive_expsym_cmds_GCJ=
  15176. old_archive_From_new_cmds_GCJ=
  15177. old_archive_from_expsyms_cmds_GCJ=
  15178. export_dynamic_flag_spec_GCJ=
  15179. whole_archive_flag_spec_GCJ=
  15180. thread_safe_flag_spec_GCJ=
  15181. hardcode_libdir_flag_spec_GCJ=
  15182. hardcode_libdir_flag_spec_ld_GCJ=
  15183. hardcode_libdir_separator_GCJ=
  15184. hardcode_direct_GCJ=no
  15185. hardcode_minus_L_GCJ=no
  15186. hardcode_shlibpath_var_GCJ=unsupported
  15187. link_all_deplibs_GCJ=unknown
  15188. hardcode_automatic_GCJ=no
  15189. module_cmds_GCJ=
  15190. module_expsym_cmds_GCJ=
  15191. always_export_symbols_GCJ=no
  15192. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15193. # include_expsyms should be a list of space-separated symbols to be *always*
  15194. # included in the symbol list
  15195. include_expsyms_GCJ=
  15196. # exclude_expsyms can be an extended regexp of symbols to exclude
  15197. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15198. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15199. # as well as any symbol that contains `d'.
  15200. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15201. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15202. # platforms (ab)use it in PIC code, but their linkers get confused if
  15203. # the symbol is explicitly referenced. Since portable code cannot
  15204. # rely on this symbol name, it's probably fine to never include it in
  15205. # preloaded symbol tables.
  15206. extract_expsyms_cmds=
  15207. # Just being paranoid about ensuring that cc_basename is set.
  15208. for cc_temp in $compiler""; do
  15209. case $cc_temp in
  15210. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15211. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15212. \-*) ;;
  15213. *) break;;
  15214. esac
  15215. done
  15216. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15217. case $host_os in
  15218. cygwin* | mingw* | pw32*)
  15219. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15220. # When not using gcc, we currently assume that we are using
  15221. # Microsoft Visual C++.
  15222. if test "$GCC" != yes; then
  15223. with_gnu_ld=no
  15224. fi
  15225. ;;
  15226. interix*)
  15227. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15228. with_gnu_ld=yes
  15229. ;;
  15230. openbsd*)
  15231. with_gnu_ld=no
  15232. ;;
  15233. esac
  15234. ld_shlibs_GCJ=yes
  15235. if test "$with_gnu_ld" = yes; then
  15236. # If archive_cmds runs LD, not CC, wlarc should be empty
  15237. wlarc='${wl}'
  15238. # Set some defaults for GNU ld with shared library support. These
  15239. # are reset later if shared libraries are not supported. Putting them
  15240. # here allows them to be overridden if necessary.
  15241. runpath_var=LD_RUN_PATH
  15242. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15243. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15244. # ancient GNU ld didn't support --whole-archive et. al.
  15245. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15246. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15247. else
  15248. whole_archive_flag_spec_GCJ=
  15249. fi
  15250. supports_anon_versioning=no
  15251. case `$LD -v 2>/dev/null` in
  15252. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15253. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15254. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15255. *\ 2.11.*) ;; # other 2.11 versions
  15256. *) supports_anon_versioning=yes ;;
  15257. esac
  15258. # See if GNU ld supports shared libraries.
  15259. case $host_os in
  15260. aix3* | aix4* | aix5*)
  15261. # On AIX/PPC, the GNU linker is very broken
  15262. if test "$host_cpu" != ia64; then
  15263. ld_shlibs_GCJ=no
  15264. cat <<EOF 1>&2
  15265. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15266. *** to be unable to reliably create shared libraries on AIX.
  15267. *** Therefore, libtool is disabling shared libraries support. If you
  15268. *** really care for shared libraries, you may want to modify your PATH
  15269. *** so that a non-GNU linker is found, and then restart.
  15270. EOF
  15271. fi
  15272. ;;
  15273. amigaos*)
  15274. 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)'
  15275. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15276. hardcode_minus_L_GCJ=yes
  15277. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15278. # that the semantics of dynamic libraries on AmigaOS, at least up
  15279. # to version 4, is to share data among multiple programs linked
  15280. # with the same dynamic library. Since this doesn't match the
  15281. # behavior of shared libraries on other platforms, we can't use
  15282. # them.
  15283. ld_shlibs_GCJ=no
  15284. ;;
  15285. beos*)
  15286. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15287. allow_undefined_flag_GCJ=unsupported
  15288. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15289. # support --undefined. This deserves some investigation. FIXME
  15290. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15291. else
  15292. ld_shlibs_GCJ=no
  15293. fi
  15294. ;;
  15295. cygwin* | mingw* | pw32*)
  15296. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15297. # as there is no search path for DLLs.
  15298. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15299. allow_undefined_flag_GCJ=unsupported
  15300. always_export_symbols_GCJ=no
  15301. enable_shared_with_static_runtimes_GCJ=yes
  15302. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15303. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15304. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15305. # If the export-symbols file already is a .def file (1st line
  15306. # is EXPORTS), use it as is; otherwise, prepend...
  15307. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15308. cp $export_symbols $output_objdir/$soname.def;
  15309. else
  15310. echo EXPORTS > $output_objdir/$soname.def;
  15311. cat $export_symbols >> $output_objdir/$soname.def;
  15312. fi~
  15313. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15314. else
  15315. ld_shlibs_GCJ=no
  15316. fi
  15317. ;;
  15318. interix[3-9]*)
  15319. hardcode_direct_GCJ=no
  15320. hardcode_shlibpath_var_GCJ=no
  15321. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15322. export_dynamic_flag_spec_GCJ='${wl}-E'
  15323. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15324. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15325. # default) and relocated if they conflict, which is a slow very memory
  15326. # consuming and fragmenting process. To avoid this, we pick a random,
  15327. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15328. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15329. 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'
  15330. 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'
  15331. ;;
  15332. gnu* | linux* | k*bsd*-gnu)
  15333. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15334. tmp_addflag=
  15335. case $cc_basename,$host_cpu in
  15336. pgcc*) # Portland Group C compiler
  15337. 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'
  15338. tmp_addflag=' $pic_flag'
  15339. ;;
  15340. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15341. 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'
  15342. tmp_addflag=' $pic_flag -Mnomain' ;;
  15343. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15344. tmp_addflag=' -i_dynamic' ;;
  15345. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15346. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15347. ifc* | ifort*) # Intel Fortran compiler
  15348. tmp_addflag=' -nofor_main' ;;
  15349. esac
  15350. case `$CC -V 2>&1 | sed 5q` in
  15351. *Sun\ C*) # Sun C 5.9
  15352. 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'
  15353. tmp_sharedflag='-G' ;;
  15354. *Sun\ F*) # Sun Fortran 8.3
  15355. tmp_sharedflag='-G' ;;
  15356. *)
  15357. tmp_sharedflag='-shared' ;;
  15358. esac
  15359. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15360. if test $supports_anon_versioning = yes; then
  15361. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15362. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15363. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15364. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15365. fi
  15366. else
  15367. ld_shlibs_GCJ=no
  15368. fi
  15369. ;;
  15370. netbsd*)
  15371. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15372. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15373. wlarc=
  15374. else
  15375. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15376. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15377. fi
  15378. ;;
  15379. solaris*)
  15380. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15381. ld_shlibs_GCJ=no
  15382. cat <<EOF 1>&2
  15383. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15384. *** create shared libraries on Solaris systems. Therefore, libtool
  15385. *** is disabling shared libraries support. We urge you to upgrade GNU
  15386. *** binutils to release 2.9.1 or newer. Another option is to modify
  15387. *** your PATH or compiler configuration so that the native linker is
  15388. *** used, and then restart.
  15389. EOF
  15390. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15391. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15392. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15393. else
  15394. ld_shlibs_GCJ=no
  15395. fi
  15396. ;;
  15397. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15398. case `$LD -v 2>&1` in
  15399. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15400. ld_shlibs_GCJ=no
  15401. cat <<_LT_EOF 1>&2
  15402. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15403. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15404. *** is disabling shared libraries support. We urge you to upgrade GNU
  15405. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15406. *** your PATH or compiler configuration so that the native linker is
  15407. *** used, and then restart.
  15408. _LT_EOF
  15409. ;;
  15410. *)
  15411. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15412. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15413. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15414. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15415. else
  15416. ld_shlibs_GCJ=no
  15417. fi
  15418. ;;
  15419. esac
  15420. ;;
  15421. sunos4*)
  15422. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15423. wlarc=
  15424. hardcode_direct_GCJ=yes
  15425. hardcode_shlibpath_var_GCJ=no
  15426. ;;
  15427. *)
  15428. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15429. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15430. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15431. else
  15432. ld_shlibs_GCJ=no
  15433. fi
  15434. ;;
  15435. esac
  15436. if test "$ld_shlibs_GCJ" = no; then
  15437. runpath_var=
  15438. hardcode_libdir_flag_spec_GCJ=
  15439. export_dynamic_flag_spec_GCJ=
  15440. whole_archive_flag_spec_GCJ=
  15441. fi
  15442. else
  15443. # PORTME fill in a description of your system's linker (not GNU ld)
  15444. case $host_os in
  15445. aix3*)
  15446. allow_undefined_flag_GCJ=unsupported
  15447. always_export_symbols_GCJ=yes
  15448. 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'
  15449. # Note: this linker hardcodes the directories in LIBPATH if there
  15450. # are no directories specified by -L.
  15451. hardcode_minus_L_GCJ=yes
  15452. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15453. # Neither direct hardcoding nor static linking is supported with a
  15454. # broken collect2.
  15455. hardcode_direct_GCJ=unsupported
  15456. fi
  15457. ;;
  15458. aix4* | aix5*)
  15459. if test "$host_cpu" = ia64; then
  15460. # On IA64, the linker does run time linking by default, so we don't
  15461. # have to do anything special.
  15462. aix_use_runtimelinking=no
  15463. exp_sym_flag='-Bexport'
  15464. no_entry_flag=""
  15465. else
  15466. # If we're using GNU nm, then we don't want the "-C" option.
  15467. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15468. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15469. 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'
  15470. else
  15471. 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'
  15472. fi
  15473. aix_use_runtimelinking=no
  15474. # Test if we are trying to use run time linking or normal
  15475. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15476. # need to do runtime linking.
  15477. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15478. for ld_flag in $LDFLAGS; do
  15479. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15480. aix_use_runtimelinking=yes
  15481. break
  15482. fi
  15483. done
  15484. ;;
  15485. esac
  15486. exp_sym_flag='-bexport'
  15487. no_entry_flag='-bnoentry'
  15488. fi
  15489. # When large executables or shared objects are built, AIX ld can
  15490. # have problems creating the table of contents. If linking a library
  15491. # or program results in "error TOC overflow" add -mminimal-toc to
  15492. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15493. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15494. archive_cmds_GCJ=''
  15495. hardcode_direct_GCJ=yes
  15496. hardcode_libdir_separator_GCJ=':'
  15497. link_all_deplibs_GCJ=yes
  15498. if test "$GCC" = yes; then
  15499. case $host_os in aix4.[012]|aix4.[012].*)
  15500. # We only want to do this on AIX 4.2 and lower, the check
  15501. # below for broken collect2 doesn't work under 4.3+
  15502. collect2name=`${CC} -print-prog-name=collect2`
  15503. if test -f "$collect2name" && \
  15504. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15505. then
  15506. # We have reworked collect2
  15507. :
  15508. else
  15509. # We have old collect2
  15510. hardcode_direct_GCJ=unsupported
  15511. # It fails to find uninstalled libraries when the uninstalled
  15512. # path is not listed in the libpath. Setting hardcode_minus_L
  15513. # to unsupported forces relinking
  15514. hardcode_minus_L_GCJ=yes
  15515. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15516. hardcode_libdir_separator_GCJ=
  15517. fi
  15518. ;;
  15519. esac
  15520. shared_flag='-shared'
  15521. if test "$aix_use_runtimelinking" = yes; then
  15522. shared_flag="$shared_flag "'${wl}-G'
  15523. fi
  15524. else
  15525. # not using gcc
  15526. if test "$host_cpu" = ia64; then
  15527. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15528. # chokes on -Wl,-G. The following line is correct:
  15529. shared_flag='-G'
  15530. else
  15531. if test "$aix_use_runtimelinking" = yes; then
  15532. shared_flag='${wl}-G'
  15533. else
  15534. shared_flag='${wl}-bM:SRE'
  15535. fi
  15536. fi
  15537. fi
  15538. # It seems that -bexpall does not export symbols beginning with
  15539. # underscore (_), so it is better to generate a list of symbols to export.
  15540. always_export_symbols_GCJ=yes
  15541. if test "$aix_use_runtimelinking" = yes; then
  15542. # Warning - without using the other runtime loading flags (-brtl),
  15543. # -berok will link without error, but may produce a broken library.
  15544. allow_undefined_flag_GCJ='-berok'
  15545. # Determine the default libpath from the value encoded in an empty executable.
  15546. cat >conftest.$ac_ext <<_ACEOF
  15547. /* confdefs.h. */
  15548. _ACEOF
  15549. cat confdefs.h >>conftest.$ac_ext
  15550. cat >>conftest.$ac_ext <<_ACEOF
  15551. /* end confdefs.h. */
  15552. int
  15553. main ()
  15554. {
  15555. ;
  15556. return 0;
  15557. }
  15558. _ACEOF
  15559. rm -f conftest.$ac_objext conftest$ac_exeext
  15560. if { (ac_try="$ac_link"
  15561. case "(($ac_try" in
  15562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15563. *) ac_try_echo=$ac_try;;
  15564. esac
  15565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15566. (eval "$ac_link") 2>conftest.er1
  15567. ac_status=$?
  15568. grep -v '^ *+' conftest.er1 >conftest.err
  15569. rm -f conftest.er1
  15570. cat conftest.err >&5
  15571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15572. (exit $ac_status); } && {
  15573. test -z "$ac_c_werror_flag" ||
  15574. test ! -s conftest.err
  15575. } && test -s conftest$ac_exeext &&
  15576. $as_test_x conftest$ac_exeext; then
  15577. lt_aix_libpath_sed='
  15578. /Import File Strings/,/^$/ {
  15579. /^0/ {
  15580. s/^0 *\(.*\)$/\1/
  15581. p
  15582. }
  15583. }'
  15584. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15585. # Check for a 64-bit object if we didn't find anything.
  15586. if test -z "$aix_libpath"; then
  15587. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15588. fi
  15589. else
  15590. echo "$as_me: failed program was:" >&5
  15591. sed 's/^/| /' conftest.$ac_ext >&5
  15592. fi
  15593. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15594. conftest$ac_exeext conftest.$ac_ext
  15595. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15596. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15597. 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"
  15598. else
  15599. if test "$host_cpu" = ia64; then
  15600. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15601. allow_undefined_flag_GCJ="-z nodefs"
  15602. 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"
  15603. else
  15604. # Determine the default libpath from the value encoded in an empty executable.
  15605. cat >conftest.$ac_ext <<_ACEOF
  15606. /* confdefs.h. */
  15607. _ACEOF
  15608. cat confdefs.h >>conftest.$ac_ext
  15609. cat >>conftest.$ac_ext <<_ACEOF
  15610. /* end confdefs.h. */
  15611. int
  15612. main ()
  15613. {
  15614. ;
  15615. return 0;
  15616. }
  15617. _ACEOF
  15618. rm -f conftest.$ac_objext conftest$ac_exeext
  15619. if { (ac_try="$ac_link"
  15620. case "(($ac_try" in
  15621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15622. *) ac_try_echo=$ac_try;;
  15623. esac
  15624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15625. (eval "$ac_link") 2>conftest.er1
  15626. ac_status=$?
  15627. grep -v '^ *+' conftest.er1 >conftest.err
  15628. rm -f conftest.er1
  15629. cat conftest.err >&5
  15630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15631. (exit $ac_status); } && {
  15632. test -z "$ac_c_werror_flag" ||
  15633. test ! -s conftest.err
  15634. } && test -s conftest$ac_exeext &&
  15635. $as_test_x conftest$ac_exeext; then
  15636. lt_aix_libpath_sed='
  15637. /Import File Strings/,/^$/ {
  15638. /^0/ {
  15639. s/^0 *\(.*\)$/\1/
  15640. p
  15641. }
  15642. }'
  15643. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15644. # Check for a 64-bit object if we didn't find anything.
  15645. if test -z "$aix_libpath"; then
  15646. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15647. fi
  15648. else
  15649. echo "$as_me: failed program was:" >&5
  15650. sed 's/^/| /' conftest.$ac_ext >&5
  15651. fi
  15652. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15653. conftest$ac_exeext conftest.$ac_ext
  15654. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15655. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15656. # Warning - without using the other run time loading flags,
  15657. # -berok will link without error, but may produce a broken library.
  15658. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15659. allow_undefined_flag_GCJ=' ${wl}-berok'
  15660. # Exported symbols can be pulled into shared objects from archives
  15661. whole_archive_flag_spec_GCJ='$convenience'
  15662. archive_cmds_need_lc_GCJ=yes
  15663. # This is similar to how AIX traditionally builds its shared libraries.
  15664. 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'
  15665. fi
  15666. fi
  15667. ;;
  15668. amigaos*)
  15669. 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)'
  15670. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15671. hardcode_minus_L_GCJ=yes
  15672. # see comment about different semantics on the GNU ld section
  15673. ld_shlibs_GCJ=no
  15674. ;;
  15675. bsdi[45]*)
  15676. export_dynamic_flag_spec_GCJ=-rdynamic
  15677. ;;
  15678. cygwin* | mingw* | pw32*)
  15679. # When not using gcc, we currently assume that we are using
  15680. # Microsoft Visual C++.
  15681. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15682. # no search path for DLLs.
  15683. hardcode_libdir_flag_spec_GCJ=' '
  15684. allow_undefined_flag_GCJ=unsupported
  15685. # Tell ltmain to make .lib files, not .a files.
  15686. libext=lib
  15687. # Tell ltmain to make .dll files, not .so files.
  15688. shrext_cmds=".dll"
  15689. # FIXME: Setting linknames here is a bad hack.
  15690. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15691. # The linker will automatically build a .lib file if we build a DLL.
  15692. old_archive_From_new_cmds_GCJ='true'
  15693. # FIXME: Should let the user specify the lib program.
  15694. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15695. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15696. enable_shared_with_static_runtimes_GCJ=yes
  15697. ;;
  15698. darwin* | rhapsody*)
  15699. case $host_os in
  15700. rhapsody* | darwin1.[012])
  15701. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15702. ;;
  15703. *) # Darwin 1.3 on
  15704. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15705. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15706. else
  15707. case ${MACOSX_DEPLOYMENT_TARGET} in
  15708. 10.[012])
  15709. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15710. ;;
  15711. 10.*)
  15712. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15713. ;;
  15714. esac
  15715. fi
  15716. ;;
  15717. esac
  15718. archive_cmds_need_lc_GCJ=no
  15719. hardcode_direct_GCJ=no
  15720. hardcode_automatic_GCJ=yes
  15721. hardcode_shlibpath_var_GCJ=unsupported
  15722. whole_archive_flag_spec_GCJ=''
  15723. link_all_deplibs_GCJ=yes
  15724. if test "$GCC" = yes ; then
  15725. output_verbose_link_cmd='echo'
  15726. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15727. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15728. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15729. 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}'
  15730. 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}'
  15731. else
  15732. case $cc_basename in
  15733. xlc*)
  15734. output_verbose_link_cmd='echo'
  15735. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15736. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15737. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15738. 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}'
  15739. 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}'
  15740. ;;
  15741. *)
  15742. ld_shlibs_GCJ=no
  15743. ;;
  15744. esac
  15745. fi
  15746. ;;
  15747. dgux*)
  15748. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15749. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15750. hardcode_shlibpath_var_GCJ=no
  15751. ;;
  15752. freebsd1*)
  15753. ld_shlibs_GCJ=no
  15754. ;;
  15755. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15756. # support. Future versions do this automatically, but an explicit c++rt0.o
  15757. # does not break anything, and helps significantly (at the cost of a little
  15758. # extra space).
  15759. freebsd2.2*)
  15760. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15761. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15762. hardcode_direct_GCJ=yes
  15763. hardcode_shlibpath_var_GCJ=no
  15764. ;;
  15765. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15766. freebsd2*)
  15767. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15768. hardcode_direct_GCJ=yes
  15769. hardcode_minus_L_GCJ=yes
  15770. hardcode_shlibpath_var_GCJ=no
  15771. ;;
  15772. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15773. freebsd* | dragonfly*)
  15774. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15775. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15776. hardcode_direct_GCJ=yes
  15777. hardcode_shlibpath_var_GCJ=no
  15778. ;;
  15779. hpux9*)
  15780. if test "$GCC" = yes; then
  15781. 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'
  15782. else
  15783. 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'
  15784. fi
  15785. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15786. hardcode_libdir_separator_GCJ=:
  15787. hardcode_direct_GCJ=yes
  15788. # hardcode_minus_L: Not really in the search PATH,
  15789. # but as the default location of the library.
  15790. hardcode_minus_L_GCJ=yes
  15791. export_dynamic_flag_spec_GCJ='${wl}-E'
  15792. ;;
  15793. hpux10*)
  15794. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15795. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15796. else
  15797. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15798. fi
  15799. if test "$with_gnu_ld" = no; then
  15800. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15801. hardcode_libdir_separator_GCJ=:
  15802. hardcode_direct_GCJ=yes
  15803. export_dynamic_flag_spec_GCJ='${wl}-E'
  15804. # hardcode_minus_L: Not really in the search PATH,
  15805. # but as the default location of the library.
  15806. hardcode_minus_L_GCJ=yes
  15807. fi
  15808. ;;
  15809. hpux11*)
  15810. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15811. case $host_cpu in
  15812. hppa*64*)
  15813. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15814. ;;
  15815. ia64*)
  15816. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15817. ;;
  15818. *)
  15819. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15820. ;;
  15821. esac
  15822. else
  15823. case $host_cpu in
  15824. hppa*64*)
  15825. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15826. ;;
  15827. ia64*)
  15828. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15829. ;;
  15830. *)
  15831. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15832. ;;
  15833. esac
  15834. fi
  15835. if test "$with_gnu_ld" = no; then
  15836. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15837. hardcode_libdir_separator_GCJ=:
  15838. case $host_cpu in
  15839. hppa*64*|ia64*)
  15840. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15841. hardcode_direct_GCJ=no
  15842. hardcode_shlibpath_var_GCJ=no
  15843. ;;
  15844. *)
  15845. hardcode_direct_GCJ=yes
  15846. export_dynamic_flag_spec_GCJ='${wl}-E'
  15847. # hardcode_minus_L: Not really in the search PATH,
  15848. # but as the default location of the library.
  15849. hardcode_minus_L_GCJ=yes
  15850. ;;
  15851. esac
  15852. fi
  15853. ;;
  15854. irix5* | irix6* | nonstopux*)
  15855. if test "$GCC" = yes; then
  15856. 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'
  15857. else
  15858. 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'
  15859. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15860. fi
  15861. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15862. hardcode_libdir_separator_GCJ=:
  15863. link_all_deplibs_GCJ=yes
  15864. ;;
  15865. netbsd*)
  15866. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15867. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15868. else
  15869. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15870. fi
  15871. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15872. hardcode_direct_GCJ=yes
  15873. hardcode_shlibpath_var_GCJ=no
  15874. ;;
  15875. newsos6)
  15876. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15877. hardcode_direct_GCJ=yes
  15878. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15879. hardcode_libdir_separator_GCJ=:
  15880. hardcode_shlibpath_var_GCJ=no
  15881. ;;
  15882. openbsd*)
  15883. if test -f /usr/libexec/ld.so; then
  15884. hardcode_direct_GCJ=yes
  15885. hardcode_shlibpath_var_GCJ=no
  15886. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15887. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15888. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15889. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15890. export_dynamic_flag_spec_GCJ='${wl}-E'
  15891. else
  15892. case $host_os in
  15893. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15894. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15895. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15896. ;;
  15897. *)
  15898. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15899. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15900. ;;
  15901. esac
  15902. fi
  15903. else
  15904. ld_shlibs_GCJ=no
  15905. fi
  15906. ;;
  15907. os2*)
  15908. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15909. hardcode_minus_L_GCJ=yes
  15910. allow_undefined_flag_GCJ=unsupported
  15911. 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'
  15912. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15913. ;;
  15914. osf3*)
  15915. if test "$GCC" = yes; then
  15916. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15917. 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'
  15918. else
  15919. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15920. 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'
  15921. fi
  15922. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15923. hardcode_libdir_separator_GCJ=:
  15924. ;;
  15925. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15926. if test "$GCC" = yes; then
  15927. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15928. 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'
  15929. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15930. else
  15931. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15932. 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'
  15933. 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~
  15934. $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'
  15935. # Both c and cxx compiler support -rpath directly
  15936. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15937. fi
  15938. hardcode_libdir_separator_GCJ=:
  15939. ;;
  15940. solaris*)
  15941. no_undefined_flag_GCJ=' -z text'
  15942. if test "$GCC" = yes; then
  15943. wlarc='${wl}'
  15944. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15945. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15946. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15947. else
  15948. wlarc=''
  15949. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15950. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15951. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15952. fi
  15953. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15954. hardcode_shlibpath_var_GCJ=no
  15955. case $host_os in
  15956. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15957. *)
  15958. # The compiler driver will combine and reorder linker options,
  15959. # but understands `-z linker_flag'. GCC discards it without `$wl',
  15960. # but is careful enough not to reorder.
  15961. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15962. if test "$GCC" = yes; then
  15963. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  15964. else
  15965. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  15966. fi
  15967. ;;
  15968. esac
  15969. link_all_deplibs_GCJ=yes
  15970. ;;
  15971. sunos4*)
  15972. if test "x$host_vendor" = xsequent; then
  15973. # Use $CC to link under sequent, because it throws in some extra .o
  15974. # files that make .init and .fini sections work.
  15975. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15976. else
  15977. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15978. fi
  15979. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15980. hardcode_direct_GCJ=yes
  15981. hardcode_minus_L_GCJ=yes
  15982. hardcode_shlibpath_var_GCJ=no
  15983. ;;
  15984. sysv4)
  15985. case $host_vendor in
  15986. sni)
  15987. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15988. hardcode_direct_GCJ=yes # is this really true???
  15989. ;;
  15990. siemens)
  15991. ## LD is ld it makes a PLAMLIB
  15992. ## CC just makes a GrossModule.
  15993. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15994. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15995. hardcode_direct_GCJ=no
  15996. ;;
  15997. motorola)
  15998. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15999. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16000. ;;
  16001. esac
  16002. runpath_var='LD_RUN_PATH'
  16003. hardcode_shlibpath_var_GCJ=no
  16004. ;;
  16005. sysv4.3*)
  16006. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16007. hardcode_shlibpath_var_GCJ=no
  16008. export_dynamic_flag_spec_GCJ='-Bexport'
  16009. ;;
  16010. sysv4*MP*)
  16011. if test -d /usr/nec; then
  16012. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16013. hardcode_shlibpath_var_GCJ=no
  16014. runpath_var=LD_RUN_PATH
  16015. hardcode_runpath_var=yes
  16016. ld_shlibs_GCJ=yes
  16017. fi
  16018. ;;
  16019. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16020. no_undefined_flag_GCJ='${wl}-z,text'
  16021. archive_cmds_need_lc_GCJ=no
  16022. hardcode_shlibpath_var_GCJ=no
  16023. runpath_var='LD_RUN_PATH'
  16024. if test "$GCC" = yes; then
  16025. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16026. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16027. else
  16028. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16029. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16030. fi
  16031. ;;
  16032. sysv5* | sco3.2v5* | sco5v6*)
  16033. # Note: We can NOT use -z defs as we might desire, because we do not
  16034. # link with -lc, and that would cause any symbols used from libc to
  16035. # always be unresolved, which means just about no library would
  16036. # ever link correctly. If we're not using GNU ld we use -z text
  16037. # though, which does catch some bad symbols but isn't as heavy-handed
  16038. # as -z defs.
  16039. no_undefined_flag_GCJ='${wl}-z,text'
  16040. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16041. archive_cmds_need_lc_GCJ=no
  16042. hardcode_shlibpath_var_GCJ=no
  16043. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16044. hardcode_libdir_separator_GCJ=':'
  16045. link_all_deplibs_GCJ=yes
  16046. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16047. runpath_var='LD_RUN_PATH'
  16048. if test "$GCC" = yes; then
  16049. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16050. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16051. else
  16052. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16053. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16054. fi
  16055. ;;
  16056. uts4*)
  16057. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16058. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16059. hardcode_shlibpath_var_GCJ=no
  16060. ;;
  16061. *)
  16062. ld_shlibs_GCJ=no
  16063. ;;
  16064. esac
  16065. fi
  16066. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16067. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16068. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16069. #
  16070. # Do we need to explicitly link libc?
  16071. #
  16072. case "x$archive_cmds_need_lc_GCJ" in
  16073. x|xyes)
  16074. # Assume -lc should be added
  16075. archive_cmds_need_lc_GCJ=yes
  16076. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16077. case $archive_cmds_GCJ in
  16078. *'~'*)
  16079. # FIXME: we may have to deal with multi-command sequences.
  16080. ;;
  16081. '$CC '*)
  16082. # Test whether the compiler implicitly links with -lc since on some
  16083. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16084. # to ld, don't add -lc before -lgcc.
  16085. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16086. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16087. $rm conftest*
  16088. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16089. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16090. (eval $ac_compile) 2>&5
  16091. ac_status=$?
  16092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16093. (exit $ac_status); } 2>conftest.err; then
  16094. soname=conftest
  16095. lib=conftest
  16096. libobjs=conftest.$ac_objext
  16097. deplibs=
  16098. wl=$lt_prog_compiler_wl_GCJ
  16099. pic_flag=$lt_prog_compiler_pic_GCJ
  16100. compiler_flags=-v
  16101. linker_flags=-v
  16102. verstring=
  16103. output_objdir=.
  16104. libname=conftest
  16105. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16106. allow_undefined_flag_GCJ=
  16107. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16108. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16109. ac_status=$?
  16110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16111. (exit $ac_status); }
  16112. then
  16113. archive_cmds_need_lc_GCJ=no
  16114. else
  16115. archive_cmds_need_lc_GCJ=yes
  16116. fi
  16117. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16118. else
  16119. cat conftest.err 1>&5
  16120. fi
  16121. $rm conftest*
  16122. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16123. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16124. ;;
  16125. esac
  16126. fi
  16127. ;;
  16128. esac
  16129. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16130. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16131. library_names_spec=
  16132. libname_spec='lib$name'
  16133. soname_spec=
  16134. shrext_cmds=".so"
  16135. postinstall_cmds=
  16136. postuninstall_cmds=
  16137. finish_cmds=
  16138. finish_eval=
  16139. shlibpath_var=
  16140. shlibpath_overrides_runpath=unknown
  16141. version_type=none
  16142. dynamic_linker="$host_os ld.so"
  16143. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16144. need_lib_prefix=unknown
  16145. hardcode_into_libs=no
  16146. # when you set need_version to no, make sure it does not cause -set_version
  16147. # flags to be left without arguments
  16148. need_version=unknown
  16149. case $host_os in
  16150. aix3*)
  16151. version_type=linux
  16152. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16153. shlibpath_var=LIBPATH
  16154. # AIX 3 has no versioning support, so we append a major version to the name.
  16155. soname_spec='${libname}${release}${shared_ext}$major'
  16156. ;;
  16157. aix4* | aix5*)
  16158. version_type=linux
  16159. need_lib_prefix=no
  16160. need_version=no
  16161. hardcode_into_libs=yes
  16162. if test "$host_cpu" = ia64; then
  16163. # AIX 5 supports IA64
  16164. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16165. shlibpath_var=LD_LIBRARY_PATH
  16166. else
  16167. # With GCC up to 2.95.x, collect2 would create an import file
  16168. # for dependence libraries. The import file would start with
  16169. # the line `#! .'. This would cause the generated library to
  16170. # depend on `.', always an invalid library. This was fixed in
  16171. # development snapshots of GCC prior to 3.0.
  16172. case $host_os in
  16173. aix4 | aix4.[01] | aix4.[01].*)
  16174. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16175. echo ' yes '
  16176. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16177. :
  16178. else
  16179. can_build_shared=no
  16180. fi
  16181. ;;
  16182. esac
  16183. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16184. # soname into executable. Probably we can add versioning support to
  16185. # collect2, so additional links can be useful in future.
  16186. if test "$aix_use_runtimelinking" = yes; then
  16187. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16188. # instead of lib<name>.a to let people know that these are not
  16189. # typical AIX shared libraries.
  16190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16191. else
  16192. # We preserve .a as extension for shared libraries through AIX4.2
  16193. # and later when we are not doing run time linking.
  16194. library_names_spec='${libname}${release}.a $libname.a'
  16195. soname_spec='${libname}${release}${shared_ext}$major'
  16196. fi
  16197. shlibpath_var=LIBPATH
  16198. fi
  16199. ;;
  16200. amigaos*)
  16201. library_names_spec='$libname.ixlibrary $libname.a'
  16202. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16203. 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'
  16204. ;;
  16205. beos*)
  16206. library_names_spec='${libname}${shared_ext}'
  16207. dynamic_linker="$host_os ld.so"
  16208. shlibpath_var=LIBRARY_PATH
  16209. ;;
  16210. bsdi[45]*)
  16211. version_type=linux
  16212. need_version=no
  16213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16214. soname_spec='${libname}${release}${shared_ext}$major'
  16215. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16216. shlibpath_var=LD_LIBRARY_PATH
  16217. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16218. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16219. # the default ld.so.conf also contains /usr/contrib/lib and
  16220. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16221. # libtool to hard-code these into programs
  16222. ;;
  16223. cygwin* | mingw* | pw32*)
  16224. version_type=windows
  16225. shrext_cmds=".dll"
  16226. need_version=no
  16227. need_lib_prefix=no
  16228. case $GCC,$host_os in
  16229. yes,cygwin* | yes,mingw* | yes,pw32*)
  16230. library_names_spec='$libname.dll.a'
  16231. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16232. postinstall_cmds='base_file=`basename \${file}`~
  16233. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16234. dldir=$destdir/`dirname \$dlpath`~
  16235. test -d \$dldir || mkdir -p \$dldir~
  16236. $install_prog $dir/$dlname \$dldir/$dlname~
  16237. chmod a+x \$dldir/$dlname'
  16238. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16239. dlpath=$dir/\$dldll~
  16240. $rm \$dlpath'
  16241. shlibpath_overrides_runpath=yes
  16242. case $host_os in
  16243. cygwin*)
  16244. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16245. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16246. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16247. ;;
  16248. mingw*)
  16249. # MinGW DLLs use traditional 'lib' prefix
  16250. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16251. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16252. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16253. # It is most probably a Windows format PATH printed by
  16254. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16255. # path with ; separators, and with drive letters. We can handle the
  16256. # drive letters (cygwin fileutils understands them), so leave them,
  16257. # especially as we might pass files found there to a mingw objdump,
  16258. # which wouldn't understand a cygwinified path. Ahh.
  16259. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16260. else
  16261. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16262. fi
  16263. ;;
  16264. pw32*)
  16265. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16266. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16267. ;;
  16268. esac
  16269. ;;
  16270. *)
  16271. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16272. ;;
  16273. esac
  16274. dynamic_linker='Win32 ld.exe'
  16275. # FIXME: first we should search . and the directory the executable is in
  16276. shlibpath_var=PATH
  16277. ;;
  16278. darwin* | rhapsody*)
  16279. dynamic_linker="$host_os dyld"
  16280. version_type=darwin
  16281. need_lib_prefix=no
  16282. need_version=no
  16283. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16284. soname_spec='${libname}${release}${major}$shared_ext'
  16285. shlibpath_overrides_runpath=yes
  16286. shlibpath_var=DYLD_LIBRARY_PATH
  16287. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16288. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16289. ;;
  16290. dgux*)
  16291. version_type=linux
  16292. need_lib_prefix=no
  16293. need_version=no
  16294. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16295. soname_spec='${libname}${release}${shared_ext}$major'
  16296. shlibpath_var=LD_LIBRARY_PATH
  16297. ;;
  16298. freebsd1*)
  16299. dynamic_linker=no
  16300. ;;
  16301. freebsd* | dragonfly*)
  16302. # DragonFly does not have aout. When/if they implement a new
  16303. # versioning mechanism, adjust this.
  16304. if test -x /usr/bin/objformat; then
  16305. objformat=`/usr/bin/objformat`
  16306. else
  16307. case $host_os in
  16308. freebsd[123]*) objformat=aout ;;
  16309. *) objformat=elf ;;
  16310. esac
  16311. fi
  16312. version_type=freebsd-$objformat
  16313. case $version_type in
  16314. freebsd-elf*)
  16315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16316. need_version=no
  16317. need_lib_prefix=no
  16318. ;;
  16319. freebsd-*)
  16320. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16321. need_version=yes
  16322. ;;
  16323. esac
  16324. shlibpath_var=LD_LIBRARY_PATH
  16325. case $host_os in
  16326. freebsd2*)
  16327. shlibpath_overrides_runpath=yes
  16328. ;;
  16329. freebsd3.[01]* | freebsdelf3.[01]*)
  16330. shlibpath_overrides_runpath=yes
  16331. hardcode_into_libs=yes
  16332. ;;
  16333. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16334. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16335. shlibpath_overrides_runpath=no
  16336. hardcode_into_libs=yes
  16337. ;;
  16338. *) # from 4.6 on, and DragonFly
  16339. shlibpath_overrides_runpath=yes
  16340. hardcode_into_libs=yes
  16341. ;;
  16342. esac
  16343. ;;
  16344. gnu*)
  16345. version_type=linux
  16346. need_lib_prefix=no
  16347. need_version=no
  16348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16349. soname_spec='${libname}${release}${shared_ext}$major'
  16350. shlibpath_var=LD_LIBRARY_PATH
  16351. hardcode_into_libs=yes
  16352. ;;
  16353. hpux9* | hpux10* | hpux11*)
  16354. # Give a soname corresponding to the major version so that dld.sl refuses to
  16355. # link against other versions.
  16356. version_type=sunos
  16357. need_lib_prefix=no
  16358. need_version=no
  16359. case $host_cpu in
  16360. ia64*)
  16361. shrext_cmds='.so'
  16362. hardcode_into_libs=yes
  16363. dynamic_linker="$host_os dld.so"
  16364. shlibpath_var=LD_LIBRARY_PATH
  16365. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16367. soname_spec='${libname}${release}${shared_ext}$major'
  16368. if test "X$HPUX_IA64_MODE" = X32; then
  16369. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16370. else
  16371. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16372. fi
  16373. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16374. ;;
  16375. hppa*64*)
  16376. shrext_cmds='.sl'
  16377. hardcode_into_libs=yes
  16378. dynamic_linker="$host_os dld.sl"
  16379. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16380. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16382. soname_spec='${libname}${release}${shared_ext}$major'
  16383. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16384. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16385. ;;
  16386. *)
  16387. shrext_cmds='.sl'
  16388. dynamic_linker="$host_os dld.sl"
  16389. shlibpath_var=SHLIB_PATH
  16390. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16392. soname_spec='${libname}${release}${shared_ext}$major'
  16393. ;;
  16394. esac
  16395. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16396. postinstall_cmds='chmod 555 $lib'
  16397. ;;
  16398. interix[3-9]*)
  16399. version_type=linux
  16400. need_lib_prefix=no
  16401. need_version=no
  16402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16403. soname_spec='${libname}${release}${shared_ext}$major'
  16404. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16405. shlibpath_var=LD_LIBRARY_PATH
  16406. shlibpath_overrides_runpath=no
  16407. hardcode_into_libs=yes
  16408. ;;
  16409. irix5* | irix6* | nonstopux*)
  16410. case $host_os in
  16411. nonstopux*) version_type=nonstopux ;;
  16412. *)
  16413. if test "$lt_cv_prog_gnu_ld" = yes; then
  16414. version_type=linux
  16415. else
  16416. version_type=irix
  16417. fi ;;
  16418. esac
  16419. need_lib_prefix=no
  16420. need_version=no
  16421. soname_spec='${libname}${release}${shared_ext}$major'
  16422. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16423. case $host_os in
  16424. irix5* | nonstopux*)
  16425. libsuff= shlibsuff=
  16426. ;;
  16427. *)
  16428. case $LD in # libtool.m4 will add one of these switches to LD
  16429. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16430. libsuff= shlibsuff= libmagic=32-bit;;
  16431. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16432. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16433. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16434. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16435. *) libsuff= shlibsuff= libmagic=never-match;;
  16436. esac
  16437. ;;
  16438. esac
  16439. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16440. shlibpath_overrides_runpath=no
  16441. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16442. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16443. hardcode_into_libs=yes
  16444. ;;
  16445. # No shared lib support for Linux oldld, aout, or coff.
  16446. linux*oldld* | linux*aout* | linux*coff*)
  16447. dynamic_linker=no
  16448. ;;
  16449. # This must be Linux ELF.
  16450. linux* | k*bsd*-gnu)
  16451. version_type=linux
  16452. need_lib_prefix=no
  16453. need_version=no
  16454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16455. soname_spec='${libname}${release}${shared_ext}$major'
  16456. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16457. shlibpath_var=LD_LIBRARY_PATH
  16458. shlibpath_overrides_runpath=no
  16459. # This implies no fast_install, which is unacceptable.
  16460. # Some rework will be needed to allow for fast_install
  16461. # before this can be enabled.
  16462. hardcode_into_libs=yes
  16463. # Append ld.so.conf contents to the search path
  16464. if test -f /etc/ld.so.conf; then
  16465. 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' ' '`
  16466. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16467. fi
  16468. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16469. # powerpc, because MkLinux only supported shared libraries with the
  16470. # GNU dynamic linker. Since this was broken with cross compilers,
  16471. # most powerpc-linux boxes support dynamic linking these days and
  16472. # people can always --disable-shared, the test was removed, and we
  16473. # assume the GNU/Linux dynamic linker is in use.
  16474. dynamic_linker='GNU/Linux ld.so'
  16475. ;;
  16476. netbsd*)
  16477. version_type=sunos
  16478. need_lib_prefix=no
  16479. need_version=no
  16480. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16483. dynamic_linker='NetBSD (a.out) ld.so'
  16484. else
  16485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16486. soname_spec='${libname}${release}${shared_ext}$major'
  16487. dynamic_linker='NetBSD ld.elf_so'
  16488. fi
  16489. shlibpath_var=LD_LIBRARY_PATH
  16490. shlibpath_overrides_runpath=yes
  16491. hardcode_into_libs=yes
  16492. ;;
  16493. newsos6)
  16494. version_type=linux
  16495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16496. shlibpath_var=LD_LIBRARY_PATH
  16497. shlibpath_overrides_runpath=yes
  16498. ;;
  16499. nto-qnx*)
  16500. version_type=linux
  16501. need_lib_prefix=no
  16502. need_version=no
  16503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16504. soname_spec='${libname}${release}${shared_ext}$major'
  16505. shlibpath_var=LD_LIBRARY_PATH
  16506. shlibpath_overrides_runpath=yes
  16507. ;;
  16508. openbsd*)
  16509. version_type=sunos
  16510. sys_lib_dlsearch_path_spec="/usr/lib"
  16511. need_lib_prefix=no
  16512. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16513. case $host_os in
  16514. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16515. *) need_version=no ;;
  16516. esac
  16517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16518. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16519. shlibpath_var=LD_LIBRARY_PATH
  16520. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16521. case $host_os in
  16522. openbsd2.[89] | openbsd2.[89].*)
  16523. shlibpath_overrides_runpath=no
  16524. ;;
  16525. *)
  16526. shlibpath_overrides_runpath=yes
  16527. ;;
  16528. esac
  16529. else
  16530. shlibpath_overrides_runpath=yes
  16531. fi
  16532. ;;
  16533. os2*)
  16534. libname_spec='$name'
  16535. shrext_cmds=".dll"
  16536. need_lib_prefix=no
  16537. library_names_spec='$libname${shared_ext} $libname.a'
  16538. dynamic_linker='OS/2 ld.exe'
  16539. shlibpath_var=LIBPATH
  16540. ;;
  16541. osf3* | osf4* | osf5*)
  16542. version_type=osf
  16543. need_lib_prefix=no
  16544. need_version=no
  16545. soname_spec='${libname}${release}${shared_ext}$major'
  16546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16547. shlibpath_var=LD_LIBRARY_PATH
  16548. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16549. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16550. ;;
  16551. rdos*)
  16552. dynamic_linker=no
  16553. ;;
  16554. solaris*)
  16555. version_type=linux
  16556. need_lib_prefix=no
  16557. need_version=no
  16558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16559. soname_spec='${libname}${release}${shared_ext}$major'
  16560. shlibpath_var=LD_LIBRARY_PATH
  16561. shlibpath_overrides_runpath=yes
  16562. hardcode_into_libs=yes
  16563. # ldd complains unless libraries are executable
  16564. postinstall_cmds='chmod +x $lib'
  16565. ;;
  16566. sunos4*)
  16567. version_type=sunos
  16568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16569. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16570. shlibpath_var=LD_LIBRARY_PATH
  16571. shlibpath_overrides_runpath=yes
  16572. if test "$with_gnu_ld" = yes; then
  16573. need_lib_prefix=no
  16574. fi
  16575. need_version=yes
  16576. ;;
  16577. sysv4 | sysv4.3*)
  16578. version_type=linux
  16579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16580. soname_spec='${libname}${release}${shared_ext}$major'
  16581. shlibpath_var=LD_LIBRARY_PATH
  16582. case $host_vendor in
  16583. sni)
  16584. shlibpath_overrides_runpath=no
  16585. need_lib_prefix=no
  16586. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16587. runpath_var=LD_RUN_PATH
  16588. ;;
  16589. siemens)
  16590. need_lib_prefix=no
  16591. ;;
  16592. motorola)
  16593. need_lib_prefix=no
  16594. need_version=no
  16595. shlibpath_overrides_runpath=no
  16596. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16597. ;;
  16598. esac
  16599. ;;
  16600. sysv4*MP*)
  16601. if test -d /usr/nec ;then
  16602. version_type=linux
  16603. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16604. soname_spec='$libname${shared_ext}.$major'
  16605. shlibpath_var=LD_LIBRARY_PATH
  16606. fi
  16607. ;;
  16608. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16609. version_type=freebsd-elf
  16610. need_lib_prefix=no
  16611. need_version=no
  16612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16613. soname_spec='${libname}${release}${shared_ext}$major'
  16614. shlibpath_var=LD_LIBRARY_PATH
  16615. hardcode_into_libs=yes
  16616. if test "$with_gnu_ld" = yes; then
  16617. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16618. shlibpath_overrides_runpath=no
  16619. else
  16620. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16621. shlibpath_overrides_runpath=yes
  16622. case $host_os in
  16623. sco3.2v5*)
  16624. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16625. ;;
  16626. esac
  16627. fi
  16628. sys_lib_dlsearch_path_spec='/usr/lib'
  16629. ;;
  16630. uts4*)
  16631. version_type=linux
  16632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16633. soname_spec='${libname}${release}${shared_ext}$major'
  16634. shlibpath_var=LD_LIBRARY_PATH
  16635. ;;
  16636. *)
  16637. dynamic_linker=no
  16638. ;;
  16639. esac
  16640. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16641. echo "${ECHO_T}$dynamic_linker" >&6; }
  16642. test "$dynamic_linker" = no && can_build_shared=no
  16643. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16644. if test "$GCC" = yes; then
  16645. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16646. fi
  16647. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16648. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16649. hardcode_action_GCJ=
  16650. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16651. test -n "$runpath_var_GCJ" || \
  16652. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16653. # We can hardcode non-existant directories.
  16654. if test "$hardcode_direct_GCJ" != no &&
  16655. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16656. # have to relink, otherwise we might link with an installed library
  16657. # when we should be linking with a yet-to-be-installed one
  16658. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16659. test "$hardcode_minus_L_GCJ" != no; then
  16660. # Linking always hardcodes the temporary library directory.
  16661. hardcode_action_GCJ=relink
  16662. else
  16663. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16664. hardcode_action_GCJ=immediate
  16665. fi
  16666. else
  16667. # We cannot hardcode anything, or else we can only hardcode existing
  16668. # directories.
  16669. hardcode_action_GCJ=unsupported
  16670. fi
  16671. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16672. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16673. if test "$hardcode_action_GCJ" = relink; then
  16674. # Fast installation is not supported
  16675. enable_fast_install=no
  16676. elif test "$shlibpath_overrides_runpath" = yes ||
  16677. test "$enable_shared" = no; then
  16678. # Fast installation is not necessary
  16679. enable_fast_install=needless
  16680. fi
  16681. # The else clause should only fire when bootstrapping the
  16682. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16683. # with your package, and you will get complaints that there are
  16684. # no rules to generate ltmain.sh.
  16685. if test -f "$ltmain"; then
  16686. # See if we are running on zsh, and set the options which allow our commands through
  16687. # without removal of \ escapes.
  16688. if test -n "${ZSH_VERSION+set}" ; then
  16689. setopt NO_GLOB_SUBST
  16690. fi
  16691. # Now quote all the things that may contain metacharacters while being
  16692. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16693. # variables and quote the copies for generation of the libtool script.
  16694. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16695. SED SHELL STRIP \
  16696. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16697. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16698. deplibs_check_method reload_flag reload_cmds need_locks \
  16699. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16700. lt_cv_sys_global_symbol_to_c_name_address \
  16701. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16702. old_postinstall_cmds old_postuninstall_cmds \
  16703. compiler_GCJ \
  16704. CC_GCJ \
  16705. LD_GCJ \
  16706. lt_prog_compiler_wl_GCJ \
  16707. lt_prog_compiler_pic_GCJ \
  16708. lt_prog_compiler_static_GCJ \
  16709. lt_prog_compiler_no_builtin_flag_GCJ \
  16710. export_dynamic_flag_spec_GCJ \
  16711. thread_safe_flag_spec_GCJ \
  16712. whole_archive_flag_spec_GCJ \
  16713. enable_shared_with_static_runtimes_GCJ \
  16714. old_archive_cmds_GCJ \
  16715. old_archive_from_new_cmds_GCJ \
  16716. predep_objects_GCJ \
  16717. postdep_objects_GCJ \
  16718. predeps_GCJ \
  16719. postdeps_GCJ \
  16720. compiler_lib_search_path_GCJ \
  16721. archive_cmds_GCJ \
  16722. archive_expsym_cmds_GCJ \
  16723. postinstall_cmds_GCJ \
  16724. postuninstall_cmds_GCJ \
  16725. old_archive_from_expsyms_cmds_GCJ \
  16726. allow_undefined_flag_GCJ \
  16727. no_undefined_flag_GCJ \
  16728. export_symbols_cmds_GCJ \
  16729. hardcode_libdir_flag_spec_GCJ \
  16730. hardcode_libdir_flag_spec_ld_GCJ \
  16731. hardcode_libdir_separator_GCJ \
  16732. hardcode_automatic_GCJ \
  16733. module_cmds_GCJ \
  16734. module_expsym_cmds_GCJ \
  16735. lt_cv_prog_compiler_c_o_GCJ \
  16736. fix_srcfile_path_GCJ \
  16737. exclude_expsyms_GCJ \
  16738. include_expsyms_GCJ; do
  16739. case $var in
  16740. old_archive_cmds_GCJ | \
  16741. old_archive_from_new_cmds_GCJ | \
  16742. archive_cmds_GCJ | \
  16743. archive_expsym_cmds_GCJ | \
  16744. module_cmds_GCJ | \
  16745. module_expsym_cmds_GCJ | \
  16746. old_archive_from_expsyms_cmds_GCJ | \
  16747. export_symbols_cmds_GCJ | \
  16748. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16749. postinstall_cmds | postuninstall_cmds | \
  16750. old_postinstall_cmds | old_postuninstall_cmds | \
  16751. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16752. # Double-quote double-evaled strings.
  16753. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16754. ;;
  16755. *)
  16756. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16757. ;;
  16758. esac
  16759. done
  16760. case $lt_echo in
  16761. *'\$0 --fallback-echo"')
  16762. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16763. ;;
  16764. esac
  16765. cfgfile="$ofile"
  16766. cat <<__EOF__ >> "$cfgfile"
  16767. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16768. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16769. # Shell to use when invoking shell scripts.
  16770. SHELL=$lt_SHELL
  16771. # Whether or not to build shared libraries.
  16772. build_libtool_libs=$enable_shared
  16773. # Whether or not to build static libraries.
  16774. build_old_libs=$enable_static
  16775. # Whether or not to add -lc for building shared libraries.
  16776. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16777. # Whether or not to disallow shared libs when runtime libs are static
  16778. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16779. # Whether or not to optimize for fast installation.
  16780. fast_install=$enable_fast_install
  16781. # The host system.
  16782. host_alias=$host_alias
  16783. host=$host
  16784. host_os=$host_os
  16785. # The build system.
  16786. build_alias=$build_alias
  16787. build=$build
  16788. build_os=$build_os
  16789. # An echo program that does not interpret backslashes.
  16790. echo=$lt_echo
  16791. # The archiver.
  16792. AR=$lt_AR
  16793. AR_FLAGS=$lt_AR_FLAGS
  16794. # A C compiler.
  16795. LTCC=$lt_LTCC
  16796. # LTCC compiler flags.
  16797. LTCFLAGS=$lt_LTCFLAGS
  16798. # A language-specific compiler.
  16799. CC=$lt_compiler_GCJ
  16800. # Is the compiler the GNU C compiler?
  16801. with_gcc=$GCC_GCJ
  16802. # An ERE matcher.
  16803. EGREP=$lt_EGREP
  16804. # The linker used to build libraries.
  16805. LD=$lt_LD_GCJ
  16806. # Whether we need hard or soft links.
  16807. LN_S=$lt_LN_S
  16808. # A BSD-compatible nm program.
  16809. NM=$lt_NM
  16810. # A symbol stripping program
  16811. STRIP=$lt_STRIP
  16812. # Used to examine libraries when file_magic_cmd begins "file"
  16813. MAGIC_CMD=$MAGIC_CMD
  16814. # Used on cygwin: DLL creation program.
  16815. DLLTOOL="$DLLTOOL"
  16816. # Used on cygwin: object dumper.
  16817. OBJDUMP="$OBJDUMP"
  16818. # Used on cygwin: assembler.
  16819. AS="$AS"
  16820. # The name of the directory that contains temporary libtool files.
  16821. objdir=$objdir
  16822. # How to create reloadable object files.
  16823. reload_flag=$lt_reload_flag
  16824. reload_cmds=$lt_reload_cmds
  16825. # How to pass a linker flag through the compiler.
  16826. wl=$lt_lt_prog_compiler_wl_GCJ
  16827. # Object file suffix (normally "o").
  16828. objext="$ac_objext"
  16829. # Old archive suffix (normally "a").
  16830. libext="$libext"
  16831. # Shared library suffix (normally ".so").
  16832. shrext_cmds='$shrext_cmds'
  16833. # Executable file suffix (normally "").
  16834. exeext="$exeext"
  16835. # Additional compiler flags for building library objects.
  16836. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16837. pic_mode=$pic_mode
  16838. # What is the maximum length of a command?
  16839. max_cmd_len=$lt_cv_sys_max_cmd_len
  16840. # Does compiler simultaneously support -c and -o options?
  16841. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16842. # Must we lock files when doing compilation?
  16843. need_locks=$lt_need_locks
  16844. # Do we need the lib prefix for modules?
  16845. need_lib_prefix=$need_lib_prefix
  16846. # Do we need a version for libraries?
  16847. need_version=$need_version
  16848. # Whether dlopen is supported.
  16849. dlopen_support=$enable_dlopen
  16850. # Whether dlopen of programs is supported.
  16851. dlopen_self=$enable_dlopen_self
  16852. # Whether dlopen of statically linked programs is supported.
  16853. dlopen_self_static=$enable_dlopen_self_static
  16854. # Compiler flag to prevent dynamic linking.
  16855. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16856. # Compiler flag to turn off builtin functions.
  16857. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16858. # Compiler flag to allow reflexive dlopens.
  16859. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16860. # Compiler flag to generate shared objects directly from archives.
  16861. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16862. # Compiler flag to generate thread-safe objects.
  16863. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16864. # Library versioning type.
  16865. version_type=$version_type
  16866. # Format of library name prefix.
  16867. libname_spec=$lt_libname_spec
  16868. # List of archive names. First name is the real one, the rest are links.
  16869. # The last name is the one that the linker finds with -lNAME.
  16870. library_names_spec=$lt_library_names_spec
  16871. # The coded name of the library, if different from the real name.
  16872. soname_spec=$lt_soname_spec
  16873. # Commands used to build and install an old-style archive.
  16874. RANLIB=$lt_RANLIB
  16875. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16876. old_postinstall_cmds=$lt_old_postinstall_cmds
  16877. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16878. # Create an old-style archive from a shared archive.
  16879. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16880. # Create a temporary old-style archive to link instead of a shared archive.
  16881. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16882. # Commands used to build and install a shared archive.
  16883. archive_cmds=$lt_archive_cmds_GCJ
  16884. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16885. postinstall_cmds=$lt_postinstall_cmds
  16886. postuninstall_cmds=$lt_postuninstall_cmds
  16887. # Commands used to build a loadable module (assumed same as above if empty)
  16888. module_cmds=$lt_module_cmds_GCJ
  16889. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16890. # Commands to strip libraries.
  16891. old_striplib=$lt_old_striplib
  16892. striplib=$lt_striplib
  16893. # Dependencies to place before the objects being linked to create a
  16894. # shared library.
  16895. predep_objects=$lt_predep_objects_GCJ
  16896. # Dependencies to place after the objects being linked to create a
  16897. # shared library.
  16898. postdep_objects=$lt_postdep_objects_GCJ
  16899. # Dependencies to place before the objects being linked to create a
  16900. # shared library.
  16901. predeps=$lt_predeps_GCJ
  16902. # Dependencies to place after the objects being linked to create a
  16903. # shared library.
  16904. postdeps=$lt_postdeps_GCJ
  16905. # The library search path used internally by the compiler when linking
  16906. # a shared library.
  16907. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16908. # Method to check whether dependent libraries are shared objects.
  16909. deplibs_check_method=$lt_deplibs_check_method
  16910. # Command to use when deplibs_check_method == file_magic.
  16911. file_magic_cmd=$lt_file_magic_cmd
  16912. # Flag that allows shared libraries with undefined symbols to be built.
  16913. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16914. # Flag that forces no undefined symbols.
  16915. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16916. # Commands used to finish a libtool library installation in a directory.
  16917. finish_cmds=$lt_finish_cmds
  16918. # Same as above, but a single script fragment to be evaled but not shown.
  16919. finish_eval=$lt_finish_eval
  16920. # Take the output of nm and produce a listing of raw symbols and C names.
  16921. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16922. # Transform the output of nm in a proper C declaration
  16923. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16924. # Transform the output of nm in a C name address pair
  16925. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16926. # This is the shared library runtime path variable.
  16927. runpath_var=$runpath_var
  16928. # This is the shared library path variable.
  16929. shlibpath_var=$shlibpath_var
  16930. # Is shlibpath searched before the hard-coded library search path?
  16931. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16932. # How to hardcode a shared library path into an executable.
  16933. hardcode_action=$hardcode_action_GCJ
  16934. # Whether we should hardcode library paths into libraries.
  16935. hardcode_into_libs=$hardcode_into_libs
  16936. # Flag to hardcode \$libdir into a binary during linking.
  16937. # This must work even if \$libdir does not exist.
  16938. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16939. # If ld is used when linking, flag to hardcode \$libdir into
  16940. # a binary during linking. This must work even if \$libdir does
  16941. # not exist.
  16942. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16943. # Whether we need a single -rpath flag with a separated argument.
  16944. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16945. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16946. # resulting binary.
  16947. hardcode_direct=$hardcode_direct_GCJ
  16948. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16949. # resulting binary.
  16950. hardcode_minus_L=$hardcode_minus_L_GCJ
  16951. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16952. # the resulting binary.
  16953. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16954. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16955. # and all subsequent libraries and executables linked against it.
  16956. hardcode_automatic=$hardcode_automatic_GCJ
  16957. # Variables whose values should be saved in libtool wrapper scripts and
  16958. # restored at relink time.
  16959. variables_saved_for_relink="$variables_saved_for_relink"
  16960. # Whether libtool must link a program against all its dependency libraries.
  16961. link_all_deplibs=$link_all_deplibs_GCJ
  16962. # Compile-time system search path for libraries
  16963. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16964. # Run-time system search path for libraries
  16965. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16966. # Fix the shell variable \$srcfile for the compiler.
  16967. fix_srcfile_path=$lt_fix_srcfile_path
  16968. # Set to yes if exported symbols are required.
  16969. always_export_symbols=$always_export_symbols_GCJ
  16970. # The commands to list exported symbols.
  16971. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16972. # The commands to extract the exported symbol list from a shared archive.
  16973. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16974. # Symbols that should not be listed in the preloaded symbols.
  16975. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16976. # Symbols that must always be exported.
  16977. include_expsyms=$lt_include_expsyms_GCJ
  16978. # ### END LIBTOOL TAG CONFIG: $tagname
  16979. __EOF__
  16980. else
  16981. # If there is no Makefile yet, we rely on a make rule to execute
  16982. # `config.status --recheck' to rerun these tests and create the
  16983. # libtool script then.
  16984. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16985. if test -f "$ltmain_in"; then
  16986. test -f Makefile && make "$ltmain"
  16987. fi
  16988. fi
  16989. ac_ext=c
  16990. ac_cpp='$CPP $CPPFLAGS'
  16991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16994. CC="$lt_save_CC"
  16995. else
  16996. tagname=""
  16997. fi
  16998. ;;
  16999. RC)
  17000. # Source file extension for RC test sources.
  17001. ac_ext=rc
  17002. # Object file extension for compiled RC test sources.
  17003. objext=o
  17004. objext_RC=$objext
  17005. # Code to be used in simple compile tests
  17006. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17007. # Code to be used in simple link tests
  17008. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17009. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17010. # If no C compiler was specified, use CC.
  17011. LTCC=${LTCC-"$CC"}
  17012. # If no C compiler flags were specified, use CFLAGS.
  17013. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17014. # Allow CC to be a program name with arguments.
  17015. compiler=$CC
  17016. # save warnings/boilerplate of simple test code
  17017. ac_outfile=conftest.$ac_objext
  17018. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17019. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17020. _lt_compiler_boilerplate=`cat conftest.err`
  17021. $rm conftest*
  17022. ac_outfile=conftest.$ac_objext
  17023. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17024. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17025. _lt_linker_boilerplate=`cat conftest.err`
  17026. $rm conftest*
  17027. # Allow CC to be a program name with arguments.
  17028. lt_save_CC="$CC"
  17029. CC=${RC-"windres"}
  17030. compiler=$CC
  17031. compiler_RC=$CC
  17032. for cc_temp in $compiler""; do
  17033. case $cc_temp in
  17034. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17035. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17036. \-*) ;;
  17037. *) break;;
  17038. esac
  17039. done
  17040. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17041. lt_cv_prog_compiler_c_o_RC=yes
  17042. # The else clause should only fire when bootstrapping the
  17043. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17044. # with your package, and you will get complaints that there are
  17045. # no rules to generate ltmain.sh.
  17046. if test -f "$ltmain"; then
  17047. # See if we are running on zsh, and set the options which allow our commands through
  17048. # without removal of \ escapes.
  17049. if test -n "${ZSH_VERSION+set}" ; then
  17050. setopt NO_GLOB_SUBST
  17051. fi
  17052. # Now quote all the things that may contain metacharacters while being
  17053. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17054. # variables and quote the copies for generation of the libtool script.
  17055. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17056. SED SHELL STRIP \
  17057. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17058. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17059. deplibs_check_method reload_flag reload_cmds need_locks \
  17060. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17061. lt_cv_sys_global_symbol_to_c_name_address \
  17062. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17063. old_postinstall_cmds old_postuninstall_cmds \
  17064. compiler_RC \
  17065. CC_RC \
  17066. LD_RC \
  17067. lt_prog_compiler_wl_RC \
  17068. lt_prog_compiler_pic_RC \
  17069. lt_prog_compiler_static_RC \
  17070. lt_prog_compiler_no_builtin_flag_RC \
  17071. export_dynamic_flag_spec_RC \
  17072. thread_safe_flag_spec_RC \
  17073. whole_archive_flag_spec_RC \
  17074. enable_shared_with_static_runtimes_RC \
  17075. old_archive_cmds_RC \
  17076. old_archive_from_new_cmds_RC \
  17077. predep_objects_RC \
  17078. postdep_objects_RC \
  17079. predeps_RC \
  17080. postdeps_RC \
  17081. compiler_lib_search_path_RC \
  17082. archive_cmds_RC \
  17083. archive_expsym_cmds_RC \
  17084. postinstall_cmds_RC \
  17085. postuninstall_cmds_RC \
  17086. old_archive_from_expsyms_cmds_RC \
  17087. allow_undefined_flag_RC \
  17088. no_undefined_flag_RC \
  17089. export_symbols_cmds_RC \
  17090. hardcode_libdir_flag_spec_RC \
  17091. hardcode_libdir_flag_spec_ld_RC \
  17092. hardcode_libdir_separator_RC \
  17093. hardcode_automatic_RC \
  17094. module_cmds_RC \
  17095. module_expsym_cmds_RC \
  17096. lt_cv_prog_compiler_c_o_RC \
  17097. fix_srcfile_path_RC \
  17098. exclude_expsyms_RC \
  17099. include_expsyms_RC; do
  17100. case $var in
  17101. old_archive_cmds_RC | \
  17102. old_archive_from_new_cmds_RC | \
  17103. archive_cmds_RC | \
  17104. archive_expsym_cmds_RC | \
  17105. module_cmds_RC | \
  17106. module_expsym_cmds_RC | \
  17107. old_archive_from_expsyms_cmds_RC | \
  17108. export_symbols_cmds_RC | \
  17109. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17110. postinstall_cmds | postuninstall_cmds | \
  17111. old_postinstall_cmds | old_postuninstall_cmds | \
  17112. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17113. # Double-quote double-evaled strings.
  17114. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17115. ;;
  17116. *)
  17117. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17118. ;;
  17119. esac
  17120. done
  17121. case $lt_echo in
  17122. *'\$0 --fallback-echo"')
  17123. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17124. ;;
  17125. esac
  17126. cfgfile="$ofile"
  17127. cat <<__EOF__ >> "$cfgfile"
  17128. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17129. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17130. # Shell to use when invoking shell scripts.
  17131. SHELL=$lt_SHELL
  17132. # Whether or not to build shared libraries.
  17133. build_libtool_libs=$enable_shared
  17134. # Whether or not to build static libraries.
  17135. build_old_libs=$enable_static
  17136. # Whether or not to add -lc for building shared libraries.
  17137. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17138. # Whether or not to disallow shared libs when runtime libs are static
  17139. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17140. # Whether or not to optimize for fast installation.
  17141. fast_install=$enable_fast_install
  17142. # The host system.
  17143. host_alias=$host_alias
  17144. host=$host
  17145. host_os=$host_os
  17146. # The build system.
  17147. build_alias=$build_alias
  17148. build=$build
  17149. build_os=$build_os
  17150. # An echo program that does not interpret backslashes.
  17151. echo=$lt_echo
  17152. # The archiver.
  17153. AR=$lt_AR
  17154. AR_FLAGS=$lt_AR_FLAGS
  17155. # A C compiler.
  17156. LTCC=$lt_LTCC
  17157. # LTCC compiler flags.
  17158. LTCFLAGS=$lt_LTCFLAGS
  17159. # A language-specific compiler.
  17160. CC=$lt_compiler_RC
  17161. # Is the compiler the GNU C compiler?
  17162. with_gcc=$GCC_RC
  17163. # An ERE matcher.
  17164. EGREP=$lt_EGREP
  17165. # The linker used to build libraries.
  17166. LD=$lt_LD_RC
  17167. # Whether we need hard or soft links.
  17168. LN_S=$lt_LN_S
  17169. # A BSD-compatible nm program.
  17170. NM=$lt_NM
  17171. # A symbol stripping program
  17172. STRIP=$lt_STRIP
  17173. # Used to examine libraries when file_magic_cmd begins "file"
  17174. MAGIC_CMD=$MAGIC_CMD
  17175. # Used on cygwin: DLL creation program.
  17176. DLLTOOL="$DLLTOOL"
  17177. # Used on cygwin: object dumper.
  17178. OBJDUMP="$OBJDUMP"
  17179. # Used on cygwin: assembler.
  17180. AS="$AS"
  17181. # The name of the directory that contains temporary libtool files.
  17182. objdir=$objdir
  17183. # How to create reloadable object files.
  17184. reload_flag=$lt_reload_flag
  17185. reload_cmds=$lt_reload_cmds
  17186. # How to pass a linker flag through the compiler.
  17187. wl=$lt_lt_prog_compiler_wl_RC
  17188. # Object file suffix (normally "o").
  17189. objext="$ac_objext"
  17190. # Old archive suffix (normally "a").
  17191. libext="$libext"
  17192. # Shared library suffix (normally ".so").
  17193. shrext_cmds='$shrext_cmds'
  17194. # Executable file suffix (normally "").
  17195. exeext="$exeext"
  17196. # Additional compiler flags for building library objects.
  17197. pic_flag=$lt_lt_prog_compiler_pic_RC
  17198. pic_mode=$pic_mode
  17199. # What is the maximum length of a command?
  17200. max_cmd_len=$lt_cv_sys_max_cmd_len
  17201. # Does compiler simultaneously support -c and -o options?
  17202. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17203. # Must we lock files when doing compilation?
  17204. need_locks=$lt_need_locks
  17205. # Do we need the lib prefix for modules?
  17206. need_lib_prefix=$need_lib_prefix
  17207. # Do we need a version for libraries?
  17208. need_version=$need_version
  17209. # Whether dlopen is supported.
  17210. dlopen_support=$enable_dlopen
  17211. # Whether dlopen of programs is supported.
  17212. dlopen_self=$enable_dlopen_self
  17213. # Whether dlopen of statically linked programs is supported.
  17214. dlopen_self_static=$enable_dlopen_self_static
  17215. # Compiler flag to prevent dynamic linking.
  17216. link_static_flag=$lt_lt_prog_compiler_static_RC
  17217. # Compiler flag to turn off builtin functions.
  17218. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17219. # Compiler flag to allow reflexive dlopens.
  17220. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17221. # Compiler flag to generate shared objects directly from archives.
  17222. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17223. # Compiler flag to generate thread-safe objects.
  17224. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17225. # Library versioning type.
  17226. version_type=$version_type
  17227. # Format of library name prefix.
  17228. libname_spec=$lt_libname_spec
  17229. # List of archive names. First name is the real one, the rest are links.
  17230. # The last name is the one that the linker finds with -lNAME.
  17231. library_names_spec=$lt_library_names_spec
  17232. # The coded name of the library, if different from the real name.
  17233. soname_spec=$lt_soname_spec
  17234. # Commands used to build and install an old-style archive.
  17235. RANLIB=$lt_RANLIB
  17236. old_archive_cmds=$lt_old_archive_cmds_RC
  17237. old_postinstall_cmds=$lt_old_postinstall_cmds
  17238. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17239. # Create an old-style archive from a shared archive.
  17240. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17241. # Create a temporary old-style archive to link instead of a shared archive.
  17242. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17243. # Commands used to build and install a shared archive.
  17244. archive_cmds=$lt_archive_cmds_RC
  17245. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17246. postinstall_cmds=$lt_postinstall_cmds
  17247. postuninstall_cmds=$lt_postuninstall_cmds
  17248. # Commands used to build a loadable module (assumed same as above if empty)
  17249. module_cmds=$lt_module_cmds_RC
  17250. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17251. # Commands to strip libraries.
  17252. old_striplib=$lt_old_striplib
  17253. striplib=$lt_striplib
  17254. # Dependencies to place before the objects being linked to create a
  17255. # shared library.
  17256. predep_objects=$lt_predep_objects_RC
  17257. # Dependencies to place after the objects being linked to create a
  17258. # shared library.
  17259. postdep_objects=$lt_postdep_objects_RC
  17260. # Dependencies to place before the objects being linked to create a
  17261. # shared library.
  17262. predeps=$lt_predeps_RC
  17263. # Dependencies to place after the objects being linked to create a
  17264. # shared library.
  17265. postdeps=$lt_postdeps_RC
  17266. # The library search path used internally by the compiler when linking
  17267. # a shared library.
  17268. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17269. # Method to check whether dependent libraries are shared objects.
  17270. deplibs_check_method=$lt_deplibs_check_method
  17271. # Command to use when deplibs_check_method == file_magic.
  17272. file_magic_cmd=$lt_file_magic_cmd
  17273. # Flag that allows shared libraries with undefined symbols to be built.
  17274. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17275. # Flag that forces no undefined symbols.
  17276. no_undefined_flag=$lt_no_undefined_flag_RC
  17277. # Commands used to finish a libtool library installation in a directory.
  17278. finish_cmds=$lt_finish_cmds
  17279. # Same as above, but a single script fragment to be evaled but not shown.
  17280. finish_eval=$lt_finish_eval
  17281. # Take the output of nm and produce a listing of raw symbols and C names.
  17282. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17283. # Transform the output of nm in a proper C declaration
  17284. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17285. # Transform the output of nm in a C name address pair
  17286. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17287. # This is the shared library runtime path variable.
  17288. runpath_var=$runpath_var
  17289. # This is the shared library path variable.
  17290. shlibpath_var=$shlibpath_var
  17291. # Is shlibpath searched before the hard-coded library search path?
  17292. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17293. # How to hardcode a shared library path into an executable.
  17294. hardcode_action=$hardcode_action_RC
  17295. # Whether we should hardcode library paths into libraries.
  17296. hardcode_into_libs=$hardcode_into_libs
  17297. # Flag to hardcode \$libdir into a binary during linking.
  17298. # This must work even if \$libdir does not exist.
  17299. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17300. # If ld is used when linking, flag to hardcode \$libdir into
  17301. # a binary during linking. This must work even if \$libdir does
  17302. # not exist.
  17303. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17304. # Whether we need a single -rpath flag with a separated argument.
  17305. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17306. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17307. # resulting binary.
  17308. hardcode_direct=$hardcode_direct_RC
  17309. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17310. # resulting binary.
  17311. hardcode_minus_L=$hardcode_minus_L_RC
  17312. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17313. # the resulting binary.
  17314. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17315. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17316. # and all subsequent libraries and executables linked against it.
  17317. hardcode_automatic=$hardcode_automatic_RC
  17318. # Variables whose values should be saved in libtool wrapper scripts and
  17319. # restored at relink time.
  17320. variables_saved_for_relink="$variables_saved_for_relink"
  17321. # Whether libtool must link a program against all its dependency libraries.
  17322. link_all_deplibs=$link_all_deplibs_RC
  17323. # Compile-time system search path for libraries
  17324. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17325. # Run-time system search path for libraries
  17326. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17327. # Fix the shell variable \$srcfile for the compiler.
  17328. fix_srcfile_path=$lt_fix_srcfile_path
  17329. # Set to yes if exported symbols are required.
  17330. always_export_symbols=$always_export_symbols_RC
  17331. # The commands to list exported symbols.
  17332. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17333. # The commands to extract the exported symbol list from a shared archive.
  17334. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17335. # Symbols that should not be listed in the preloaded symbols.
  17336. exclude_expsyms=$lt_exclude_expsyms_RC
  17337. # Symbols that must always be exported.
  17338. include_expsyms=$lt_include_expsyms_RC
  17339. # ### END LIBTOOL TAG CONFIG: $tagname
  17340. __EOF__
  17341. else
  17342. # If there is no Makefile yet, we rely on a make rule to execute
  17343. # `config.status --recheck' to rerun these tests and create the
  17344. # libtool script then.
  17345. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17346. if test -f "$ltmain_in"; then
  17347. test -f Makefile && make "$ltmain"
  17348. fi
  17349. fi
  17350. ac_ext=c
  17351. ac_cpp='$CPP $CPPFLAGS'
  17352. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17353. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17354. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17355. CC="$lt_save_CC"
  17356. ;;
  17357. *)
  17358. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17359. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17360. { (exit 1); exit 1; }; }
  17361. ;;
  17362. esac
  17363. # Append the new tag name to the list of available tags.
  17364. if test -n "$tagname" ; then
  17365. available_tags="$available_tags $tagname"
  17366. fi
  17367. fi
  17368. done
  17369. IFS="$lt_save_ifs"
  17370. # Now substitute the updated list of available tags.
  17371. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17372. mv "${ofile}T" "$ofile"
  17373. chmod +x "$ofile"
  17374. else
  17375. rm -f "${ofile}T"
  17376. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17377. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17378. { (exit 1); exit 1; }; }
  17379. fi
  17380. fi
  17381. # This can be used to rebuild libtool when needed
  17382. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17383. # Always use our own libtool.
  17384. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17385. # Prevent multiple expansion
  17386. ac_ext=c
  17387. ac_cpp='$CPP $CPPFLAGS'
  17388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17391. if test -n "$ac_tool_prefix"; then
  17392. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17393. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17394. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17395. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17396. if test "${ac_cv_prog_CC+set}" = set; then
  17397. echo $ECHO_N "(cached) $ECHO_C" >&6
  17398. else
  17399. if test -n "$CC"; then
  17400. ac_cv_prog_CC="$CC" # Let the user override the test.
  17401. else
  17402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17403. for as_dir in $PATH
  17404. do
  17405. IFS=$as_save_IFS
  17406. test -z "$as_dir" && as_dir=.
  17407. for ac_exec_ext in '' $ac_executable_extensions; do
  17408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17409. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17410. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17411. break 2
  17412. fi
  17413. done
  17414. done
  17415. IFS=$as_save_IFS
  17416. fi
  17417. fi
  17418. CC=$ac_cv_prog_CC
  17419. if test -n "$CC"; then
  17420. { echo "$as_me:$LINENO: result: $CC" >&5
  17421. echo "${ECHO_T}$CC" >&6; }
  17422. else
  17423. { echo "$as_me:$LINENO: result: no" >&5
  17424. echo "${ECHO_T}no" >&6; }
  17425. fi
  17426. fi
  17427. if test -z "$ac_cv_prog_CC"; then
  17428. ac_ct_CC=$CC
  17429. # Extract the first word of "gcc", so it can be a program name with args.
  17430. set dummy gcc; ac_word=$2
  17431. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17432. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17433. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17434. echo $ECHO_N "(cached) $ECHO_C" >&6
  17435. else
  17436. if test -n "$ac_ct_CC"; then
  17437. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17438. else
  17439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17440. for as_dir in $PATH
  17441. do
  17442. IFS=$as_save_IFS
  17443. test -z "$as_dir" && as_dir=.
  17444. for ac_exec_ext in '' $ac_executable_extensions; do
  17445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17446. ac_cv_prog_ac_ct_CC="gcc"
  17447. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17448. break 2
  17449. fi
  17450. done
  17451. done
  17452. IFS=$as_save_IFS
  17453. fi
  17454. fi
  17455. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17456. if test -n "$ac_ct_CC"; then
  17457. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17458. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17459. else
  17460. { echo "$as_me:$LINENO: result: no" >&5
  17461. echo "${ECHO_T}no" >&6; }
  17462. fi
  17463. if test "x$ac_ct_CC" = x; then
  17464. CC=""
  17465. else
  17466. case $cross_compiling:$ac_tool_warned in
  17467. yes:)
  17468. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17469. whose name does not start with the host triplet. If you think this
  17470. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17471. echo "$as_me: 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." >&2;}
  17474. ac_tool_warned=yes ;;
  17475. esac
  17476. CC=$ac_ct_CC
  17477. fi
  17478. else
  17479. CC="$ac_cv_prog_CC"
  17480. fi
  17481. if test -z "$CC"; then
  17482. if test -n "$ac_tool_prefix"; then
  17483. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17484. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17485. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17486. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17487. if test "${ac_cv_prog_CC+set}" = set; then
  17488. echo $ECHO_N "(cached) $ECHO_C" >&6
  17489. else
  17490. if test -n "$CC"; then
  17491. ac_cv_prog_CC="$CC" # Let the user override the test.
  17492. else
  17493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17494. for as_dir in $PATH
  17495. do
  17496. IFS=$as_save_IFS
  17497. test -z "$as_dir" && as_dir=.
  17498. for ac_exec_ext in '' $ac_executable_extensions; do
  17499. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17500. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17501. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17502. break 2
  17503. fi
  17504. done
  17505. done
  17506. IFS=$as_save_IFS
  17507. fi
  17508. fi
  17509. CC=$ac_cv_prog_CC
  17510. if test -n "$CC"; then
  17511. { echo "$as_me:$LINENO: result: $CC" >&5
  17512. echo "${ECHO_T}$CC" >&6; }
  17513. else
  17514. { echo "$as_me:$LINENO: result: no" >&5
  17515. echo "${ECHO_T}no" >&6; }
  17516. fi
  17517. fi
  17518. fi
  17519. if test -z "$CC"; then
  17520. # Extract the first word of "cc", so it can be a program name with args.
  17521. set dummy cc; ac_word=$2
  17522. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17523. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17524. if test "${ac_cv_prog_CC+set}" = set; then
  17525. echo $ECHO_N "(cached) $ECHO_C" >&6
  17526. else
  17527. if test -n "$CC"; then
  17528. ac_cv_prog_CC="$CC" # Let the user override the test.
  17529. else
  17530. ac_prog_rejected=no
  17531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17532. for as_dir in $PATH
  17533. do
  17534. IFS=$as_save_IFS
  17535. test -z "$as_dir" && as_dir=.
  17536. for ac_exec_ext in '' $ac_executable_extensions; do
  17537. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17538. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17539. ac_prog_rejected=yes
  17540. continue
  17541. fi
  17542. ac_cv_prog_CC="cc"
  17543. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17544. break 2
  17545. fi
  17546. done
  17547. done
  17548. IFS=$as_save_IFS
  17549. if test $ac_prog_rejected = yes; then
  17550. # We found a bogon in the path, so make sure we never use it.
  17551. set dummy $ac_cv_prog_CC
  17552. shift
  17553. if test $# != 0; then
  17554. # We chose a different compiler from the bogus one.
  17555. # However, it has the same basename, so the bogon will be chosen
  17556. # first if we set CC to just the basename; use the full file name.
  17557. shift
  17558. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17559. fi
  17560. fi
  17561. fi
  17562. fi
  17563. CC=$ac_cv_prog_CC
  17564. if test -n "$CC"; then
  17565. { echo "$as_me:$LINENO: result: $CC" >&5
  17566. echo "${ECHO_T}$CC" >&6; }
  17567. else
  17568. { echo "$as_me:$LINENO: result: no" >&5
  17569. echo "${ECHO_T}no" >&6; }
  17570. fi
  17571. fi
  17572. if test -z "$CC"; then
  17573. if test -n "$ac_tool_prefix"; then
  17574. for ac_prog in cl.exe
  17575. do
  17576. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17577. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17578. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17579. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17580. if test "${ac_cv_prog_CC+set}" = set; then
  17581. echo $ECHO_N "(cached) $ECHO_C" >&6
  17582. else
  17583. if test -n "$CC"; then
  17584. ac_cv_prog_CC="$CC" # Let the user override the test.
  17585. else
  17586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17587. for as_dir in $PATH
  17588. do
  17589. IFS=$as_save_IFS
  17590. test -z "$as_dir" && as_dir=.
  17591. for ac_exec_ext in '' $ac_executable_extensions; do
  17592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17593. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17594. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17595. break 2
  17596. fi
  17597. done
  17598. done
  17599. IFS=$as_save_IFS
  17600. fi
  17601. fi
  17602. CC=$ac_cv_prog_CC
  17603. if test -n "$CC"; then
  17604. { echo "$as_me:$LINENO: result: $CC" >&5
  17605. echo "${ECHO_T}$CC" >&6; }
  17606. else
  17607. { echo "$as_me:$LINENO: result: no" >&5
  17608. echo "${ECHO_T}no" >&6; }
  17609. fi
  17610. test -n "$CC" && break
  17611. done
  17612. fi
  17613. if test -z "$CC"; then
  17614. ac_ct_CC=$CC
  17615. for ac_prog in cl.exe
  17616. do
  17617. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17618. set dummy $ac_prog; ac_word=$2
  17619. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17620. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17621. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17622. echo $ECHO_N "(cached) $ECHO_C" >&6
  17623. else
  17624. if test -n "$ac_ct_CC"; then
  17625. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17626. else
  17627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17628. for as_dir in $PATH
  17629. do
  17630. IFS=$as_save_IFS
  17631. test -z "$as_dir" && as_dir=.
  17632. for ac_exec_ext in '' $ac_executable_extensions; do
  17633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17634. ac_cv_prog_ac_ct_CC="$ac_prog"
  17635. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17636. break 2
  17637. fi
  17638. done
  17639. done
  17640. IFS=$as_save_IFS
  17641. fi
  17642. fi
  17643. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17644. if test -n "$ac_ct_CC"; then
  17645. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17646. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17647. else
  17648. { echo "$as_me:$LINENO: result: no" >&5
  17649. echo "${ECHO_T}no" >&6; }
  17650. fi
  17651. test -n "$ac_ct_CC" && break
  17652. done
  17653. if test "x$ac_ct_CC" = x; then
  17654. CC=""
  17655. else
  17656. case $cross_compiling:$ac_tool_warned in
  17657. yes:)
  17658. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17659. whose name does not start with the host triplet. If you think this
  17660. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17661. echo "$as_me: 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." >&2;}
  17664. ac_tool_warned=yes ;;
  17665. esac
  17666. CC=$ac_ct_CC
  17667. fi
  17668. fi
  17669. fi
  17670. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17671. See \`config.log' for more details." >&5
  17672. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17673. See \`config.log' for more details." >&2;}
  17674. { (exit 1); exit 1; }; }
  17675. # Provide some information about the compiler.
  17676. echo "$as_me:$LINENO: checking for C compiler version" >&5
  17677. ac_compiler=`set X $ac_compile; echo $2`
  17678. { (ac_try="$ac_compiler --version >&5"
  17679. case "(($ac_try" in
  17680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17681. *) ac_try_echo=$ac_try;;
  17682. esac
  17683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17684. (eval "$ac_compiler --version >&5") 2>&5
  17685. ac_status=$?
  17686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17687. (exit $ac_status); }
  17688. { (ac_try="$ac_compiler -v >&5"
  17689. case "(($ac_try" in
  17690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17691. *) ac_try_echo=$ac_try;;
  17692. esac
  17693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17694. (eval "$ac_compiler -v >&5") 2>&5
  17695. ac_status=$?
  17696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17697. (exit $ac_status); }
  17698. { (ac_try="$ac_compiler -V >&5"
  17699. case "(($ac_try" in
  17700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17701. *) ac_try_echo=$ac_try;;
  17702. esac
  17703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17704. (eval "$ac_compiler -V >&5") 2>&5
  17705. ac_status=$?
  17706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17707. (exit $ac_status); }
  17708. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17709. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  17710. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17711. echo $ECHO_N "(cached) $ECHO_C" >&6
  17712. else
  17713. cat >conftest.$ac_ext <<_ACEOF
  17714. /* confdefs.h. */
  17715. _ACEOF
  17716. cat confdefs.h >>conftest.$ac_ext
  17717. cat >>conftest.$ac_ext <<_ACEOF
  17718. /* end confdefs.h. */
  17719. int
  17720. main ()
  17721. {
  17722. #ifndef __GNUC__
  17723. choke me
  17724. #endif
  17725. ;
  17726. return 0;
  17727. }
  17728. _ACEOF
  17729. rm -f conftest.$ac_objext
  17730. if { (ac_try="$ac_compile"
  17731. case "(($ac_try" in
  17732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17733. *) ac_try_echo=$ac_try;;
  17734. esac
  17735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17736. (eval "$ac_compile") 2>conftest.er1
  17737. ac_status=$?
  17738. grep -v '^ *+' conftest.er1 >conftest.err
  17739. rm -f conftest.er1
  17740. cat conftest.err >&5
  17741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17742. (exit $ac_status); } && {
  17743. test -z "$ac_c_werror_flag" ||
  17744. test ! -s conftest.err
  17745. } && test -s conftest.$ac_objext; then
  17746. ac_compiler_gnu=yes
  17747. else
  17748. echo "$as_me: failed program was:" >&5
  17749. sed 's/^/| /' conftest.$ac_ext >&5
  17750. ac_compiler_gnu=no
  17751. fi
  17752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17753. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17754. fi
  17755. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17756. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  17757. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17758. ac_test_CFLAGS=${CFLAGS+set}
  17759. ac_save_CFLAGS=$CFLAGS
  17760. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17761. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  17762. if test "${ac_cv_prog_cc_g+set}" = set; then
  17763. echo $ECHO_N "(cached) $ECHO_C" >&6
  17764. else
  17765. ac_save_c_werror_flag=$ac_c_werror_flag
  17766. ac_c_werror_flag=yes
  17767. ac_cv_prog_cc_g=no
  17768. CFLAGS="-g"
  17769. cat >conftest.$ac_ext <<_ACEOF
  17770. /* confdefs.h. */
  17771. _ACEOF
  17772. cat confdefs.h >>conftest.$ac_ext
  17773. cat >>conftest.$ac_ext <<_ACEOF
  17774. /* end confdefs.h. */
  17775. int
  17776. main ()
  17777. {
  17778. ;
  17779. return 0;
  17780. }
  17781. _ACEOF
  17782. rm -f conftest.$ac_objext
  17783. if { (ac_try="$ac_compile"
  17784. case "(($ac_try" in
  17785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17786. *) ac_try_echo=$ac_try;;
  17787. esac
  17788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17789. (eval "$ac_compile") 2>conftest.er1
  17790. ac_status=$?
  17791. grep -v '^ *+' conftest.er1 >conftest.err
  17792. rm -f conftest.er1
  17793. cat conftest.err >&5
  17794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17795. (exit $ac_status); } && {
  17796. test -z "$ac_c_werror_flag" ||
  17797. test ! -s conftest.err
  17798. } && test -s conftest.$ac_objext; then
  17799. ac_cv_prog_cc_g=yes
  17800. else
  17801. echo "$as_me: failed program was:" >&5
  17802. sed 's/^/| /' conftest.$ac_ext >&5
  17803. CFLAGS=""
  17804. cat >conftest.$ac_ext <<_ACEOF
  17805. /* confdefs.h. */
  17806. _ACEOF
  17807. cat confdefs.h >>conftest.$ac_ext
  17808. cat >>conftest.$ac_ext <<_ACEOF
  17809. /* end confdefs.h. */
  17810. int
  17811. main ()
  17812. {
  17813. ;
  17814. return 0;
  17815. }
  17816. _ACEOF
  17817. rm -f conftest.$ac_objext
  17818. if { (ac_try="$ac_compile"
  17819. case "(($ac_try" in
  17820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17821. *) ac_try_echo=$ac_try;;
  17822. esac
  17823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17824. (eval "$ac_compile") 2>conftest.er1
  17825. ac_status=$?
  17826. grep -v '^ *+' conftest.er1 >conftest.err
  17827. rm -f conftest.er1
  17828. cat conftest.err >&5
  17829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17830. (exit $ac_status); } && {
  17831. test -z "$ac_c_werror_flag" ||
  17832. test ! -s conftest.err
  17833. } && test -s conftest.$ac_objext; then
  17834. :
  17835. else
  17836. echo "$as_me: failed program was:" >&5
  17837. sed 's/^/| /' conftest.$ac_ext >&5
  17838. ac_c_werror_flag=$ac_save_c_werror_flag
  17839. CFLAGS="-g"
  17840. cat >conftest.$ac_ext <<_ACEOF
  17841. /* confdefs.h. */
  17842. _ACEOF
  17843. cat confdefs.h >>conftest.$ac_ext
  17844. cat >>conftest.$ac_ext <<_ACEOF
  17845. /* end confdefs.h. */
  17846. int
  17847. main ()
  17848. {
  17849. ;
  17850. return 0;
  17851. }
  17852. _ACEOF
  17853. rm -f conftest.$ac_objext
  17854. if { (ac_try="$ac_compile"
  17855. case "(($ac_try" in
  17856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17857. *) ac_try_echo=$ac_try;;
  17858. esac
  17859. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17860. (eval "$ac_compile") 2>conftest.er1
  17861. ac_status=$?
  17862. grep -v '^ *+' conftest.er1 >conftest.err
  17863. rm -f conftest.er1
  17864. cat conftest.err >&5
  17865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17866. (exit $ac_status); } && {
  17867. test -z "$ac_c_werror_flag" ||
  17868. test ! -s conftest.err
  17869. } && test -s conftest.$ac_objext; then
  17870. ac_cv_prog_cc_g=yes
  17871. else
  17872. echo "$as_me: failed program was:" >&5
  17873. sed 's/^/| /' conftest.$ac_ext >&5
  17874. fi
  17875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17876. fi
  17877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17878. fi
  17879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17880. ac_c_werror_flag=$ac_save_c_werror_flag
  17881. fi
  17882. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17883. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  17884. if test "$ac_test_CFLAGS" = set; then
  17885. CFLAGS=$ac_save_CFLAGS
  17886. elif test $ac_cv_prog_cc_g = yes; then
  17887. if test "$GCC" = yes; then
  17888. CFLAGS="-g -O2"
  17889. else
  17890. CFLAGS="-g"
  17891. fi
  17892. else
  17893. if test "$GCC" = yes; then
  17894. CFLAGS="-O2"
  17895. else
  17896. CFLAGS=
  17897. fi
  17898. fi
  17899. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  17900. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  17901. if test "${ac_cv_prog_cc_c89+set}" = set; then
  17902. echo $ECHO_N "(cached) $ECHO_C" >&6
  17903. else
  17904. ac_cv_prog_cc_c89=no
  17905. ac_save_CC=$CC
  17906. cat >conftest.$ac_ext <<_ACEOF
  17907. /* confdefs.h. */
  17908. _ACEOF
  17909. cat confdefs.h >>conftest.$ac_ext
  17910. cat >>conftest.$ac_ext <<_ACEOF
  17911. /* end confdefs.h. */
  17912. #include <stdarg.h>
  17913. #include <stdio.h>
  17914. #include <sys/types.h>
  17915. #include <sys/stat.h>
  17916. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17917. struct buf { int x; };
  17918. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17919. static char *e (p, i)
  17920. char **p;
  17921. int i;
  17922. {
  17923. return p[i];
  17924. }
  17925. static char *f (char * (*g) (char **, int), char **p, ...)
  17926. {
  17927. char *s;
  17928. va_list v;
  17929. va_start (v,p);
  17930. s = g (p, va_arg (v,int));
  17931. va_end (v);
  17932. return s;
  17933. }
  17934. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17935. function prototypes and stuff, but not '\xHH' hex character constants.
  17936. These don't provoke an error unfortunately, instead are silently treated
  17937. as 'x'. The following induces an error, until -std is added to get
  17938. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17939. array size at least. It's necessary to write '\x00'==0 to get something
  17940. that's true only with -std. */
  17941. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17942. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  17943. inside strings and character constants. */
  17944. #define FOO(x) 'x'
  17945. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  17946. int test (int i, double x);
  17947. struct s1 {int (*f) (int a);};
  17948. struct s2 {int (*f) (double a);};
  17949. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17950. int argc;
  17951. char **argv;
  17952. int
  17953. main ()
  17954. {
  17955. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17956. ;
  17957. return 0;
  17958. }
  17959. _ACEOF
  17960. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  17961. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17962. do
  17963. CC="$ac_save_CC $ac_arg"
  17964. rm -f conftest.$ac_objext
  17965. if { (ac_try="$ac_compile"
  17966. case "(($ac_try" in
  17967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17968. *) ac_try_echo=$ac_try;;
  17969. esac
  17970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17971. (eval "$ac_compile") 2>conftest.er1
  17972. ac_status=$?
  17973. grep -v '^ *+' conftest.er1 >conftest.err
  17974. rm -f conftest.er1
  17975. cat conftest.err >&5
  17976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17977. (exit $ac_status); } && {
  17978. test -z "$ac_c_werror_flag" ||
  17979. test ! -s conftest.err
  17980. } && test -s conftest.$ac_objext; then
  17981. ac_cv_prog_cc_c89=$ac_arg
  17982. else
  17983. echo "$as_me: failed program was:" >&5
  17984. sed 's/^/| /' conftest.$ac_ext >&5
  17985. fi
  17986. rm -f core conftest.err conftest.$ac_objext
  17987. test "x$ac_cv_prog_cc_c89" != "xno" && break
  17988. done
  17989. rm -f conftest.$ac_ext
  17990. CC=$ac_save_CC
  17991. fi
  17992. # AC_CACHE_VAL
  17993. case "x$ac_cv_prog_cc_c89" in
  17994. x)
  17995. { echo "$as_me:$LINENO: result: none needed" >&5
  17996. echo "${ECHO_T}none needed" >&6; } ;;
  17997. xno)
  17998. { echo "$as_me:$LINENO: result: unsupported" >&5
  17999. echo "${ECHO_T}unsupported" >&6; } ;;
  18000. *)
  18001. CC="$CC $ac_cv_prog_cc_c89"
  18002. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18003. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18004. esac
  18005. ac_ext=c
  18006. ac_cpp='$CPP $CPPFLAGS'
  18007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18010. depcc="$CC" am_compiler_list=
  18011. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18012. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18013. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18014. echo $ECHO_N "(cached) $ECHO_C" >&6
  18015. else
  18016. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18017. # We make a subdir and do the tests there. Otherwise we can end up
  18018. # making bogus files that we don't know about and never remove. For
  18019. # instance it was reported that on HP-UX the gcc test will end up
  18020. # making a dummy file named `D' -- because `-MD' means `put the output
  18021. # in D'.
  18022. mkdir conftest.dir
  18023. # Copy depcomp to subdir because otherwise we won't find it if we're
  18024. # using a relative directory.
  18025. cp "$am_depcomp" conftest.dir
  18026. cd conftest.dir
  18027. # We will build objects and dependencies in a subdirectory because
  18028. # it helps to detect inapplicable dependency modes. For instance
  18029. # both Tru64's cc and ICC support -MD to output dependencies as a
  18030. # side effect of compilation, but ICC will put the dependencies in
  18031. # the current directory while Tru64 will put them in the object
  18032. # directory.
  18033. mkdir sub
  18034. am_cv_CC_dependencies_compiler_type=none
  18035. if test "$am_compiler_list" = ""; then
  18036. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18037. fi
  18038. for depmode in $am_compiler_list; do
  18039. # Setup a source with many dependencies, because some compilers
  18040. # like to wrap large dependency lists on column 80 (with \), and
  18041. # we should not choose a depcomp mode which is confused by this.
  18042. #
  18043. # We need to recreate these files for each test, as the compiler may
  18044. # overwrite some of them when testing with obscure command lines.
  18045. # This happens at least with the AIX C compiler.
  18046. : > sub/conftest.c
  18047. for i in 1 2 3 4 5 6; do
  18048. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18049. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18050. # Solaris 8's {/usr,}/bin/sh.
  18051. touch sub/conftst$i.h
  18052. done
  18053. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18054. case $depmode in
  18055. nosideeffect)
  18056. # after this tag, mechanisms are not by side-effect, so they'll
  18057. # only be used when explicitly requested
  18058. if test "x$enable_dependency_tracking" = xyes; then
  18059. continue
  18060. else
  18061. break
  18062. fi
  18063. ;;
  18064. none) break ;;
  18065. esac
  18066. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18067. # mode. It turns out that the SunPro C++ compiler does not properly
  18068. # handle `-M -o', and we need to detect this.
  18069. if depmode=$depmode \
  18070. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18071. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18072. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18073. >/dev/null 2>conftest.err &&
  18074. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18075. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18076. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18077. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18078. # icc doesn't choke on unknown options, it will just issue warnings
  18079. # or remarks (even with -Werror). So we grep stderr for any message
  18080. # that says an option was ignored or not supported.
  18081. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18082. # icc: Command line warning: ignoring option '-M'; no argument required
  18083. # The diagnosis changed in icc 8.0:
  18084. # icc: Command line remark: option '-MP' not supported
  18085. if (grep 'ignoring option' conftest.err ||
  18086. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18087. am_cv_CC_dependencies_compiler_type=$depmode
  18088. break
  18089. fi
  18090. fi
  18091. done
  18092. cd ..
  18093. rm -rf conftest.dir
  18094. else
  18095. am_cv_CC_dependencies_compiler_type=none
  18096. fi
  18097. fi
  18098. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  18099. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  18100. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  18101. if
  18102. test "x$enable_dependency_tracking" != xno \
  18103. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  18104. am__fastdepCC_TRUE=
  18105. am__fastdepCC_FALSE='#'
  18106. else
  18107. am__fastdepCC_TRUE='#'
  18108. am__fastdepCC_FALSE=
  18109. fi
  18110. case $ac_cv_prog_cc_stdc in
  18111. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  18112. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  18113. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  18114. if test "${ac_cv_prog_cc_c99+set}" = set; then
  18115. echo $ECHO_N "(cached) $ECHO_C" >&6
  18116. else
  18117. ac_cv_prog_cc_c99=no
  18118. ac_save_CC=$CC
  18119. cat >conftest.$ac_ext <<_ACEOF
  18120. /* confdefs.h. */
  18121. _ACEOF
  18122. cat confdefs.h >>conftest.$ac_ext
  18123. cat >>conftest.$ac_ext <<_ACEOF
  18124. /* end confdefs.h. */
  18125. #include <stdarg.h>
  18126. #include <stdbool.h>
  18127. #include <stdlib.h>
  18128. #include <wchar.h>
  18129. #include <stdio.h>
  18130. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  18131. #define debug(...) fprintf (stderr, __VA_ARGS__)
  18132. #define showlist(...) puts (#__VA_ARGS__)
  18133. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  18134. static void
  18135. test_varargs_macros (void)
  18136. {
  18137. int x = 1234;
  18138. int y = 5678;
  18139. debug ("Flag");
  18140. debug ("X = %d\n", x);
  18141. showlist (The first, second, and third items.);
  18142. report (x>y, "x is %d but y is %d", x, y);
  18143. }
  18144. // Check long long types.
  18145. #define BIG64 18446744073709551615ull
  18146. #define BIG32 4294967295ul
  18147. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  18148. #if !BIG_OK
  18149. your preprocessor is broken;
  18150. #endif
  18151. #if BIG_OK
  18152. #else
  18153. your preprocessor is broken;
  18154. #endif
  18155. static long long int bignum = -9223372036854775807LL;
  18156. static unsigned long long int ubignum = BIG64;
  18157. struct incomplete_array
  18158. {
  18159. int datasize;
  18160. double data[];
  18161. };
  18162. struct named_init {
  18163. int number;
  18164. const wchar_t *name;
  18165. double average;
  18166. };
  18167. typedef const char *ccp;
  18168. static inline int
  18169. test_restrict (ccp restrict text)
  18170. {
  18171. // See if C++-style comments work.
  18172. // Iterate through items via the restricted pointer.
  18173. // Also check for declarations in for loops.
  18174. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  18175. continue;
  18176. return 0;
  18177. }
  18178. // Check varargs and va_copy.
  18179. static void
  18180. test_varargs (const char *format, ...)
  18181. {
  18182. va_list args;
  18183. va_start (args, format);
  18184. va_list args_copy;
  18185. va_copy (args_copy, args);
  18186. const char *str;
  18187. int number;
  18188. float fnumber;
  18189. while (*format)
  18190. {
  18191. switch (*format++)
  18192. {
  18193. case 's': // string
  18194. str = va_arg (args_copy, const char *);
  18195. break;
  18196. case 'd': // int
  18197. number = va_arg (args_copy, int);
  18198. break;
  18199. case 'f': // float
  18200. fnumber = va_arg (args_copy, double);
  18201. break;
  18202. default:
  18203. break;
  18204. }
  18205. }
  18206. va_end (args_copy);
  18207. va_end (args);
  18208. }
  18209. int
  18210. main ()
  18211. {
  18212. // Check bool.
  18213. _Bool success = false;
  18214. // Check restrict.
  18215. if (test_restrict ("String literal") == 0)
  18216. success = true;
  18217. char *restrict newvar = "Another string";
  18218. // Check varargs.
  18219. test_varargs ("s, d' f .", "string", 65, 34.234);
  18220. test_varargs_macros ();
  18221. // Check flexible array members.
  18222. struct incomplete_array *ia =
  18223. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  18224. ia->datasize = 10;
  18225. for (int i = 0; i < ia->datasize; ++i)
  18226. ia->data[i] = i * 1.234;
  18227. // Check named initializers.
  18228. struct named_init ni = {
  18229. .number = 34,
  18230. .name = L"Test wide string",
  18231. .average = 543.34343,
  18232. };
  18233. ni.number = 58;
  18234. int dynamic_array[ni.number];
  18235. dynamic_array[ni.number - 1] = 543;
  18236. // work around unused variable warnings
  18237. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  18238. || dynamic_array[ni.number - 1] != 543);
  18239. ;
  18240. return 0;
  18241. }
  18242. _ACEOF
  18243. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  18244. do
  18245. CC="$ac_save_CC $ac_arg"
  18246. rm -f conftest.$ac_objext
  18247. if { (ac_try="$ac_compile"
  18248. case "(($ac_try" in
  18249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18250. *) ac_try_echo=$ac_try;;
  18251. esac
  18252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18253. (eval "$ac_compile") 2>conftest.er1
  18254. ac_status=$?
  18255. grep -v '^ *+' conftest.er1 >conftest.err
  18256. rm -f conftest.er1
  18257. cat conftest.err >&5
  18258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18259. (exit $ac_status); } && {
  18260. test -z "$ac_c_werror_flag" ||
  18261. test ! -s conftest.err
  18262. } && test -s conftest.$ac_objext; then
  18263. ac_cv_prog_cc_c99=$ac_arg
  18264. else
  18265. echo "$as_me: failed program was:" >&5
  18266. sed 's/^/| /' conftest.$ac_ext >&5
  18267. fi
  18268. rm -f core conftest.err conftest.$ac_objext
  18269. test "x$ac_cv_prog_cc_c99" != "xno" && break
  18270. done
  18271. rm -f conftest.$ac_ext
  18272. CC=$ac_save_CC
  18273. fi
  18274. # AC_CACHE_VAL
  18275. case "x$ac_cv_prog_cc_c99" in
  18276. x)
  18277. { echo "$as_me:$LINENO: result: none needed" >&5
  18278. echo "${ECHO_T}none needed" >&6; } ;;
  18279. xno)
  18280. { echo "$as_me:$LINENO: result: unsupported" >&5
  18281. echo "${ECHO_T}unsupported" >&6; } ;;
  18282. *)
  18283. CC="$CC $ac_cv_prog_cc_c99"
  18284. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  18285. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  18286. esac
  18287. if test "x$ac_cv_prog_cc_c99" != xno; then
  18288. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  18289. else
  18290. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18291. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18292. if test "${ac_cv_prog_cc_c89+set}" = set; then
  18293. echo $ECHO_N "(cached) $ECHO_C" >&6
  18294. else
  18295. ac_cv_prog_cc_c89=no
  18296. ac_save_CC=$CC
  18297. cat >conftest.$ac_ext <<_ACEOF
  18298. /* confdefs.h. */
  18299. _ACEOF
  18300. cat confdefs.h >>conftest.$ac_ext
  18301. cat >>conftest.$ac_ext <<_ACEOF
  18302. /* end confdefs.h. */
  18303. #include <stdarg.h>
  18304. #include <stdio.h>
  18305. #include <sys/types.h>
  18306. #include <sys/stat.h>
  18307. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18308. struct buf { int x; };
  18309. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18310. static char *e (p, i)
  18311. char **p;
  18312. int i;
  18313. {
  18314. return p[i];
  18315. }
  18316. static char *f (char * (*g) (char **, int), char **p, ...)
  18317. {
  18318. char *s;
  18319. va_list v;
  18320. va_start (v,p);
  18321. s = g (p, va_arg (v,int));
  18322. va_end (v);
  18323. return s;
  18324. }
  18325. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18326. function prototypes and stuff, but not '\xHH' hex character constants.
  18327. These don't provoke an error unfortunately, instead are silently treated
  18328. as 'x'. The following induces an error, until -std is added to get
  18329. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18330. array size at least. It's necessary to write '\x00'==0 to get something
  18331. that's true only with -std. */
  18332. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18333. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18334. inside strings and character constants. */
  18335. #define FOO(x) 'x'
  18336. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18337. int test (int i, double x);
  18338. struct s1 {int (*f) (int a);};
  18339. struct s2 {int (*f) (double a);};
  18340. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18341. int argc;
  18342. char **argv;
  18343. int
  18344. main ()
  18345. {
  18346. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18347. ;
  18348. return 0;
  18349. }
  18350. _ACEOF
  18351. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18352. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18353. do
  18354. CC="$ac_save_CC $ac_arg"
  18355. rm -f conftest.$ac_objext
  18356. if { (ac_try="$ac_compile"
  18357. case "(($ac_try" in
  18358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18359. *) ac_try_echo=$ac_try;;
  18360. esac
  18361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18362. (eval "$ac_compile") 2>conftest.er1
  18363. ac_status=$?
  18364. grep -v '^ *+' conftest.er1 >conftest.err
  18365. rm -f conftest.er1
  18366. cat conftest.err >&5
  18367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18368. (exit $ac_status); } && {
  18369. test -z "$ac_c_werror_flag" ||
  18370. test ! -s conftest.err
  18371. } && test -s conftest.$ac_objext; then
  18372. ac_cv_prog_cc_c89=$ac_arg
  18373. else
  18374. echo "$as_me: failed program was:" >&5
  18375. sed 's/^/| /' conftest.$ac_ext >&5
  18376. fi
  18377. rm -f core conftest.err conftest.$ac_objext
  18378. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18379. done
  18380. rm -f conftest.$ac_ext
  18381. CC=$ac_save_CC
  18382. fi
  18383. # AC_CACHE_VAL
  18384. case "x$ac_cv_prog_cc_c89" in
  18385. x)
  18386. { echo "$as_me:$LINENO: result: none needed" >&5
  18387. echo "${ECHO_T}none needed" >&6; } ;;
  18388. xno)
  18389. { echo "$as_me:$LINENO: result: unsupported" >&5
  18390. echo "${ECHO_T}unsupported" >&6; } ;;
  18391. *)
  18392. CC="$CC $ac_cv_prog_cc_c89"
  18393. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18394. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18395. esac
  18396. if test "x$ac_cv_prog_cc_c89" != xno; then
  18397. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  18398. else
  18399. ac_cv_prog_cc_stdc=no
  18400. fi
  18401. fi
  18402. ;;
  18403. esac
  18404. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  18405. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  18406. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18407. echo $ECHO_N "(cached) $ECHO_C" >&6
  18408. fi
  18409. case $ac_cv_prog_cc_stdc in
  18410. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  18411. echo "${ECHO_T}unsupported" >&6; } ;;
  18412. '') { echo "$as_me:$LINENO: result: none needed" >&5
  18413. echo "${ECHO_T}none needed" >&6; } ;;
  18414. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18415. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  18416. esac
  18417. ac_ext=cpp
  18418. ac_cpp='$CXXCPP $CPPFLAGS'
  18419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18422. if test -z "$CXX"; then
  18423. if test -n "$CCC"; then
  18424. CXX=$CCC
  18425. else
  18426. if test -n "$ac_tool_prefix"; then
  18427. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18428. do
  18429. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18430. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18431. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18432. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18433. if test "${ac_cv_prog_CXX+set}" = set; then
  18434. echo $ECHO_N "(cached) $ECHO_C" >&6
  18435. else
  18436. if test -n "$CXX"; then
  18437. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18438. else
  18439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18440. for as_dir in $PATH
  18441. do
  18442. IFS=$as_save_IFS
  18443. test -z "$as_dir" && as_dir=.
  18444. for ac_exec_ext in '' $ac_executable_extensions; do
  18445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18446. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18447. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18448. break 2
  18449. fi
  18450. done
  18451. done
  18452. IFS=$as_save_IFS
  18453. fi
  18454. fi
  18455. CXX=$ac_cv_prog_CXX
  18456. if test -n "$CXX"; then
  18457. { echo "$as_me:$LINENO: result: $CXX" >&5
  18458. echo "${ECHO_T}$CXX" >&6; }
  18459. else
  18460. { echo "$as_me:$LINENO: result: no" >&5
  18461. echo "${ECHO_T}no" >&6; }
  18462. fi
  18463. test -n "$CXX" && break
  18464. done
  18465. fi
  18466. if test -z "$CXX"; then
  18467. ac_ct_CXX=$CXX
  18468. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18469. do
  18470. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18471. set dummy $ac_prog; ac_word=$2
  18472. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18473. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18474. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18475. echo $ECHO_N "(cached) $ECHO_C" >&6
  18476. else
  18477. if test -n "$ac_ct_CXX"; then
  18478. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18479. else
  18480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18481. for as_dir in $PATH
  18482. do
  18483. IFS=$as_save_IFS
  18484. test -z "$as_dir" && as_dir=.
  18485. for ac_exec_ext in '' $ac_executable_extensions; do
  18486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18487. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18488. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18489. break 2
  18490. fi
  18491. done
  18492. done
  18493. IFS=$as_save_IFS
  18494. fi
  18495. fi
  18496. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18497. if test -n "$ac_ct_CXX"; then
  18498. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18499. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  18500. else
  18501. { echo "$as_me:$LINENO: result: no" >&5
  18502. echo "${ECHO_T}no" >&6; }
  18503. fi
  18504. test -n "$ac_ct_CXX" && break
  18505. done
  18506. if test "x$ac_ct_CXX" = x; then
  18507. CXX="g++"
  18508. else
  18509. case $cross_compiling:$ac_tool_warned in
  18510. yes:)
  18511. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18512. whose name does not start with the host triplet. If you think this
  18513. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18514. echo "$as_me: 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." >&2;}
  18517. ac_tool_warned=yes ;;
  18518. esac
  18519. CXX=$ac_ct_CXX
  18520. fi
  18521. fi
  18522. fi
  18523. fi
  18524. # Provide some information about the compiler.
  18525. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18526. ac_compiler=`set X $ac_compile; echo $2`
  18527. { (ac_try="$ac_compiler --version >&5"
  18528. case "(($ac_try" in
  18529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18530. *) ac_try_echo=$ac_try;;
  18531. esac
  18532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18533. (eval "$ac_compiler --version >&5") 2>&5
  18534. ac_status=$?
  18535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18536. (exit $ac_status); }
  18537. { (ac_try="$ac_compiler -v >&5"
  18538. case "(($ac_try" in
  18539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18540. *) ac_try_echo=$ac_try;;
  18541. esac
  18542. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18543. (eval "$ac_compiler -v >&5") 2>&5
  18544. ac_status=$?
  18545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18546. (exit $ac_status); }
  18547. { (ac_try="$ac_compiler -V >&5"
  18548. case "(($ac_try" in
  18549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18550. *) ac_try_echo=$ac_try;;
  18551. esac
  18552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18553. (eval "$ac_compiler -V >&5") 2>&5
  18554. ac_status=$?
  18555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18556. (exit $ac_status); }
  18557. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18558. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  18559. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18560. echo $ECHO_N "(cached) $ECHO_C" >&6
  18561. else
  18562. cat >conftest.$ac_ext <<_ACEOF
  18563. /* confdefs.h. */
  18564. _ACEOF
  18565. cat confdefs.h >>conftest.$ac_ext
  18566. cat >>conftest.$ac_ext <<_ACEOF
  18567. /* end confdefs.h. */
  18568. int
  18569. main ()
  18570. {
  18571. #ifndef __GNUC__
  18572. choke me
  18573. #endif
  18574. ;
  18575. return 0;
  18576. }
  18577. _ACEOF
  18578. rm -f conftest.$ac_objext
  18579. if { (ac_try="$ac_compile"
  18580. case "(($ac_try" in
  18581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18582. *) ac_try_echo=$ac_try;;
  18583. esac
  18584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18585. (eval "$ac_compile") 2>conftest.er1
  18586. ac_status=$?
  18587. grep -v '^ *+' conftest.er1 >conftest.err
  18588. rm -f conftest.er1
  18589. cat conftest.err >&5
  18590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18591. (exit $ac_status); } && {
  18592. test -z "$ac_cxx_werror_flag" ||
  18593. test ! -s conftest.err
  18594. } && test -s conftest.$ac_objext; then
  18595. ac_compiler_gnu=yes
  18596. else
  18597. echo "$as_me: failed program was:" >&5
  18598. sed 's/^/| /' conftest.$ac_ext >&5
  18599. ac_compiler_gnu=no
  18600. fi
  18601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18602. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18603. fi
  18604. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18605. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  18606. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18607. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18608. ac_save_CXXFLAGS=$CXXFLAGS
  18609. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18610. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  18611. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18612. echo $ECHO_N "(cached) $ECHO_C" >&6
  18613. else
  18614. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18615. ac_cxx_werror_flag=yes
  18616. ac_cv_prog_cxx_g=no
  18617. CXXFLAGS="-g"
  18618. cat >conftest.$ac_ext <<_ACEOF
  18619. /* confdefs.h. */
  18620. _ACEOF
  18621. cat confdefs.h >>conftest.$ac_ext
  18622. cat >>conftest.$ac_ext <<_ACEOF
  18623. /* end confdefs.h. */
  18624. int
  18625. main ()
  18626. {
  18627. ;
  18628. return 0;
  18629. }
  18630. _ACEOF
  18631. rm -f conftest.$ac_objext
  18632. if { (ac_try="$ac_compile"
  18633. case "(($ac_try" in
  18634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18635. *) ac_try_echo=$ac_try;;
  18636. esac
  18637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18638. (eval "$ac_compile") 2>conftest.er1
  18639. ac_status=$?
  18640. grep -v '^ *+' conftest.er1 >conftest.err
  18641. rm -f conftest.er1
  18642. cat conftest.err >&5
  18643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18644. (exit $ac_status); } && {
  18645. test -z "$ac_cxx_werror_flag" ||
  18646. test ! -s conftest.err
  18647. } && test -s conftest.$ac_objext; then
  18648. ac_cv_prog_cxx_g=yes
  18649. else
  18650. echo "$as_me: failed program was:" >&5
  18651. sed 's/^/| /' conftest.$ac_ext >&5
  18652. CXXFLAGS=""
  18653. cat >conftest.$ac_ext <<_ACEOF
  18654. /* confdefs.h. */
  18655. _ACEOF
  18656. cat confdefs.h >>conftest.$ac_ext
  18657. cat >>conftest.$ac_ext <<_ACEOF
  18658. /* end confdefs.h. */
  18659. int
  18660. main ()
  18661. {
  18662. ;
  18663. return 0;
  18664. }
  18665. _ACEOF
  18666. rm -f conftest.$ac_objext
  18667. if { (ac_try="$ac_compile"
  18668. case "(($ac_try" in
  18669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18670. *) ac_try_echo=$ac_try;;
  18671. esac
  18672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18673. (eval "$ac_compile") 2>conftest.er1
  18674. ac_status=$?
  18675. grep -v '^ *+' conftest.er1 >conftest.err
  18676. rm -f conftest.er1
  18677. cat conftest.err >&5
  18678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18679. (exit $ac_status); } && {
  18680. test -z "$ac_cxx_werror_flag" ||
  18681. test ! -s conftest.err
  18682. } && test -s conftest.$ac_objext; then
  18683. :
  18684. else
  18685. echo "$as_me: failed program was:" >&5
  18686. sed 's/^/| /' conftest.$ac_ext >&5
  18687. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18688. CXXFLAGS="-g"
  18689. cat >conftest.$ac_ext <<_ACEOF
  18690. /* confdefs.h. */
  18691. _ACEOF
  18692. cat confdefs.h >>conftest.$ac_ext
  18693. cat >>conftest.$ac_ext <<_ACEOF
  18694. /* end confdefs.h. */
  18695. int
  18696. main ()
  18697. {
  18698. ;
  18699. return 0;
  18700. }
  18701. _ACEOF
  18702. rm -f conftest.$ac_objext
  18703. if { (ac_try="$ac_compile"
  18704. case "(($ac_try" in
  18705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18706. *) ac_try_echo=$ac_try;;
  18707. esac
  18708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18709. (eval "$ac_compile") 2>conftest.er1
  18710. ac_status=$?
  18711. grep -v '^ *+' conftest.er1 >conftest.err
  18712. rm -f conftest.er1
  18713. cat conftest.err >&5
  18714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18715. (exit $ac_status); } && {
  18716. test -z "$ac_cxx_werror_flag" ||
  18717. test ! -s conftest.err
  18718. } && test -s conftest.$ac_objext; then
  18719. ac_cv_prog_cxx_g=yes
  18720. else
  18721. echo "$as_me: failed program was:" >&5
  18722. sed 's/^/| /' conftest.$ac_ext >&5
  18723. fi
  18724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18725. fi
  18726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18727. fi
  18728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18729. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18730. fi
  18731. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18732. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  18733. if test "$ac_test_CXXFLAGS" = set; then
  18734. CXXFLAGS=$ac_save_CXXFLAGS
  18735. elif test $ac_cv_prog_cxx_g = yes; then
  18736. if test "$GXX" = yes; then
  18737. CXXFLAGS="-g -O2"
  18738. else
  18739. CXXFLAGS="-g"
  18740. fi
  18741. else
  18742. if test "$GXX" = yes; then
  18743. CXXFLAGS="-O2"
  18744. else
  18745. CXXFLAGS=
  18746. fi
  18747. fi
  18748. ac_ext=c
  18749. ac_cpp='$CPP $CPPFLAGS'
  18750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18753. depcc="$CXX" am_compiler_list=
  18754. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18755. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18756. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18757. echo $ECHO_N "(cached) $ECHO_C" >&6
  18758. else
  18759. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18760. # We make a subdir and do the tests there. Otherwise we can end up
  18761. # making bogus files that we don't know about and never remove. For
  18762. # instance it was reported that on HP-UX the gcc test will end up
  18763. # making a dummy file named `D' -- because `-MD' means `put the output
  18764. # in D'.
  18765. mkdir conftest.dir
  18766. # Copy depcomp to subdir because otherwise we won't find it if we're
  18767. # using a relative directory.
  18768. cp "$am_depcomp" conftest.dir
  18769. cd conftest.dir
  18770. # We will build objects and dependencies in a subdirectory because
  18771. # it helps to detect inapplicable dependency modes. For instance
  18772. # both Tru64's cc and ICC support -MD to output dependencies as a
  18773. # side effect of compilation, but ICC will put the dependencies in
  18774. # the current directory while Tru64 will put them in the object
  18775. # directory.
  18776. mkdir sub
  18777. am_cv_CXX_dependencies_compiler_type=none
  18778. if test "$am_compiler_list" = ""; then
  18779. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18780. fi
  18781. for depmode in $am_compiler_list; do
  18782. # Setup a source with many dependencies, because some compilers
  18783. # like to wrap large dependency lists on column 80 (with \), and
  18784. # we should not choose a depcomp mode which is confused by this.
  18785. #
  18786. # We need to recreate these files for each test, as the compiler may
  18787. # overwrite some of them when testing with obscure command lines.
  18788. # This happens at least with the AIX C compiler.
  18789. : > sub/conftest.c
  18790. for i in 1 2 3 4 5 6; do
  18791. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18792. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18793. # Solaris 8's {/usr,}/bin/sh.
  18794. touch sub/conftst$i.h
  18795. done
  18796. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18797. case $depmode in
  18798. nosideeffect)
  18799. # after this tag, mechanisms are not by side-effect, so they'll
  18800. # only be used when explicitly requested
  18801. if test "x$enable_dependency_tracking" = xyes; then
  18802. continue
  18803. else
  18804. break
  18805. fi
  18806. ;;
  18807. none) break ;;
  18808. esac
  18809. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18810. # mode. It turns out that the SunPro C++ compiler does not properly
  18811. # handle `-M -o', and we need to detect this.
  18812. if depmode=$depmode \
  18813. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18814. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18815. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18816. >/dev/null 2>conftest.err &&
  18817. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18818. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18819. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18820. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18821. # icc doesn't choke on unknown options, it will just issue warnings
  18822. # or remarks (even with -Werror). So we grep stderr for any message
  18823. # that says an option was ignored or not supported.
  18824. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18825. # icc: Command line warning: ignoring option '-M'; no argument required
  18826. # The diagnosis changed in icc 8.0:
  18827. # icc: Command line remark: option '-MP' not supported
  18828. if (grep 'ignoring option' conftest.err ||
  18829. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18830. am_cv_CXX_dependencies_compiler_type=$depmode
  18831. break
  18832. fi
  18833. fi
  18834. done
  18835. cd ..
  18836. rm -rf conftest.dir
  18837. else
  18838. am_cv_CXX_dependencies_compiler_type=none
  18839. fi
  18840. fi
  18841. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  18842. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  18843. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  18844. if
  18845. test "x$enable_dependency_tracking" != xno \
  18846. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  18847. am__fastdepCXX_TRUE=
  18848. am__fastdepCXX_FALSE='#'
  18849. else
  18850. am__fastdepCXX_TRUE='#'
  18851. am__fastdepCXX_FALSE=
  18852. fi
  18853. ac_ext=c
  18854. ac_cpp='$CPP $CPPFLAGS'
  18855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18858. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18859. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  18860. # On Suns, sometimes $CPP names a directory.
  18861. if test -n "$CPP" && test -d "$CPP"; then
  18862. CPP=
  18863. fi
  18864. if test -z "$CPP"; then
  18865. if test "${ac_cv_prog_CPP+set}" = set; then
  18866. echo $ECHO_N "(cached) $ECHO_C" >&6
  18867. else
  18868. # Double quotes because CPP needs to be expanded
  18869. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18870. do
  18871. ac_preproc_ok=false
  18872. for ac_c_preproc_warn_flag in '' yes
  18873. do
  18874. # Use a header file that comes with gcc, so configuring glibc
  18875. # with a fresh cross-compiler works.
  18876. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18877. # <limits.h> exists even on freestanding compilers.
  18878. # On the NeXT, cc -E runs the code through the compiler's parser,
  18879. # not just through cpp. "Syntax error" is here to catch this case.
  18880. cat >conftest.$ac_ext <<_ACEOF
  18881. /* confdefs.h. */
  18882. _ACEOF
  18883. cat confdefs.h >>conftest.$ac_ext
  18884. cat >>conftest.$ac_ext <<_ACEOF
  18885. /* end confdefs.h. */
  18886. #ifdef __STDC__
  18887. # include <limits.h>
  18888. #else
  18889. # include <assert.h>
  18890. #endif
  18891. Syntax error
  18892. _ACEOF
  18893. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18894. case "(($ac_try" in
  18895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18896. *) ac_try_echo=$ac_try;;
  18897. esac
  18898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18899. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18900. ac_status=$?
  18901. grep -v '^ *+' conftest.er1 >conftest.err
  18902. rm -f conftest.er1
  18903. cat conftest.err >&5
  18904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18905. (exit $ac_status); } >/dev/null && {
  18906. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18907. test ! -s conftest.err
  18908. }; then
  18909. :
  18910. else
  18911. echo "$as_me: failed program was:" >&5
  18912. sed 's/^/| /' conftest.$ac_ext >&5
  18913. # Broken: fails on valid input.
  18914. continue
  18915. fi
  18916. rm -f conftest.err conftest.$ac_ext
  18917. # OK, works on sane cases. Now check whether nonexistent headers
  18918. # can be detected and how.
  18919. cat >conftest.$ac_ext <<_ACEOF
  18920. /* confdefs.h. */
  18921. _ACEOF
  18922. cat confdefs.h >>conftest.$ac_ext
  18923. cat >>conftest.$ac_ext <<_ACEOF
  18924. /* end confdefs.h. */
  18925. #include <ac_nonexistent.h>
  18926. _ACEOF
  18927. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18928. case "(($ac_try" in
  18929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18930. *) ac_try_echo=$ac_try;;
  18931. esac
  18932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18933. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18934. ac_status=$?
  18935. grep -v '^ *+' conftest.er1 >conftest.err
  18936. rm -f conftest.er1
  18937. cat conftest.err >&5
  18938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18939. (exit $ac_status); } >/dev/null && {
  18940. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18941. test ! -s conftest.err
  18942. }; then
  18943. # Broken: success on invalid input.
  18944. continue
  18945. else
  18946. echo "$as_me: failed program was:" >&5
  18947. sed 's/^/| /' conftest.$ac_ext >&5
  18948. # Passes both tests.
  18949. ac_preproc_ok=:
  18950. break
  18951. fi
  18952. rm -f conftest.err conftest.$ac_ext
  18953. done
  18954. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18955. rm -f conftest.err conftest.$ac_ext
  18956. if $ac_preproc_ok; then
  18957. break
  18958. fi
  18959. done
  18960. ac_cv_prog_CPP=$CPP
  18961. fi
  18962. CPP=$ac_cv_prog_CPP
  18963. else
  18964. ac_cv_prog_CPP=$CPP
  18965. fi
  18966. { echo "$as_me:$LINENO: result: $CPP" >&5
  18967. echo "${ECHO_T}$CPP" >&6; }
  18968. ac_preproc_ok=false
  18969. for ac_c_preproc_warn_flag in '' yes
  18970. do
  18971. # Use a header file that comes with gcc, so configuring glibc
  18972. # with a fresh cross-compiler works.
  18973. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18974. # <limits.h> exists even on freestanding compilers.
  18975. # On the NeXT, cc -E runs the code through the compiler's parser,
  18976. # not just through cpp. "Syntax error" is here to catch this case.
  18977. cat >conftest.$ac_ext <<_ACEOF
  18978. /* confdefs.h. */
  18979. _ACEOF
  18980. cat confdefs.h >>conftest.$ac_ext
  18981. cat >>conftest.$ac_ext <<_ACEOF
  18982. /* end confdefs.h. */
  18983. #ifdef __STDC__
  18984. # include <limits.h>
  18985. #else
  18986. # include <assert.h>
  18987. #endif
  18988. Syntax error
  18989. _ACEOF
  18990. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18991. case "(($ac_try" in
  18992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18993. *) ac_try_echo=$ac_try;;
  18994. esac
  18995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18996. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18997. ac_status=$?
  18998. grep -v '^ *+' conftest.er1 >conftest.err
  18999. rm -f conftest.er1
  19000. cat conftest.err >&5
  19001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19002. (exit $ac_status); } >/dev/null && {
  19003. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19004. test ! -s conftest.err
  19005. }; then
  19006. :
  19007. else
  19008. echo "$as_me: failed program was:" >&5
  19009. sed 's/^/| /' conftest.$ac_ext >&5
  19010. # Broken: fails on valid input.
  19011. continue
  19012. fi
  19013. rm -f conftest.err conftest.$ac_ext
  19014. # OK, works on sane cases. Now check whether nonexistent headers
  19015. # can be detected and how.
  19016. cat >conftest.$ac_ext <<_ACEOF
  19017. /* confdefs.h. */
  19018. _ACEOF
  19019. cat confdefs.h >>conftest.$ac_ext
  19020. cat >>conftest.$ac_ext <<_ACEOF
  19021. /* end confdefs.h. */
  19022. #include <ac_nonexistent.h>
  19023. _ACEOF
  19024. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19025. case "(($ac_try" in
  19026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19027. *) ac_try_echo=$ac_try;;
  19028. esac
  19029. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19030. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19031. ac_status=$?
  19032. grep -v '^ *+' conftest.er1 >conftest.err
  19033. rm -f conftest.er1
  19034. cat conftest.err >&5
  19035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19036. (exit $ac_status); } >/dev/null && {
  19037. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19038. test ! -s conftest.err
  19039. }; then
  19040. # Broken: success on invalid input.
  19041. continue
  19042. else
  19043. echo "$as_me: failed program was:" >&5
  19044. sed 's/^/| /' conftest.$ac_ext >&5
  19045. # Passes both tests.
  19046. ac_preproc_ok=:
  19047. break
  19048. fi
  19049. rm -f conftest.err conftest.$ac_ext
  19050. done
  19051. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  19052. rm -f conftest.err conftest.$ac_ext
  19053. if $ac_preproc_ok; then
  19054. :
  19055. else
  19056. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  19057. See \`config.log' for more details." >&5
  19058. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  19059. See \`config.log' for more details." >&2;}
  19060. { (exit 1); exit 1; }; }
  19061. fi
  19062. ac_ext=c
  19063. ac_cpp='$CPP $CPPFLAGS'
  19064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19067. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19068. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  19069. LN_S=$as_ln_s
  19070. if test "$LN_S" = "ln -s"; then
  19071. { echo "$as_me:$LINENO: result: yes" >&5
  19072. echo "${ECHO_T}yes" >&6; }
  19073. else
  19074. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19075. echo "${ECHO_T}no, using $LN_S" >&6; }
  19076. fi
  19077. if test -n "$ac_tool_prefix"; then
  19078. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  19079. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  19080. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19081. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19082. if test "${ac_cv_prog_RANLIB+set}" = set; then
  19083. echo $ECHO_N "(cached) $ECHO_C" >&6
  19084. else
  19085. if test -n "$RANLIB"; then
  19086. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  19087. else
  19088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19089. for as_dir in $PATH
  19090. do
  19091. IFS=$as_save_IFS
  19092. test -z "$as_dir" && as_dir=.
  19093. for ac_exec_ext in '' $ac_executable_extensions; do
  19094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19095. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  19096. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19097. break 2
  19098. fi
  19099. done
  19100. done
  19101. IFS=$as_save_IFS
  19102. fi
  19103. fi
  19104. RANLIB=$ac_cv_prog_RANLIB
  19105. if test -n "$RANLIB"; then
  19106. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  19107. echo "${ECHO_T}$RANLIB" >&6; }
  19108. else
  19109. { echo "$as_me:$LINENO: result: no" >&5
  19110. echo "${ECHO_T}no" >&6; }
  19111. fi
  19112. fi
  19113. if test -z "$ac_cv_prog_RANLIB"; then
  19114. ac_ct_RANLIB=$RANLIB
  19115. # Extract the first word of "ranlib", so it can be a program name with args.
  19116. set dummy ranlib; ac_word=$2
  19117. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19118. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19119. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  19120. echo $ECHO_N "(cached) $ECHO_C" >&6
  19121. else
  19122. if test -n "$ac_ct_RANLIB"; then
  19123. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  19124. else
  19125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19126. for as_dir in $PATH
  19127. do
  19128. IFS=$as_save_IFS
  19129. test -z "$as_dir" && as_dir=.
  19130. for ac_exec_ext in '' $ac_executable_extensions; do
  19131. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19132. ac_cv_prog_ac_ct_RANLIB="ranlib"
  19133. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19134. break 2
  19135. fi
  19136. done
  19137. done
  19138. IFS=$as_save_IFS
  19139. fi
  19140. fi
  19141. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  19142. if test -n "$ac_ct_RANLIB"; then
  19143. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  19144. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  19145. else
  19146. { echo "$as_me:$LINENO: result: no" >&5
  19147. echo "${ECHO_T}no" >&6; }
  19148. fi
  19149. if test "x$ac_ct_RANLIB" = x; then
  19150. RANLIB=":"
  19151. else
  19152. case $cross_compiling:$ac_tool_warned in
  19153. yes:)
  19154. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19155. whose name does not start with the host triplet. If you think this
  19156. configuration is useful to you, please write to autoconf@gnu.org." >&5
  19157. echo "$as_me: 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." >&2;}
  19160. ac_tool_warned=yes ;;
  19161. esac
  19162. RANLIB=$ac_ct_RANLIB
  19163. fi
  19164. else
  19165. RANLIB="$ac_cv_prog_RANLIB"
  19166. fi
  19167. for ac_prog in gawk mawk nawk awk
  19168. do
  19169. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19170. set dummy $ac_prog; ac_word=$2
  19171. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19173. if test "${ac_cv_prog_AWK+set}" = set; then
  19174. echo $ECHO_N "(cached) $ECHO_C" >&6
  19175. else
  19176. if test -n "$AWK"; then
  19177. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19178. else
  19179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19180. for as_dir in $PATH
  19181. do
  19182. IFS=$as_save_IFS
  19183. test -z "$as_dir" && as_dir=.
  19184. for ac_exec_ext in '' $ac_executable_extensions; do
  19185. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19186. ac_cv_prog_AWK="$ac_prog"
  19187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19188. break 2
  19189. fi
  19190. done
  19191. done
  19192. IFS=$as_save_IFS
  19193. fi
  19194. fi
  19195. AWK=$ac_cv_prog_AWK
  19196. if test -n "$AWK"; then
  19197. { echo "$as_me:$LINENO: result: $AWK" >&5
  19198. echo "${ECHO_T}$AWK" >&6; }
  19199. else
  19200. { echo "$as_me:$LINENO: result: no" >&5
  19201. echo "${ECHO_T}no" >&6; }
  19202. fi
  19203. test -n "$AWK" && break
  19204. done
  19205. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19206. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  19207. if test "${ac_cv_path_SED+set}" = set; then
  19208. echo $ECHO_N "(cached) $ECHO_C" >&6
  19209. else
  19210. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19211. for ac_i in 1 2 3 4 5 6 7; do
  19212. ac_script="$ac_script$as_nl$ac_script"
  19213. done
  19214. echo "$ac_script" | sed 99q >conftest.sed
  19215. $as_unset ac_script || ac_script=
  19216. # Extract the first word of "sed gsed" to use in msg output
  19217. if test -z "$SED"; then
  19218. set dummy sed gsed; ac_prog_name=$2
  19219. if test "${ac_cv_path_SED+set}" = set; then
  19220. echo $ECHO_N "(cached) $ECHO_C" >&6
  19221. else
  19222. ac_path_SED_found=false
  19223. # Loop through the user's path and test for each of PROGNAME-LIST
  19224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19225. for as_dir in $PATH
  19226. do
  19227. IFS=$as_save_IFS
  19228. test -z "$as_dir" && as_dir=.
  19229. for ac_prog in sed gsed; do
  19230. for ac_exec_ext in '' $ac_executable_extensions; do
  19231. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19232. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19233. # Check for GNU ac_path_SED and select it if it is found.
  19234. # Check for GNU $ac_path_SED
  19235. case `"$ac_path_SED" --version 2>&1` in
  19236. *GNU*)
  19237. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19238. *)
  19239. ac_count=0
  19240. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19241. while :
  19242. do
  19243. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19244. mv "conftest.tmp" "conftest.in"
  19245. cp "conftest.in" "conftest.nl"
  19246. echo '' >> "conftest.nl"
  19247. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19248. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19249. ac_count=`expr $ac_count + 1`
  19250. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19251. # Best one so far, save it but keep looking for a better one
  19252. ac_cv_path_SED="$ac_path_SED"
  19253. ac_path_SED_max=$ac_count
  19254. fi
  19255. # 10*(2^10) chars as input seems more than enough
  19256. test $ac_count -gt 10 && break
  19257. done
  19258. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19259. esac
  19260. $ac_path_SED_found && break 3
  19261. done
  19262. done
  19263. done
  19264. IFS=$as_save_IFS
  19265. fi
  19266. SED="$ac_cv_path_SED"
  19267. if test -z "$SED"; then
  19268. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  19269. echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  19270. { (exit 1); exit 1; }; }
  19271. fi
  19272. else
  19273. ac_cv_path_SED=$SED
  19274. fi
  19275. fi
  19276. { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  19277. echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  19278. SED="$ac_cv_path_SED"
  19279. rm -f conftest.sed
  19280. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19281. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  19282. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19283. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19284. echo $ECHO_N "(cached) $ECHO_C" >&6
  19285. else
  19286. cat >conftest.make <<\_ACEOF
  19287. SHELL = /bin/sh
  19288. all:
  19289. @echo '@@@%%%=$(MAKE)=@@@%%%'
  19290. _ACEOF
  19291. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19292. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19293. *@@@%%%=?*=@@@%%%*)
  19294. eval ac_cv_prog_make_${ac_make}_set=yes;;
  19295. *)
  19296. eval ac_cv_prog_make_${ac_make}_set=no;;
  19297. esac
  19298. rm -f conftest.make
  19299. fi
  19300. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19301. { echo "$as_me:$LINENO: result: yes" >&5
  19302. echo "${ECHO_T}yes" >&6; }
  19303. SET_MAKE=
  19304. else
  19305. { echo "$as_me:$LINENO: result: no" >&5
  19306. echo "${ECHO_T}no" >&6; }
  19307. SET_MAKE="MAKE=${MAKE-make}"
  19308. fi
  19309. # Extract the first word of "printf", so it can be a program name with args.
  19310. set dummy printf; ac_word=$2
  19311. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19312. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19313. if test "${ac_cv_path_PRINTF+set}" = set; then
  19314. echo $ECHO_N "(cached) $ECHO_C" >&6
  19315. else
  19316. case $PRINTF in
  19317. [\\/]* | ?:[\\/]*)
  19318. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19319. ;;
  19320. *)
  19321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19322. for as_dir in $PATH
  19323. do
  19324. IFS=$as_save_IFS
  19325. test -z "$as_dir" && as_dir=.
  19326. for ac_exec_ext in '' $ac_executable_extensions; do
  19327. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19328. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19329. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19330. break 2
  19331. fi
  19332. done
  19333. done
  19334. IFS=$as_save_IFS
  19335. ;;
  19336. esac
  19337. fi
  19338. PRINTF=$ac_cv_path_PRINTF
  19339. if test -n "$PRINTF"; then
  19340. { echo "$as_me:$LINENO: result: $PRINTF" >&5
  19341. echo "${ECHO_T}$PRINTF" >&6; }
  19342. else
  19343. { echo "$as_me:$LINENO: result: no" >&5
  19344. echo "${ECHO_T}no" >&6; }
  19345. fi
  19346. # Extract the first word of "autogen", so it can be a program name with args.
  19347. set dummy autogen; ac_word=$2
  19348. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19349. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19350. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19351. echo $ECHO_N "(cached) $ECHO_C" >&6
  19352. else
  19353. case $AUTOGEN in
  19354. [\\/]* | ?:[\\/]*)
  19355. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19356. ;;
  19357. *)
  19358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19359. for as_dir in $PATH
  19360. do
  19361. IFS=$as_save_IFS
  19362. test -z "$as_dir" && as_dir=.
  19363. for ac_exec_ext in '' $ac_executable_extensions; do
  19364. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19365. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19366. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19367. break 2
  19368. fi
  19369. done
  19370. done
  19371. IFS=$as_save_IFS
  19372. ;;
  19373. esac
  19374. fi
  19375. AUTOGEN=$ac_cv_path_AUTOGEN
  19376. if test -n "$AUTOGEN"; then
  19377. { echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19378. echo "${ECHO_T}$AUTOGEN" >&6; }
  19379. else
  19380. { echo "$as_me:$LINENO: result: no" >&5
  19381. echo "${ECHO_T}no" >&6; }
  19382. fi
  19383. # Extract the first word of "echo", so it can be a program name with args.
  19384. set dummy echo; ac_word=$2
  19385. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19386. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19387. if test "${ac_cv_path_ECHO+set}" = set; then
  19388. echo $ECHO_N "(cached) $ECHO_C" >&6
  19389. else
  19390. case $ECHO in
  19391. [\\/]* | ?:[\\/]*)
  19392. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  19393. ;;
  19394. *)
  19395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19396. for as_dir in $PATH
  19397. do
  19398. IFS=$as_save_IFS
  19399. test -z "$as_dir" && as_dir=.
  19400. for ac_exec_ext in '' $ac_executable_extensions; do
  19401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19402. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  19403. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19404. break 2
  19405. fi
  19406. done
  19407. done
  19408. IFS=$as_save_IFS
  19409. ;;
  19410. esac
  19411. fi
  19412. ECHO=$ac_cv_path_ECHO
  19413. if test -n "$ECHO"; then
  19414. { echo "$as_me:$LINENO: result: $ECHO" >&5
  19415. echo "${ECHO_T}$ECHO" >&6; }
  19416. else
  19417. { echo "$as_me:$LINENO: result: no" >&5
  19418. echo "${ECHO_T}no" >&6; }
  19419. fi
  19420. if test -n "${AUTOGEN}" ; then
  19421. { echo "$as_me:$LINENO: checking for autogen version >= 5.9" >&5
  19422. echo $ECHO_N "checking for autogen version >= 5.9... $ECHO_C" >&6; }
  19423. AUTOGEN_VERSION=`${AUTOGEN} -v | ${SED} 's|.*\([0-9\.]\{3,\}\)$|\1|'`
  19424. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.[0-9]|\1|'`
  19425. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.\([0-9]\)|\2|'`
  19426. if test ${AUTOGEN_MAJOR} -le 5 && test ${AUTOGEN_MINOR} -lt 9 || test ${AUTOGEN_MAJOR} -lt 5 ; then
  19427. { echo "$as_me:$LINENO: result: no" >&5
  19428. echo "${ECHO_T}no" >&6; }
  19429. { echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&5
  19430. echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&2;}
  19431. else
  19432. { echo "$as_me:$LINENO: result: yes" >&5
  19433. echo "${ECHO_T}yes" >&6; }
  19434. fi
  19435. else
  19436. { echo "$as_me:$LINENO: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&5
  19437. echo "$as_me: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&2;}
  19438. fi
  19439. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19440. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  19441. if test "${ac_cv_header_stdc+set}" = set; then
  19442. echo $ECHO_N "(cached) $ECHO_C" >&6
  19443. else
  19444. cat >conftest.$ac_ext <<_ACEOF
  19445. /* confdefs.h. */
  19446. _ACEOF
  19447. cat confdefs.h >>conftest.$ac_ext
  19448. cat >>conftest.$ac_ext <<_ACEOF
  19449. /* end confdefs.h. */
  19450. #include <stdlib.h>
  19451. #include <stdarg.h>
  19452. #include <string.h>
  19453. #include <float.h>
  19454. int
  19455. main ()
  19456. {
  19457. ;
  19458. return 0;
  19459. }
  19460. _ACEOF
  19461. rm -f conftest.$ac_objext
  19462. if { (ac_try="$ac_compile"
  19463. case "(($ac_try" in
  19464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19465. *) ac_try_echo=$ac_try;;
  19466. esac
  19467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19468. (eval "$ac_compile") 2>conftest.er1
  19469. ac_status=$?
  19470. grep -v '^ *+' conftest.er1 >conftest.err
  19471. rm -f conftest.er1
  19472. cat conftest.err >&5
  19473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19474. (exit $ac_status); } && {
  19475. test -z "$ac_c_werror_flag" ||
  19476. test ! -s conftest.err
  19477. } && test -s conftest.$ac_objext; then
  19478. ac_cv_header_stdc=yes
  19479. else
  19480. echo "$as_me: failed program was:" >&5
  19481. sed 's/^/| /' conftest.$ac_ext >&5
  19482. ac_cv_header_stdc=no
  19483. fi
  19484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19485. if test $ac_cv_header_stdc = yes; then
  19486. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19487. cat >conftest.$ac_ext <<_ACEOF
  19488. /* confdefs.h. */
  19489. _ACEOF
  19490. cat confdefs.h >>conftest.$ac_ext
  19491. cat >>conftest.$ac_ext <<_ACEOF
  19492. /* end confdefs.h. */
  19493. #include <string.h>
  19494. _ACEOF
  19495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19496. $EGREP "memchr" >/dev/null 2>&1; then
  19497. :
  19498. else
  19499. ac_cv_header_stdc=no
  19500. fi
  19501. rm -f conftest*
  19502. fi
  19503. if test $ac_cv_header_stdc = yes; then
  19504. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19505. cat >conftest.$ac_ext <<_ACEOF
  19506. /* confdefs.h. */
  19507. _ACEOF
  19508. cat confdefs.h >>conftest.$ac_ext
  19509. cat >>conftest.$ac_ext <<_ACEOF
  19510. /* end confdefs.h. */
  19511. #include <stdlib.h>
  19512. _ACEOF
  19513. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19514. $EGREP "free" >/dev/null 2>&1; then
  19515. :
  19516. else
  19517. ac_cv_header_stdc=no
  19518. fi
  19519. rm -f conftest*
  19520. fi
  19521. if test $ac_cv_header_stdc = yes; then
  19522. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19523. if test "$cross_compiling" = yes; then
  19524. :
  19525. else
  19526. cat >conftest.$ac_ext <<_ACEOF
  19527. /* confdefs.h. */
  19528. _ACEOF
  19529. cat confdefs.h >>conftest.$ac_ext
  19530. cat >>conftest.$ac_ext <<_ACEOF
  19531. /* end confdefs.h. */
  19532. #include <ctype.h>
  19533. #include <stdlib.h>
  19534. #if ((' ' & 0x0FF) == 0x020)
  19535. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19536. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19537. #else
  19538. # define ISLOWER(c) \
  19539. (('a' <= (c) && (c) <= 'i') \
  19540. || ('j' <= (c) && (c) <= 'r') \
  19541. || ('s' <= (c) && (c) <= 'z'))
  19542. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19543. #endif
  19544. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19545. int
  19546. main ()
  19547. {
  19548. int i;
  19549. for (i = 0; i < 256; i++)
  19550. if (XOR (islower (i), ISLOWER (i))
  19551. || toupper (i) != TOUPPER (i))
  19552. return 2;
  19553. return 0;
  19554. }
  19555. _ACEOF
  19556. rm -f conftest$ac_exeext
  19557. if { (ac_try="$ac_link"
  19558. case "(($ac_try" in
  19559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19560. *) ac_try_echo=$ac_try;;
  19561. esac
  19562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19563. (eval "$ac_link") 2>&5
  19564. ac_status=$?
  19565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19566. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19567. { (case "(($ac_try" in
  19568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19569. *) ac_try_echo=$ac_try;;
  19570. esac
  19571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19572. (eval "$ac_try") 2>&5
  19573. ac_status=$?
  19574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19575. (exit $ac_status); }; }; then
  19576. :
  19577. else
  19578. echo "$as_me: program exited with status $ac_status" >&5
  19579. echo "$as_me: failed program was:" >&5
  19580. sed 's/^/| /' conftest.$ac_ext >&5
  19581. ( exit $ac_status )
  19582. ac_cv_header_stdc=no
  19583. fi
  19584. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19585. fi
  19586. fi
  19587. fi
  19588. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19589. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  19590. if test $ac_cv_header_stdc = yes; then
  19591. cat >>confdefs.h <<\_ACEOF
  19592. #define STDC_HEADERS 1
  19593. _ACEOF
  19594. fi
  19595. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19596. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  19597. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19598. echo $ECHO_N "(cached) $ECHO_C" >&6
  19599. else
  19600. cat >conftest.$ac_ext <<_ACEOF
  19601. /* confdefs.h. */
  19602. _ACEOF
  19603. cat confdefs.h >>conftest.$ac_ext
  19604. cat >>conftest.$ac_ext <<_ACEOF
  19605. /* end confdefs.h. */
  19606. #include <sys/types.h>
  19607. int
  19608. main ()
  19609. {
  19610. return makedev(0, 0);
  19611. ;
  19612. return 0;
  19613. }
  19614. _ACEOF
  19615. rm -f conftest.$ac_objext conftest$ac_exeext
  19616. if { (ac_try="$ac_link"
  19617. case "(($ac_try" in
  19618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19619. *) ac_try_echo=$ac_try;;
  19620. esac
  19621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19622. (eval "$ac_link") 2>conftest.er1
  19623. ac_status=$?
  19624. grep -v '^ *+' conftest.er1 >conftest.err
  19625. rm -f conftest.er1
  19626. cat conftest.err >&5
  19627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19628. (exit $ac_status); } && {
  19629. test -z "$ac_c_werror_flag" ||
  19630. test ! -s conftest.err
  19631. } && test -s conftest$ac_exeext &&
  19632. $as_test_x conftest$ac_exeext; then
  19633. ac_cv_header_sys_types_h_makedev=yes
  19634. else
  19635. echo "$as_me: failed program was:" >&5
  19636. sed 's/^/| /' conftest.$ac_ext >&5
  19637. ac_cv_header_sys_types_h_makedev=no
  19638. fi
  19639. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19640. conftest$ac_exeext conftest.$ac_ext
  19641. fi
  19642. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19643. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  19644. if test $ac_cv_header_sys_types_h_makedev = no; then
  19645. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19646. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19647. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19648. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19649. echo $ECHO_N "(cached) $ECHO_C" >&6
  19650. fi
  19651. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19652. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19653. else
  19654. # Is the header compilable?
  19655. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19656. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  19657. cat >conftest.$ac_ext <<_ACEOF
  19658. /* confdefs.h. */
  19659. _ACEOF
  19660. cat confdefs.h >>conftest.$ac_ext
  19661. cat >>conftest.$ac_ext <<_ACEOF
  19662. /* end confdefs.h. */
  19663. $ac_includes_default
  19664. #include <sys/mkdev.h>
  19665. _ACEOF
  19666. rm -f conftest.$ac_objext
  19667. if { (ac_try="$ac_compile"
  19668. case "(($ac_try" in
  19669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19670. *) ac_try_echo=$ac_try;;
  19671. esac
  19672. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19673. (eval "$ac_compile") 2>conftest.er1
  19674. ac_status=$?
  19675. grep -v '^ *+' conftest.er1 >conftest.err
  19676. rm -f conftest.er1
  19677. cat conftest.err >&5
  19678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19679. (exit $ac_status); } && {
  19680. test -z "$ac_c_werror_flag" ||
  19681. test ! -s conftest.err
  19682. } && test -s conftest.$ac_objext; then
  19683. ac_header_compiler=yes
  19684. else
  19685. echo "$as_me: failed program was:" >&5
  19686. sed 's/^/| /' conftest.$ac_ext >&5
  19687. ac_header_compiler=no
  19688. fi
  19689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19690. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19691. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19692. # Is the header present?
  19693. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19694. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  19695. cat >conftest.$ac_ext <<_ACEOF
  19696. /* confdefs.h. */
  19697. _ACEOF
  19698. cat confdefs.h >>conftest.$ac_ext
  19699. cat >>conftest.$ac_ext <<_ACEOF
  19700. /* end confdefs.h. */
  19701. #include <sys/mkdev.h>
  19702. _ACEOF
  19703. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19704. case "(($ac_try" in
  19705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19706. *) ac_try_echo=$ac_try;;
  19707. esac
  19708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19709. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19710. ac_status=$?
  19711. grep -v '^ *+' conftest.er1 >conftest.err
  19712. rm -f conftest.er1
  19713. cat conftest.err >&5
  19714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19715. (exit $ac_status); } >/dev/null && {
  19716. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19717. test ! -s conftest.err
  19718. }; then
  19719. ac_header_preproc=yes
  19720. else
  19721. echo "$as_me: failed program was:" >&5
  19722. sed 's/^/| /' conftest.$ac_ext >&5
  19723. ac_header_preproc=no
  19724. fi
  19725. rm -f conftest.err conftest.$ac_ext
  19726. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19727. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19728. # So? What about this header?
  19729. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19730. yes:no: )
  19731. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19732. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19733. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19734. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19735. ac_header_preproc=yes
  19736. ;;
  19737. no:yes:* )
  19738. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19739. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19740. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19741. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19742. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19743. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19744. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19745. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19746. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19747. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19748. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19749. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19750. ;;
  19751. esac
  19752. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19753. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19754. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19755. echo $ECHO_N "(cached) $ECHO_C" >&6
  19756. else
  19757. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19758. fi
  19759. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19760. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19761. fi
  19762. if test $ac_cv_header_sys_mkdev_h = yes; then
  19763. cat >>confdefs.h <<\_ACEOF
  19764. #define MAJOR_IN_MKDEV 1
  19765. _ACEOF
  19766. fi
  19767. if test $ac_cv_header_sys_mkdev_h = no; then
  19768. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19769. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19770. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19771. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19772. echo $ECHO_N "(cached) $ECHO_C" >&6
  19773. fi
  19774. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19775. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19776. else
  19777. # Is the header compilable?
  19778. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19779. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  19780. cat >conftest.$ac_ext <<_ACEOF
  19781. /* confdefs.h. */
  19782. _ACEOF
  19783. cat confdefs.h >>conftest.$ac_ext
  19784. cat >>conftest.$ac_ext <<_ACEOF
  19785. /* end confdefs.h. */
  19786. $ac_includes_default
  19787. #include <sys/sysmacros.h>
  19788. _ACEOF
  19789. rm -f conftest.$ac_objext
  19790. if { (ac_try="$ac_compile"
  19791. case "(($ac_try" in
  19792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19793. *) ac_try_echo=$ac_try;;
  19794. esac
  19795. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19796. (eval "$ac_compile") 2>conftest.er1
  19797. ac_status=$?
  19798. grep -v '^ *+' conftest.er1 >conftest.err
  19799. rm -f conftest.er1
  19800. cat conftest.err >&5
  19801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19802. (exit $ac_status); } && {
  19803. test -z "$ac_c_werror_flag" ||
  19804. test ! -s conftest.err
  19805. } && test -s conftest.$ac_objext; then
  19806. ac_header_compiler=yes
  19807. else
  19808. echo "$as_me: failed program was:" >&5
  19809. sed 's/^/| /' conftest.$ac_ext >&5
  19810. ac_header_compiler=no
  19811. fi
  19812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19813. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19814. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19815. # Is the header present?
  19816. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19817. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  19818. cat >conftest.$ac_ext <<_ACEOF
  19819. /* confdefs.h. */
  19820. _ACEOF
  19821. cat confdefs.h >>conftest.$ac_ext
  19822. cat >>conftest.$ac_ext <<_ACEOF
  19823. /* end confdefs.h. */
  19824. #include <sys/sysmacros.h>
  19825. _ACEOF
  19826. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19827. case "(($ac_try" in
  19828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19829. *) ac_try_echo=$ac_try;;
  19830. esac
  19831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19832. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19833. ac_status=$?
  19834. grep -v '^ *+' conftest.er1 >conftest.err
  19835. rm -f conftest.er1
  19836. cat conftest.err >&5
  19837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19838. (exit $ac_status); } >/dev/null && {
  19839. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19840. test ! -s conftest.err
  19841. }; then
  19842. ac_header_preproc=yes
  19843. else
  19844. echo "$as_me: failed program was:" >&5
  19845. sed 's/^/| /' conftest.$ac_ext >&5
  19846. ac_header_preproc=no
  19847. fi
  19848. rm -f conftest.err conftest.$ac_ext
  19849. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19850. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19851. # So? What about this header?
  19852. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19853. yes:no: )
  19854. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19855. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19856. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19857. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19858. ac_header_preproc=yes
  19859. ;;
  19860. no:yes:* )
  19861. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19862. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19863. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19864. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19865. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19866. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19867. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19868. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19869. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19870. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19871. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19872. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19873. ;;
  19874. esac
  19875. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19876. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19877. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19878. echo $ECHO_N "(cached) $ECHO_C" >&6
  19879. else
  19880. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19881. fi
  19882. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19883. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19884. fi
  19885. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19886. cat >>confdefs.h <<\_ACEOF
  19887. #define MAJOR_IN_SYSMACROS 1
  19888. _ACEOF
  19889. fi
  19890. fi
  19891. fi
  19892. { echo "$as_me:$LINENO: checking for size_t" >&5
  19893. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19894. if test "${ac_cv_type_size_t+set}" = set; then
  19895. echo $ECHO_N "(cached) $ECHO_C" >&6
  19896. else
  19897. cat >conftest.$ac_ext <<_ACEOF
  19898. /* confdefs.h. */
  19899. _ACEOF
  19900. cat confdefs.h >>conftest.$ac_ext
  19901. cat >>conftest.$ac_ext <<_ACEOF
  19902. /* end confdefs.h. */
  19903. $ac_includes_default
  19904. typedef size_t ac__type_new_;
  19905. int
  19906. main ()
  19907. {
  19908. if ((ac__type_new_ *) 0)
  19909. return 0;
  19910. if (sizeof (ac__type_new_))
  19911. return 0;
  19912. ;
  19913. return 0;
  19914. }
  19915. _ACEOF
  19916. rm -f conftest.$ac_objext
  19917. if { (ac_try="$ac_compile"
  19918. case "(($ac_try" in
  19919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19920. *) ac_try_echo=$ac_try;;
  19921. esac
  19922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19923. (eval "$ac_compile") 2>conftest.er1
  19924. ac_status=$?
  19925. grep -v '^ *+' conftest.er1 >conftest.err
  19926. rm -f conftest.er1
  19927. cat conftest.err >&5
  19928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19929. (exit $ac_status); } && {
  19930. test -z "$ac_c_werror_flag" ||
  19931. test ! -s conftest.err
  19932. } && test -s conftest.$ac_objext; then
  19933. ac_cv_type_size_t=yes
  19934. else
  19935. echo "$as_me: failed program was:" >&5
  19936. sed 's/^/| /' conftest.$ac_ext >&5
  19937. ac_cv_type_size_t=no
  19938. fi
  19939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19940. fi
  19941. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19942. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19943. if test $ac_cv_type_size_t = yes; then
  19944. :
  19945. else
  19946. cat >>confdefs.h <<_ACEOF
  19947. #define size_t unsigned int
  19948. _ACEOF
  19949. fi
  19950. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19951. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  19952. if test "${ac_cv_header_time+set}" = set; then
  19953. echo $ECHO_N "(cached) $ECHO_C" >&6
  19954. else
  19955. cat >conftest.$ac_ext <<_ACEOF
  19956. /* confdefs.h. */
  19957. _ACEOF
  19958. cat confdefs.h >>conftest.$ac_ext
  19959. cat >>conftest.$ac_ext <<_ACEOF
  19960. /* end confdefs.h. */
  19961. #include <sys/types.h>
  19962. #include <sys/time.h>
  19963. #include <time.h>
  19964. int
  19965. main ()
  19966. {
  19967. if ((struct tm *) 0)
  19968. return 0;
  19969. ;
  19970. return 0;
  19971. }
  19972. _ACEOF
  19973. rm -f conftest.$ac_objext
  19974. if { (ac_try="$ac_compile"
  19975. case "(($ac_try" in
  19976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19977. *) ac_try_echo=$ac_try;;
  19978. esac
  19979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19980. (eval "$ac_compile") 2>conftest.er1
  19981. ac_status=$?
  19982. grep -v '^ *+' conftest.er1 >conftest.err
  19983. rm -f conftest.er1
  19984. cat conftest.err >&5
  19985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19986. (exit $ac_status); } && {
  19987. test -z "$ac_c_werror_flag" ||
  19988. test ! -s conftest.err
  19989. } && test -s conftest.$ac_objext; then
  19990. ac_cv_header_time=yes
  19991. else
  19992. echo "$as_me: failed program was:" >&5
  19993. sed 's/^/| /' conftest.$ac_ext >&5
  19994. ac_cv_header_time=no
  19995. fi
  19996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19997. fi
  19998. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19999. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  20000. if test $ac_cv_header_time = yes; then
  20001. cat >>confdefs.h <<\_ACEOF
  20002. #define TIME_WITH_SYS_TIME 1
  20003. _ACEOF
  20004. fi
  20005. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  20006. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  20007. if test "${ac_cv_c_const+set}" = set; then
  20008. echo $ECHO_N "(cached) $ECHO_C" >&6
  20009. else
  20010. cat >conftest.$ac_ext <<_ACEOF
  20011. /* confdefs.h. */
  20012. _ACEOF
  20013. cat confdefs.h >>conftest.$ac_ext
  20014. cat >>conftest.$ac_ext <<_ACEOF
  20015. /* end confdefs.h. */
  20016. int
  20017. main ()
  20018. {
  20019. /* FIXME: Include the comments suggested by Paul. */
  20020. #ifndef __cplusplus
  20021. /* Ultrix mips cc rejects this. */
  20022. typedef int charset[2];
  20023. const charset cs;
  20024. /* SunOS 4.1.1 cc rejects this. */
  20025. char const *const *pcpcc;
  20026. char **ppc;
  20027. /* NEC SVR4.0.2 mips cc rejects this. */
  20028. struct point {int x, y;};
  20029. static struct point const zero = {0,0};
  20030. /* AIX XL C 1.02.0.0 rejects this.
  20031. It does not let you subtract one const X* pointer from another in
  20032. an arm of an if-expression whose if-part is not a constant
  20033. expression */
  20034. const char *g = "string";
  20035. pcpcc = &g + (g ? g-g : 0);
  20036. /* HPUX 7.0 cc rejects these. */
  20037. ++pcpcc;
  20038. ppc = (char**) pcpcc;
  20039. pcpcc = (char const *const *) ppc;
  20040. { /* SCO 3.2v4 cc rejects this. */
  20041. char *t;
  20042. char const *s = 0 ? (char *) 0 : (char const *) 0;
  20043. *t++ = 0;
  20044. if (s) return 0;
  20045. }
  20046. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  20047. int x[] = {25, 17};
  20048. const int *foo = &x[0];
  20049. ++foo;
  20050. }
  20051. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  20052. typedef const int *iptr;
  20053. iptr p = 0;
  20054. ++p;
  20055. }
  20056. { /* AIX XL C 1.02.0.0 rejects this saying
  20057. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  20058. struct s { int j; const int *ap[3]; };
  20059. struct s *b; b->j = 5;
  20060. }
  20061. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  20062. const int foo = 10;
  20063. if (!foo) return 0;
  20064. }
  20065. return !cs[0] && !zero.x;
  20066. #endif
  20067. ;
  20068. return 0;
  20069. }
  20070. _ACEOF
  20071. rm -f conftest.$ac_objext
  20072. if { (ac_try="$ac_compile"
  20073. case "(($ac_try" in
  20074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20075. *) ac_try_echo=$ac_try;;
  20076. esac
  20077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20078. (eval "$ac_compile") 2>conftest.er1
  20079. ac_status=$?
  20080. grep -v '^ *+' conftest.er1 >conftest.err
  20081. rm -f conftest.er1
  20082. cat conftest.err >&5
  20083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20084. (exit $ac_status); } && {
  20085. test -z "$ac_c_werror_flag" ||
  20086. test ! -s conftest.err
  20087. } && test -s conftest.$ac_objext; then
  20088. ac_cv_c_const=yes
  20089. else
  20090. echo "$as_me: failed program was:" >&5
  20091. sed 's/^/| /' conftest.$ac_ext >&5
  20092. ac_cv_c_const=no
  20093. fi
  20094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20095. fi
  20096. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  20097. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  20098. if test $ac_cv_c_const = no; then
  20099. cat >>confdefs.h <<\_ACEOF
  20100. #define const
  20101. _ACEOF
  20102. fi
  20103. { echo "$as_me:$LINENO: checking for inline" >&5
  20104. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  20105. if test "${ac_cv_c_inline+set}" = set; then
  20106. echo $ECHO_N "(cached) $ECHO_C" >&6
  20107. else
  20108. ac_cv_c_inline=no
  20109. for ac_kw in inline __inline__ __inline; do
  20110. cat >conftest.$ac_ext <<_ACEOF
  20111. /* confdefs.h. */
  20112. _ACEOF
  20113. cat confdefs.h >>conftest.$ac_ext
  20114. cat >>conftest.$ac_ext <<_ACEOF
  20115. /* end confdefs.h. */
  20116. #ifndef __cplusplus
  20117. typedef int foo_t;
  20118. static $ac_kw foo_t static_foo () {return 0; }
  20119. $ac_kw foo_t foo () {return 0; }
  20120. #endif
  20121. _ACEOF
  20122. rm -f conftest.$ac_objext
  20123. if { (ac_try="$ac_compile"
  20124. case "(($ac_try" in
  20125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20126. *) ac_try_echo=$ac_try;;
  20127. esac
  20128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20129. (eval "$ac_compile") 2>conftest.er1
  20130. ac_status=$?
  20131. grep -v '^ *+' conftest.er1 >conftest.err
  20132. rm -f conftest.er1
  20133. cat conftest.err >&5
  20134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20135. (exit $ac_status); } && {
  20136. test -z "$ac_c_werror_flag" ||
  20137. test ! -s conftest.err
  20138. } && test -s conftest.$ac_objext; then
  20139. ac_cv_c_inline=$ac_kw
  20140. else
  20141. echo "$as_me: failed program was:" >&5
  20142. sed 's/^/| /' conftest.$ac_ext >&5
  20143. fi
  20144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20145. test "$ac_cv_c_inline" != no && break
  20146. done
  20147. fi
  20148. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  20149. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  20150. case $ac_cv_c_inline in
  20151. inline | yes) ;;
  20152. *)
  20153. case $ac_cv_c_inline in
  20154. no) ac_val=;;
  20155. *) ac_val=$ac_cv_c_inline;;
  20156. esac
  20157. cat >>confdefs.h <<_ACEOF
  20158. #ifndef __cplusplus
  20159. #define inline $ac_val
  20160. #endif
  20161. _ACEOF
  20162. ;;
  20163. esac
  20164. # Check whether --enable-largefile was given.
  20165. if test "${enable_largefile+set}" = set; then
  20166. enableval=$enable_largefile;
  20167. fi
  20168. if test "$enable_largefile" != no; then
  20169. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  20170. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  20171. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  20172. echo $ECHO_N "(cached) $ECHO_C" >&6
  20173. else
  20174. ac_cv_sys_largefile_CC=no
  20175. if test "$GCC" != yes; then
  20176. ac_save_CC=$CC
  20177. while :; do
  20178. # IRIX 6.2 and later do not support large files by default,
  20179. # so use the C compiler's -n32 option if that helps.
  20180. cat >conftest.$ac_ext <<_ACEOF
  20181. /* confdefs.h. */
  20182. _ACEOF
  20183. cat confdefs.h >>conftest.$ac_ext
  20184. cat >>conftest.$ac_ext <<_ACEOF
  20185. /* end confdefs.h. */
  20186. #include <sys/types.h>
  20187. /* Check that off_t can represent 2**63 - 1 correctly.
  20188. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20189. since some C++ compilers masquerading as C compilers
  20190. incorrectly reject 9223372036854775807. */
  20191. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20192. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20193. && LARGE_OFF_T % 2147483647 == 1)
  20194. ? 1 : -1];
  20195. int
  20196. main ()
  20197. {
  20198. ;
  20199. return 0;
  20200. }
  20201. _ACEOF
  20202. rm -f conftest.$ac_objext
  20203. if { (ac_try="$ac_compile"
  20204. case "(($ac_try" in
  20205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20206. *) ac_try_echo=$ac_try;;
  20207. esac
  20208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20209. (eval "$ac_compile") 2>conftest.er1
  20210. ac_status=$?
  20211. grep -v '^ *+' conftest.er1 >conftest.err
  20212. rm -f conftest.er1
  20213. cat conftest.err >&5
  20214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20215. (exit $ac_status); } && {
  20216. test -z "$ac_c_werror_flag" ||
  20217. test ! -s conftest.err
  20218. } && test -s conftest.$ac_objext; then
  20219. break
  20220. else
  20221. echo "$as_me: failed program was:" >&5
  20222. sed 's/^/| /' conftest.$ac_ext >&5
  20223. fi
  20224. rm -f core conftest.err conftest.$ac_objext
  20225. CC="$CC -n32"
  20226. rm -f conftest.$ac_objext
  20227. if { (ac_try="$ac_compile"
  20228. case "(($ac_try" in
  20229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20230. *) ac_try_echo=$ac_try;;
  20231. esac
  20232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20233. (eval "$ac_compile") 2>conftest.er1
  20234. ac_status=$?
  20235. grep -v '^ *+' conftest.er1 >conftest.err
  20236. rm -f conftest.er1
  20237. cat conftest.err >&5
  20238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20239. (exit $ac_status); } && {
  20240. test -z "$ac_c_werror_flag" ||
  20241. test ! -s conftest.err
  20242. } && test -s conftest.$ac_objext; then
  20243. ac_cv_sys_largefile_CC=' -n32'; break
  20244. else
  20245. echo "$as_me: failed program was:" >&5
  20246. sed 's/^/| /' conftest.$ac_ext >&5
  20247. fi
  20248. rm -f core conftest.err conftest.$ac_objext
  20249. break
  20250. done
  20251. CC=$ac_save_CC
  20252. rm -f conftest.$ac_ext
  20253. fi
  20254. fi
  20255. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20256. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  20257. if test "$ac_cv_sys_largefile_CC" != no; then
  20258. CC=$CC$ac_cv_sys_largefile_CC
  20259. fi
  20260. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20261. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  20262. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20263. echo $ECHO_N "(cached) $ECHO_C" >&6
  20264. else
  20265. while :; do
  20266. cat >conftest.$ac_ext <<_ACEOF
  20267. /* confdefs.h. */
  20268. _ACEOF
  20269. cat confdefs.h >>conftest.$ac_ext
  20270. cat >>conftest.$ac_ext <<_ACEOF
  20271. /* end confdefs.h. */
  20272. #include <sys/types.h>
  20273. /* Check that off_t can represent 2**63 - 1 correctly.
  20274. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20275. since some C++ compilers masquerading as C compilers
  20276. incorrectly reject 9223372036854775807. */
  20277. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20278. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20279. && LARGE_OFF_T % 2147483647 == 1)
  20280. ? 1 : -1];
  20281. int
  20282. main ()
  20283. {
  20284. ;
  20285. return 0;
  20286. }
  20287. _ACEOF
  20288. rm -f conftest.$ac_objext
  20289. if { (ac_try="$ac_compile"
  20290. case "(($ac_try" in
  20291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20292. *) ac_try_echo=$ac_try;;
  20293. esac
  20294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20295. (eval "$ac_compile") 2>conftest.er1
  20296. ac_status=$?
  20297. grep -v '^ *+' conftest.er1 >conftest.err
  20298. rm -f conftest.er1
  20299. cat conftest.err >&5
  20300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20301. (exit $ac_status); } && {
  20302. test -z "$ac_c_werror_flag" ||
  20303. test ! -s conftest.err
  20304. } && test -s conftest.$ac_objext; then
  20305. ac_cv_sys_file_offset_bits=no; break
  20306. else
  20307. echo "$as_me: failed program was:" >&5
  20308. sed 's/^/| /' conftest.$ac_ext >&5
  20309. fi
  20310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20311. cat >conftest.$ac_ext <<_ACEOF
  20312. /* confdefs.h. */
  20313. _ACEOF
  20314. cat confdefs.h >>conftest.$ac_ext
  20315. cat >>conftest.$ac_ext <<_ACEOF
  20316. /* end confdefs.h. */
  20317. #define _FILE_OFFSET_BITS 64
  20318. #include <sys/types.h>
  20319. /* Check that off_t can represent 2**63 - 1 correctly.
  20320. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20321. since some C++ compilers masquerading as C compilers
  20322. incorrectly reject 9223372036854775807. */
  20323. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20324. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20325. && LARGE_OFF_T % 2147483647 == 1)
  20326. ? 1 : -1];
  20327. int
  20328. main ()
  20329. {
  20330. ;
  20331. return 0;
  20332. }
  20333. _ACEOF
  20334. rm -f conftest.$ac_objext
  20335. if { (ac_try="$ac_compile"
  20336. case "(($ac_try" in
  20337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20338. *) ac_try_echo=$ac_try;;
  20339. esac
  20340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20341. (eval "$ac_compile") 2>conftest.er1
  20342. ac_status=$?
  20343. grep -v '^ *+' conftest.er1 >conftest.err
  20344. rm -f conftest.er1
  20345. cat conftest.err >&5
  20346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20347. (exit $ac_status); } && {
  20348. test -z "$ac_c_werror_flag" ||
  20349. test ! -s conftest.err
  20350. } && test -s conftest.$ac_objext; then
  20351. ac_cv_sys_file_offset_bits=64; break
  20352. else
  20353. echo "$as_me: failed program was:" >&5
  20354. sed 's/^/| /' conftest.$ac_ext >&5
  20355. fi
  20356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20357. ac_cv_sys_file_offset_bits=unknown
  20358. break
  20359. done
  20360. fi
  20361. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20362. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  20363. case $ac_cv_sys_file_offset_bits in #(
  20364. no | unknown) ;;
  20365. *)
  20366. cat >>confdefs.h <<_ACEOF
  20367. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20368. _ACEOF
  20369. ;;
  20370. esac
  20371. rm -f conftest*
  20372. if test $ac_cv_sys_file_offset_bits = unknown; then
  20373. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20374. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20375. if test "${ac_cv_sys_large_files+set}" = set; then
  20376. echo $ECHO_N "(cached) $ECHO_C" >&6
  20377. else
  20378. while :; do
  20379. cat >conftest.$ac_ext <<_ACEOF
  20380. /* confdefs.h. */
  20381. _ACEOF
  20382. cat confdefs.h >>conftest.$ac_ext
  20383. cat >>conftest.$ac_ext <<_ACEOF
  20384. /* end confdefs.h. */
  20385. #include <sys/types.h>
  20386. /* Check that off_t can represent 2**63 - 1 correctly.
  20387. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20388. since some C++ compilers masquerading as C compilers
  20389. incorrectly reject 9223372036854775807. */
  20390. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20391. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20392. && LARGE_OFF_T % 2147483647 == 1)
  20393. ? 1 : -1];
  20394. int
  20395. main ()
  20396. {
  20397. ;
  20398. return 0;
  20399. }
  20400. _ACEOF
  20401. rm -f conftest.$ac_objext
  20402. if { (ac_try="$ac_compile"
  20403. case "(($ac_try" in
  20404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20405. *) ac_try_echo=$ac_try;;
  20406. esac
  20407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20408. (eval "$ac_compile") 2>conftest.er1
  20409. ac_status=$?
  20410. grep -v '^ *+' conftest.er1 >conftest.err
  20411. rm -f conftest.er1
  20412. cat conftest.err >&5
  20413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20414. (exit $ac_status); } && {
  20415. test -z "$ac_c_werror_flag" ||
  20416. test ! -s conftest.err
  20417. } && test -s conftest.$ac_objext; then
  20418. ac_cv_sys_large_files=no; break
  20419. else
  20420. echo "$as_me: failed program was:" >&5
  20421. sed 's/^/| /' conftest.$ac_ext >&5
  20422. fi
  20423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20424. cat >conftest.$ac_ext <<_ACEOF
  20425. /* confdefs.h. */
  20426. _ACEOF
  20427. cat confdefs.h >>conftest.$ac_ext
  20428. cat >>conftest.$ac_ext <<_ACEOF
  20429. /* end confdefs.h. */
  20430. #define _LARGE_FILES 1
  20431. #include <sys/types.h>
  20432. /* Check that off_t can represent 2**63 - 1 correctly.
  20433. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20434. since some C++ compilers masquerading as C compilers
  20435. incorrectly reject 9223372036854775807. */
  20436. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20437. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20438. && LARGE_OFF_T % 2147483647 == 1)
  20439. ? 1 : -1];
  20440. int
  20441. main ()
  20442. {
  20443. ;
  20444. return 0;
  20445. }
  20446. _ACEOF
  20447. rm -f conftest.$ac_objext
  20448. if { (ac_try="$ac_compile"
  20449. case "(($ac_try" in
  20450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20451. *) ac_try_echo=$ac_try;;
  20452. esac
  20453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20454. (eval "$ac_compile") 2>conftest.er1
  20455. ac_status=$?
  20456. grep -v '^ *+' conftest.er1 >conftest.err
  20457. rm -f conftest.er1
  20458. cat conftest.err >&5
  20459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20460. (exit $ac_status); } && {
  20461. test -z "$ac_c_werror_flag" ||
  20462. test ! -s conftest.err
  20463. } && test -s conftest.$ac_objext; then
  20464. ac_cv_sys_large_files=1; break
  20465. else
  20466. echo "$as_me: failed program was:" >&5
  20467. sed 's/^/| /' conftest.$ac_ext >&5
  20468. fi
  20469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20470. ac_cv_sys_large_files=unknown
  20471. break
  20472. done
  20473. fi
  20474. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20475. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20476. case $ac_cv_sys_large_files in #(
  20477. no | unknown) ;;
  20478. *)
  20479. cat >>confdefs.h <<_ACEOF
  20480. #define _LARGE_FILES $ac_cv_sys_large_files
  20481. _ACEOF
  20482. ;;
  20483. esac
  20484. rm -f conftest*
  20485. fi
  20486. fi
  20487. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20488. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20489. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20490. echo $ECHO_N "(cached) $ECHO_C" >&6
  20491. else
  20492. while :; do
  20493. cat >conftest.$ac_ext <<_ACEOF
  20494. /* confdefs.h. */
  20495. _ACEOF
  20496. cat confdefs.h >>conftest.$ac_ext
  20497. cat >>conftest.$ac_ext <<_ACEOF
  20498. /* end confdefs.h. */
  20499. #include <stdio.h>
  20500. int
  20501. main ()
  20502. {
  20503. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20504. ;
  20505. return 0;
  20506. }
  20507. _ACEOF
  20508. rm -f conftest.$ac_objext conftest$ac_exeext
  20509. if { (ac_try="$ac_link"
  20510. case "(($ac_try" in
  20511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20512. *) ac_try_echo=$ac_try;;
  20513. esac
  20514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20515. (eval "$ac_link") 2>conftest.er1
  20516. ac_status=$?
  20517. grep -v '^ *+' conftest.er1 >conftest.err
  20518. rm -f conftest.er1
  20519. cat conftest.err >&5
  20520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20521. (exit $ac_status); } && {
  20522. test -z "$ac_c_werror_flag" ||
  20523. test ! -s conftest.err
  20524. } && test -s conftest$ac_exeext &&
  20525. $as_test_x conftest$ac_exeext; then
  20526. ac_cv_sys_largefile_source=no; break
  20527. else
  20528. echo "$as_me: failed program was:" >&5
  20529. sed 's/^/| /' conftest.$ac_ext >&5
  20530. fi
  20531. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20532. conftest$ac_exeext conftest.$ac_ext
  20533. cat >conftest.$ac_ext <<_ACEOF
  20534. /* confdefs.h. */
  20535. _ACEOF
  20536. cat confdefs.h >>conftest.$ac_ext
  20537. cat >>conftest.$ac_ext <<_ACEOF
  20538. /* end confdefs.h. */
  20539. #define _LARGEFILE_SOURCE 1
  20540. #include <stdio.h>
  20541. int
  20542. main ()
  20543. {
  20544. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20545. ;
  20546. return 0;
  20547. }
  20548. _ACEOF
  20549. rm -f conftest.$ac_objext conftest$ac_exeext
  20550. if { (ac_try="$ac_link"
  20551. case "(($ac_try" in
  20552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20553. *) ac_try_echo=$ac_try;;
  20554. esac
  20555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20556. (eval "$ac_link") 2>conftest.er1
  20557. ac_status=$?
  20558. grep -v '^ *+' conftest.er1 >conftest.err
  20559. rm -f conftest.er1
  20560. cat conftest.err >&5
  20561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20562. (exit $ac_status); } && {
  20563. test -z "$ac_c_werror_flag" ||
  20564. test ! -s conftest.err
  20565. } && test -s conftest$ac_exeext &&
  20566. $as_test_x conftest$ac_exeext; then
  20567. ac_cv_sys_largefile_source=1; break
  20568. else
  20569. echo "$as_me: failed program was:" >&5
  20570. sed 's/^/| /' conftest.$ac_ext >&5
  20571. fi
  20572. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20573. conftest$ac_exeext conftest.$ac_ext
  20574. ac_cv_sys_largefile_source=unknown
  20575. break
  20576. done
  20577. fi
  20578. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20579. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20580. case $ac_cv_sys_largefile_source in #(
  20581. no | unknown) ;;
  20582. *)
  20583. cat >>confdefs.h <<_ACEOF
  20584. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20585. _ACEOF
  20586. ;;
  20587. esac
  20588. rm -f conftest*
  20589. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20590. # in glibc 2.1.3, but that breaks too many other things.
  20591. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20592. if test $ac_cv_sys_largefile_source != unknown; then
  20593. cat >>confdefs.h <<\_ACEOF
  20594. #define HAVE_FSEEKO 1
  20595. _ACEOF
  20596. fi
  20597. { echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20598. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  20599. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20600. echo $ECHO_N "(cached) $ECHO_C" >&6
  20601. else
  20602. cat >conftest.$ac_ext <<_ACEOF
  20603. /* confdefs.h. */
  20604. _ACEOF
  20605. cat confdefs.h >>conftest.$ac_ext
  20606. cat >>conftest.$ac_ext <<_ACEOF
  20607. /* end confdefs.h. */
  20608. $ac_includes_default
  20609. typedef u_int8_t ac__type_new_;
  20610. int
  20611. main ()
  20612. {
  20613. if ((ac__type_new_ *) 0)
  20614. return 0;
  20615. if (sizeof (ac__type_new_))
  20616. return 0;
  20617. ;
  20618. return 0;
  20619. }
  20620. _ACEOF
  20621. rm -f conftest.$ac_objext
  20622. if { (ac_try="$ac_compile"
  20623. case "(($ac_try" in
  20624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20625. *) ac_try_echo=$ac_try;;
  20626. esac
  20627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20628. (eval "$ac_compile") 2>conftest.er1
  20629. ac_status=$?
  20630. grep -v '^ *+' conftest.er1 >conftest.err
  20631. rm -f conftest.er1
  20632. cat conftest.err >&5
  20633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20634. (exit $ac_status); } && {
  20635. test -z "$ac_c_werror_flag" ||
  20636. test ! -s conftest.err
  20637. } && test -s conftest.$ac_objext; then
  20638. ac_cv_type_u_int8_t=yes
  20639. else
  20640. echo "$as_me: failed program was:" >&5
  20641. sed 's/^/| /' conftest.$ac_ext >&5
  20642. ac_cv_type_u_int8_t=no
  20643. fi
  20644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20645. fi
  20646. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20647. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  20648. if test $ac_cv_type_u_int8_t = yes; then
  20649. :
  20650. else
  20651. cat >>confdefs.h <<_ACEOF
  20652. #define u_int8_t uint8_t
  20653. _ACEOF
  20654. fi
  20655. { echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20656. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  20657. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20658. echo $ECHO_N "(cached) $ECHO_C" >&6
  20659. else
  20660. cat >conftest.$ac_ext <<_ACEOF
  20661. /* confdefs.h. */
  20662. _ACEOF
  20663. cat confdefs.h >>conftest.$ac_ext
  20664. cat >>conftest.$ac_ext <<_ACEOF
  20665. /* end confdefs.h. */
  20666. $ac_includes_default
  20667. typedef u_int16_t ac__type_new_;
  20668. int
  20669. main ()
  20670. {
  20671. if ((ac__type_new_ *) 0)
  20672. return 0;
  20673. if (sizeof (ac__type_new_))
  20674. return 0;
  20675. ;
  20676. return 0;
  20677. }
  20678. _ACEOF
  20679. rm -f conftest.$ac_objext
  20680. if { (ac_try="$ac_compile"
  20681. case "(($ac_try" in
  20682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20683. *) ac_try_echo=$ac_try;;
  20684. esac
  20685. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20686. (eval "$ac_compile") 2>conftest.er1
  20687. ac_status=$?
  20688. grep -v '^ *+' conftest.er1 >conftest.err
  20689. rm -f conftest.er1
  20690. cat conftest.err >&5
  20691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20692. (exit $ac_status); } && {
  20693. test -z "$ac_c_werror_flag" ||
  20694. test ! -s conftest.err
  20695. } && test -s conftest.$ac_objext; then
  20696. ac_cv_type_u_int16_t=yes
  20697. else
  20698. echo "$as_me: failed program was:" >&5
  20699. sed 's/^/| /' conftest.$ac_ext >&5
  20700. ac_cv_type_u_int16_t=no
  20701. fi
  20702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20703. fi
  20704. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20705. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  20706. if test $ac_cv_type_u_int16_t = yes; then
  20707. :
  20708. else
  20709. cat >>confdefs.h <<_ACEOF
  20710. #define u_int16_t uint16_t
  20711. _ACEOF
  20712. fi
  20713. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20714. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  20715. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20716. echo $ECHO_N "(cached) $ECHO_C" >&6
  20717. else
  20718. cat >conftest.$ac_ext <<_ACEOF
  20719. /* confdefs.h. */
  20720. _ACEOF
  20721. cat confdefs.h >>conftest.$ac_ext
  20722. cat >>conftest.$ac_ext <<_ACEOF
  20723. /* end confdefs.h. */
  20724. $ac_includes_default
  20725. typedef u_int32_t ac__type_new_;
  20726. int
  20727. main ()
  20728. {
  20729. if ((ac__type_new_ *) 0)
  20730. return 0;
  20731. if (sizeof (ac__type_new_))
  20732. return 0;
  20733. ;
  20734. return 0;
  20735. }
  20736. _ACEOF
  20737. rm -f conftest.$ac_objext
  20738. if { (ac_try="$ac_compile"
  20739. case "(($ac_try" in
  20740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20741. *) ac_try_echo=$ac_try;;
  20742. esac
  20743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20744. (eval "$ac_compile") 2>conftest.er1
  20745. ac_status=$?
  20746. grep -v '^ *+' conftest.er1 >conftest.err
  20747. rm -f conftest.er1
  20748. cat conftest.err >&5
  20749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20750. (exit $ac_status); } && {
  20751. test -z "$ac_c_werror_flag" ||
  20752. test ! -s conftest.err
  20753. } && test -s conftest.$ac_objext; then
  20754. ac_cv_type_u_int32_t=yes
  20755. else
  20756. echo "$as_me: failed program was:" >&5
  20757. sed 's/^/| /' conftest.$ac_ext >&5
  20758. ac_cv_type_u_int32_t=no
  20759. fi
  20760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20761. fi
  20762. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20763. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  20764. if test $ac_cv_type_u_int32_t = yes; then
  20765. :
  20766. else
  20767. cat >>confdefs.h <<_ACEOF
  20768. #define u_int32_t uint32_t
  20769. _ACEOF
  20770. fi
  20771. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20772. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  20773. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20774. echo $ECHO_N "(cached) $ECHO_C" >&6
  20775. else
  20776. cat >conftest.$ac_ext <<_ACEOF
  20777. /* confdefs.h. */
  20778. _ACEOF
  20779. cat confdefs.h >>conftest.$ac_ext
  20780. cat >>conftest.$ac_ext <<_ACEOF
  20781. /* end confdefs.h. */
  20782. $ac_includes_default
  20783. typedef u_int64_t ac__type_new_;
  20784. int
  20785. main ()
  20786. {
  20787. if ((ac__type_new_ *) 0)
  20788. return 0;
  20789. if (sizeof (ac__type_new_))
  20790. return 0;
  20791. ;
  20792. return 0;
  20793. }
  20794. _ACEOF
  20795. rm -f conftest.$ac_objext
  20796. if { (ac_try="$ac_compile"
  20797. case "(($ac_try" in
  20798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20799. *) ac_try_echo=$ac_try;;
  20800. esac
  20801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20802. (eval "$ac_compile") 2>conftest.er1
  20803. ac_status=$?
  20804. grep -v '^ *+' conftest.er1 >conftest.err
  20805. rm -f conftest.er1
  20806. cat conftest.err >&5
  20807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20808. (exit $ac_status); } && {
  20809. test -z "$ac_c_werror_flag" ||
  20810. test ! -s conftest.err
  20811. } && test -s conftest.$ac_objext; then
  20812. ac_cv_type_u_int64_t=yes
  20813. else
  20814. echo "$as_me: failed program was:" >&5
  20815. sed 's/^/| /' conftest.$ac_ext >&5
  20816. ac_cv_type_u_int64_t=no
  20817. fi
  20818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20819. fi
  20820. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20821. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  20822. if test $ac_cv_type_u_int64_t = yes; then
  20823. :
  20824. else
  20825. cat >>confdefs.h <<_ACEOF
  20826. #define u_int64_t uint64_t
  20827. _ACEOF
  20828. fi
  20829. { echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  20830. echo $ECHO_N "checking for $CC -Wextra support... $ECHO_C" >&6; }
  20831. OLD_CFLAGS=$CFLAGS
  20832. CFLAGS="$CFLAGS -Wextra"
  20833. wextra=""
  20834. cat >conftest.$ac_ext <<_ACEOF
  20835. #include <stdlib.h>
  20836. int main(int argc, char *argv) { return(0); }
  20837. _ACEOF
  20838. rm -f conftest.$ac_objext
  20839. if { (ac_try="$ac_compile"
  20840. case "(($ac_try" in
  20841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20842. *) ac_try_echo=$ac_try;;
  20843. esac
  20844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20845. (eval "$ac_compile") 2>conftest.er1
  20846. ac_status=$?
  20847. grep -v '^ *+' conftest.er1 >conftest.err
  20848. rm -f conftest.er1
  20849. cat conftest.err >&5
  20850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20851. (exit $ac_status); } && {
  20852. test -z "$ac_c_werror_flag" ||
  20853. test ! -s conftest.err
  20854. } && test -s conftest.$ac_objext; then
  20855. { echo "$as_me:$LINENO: result: yes" >&5
  20856. echo "${ECHO_T}yes" >&6; }
  20857. wextra="-Wextra"
  20858. else
  20859. echo "$as_me: failed program was:" >&5
  20860. sed 's/^/| /' conftest.$ac_ext >&5
  20861. { echo "$as_me:$LINENO: result: no" >&5
  20862. echo "${ECHO_T}no" >&6; }
  20863. fi
  20864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20865. CFLAGS="$OLD_CFLAGS $wextra"
  20866. { echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  20867. echo $ECHO_N "checking for $CC -Wno-variadic-macros support... $ECHO_C" >&6; }
  20868. OLD_CFLAGS=$CFLAGS
  20869. CFLAGS="$CFLAGS -Wno-variadic-macros"
  20870. wno_variadic_macros=""
  20871. cat >conftest.$ac_ext <<_ACEOF
  20872. #include <stdlib.h>
  20873. int main(int argc, char *argv) { return(0); }
  20874. _ACEOF
  20875. rm -f conftest.$ac_objext
  20876. if { (ac_try="$ac_compile"
  20877. case "(($ac_try" in
  20878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20879. *) ac_try_echo=$ac_try;;
  20880. esac
  20881. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20882. (eval "$ac_compile") 2>conftest.er1
  20883. ac_status=$?
  20884. grep -v '^ *+' conftest.er1 >conftest.err
  20885. rm -f conftest.er1
  20886. cat conftest.err >&5
  20887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20888. (exit $ac_status); } && {
  20889. test -z "$ac_c_werror_flag" ||
  20890. test ! -s conftest.err
  20891. } && test -s conftest.$ac_objext; then
  20892. { echo "$as_me:$LINENO: result: yes" >&5
  20893. echo "${ECHO_T}yes" >&6; }
  20894. wno_variadic_macros="-Wno-variadic-macros"
  20895. else
  20896. echo "$as_me: failed program was:" >&5
  20897. sed 's/^/| /' conftest.$ac_ext >&5
  20898. { echo "$as_me:$LINENO: result: no" >&5
  20899. echo "${ECHO_T}no" >&6; }
  20900. fi
  20901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20902. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  20903. { echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  20904. echo $ECHO_N "checking for $CC -Wfatal-errors support... $ECHO_C" >&6; }
  20905. OLD_CFLAGS=$CFLAGS
  20906. CFLAGS="$CFLAGS -Wfatal-errors"
  20907. wfatal_errors=""
  20908. cat >conftest.$ac_ext <<_ACEOF
  20909. #include <stdlib.h>
  20910. int main(int argc, char *argv) { return(0); }
  20911. _ACEOF
  20912. rm -f conftest.$ac_objext
  20913. if { (ac_try="$ac_compile"
  20914. case "(($ac_try" in
  20915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20916. *) ac_try_echo=$ac_try;;
  20917. esac
  20918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20919. (eval "$ac_compile") 2>conftest.er1
  20920. ac_status=$?
  20921. grep -v '^ *+' conftest.er1 >conftest.err
  20922. rm -f conftest.er1
  20923. cat conftest.err >&5
  20924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20925. (exit $ac_status); } && {
  20926. test -z "$ac_c_werror_flag" ||
  20927. test ! -s conftest.err
  20928. } && test -s conftest.$ac_objext; then
  20929. { echo "$as_me:$LINENO: result: yes" >&5
  20930. echo "${ECHO_T}yes" >&6; }
  20931. wfatal_errors="-Wfatal-errors"
  20932. else
  20933. echo "$as_me: failed program was:" >&5
  20934. sed 's/^/| /' conftest.$ac_ext >&5
  20935. { echo "$as_me:$LINENO: result: no" >&5
  20936. echo "${ECHO_T}no" >&6; }
  20937. fi
  20938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20939. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  20940. 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
  20941. do
  20942. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20943. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20944. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20945. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20946. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20947. echo $ECHO_N "(cached) $ECHO_C" >&6
  20948. fi
  20949. ac_res=`eval echo '${'$as_ac_Header'}'`
  20950. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20951. echo "${ECHO_T}$ac_res" >&6; }
  20952. else
  20953. # Is the header compilable?
  20954. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20955. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20956. cat >conftest.$ac_ext <<_ACEOF
  20957. /* confdefs.h. */
  20958. _ACEOF
  20959. cat confdefs.h >>conftest.$ac_ext
  20960. cat >>conftest.$ac_ext <<_ACEOF
  20961. /* end confdefs.h. */
  20962. $ac_includes_default
  20963. #include <$ac_header>
  20964. _ACEOF
  20965. rm -f conftest.$ac_objext
  20966. if { (ac_try="$ac_compile"
  20967. case "(($ac_try" in
  20968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20969. *) ac_try_echo=$ac_try;;
  20970. esac
  20971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20972. (eval "$ac_compile") 2>conftest.er1
  20973. ac_status=$?
  20974. grep -v '^ *+' conftest.er1 >conftest.err
  20975. rm -f conftest.er1
  20976. cat conftest.err >&5
  20977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20978. (exit $ac_status); } && {
  20979. test -z "$ac_c_werror_flag" ||
  20980. test ! -s conftest.err
  20981. } && test -s conftest.$ac_objext; then
  20982. ac_header_compiler=yes
  20983. else
  20984. echo "$as_me: failed program was:" >&5
  20985. sed 's/^/| /' conftest.$ac_ext >&5
  20986. ac_header_compiler=no
  20987. fi
  20988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20989. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20990. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20991. # Is the header present?
  20992. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20993. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20994. cat >conftest.$ac_ext <<_ACEOF
  20995. /* confdefs.h. */
  20996. _ACEOF
  20997. cat confdefs.h >>conftest.$ac_ext
  20998. cat >>conftest.$ac_ext <<_ACEOF
  20999. /* end confdefs.h. */
  21000. #include <$ac_header>
  21001. _ACEOF
  21002. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21003. case "(($ac_try" in
  21004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21005. *) ac_try_echo=$ac_try;;
  21006. esac
  21007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21008. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21009. ac_status=$?
  21010. grep -v '^ *+' conftest.er1 >conftest.err
  21011. rm -f conftest.er1
  21012. cat conftest.err >&5
  21013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21014. (exit $ac_status); } >/dev/null && {
  21015. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21016. test ! -s conftest.err
  21017. }; then
  21018. ac_header_preproc=yes
  21019. else
  21020. echo "$as_me: failed program was:" >&5
  21021. sed 's/^/| /' conftest.$ac_ext >&5
  21022. ac_header_preproc=no
  21023. fi
  21024. rm -f conftest.err conftest.$ac_ext
  21025. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21026. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21027. # So? What about this header?
  21028. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21029. yes:no: )
  21030. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21031. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21032. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21033. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21034. ac_header_preproc=yes
  21035. ;;
  21036. no:yes:* )
  21037. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21038. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21039. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21040. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21041. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21042. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21043. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21044. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21045. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21046. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21047. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21048. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21049. ;;
  21050. esac
  21051. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21052. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21053. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21054. echo $ECHO_N "(cached) $ECHO_C" >&6
  21055. else
  21056. eval "$as_ac_Header=\$ac_header_preproc"
  21057. fi
  21058. ac_res=`eval echo '${'$as_ac_Header'}'`
  21059. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21060. echo "${ECHO_T}$ac_res" >&6; }
  21061. fi
  21062. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21063. cat >>confdefs.h <<_ACEOF
  21064. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21065. _ACEOF
  21066. fi
  21067. done
  21068. for ac_header in sys/sysctl.h net/route.h
  21069. do
  21070. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21071. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21072. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21073. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21074. echo $ECHO_N "(cached) $ECHO_C" >&6
  21075. else
  21076. cat >conftest.$ac_ext <<_ACEOF
  21077. /* confdefs.h. */
  21078. _ACEOF
  21079. cat confdefs.h >>conftest.$ac_ext
  21080. cat >>conftest.$ac_ext <<_ACEOF
  21081. /* end confdefs.h. */
  21082. #if HAVE_SYS_PARAM_H
  21083. #include <sys/param.h>
  21084. #endif
  21085. #if HAVE_SYS_TYPES_H
  21086. #include <sys/types.h>
  21087. #endif
  21088. #if HAVE_SYS_SOCKET_H
  21089. #include <sys/socket.h>
  21090. #endif
  21091. #include <$ac_header>
  21092. _ACEOF
  21093. rm -f conftest.$ac_objext
  21094. if { (ac_try="$ac_compile"
  21095. case "(($ac_try" in
  21096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21097. *) ac_try_echo=$ac_try;;
  21098. esac
  21099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21100. (eval "$ac_compile") 2>conftest.er1
  21101. ac_status=$?
  21102. grep -v '^ *+' conftest.er1 >conftest.err
  21103. rm -f conftest.er1
  21104. cat conftest.err >&5
  21105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21106. (exit $ac_status); } && {
  21107. test -z "$ac_c_werror_flag" ||
  21108. test ! -s conftest.err
  21109. } && test -s conftest.$ac_objext; then
  21110. eval "$as_ac_Header=yes"
  21111. else
  21112. echo "$as_me: failed program was:" >&5
  21113. sed 's/^/| /' conftest.$ac_ext >&5
  21114. eval "$as_ac_Header=no"
  21115. fi
  21116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21117. fi
  21118. ac_res=`eval echo '${'$as_ac_Header'}'`
  21119. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21120. echo "${ECHO_T}$ac_res" >&6; }
  21121. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21122. cat >>confdefs.h <<_ACEOF
  21123. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21124. _ACEOF
  21125. fi
  21126. done
  21127. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  21128. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  21129. if test "${ac_cv_lib_socket_socket+set}" = set; then
  21130. echo $ECHO_N "(cached) $ECHO_C" >&6
  21131. else
  21132. ac_check_lib_save_LIBS=$LIBS
  21133. LIBS="-lsocket $LIBS"
  21134. cat >conftest.$ac_ext <<_ACEOF
  21135. /* confdefs.h. */
  21136. _ACEOF
  21137. cat confdefs.h >>conftest.$ac_ext
  21138. cat >>conftest.$ac_ext <<_ACEOF
  21139. /* end confdefs.h. */
  21140. /* Override any GCC internal prototype to avoid an error.
  21141. Use char because int might match the return type of a GCC
  21142. builtin and then its argument prototype would still apply. */
  21143. #ifdef __cplusplus
  21144. extern "C"
  21145. #endif
  21146. char socket ();
  21147. int
  21148. main ()
  21149. {
  21150. return socket ();
  21151. ;
  21152. return 0;
  21153. }
  21154. _ACEOF
  21155. rm -f conftest.$ac_objext conftest$ac_exeext
  21156. if { (ac_try="$ac_link"
  21157. case "(($ac_try" in
  21158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21159. *) ac_try_echo=$ac_try;;
  21160. esac
  21161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21162. (eval "$ac_link") 2>conftest.er1
  21163. ac_status=$?
  21164. grep -v '^ *+' conftest.er1 >conftest.err
  21165. rm -f conftest.er1
  21166. cat conftest.err >&5
  21167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21168. (exit $ac_status); } && {
  21169. test -z "$ac_c_werror_flag" ||
  21170. test ! -s conftest.err
  21171. } && test -s conftest$ac_exeext &&
  21172. $as_test_x conftest$ac_exeext; then
  21173. ac_cv_lib_socket_socket=yes
  21174. else
  21175. echo "$as_me: failed program was:" >&5
  21176. sed 's/^/| /' conftest.$ac_ext >&5
  21177. ac_cv_lib_socket_socket=no
  21178. fi
  21179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21180. conftest$ac_exeext conftest.$ac_ext
  21181. LIBS=$ac_check_lib_save_LIBS
  21182. fi
  21183. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21184. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  21185. if test $ac_cv_lib_socket_socket = yes; then
  21186. cat >>confdefs.h <<_ACEOF
  21187. #define HAVE_LIBSOCKET 1
  21188. _ACEOF
  21189. LIBS="-lsocket $LIBS"
  21190. fi
  21191. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21192. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  21193. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21194. echo $ECHO_N "(cached) $ECHO_C" >&6
  21195. else
  21196. ac_check_lib_save_LIBS=$LIBS
  21197. LIBS="-lnsl $LIBS"
  21198. cat >conftest.$ac_ext <<_ACEOF
  21199. /* confdefs.h. */
  21200. _ACEOF
  21201. cat confdefs.h >>conftest.$ac_ext
  21202. cat >>conftest.$ac_ext <<_ACEOF
  21203. /* end confdefs.h. */
  21204. /* Override any GCC internal prototype to avoid an error.
  21205. Use char because int might match the return type of a GCC
  21206. builtin and then its argument prototype would still apply. */
  21207. #ifdef __cplusplus
  21208. extern "C"
  21209. #endif
  21210. char gethostbyname ();
  21211. int
  21212. main ()
  21213. {
  21214. return gethostbyname ();
  21215. ;
  21216. return 0;
  21217. }
  21218. _ACEOF
  21219. rm -f conftest.$ac_objext conftest$ac_exeext
  21220. if { (ac_try="$ac_link"
  21221. case "(($ac_try" in
  21222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21223. *) ac_try_echo=$ac_try;;
  21224. esac
  21225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21226. (eval "$ac_link") 2>conftest.er1
  21227. ac_status=$?
  21228. grep -v '^ *+' conftest.er1 >conftest.err
  21229. rm -f conftest.er1
  21230. cat conftest.err >&5
  21231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21232. (exit $ac_status); } && {
  21233. test -z "$ac_c_werror_flag" ||
  21234. test ! -s conftest.err
  21235. } && test -s conftest$ac_exeext &&
  21236. $as_test_x conftest$ac_exeext; then
  21237. ac_cv_lib_nsl_gethostbyname=yes
  21238. else
  21239. echo "$as_me: failed program was:" >&5
  21240. sed 's/^/| /' conftest.$ac_ext >&5
  21241. ac_cv_lib_nsl_gethostbyname=no
  21242. fi
  21243. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21244. conftest$ac_exeext conftest.$ac_ext
  21245. LIBS=$ac_check_lib_save_LIBS
  21246. fi
  21247. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21248. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  21249. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21250. cat >>confdefs.h <<_ACEOF
  21251. #define HAVE_LIBNSL 1
  21252. _ACEOF
  21253. LIBS="-lnsl $LIBS"
  21254. fi
  21255. { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21256. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
  21257. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21258. echo $ECHO_N "(cached) $ECHO_C" >&6
  21259. else
  21260. ac_check_lib_save_LIBS=$LIBS
  21261. LIBS="-lrt $LIBS"
  21262. cat >conftest.$ac_ext <<_ACEOF
  21263. /* confdefs.h. */
  21264. _ACEOF
  21265. cat confdefs.h >>conftest.$ac_ext
  21266. cat >>conftest.$ac_ext <<_ACEOF
  21267. /* end confdefs.h. */
  21268. /* Override any GCC internal prototype to avoid an error.
  21269. Use char because int might match the return type of a GCC
  21270. builtin and then its argument prototype would still apply. */
  21271. #ifdef __cplusplus
  21272. extern "C"
  21273. #endif
  21274. char nanosleep ();
  21275. int
  21276. main ()
  21277. {
  21278. return nanosleep ();
  21279. ;
  21280. return 0;
  21281. }
  21282. _ACEOF
  21283. rm -f conftest.$ac_objext conftest$ac_exeext
  21284. if { (ac_try="$ac_link"
  21285. case "(($ac_try" in
  21286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21287. *) ac_try_echo=$ac_try;;
  21288. esac
  21289. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21290. (eval "$ac_link") 2>conftest.er1
  21291. ac_status=$?
  21292. grep -v '^ *+' conftest.er1 >conftest.err
  21293. rm -f conftest.er1
  21294. cat conftest.err >&5
  21295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21296. (exit $ac_status); } && {
  21297. test -z "$ac_c_werror_flag" ||
  21298. test ! -s conftest.err
  21299. } && test -s conftest$ac_exeext &&
  21300. $as_test_x conftest$ac_exeext; then
  21301. ac_cv_lib_rt_nanosleep=yes
  21302. else
  21303. echo "$as_me: failed program was:" >&5
  21304. sed 's/^/| /' conftest.$ac_ext >&5
  21305. ac_cv_lib_rt_nanosleep=no
  21306. fi
  21307. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21308. conftest$ac_exeext conftest.$ac_ext
  21309. LIBS=$ac_check_lib_save_LIBS
  21310. fi
  21311. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21312. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
  21313. if test $ac_cv_lib_rt_nanosleep = yes; then
  21314. cat >>confdefs.h <<_ACEOF
  21315. #define HAVE_LIBRT 1
  21316. _ACEOF
  21317. LIBS="-lrt $LIBS"
  21318. fi
  21319. { echo "$as_me:$LINENO: checking for resolv in -lresolv" >&5
  21320. echo $ECHO_N "checking for resolv in -lresolv... $ECHO_C" >&6; }
  21321. if test "${ac_cv_lib_resolv_resolv+set}" = set; then
  21322. echo $ECHO_N "(cached) $ECHO_C" >&6
  21323. else
  21324. ac_check_lib_save_LIBS=$LIBS
  21325. LIBS="-lresolv $LIBS"
  21326. cat >conftest.$ac_ext <<_ACEOF
  21327. /* confdefs.h. */
  21328. _ACEOF
  21329. cat confdefs.h >>conftest.$ac_ext
  21330. cat >>conftest.$ac_ext <<_ACEOF
  21331. /* end confdefs.h. */
  21332. /* Override any GCC internal prototype to avoid an error.
  21333. Use char because int might match the return type of a GCC
  21334. builtin and then its argument prototype would still apply. */
  21335. #ifdef __cplusplus
  21336. extern "C"
  21337. #endif
  21338. char resolv ();
  21339. int
  21340. main ()
  21341. {
  21342. return resolv ();
  21343. ;
  21344. return 0;
  21345. }
  21346. _ACEOF
  21347. rm -f conftest.$ac_objext conftest$ac_exeext
  21348. if { (ac_try="$ac_link"
  21349. case "(($ac_try" in
  21350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21351. *) ac_try_echo=$ac_try;;
  21352. esac
  21353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21354. (eval "$ac_link") 2>conftest.er1
  21355. ac_status=$?
  21356. grep -v '^ *+' conftest.er1 >conftest.err
  21357. rm -f conftest.er1
  21358. cat conftest.err >&5
  21359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21360. (exit $ac_status); } && {
  21361. test -z "$ac_c_werror_flag" ||
  21362. test ! -s conftest.err
  21363. } && test -s conftest$ac_exeext &&
  21364. $as_test_x conftest$ac_exeext; then
  21365. ac_cv_lib_resolv_resolv=yes
  21366. else
  21367. echo "$as_me: failed program was:" >&5
  21368. sed 's/^/| /' conftest.$ac_ext >&5
  21369. ac_cv_lib_resolv_resolv=no
  21370. fi
  21371. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21372. conftest$ac_exeext conftest.$ac_ext
  21373. LIBS=$ac_check_lib_save_LIBS
  21374. fi
  21375. { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_resolv" >&5
  21376. echo "${ECHO_T}$ac_cv_lib_resolv_resolv" >&6; }
  21377. if test $ac_cv_lib_resolv_resolv = yes; then
  21378. cat >>confdefs.h <<_ACEOF
  21379. #define HAVE_LIBRESOLV 1
  21380. _ACEOF
  21381. LIBS="-lresolv $LIBS"
  21382. fi
  21383. for ac_header in stdlib.h
  21384. do
  21385. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21386. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21387. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21388. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21389. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21390. echo $ECHO_N "(cached) $ECHO_C" >&6
  21391. fi
  21392. ac_res=`eval echo '${'$as_ac_Header'}'`
  21393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21394. echo "${ECHO_T}$ac_res" >&6; }
  21395. else
  21396. # Is the header compilable?
  21397. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21398. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21399. cat >conftest.$ac_ext <<_ACEOF
  21400. /* confdefs.h. */
  21401. _ACEOF
  21402. cat confdefs.h >>conftest.$ac_ext
  21403. cat >>conftest.$ac_ext <<_ACEOF
  21404. /* end confdefs.h. */
  21405. $ac_includes_default
  21406. #include <$ac_header>
  21407. _ACEOF
  21408. rm -f conftest.$ac_objext
  21409. if { (ac_try="$ac_compile"
  21410. case "(($ac_try" in
  21411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21412. *) ac_try_echo=$ac_try;;
  21413. esac
  21414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21415. (eval "$ac_compile") 2>conftest.er1
  21416. ac_status=$?
  21417. grep -v '^ *+' conftest.er1 >conftest.err
  21418. rm -f conftest.er1
  21419. cat conftest.err >&5
  21420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21421. (exit $ac_status); } && {
  21422. test -z "$ac_c_werror_flag" ||
  21423. test ! -s conftest.err
  21424. } && test -s conftest.$ac_objext; then
  21425. ac_header_compiler=yes
  21426. else
  21427. echo "$as_me: failed program was:" >&5
  21428. sed 's/^/| /' conftest.$ac_ext >&5
  21429. ac_header_compiler=no
  21430. fi
  21431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21432. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21433. echo "${ECHO_T}$ac_header_compiler" >&6; }
  21434. # Is the header present?
  21435. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21436. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21437. cat >conftest.$ac_ext <<_ACEOF
  21438. /* confdefs.h. */
  21439. _ACEOF
  21440. cat confdefs.h >>conftest.$ac_ext
  21441. cat >>conftest.$ac_ext <<_ACEOF
  21442. /* end confdefs.h. */
  21443. #include <$ac_header>
  21444. _ACEOF
  21445. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21446. case "(($ac_try" in
  21447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21448. *) ac_try_echo=$ac_try;;
  21449. esac
  21450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21451. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21452. ac_status=$?
  21453. grep -v '^ *+' conftest.er1 >conftest.err
  21454. rm -f conftest.er1
  21455. cat conftest.err >&5
  21456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21457. (exit $ac_status); } >/dev/null && {
  21458. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21459. test ! -s conftest.err
  21460. }; then
  21461. ac_header_preproc=yes
  21462. else
  21463. echo "$as_me: failed program was:" >&5
  21464. sed 's/^/| /' conftest.$ac_ext >&5
  21465. ac_header_preproc=no
  21466. fi
  21467. rm -f conftest.err conftest.$ac_ext
  21468. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21469. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21470. # So? What about this header?
  21471. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21472. yes:no: )
  21473. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21474. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21475. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21476. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21477. ac_header_preproc=yes
  21478. ;;
  21479. no:yes:* )
  21480. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21481. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21482. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21483. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21484. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21485. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21486. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21487. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21488. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21489. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21490. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21491. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21492. ;;
  21493. esac
  21494. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21495. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21496. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21497. echo $ECHO_N "(cached) $ECHO_C" >&6
  21498. else
  21499. eval "$as_ac_Header=\$ac_header_preproc"
  21500. fi
  21501. ac_res=`eval echo '${'$as_ac_Header'}'`
  21502. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21503. echo "${ECHO_T}$ac_res" >&6; }
  21504. fi
  21505. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21506. cat >>confdefs.h <<_ACEOF
  21507. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21508. _ACEOF
  21509. fi
  21510. done
  21511. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21512. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  21513. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21514. echo $ECHO_N "(cached) $ECHO_C" >&6
  21515. else
  21516. if test "$cross_compiling" = yes; then
  21517. ac_cv_func_malloc_0_nonnull=no
  21518. else
  21519. cat >conftest.$ac_ext <<_ACEOF
  21520. /* confdefs.h. */
  21521. _ACEOF
  21522. cat confdefs.h >>conftest.$ac_ext
  21523. cat >>conftest.$ac_ext <<_ACEOF
  21524. /* end confdefs.h. */
  21525. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  21526. # include <stdlib.h>
  21527. #else
  21528. char *malloc ();
  21529. #endif
  21530. int
  21531. main ()
  21532. {
  21533. return ! malloc (0);
  21534. ;
  21535. return 0;
  21536. }
  21537. _ACEOF
  21538. rm -f conftest$ac_exeext
  21539. if { (ac_try="$ac_link"
  21540. case "(($ac_try" in
  21541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21542. *) ac_try_echo=$ac_try;;
  21543. esac
  21544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21545. (eval "$ac_link") 2>&5
  21546. ac_status=$?
  21547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21548. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21549. { (case "(($ac_try" in
  21550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21551. *) ac_try_echo=$ac_try;;
  21552. esac
  21553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21554. (eval "$ac_try") 2>&5
  21555. ac_status=$?
  21556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21557. (exit $ac_status); }; }; then
  21558. ac_cv_func_malloc_0_nonnull=yes
  21559. else
  21560. echo "$as_me: program exited with status $ac_status" >&5
  21561. echo "$as_me: failed program was:" >&5
  21562. sed 's/^/| /' conftest.$ac_ext >&5
  21563. ( exit $ac_status )
  21564. ac_cv_func_malloc_0_nonnull=no
  21565. fi
  21566. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21567. fi
  21568. fi
  21569. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21570. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  21571. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21572. cat >>confdefs.h <<\_ACEOF
  21573. #define HAVE_MALLOC 1
  21574. _ACEOF
  21575. else
  21576. cat >>confdefs.h <<\_ACEOF
  21577. #define HAVE_MALLOC 0
  21578. _ACEOF
  21579. case " $LIBOBJS " in
  21580. *" malloc.$ac_objext "* ) ;;
  21581. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  21582. ;;
  21583. esac
  21584. cat >>confdefs.h <<\_ACEOF
  21585. #define malloc rpl_malloc
  21586. _ACEOF
  21587. fi
  21588. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  21589. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  21590. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21591. echo $ECHO_N "(cached) $ECHO_C" >&6
  21592. else
  21593. if test "$cross_compiling" = yes; then
  21594. ac_cv_func_memcmp_working=no
  21595. else
  21596. cat >conftest.$ac_ext <<_ACEOF
  21597. /* confdefs.h. */
  21598. _ACEOF
  21599. cat confdefs.h >>conftest.$ac_ext
  21600. cat >>conftest.$ac_ext <<_ACEOF
  21601. /* end confdefs.h. */
  21602. $ac_includes_default
  21603. int
  21604. main ()
  21605. {
  21606. /* Some versions of memcmp are not 8-bit clean. */
  21607. char c0 = '\100', c1 = '\200', c2 = '\201';
  21608. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21609. return 1;
  21610. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21611. or more and with at least one buffer not starting on a 4-byte boundary.
  21612. William Lewis provided this test program. */
  21613. {
  21614. char foo[21];
  21615. char bar[21];
  21616. int i;
  21617. for (i = 0; i < 4; i++)
  21618. {
  21619. char *a = foo + i;
  21620. char *b = bar + i;
  21621. strcpy (a, "--------01111111");
  21622. strcpy (b, "--------10000000");
  21623. if (memcmp (a, b, 16) >= 0)
  21624. return 1;
  21625. }
  21626. return 0;
  21627. }
  21628. ;
  21629. return 0;
  21630. }
  21631. _ACEOF
  21632. rm -f conftest$ac_exeext
  21633. if { (ac_try="$ac_link"
  21634. case "(($ac_try" in
  21635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21636. *) ac_try_echo=$ac_try;;
  21637. esac
  21638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21639. (eval "$ac_link") 2>&5
  21640. ac_status=$?
  21641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21642. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21643. { (case "(($ac_try" in
  21644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21645. *) ac_try_echo=$ac_try;;
  21646. esac
  21647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21648. (eval "$ac_try") 2>&5
  21649. ac_status=$?
  21650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21651. (exit $ac_status); }; }; then
  21652. ac_cv_func_memcmp_working=yes
  21653. else
  21654. echo "$as_me: program exited with status $ac_status" >&5
  21655. echo "$as_me: failed program was:" >&5
  21656. sed 's/^/| /' conftest.$ac_ext >&5
  21657. ( exit $ac_status )
  21658. ac_cv_func_memcmp_working=no
  21659. fi
  21660. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21661. fi
  21662. fi
  21663. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21664. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  21665. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  21666. *" memcmp.$ac_objext "* ) ;;
  21667. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  21668. ;;
  21669. esac
  21670. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21671. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  21672. if test "${ac_cv_type_signal+set}" = set; then
  21673. echo $ECHO_N "(cached) $ECHO_C" >&6
  21674. else
  21675. cat >conftest.$ac_ext <<_ACEOF
  21676. /* confdefs.h. */
  21677. _ACEOF
  21678. cat confdefs.h >>conftest.$ac_ext
  21679. cat >>conftest.$ac_ext <<_ACEOF
  21680. /* end confdefs.h. */
  21681. #include <sys/types.h>
  21682. #include <signal.h>
  21683. int
  21684. main ()
  21685. {
  21686. return *(signal (0, 0)) (0) == 1;
  21687. ;
  21688. return 0;
  21689. }
  21690. _ACEOF
  21691. rm -f conftest.$ac_objext
  21692. if { (ac_try="$ac_compile"
  21693. case "(($ac_try" in
  21694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21695. *) ac_try_echo=$ac_try;;
  21696. esac
  21697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21698. (eval "$ac_compile") 2>conftest.er1
  21699. ac_status=$?
  21700. grep -v '^ *+' conftest.er1 >conftest.err
  21701. rm -f conftest.er1
  21702. cat conftest.err >&5
  21703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21704. (exit $ac_status); } && {
  21705. test -z "$ac_c_werror_flag" ||
  21706. test ! -s conftest.err
  21707. } && test -s conftest.$ac_objext; then
  21708. ac_cv_type_signal=int
  21709. else
  21710. echo "$as_me: failed program was:" >&5
  21711. sed 's/^/| /' conftest.$ac_ext >&5
  21712. ac_cv_type_signal=void
  21713. fi
  21714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21715. fi
  21716. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21717. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  21718. cat >>confdefs.h <<_ACEOF
  21719. #define RETSIGTYPE $ac_cv_type_signal
  21720. _ACEOF
  21721. for ac_func in vprintf
  21722. do
  21723. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21724. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21725. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21726. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21727. echo $ECHO_N "(cached) $ECHO_C" >&6
  21728. else
  21729. cat >conftest.$ac_ext <<_ACEOF
  21730. /* confdefs.h. */
  21731. _ACEOF
  21732. cat confdefs.h >>conftest.$ac_ext
  21733. cat >>conftest.$ac_ext <<_ACEOF
  21734. /* end confdefs.h. */
  21735. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21736. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21737. #define $ac_func innocuous_$ac_func
  21738. /* System header to define __stub macros and hopefully few prototypes,
  21739. which can conflict with char $ac_func (); below.
  21740. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21741. <limits.h> exists even on freestanding compilers. */
  21742. #ifdef __STDC__
  21743. # include <limits.h>
  21744. #else
  21745. # include <assert.h>
  21746. #endif
  21747. #undef $ac_func
  21748. /* Override any GCC internal prototype to avoid an error.
  21749. Use char because int might match the return type of a GCC
  21750. builtin and then its argument prototype would still apply. */
  21751. #ifdef __cplusplus
  21752. extern "C"
  21753. #endif
  21754. char $ac_func ();
  21755. /* The GNU C library defines this for functions which it implements
  21756. to always fail with ENOSYS. Some functions are actually named
  21757. something starting with __ and the normal name is an alias. */
  21758. #if defined __stub_$ac_func || defined __stub___$ac_func
  21759. choke me
  21760. #endif
  21761. int
  21762. main ()
  21763. {
  21764. return $ac_func ();
  21765. ;
  21766. return 0;
  21767. }
  21768. _ACEOF
  21769. rm -f conftest.$ac_objext conftest$ac_exeext
  21770. if { (ac_try="$ac_link"
  21771. case "(($ac_try" in
  21772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21773. *) ac_try_echo=$ac_try;;
  21774. esac
  21775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21776. (eval "$ac_link") 2>conftest.er1
  21777. ac_status=$?
  21778. grep -v '^ *+' conftest.er1 >conftest.err
  21779. rm -f conftest.er1
  21780. cat conftest.err >&5
  21781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21782. (exit $ac_status); } && {
  21783. test -z "$ac_c_werror_flag" ||
  21784. test ! -s conftest.err
  21785. } && test -s conftest$ac_exeext &&
  21786. $as_test_x conftest$ac_exeext; then
  21787. eval "$as_ac_var=yes"
  21788. else
  21789. echo "$as_me: failed program was:" >&5
  21790. sed 's/^/| /' conftest.$ac_ext >&5
  21791. eval "$as_ac_var=no"
  21792. fi
  21793. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21794. conftest$ac_exeext conftest.$ac_ext
  21795. fi
  21796. ac_res=`eval echo '${'$as_ac_var'}'`
  21797. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21798. echo "${ECHO_T}$ac_res" >&6; }
  21799. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21800. cat >>confdefs.h <<_ACEOF
  21801. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21802. _ACEOF
  21803. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  21804. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  21805. if test "${ac_cv_func__doprnt+set}" = set; then
  21806. echo $ECHO_N "(cached) $ECHO_C" >&6
  21807. else
  21808. cat >conftest.$ac_ext <<_ACEOF
  21809. /* confdefs.h. */
  21810. _ACEOF
  21811. cat confdefs.h >>conftest.$ac_ext
  21812. cat >>conftest.$ac_ext <<_ACEOF
  21813. /* end confdefs.h. */
  21814. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21815. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21816. #define _doprnt innocuous__doprnt
  21817. /* System header to define __stub macros and hopefully few prototypes,
  21818. which can conflict with char _doprnt (); below.
  21819. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21820. <limits.h> exists even on freestanding compilers. */
  21821. #ifdef __STDC__
  21822. # include <limits.h>
  21823. #else
  21824. # include <assert.h>
  21825. #endif
  21826. #undef _doprnt
  21827. /* Override any GCC internal prototype to avoid an error.
  21828. Use char because int might match the return type of a GCC
  21829. builtin and then its argument prototype would still apply. */
  21830. #ifdef __cplusplus
  21831. extern "C"
  21832. #endif
  21833. char _doprnt ();
  21834. /* The GNU C library defines this for functions which it implements
  21835. to always fail with ENOSYS. Some functions are actually named
  21836. something starting with __ and the normal name is an alias. */
  21837. #if defined __stub__doprnt || defined __stub____doprnt
  21838. choke me
  21839. #endif
  21840. int
  21841. main ()
  21842. {
  21843. return _doprnt ();
  21844. ;
  21845. return 0;
  21846. }
  21847. _ACEOF
  21848. rm -f conftest.$ac_objext conftest$ac_exeext
  21849. if { (ac_try="$ac_link"
  21850. case "(($ac_try" in
  21851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21852. *) ac_try_echo=$ac_try;;
  21853. esac
  21854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21855. (eval "$ac_link") 2>conftest.er1
  21856. ac_status=$?
  21857. grep -v '^ *+' conftest.er1 >conftest.err
  21858. rm -f conftest.er1
  21859. cat conftest.err >&5
  21860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21861. (exit $ac_status); } && {
  21862. test -z "$ac_c_werror_flag" ||
  21863. test ! -s conftest.err
  21864. } && test -s conftest$ac_exeext &&
  21865. $as_test_x conftest$ac_exeext; then
  21866. ac_cv_func__doprnt=yes
  21867. else
  21868. echo "$as_me: failed program was:" >&5
  21869. sed 's/^/| /' conftest.$ac_ext >&5
  21870. ac_cv_func__doprnt=no
  21871. fi
  21872. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21873. conftest$ac_exeext conftest.$ac_ext
  21874. fi
  21875. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21876. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  21877. if test $ac_cv_func__doprnt = yes; then
  21878. cat >>confdefs.h <<\_ACEOF
  21879. #define HAVE_DOPRNT 1
  21880. _ACEOF
  21881. fi
  21882. fi
  21883. done
  21884. { echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21885. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6; }
  21886. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21887. echo $ECHO_N "(cached) $ECHO_C" >&6
  21888. else
  21889. cat >conftest.$ac_ext <<_ACEOF
  21890. /* confdefs.h. */
  21891. _ACEOF
  21892. cat confdefs.h >>conftest.$ac_ext
  21893. cat >>conftest.$ac_ext <<_ACEOF
  21894. /* end confdefs.h. */
  21895. $ac_includes_default
  21896. int
  21897. main ()
  21898. {
  21899. static struct timeval ac_aggr;
  21900. if (ac_aggr.tv_sec)
  21901. return 0;
  21902. ;
  21903. return 0;
  21904. }
  21905. _ACEOF
  21906. rm -f conftest.$ac_objext
  21907. if { (ac_try="$ac_compile"
  21908. case "(($ac_try" in
  21909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21910. *) ac_try_echo=$ac_try;;
  21911. esac
  21912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21913. (eval "$ac_compile") 2>conftest.er1
  21914. ac_status=$?
  21915. grep -v '^ *+' conftest.er1 >conftest.err
  21916. rm -f conftest.er1
  21917. cat conftest.err >&5
  21918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21919. (exit $ac_status); } && {
  21920. test -z "$ac_c_werror_flag" ||
  21921. test ! -s conftest.err
  21922. } && test -s conftest.$ac_objext; then
  21923. ac_cv_member_struct_timeval_tv_sec=yes
  21924. else
  21925. echo "$as_me: failed program was:" >&5
  21926. sed 's/^/| /' conftest.$ac_ext >&5
  21927. cat >conftest.$ac_ext <<_ACEOF
  21928. /* confdefs.h. */
  21929. _ACEOF
  21930. cat confdefs.h >>conftest.$ac_ext
  21931. cat >>conftest.$ac_ext <<_ACEOF
  21932. /* end confdefs.h. */
  21933. $ac_includes_default
  21934. int
  21935. main ()
  21936. {
  21937. static struct timeval ac_aggr;
  21938. if (sizeof ac_aggr.tv_sec)
  21939. return 0;
  21940. ;
  21941. return 0;
  21942. }
  21943. _ACEOF
  21944. rm -f conftest.$ac_objext
  21945. if { (ac_try="$ac_compile"
  21946. case "(($ac_try" in
  21947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21948. *) ac_try_echo=$ac_try;;
  21949. esac
  21950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21951. (eval "$ac_compile") 2>conftest.er1
  21952. ac_status=$?
  21953. grep -v '^ *+' conftest.er1 >conftest.err
  21954. rm -f conftest.er1
  21955. cat conftest.err >&5
  21956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21957. (exit $ac_status); } && {
  21958. test -z "$ac_c_werror_flag" ||
  21959. test ! -s conftest.err
  21960. } && test -s conftest.$ac_objext; then
  21961. ac_cv_member_struct_timeval_tv_sec=yes
  21962. else
  21963. echo "$as_me: failed program was:" >&5
  21964. sed 's/^/| /' conftest.$ac_ext >&5
  21965. ac_cv_member_struct_timeval_tv_sec=no
  21966. fi
  21967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21968. fi
  21969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21970. fi
  21971. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21972. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6; }
  21973. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21974. cat >>confdefs.h <<_ACEOF
  21975. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21976. _ACEOF
  21977. fi
  21978. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf strsignal
  21979. do
  21980. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21981. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21982. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21983. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21984. echo $ECHO_N "(cached) $ECHO_C" >&6
  21985. else
  21986. cat >conftest.$ac_ext <<_ACEOF
  21987. /* confdefs.h. */
  21988. _ACEOF
  21989. cat confdefs.h >>conftest.$ac_ext
  21990. cat >>conftest.$ac_ext <<_ACEOF
  21991. /* end confdefs.h. */
  21992. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21993. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21994. #define $ac_func innocuous_$ac_func
  21995. /* System header to define __stub macros and hopefully few prototypes,
  21996. which can conflict with char $ac_func (); below.
  21997. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21998. <limits.h> exists even on freestanding compilers. */
  21999. #ifdef __STDC__
  22000. # include <limits.h>
  22001. #else
  22002. # include <assert.h>
  22003. #endif
  22004. #undef $ac_func
  22005. /* Override any GCC internal prototype to avoid an error.
  22006. Use char because int might match the return type of a GCC
  22007. builtin and then its argument prototype would still apply. */
  22008. #ifdef __cplusplus
  22009. extern "C"
  22010. #endif
  22011. char $ac_func ();
  22012. /* The GNU C library defines this for functions which it implements
  22013. to always fail with ENOSYS. Some functions are actually named
  22014. something starting with __ and the normal name is an alias. */
  22015. #if defined __stub_$ac_func || defined __stub___$ac_func
  22016. choke me
  22017. #endif
  22018. int
  22019. main ()
  22020. {
  22021. return $ac_func ();
  22022. ;
  22023. return 0;
  22024. }
  22025. _ACEOF
  22026. rm -f conftest.$ac_objext conftest$ac_exeext
  22027. if { (ac_try="$ac_link"
  22028. case "(($ac_try" in
  22029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22030. *) ac_try_echo=$ac_try;;
  22031. esac
  22032. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22033. (eval "$ac_link") 2>conftest.er1
  22034. ac_status=$?
  22035. grep -v '^ *+' conftest.er1 >conftest.err
  22036. rm -f conftest.er1
  22037. cat conftest.err >&5
  22038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22039. (exit $ac_status); } && {
  22040. test -z "$ac_c_werror_flag" ||
  22041. test ! -s conftest.err
  22042. } && test -s conftest$ac_exeext &&
  22043. $as_test_x conftest$ac_exeext; then
  22044. eval "$as_ac_var=yes"
  22045. else
  22046. echo "$as_me: failed program was:" >&5
  22047. sed 's/^/| /' conftest.$ac_ext >&5
  22048. eval "$as_ac_var=no"
  22049. fi
  22050. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22051. conftest$ac_exeext conftest.$ac_ext
  22052. fi
  22053. ac_res=`eval echo '${'$as_ac_var'}'`
  22054. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22055. echo "${ECHO_T}$ac_res" >&6; }
  22056. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22057. cat >>confdefs.h <<_ACEOF
  22058. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22059. _ACEOF
  22060. fi
  22061. done
  22062. for ac_func in strlcpy
  22063. do
  22064. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22065. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  22066. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  22067. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22068. echo $ECHO_N "(cached) $ECHO_C" >&6
  22069. else
  22070. cat >conftest.$ac_ext <<_ACEOF
  22071. /* confdefs.h. */
  22072. _ACEOF
  22073. cat confdefs.h >>conftest.$ac_ext
  22074. cat >>conftest.$ac_ext <<_ACEOF
  22075. /* end confdefs.h. */
  22076. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22077. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22078. #define $ac_func innocuous_$ac_func
  22079. /* System header to define __stub macros and hopefully few prototypes,
  22080. which can conflict with char $ac_func (); below.
  22081. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22082. <limits.h> exists even on freestanding compilers. */
  22083. #ifdef __STDC__
  22084. # include <limits.h>
  22085. #else
  22086. # include <assert.h>
  22087. #endif
  22088. #undef $ac_func
  22089. /* Override any GCC internal prototype to avoid an error.
  22090. Use char because int might match the return type of a GCC
  22091. builtin and then its argument prototype would still apply. */
  22092. #ifdef __cplusplus
  22093. extern "C"
  22094. #endif
  22095. char $ac_func ();
  22096. /* The GNU C library defines this for functions which it implements
  22097. to always fail with ENOSYS. Some functions are actually named
  22098. something starting with __ and the normal name is an alias. */
  22099. #if defined __stub_$ac_func || defined __stub___$ac_func
  22100. choke me
  22101. #endif
  22102. int
  22103. main ()
  22104. {
  22105. return $ac_func ();
  22106. ;
  22107. return 0;
  22108. }
  22109. _ACEOF
  22110. rm -f conftest.$ac_objext conftest$ac_exeext
  22111. if { (ac_try="$ac_link"
  22112. case "(($ac_try" in
  22113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22114. *) ac_try_echo=$ac_try;;
  22115. esac
  22116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22117. (eval "$ac_link") 2>conftest.er1
  22118. ac_status=$?
  22119. grep -v '^ *+' conftest.er1 >conftest.err
  22120. rm -f conftest.er1
  22121. cat conftest.err >&5
  22122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22123. (exit $ac_status); } && {
  22124. test -z "$ac_c_werror_flag" ||
  22125. test ! -s conftest.err
  22126. } && test -s conftest$ac_exeext &&
  22127. $as_test_x conftest$ac_exeext; then
  22128. eval "$as_ac_var=yes"
  22129. else
  22130. echo "$as_me: failed program was:" >&5
  22131. sed 's/^/| /' conftest.$ac_ext >&5
  22132. eval "$as_ac_var=no"
  22133. fi
  22134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22135. conftest$ac_exeext conftest.$ac_ext
  22136. fi
  22137. ac_res=`eval echo '${'$as_ac_var'}'`
  22138. { echo "$as_me:$LINENO: result: $ac_res" >&5
  22139. echo "${ECHO_T}$ac_res" >&6; }
  22140. if test `eval echo '${'$as_ac_var'}'` = yes; then
  22141. cat >>confdefs.h <<_ACEOF
  22142. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22143. _ACEOF
  22144. have_strlcpy=true
  22145. else
  22146. have_strlcpy=false
  22147. fi
  22148. done
  22149. if test x$have_strlcpy = xtrue; then
  22150. SYSTEM_STRLCPY_TRUE=
  22151. SYSTEM_STRLCPY_FALSE='#'
  22152. else
  22153. SYSTEM_STRLCPY_TRUE='#'
  22154. SYSTEM_STRLCPY_FALSE=
  22155. fi
  22156. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  22157. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  22158. if test "${ac_cv_c_bigendian+set}" = set; then
  22159. echo $ECHO_N "(cached) $ECHO_C" >&6
  22160. else
  22161. # See if sys/param.h defines the BYTE_ORDER macro.
  22162. cat >conftest.$ac_ext <<_ACEOF
  22163. /* confdefs.h. */
  22164. _ACEOF
  22165. cat confdefs.h >>conftest.$ac_ext
  22166. cat >>conftest.$ac_ext <<_ACEOF
  22167. /* end confdefs.h. */
  22168. #include <sys/types.h>
  22169. #include <sys/param.h>
  22170. int
  22171. main ()
  22172. {
  22173. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  22174. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  22175. bogus endian macros
  22176. #endif
  22177. ;
  22178. return 0;
  22179. }
  22180. _ACEOF
  22181. rm -f conftest.$ac_objext
  22182. if { (ac_try="$ac_compile"
  22183. case "(($ac_try" in
  22184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22185. *) ac_try_echo=$ac_try;;
  22186. esac
  22187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22188. (eval "$ac_compile") 2>conftest.er1
  22189. ac_status=$?
  22190. grep -v '^ *+' conftest.er1 >conftest.err
  22191. rm -f conftest.er1
  22192. cat conftest.err >&5
  22193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22194. (exit $ac_status); } && {
  22195. test -z "$ac_c_werror_flag" ||
  22196. test ! -s conftest.err
  22197. } && test -s conftest.$ac_objext; then
  22198. # It does; now see whether it defined to BIG_ENDIAN or not.
  22199. cat >conftest.$ac_ext <<_ACEOF
  22200. /* confdefs.h. */
  22201. _ACEOF
  22202. cat confdefs.h >>conftest.$ac_ext
  22203. cat >>conftest.$ac_ext <<_ACEOF
  22204. /* end confdefs.h. */
  22205. #include <sys/types.h>
  22206. #include <sys/param.h>
  22207. int
  22208. main ()
  22209. {
  22210. #if BYTE_ORDER != BIG_ENDIAN
  22211. not big endian
  22212. #endif
  22213. ;
  22214. return 0;
  22215. }
  22216. _ACEOF
  22217. rm -f conftest.$ac_objext
  22218. if { (ac_try="$ac_compile"
  22219. case "(($ac_try" in
  22220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22221. *) ac_try_echo=$ac_try;;
  22222. esac
  22223. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22224. (eval "$ac_compile") 2>conftest.er1
  22225. ac_status=$?
  22226. grep -v '^ *+' conftest.er1 >conftest.err
  22227. rm -f conftest.er1
  22228. cat conftest.err >&5
  22229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22230. (exit $ac_status); } && {
  22231. test -z "$ac_c_werror_flag" ||
  22232. test ! -s conftest.err
  22233. } && test -s conftest.$ac_objext; then
  22234. ac_cv_c_bigendian=yes
  22235. else
  22236. echo "$as_me: failed program was:" >&5
  22237. sed 's/^/| /' conftest.$ac_ext >&5
  22238. ac_cv_c_bigendian=no
  22239. fi
  22240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22241. else
  22242. echo "$as_me: failed program was:" >&5
  22243. sed 's/^/| /' conftest.$ac_ext >&5
  22244. # It does not; compile a test program.
  22245. if test "$cross_compiling" = yes; then
  22246. # try to guess the endianness by grepping values into an object file
  22247. ac_cv_c_bigendian=unknown
  22248. cat >conftest.$ac_ext <<_ACEOF
  22249. /* confdefs.h. */
  22250. _ACEOF
  22251. cat confdefs.h >>conftest.$ac_ext
  22252. cat >>conftest.$ac_ext <<_ACEOF
  22253. /* end confdefs.h. */
  22254. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22255. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22256. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  22257. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22258. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22259. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  22260. int
  22261. main ()
  22262. {
  22263. _ascii (); _ebcdic ();
  22264. ;
  22265. return 0;
  22266. }
  22267. _ACEOF
  22268. rm -f conftest.$ac_objext
  22269. if { (ac_try="$ac_compile"
  22270. case "(($ac_try" in
  22271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22272. *) ac_try_echo=$ac_try;;
  22273. esac
  22274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22275. (eval "$ac_compile") 2>conftest.er1
  22276. ac_status=$?
  22277. grep -v '^ *+' conftest.er1 >conftest.err
  22278. rm -f conftest.er1
  22279. cat conftest.err >&5
  22280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22281. (exit $ac_status); } && {
  22282. test -z "$ac_c_werror_flag" ||
  22283. test ! -s conftest.err
  22284. } && test -s conftest.$ac_objext; then
  22285. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  22286. ac_cv_c_bigendian=yes
  22287. fi
  22288. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22289. if test "$ac_cv_c_bigendian" = unknown; then
  22290. ac_cv_c_bigendian=no
  22291. else
  22292. # finding both strings is unlikely to happen, but who knows?
  22293. ac_cv_c_bigendian=unknown
  22294. fi
  22295. fi
  22296. else
  22297. echo "$as_me: failed program was:" >&5
  22298. sed 's/^/| /' conftest.$ac_ext >&5
  22299. fi
  22300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22301. else
  22302. cat >conftest.$ac_ext <<_ACEOF
  22303. /* confdefs.h. */
  22304. _ACEOF
  22305. cat confdefs.h >>conftest.$ac_ext
  22306. cat >>conftest.$ac_ext <<_ACEOF
  22307. /* end confdefs.h. */
  22308. $ac_includes_default
  22309. int
  22310. main ()
  22311. {
  22312. /* Are we little or big endian? From Harbison&Steele. */
  22313. union
  22314. {
  22315. long int l;
  22316. char c[sizeof (long int)];
  22317. } u;
  22318. u.l = 1;
  22319. return u.c[sizeof (long int) - 1] == 1;
  22320. ;
  22321. return 0;
  22322. }
  22323. _ACEOF
  22324. rm -f conftest$ac_exeext
  22325. if { (ac_try="$ac_link"
  22326. case "(($ac_try" in
  22327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22328. *) ac_try_echo=$ac_try;;
  22329. esac
  22330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22331. (eval "$ac_link") 2>&5
  22332. ac_status=$?
  22333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22334. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22335. { (case "(($ac_try" in
  22336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22337. *) ac_try_echo=$ac_try;;
  22338. esac
  22339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22340. (eval "$ac_try") 2>&5
  22341. ac_status=$?
  22342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22343. (exit $ac_status); }; }; then
  22344. ac_cv_c_bigendian=no
  22345. else
  22346. echo "$as_me: program exited with status $ac_status" >&5
  22347. echo "$as_me: failed program was:" >&5
  22348. sed 's/^/| /' conftest.$ac_ext >&5
  22349. ( exit $ac_status )
  22350. ac_cv_c_bigendian=yes
  22351. fi
  22352. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22353. fi
  22354. fi
  22355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22356. fi
  22357. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22358. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  22359. case $ac_cv_c_bigendian in
  22360. yes)
  22361. cat >>confdefs.h <<\_ACEOF
  22362. #define WORDS_BIGENDIAN 1
  22363. _ACEOF
  22364. ;;
  22365. no)
  22366. ;;
  22367. *)
  22368. { { echo "$as_me:$LINENO: error: unknown endianness
  22369. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22370. echo "$as_me: error: unknown endianness
  22371. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22372. { (exit 1); exit 1; }; } ;;
  22373. esac
  22374. if test x$ac_cv_c_bigendian = xyes ; then
  22375. WORDS_BIGENDIAN_TRUE=
  22376. WORDS_BIGENDIAN_FALSE='#'
  22377. else
  22378. WORDS_BIGENDIAN_TRUE='#'
  22379. WORDS_BIGENDIAN_FALSE=
  22380. fi
  22381. debug=no
  22382. # Check whether --enable-debug was given.
  22383. if test "${enable_debug+set}" = set; then
  22384. enableval=$enable_debug; if test x$enableval = xyes; then
  22385. debug=yes
  22386. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  22387. # We may also want to add:
  22388. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  22389. cat >>confdefs.h <<\_ACEOF
  22390. #define DEBUG 1
  22391. _ACEOF
  22392. fi
  22393. fi
  22394. # Check whether --enable-pedantic was given.
  22395. if test "${enable_pedantic+set}" = set; then
  22396. enableval=$enable_pedantic; if test x$enableval = xyes; then
  22397. CFLAGS="$CFLAGS -pedantic"
  22398. fi
  22399. fi
  22400. # Check whether --enable-efence was given.
  22401. if test "${enable_efence+set}" = set; then
  22402. enableval=$enable_efence; if test x$enableval = xyes; then
  22403. CFLAGS="$CFLAGS -lefence"
  22404. cat >>confdefs.h <<\_ACEOF
  22405. #define EFENCE 1
  22406. _ACEOF
  22407. fi
  22408. fi
  22409. # Check whether --enable-gprof was given.
  22410. if test "${enable_gprof+set}" = set; then
  22411. enableval=$enable_gprof; if test x$enableval = xyes; then
  22412. if test $debug = yes; then
  22413. CFLAGS="$CFLAGS -pg"
  22414. else
  22415. # GPROF requires gdb
  22416. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22417. fi
  22418. cat >>confdefs.h <<\_ACEOF
  22419. #define GPROF 1
  22420. _ACEOF
  22421. fi
  22422. fi
  22423. use64bit_counters=yes
  22424. # Check whether --enable-64bits was given.
  22425. if test "${enable_64bits+set}" = set; then
  22426. enableval=$enable_64bits;
  22427. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22428. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22429. else
  22430. cat >>confdefs.h <<\_ACEOF
  22431. #define ENABLE_64BITS 1
  22432. _ACEOF
  22433. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22434. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22435. fi
  22436. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  22437. # so we can use _U_ to flag unused function arguments and not get warnings
  22438. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  22439. # function argument will compile with non-GCC compilers.
  22440. #
  22441. if test "x$GCC" = "xyes" ; then
  22442. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  22443. else
  22444. CFLAGS="-D_U_=\"\" $CFLAGS"
  22445. fi
  22446. # Check whether --enable-force-bpf was given.
  22447. if test "${enable_force_bpf+set}" = set; then
  22448. enableval=$enable_force_bpf;
  22449. cat >>confdefs.h <<\_ACEOF
  22450. #define FORCE_INJECT_BPF 1
  22451. _ACEOF
  22452. fi
  22453. # Check whether --enable-force-pf was given.
  22454. if test "${enable_force_pf+set}" = set; then
  22455. enableval=$enable_force_pf;
  22456. cat >>confdefs.h <<\_ACEOF
  22457. #define FORCE_INJECT_PF 1
  22458. _ACEOF
  22459. fi
  22460. # Check whether --enable-force-libnet was given.
  22461. if test "${enable_force_libnet+set}" = set; then
  22462. enableval=$enable_force_libnet;
  22463. cat >>confdefs.h <<\_ACEOF
  22464. #define FORCE_INJECT_LIBNET 1
  22465. _ACEOF
  22466. fi
  22467. # Check whether --enable-force-inject was given.
  22468. if test "${enable_force_inject+set}" = set; then
  22469. enableval=$enable_force_inject;
  22470. cat >>confdefs.h <<\_ACEOF
  22471. #define FORCE_INJECT_PCAP_INJECT 1
  22472. _ACEOF
  22473. fi
  22474. # Check whether --enable-force-sendpacket was given.
  22475. if test "${enable_force_sendpacket+set}" = set; then
  22476. enableval=$enable_force_sendpacket;
  22477. cat >>confdefs.h <<\_ACEOF
  22478. #define FORCE_INJECT_PCAP_SENDPACKET 1
  22479. _ACEOF
  22480. fi
  22481. tcpreplay_edit=no
  22482. # Check whether --enable-tcpreplay-edit was given.
  22483. if test "${enable_tcpreplay_edit+set}" = set; then
  22484. enableval=$enable_tcpreplay_edit;
  22485. cat >>confdefs.h <<\_ACEOF
  22486. #define TCPREPLAY_EDIT 1
  22487. _ACEOF
  22488. tcpreplay_edit=yes
  22489. fi
  22490. if test x$tcpreplay_edit = xyes; then
  22491. ENABLE_TCPREPLAY_EDIT_TRUE=
  22492. ENABLE_TCPREPLAY_EDIT_FALSE='#'
  22493. else
  22494. ENABLE_TCPREPLAY_EDIT_TRUE='#'
  22495. ENABLE_TCPREPLAY_EDIT_FALSE=
  22496. fi
  22497. dynamic_link=no
  22498. # Check whether --enable-dynamic-link was given.
  22499. if test "${enable_dynamic_link+set}" = set; then
  22500. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  22501. cat >>confdefs.h <<\_ACEOF
  22502. #define ENABLE_DYNAMIC_LINK 1
  22503. _ACEOF
  22504. dynamic_link=yes
  22505. fi
  22506. fi
  22507. { echo "$as_me:$LINENO: checking for inet_aton" >&5
  22508. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
  22509. if test "${ac_cv_func_inet_aton+set}" = set; then
  22510. echo $ECHO_N "(cached) $ECHO_C" >&6
  22511. else
  22512. cat >conftest.$ac_ext <<_ACEOF
  22513. /* confdefs.h. */
  22514. _ACEOF
  22515. cat confdefs.h >>conftest.$ac_ext
  22516. cat >>conftest.$ac_ext <<_ACEOF
  22517. /* end confdefs.h. */
  22518. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22519. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22520. #define inet_aton innocuous_inet_aton
  22521. /* System header to define __stub macros and hopefully few prototypes,
  22522. which can conflict with char inet_aton (); below.
  22523. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22524. <limits.h> exists even on freestanding compilers. */
  22525. #ifdef __STDC__
  22526. # include <limits.h>
  22527. #else
  22528. # include <assert.h>
  22529. #endif
  22530. #undef inet_aton
  22531. /* Override any GCC internal prototype to avoid an error.
  22532. Use char because int might match the return type of a GCC
  22533. builtin and then its argument prototype would still apply. */
  22534. #ifdef __cplusplus
  22535. extern "C"
  22536. #endif
  22537. char inet_aton ();
  22538. /* The GNU C library defines this for functions which it implements
  22539. to always fail with ENOSYS. Some functions are actually named
  22540. something starting with __ and the normal name is an alias. */
  22541. #if defined __stub_inet_aton || defined __stub___inet_aton
  22542. choke me
  22543. #endif
  22544. int
  22545. main ()
  22546. {
  22547. return inet_aton ();
  22548. ;
  22549. return 0;
  22550. }
  22551. _ACEOF
  22552. rm -f conftest.$ac_objext conftest$ac_exeext
  22553. if { (ac_try="$ac_link"
  22554. case "(($ac_try" in
  22555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22556. *) ac_try_echo=$ac_try;;
  22557. esac
  22558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22559. (eval "$ac_link") 2>conftest.er1
  22560. ac_status=$?
  22561. grep -v '^ *+' conftest.er1 >conftest.err
  22562. rm -f conftest.er1
  22563. cat conftest.err >&5
  22564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22565. (exit $ac_status); } && {
  22566. test -z "$ac_c_werror_flag" ||
  22567. test ! -s conftest.err
  22568. } && test -s conftest$ac_exeext &&
  22569. $as_test_x conftest$ac_exeext; then
  22570. ac_cv_func_inet_aton=yes
  22571. else
  22572. echo "$as_me: failed program was:" >&5
  22573. sed 's/^/| /' conftest.$ac_ext >&5
  22574. ac_cv_func_inet_aton=no
  22575. fi
  22576. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22577. conftest$ac_exeext conftest.$ac_ext
  22578. fi
  22579. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22580. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
  22581. if test $ac_cv_func_inet_aton = yes; then
  22582. cat >>confdefs.h <<\_ACEOF
  22583. #define HAVE_INET_ATON 1
  22584. _ACEOF
  22585. inet_aton=yes
  22586. else
  22587. inet_aton=no
  22588. fi
  22589. { echo "$as_me:$LINENO: checking for inet_pton" >&5
  22590. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
  22591. if test "${ac_cv_func_inet_pton+set}" = set; then
  22592. echo $ECHO_N "(cached) $ECHO_C" >&6
  22593. else
  22594. cat >conftest.$ac_ext <<_ACEOF
  22595. /* confdefs.h. */
  22596. _ACEOF
  22597. cat confdefs.h >>conftest.$ac_ext
  22598. cat >>conftest.$ac_ext <<_ACEOF
  22599. /* end confdefs.h. */
  22600. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  22601. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22602. #define inet_pton innocuous_inet_pton
  22603. /* System header to define __stub macros and hopefully few prototypes,
  22604. which can conflict with char inet_pton (); below.
  22605. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22606. <limits.h> exists even on freestanding compilers. */
  22607. #ifdef __STDC__
  22608. # include <limits.h>
  22609. #else
  22610. # include <assert.h>
  22611. #endif
  22612. #undef inet_pton
  22613. /* Override any GCC internal prototype to avoid an error.
  22614. Use char because int might match the return type of a GCC
  22615. builtin and then its argument prototype would still apply. */
  22616. #ifdef __cplusplus
  22617. extern "C"
  22618. #endif
  22619. char inet_pton ();
  22620. /* The GNU C library defines this for functions which it implements
  22621. to always fail with ENOSYS. Some functions are actually named
  22622. something starting with __ and the normal name is an alias. */
  22623. #if defined __stub_inet_pton || defined __stub___inet_pton
  22624. choke me
  22625. #endif
  22626. int
  22627. main ()
  22628. {
  22629. return inet_pton ();
  22630. ;
  22631. return 0;
  22632. }
  22633. _ACEOF
  22634. rm -f conftest.$ac_objext conftest$ac_exeext
  22635. if { (ac_try="$ac_link"
  22636. case "(($ac_try" in
  22637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22638. *) ac_try_echo=$ac_try;;
  22639. esac
  22640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22641. (eval "$ac_link") 2>conftest.er1
  22642. ac_status=$?
  22643. grep -v '^ *+' conftest.er1 >conftest.err
  22644. rm -f conftest.er1
  22645. cat conftest.err >&5
  22646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22647. (exit $ac_status); } && {
  22648. test -z "$ac_c_werror_flag" ||
  22649. test ! -s conftest.err
  22650. } && test -s conftest$ac_exeext &&
  22651. $as_test_x conftest$ac_exeext; then
  22652. ac_cv_func_inet_pton=yes
  22653. else
  22654. echo "$as_me: failed program was:" >&5
  22655. sed 's/^/| /' conftest.$ac_ext >&5
  22656. ac_cv_func_inet_pton=no
  22657. fi
  22658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22659. conftest$ac_exeext conftest.$ac_ext
  22660. fi
  22661. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  22662. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
  22663. if test $ac_cv_func_inet_pton = yes; then
  22664. cat >>confdefs.h <<\_ACEOF
  22665. #define HAVE_INET_PTON 1
  22666. _ACEOF
  22667. inet_pton=yes
  22668. else
  22669. inet_pton=no
  22670. fi
  22671. { echo "$as_me:$LINENO: checking for inet_ntop" >&5
  22672. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
  22673. if test "${ac_cv_func_inet_ntop+set}" = set; then
  22674. echo $ECHO_N "(cached) $ECHO_C" >&6
  22675. else
  22676. cat >conftest.$ac_ext <<_ACEOF
  22677. /* confdefs.h. */
  22678. _ACEOF
  22679. cat confdefs.h >>conftest.$ac_ext
  22680. cat >>conftest.$ac_ext <<_ACEOF
  22681. /* end confdefs.h. */
  22682. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  22683. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22684. #define inet_ntop innocuous_inet_ntop
  22685. /* System header to define __stub macros and hopefully few prototypes,
  22686. which can conflict with char inet_ntop (); below.
  22687. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22688. <limits.h> exists even on freestanding compilers. */
  22689. #ifdef __STDC__
  22690. # include <limits.h>
  22691. #else
  22692. # include <assert.h>
  22693. #endif
  22694. #undef inet_ntop
  22695. /* Override any GCC internal prototype to avoid an error.
  22696. Use char because int might match the return type of a GCC
  22697. builtin and then its argument prototype would still apply. */
  22698. #ifdef __cplusplus
  22699. extern "C"
  22700. #endif
  22701. char inet_ntop ();
  22702. /* The GNU C library defines this for functions which it implements
  22703. to always fail with ENOSYS. Some functions are actually named
  22704. something starting with __ and the normal name is an alias. */
  22705. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  22706. choke me
  22707. #endif
  22708. int
  22709. main ()
  22710. {
  22711. return inet_ntop ();
  22712. ;
  22713. return 0;
  22714. }
  22715. _ACEOF
  22716. rm -f conftest.$ac_objext conftest$ac_exeext
  22717. if { (ac_try="$ac_link"
  22718. case "(($ac_try" in
  22719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22720. *) ac_try_echo=$ac_try;;
  22721. esac
  22722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22723. (eval "$ac_link") 2>conftest.er1
  22724. ac_status=$?
  22725. grep -v '^ *+' conftest.er1 >conftest.err
  22726. rm -f conftest.er1
  22727. cat conftest.err >&5
  22728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22729. (exit $ac_status); } && {
  22730. test -z "$ac_c_werror_flag" ||
  22731. test ! -s conftest.err
  22732. } && test -s conftest$ac_exeext &&
  22733. $as_test_x conftest$ac_exeext; then
  22734. ac_cv_func_inet_ntop=yes
  22735. else
  22736. echo "$as_me: failed program was:" >&5
  22737. sed 's/^/| /' conftest.$ac_ext >&5
  22738. ac_cv_func_inet_ntop=no
  22739. fi
  22740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22741. conftest$ac_exeext conftest.$ac_ext
  22742. fi
  22743. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  22744. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
  22745. if test $ac_cv_func_inet_ntop = yes; then
  22746. cat >>confdefs.h <<\_ACEOF
  22747. #define HAVE_INET_NTOP 1
  22748. _ACEOF
  22749. inet_ntop=yes
  22750. else
  22751. inet_ntop=no
  22752. fi
  22753. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  22754. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  22755. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  22756. { (exit 1); exit 1; }; }
  22757. fi
  22758. { echo "$as_me:$LINENO: checking for inet_addr" >&5
  22759. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
  22760. if test "${ac_cv_func_inet_addr+set}" = set; then
  22761. echo $ECHO_N "(cached) $ECHO_C" >&6
  22762. else
  22763. cat >conftest.$ac_ext <<_ACEOF
  22764. /* confdefs.h. */
  22765. _ACEOF
  22766. cat confdefs.h >>conftest.$ac_ext
  22767. cat >>conftest.$ac_ext <<_ACEOF
  22768. /* end confdefs.h. */
  22769. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22770. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22771. #define inet_addr innocuous_inet_addr
  22772. /* System header to define __stub macros and hopefully few prototypes,
  22773. which can conflict with char inet_addr (); below.
  22774. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22775. <limits.h> exists even on freestanding compilers. */
  22776. #ifdef __STDC__
  22777. # include <limits.h>
  22778. #else
  22779. # include <assert.h>
  22780. #endif
  22781. #undef inet_addr
  22782. /* Override any GCC internal prototype to avoid an error.
  22783. Use char because int might match the return type of a GCC
  22784. builtin and then its argument prototype would still apply. */
  22785. #ifdef __cplusplus
  22786. extern "C"
  22787. #endif
  22788. char inet_addr ();
  22789. /* The GNU C library defines this for functions which it implements
  22790. to always fail with ENOSYS. Some functions are actually named
  22791. something starting with __ and the normal name is an alias. */
  22792. #if defined __stub_inet_addr || defined __stub___inet_addr
  22793. choke me
  22794. #endif
  22795. int
  22796. main ()
  22797. {
  22798. return inet_addr ();
  22799. ;
  22800. return 0;
  22801. }
  22802. _ACEOF
  22803. rm -f conftest.$ac_objext conftest$ac_exeext
  22804. if { (ac_try="$ac_link"
  22805. case "(($ac_try" in
  22806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22807. *) ac_try_echo=$ac_try;;
  22808. esac
  22809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22810. (eval "$ac_link") 2>conftest.er1
  22811. ac_status=$?
  22812. grep -v '^ *+' conftest.er1 >conftest.err
  22813. rm -f conftest.er1
  22814. cat conftest.err >&5
  22815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22816. (exit $ac_status); } && {
  22817. test -z "$ac_c_werror_flag" ||
  22818. test ! -s conftest.err
  22819. } && test -s conftest$ac_exeext &&
  22820. $as_test_x conftest$ac_exeext; then
  22821. ac_cv_func_inet_addr=yes
  22822. else
  22823. echo "$as_me: failed program was:" >&5
  22824. sed 's/^/| /' conftest.$ac_ext >&5
  22825. ac_cv_func_inet_addr=no
  22826. fi
  22827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22828. conftest$ac_exeext conftest.$ac_ext
  22829. fi
  22830. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22831. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
  22832. if test $ac_cv_func_inet_addr = yes; then
  22833. cat >>confdefs.h <<\_ACEOF
  22834. #define HAVE_INET_ADDR 1
  22835. _ACEOF
  22836. inet_addr=yes
  22837. else
  22838. inet_addr=no
  22839. fi
  22840. if test x$inet_addr = no ; then
  22841. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  22842. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  22843. { (exit 1); exit 1; }; }
  22844. fi
  22845. foundnet=no
  22846. trynetdir=no
  22847. have_libnet=no
  22848. use_libnet=no
  22849. # Check whether --enable-libnet was given.
  22850. if test "${enable_libnet+set}" = set; then
  22851. enableval=$enable_libnet; if test x$enableval = xyes; then
  22852. use_libnet=yes
  22853. { echo "$as_me:$LINENO: WARNING: Due to bugs in libnet, it is no longer officially supported" >&5
  22854. echo "$as_me: WARNING: Due to bugs in libnet, it is no longer officially supported" >&2;}
  22855. fi
  22856. fi
  22857. # Check whether --with-libnet was given.
  22858. if test "${with_libnet+set}" = set; then
  22859. withval=$with_libnet; trynetdir=$withval
  22860. fi
  22861. if test x$use_libnet = xyes ; then
  22862. { echo "$as_me:$LINENO: checking for libnet" >&5
  22863. echo $ECHO_N "checking for libnet... $ECHO_C" >&6; }
  22864. for testdir in $trynetdir /usr/local /opt/local /usr ; do
  22865. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22866. LNETINC="${testdir}/include/libnet.h"
  22867. LNETINCDIR="${testdir}/include"
  22868. if test $dynamic_link = yes; then
  22869. if test -f "${testdir}/lib64/libnet${shrext_cmds}" ; then
  22870. LNETLIB="-L${testdir}/lib64 -lnet"
  22871. elif test -f "${testdir}/lib/libnet${shrext_cmds}" ; then
  22872. LNETLIB="-L${testdir}/lib -lnet"
  22873. else
  22874. { { echo "$as_me:$LINENO: error: Unable to find libnet in ${testdir}" >&5
  22875. echo "$as_me: error: Unable to find libnet in ${testdir}" >&2;}
  22876. { (exit 1); exit 1; }; }
  22877. fi
  22878. elif test -f "${testdir}/lib64/libnet.${libext}" ; then
  22879. LNETLIB="${testdir}/lib64/libnet.${libext}"
  22880. elif test -f "${testdir}/lib/libnet.${libext}" ; then
  22881. LNETLIB="${testdir}/lib/libnet.${libext}"
  22882. else
  22883. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  22884. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  22885. { (exit 1); exit 1; }; }
  22886. fi
  22887. foundnet=$testdir
  22888. fi
  22889. done
  22890. if test x$foundnet = xno ; then
  22891. { echo "$as_me:$LINENO: result: no" >&5
  22892. echo "${ECHO_T}no" >&6; }
  22893. else
  22894. { echo "$as_me:$LINENO: result: $foundnet" >&5
  22895. echo "${ECHO_T}$foundnet" >&6; }
  22896. have_libnet=yes
  22897. cat >>confdefs.h <<\_ACEOF
  22898. #define HAVE_LIBNET 1
  22899. _ACEOF
  22900. fi
  22901. fi
  22902. if test $foundnet != no ; then
  22903. OLDLIBS="$LIBS"
  22904. OLDCFLAGS="$CFLAGS"
  22905. LIBS="$LNETLIB"
  22906. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22907. { echo "$as_me:$LINENO: checking for libnet version" >&5
  22908. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6; }
  22909. if test "$cross_compiling" = yes; then
  22910. libnet_ver_10=no
  22911. else
  22912. cat >conftest.$ac_ext <<_ACEOF
  22913. /* confdefs.h. */
  22914. _ACEOF
  22915. cat confdefs.h >>conftest.$ac_ext
  22916. cat >>conftest.$ac_ext <<_ACEOF
  22917. /* end confdefs.h. */
  22918. #include <string.h>
  22919. #define LIBNET_LIL_ENDIAN 1
  22920. #include "$LNETINC"
  22921. #define LIB_TEST "1.0"
  22922. /*
  22923. * simple proggy to test the version of libnet
  22924. * returns zero if it's 1.0.x
  22925. * or one otherwise
  22926. */
  22927. int
  22928. main (int argc, char *argv[])
  22929. {
  22930. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22931. exit(0);
  22932. exit(1);
  22933. }
  22934. _ACEOF
  22935. rm -f conftest$ac_exeext
  22936. if { (ac_try="$ac_link"
  22937. case "(($ac_try" in
  22938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22939. *) ac_try_echo=$ac_try;;
  22940. esac
  22941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22942. (eval "$ac_link") 2>&5
  22943. ac_status=$?
  22944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22945. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22946. { (case "(($ac_try" in
  22947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22948. *) ac_try_echo=$ac_try;;
  22949. esac
  22950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22951. (eval "$ac_try") 2>&5
  22952. ac_status=$?
  22953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22954. (exit $ac_status); }; }; then
  22955. libnet_ver_10=yes
  22956. { echo "$as_me:$LINENO: result: 1.0.x" >&5
  22957. echo "${ECHO_T}1.0.x" >&6; }
  22958. else
  22959. echo "$as_me: program exited with status $ac_status" >&5
  22960. echo "$as_me: failed program was:" >&5
  22961. sed 's/^/| /' conftest.$ac_ext >&5
  22962. ( exit $ac_status )
  22963. libnet_ver_10=no
  22964. fi
  22965. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22966. fi
  22967. if test "$cross_compiling" = yes; then
  22968. libnet_ver_11=no
  22969. else
  22970. cat >conftest.$ac_ext <<_ACEOF
  22971. /* confdefs.h. */
  22972. _ACEOF
  22973. cat confdefs.h >>conftest.$ac_ext
  22974. cat >>conftest.$ac_ext <<_ACEOF
  22975. /* end confdefs.h. */
  22976. #include <string.h>
  22977. #include "$LNETINC"
  22978. #define LIB_TEST "1.1"
  22979. /*
  22980. * simple proggy to test the version of libnet
  22981. * returns zero if it's 1.0.x
  22982. * or one otherwise
  22983. */
  22984. int
  22985. main (int argc, char *argv[])
  22986. {
  22987. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22988. exit(0);
  22989. exit(1);
  22990. }
  22991. _ACEOF
  22992. rm -f conftest$ac_exeext
  22993. if { (ac_try="$ac_link"
  22994. case "(($ac_try" in
  22995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22996. *) ac_try_echo=$ac_try;;
  22997. esac
  22998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22999. (eval "$ac_link") 2>&5
  23000. ac_status=$?
  23001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23002. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23003. { (case "(($ac_try" in
  23004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23005. *) ac_try_echo=$ac_try;;
  23006. esac
  23007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23008. (eval "$ac_try") 2>&5
  23009. ac_status=$?
  23010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23011. (exit $ac_status); }; }; then
  23012. libnet_ver_11=yes
  23013. { echo "$as_me:$LINENO: result: 1.1.x" >&5
  23014. echo "${ECHO_T}1.1.x" >&6; }
  23015. else
  23016. echo "$as_me: program exited with status $ac_status" >&5
  23017. echo "$as_me: failed program was:" >&5
  23018. sed 's/^/| /' conftest.$ac_ext >&5
  23019. ( exit $ac_status )
  23020. libnet_ver_11=no
  23021. fi
  23022. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23023. fi
  23024. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  23025. { echo "$as_me:$LINENO: result: unknown" >&5
  23026. echo "${ECHO_T}unknown" >&6; }
  23027. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  23028. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  23029. { (exit 1); exit 1; }; }
  23030. fi
  23031. if test $libnet_ver_10 = yes ; then
  23032. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  23033. Please upgrade to 1.1.0 or better" >&5
  23034. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  23035. Please upgrade to 1.1.0 or better" >&2;}
  23036. { (exit 1); exit 1; }; }
  23037. fi
  23038. LIBS="$OLDLIBS"
  23039. CFLAGS="$OLDCFLAGS"
  23040. fi
  23041. foundpcap=no
  23042. trypcapdir=/usr/local
  23043. { echo "$as_me:$LINENO: checking for libpcap" >&5
  23044. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6; }
  23045. # Check whether --with-libpcap was given.
  23046. if test "${with_libpcap+set}" = set; then
  23047. withval=$with_libpcap; trypcapdir=$withval
  23048. fi
  23049. for testdir in $trypcapdir /usr/local /opt/local /usr ; do
  23050. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  23051. LPCAPINC="${testdir}/include/pcap.h"
  23052. LPCAPINCDIR="${testdir}/include"
  23053. if test $dynamic_link = yes; then
  23054. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  23055. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  23056. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  23057. LPCAPLIB="-L${testdir}/lib -lpcap"
  23058. else
  23059. { { echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  23060. echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  23061. { (exit 1); exit 1; }; }
  23062. fi
  23063. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  23064. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  23065. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  23066. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  23067. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  23068. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  23069. cat >>confdefs.h <<\_ACEOF
  23070. #define HAVE_WINPCAP 1
  23071. _ACEOF
  23072. else
  23073. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  23074. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  23075. { (exit 1); exit 1; }; }
  23076. fi
  23077. foundpcap=$testdir
  23078. fi
  23079. done
  23080. if test $foundpcap = no ; then
  23081. { echo "$as_me:$LINENO: result: no" >&5
  23082. echo "${ECHO_T}no" >&6; }
  23083. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  23084. echo "$as_me: error: libpcap not found" >&2;}
  23085. { (exit 1); exit 1; }; }
  23086. else
  23087. { echo "$as_me:$LINENO: result: $foundpcap" >&5
  23088. echo "${ECHO_T}$foundpcap" >&6; }
  23089. fi
  23090. OLDLIBS="$LIBS"
  23091. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23092. LIBS="$LPCAPLIB"
  23093. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  23094. { echo "$as_me:$LINENO: checking for libpcap version" >&5
  23095. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6; }
  23096. libpcap_version_096=no
  23097. if test "$cross_compiling" = yes; then
  23098. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23099. See \`config.log' for more details." >&5
  23100. echo "$as_me: error: cannot run test program while cross compiling
  23101. See \`config.log' for more details." >&2;}
  23102. { (exit 1); exit 1; }; }
  23103. else
  23104. cat >conftest.$ac_ext <<_ACEOF
  23105. /* confdefs.h. */
  23106. _ACEOF
  23107. cat confdefs.h >>conftest.$ac_ext
  23108. cat >>conftest.$ac_ext <<_ACEOF
  23109. /* end confdefs.h. */
  23110. #include <string.h>
  23111. #include <stdlib.h>
  23112. #include <stdio.h>
  23113. #include "$LPCAPINC"
  23114. #define PCAP_TEST "0.9.6"
  23115. int
  23116. main ()
  23117. {
  23118. /*
  23119. * simple proggy to test the version of libpcap
  23120. * returns zero if version >= 0.9.6
  23121. * or one otherwise
  23122. */
  23123. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  23124. exit(0);
  23125. exit(1);
  23126. ;
  23127. return 0;
  23128. }
  23129. _ACEOF
  23130. rm -f conftest$ac_exeext
  23131. if { (ac_try="$ac_link"
  23132. case "(($ac_try" in
  23133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23134. *) ac_try_echo=$ac_try;;
  23135. esac
  23136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23137. (eval "$ac_link") 2>&5
  23138. ac_status=$?
  23139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23140. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23141. { (case "(($ac_try" in
  23142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23143. *) ac_try_echo=$ac_try;;
  23144. esac
  23145. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23146. (eval "$ac_try") 2>&5
  23147. ac_status=$?
  23148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23149. (exit $ac_status); }; }; then
  23150. libpcap_version_096=yes
  23151. else
  23152. echo "$as_me: program exited with status $ac_status" >&5
  23153. echo "$as_me: failed program was:" >&5
  23154. sed 's/^/| /' conftest.$ac_ext >&5
  23155. fi
  23156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23157. fi
  23158. if test "$cross_compiling" = yes; then
  23159. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23160. See \`config.log' for more details." >&5
  23161. echo "$as_me: error: cannot run test program while cross compiling
  23162. See \`config.log' for more details." >&2;}
  23163. { (exit 1); exit 1; }; }
  23164. else
  23165. cat >conftest.$ac_ext <<_ACEOF
  23166. /* confdefs.h. */
  23167. _ACEOF
  23168. cat confdefs.h >>conftest.$ac_ext
  23169. cat >>conftest.$ac_ext <<_ACEOF
  23170. /* end confdefs.h. */
  23171. #include <string.h>
  23172. #include <stdlib.h>
  23173. #include <stdio.h>
  23174. #include "$LPCAPINC"
  23175. #define PCAP_TEST "0.8"
  23176. int
  23177. main ()
  23178. {
  23179. /*
  23180. * simple proggy to test the version of libpcap
  23181. * returns zero if version >= 0.8.0
  23182. * or one otherwise
  23183. */
  23184. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  23185. exit(0);
  23186. /* winpcap? */
  23187. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  23188. exit(0);
  23189. exit(1);
  23190. ;
  23191. return 0;
  23192. }
  23193. _ACEOF
  23194. rm -f conftest$ac_exeext
  23195. if { (ac_try="$ac_link"
  23196. case "(($ac_try" in
  23197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23198. *) ac_try_echo=$ac_try;;
  23199. esac
  23200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23201. (eval "$ac_link") 2>&5
  23202. ac_status=$?
  23203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23204. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23205. { (case "(($ac_try" in
  23206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23207. *) ac_try_echo=$ac_try;;
  23208. esac
  23209. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23210. (eval "$ac_try") 2>&5
  23211. ac_status=$?
  23212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23213. (exit $ac_status); }; }; then
  23214. libpcap_ver8=yes
  23215. else
  23216. echo "$as_me: program exited with status $ac_status" >&5
  23217. echo "$as_me: failed program was:" >&5
  23218. sed 's/^/| /' conftest.$ac_ext >&5
  23219. ( exit $ac_status )
  23220. libpcap_ver8=no
  23221. fi
  23222. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23223. fi
  23224. if test "$cross_compiling" = yes; then
  23225. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23226. See \`config.log' for more details." >&5
  23227. echo "$as_me: error: cannot run test program while cross compiling
  23228. See \`config.log' for more details." >&2;}
  23229. { (exit 1); exit 1; }; }
  23230. else
  23231. cat >conftest.$ac_ext <<_ACEOF
  23232. /* confdefs.h. */
  23233. _ACEOF
  23234. cat confdefs.h >>conftest.$ac_ext
  23235. cat >>conftest.$ac_ext <<_ACEOF
  23236. /* end confdefs.h. */
  23237. #include <string.h>
  23238. #include <stdlib.h>
  23239. #include <stdio.h>
  23240. #include "$LPCAPINC"
  23241. #define PCAP_TEST "0.7.2"
  23242. extern const char pcap_version[]; /* double up since autoconf escapes things */
  23243. int
  23244. main ()
  23245. {
  23246. /*
  23247. * simple proggy to test the version of libpcap
  23248. * returns zero if version >= 0.7.2
  23249. * or one otherwise
  23250. */
  23251. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  23252. exit(0);
  23253. exit(1);
  23254. ;
  23255. return 0;
  23256. }
  23257. _ACEOF
  23258. rm -f conftest$ac_exeext
  23259. if { (ac_try="$ac_link"
  23260. case "(($ac_try" in
  23261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23262. *) ac_try_echo=$ac_try;;
  23263. esac
  23264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23265. (eval "$ac_link") 2>&5
  23266. ac_status=$?
  23267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23268. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23269. { (case "(($ac_try" in
  23270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23271. *) ac_try_echo=$ac_try;;
  23272. esac
  23273. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23274. (eval "$ac_try") 2>&5
  23275. ac_status=$?
  23276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23277. (exit $ac_status); }; }; then
  23278. libpcap_ver7=yes
  23279. else
  23280. echo "$as_me: program exited with status $ac_status" >&5
  23281. echo "$as_me: failed program was:" >&5
  23282. sed 's/^/| /' conftest.$ac_ext >&5
  23283. ( exit $ac_status )
  23284. libpcap_ver7=no
  23285. fi
  23286. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23287. fi
  23288. if test $libpcap_ver8 = yes ; then
  23289. { echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  23290. echo "${ECHO_T}>= 0.8.0" >&6; }
  23291. elif test $libpcap_ver7 = yes ; then
  23292. { echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  23293. echo "${ECHO_T}>= 0.7.2" >&6; }
  23294. else
  23295. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  23296. Please upgrade to version 0.7.2 or better" >&5
  23297. echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  23298. Please upgrade to version 0.7.2 or better" >&2;}
  23299. { (exit 1); exit 1; }; }
  23300. fi
  23301. libpcap_version=unknown
  23302. if test $libpcap_version_096 = yes ; then
  23303. libpcap_version=">= 0.9.6"
  23304. elif test $libpcap_ver8 = yes ; then
  23305. libpcap_version=">= 0.8.0"
  23306. elif test $libcap_ver7 = yes ; then
  23307. libpcap_version=">= 0.7.0"
  23308. fi
  23309. { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  23310. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
  23311. cat >conftest.$ac_ext <<_ACEOF
  23312. /* confdefs.h. */
  23313. _ACEOF
  23314. cat confdefs.h >>conftest.$ac_ext
  23315. cat >>conftest.$ac_ext <<_ACEOF
  23316. /* end confdefs.h. */
  23317. #include <stdio.h>
  23318. #include <stdlib.h>
  23319. #include <string.h>
  23320. #include "$LPCAPINC"
  23321. int
  23322. main ()
  23323. {
  23324. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  23325. exit(0);
  23326. exit(1);
  23327. ;
  23328. return 0;
  23329. }
  23330. _ACEOF
  23331. rm -f conftest.$ac_objext conftest$ac_exeext
  23332. if { (ac_try="$ac_link"
  23333. case "(($ac_try" in
  23334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23335. *) ac_try_echo=$ac_try;;
  23336. esac
  23337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23338. (eval "$ac_link") 2>conftest.er1
  23339. ac_status=$?
  23340. grep -v '^ *+' conftest.er1 >conftest.err
  23341. rm -f conftest.er1
  23342. cat conftest.err >&5
  23343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23344. (exit $ac_status); } && {
  23345. test -z "$ac_c_werror_flag" ||
  23346. test ! -s conftest.err
  23347. } && test -s conftest$ac_exeext &&
  23348. $as_test_x conftest$ac_exeext; then
  23349. have_dlt_to_desc=yes
  23350. { echo "$as_me:$LINENO: result: yes" >&5
  23351. echo "${ECHO_T}yes" >&6; }
  23352. else
  23353. echo "$as_me: failed program was:" >&5
  23354. sed 's/^/| /' conftest.$ac_ext >&5
  23355. have_dlt_to_desc=no
  23356. { echo "$as_me:$LINENO: result: no" >&5
  23357. echo "${ECHO_T}no" >&6; }
  23358. fi
  23359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23360. conftest$ac_exeext conftest.$ac_ext
  23361. if test $have_dlt_to_desc = yes ; then
  23362. cat >>confdefs.h <<\_ACEOF
  23363. #define HAVE_DLT_VAL_TO_DESC 1
  23364. _ACEOF
  23365. fi
  23366. { echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  23367. echo $ECHO_N "checking for pcap_dump_fopen... $ECHO_C" >&6; }
  23368. cat >conftest.$ac_ext <<_ACEOF
  23369. /* confdefs.h. */
  23370. _ACEOF
  23371. cat confdefs.h >>conftest.$ac_ext
  23372. cat >>conftest.$ac_ext <<_ACEOF
  23373. /* end confdefs.h. */
  23374. #include <stdio.h>
  23375. #include <stdlib.h>
  23376. #include <string.h>
  23377. #include "$LPCAPINC"
  23378. int
  23379. main ()
  23380. {
  23381. pcap_dumper_t *dump;
  23382. pcap_t *pcap;
  23383. FILE *foo;
  23384. dump = pcap_dump_fopen(pcap, foo);
  23385. ;
  23386. return 0;
  23387. }
  23388. _ACEOF
  23389. rm -f conftest.$ac_objext conftest$ac_exeext
  23390. if { (ac_try="$ac_link"
  23391. case "(($ac_try" in
  23392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23393. *) ac_try_echo=$ac_try;;
  23394. esac
  23395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23396. (eval "$ac_link") 2>conftest.er1
  23397. ac_status=$?
  23398. grep -v '^ *+' conftest.er1 >conftest.err
  23399. rm -f conftest.er1
  23400. cat conftest.err >&5
  23401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23402. (exit $ac_status); } && {
  23403. test -z "$ac_c_werror_flag" ||
  23404. test ! -s conftest.err
  23405. } && test -s conftest$ac_exeext &&
  23406. $as_test_x conftest$ac_exeext; then
  23407. have_pcap_dump_fopen=yes
  23408. { echo "$as_me:$LINENO: result: yes" >&5
  23409. echo "${ECHO_T}yes" >&6; }
  23410. else
  23411. echo "$as_me: failed program was:" >&5
  23412. sed 's/^/| /' conftest.$ac_ext >&5
  23413. have_pcap_dump_fopen=no
  23414. { echo "$as_me:$LINENO: result: no" >&5
  23415. echo "${ECHO_T}no" >&6; }
  23416. fi
  23417. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23418. conftest$ac_exeext conftest.$ac_ext
  23419. if test $have_pcap_dump_fopen = yes ; then
  23420. cat >>confdefs.h <<\_ACEOF
  23421. #define HAVE_PCAP_DUMP_FOPEN 1
  23422. _ACEOF
  23423. else
  23424. { echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  23425. echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  23426. fi
  23427. have_pcap_inject=no
  23428. { echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  23429. echo $ECHO_N "checking for pcap_inject sending support... $ECHO_C" >&6; }
  23430. cat >conftest.$ac_ext <<_ACEOF
  23431. /* confdefs.h. */
  23432. _ACEOF
  23433. cat confdefs.h >>conftest.$ac_ext
  23434. cat >>conftest.$ac_ext <<_ACEOF
  23435. /* end confdefs.h. */
  23436. #include <stdio.h>
  23437. #include <stdlib.h>
  23438. #include <string.h>
  23439. #include "$LPCAPINC"
  23440. int
  23441. main ()
  23442. {
  23443. pcap_t *pcap;
  23444. char *buf;
  23445. pcap_inject(pcap, (void *)buf, 0);
  23446. ;
  23447. return 0;
  23448. }
  23449. _ACEOF
  23450. rm -f conftest.$ac_objext
  23451. if { (ac_try="$ac_compile"
  23452. case "(($ac_try" in
  23453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23454. *) ac_try_echo=$ac_try;;
  23455. esac
  23456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23457. (eval "$ac_compile") 2>conftest.er1
  23458. ac_status=$?
  23459. grep -v '^ *+' conftest.er1 >conftest.err
  23460. rm -f conftest.er1
  23461. cat conftest.err >&5
  23462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23463. (exit $ac_status); } && {
  23464. test -z "$ac_c_werror_flag" ||
  23465. test ! -s conftest.err
  23466. } && test -s conftest.$ac_objext; then
  23467. cat >>confdefs.h <<\_ACEOF
  23468. #define HAVE_PCAP_INJECT 1
  23469. _ACEOF
  23470. { echo "$as_me:$LINENO: result: yes" >&5
  23471. echo "${ECHO_T}yes" >&6; }
  23472. have_pcap_inject=yes
  23473. else
  23474. echo "$as_me: failed program was:" >&5
  23475. sed 's/^/| /' conftest.$ac_ext >&5
  23476. { echo "$as_me:$LINENO: result: no" >&5
  23477. echo "${ECHO_T}no" >&6; }
  23478. fi
  23479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23480. have_pcap_version=no
  23481. { echo "$as_me:$LINENO: checking for pcap_version" >&5
  23482. echo $ECHO_N "checking for pcap_version... $ECHO_C" >&6; }
  23483. cat >conftest.$ac_ext <<_ACEOF
  23484. /* confdefs.h. */
  23485. _ACEOF
  23486. cat confdefs.h >>conftest.$ac_ext
  23487. cat >>conftest.$ac_ext <<_ACEOF
  23488. /* end confdefs.h. */
  23489. #include <stdio.h>
  23490. #include <stdlib.h>
  23491. #include <string.h>
  23492. #include "$LPCAPINC"
  23493. extern char pcap_version[];
  23494. int
  23495. main ()
  23496. {
  23497. printf("%s", pcap_version);
  23498. ;
  23499. return 0;
  23500. }
  23501. _ACEOF
  23502. rm -f conftest.$ac_objext
  23503. if { (ac_try="$ac_compile"
  23504. case "(($ac_try" in
  23505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23506. *) ac_try_echo=$ac_try;;
  23507. esac
  23508. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23509. (eval "$ac_compile") 2>conftest.er1
  23510. ac_status=$?
  23511. grep -v '^ *+' conftest.er1 >conftest.err
  23512. rm -f conftest.er1
  23513. cat conftest.err >&5
  23514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23515. (exit $ac_status); } && {
  23516. test -z "$ac_c_werror_flag" ||
  23517. test ! -s conftest.err
  23518. } && test -s conftest.$ac_objext; then
  23519. cat >>confdefs.h <<\_ACEOF
  23520. #define HAVE_PCAP_VERSION 1
  23521. _ACEOF
  23522. { echo "$as_me:$LINENO: result: yes" >&5
  23523. echo "${ECHO_T}yes" >&6; }
  23524. else
  23525. echo "$as_me: failed program was:" >&5
  23526. sed 's/^/| /' conftest.$ac_ext >&5
  23527. { echo "$as_me:$LINENO: result: no" >&5
  23528. echo "${ECHO_T}no" >&6; }
  23529. fi
  23530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23531. have_pcap_sendpacket=no
  23532. { echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  23533. echo $ECHO_N "checking for pcap_sendpacket sending support... $ECHO_C" >&6; }
  23534. cat >conftest.$ac_ext <<_ACEOF
  23535. /* confdefs.h. */
  23536. _ACEOF
  23537. cat confdefs.h >>conftest.$ac_ext
  23538. cat >>conftest.$ac_ext <<_ACEOF
  23539. /* end confdefs.h. */
  23540. #include <stdio.h>
  23541. #include <stdlib.h>
  23542. #include <string.h>
  23543. #include "$LPCAPINC"
  23544. int
  23545. main ()
  23546. {
  23547. pcap_t *pcap;
  23548. u_char *buf;
  23549. pcap_sendpacket(pcap, buf, 0);
  23550. ;
  23551. return 0;
  23552. }
  23553. _ACEOF
  23554. rm -f conftest.$ac_objext
  23555. if { (ac_try="$ac_compile"
  23556. case "(($ac_try" in
  23557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23558. *) ac_try_echo=$ac_try;;
  23559. esac
  23560. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23561. (eval "$ac_compile") 2>conftest.er1
  23562. ac_status=$?
  23563. grep -v '^ *+' conftest.er1 >conftest.err
  23564. rm -f conftest.er1
  23565. cat conftest.err >&5
  23566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23567. (exit $ac_status); } && {
  23568. test -z "$ac_c_werror_flag" ||
  23569. test ! -s conftest.err
  23570. } && test -s conftest.$ac_objext; then
  23571. cat >>confdefs.h <<\_ACEOF
  23572. #define HAVE_PCAP_SENDPACKET 1
  23573. _ACEOF
  23574. { echo "$as_me:$LINENO: result: yes" >&5
  23575. echo "${ECHO_T}yes" >&6; }
  23576. have_pcap_sendpacket=yes
  23577. else
  23578. echo "$as_me: failed program was:" >&5
  23579. sed 's/^/| /' conftest.$ac_ext >&5
  23580. { echo "$as_me:$LINENO: result: no" >&5
  23581. echo "${ECHO_T}no" >&6; }
  23582. fi
  23583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23584. have_pf=no
  23585. { echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  23586. echo $ECHO_N "checking for PF_PACKET socket sending support... $ECHO_C" >&6; }
  23587. cat >conftest.$ac_ext <<_ACEOF
  23588. /* confdefs.h. */
  23589. _ACEOF
  23590. cat confdefs.h >>conftest.$ac_ext
  23591. cat >>conftest.$ac_ext <<_ACEOF
  23592. /* end confdefs.h. */
  23593. #include <sys/socket.h>
  23594. #include <netpacket/packet.h>
  23595. #include <net/ethernet.h> /* the L2 protocols */
  23596. #include <netinet/in.h> /* htons */
  23597. int
  23598. main ()
  23599. {
  23600. int pf_socket;
  23601. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  23602. ;
  23603. return 0;
  23604. }
  23605. _ACEOF
  23606. rm -f conftest.$ac_objext
  23607. if { (ac_try="$ac_compile"
  23608. case "(($ac_try" in
  23609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23610. *) ac_try_echo=$ac_try;;
  23611. esac
  23612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23613. (eval "$ac_compile") 2>conftest.er1
  23614. ac_status=$?
  23615. grep -v '^ *+' conftest.er1 >conftest.err
  23616. rm -f conftest.er1
  23617. cat conftest.err >&5
  23618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23619. (exit $ac_status); } && {
  23620. test -z "$ac_c_werror_flag" ||
  23621. test ! -s conftest.err
  23622. } && test -s conftest.$ac_objext; then
  23623. cat >>confdefs.h <<\_ACEOF
  23624. #define HAVE_PF_PACKET 1
  23625. _ACEOF
  23626. { echo "$as_me:$LINENO: result: yes" >&5
  23627. echo "${ECHO_T}yes" >&6; }
  23628. have_pf=yes
  23629. else
  23630. echo "$as_me: failed program was:" >&5
  23631. sed 's/^/| /' conftest.$ac_ext >&5
  23632. { echo "$as_me:$LINENO: result: no" >&5
  23633. echo "${ECHO_T}no" >&6; }
  23634. fi
  23635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23636. have_bpf=no
  23637. { echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  23638. echo $ECHO_N "checking for BPF device sending support... $ECHO_C" >&6; }
  23639. if test "$cross_compiling" = yes; then
  23640. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23641. See \`config.log' for more details." >&5
  23642. echo "$as_me: error: cannot run test program while cross compiling
  23643. See \`config.log' for more details." >&2;}
  23644. { (exit 1); exit 1; }; }
  23645. else
  23646. cat >conftest.$ac_ext <<_ACEOF
  23647. /* confdefs.h. */
  23648. _ACEOF
  23649. cat confdefs.h >>conftest.$ac_ext
  23650. cat >>conftest.$ac_ext <<_ACEOF
  23651. /* end confdefs.h. */
  23652. #include <stdio.h>
  23653. #include <stdlib.h>
  23654. #include <net/bpf.h>
  23655. #include <sys/types.h>
  23656. #include <sys/socket.h>
  23657. #include <fcntl.h>
  23658. #include <sys/time.h>
  23659. #include <sys/ioctl.h>
  23660. #include <net/bpf.h>
  23661. #include <errno.h>
  23662. int
  23663. main(int argc, char *argv[]) {
  23664. int fd;
  23665. fd = open("/dev/bpf0", O_RDONLY, 0);
  23666. /* if we opened it, we're good */
  23667. if (fd > 1)
  23668. exit(0);
  23669. /* if we got EBUSY or permission denied it exists, so we're good */
  23670. if (fd < 0 && (errno == EBUSY || errno == 13))
  23671. exit(0);
  23672. /* else suck, no good */
  23673. exit(-1);
  23674. }
  23675. _ACEOF
  23676. rm -f conftest$ac_exeext
  23677. if { (ac_try="$ac_link"
  23678. case "(($ac_try" in
  23679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23680. *) ac_try_echo=$ac_try;;
  23681. esac
  23682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23683. (eval "$ac_link") 2>&5
  23684. ac_status=$?
  23685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23686. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23687. { (case "(($ac_try" in
  23688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23689. *) ac_try_echo=$ac_try;;
  23690. esac
  23691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23692. (eval "$ac_try") 2>&5
  23693. ac_status=$?
  23694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23695. (exit $ac_status); }; }; then
  23696. cat >>confdefs.h <<\_ACEOF
  23697. #define HAVE_BPF 1
  23698. _ACEOF
  23699. { echo "$as_me:$LINENO: result: yes" >&5
  23700. echo "${ECHO_T}yes" >&6; }
  23701. have_bpf=yes
  23702. else
  23703. echo "$as_me: program exited with status $ac_status" >&5
  23704. echo "$as_me: failed program was:" >&5
  23705. sed 's/^/| /' conftest.$ac_ext >&5
  23706. ( exit $ac_status )
  23707. { echo "$as_me:$LINENO: result: no" >&5
  23708. echo "${ECHO_T}no" >&6; }
  23709. fi
  23710. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23711. fi
  23712. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  23713. -a $have_libnet = no -a $have_pf = no ; then
  23714. { { echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&5
  23715. echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&2;}
  23716. { (exit 1); exit 1; }; }
  23717. fi
  23718. enable_tcpbridge=yes
  23719. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  23720. { echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  23721. echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  23722. enable_tcpbridge=no
  23723. fi
  23724. # ADT: Commented for now
  23725. # AM_CONDITIONAL(ENABLE_TCPBRIDGE, [test $enable_tcpbridge = yes])
  23726. { echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  23727. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6; }
  23728. cat >conftest.$ac_ext <<_ACEOF
  23729. /* confdefs.h. */
  23730. _ACEOF
  23731. cat confdefs.h >>conftest.$ac_ext
  23732. cat >>conftest.$ac_ext <<_ACEOF
  23733. /* end confdefs.h. */
  23734. #include "$LPCAPINC"
  23735. int
  23736. main ()
  23737. {
  23738. int foo;
  23739. foo = DLT_LINUX_SLL
  23740. ;
  23741. return 0;
  23742. }
  23743. _ACEOF
  23744. rm -f conftest.$ac_objext
  23745. if { (ac_try="$ac_compile"
  23746. case "(($ac_try" in
  23747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23748. *) ac_try_echo=$ac_try;;
  23749. esac
  23750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23751. (eval "$ac_compile") 2>conftest.er1
  23752. ac_status=$?
  23753. grep -v '^ *+' conftest.er1 >conftest.err
  23754. rm -f conftest.er1
  23755. cat conftest.err >&5
  23756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23757. (exit $ac_status); } && {
  23758. test -z "$ac_c_werror_flag" ||
  23759. test ! -s conftest.err
  23760. } && test -s conftest.$ac_objext; then
  23761. cat >>confdefs.h <<\_ACEOF
  23762. #define HAVE_DLT_LINUX_SLL 1
  23763. _ACEOF
  23764. { echo "$as_me:$LINENO: result: yes" >&5
  23765. echo "${ECHO_T}yes" >&6; }
  23766. else
  23767. echo "$as_me: failed program was:" >&5
  23768. sed 's/^/| /' conftest.$ac_ext >&5
  23769. { echo "$as_me:$LINENO: result: no" >&5
  23770. echo "${ECHO_T}no" >&6; }
  23771. fi
  23772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23773. { echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  23774. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6; }
  23775. cat >conftest.$ac_ext <<_ACEOF
  23776. /* confdefs.h. */
  23777. _ACEOF
  23778. cat confdefs.h >>conftest.$ac_ext
  23779. cat >>conftest.$ac_ext <<_ACEOF
  23780. /* end confdefs.h. */
  23781. #include "$LPCAPINC"
  23782. int
  23783. main ()
  23784. {
  23785. int foo;
  23786. foo = DLT_C_HDLC
  23787. ;
  23788. return 0;
  23789. }
  23790. _ACEOF
  23791. rm -f conftest.$ac_objext
  23792. if { (ac_try="$ac_compile"
  23793. case "(($ac_try" in
  23794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23795. *) ac_try_echo=$ac_try;;
  23796. esac
  23797. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23798. (eval "$ac_compile") 2>conftest.er1
  23799. ac_status=$?
  23800. grep -v '^ *+' conftest.er1 >conftest.err
  23801. rm -f conftest.er1
  23802. cat conftest.err >&5
  23803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23804. (exit $ac_status); } && {
  23805. test -z "$ac_c_werror_flag" ||
  23806. test ! -s conftest.err
  23807. } && test -s conftest.$ac_objext; then
  23808. cat >>confdefs.h <<\_ACEOF
  23809. #define HAVE_DLT_C_HDLC 1
  23810. _ACEOF
  23811. { echo "$as_me:$LINENO: result: yes" >&5
  23812. echo "${ECHO_T}yes" >&6; }
  23813. else
  23814. echo "$as_me: failed program was:" >&5
  23815. sed 's/^/| /' conftest.$ac_ext >&5
  23816. { echo "$as_me:$LINENO: result: no" >&5
  23817. echo "${ECHO_T}no" >&6; }
  23818. fi
  23819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23820. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23821. { echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23822. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6; }
  23823. cat >conftest.$ac_ext <<_ACEOF
  23824. /* confdefs.h. */
  23825. _ACEOF
  23826. cat confdefs.h >>conftest.$ac_ext
  23827. cat >>conftest.$ac_ext <<_ACEOF
  23828. /* end confdefs.h. */
  23829. #include <sys/types.h>
  23830. #include <sys/time.h>
  23831. #include "$PCAP_BPF_H_FILE"
  23832. int
  23833. main ()
  23834. {
  23835. int foo;
  23836. foo = BPF_MAJOR_VERSION;
  23837. ;
  23838. return 0;
  23839. }
  23840. _ACEOF
  23841. rm -f conftest.$ac_objext
  23842. if { (ac_try="$ac_compile"
  23843. case "(($ac_try" in
  23844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23845. *) ac_try_echo=$ac_try;;
  23846. esac
  23847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23848. (eval "$ac_compile") 2>conftest.er1
  23849. ac_status=$?
  23850. grep -v '^ *+' conftest.er1 >conftest.err
  23851. rm -f conftest.er1
  23852. cat conftest.err >&5
  23853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23854. (exit $ac_status); } && {
  23855. test -z "$ac_c_werror_flag" ||
  23856. test ! -s conftest.err
  23857. } && test -s conftest.$ac_objext; then
  23858. cat >>confdefs.h <<\_ACEOF
  23859. #define INCLUDE_PCAP_BPF_HEADER 1
  23860. _ACEOF
  23861. { echo "$as_me:$LINENO: result: yes" >&5
  23862. echo "${ECHO_T}yes" >&6; }
  23863. else
  23864. echo "$as_me: failed program was:" >&5
  23865. sed 's/^/| /' conftest.$ac_ext >&5
  23866. { echo "$as_me:$LINENO: result: no" >&5
  23867. echo "${ECHO_T}no" >&6; }
  23868. fi
  23869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23870. foundbpfheader=no
  23871. { echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  23872. echo $ECHO_N "checking for libpcap bpf header... $ECHO_C" >&6; }
  23873. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  23874. if test -f "${testfile}" -a $foundbpfheader = no ; then
  23875. cat >conftest.$ac_ext <<_ACEOF
  23876. /* confdefs.h. */
  23877. _ACEOF
  23878. cat confdefs.h >>conftest.$ac_ext
  23879. cat >>conftest.$ac_ext <<_ACEOF
  23880. /* end confdefs.h. */
  23881. #include <sys/types.h>
  23882. #include <sys/time.h>
  23883. #include "$testfile"
  23884. int
  23885. main ()
  23886. {
  23887. int foo;
  23888. foo = BPF_MAJOR_VERSION;
  23889. ;
  23890. return 0;
  23891. }
  23892. _ACEOF
  23893. rm -f conftest.$ac_objext
  23894. if { (ac_try="$ac_compile"
  23895. case "(($ac_try" in
  23896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23897. *) ac_try_echo=$ac_try;;
  23898. esac
  23899. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23900. (eval "$ac_compile") 2>conftest.er1
  23901. ac_status=$?
  23902. grep -v '^ *+' conftest.er1 >conftest.err
  23903. rm -f conftest.er1
  23904. cat conftest.err >&5
  23905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23906. (exit $ac_status); } && {
  23907. test -z "$ac_c_werror_flag" ||
  23908. test ! -s conftest.err
  23909. } && test -s conftest.$ac_objext; then
  23910. foundbpfheader=yes
  23911. PCAP_BPF_H_FILE=$testfile
  23912. cat >>confdefs.h <<\_ACEOF
  23913. #define INCLUDE_PCAP_BPF_HEADER 1
  23914. _ACEOF
  23915. { echo "$as_me:$LINENO: result: $testfile" >&5
  23916. echo "${ECHO_T}$testfile" >&6; }
  23917. else
  23918. echo "$as_me: failed program was:" >&5
  23919. sed 's/^/| /' conftest.$ac_ext >&5
  23920. { echo "$as_me:$LINENO: result: no" >&5
  23921. echo "${ECHO_T}no" >&6; }
  23922. fi
  23923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23924. fi
  23925. done
  23926. LIBS="$OLDLIBS"
  23927. CFLAGS="$OLDCFLAGS"
  23928. pcapnav_ver=no
  23929. pcncfg=no
  23930. # Check whether --with-pcapnav-config was given.
  23931. if test "${with_pcapnav_config+set}" = set; then
  23932. withval=$with_pcapnav_config; { echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23933. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6; }
  23934. if test -x $withval ; then
  23935. pcncfg=$withval
  23936. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23937. echo "${ECHO_T}$pcncfg" >&6; }
  23938. elif test x$withval = xno ; then
  23939. { echo "$as_me:$LINENO: result: no" >&5
  23940. echo "${ECHO_T}no" >&6; }
  23941. else
  23942. { echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23943. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6; }
  23944. fi
  23945. else
  23946. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23947. set dummy pcapnav-config; ac_word=$2
  23948. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23949. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23950. if test "${ac_cv_path_pcncfg+set}" = set; then
  23951. echo $ECHO_N "(cached) $ECHO_C" >&6
  23952. else
  23953. case $pcncfg in
  23954. [\\/]* | ?:[\\/]*)
  23955. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23956. ;;
  23957. *)
  23958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23959. for as_dir in $PATH
  23960. do
  23961. IFS=$as_save_IFS
  23962. test -z "$as_dir" && as_dir=.
  23963. for ac_exec_ext in '' $ac_executable_extensions; do
  23964. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23965. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23966. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23967. break 2
  23968. fi
  23969. done
  23970. done
  23971. IFS=$as_save_IFS
  23972. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23973. ;;
  23974. esac
  23975. fi
  23976. pcncfg=$ac_cv_path_pcncfg
  23977. if test -n "$pcncfg"; then
  23978. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23979. echo "${ECHO_T}$pcncfg" >&6; }
  23980. else
  23981. { echo "$as_me:$LINENO: result: no" >&5
  23982. echo "${ECHO_T}no" >&6; }
  23983. fi
  23984. fi
  23985. if test $pcncfg != no ; then
  23986. LNAVLIB=`$pcncfg --libs`
  23987. LNAV_CFLAGS=`$pcncfg --cflags`
  23988. PCAPNAV_VERSION=`$pcncfg --version`
  23989. cat >>confdefs.h <<_ACEOF
  23990. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23991. _ACEOF
  23992. { echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23993. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6; }
  23994. if test "$cross_compiling" = yes; then
  23995. libpcapnav_ver=no
  23996. else
  23997. cat >conftest.$ac_ext <<_ACEOF
  23998. /* confdefs.h. */
  23999. _ACEOF
  24000. cat confdefs.h >>conftest.$ac_ext
  24001. cat >>conftest.$ac_ext <<_ACEOF
  24002. /* end confdefs.h. */
  24003. #include <string.h>
  24004. #define PCAPNAV_TEST "0.4"
  24005. /*
  24006. * simple proggy to test the version of libpcapnav
  24007. * returns zero if version >= 0.4
  24008. * or one otherwise
  24009. */
  24010. int
  24011. main (int argc, char *argv[])
  24012. {
  24013. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  24014. exit(0);
  24015. exit(1);
  24016. }
  24017. _ACEOF
  24018. rm -f conftest$ac_exeext
  24019. if { (ac_try="$ac_link"
  24020. case "(($ac_try" in
  24021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24022. *) ac_try_echo=$ac_try;;
  24023. esac
  24024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24025. (eval "$ac_link") 2>&5
  24026. ac_status=$?
  24027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24028. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24029. { (case "(($ac_try" in
  24030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24031. *) ac_try_echo=$ac_try;;
  24032. esac
  24033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24034. (eval "$ac_try") 2>&5
  24035. ac_status=$?
  24036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24037. (exit $ac_status); }; }; then
  24038. libpcapnav_ver=yes
  24039. { echo "$as_me:$LINENO: result: >= 0.4" >&5
  24040. echo "${ECHO_T}>= 0.4" >&6; }
  24041. else
  24042. echo "$as_me: program exited with status $ac_status" >&5
  24043. echo "$as_me: failed program was:" >&5
  24044. sed 's/^/| /' conftest.$ac_ext >&5
  24045. ( exit $ac_status )
  24046. libpcapnav_ver=no
  24047. { echo "$as_me:$LINENO: result: < 0.4" >&5
  24048. echo "${ECHO_T}< 0.4" >&6; }
  24049. fi
  24050. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24051. fi
  24052. if test x$libpcapnav_ver = xno ; then
  24053. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  24054. Please upgrade to version 0.4 or better.
  24055. Disabling offset jump feature." >&5
  24056. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  24057. Please upgrade to version 0.4 or better.
  24058. Disabling offset jump feature." >&2;}
  24059. else
  24060. cat >>confdefs.h <<\_ACEOF
  24061. #define HAVE_PCAPNAV 1
  24062. _ACEOF
  24063. fi
  24064. fi # checking pcapnav version
  24065. { echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  24066. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6; }
  24067. if test "${unaligned_fail+set}" = set; then
  24068. echo $ECHO_N "(cached) $ECHO_C" >&6
  24069. else
  24070. case "$host_cpu" in
  24071. # XXX: should also check that they don't do weird things (like on arm)
  24072. alpha*|arm*|hp*|mips*|sparc*|ia64)
  24073. unaligned_fail=yes
  24074. ;;
  24075. *)
  24076. cat >conftest.c <<EOF
  24077. #include <sys/types.h>
  24078. #include <sys/wait.h>
  24079. #include <stdio.h>
  24080. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  24081. main() {
  24082. unsigned int i;
  24083. pid_t pid;
  24084. int status;
  24085. /* avoid "core dumped" message */
  24086. pid = fork();
  24087. if (pid < 0)
  24088. exit(2);
  24089. if (pid > 0) {
  24090. /* parent */
  24091. pid = waitpid(pid, &status, 0);
  24092. if (pid < 0)
  24093. exit(3);
  24094. exit(!WIFEXITED(status));
  24095. }
  24096. /* child */
  24097. i = *(unsigned int *)&a[1];
  24098. printf("%d\n", i);
  24099. exit(0);
  24100. }
  24101. EOF
  24102. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  24103. conftest.c $LIBS >/dev/null 2>&1
  24104. if test ! -x conftest ; then
  24105. unaligned_fail=yes
  24106. else
  24107. ./conftest >conftest.out
  24108. if test ! -s conftest.out ; then
  24109. unaligned_fail=yes
  24110. else
  24111. unaligned_fail=no
  24112. fi
  24113. fi
  24114. rm -f conftest* core core.conftest
  24115. ;;
  24116. esac
  24117. fi
  24118. { echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  24119. echo "${ECHO_T}$unaligned_fail" >&6; }
  24120. if test $unaligned_fail = yes ; then
  24121. cat >>confdefs.h <<\_ACEOF
  24122. #define FORCE_ALIGN 1
  24123. _ACEOF
  24124. fi
  24125. tcpdump_path=no
  24126. # Check whether --with-tcpdump was given.
  24127. if test "${with_tcpdump+set}" = set; then
  24128. withval=$with_tcpdump; if test -x $withval ; then
  24129. tcpdump_path=$withval
  24130. { echo "$as_me:$LINENO: result: Using tcpdump in $tcpdump_path" >&5
  24131. echo "${ECHO_T}Using tcpdump in $tcpdump_path" >&6; }
  24132. else
  24133. { echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  24134. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6; }
  24135. fi
  24136. else
  24137. # Extract the first word of "tcpdump", so it can be a program name with args.
  24138. set dummy tcpdump; ac_word=$2
  24139. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  24140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  24141. if test "${ac_cv_path_tcpdump_path+set}" = set; then
  24142. echo $ECHO_N "(cached) $ECHO_C" >&6
  24143. else
  24144. case $tcpdump_path in
  24145. [\\/]* | ?:[\\/]*)
  24146. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  24147. ;;
  24148. *)
  24149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24150. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  24151. for as_dir in $as_dummy
  24152. do
  24153. IFS=$as_save_IFS
  24154. test -z "$as_dir" && as_dir=.
  24155. for ac_exec_ext in '' $ac_executable_extensions; do
  24156. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24157. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  24158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24159. break 2
  24160. fi
  24161. done
  24162. done
  24163. IFS=$as_save_IFS
  24164. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  24165. ;;
  24166. esac
  24167. fi
  24168. tcpdump_path=$ac_cv_path_tcpdump_path
  24169. if test -n "$tcpdump_path"; then
  24170. { echo "$as_me:$LINENO: result: $tcpdump_path" >&5
  24171. echo "${ECHO_T}$tcpdump_path" >&6; }
  24172. else
  24173. { echo "$as_me:$LINENO: result: no" >&5
  24174. echo "${ECHO_T}no" >&6; }
  24175. fi
  24176. fi
  24177. if test "$tcpdump_path" = "no"; then
  24178. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24179. Disabling --verbose" >&5
  24180. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  24181. Disabling --verbose" >&2;}
  24182. else
  24183. cat >>confdefs.h <<\_ACEOF
  24184. #define HAVE_TCPDUMP 1
  24185. _ACEOF
  24186. cat >>confdefs.h <<_ACEOF
  24187. #define TCPDUMP_BINARY "$tcpdump_path"
  24188. _ACEOF
  24189. fi
  24190. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  24191. ENABLE_TCPDUMP_TRUE=
  24192. ENABLE_TCPDUMP_FALSE='#'
  24193. else
  24194. ENABLE_TCPDUMP_TRUE='#'
  24195. ENABLE_TCPDUMP_FALSE=
  24196. fi
  24197. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  24198. cat >>confdefs.h <<\_ACEOF
  24199. #define ENABLE_VERBOSE 1
  24200. _ACEOF
  24201. else
  24202. { echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  24203. echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  24204. fi
  24205. { echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  24206. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6; }
  24207. if test "$host" != "$build" ; then
  24208. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  24209. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  24210. fi
  24211. # Check whether --with-testnic was given.
  24212. if test "${with_testnic+set}" = set; then
  24213. withval=$with_testnic; nic1=$withval
  24214. nic2=$withval
  24215. { echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  24216. echo "${ECHO_T}Using --with-testnic=$withval" >&6; }
  24217. else
  24218. disable_pcap_findalldevs=no
  24219. case $host in
  24220. *-*-linux*)
  24221. nic1=eth0
  24222. nic2=eth0
  24223. { echo "$as_me:$LINENO: result: Linux" >&5
  24224. echo "${ECHO_T}Linux" >&6; }
  24225. ;;
  24226. *-*-solaris*)
  24227. nic1=hme0
  24228. nic2=hme0
  24229. { echo "$as_me:$LINENO: result: Solaris" >&5
  24230. echo "${ECHO_T}Solaris" >&6; }
  24231. ;;
  24232. *-*-sunos*)
  24233. nic1=hme0
  24234. nic2=hme0
  24235. { echo "$as_me:$LINENO: result: SunOS" >&5
  24236. echo "${ECHO_T}SunOS" >&6; }
  24237. ;;
  24238. *-apple-darwin*)
  24239. nic1=en0
  24240. nic2=en0
  24241. if test x$libpcap_version_096 = xno ; then
  24242. disable_pcap_findalldevs=yes
  24243. fi
  24244. { echo "$as_me:$LINENO: result: Apple OS X" >&5
  24245. echo "${ECHO_T}Apple OS X" >&6; }
  24246. ;;
  24247. *-*-openbsd*)
  24248. nic1=xl0
  24249. nic2=xl0
  24250. { echo "$as_me:$LINENO: result: OpenBSD" >&5
  24251. echo "${ECHO_T}OpenBSD" >&6; }
  24252. ;;
  24253. *-*-cygwin)
  24254. { echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  24255. echo "${ECHO_T}Win32/Cygwin" >&6; }
  24256. nic1=%0
  24257. nic2=%0
  24258. ;;
  24259. *)
  24260. { echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  24261. echo "${ECHO_T}$host is unknown! Using first non-loopback interface" >&6; }
  24262. nic1=%0
  24263. nic2=%0
  24264. ;;
  24265. esac
  24266. fi
  24267. # Check whether --with-testnic2 was given.
  24268. if test "${with_testnic2+set}" = set; then
  24269. withval=$with_testnic2; nic2=$withval
  24270. fi
  24271. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  24272. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  24273. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  24274. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  24275. { echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  24276. echo $ECHO_N "checking if it's ok to use pcap_findalldevs()... $ECHO_C" >&6; }
  24277. if test x$disable_pcap_findalldevs = xno ; then
  24278. cat >>confdefs.h <<\_ACEOF
  24279. #define ENABLE_PCAP_FINDALLDEVS 1
  24280. _ACEOF
  24281. { echo "$as_me:$LINENO: result: yes" >&5
  24282. echo "${ECHO_T}yes" >&6; }
  24283. else
  24284. { echo "$as_me:$LINENO: result: no" >&5
  24285. echo "${ECHO_T}no" >&6; }
  24286. fi
  24287. case "${enable_local_libopts+set}" in
  24288. set) ;;
  24289. *) enable_local_libopts=yes ;;
  24290. esac
  24291. case "${enable_libopts_install+set}" in
  24292. set) ;;
  24293. *) enable_libopts_install=no ;;
  24294. esac
  24295. NEED_LIBOPTS_DIR=''
  24296. LIBOPTS_DIR=libopts
  24297. # Check whether --enable-local-libopts was given.
  24298. if test "${enable_local_libopts+set}" = set; then
  24299. enableval=$enable_local_libopts;
  24300. if test x$enableval = xyes ; then
  24301. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  24302. echo "$as_me: Using supplied libopts tearoff" >&6;}
  24303. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24304. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24305. NEED_LIBOPTS_DIR=true
  24306. fi
  24307. fi
  24308. # Check whether --enable-libopts-install was given.
  24309. if test "${enable_libopts_install+set}" = set; then
  24310. enableval=$enable_libopts_install;
  24311. fi
  24312. if test "X${enable_libopts_install}" != Xno; then
  24313. INSTALL_LIBOPTS_TRUE=
  24314. INSTALL_LIBOPTS_FALSE='#'
  24315. else
  24316. INSTALL_LIBOPTS_TRUE='#'
  24317. INSTALL_LIBOPTS_FALSE=
  24318. fi
  24319. if test -z "${NEED_LIBOPTS_DIR}" ; then
  24320. { echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  24321. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6; }
  24322. # Check whether --with-autoopts-config was given.
  24323. if test "${with_autoopts_config+set}" = set; then
  24324. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  24325. else
  24326. { echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  24327. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6; }
  24328. if test "${lo_cv_with_autoopts_config+set}" = set; then
  24329. echo $ECHO_N "(cached) $ECHO_C" >&6
  24330. else
  24331. if autoopts-config --help 2>/dev/null 1>&2
  24332. then lo_cv_with_autoopts_config=autoopts-config
  24333. elif libopts-config --help 2>/dev/null 1>&2
  24334. then lo_cv_with_autoopts_config=libopts-config
  24335. else lo_cv_with_autoopts_config=no ; fi
  24336. fi
  24337. { echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  24338. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6; }
  24339. fi
  24340. # end of AC_ARG_WITH
  24341. if test "${lo_cv_test_autoopts+set}" = set; then
  24342. echo $ECHO_N "(cached) $ECHO_C" >&6
  24343. else
  24344. if test -z "${lo_cv_with_autoopts_config}" \
  24345. -o X"${lo_cv_with_autoopts_config}" = Xno
  24346. then
  24347. if autoopts-config --help 2>/dev/null 1>&2
  24348. then lo_cv_with_autoopts_config=autoopts-config
  24349. elif libopts-config --help 2>/dev/null 1>&2
  24350. then lo_cv_with_autoopts_config=libopts-config
  24351. else lo_cv_with_autoopts_config=false ; fi
  24352. fi
  24353. lo_cv_test_autoopts=`
  24354. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  24355. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  24356. then lo_cv_test_autoopts=no ; fi
  24357. fi
  24358. # end of CACHE_VAL
  24359. { echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  24360. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6; }
  24361. if test "X${lo_cv_test_autoopts}" != Xno
  24362. then
  24363. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  24364. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  24365. else
  24366. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24367. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24368. NEED_LIBOPTS_DIR=true
  24369. fi
  24370. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  24371. if test -n "${NEED_LIBOPTS_DIR}"; then
  24372. NEED_LIBOPTS_TRUE=
  24373. NEED_LIBOPTS_FALSE='#'
  24374. else
  24375. NEED_LIBOPTS_TRUE='#'
  24376. NEED_LIBOPTS_FALSE=
  24377. fi
  24378. LIBOPTS_DIR=libopts
  24379. ac_config_files="$ac_config_files libopts/Makefile"
  24380. if test -n "${NEED_LIBOPTS_DIR}" ; then
  24381. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24382. # =================
  24383. # AC_HEADER_STDC
  24384. # =================
  24385. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24386. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  24387. if test "${ac_cv_header_stdc+set}" = set; then
  24388. echo $ECHO_N "(cached) $ECHO_C" >&6
  24389. else
  24390. cat >conftest.$ac_ext <<_ACEOF
  24391. /* confdefs.h. */
  24392. _ACEOF
  24393. cat confdefs.h >>conftest.$ac_ext
  24394. cat >>conftest.$ac_ext <<_ACEOF
  24395. /* end confdefs.h. */
  24396. #include <stdlib.h>
  24397. #include <stdarg.h>
  24398. #include <string.h>
  24399. #include <float.h>
  24400. int
  24401. main ()
  24402. {
  24403. ;
  24404. return 0;
  24405. }
  24406. _ACEOF
  24407. rm -f conftest.$ac_objext
  24408. if { (ac_try="$ac_compile"
  24409. case "(($ac_try" in
  24410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24411. *) ac_try_echo=$ac_try;;
  24412. esac
  24413. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24414. (eval "$ac_compile") 2>conftest.er1
  24415. ac_status=$?
  24416. grep -v '^ *+' conftest.er1 >conftest.err
  24417. rm -f conftest.er1
  24418. cat conftest.err >&5
  24419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24420. (exit $ac_status); } && {
  24421. test -z "$ac_c_werror_flag" ||
  24422. test ! -s conftest.err
  24423. } && test -s conftest.$ac_objext; then
  24424. ac_cv_header_stdc=yes
  24425. else
  24426. echo "$as_me: failed program was:" >&5
  24427. sed 's/^/| /' conftest.$ac_ext >&5
  24428. ac_cv_header_stdc=no
  24429. fi
  24430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24431. if test $ac_cv_header_stdc = yes; then
  24432. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24433. cat >conftest.$ac_ext <<_ACEOF
  24434. /* confdefs.h. */
  24435. _ACEOF
  24436. cat confdefs.h >>conftest.$ac_ext
  24437. cat >>conftest.$ac_ext <<_ACEOF
  24438. /* end confdefs.h. */
  24439. #include <string.h>
  24440. _ACEOF
  24441. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24442. $EGREP "memchr" >/dev/null 2>&1; then
  24443. :
  24444. else
  24445. ac_cv_header_stdc=no
  24446. fi
  24447. rm -f conftest*
  24448. fi
  24449. if test $ac_cv_header_stdc = yes; then
  24450. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24451. cat >conftest.$ac_ext <<_ACEOF
  24452. /* confdefs.h. */
  24453. _ACEOF
  24454. cat confdefs.h >>conftest.$ac_ext
  24455. cat >>conftest.$ac_ext <<_ACEOF
  24456. /* end confdefs.h. */
  24457. #include <stdlib.h>
  24458. _ACEOF
  24459. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24460. $EGREP "free" >/dev/null 2>&1; then
  24461. :
  24462. else
  24463. ac_cv_header_stdc=no
  24464. fi
  24465. rm -f conftest*
  24466. fi
  24467. if test $ac_cv_header_stdc = yes; then
  24468. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24469. if test "$cross_compiling" = yes; then
  24470. :
  24471. else
  24472. cat >conftest.$ac_ext <<_ACEOF
  24473. /* confdefs.h. */
  24474. _ACEOF
  24475. cat confdefs.h >>conftest.$ac_ext
  24476. cat >>conftest.$ac_ext <<_ACEOF
  24477. /* end confdefs.h. */
  24478. #include <ctype.h>
  24479. #include <stdlib.h>
  24480. #if ((' ' & 0x0FF) == 0x020)
  24481. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24482. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24483. #else
  24484. # define ISLOWER(c) \
  24485. (('a' <= (c) && (c) <= 'i') \
  24486. || ('j' <= (c) && (c) <= 'r') \
  24487. || ('s' <= (c) && (c) <= 'z'))
  24488. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24489. #endif
  24490. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24491. int
  24492. main ()
  24493. {
  24494. int i;
  24495. for (i = 0; i < 256; i++)
  24496. if (XOR (islower (i), ISLOWER (i))
  24497. || toupper (i) != TOUPPER (i))
  24498. return 2;
  24499. return 0;
  24500. }
  24501. _ACEOF
  24502. rm -f conftest$ac_exeext
  24503. if { (ac_try="$ac_link"
  24504. case "(($ac_try" in
  24505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24506. *) ac_try_echo=$ac_try;;
  24507. esac
  24508. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24509. (eval "$ac_link") 2>&5
  24510. ac_status=$?
  24511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24512. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24513. { (case "(($ac_try" in
  24514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24515. *) ac_try_echo=$ac_try;;
  24516. esac
  24517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24518. (eval "$ac_try") 2>&5
  24519. ac_status=$?
  24520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24521. (exit $ac_status); }; }; then
  24522. :
  24523. else
  24524. echo "$as_me: program exited with status $ac_status" >&5
  24525. echo "$as_me: failed program was:" >&5
  24526. sed 's/^/| /' conftest.$ac_ext >&5
  24527. ( exit $ac_status )
  24528. ac_cv_header_stdc=no
  24529. fi
  24530. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24531. fi
  24532. fi
  24533. fi
  24534. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24535. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  24536. if test $ac_cv_header_stdc = yes; then
  24537. cat >>confdefs.h <<\_ACEOF
  24538. #define STDC_HEADERS 1
  24539. _ACEOF
  24540. fi
  24541. # =================
  24542. # AC_HEADER_DIRENT
  24543. # =================
  24544. ac_header_dirent=no
  24545. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24546. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24547. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24548. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  24549. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24550. echo $ECHO_N "(cached) $ECHO_C" >&6
  24551. else
  24552. cat >conftest.$ac_ext <<_ACEOF
  24553. /* confdefs.h. */
  24554. _ACEOF
  24555. cat confdefs.h >>conftest.$ac_ext
  24556. cat >>conftest.$ac_ext <<_ACEOF
  24557. /* end confdefs.h. */
  24558. #include <sys/types.h>
  24559. #include <$ac_hdr>
  24560. int
  24561. main ()
  24562. {
  24563. if ((DIR *) 0)
  24564. return 0;
  24565. ;
  24566. return 0;
  24567. }
  24568. _ACEOF
  24569. rm -f conftest.$ac_objext
  24570. if { (ac_try="$ac_compile"
  24571. case "(($ac_try" in
  24572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24573. *) ac_try_echo=$ac_try;;
  24574. esac
  24575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24576. (eval "$ac_compile") 2>conftest.er1
  24577. ac_status=$?
  24578. grep -v '^ *+' conftest.er1 >conftest.err
  24579. rm -f conftest.er1
  24580. cat conftest.err >&5
  24581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24582. (exit $ac_status); } && {
  24583. test -z "$ac_c_werror_flag" ||
  24584. test ! -s conftest.err
  24585. } && test -s conftest.$ac_objext; then
  24586. eval "$as_ac_Header=yes"
  24587. else
  24588. echo "$as_me: failed program was:" >&5
  24589. sed 's/^/| /' conftest.$ac_ext >&5
  24590. eval "$as_ac_Header=no"
  24591. fi
  24592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24593. fi
  24594. ac_res=`eval echo '${'$as_ac_Header'}'`
  24595. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24596. echo "${ECHO_T}$ac_res" >&6; }
  24597. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24598. cat >>confdefs.h <<_ACEOF
  24599. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24600. _ACEOF
  24601. ac_header_dirent=$ac_hdr; break
  24602. fi
  24603. done
  24604. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24605. if test $ac_header_dirent = dirent.h; then
  24606. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24607. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24608. if test "${ac_cv_search_opendir+set}" = set; then
  24609. echo $ECHO_N "(cached) $ECHO_C" >&6
  24610. else
  24611. ac_func_search_save_LIBS=$LIBS
  24612. cat >conftest.$ac_ext <<_ACEOF
  24613. /* confdefs.h. */
  24614. _ACEOF
  24615. cat confdefs.h >>conftest.$ac_ext
  24616. cat >>conftest.$ac_ext <<_ACEOF
  24617. /* end confdefs.h. */
  24618. /* Override any GCC internal prototype to avoid an error.
  24619. Use char because int might match the return type of a GCC
  24620. builtin and then its argument prototype would still apply. */
  24621. #ifdef __cplusplus
  24622. extern "C"
  24623. #endif
  24624. char opendir ();
  24625. int
  24626. main ()
  24627. {
  24628. return opendir ();
  24629. ;
  24630. return 0;
  24631. }
  24632. _ACEOF
  24633. for ac_lib in '' dir; do
  24634. if test -z "$ac_lib"; then
  24635. ac_res="none required"
  24636. else
  24637. ac_res=-l$ac_lib
  24638. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24639. fi
  24640. rm -f conftest.$ac_objext conftest$ac_exeext
  24641. if { (ac_try="$ac_link"
  24642. case "(($ac_try" in
  24643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24644. *) ac_try_echo=$ac_try;;
  24645. esac
  24646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24647. (eval "$ac_link") 2>conftest.er1
  24648. ac_status=$?
  24649. grep -v '^ *+' conftest.er1 >conftest.err
  24650. rm -f conftest.er1
  24651. cat conftest.err >&5
  24652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24653. (exit $ac_status); } && {
  24654. test -z "$ac_c_werror_flag" ||
  24655. test ! -s conftest.err
  24656. } && test -s conftest$ac_exeext &&
  24657. $as_test_x conftest$ac_exeext; then
  24658. ac_cv_search_opendir=$ac_res
  24659. else
  24660. echo "$as_me: failed program was:" >&5
  24661. sed 's/^/| /' conftest.$ac_ext >&5
  24662. fi
  24663. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24664. conftest$ac_exeext
  24665. if test "${ac_cv_search_opendir+set}" = set; then
  24666. break
  24667. fi
  24668. done
  24669. if test "${ac_cv_search_opendir+set}" = set; then
  24670. :
  24671. else
  24672. ac_cv_search_opendir=no
  24673. fi
  24674. rm conftest.$ac_ext
  24675. LIBS=$ac_func_search_save_LIBS
  24676. fi
  24677. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24678. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24679. ac_res=$ac_cv_search_opendir
  24680. if test "$ac_res" != no; then
  24681. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24682. fi
  24683. else
  24684. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24685. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24686. if test "${ac_cv_search_opendir+set}" = set; then
  24687. echo $ECHO_N "(cached) $ECHO_C" >&6
  24688. else
  24689. ac_func_search_save_LIBS=$LIBS
  24690. cat >conftest.$ac_ext <<_ACEOF
  24691. /* confdefs.h. */
  24692. _ACEOF
  24693. cat confdefs.h >>conftest.$ac_ext
  24694. cat >>conftest.$ac_ext <<_ACEOF
  24695. /* end confdefs.h. */
  24696. /* Override any GCC internal prototype to avoid an error.
  24697. Use char because int might match the return type of a GCC
  24698. builtin and then its argument prototype would still apply. */
  24699. #ifdef __cplusplus
  24700. extern "C"
  24701. #endif
  24702. char opendir ();
  24703. int
  24704. main ()
  24705. {
  24706. return opendir ();
  24707. ;
  24708. return 0;
  24709. }
  24710. _ACEOF
  24711. for ac_lib in '' x; do
  24712. if test -z "$ac_lib"; then
  24713. ac_res="none required"
  24714. else
  24715. ac_res=-l$ac_lib
  24716. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24717. fi
  24718. rm -f conftest.$ac_objext conftest$ac_exeext
  24719. if { (ac_try="$ac_link"
  24720. case "(($ac_try" in
  24721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24722. *) ac_try_echo=$ac_try;;
  24723. esac
  24724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24725. (eval "$ac_link") 2>conftest.er1
  24726. ac_status=$?
  24727. grep -v '^ *+' conftest.er1 >conftest.err
  24728. rm -f conftest.er1
  24729. cat conftest.err >&5
  24730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24731. (exit $ac_status); } && {
  24732. test -z "$ac_c_werror_flag" ||
  24733. test ! -s conftest.err
  24734. } && test -s conftest$ac_exeext &&
  24735. $as_test_x conftest$ac_exeext; then
  24736. ac_cv_search_opendir=$ac_res
  24737. else
  24738. echo "$as_me: failed program was:" >&5
  24739. sed 's/^/| /' conftest.$ac_ext >&5
  24740. fi
  24741. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24742. conftest$ac_exeext
  24743. if test "${ac_cv_search_opendir+set}" = set; then
  24744. break
  24745. fi
  24746. done
  24747. if test "${ac_cv_search_opendir+set}" = set; then
  24748. :
  24749. else
  24750. ac_cv_search_opendir=no
  24751. fi
  24752. rm conftest.$ac_ext
  24753. LIBS=$ac_func_search_save_LIBS
  24754. fi
  24755. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24756. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24757. ac_res=$ac_cv_search_opendir
  24758. if test "$ac_res" != no; then
  24759. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24760. fi
  24761. fi
  24762. # =================
  24763. # AC_CHECK_HEADERS
  24764. # =================
  24765. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24766. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24767. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  24768. utime.h sysexits.h
  24769. do
  24770. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24771. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24772. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24773. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24774. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24775. echo $ECHO_N "(cached) $ECHO_C" >&6
  24776. fi
  24777. ac_res=`eval echo '${'$as_ac_Header'}'`
  24778. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24779. echo "${ECHO_T}$ac_res" >&6; }
  24780. else
  24781. # Is the header compilable?
  24782. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24783. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24784. cat >conftest.$ac_ext <<_ACEOF
  24785. /* confdefs.h. */
  24786. _ACEOF
  24787. cat confdefs.h >>conftest.$ac_ext
  24788. cat >>conftest.$ac_ext <<_ACEOF
  24789. /* end confdefs.h. */
  24790. $ac_includes_default
  24791. #include <$ac_header>
  24792. _ACEOF
  24793. rm -f conftest.$ac_objext
  24794. if { (ac_try="$ac_compile"
  24795. case "(($ac_try" in
  24796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24797. *) ac_try_echo=$ac_try;;
  24798. esac
  24799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24800. (eval "$ac_compile") 2>conftest.er1
  24801. ac_status=$?
  24802. grep -v '^ *+' conftest.er1 >conftest.err
  24803. rm -f conftest.er1
  24804. cat conftest.err >&5
  24805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24806. (exit $ac_status); } && {
  24807. test -z "$ac_c_werror_flag" ||
  24808. test ! -s conftest.err
  24809. } && test -s conftest.$ac_objext; then
  24810. ac_header_compiler=yes
  24811. else
  24812. echo "$as_me: failed program was:" >&5
  24813. sed 's/^/| /' conftest.$ac_ext >&5
  24814. ac_header_compiler=no
  24815. fi
  24816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24817. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24818. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24819. # Is the header present?
  24820. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24821. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24822. cat >conftest.$ac_ext <<_ACEOF
  24823. /* confdefs.h. */
  24824. _ACEOF
  24825. cat confdefs.h >>conftest.$ac_ext
  24826. cat >>conftest.$ac_ext <<_ACEOF
  24827. /* end confdefs.h. */
  24828. #include <$ac_header>
  24829. _ACEOF
  24830. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24831. case "(($ac_try" in
  24832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24833. *) ac_try_echo=$ac_try;;
  24834. esac
  24835. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24836. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24837. ac_status=$?
  24838. grep -v '^ *+' conftest.er1 >conftest.err
  24839. rm -f conftest.er1
  24840. cat conftest.err >&5
  24841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24842. (exit $ac_status); } >/dev/null && {
  24843. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24844. test ! -s conftest.err
  24845. }; then
  24846. ac_header_preproc=yes
  24847. else
  24848. echo "$as_me: failed program was:" >&5
  24849. sed 's/^/| /' conftest.$ac_ext >&5
  24850. ac_header_preproc=no
  24851. fi
  24852. rm -f conftest.err conftest.$ac_ext
  24853. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24854. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24855. # So? What about this header?
  24856. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24857. yes:no: )
  24858. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24859. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24860. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24861. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24862. ac_header_preproc=yes
  24863. ;;
  24864. no:yes:* )
  24865. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24866. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24867. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24868. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24869. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24870. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24871. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24872. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24873. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24874. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24875. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24876. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24877. ;;
  24878. esac
  24879. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24880. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24881. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24882. echo $ECHO_N "(cached) $ECHO_C" >&6
  24883. else
  24884. eval "$as_ac_Header=\$ac_header_preproc"
  24885. fi
  24886. ac_res=`eval echo '${'$as_ac_Header'}'`
  24887. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24888. echo "${ECHO_T}$ac_res" >&6; }
  24889. fi
  24890. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24891. cat >>confdefs.h <<_ACEOF
  24892. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24893. _ACEOF
  24894. fi
  24895. done
  24896. # --------------------------------------------
  24897. # Verify certain entries from AC_CHECK_HEADERS
  24898. # --------------------------------------------
  24899. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24900. string errno stdlib memory setjmp
  24901. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24902. test "${as_ac_var}" = set || \
  24903. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24904. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24905. { (exit 1); exit 1; }; }
  24906. done
  24907. # ================================================
  24908. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24909. # if varargs.h is present define HAVE_VARARGS_H.
  24910. # ================================================
  24911. for ac_header in stdarg.h varargs.h
  24912. do
  24913. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24914. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24915. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24916. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24917. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24918. echo $ECHO_N "(cached) $ECHO_C" >&6
  24919. fi
  24920. ac_res=`eval echo '${'$as_ac_Header'}'`
  24921. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24922. echo "${ECHO_T}$ac_res" >&6; }
  24923. else
  24924. # Is the header compilable?
  24925. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24926. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24927. cat >conftest.$ac_ext <<_ACEOF
  24928. /* confdefs.h. */
  24929. _ACEOF
  24930. cat confdefs.h >>conftest.$ac_ext
  24931. cat >>conftest.$ac_ext <<_ACEOF
  24932. /* end confdefs.h. */
  24933. $ac_includes_default
  24934. #include <$ac_header>
  24935. _ACEOF
  24936. rm -f conftest.$ac_objext
  24937. if { (ac_try="$ac_compile"
  24938. case "(($ac_try" in
  24939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24940. *) ac_try_echo=$ac_try;;
  24941. esac
  24942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24943. (eval "$ac_compile") 2>conftest.er1
  24944. ac_status=$?
  24945. grep -v '^ *+' conftest.er1 >conftest.err
  24946. rm -f conftest.er1
  24947. cat conftest.err >&5
  24948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24949. (exit $ac_status); } && {
  24950. test -z "$ac_c_werror_flag" ||
  24951. test ! -s conftest.err
  24952. } && test -s conftest.$ac_objext; then
  24953. ac_header_compiler=yes
  24954. else
  24955. echo "$as_me: failed program was:" >&5
  24956. sed 's/^/| /' conftest.$ac_ext >&5
  24957. ac_header_compiler=no
  24958. fi
  24959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24960. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24961. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24962. # Is the header present?
  24963. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24964. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24965. cat >conftest.$ac_ext <<_ACEOF
  24966. /* confdefs.h. */
  24967. _ACEOF
  24968. cat confdefs.h >>conftest.$ac_ext
  24969. cat >>conftest.$ac_ext <<_ACEOF
  24970. /* end confdefs.h. */
  24971. #include <$ac_header>
  24972. _ACEOF
  24973. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24974. case "(($ac_try" in
  24975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24976. *) ac_try_echo=$ac_try;;
  24977. esac
  24978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24979. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24980. ac_status=$?
  24981. grep -v '^ *+' conftest.er1 >conftest.err
  24982. rm -f conftest.er1
  24983. cat conftest.err >&5
  24984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24985. (exit $ac_status); } >/dev/null && {
  24986. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24987. test ! -s conftest.err
  24988. }; then
  24989. ac_header_preproc=yes
  24990. else
  24991. echo "$as_me: failed program was:" >&5
  24992. sed 's/^/| /' conftest.$ac_ext >&5
  24993. ac_header_preproc=no
  24994. fi
  24995. rm -f conftest.err conftest.$ac_ext
  24996. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24997. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24998. # So? What about this header?
  24999. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25000. yes:no: )
  25001. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25002. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25003. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25004. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25005. ac_header_preproc=yes
  25006. ;;
  25007. no:yes:* )
  25008. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25009. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25010. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25011. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25012. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25013. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25014. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25015. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25016. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25017. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25018. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25019. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25020. ;;
  25021. esac
  25022. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25023. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25024. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25025. echo $ECHO_N "(cached) $ECHO_C" >&6
  25026. else
  25027. eval "$as_ac_Header=\$ac_header_preproc"
  25028. fi
  25029. ac_res=`eval echo '${'$as_ac_Header'}'`
  25030. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25031. echo "${ECHO_T}$ac_res" >&6; }
  25032. fi
  25033. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25034. cat >>confdefs.h <<_ACEOF
  25035. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25036. _ACEOF
  25037. break
  25038. fi
  25039. done
  25040. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25041. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  25042. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  25043. { (exit 1); exit 1; }; }
  25044. fi
  25045. # ================================================
  25046. # Similarly for the string.h and strings.h headers
  25047. # ================================================
  25048. for ac_header in string.h strings.h
  25049. do
  25050. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25051. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25052. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25053. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25054. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25055. echo $ECHO_N "(cached) $ECHO_C" >&6
  25056. fi
  25057. ac_res=`eval echo '${'$as_ac_Header'}'`
  25058. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25059. echo "${ECHO_T}$ac_res" >&6; }
  25060. else
  25061. # Is the header compilable?
  25062. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25063. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25064. cat >conftest.$ac_ext <<_ACEOF
  25065. /* confdefs.h. */
  25066. _ACEOF
  25067. cat confdefs.h >>conftest.$ac_ext
  25068. cat >>conftest.$ac_ext <<_ACEOF
  25069. /* end confdefs.h. */
  25070. $ac_includes_default
  25071. #include <$ac_header>
  25072. _ACEOF
  25073. rm -f conftest.$ac_objext
  25074. if { (ac_try="$ac_compile"
  25075. case "(($ac_try" in
  25076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25077. *) ac_try_echo=$ac_try;;
  25078. esac
  25079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25080. (eval "$ac_compile") 2>conftest.er1
  25081. ac_status=$?
  25082. grep -v '^ *+' conftest.er1 >conftest.err
  25083. rm -f conftest.er1
  25084. cat conftest.err >&5
  25085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25086. (exit $ac_status); } && {
  25087. test -z "$ac_c_werror_flag" ||
  25088. test ! -s conftest.err
  25089. } && test -s conftest.$ac_objext; then
  25090. ac_header_compiler=yes
  25091. else
  25092. echo "$as_me: failed program was:" >&5
  25093. sed 's/^/| /' conftest.$ac_ext >&5
  25094. ac_header_compiler=no
  25095. fi
  25096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25097. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25098. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25099. # Is the header present?
  25100. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25101. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25102. cat >conftest.$ac_ext <<_ACEOF
  25103. /* confdefs.h. */
  25104. _ACEOF
  25105. cat confdefs.h >>conftest.$ac_ext
  25106. cat >>conftest.$ac_ext <<_ACEOF
  25107. /* end confdefs.h. */
  25108. #include <$ac_header>
  25109. _ACEOF
  25110. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25111. case "(($ac_try" in
  25112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25113. *) ac_try_echo=$ac_try;;
  25114. esac
  25115. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25116. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25117. ac_status=$?
  25118. grep -v '^ *+' conftest.er1 >conftest.err
  25119. rm -f conftest.er1
  25120. cat conftest.err >&5
  25121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25122. (exit $ac_status); } >/dev/null && {
  25123. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25124. test ! -s conftest.err
  25125. }; then
  25126. ac_header_preproc=yes
  25127. else
  25128. echo "$as_me: failed program was:" >&5
  25129. sed 's/^/| /' conftest.$ac_ext >&5
  25130. ac_header_preproc=no
  25131. fi
  25132. rm -f conftest.err conftest.$ac_ext
  25133. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25134. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25135. # So? What about this header?
  25136. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25137. yes:no: )
  25138. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25139. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25140. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25141. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25142. ac_header_preproc=yes
  25143. ;;
  25144. no:yes:* )
  25145. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25146. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25147. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25148. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25149. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25150. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25151. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25152. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25153. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25154. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25155. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25156. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25157. ;;
  25158. esac
  25159. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25160. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25161. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25162. echo $ECHO_N "(cached) $ECHO_C" >&6
  25163. else
  25164. eval "$as_ac_Header=\$ac_header_preproc"
  25165. fi
  25166. ac_res=`eval echo '${'$as_ac_Header'}'`
  25167. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25168. echo "${ECHO_T}$ac_res" >&6; }
  25169. fi
  25170. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25171. cat >>confdefs.h <<_ACEOF
  25172. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25173. _ACEOF
  25174. break
  25175. fi
  25176. done
  25177. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25178. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  25179. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  25180. { (exit 1); exit 1; }; }
  25181. fi
  25182. # =====================
  25183. # ...and limits headers
  25184. # =====================
  25185. for ac_header in limits.h sys/limits.h values.h
  25186. do
  25187. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25188. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25189. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25190. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25191. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25192. echo $ECHO_N "(cached) $ECHO_C" >&6
  25193. fi
  25194. ac_res=`eval echo '${'$as_ac_Header'}'`
  25195. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25196. echo "${ECHO_T}$ac_res" >&6; }
  25197. else
  25198. # Is the header compilable?
  25199. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25200. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25201. cat >conftest.$ac_ext <<_ACEOF
  25202. /* confdefs.h. */
  25203. _ACEOF
  25204. cat confdefs.h >>conftest.$ac_ext
  25205. cat >>conftest.$ac_ext <<_ACEOF
  25206. /* end confdefs.h. */
  25207. $ac_includes_default
  25208. #include <$ac_header>
  25209. _ACEOF
  25210. rm -f conftest.$ac_objext
  25211. if { (ac_try="$ac_compile"
  25212. case "(($ac_try" in
  25213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25214. *) ac_try_echo=$ac_try;;
  25215. esac
  25216. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25217. (eval "$ac_compile") 2>conftest.er1
  25218. ac_status=$?
  25219. grep -v '^ *+' conftest.er1 >conftest.err
  25220. rm -f conftest.er1
  25221. cat conftest.err >&5
  25222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25223. (exit $ac_status); } && {
  25224. test -z "$ac_c_werror_flag" ||
  25225. test ! -s conftest.err
  25226. } && test -s conftest.$ac_objext; then
  25227. ac_header_compiler=yes
  25228. else
  25229. echo "$as_me: failed program was:" >&5
  25230. sed 's/^/| /' conftest.$ac_ext >&5
  25231. ac_header_compiler=no
  25232. fi
  25233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25234. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25235. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25236. # Is the header present?
  25237. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25238. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25239. cat >conftest.$ac_ext <<_ACEOF
  25240. /* confdefs.h. */
  25241. _ACEOF
  25242. cat confdefs.h >>conftest.$ac_ext
  25243. cat >>conftest.$ac_ext <<_ACEOF
  25244. /* end confdefs.h. */
  25245. #include <$ac_header>
  25246. _ACEOF
  25247. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25248. case "(($ac_try" in
  25249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25250. *) ac_try_echo=$ac_try;;
  25251. esac
  25252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25253. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25254. ac_status=$?
  25255. grep -v '^ *+' conftest.er1 >conftest.err
  25256. rm -f conftest.er1
  25257. cat conftest.err >&5
  25258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25259. (exit $ac_status); } >/dev/null && {
  25260. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25261. test ! -s conftest.err
  25262. }; then
  25263. ac_header_preproc=yes
  25264. else
  25265. echo "$as_me: failed program was:" >&5
  25266. sed 's/^/| /' conftest.$ac_ext >&5
  25267. ac_header_preproc=no
  25268. fi
  25269. rm -f conftest.err conftest.$ac_ext
  25270. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25271. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25272. # So? What about this header?
  25273. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25274. yes:no: )
  25275. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25276. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25277. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25278. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25279. ac_header_preproc=yes
  25280. ;;
  25281. no:yes:* )
  25282. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25283. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25284. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25285. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25286. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25287. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25288. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25289. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25290. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25291. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25292. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25293. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25294. ;;
  25295. esac
  25296. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25297. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25298. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25299. echo $ECHO_N "(cached) $ECHO_C" >&6
  25300. else
  25301. eval "$as_ac_Header=\$ac_header_preproc"
  25302. fi
  25303. ac_res=`eval echo '${'$as_ac_Header'}'`
  25304. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25305. echo "${ECHO_T}$ac_res" >&6; }
  25306. fi
  25307. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25308. cat >>confdefs.h <<_ACEOF
  25309. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25310. _ACEOF
  25311. break
  25312. fi
  25313. done
  25314. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25315. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  25316. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  25317. { (exit 1); exit 1; }; }
  25318. fi
  25319. # ========================
  25320. # ...and int types headers
  25321. # ========================
  25322. for ac_header in stdint.h inttypes.h
  25323. do
  25324. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25325. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25326. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25327. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25328. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25329. echo $ECHO_N "(cached) $ECHO_C" >&6
  25330. fi
  25331. ac_res=`eval echo '${'$as_ac_Header'}'`
  25332. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25333. echo "${ECHO_T}$ac_res" >&6; }
  25334. else
  25335. # Is the header compilable?
  25336. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25337. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25338. cat >conftest.$ac_ext <<_ACEOF
  25339. /* confdefs.h. */
  25340. _ACEOF
  25341. cat confdefs.h >>conftest.$ac_ext
  25342. cat >>conftest.$ac_ext <<_ACEOF
  25343. /* end confdefs.h. */
  25344. $ac_includes_default
  25345. #include <$ac_header>
  25346. _ACEOF
  25347. rm -f conftest.$ac_objext
  25348. if { (ac_try="$ac_compile"
  25349. case "(($ac_try" in
  25350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25351. *) ac_try_echo=$ac_try;;
  25352. esac
  25353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25354. (eval "$ac_compile") 2>conftest.er1
  25355. ac_status=$?
  25356. grep -v '^ *+' conftest.er1 >conftest.err
  25357. rm -f conftest.er1
  25358. cat conftest.err >&5
  25359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25360. (exit $ac_status); } && {
  25361. test -z "$ac_c_werror_flag" ||
  25362. test ! -s conftest.err
  25363. } && test -s conftest.$ac_objext; then
  25364. ac_header_compiler=yes
  25365. else
  25366. echo "$as_me: failed program was:" >&5
  25367. sed 's/^/| /' conftest.$ac_ext >&5
  25368. ac_header_compiler=no
  25369. fi
  25370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25371. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25372. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25373. # Is the header present?
  25374. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25375. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25376. cat >conftest.$ac_ext <<_ACEOF
  25377. /* confdefs.h. */
  25378. _ACEOF
  25379. cat confdefs.h >>conftest.$ac_ext
  25380. cat >>conftest.$ac_ext <<_ACEOF
  25381. /* end confdefs.h. */
  25382. #include <$ac_header>
  25383. _ACEOF
  25384. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25385. case "(($ac_try" in
  25386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25387. *) ac_try_echo=$ac_try;;
  25388. esac
  25389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25390. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25391. ac_status=$?
  25392. grep -v '^ *+' conftest.er1 >conftest.err
  25393. rm -f conftest.er1
  25394. cat conftest.err >&5
  25395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25396. (exit $ac_status); } >/dev/null && {
  25397. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25398. test ! -s conftest.err
  25399. }; then
  25400. ac_header_preproc=yes
  25401. else
  25402. echo "$as_me: failed program was:" >&5
  25403. sed 's/^/| /' conftest.$ac_ext >&5
  25404. ac_header_preproc=no
  25405. fi
  25406. rm -f conftest.err conftest.$ac_ext
  25407. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25408. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25409. # So? What about this header?
  25410. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25411. yes:no: )
  25412. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25413. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25414. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25415. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25416. ac_header_preproc=yes
  25417. ;;
  25418. no:yes:* )
  25419. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25420. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25421. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25422. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25423. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25424. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25425. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25426. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25427. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25428. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25429. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25430. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25431. ;;
  25432. esac
  25433. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25434. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25435. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25436. echo $ECHO_N "(cached) $ECHO_C" >&6
  25437. else
  25438. eval "$as_ac_Header=\$ac_header_preproc"
  25439. fi
  25440. ac_res=`eval echo '${'$as_ac_Header'}'`
  25441. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25442. echo "${ECHO_T}$ac_res" >&6; }
  25443. fi
  25444. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25445. cat >>confdefs.h <<_ACEOF
  25446. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25447. _ACEOF
  25448. break
  25449. fi
  25450. done
  25451. { echo "$as_me:$LINENO: checking for int8_t" >&5
  25452. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  25453. if test "${ac_cv_type_int8_t+set}" = set; then
  25454. echo $ECHO_N "(cached) $ECHO_C" >&6
  25455. else
  25456. cat >conftest.$ac_ext <<_ACEOF
  25457. /* confdefs.h. */
  25458. _ACEOF
  25459. cat confdefs.h >>conftest.$ac_ext
  25460. cat >>conftest.$ac_ext <<_ACEOF
  25461. /* end confdefs.h. */
  25462. $ac_includes_default
  25463. typedef int8_t ac__type_new_;
  25464. int
  25465. main ()
  25466. {
  25467. if ((ac__type_new_ *) 0)
  25468. return 0;
  25469. if (sizeof (ac__type_new_))
  25470. return 0;
  25471. ;
  25472. return 0;
  25473. }
  25474. _ACEOF
  25475. rm -f conftest.$ac_objext
  25476. if { (ac_try="$ac_compile"
  25477. case "(($ac_try" in
  25478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25479. *) ac_try_echo=$ac_try;;
  25480. esac
  25481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25482. (eval "$ac_compile") 2>conftest.er1
  25483. ac_status=$?
  25484. grep -v '^ *+' conftest.er1 >conftest.err
  25485. rm -f conftest.er1
  25486. cat conftest.err >&5
  25487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25488. (exit $ac_status); } && {
  25489. test -z "$ac_c_werror_flag" ||
  25490. test ! -s conftest.err
  25491. } && test -s conftest.$ac_objext; then
  25492. ac_cv_type_int8_t=yes
  25493. else
  25494. echo "$as_me: failed program was:" >&5
  25495. sed 's/^/| /' conftest.$ac_ext >&5
  25496. ac_cv_type_int8_t=no
  25497. fi
  25498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25499. fi
  25500. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  25501. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  25502. if test $ac_cv_type_int8_t = yes; then
  25503. cat >>confdefs.h <<_ACEOF
  25504. #define HAVE_INT8_T 1
  25505. _ACEOF
  25506. fi
  25507. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  25508. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  25509. if test "${ac_cv_type_uint8_t+set}" = set; then
  25510. echo $ECHO_N "(cached) $ECHO_C" >&6
  25511. else
  25512. cat >conftest.$ac_ext <<_ACEOF
  25513. /* confdefs.h. */
  25514. _ACEOF
  25515. cat confdefs.h >>conftest.$ac_ext
  25516. cat >>conftest.$ac_ext <<_ACEOF
  25517. /* end confdefs.h. */
  25518. $ac_includes_default
  25519. typedef uint8_t ac__type_new_;
  25520. int
  25521. main ()
  25522. {
  25523. if ((ac__type_new_ *) 0)
  25524. return 0;
  25525. if (sizeof (ac__type_new_))
  25526. return 0;
  25527. ;
  25528. return 0;
  25529. }
  25530. _ACEOF
  25531. rm -f conftest.$ac_objext
  25532. if { (ac_try="$ac_compile"
  25533. case "(($ac_try" in
  25534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25535. *) ac_try_echo=$ac_try;;
  25536. esac
  25537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25538. (eval "$ac_compile") 2>conftest.er1
  25539. ac_status=$?
  25540. grep -v '^ *+' conftest.er1 >conftest.err
  25541. rm -f conftest.er1
  25542. cat conftest.err >&5
  25543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25544. (exit $ac_status); } && {
  25545. test -z "$ac_c_werror_flag" ||
  25546. test ! -s conftest.err
  25547. } && test -s conftest.$ac_objext; then
  25548. ac_cv_type_uint8_t=yes
  25549. else
  25550. echo "$as_me: failed program was:" >&5
  25551. sed 's/^/| /' conftest.$ac_ext >&5
  25552. ac_cv_type_uint8_t=no
  25553. fi
  25554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25555. fi
  25556. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  25557. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  25558. if test $ac_cv_type_uint8_t = yes; then
  25559. cat >>confdefs.h <<_ACEOF
  25560. #define HAVE_UINT8_T 1
  25561. _ACEOF
  25562. fi
  25563. { echo "$as_me:$LINENO: checking for int16_t" >&5
  25564. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  25565. if test "${ac_cv_type_int16_t+set}" = set; then
  25566. echo $ECHO_N "(cached) $ECHO_C" >&6
  25567. else
  25568. cat >conftest.$ac_ext <<_ACEOF
  25569. /* confdefs.h. */
  25570. _ACEOF
  25571. cat confdefs.h >>conftest.$ac_ext
  25572. cat >>conftest.$ac_ext <<_ACEOF
  25573. /* end confdefs.h. */
  25574. $ac_includes_default
  25575. typedef int16_t ac__type_new_;
  25576. int
  25577. main ()
  25578. {
  25579. if ((ac__type_new_ *) 0)
  25580. return 0;
  25581. if (sizeof (ac__type_new_))
  25582. return 0;
  25583. ;
  25584. return 0;
  25585. }
  25586. _ACEOF
  25587. rm -f conftest.$ac_objext
  25588. if { (ac_try="$ac_compile"
  25589. case "(($ac_try" in
  25590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25591. *) ac_try_echo=$ac_try;;
  25592. esac
  25593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25594. (eval "$ac_compile") 2>conftest.er1
  25595. ac_status=$?
  25596. grep -v '^ *+' conftest.er1 >conftest.err
  25597. rm -f conftest.er1
  25598. cat conftest.err >&5
  25599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25600. (exit $ac_status); } && {
  25601. test -z "$ac_c_werror_flag" ||
  25602. test ! -s conftest.err
  25603. } && test -s conftest.$ac_objext; then
  25604. ac_cv_type_int16_t=yes
  25605. else
  25606. echo "$as_me: failed program was:" >&5
  25607. sed 's/^/| /' conftest.$ac_ext >&5
  25608. ac_cv_type_int16_t=no
  25609. fi
  25610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25611. fi
  25612. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  25613. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  25614. if test $ac_cv_type_int16_t = yes; then
  25615. cat >>confdefs.h <<_ACEOF
  25616. #define HAVE_INT16_T 1
  25617. _ACEOF
  25618. fi
  25619. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  25620. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  25621. if test "${ac_cv_type_uint16_t+set}" = set; then
  25622. echo $ECHO_N "(cached) $ECHO_C" >&6
  25623. else
  25624. cat >conftest.$ac_ext <<_ACEOF
  25625. /* confdefs.h. */
  25626. _ACEOF
  25627. cat confdefs.h >>conftest.$ac_ext
  25628. cat >>conftest.$ac_ext <<_ACEOF
  25629. /* end confdefs.h. */
  25630. $ac_includes_default
  25631. typedef uint16_t ac__type_new_;
  25632. int
  25633. main ()
  25634. {
  25635. if ((ac__type_new_ *) 0)
  25636. return 0;
  25637. if (sizeof (ac__type_new_))
  25638. return 0;
  25639. ;
  25640. return 0;
  25641. }
  25642. _ACEOF
  25643. rm -f conftest.$ac_objext
  25644. if { (ac_try="$ac_compile"
  25645. case "(($ac_try" in
  25646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25647. *) ac_try_echo=$ac_try;;
  25648. esac
  25649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25650. (eval "$ac_compile") 2>conftest.er1
  25651. ac_status=$?
  25652. grep -v '^ *+' conftest.er1 >conftest.err
  25653. rm -f conftest.er1
  25654. cat conftest.err >&5
  25655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25656. (exit $ac_status); } && {
  25657. test -z "$ac_c_werror_flag" ||
  25658. test ! -s conftest.err
  25659. } && test -s conftest.$ac_objext; then
  25660. ac_cv_type_uint16_t=yes
  25661. else
  25662. echo "$as_me: failed program was:" >&5
  25663. sed 's/^/| /' conftest.$ac_ext >&5
  25664. ac_cv_type_uint16_t=no
  25665. fi
  25666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25667. fi
  25668. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  25669. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  25670. if test $ac_cv_type_uint16_t = yes; then
  25671. cat >>confdefs.h <<_ACEOF
  25672. #define HAVE_UINT16_T 1
  25673. _ACEOF
  25674. fi
  25675. { echo "$as_me:$LINENO: checking for int32_t" >&5
  25676. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  25677. if test "${ac_cv_type_int32_t+set}" = set; then
  25678. echo $ECHO_N "(cached) $ECHO_C" >&6
  25679. else
  25680. cat >conftest.$ac_ext <<_ACEOF
  25681. /* confdefs.h. */
  25682. _ACEOF
  25683. cat confdefs.h >>conftest.$ac_ext
  25684. cat >>conftest.$ac_ext <<_ACEOF
  25685. /* end confdefs.h. */
  25686. $ac_includes_default
  25687. typedef int32_t ac__type_new_;
  25688. int
  25689. main ()
  25690. {
  25691. if ((ac__type_new_ *) 0)
  25692. return 0;
  25693. if (sizeof (ac__type_new_))
  25694. return 0;
  25695. ;
  25696. return 0;
  25697. }
  25698. _ACEOF
  25699. rm -f conftest.$ac_objext
  25700. if { (ac_try="$ac_compile"
  25701. case "(($ac_try" in
  25702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25703. *) ac_try_echo=$ac_try;;
  25704. esac
  25705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25706. (eval "$ac_compile") 2>conftest.er1
  25707. ac_status=$?
  25708. grep -v '^ *+' conftest.er1 >conftest.err
  25709. rm -f conftest.er1
  25710. cat conftest.err >&5
  25711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25712. (exit $ac_status); } && {
  25713. test -z "$ac_c_werror_flag" ||
  25714. test ! -s conftest.err
  25715. } && test -s conftest.$ac_objext; then
  25716. ac_cv_type_int32_t=yes
  25717. else
  25718. echo "$as_me: failed program was:" >&5
  25719. sed 's/^/| /' conftest.$ac_ext >&5
  25720. ac_cv_type_int32_t=no
  25721. fi
  25722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25723. fi
  25724. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  25725. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  25726. if test $ac_cv_type_int32_t = yes; then
  25727. cat >>confdefs.h <<_ACEOF
  25728. #define HAVE_INT32_T 1
  25729. _ACEOF
  25730. fi
  25731. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  25732. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  25733. if test "${ac_cv_type_uint32_t+set}" = set; then
  25734. echo $ECHO_N "(cached) $ECHO_C" >&6
  25735. else
  25736. cat >conftest.$ac_ext <<_ACEOF
  25737. /* confdefs.h. */
  25738. _ACEOF
  25739. cat confdefs.h >>conftest.$ac_ext
  25740. cat >>conftest.$ac_ext <<_ACEOF
  25741. /* end confdefs.h. */
  25742. $ac_includes_default
  25743. typedef uint32_t ac__type_new_;
  25744. int
  25745. main ()
  25746. {
  25747. if ((ac__type_new_ *) 0)
  25748. return 0;
  25749. if (sizeof (ac__type_new_))
  25750. return 0;
  25751. ;
  25752. return 0;
  25753. }
  25754. _ACEOF
  25755. rm -f conftest.$ac_objext
  25756. if { (ac_try="$ac_compile"
  25757. case "(($ac_try" in
  25758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25759. *) ac_try_echo=$ac_try;;
  25760. esac
  25761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25762. (eval "$ac_compile") 2>conftest.er1
  25763. ac_status=$?
  25764. grep -v '^ *+' conftest.er1 >conftest.err
  25765. rm -f conftest.er1
  25766. cat conftest.err >&5
  25767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25768. (exit $ac_status); } && {
  25769. test -z "$ac_c_werror_flag" ||
  25770. test ! -s conftest.err
  25771. } && test -s conftest.$ac_objext; then
  25772. ac_cv_type_uint32_t=yes
  25773. else
  25774. echo "$as_me: failed program was:" >&5
  25775. sed 's/^/| /' conftest.$ac_ext >&5
  25776. ac_cv_type_uint32_t=no
  25777. fi
  25778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25779. fi
  25780. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  25781. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  25782. if test $ac_cv_type_uint32_t = yes; then
  25783. cat >>confdefs.h <<_ACEOF
  25784. #define HAVE_UINT32_T 1
  25785. _ACEOF
  25786. fi
  25787. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  25788. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  25789. if test "${ac_cv_type_intptr_t+set}" = set; then
  25790. echo $ECHO_N "(cached) $ECHO_C" >&6
  25791. else
  25792. cat >conftest.$ac_ext <<_ACEOF
  25793. /* confdefs.h. */
  25794. _ACEOF
  25795. cat confdefs.h >>conftest.$ac_ext
  25796. cat >>conftest.$ac_ext <<_ACEOF
  25797. /* end confdefs.h. */
  25798. $ac_includes_default
  25799. typedef intptr_t ac__type_new_;
  25800. int
  25801. main ()
  25802. {
  25803. if ((ac__type_new_ *) 0)
  25804. return 0;
  25805. if (sizeof (ac__type_new_))
  25806. return 0;
  25807. ;
  25808. return 0;
  25809. }
  25810. _ACEOF
  25811. rm -f conftest.$ac_objext
  25812. if { (ac_try="$ac_compile"
  25813. case "(($ac_try" in
  25814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25815. *) ac_try_echo=$ac_try;;
  25816. esac
  25817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25818. (eval "$ac_compile") 2>conftest.er1
  25819. ac_status=$?
  25820. grep -v '^ *+' conftest.er1 >conftest.err
  25821. rm -f conftest.er1
  25822. cat conftest.err >&5
  25823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25824. (exit $ac_status); } && {
  25825. test -z "$ac_c_werror_flag" ||
  25826. test ! -s conftest.err
  25827. } && test -s conftest.$ac_objext; then
  25828. ac_cv_type_intptr_t=yes
  25829. else
  25830. echo "$as_me: failed program was:" >&5
  25831. sed 's/^/| /' conftest.$ac_ext >&5
  25832. ac_cv_type_intptr_t=no
  25833. fi
  25834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25835. fi
  25836. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  25837. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  25838. if test $ac_cv_type_intptr_t = yes; then
  25839. cat >>confdefs.h <<_ACEOF
  25840. #define HAVE_INTPTR_T 1
  25841. _ACEOF
  25842. fi
  25843. { echo "$as_me:$LINENO: checking for uint_t" >&5
  25844. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  25845. if test "${ac_cv_type_uint_t+set}" = set; then
  25846. echo $ECHO_N "(cached) $ECHO_C" >&6
  25847. else
  25848. cat >conftest.$ac_ext <<_ACEOF
  25849. /* confdefs.h. */
  25850. _ACEOF
  25851. cat confdefs.h >>conftest.$ac_ext
  25852. cat >>conftest.$ac_ext <<_ACEOF
  25853. /* end confdefs.h. */
  25854. $ac_includes_default
  25855. typedef uint_t ac__type_new_;
  25856. int
  25857. main ()
  25858. {
  25859. if ((ac__type_new_ *) 0)
  25860. return 0;
  25861. if (sizeof (ac__type_new_))
  25862. return 0;
  25863. ;
  25864. return 0;
  25865. }
  25866. _ACEOF
  25867. rm -f conftest.$ac_objext
  25868. if { (ac_try="$ac_compile"
  25869. case "(($ac_try" in
  25870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25871. *) ac_try_echo=$ac_try;;
  25872. esac
  25873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25874. (eval "$ac_compile") 2>conftest.er1
  25875. ac_status=$?
  25876. grep -v '^ *+' conftest.er1 >conftest.err
  25877. rm -f conftest.er1
  25878. cat conftest.err >&5
  25879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25880. (exit $ac_status); } && {
  25881. test -z "$ac_c_werror_flag" ||
  25882. test ! -s conftest.err
  25883. } && test -s conftest.$ac_objext; then
  25884. ac_cv_type_uint_t=yes
  25885. else
  25886. echo "$as_me: failed program was:" >&5
  25887. sed 's/^/| /' conftest.$ac_ext >&5
  25888. ac_cv_type_uint_t=no
  25889. fi
  25890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25891. fi
  25892. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  25893. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  25894. if test $ac_cv_type_uint_t = yes; then
  25895. cat >>confdefs.h <<_ACEOF
  25896. #define HAVE_UINT_T 1
  25897. _ACEOF
  25898. fi
  25899. # ====================
  25900. # uintptr type & sizes
  25901. # ====================
  25902. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  25903. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  25904. if test "${ac_cv_type_uintptr_t+set}" = set; then
  25905. echo $ECHO_N "(cached) $ECHO_C" >&6
  25906. else
  25907. cat >conftest.$ac_ext <<_ACEOF
  25908. /* confdefs.h. */
  25909. _ACEOF
  25910. cat confdefs.h >>conftest.$ac_ext
  25911. cat >>conftest.$ac_ext <<_ACEOF
  25912. /* end confdefs.h. */
  25913. $ac_includes_default
  25914. typedef uintptr_t ac__type_new_;
  25915. int
  25916. main ()
  25917. {
  25918. if ((ac__type_new_ *) 0)
  25919. return 0;
  25920. if (sizeof (ac__type_new_))
  25921. return 0;
  25922. ;
  25923. return 0;
  25924. }
  25925. _ACEOF
  25926. rm -f conftest.$ac_objext
  25927. if { (ac_try="$ac_compile"
  25928. case "(($ac_try" in
  25929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25930. *) ac_try_echo=$ac_try;;
  25931. esac
  25932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25933. (eval "$ac_compile") 2>conftest.er1
  25934. ac_status=$?
  25935. grep -v '^ *+' conftest.er1 >conftest.err
  25936. rm -f conftest.er1
  25937. cat conftest.err >&5
  25938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25939. (exit $ac_status); } && {
  25940. test -z "$ac_c_werror_flag" ||
  25941. test ! -s conftest.err
  25942. } && test -s conftest.$ac_objext; then
  25943. ac_cv_type_uintptr_t=yes
  25944. else
  25945. echo "$as_me: failed program was:" >&5
  25946. sed 's/^/| /' conftest.$ac_ext >&5
  25947. ac_cv_type_uintptr_t=no
  25948. fi
  25949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25950. fi
  25951. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  25952. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  25953. if test $ac_cv_type_uintptr_t = yes; then
  25954. cat >>confdefs.h <<_ACEOF
  25955. #define HAVE_UINTPTR_T 1
  25956. _ACEOF
  25957. else
  25958. cat >>confdefs.h <<\_ACEOF
  25959. #define uintptr_t unsigned long
  25960. _ACEOF
  25961. fi
  25962. { echo "$as_me:$LINENO: checking for char*" >&5
  25963. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  25964. if test "${ac_cv_type_charp+set}" = set; then
  25965. echo $ECHO_N "(cached) $ECHO_C" >&6
  25966. else
  25967. cat >conftest.$ac_ext <<_ACEOF
  25968. /* confdefs.h. */
  25969. _ACEOF
  25970. cat confdefs.h >>conftest.$ac_ext
  25971. cat >>conftest.$ac_ext <<_ACEOF
  25972. /* end confdefs.h. */
  25973. $ac_includes_default
  25974. typedef char* ac__type_new_;
  25975. int
  25976. main ()
  25977. {
  25978. if ((ac__type_new_ *) 0)
  25979. return 0;
  25980. if (sizeof (ac__type_new_))
  25981. return 0;
  25982. ;
  25983. return 0;
  25984. }
  25985. _ACEOF
  25986. rm -f conftest.$ac_objext
  25987. if { (ac_try="$ac_compile"
  25988. case "(($ac_try" in
  25989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25990. *) ac_try_echo=$ac_try;;
  25991. esac
  25992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25993. (eval "$ac_compile") 2>conftest.er1
  25994. ac_status=$?
  25995. grep -v '^ *+' conftest.er1 >conftest.err
  25996. rm -f conftest.er1
  25997. cat conftest.err >&5
  25998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25999. (exit $ac_status); } && {
  26000. test -z "$ac_c_werror_flag" ||
  26001. test ! -s conftest.err
  26002. } && test -s conftest.$ac_objext; then
  26003. ac_cv_type_charp=yes
  26004. else
  26005. echo "$as_me: failed program was:" >&5
  26006. sed 's/^/| /' conftest.$ac_ext >&5
  26007. ac_cv_type_charp=no
  26008. fi
  26009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26010. fi
  26011. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  26012. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  26013. # The cast to long int works around a bug in the HP C Compiler
  26014. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26015. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26016. # This bug is HP SR number 8606223364.
  26017. { echo "$as_me:$LINENO: checking size of char*" >&5
  26018. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  26019. if test "${ac_cv_sizeof_charp+set}" = set; then
  26020. echo $ECHO_N "(cached) $ECHO_C" >&6
  26021. else
  26022. if test "$cross_compiling" = yes; then
  26023. # Depending upon the size, compute the lo and hi bounds.
  26024. cat >conftest.$ac_ext <<_ACEOF
  26025. /* confdefs.h. */
  26026. _ACEOF
  26027. cat confdefs.h >>conftest.$ac_ext
  26028. cat >>conftest.$ac_ext <<_ACEOF
  26029. /* end confdefs.h. */
  26030. $ac_includes_default
  26031. typedef char* ac__type_sizeof_;
  26032. int
  26033. main ()
  26034. {
  26035. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26036. test_array [0] = 0
  26037. ;
  26038. return 0;
  26039. }
  26040. _ACEOF
  26041. rm -f conftest.$ac_objext
  26042. if { (ac_try="$ac_compile"
  26043. case "(($ac_try" in
  26044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26045. *) ac_try_echo=$ac_try;;
  26046. esac
  26047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26048. (eval "$ac_compile") 2>conftest.er1
  26049. ac_status=$?
  26050. grep -v '^ *+' conftest.er1 >conftest.err
  26051. rm -f conftest.er1
  26052. cat conftest.err >&5
  26053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26054. (exit $ac_status); } && {
  26055. test -z "$ac_c_werror_flag" ||
  26056. test ! -s conftest.err
  26057. } && test -s conftest.$ac_objext; then
  26058. ac_lo=0 ac_mid=0
  26059. while :; do
  26060. cat >conftest.$ac_ext <<_ACEOF
  26061. /* confdefs.h. */
  26062. _ACEOF
  26063. cat confdefs.h >>conftest.$ac_ext
  26064. cat >>conftest.$ac_ext <<_ACEOF
  26065. /* end confdefs.h. */
  26066. $ac_includes_default
  26067. typedef char* ac__type_sizeof_;
  26068. int
  26069. main ()
  26070. {
  26071. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26072. test_array [0] = 0
  26073. ;
  26074. return 0;
  26075. }
  26076. _ACEOF
  26077. rm -f conftest.$ac_objext
  26078. if { (ac_try="$ac_compile"
  26079. case "(($ac_try" in
  26080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26081. *) ac_try_echo=$ac_try;;
  26082. esac
  26083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26084. (eval "$ac_compile") 2>conftest.er1
  26085. ac_status=$?
  26086. grep -v '^ *+' conftest.er1 >conftest.err
  26087. rm -f conftest.er1
  26088. cat conftest.err >&5
  26089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26090. (exit $ac_status); } && {
  26091. test -z "$ac_c_werror_flag" ||
  26092. test ! -s conftest.err
  26093. } && test -s conftest.$ac_objext; then
  26094. ac_hi=$ac_mid; break
  26095. else
  26096. echo "$as_me: failed program was:" >&5
  26097. sed 's/^/| /' conftest.$ac_ext >&5
  26098. ac_lo=`expr $ac_mid + 1`
  26099. if test $ac_lo -le $ac_mid; then
  26100. ac_lo= ac_hi=
  26101. break
  26102. fi
  26103. ac_mid=`expr 2 '*' $ac_mid + 1`
  26104. fi
  26105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26106. done
  26107. else
  26108. echo "$as_me: failed program was:" >&5
  26109. sed 's/^/| /' conftest.$ac_ext >&5
  26110. cat >conftest.$ac_ext <<_ACEOF
  26111. /* confdefs.h. */
  26112. _ACEOF
  26113. cat confdefs.h >>conftest.$ac_ext
  26114. cat >>conftest.$ac_ext <<_ACEOF
  26115. /* end confdefs.h. */
  26116. $ac_includes_default
  26117. typedef char* ac__type_sizeof_;
  26118. int
  26119. main ()
  26120. {
  26121. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26122. test_array [0] = 0
  26123. ;
  26124. return 0;
  26125. }
  26126. _ACEOF
  26127. rm -f conftest.$ac_objext
  26128. if { (ac_try="$ac_compile"
  26129. case "(($ac_try" in
  26130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26131. *) ac_try_echo=$ac_try;;
  26132. esac
  26133. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26134. (eval "$ac_compile") 2>conftest.er1
  26135. ac_status=$?
  26136. grep -v '^ *+' conftest.er1 >conftest.err
  26137. rm -f conftest.er1
  26138. cat conftest.err >&5
  26139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26140. (exit $ac_status); } && {
  26141. test -z "$ac_c_werror_flag" ||
  26142. test ! -s conftest.err
  26143. } && test -s conftest.$ac_objext; then
  26144. ac_hi=-1 ac_mid=-1
  26145. while :; do
  26146. cat >conftest.$ac_ext <<_ACEOF
  26147. /* confdefs.h. */
  26148. _ACEOF
  26149. cat confdefs.h >>conftest.$ac_ext
  26150. cat >>conftest.$ac_ext <<_ACEOF
  26151. /* end confdefs.h. */
  26152. $ac_includes_default
  26153. typedef char* ac__type_sizeof_;
  26154. int
  26155. main ()
  26156. {
  26157. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26158. test_array [0] = 0
  26159. ;
  26160. return 0;
  26161. }
  26162. _ACEOF
  26163. rm -f conftest.$ac_objext
  26164. if { (ac_try="$ac_compile"
  26165. case "(($ac_try" in
  26166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26167. *) ac_try_echo=$ac_try;;
  26168. esac
  26169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26170. (eval "$ac_compile") 2>conftest.er1
  26171. ac_status=$?
  26172. grep -v '^ *+' conftest.er1 >conftest.err
  26173. rm -f conftest.er1
  26174. cat conftest.err >&5
  26175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26176. (exit $ac_status); } && {
  26177. test -z "$ac_c_werror_flag" ||
  26178. test ! -s conftest.err
  26179. } && test -s conftest.$ac_objext; then
  26180. ac_lo=$ac_mid; break
  26181. else
  26182. echo "$as_me: failed program was:" >&5
  26183. sed 's/^/| /' conftest.$ac_ext >&5
  26184. ac_hi=`expr '(' $ac_mid ')' - 1`
  26185. if test $ac_mid -le $ac_hi; then
  26186. ac_lo= ac_hi=
  26187. break
  26188. fi
  26189. ac_mid=`expr 2 '*' $ac_mid`
  26190. fi
  26191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26192. done
  26193. else
  26194. echo "$as_me: failed program was:" >&5
  26195. sed 's/^/| /' conftest.$ac_ext >&5
  26196. ac_lo= ac_hi=
  26197. fi
  26198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26199. fi
  26200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26201. # Binary search between lo and hi bounds.
  26202. while test "x$ac_lo" != "x$ac_hi"; do
  26203. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26204. cat >conftest.$ac_ext <<_ACEOF
  26205. /* confdefs.h. */
  26206. _ACEOF
  26207. cat confdefs.h >>conftest.$ac_ext
  26208. cat >>conftest.$ac_ext <<_ACEOF
  26209. /* end confdefs.h. */
  26210. $ac_includes_default
  26211. typedef char* ac__type_sizeof_;
  26212. int
  26213. main ()
  26214. {
  26215. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26216. test_array [0] = 0
  26217. ;
  26218. return 0;
  26219. }
  26220. _ACEOF
  26221. rm -f conftest.$ac_objext
  26222. if { (ac_try="$ac_compile"
  26223. case "(($ac_try" in
  26224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26225. *) ac_try_echo=$ac_try;;
  26226. esac
  26227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26228. (eval "$ac_compile") 2>conftest.er1
  26229. ac_status=$?
  26230. grep -v '^ *+' conftest.er1 >conftest.err
  26231. rm -f conftest.er1
  26232. cat conftest.err >&5
  26233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26234. (exit $ac_status); } && {
  26235. test -z "$ac_c_werror_flag" ||
  26236. test ! -s conftest.err
  26237. } && test -s conftest.$ac_objext; then
  26238. ac_hi=$ac_mid
  26239. else
  26240. echo "$as_me: failed program was:" >&5
  26241. sed 's/^/| /' conftest.$ac_ext >&5
  26242. ac_lo=`expr '(' $ac_mid ')' + 1`
  26243. fi
  26244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26245. done
  26246. case $ac_lo in
  26247. ?*) ac_cv_sizeof_charp=$ac_lo;;
  26248. '') if test "$ac_cv_type_charp" = yes; then
  26249. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26250. See \`config.log' for more details." >&5
  26251. echo "$as_me: error: cannot compute sizeof (char*)
  26252. See \`config.log' for more details." >&2;}
  26253. { (exit 77); exit 77; }; }
  26254. else
  26255. ac_cv_sizeof_charp=0
  26256. fi ;;
  26257. esac
  26258. else
  26259. cat >conftest.$ac_ext <<_ACEOF
  26260. /* confdefs.h. */
  26261. _ACEOF
  26262. cat confdefs.h >>conftest.$ac_ext
  26263. cat >>conftest.$ac_ext <<_ACEOF
  26264. /* end confdefs.h. */
  26265. $ac_includes_default
  26266. typedef char* ac__type_sizeof_;
  26267. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26268. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26269. #include <stdio.h>
  26270. #include <stdlib.h>
  26271. int
  26272. main ()
  26273. {
  26274. FILE *f = fopen ("conftest.val", "w");
  26275. if (! f)
  26276. return 1;
  26277. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26278. {
  26279. long int i = longval ();
  26280. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26281. return 1;
  26282. fprintf (f, "%ld\n", i);
  26283. }
  26284. else
  26285. {
  26286. unsigned long int i = ulongval ();
  26287. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26288. return 1;
  26289. fprintf (f, "%lu\n", i);
  26290. }
  26291. return ferror (f) || fclose (f) != 0;
  26292. ;
  26293. return 0;
  26294. }
  26295. _ACEOF
  26296. rm -f conftest$ac_exeext
  26297. if { (ac_try="$ac_link"
  26298. case "(($ac_try" in
  26299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26300. *) ac_try_echo=$ac_try;;
  26301. esac
  26302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26303. (eval "$ac_link") 2>&5
  26304. ac_status=$?
  26305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26306. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26307. { (case "(($ac_try" in
  26308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26309. *) ac_try_echo=$ac_try;;
  26310. esac
  26311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26312. (eval "$ac_try") 2>&5
  26313. ac_status=$?
  26314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26315. (exit $ac_status); }; }; then
  26316. ac_cv_sizeof_charp=`cat conftest.val`
  26317. else
  26318. echo "$as_me: program exited with status $ac_status" >&5
  26319. echo "$as_me: failed program was:" >&5
  26320. sed 's/^/| /' conftest.$ac_ext >&5
  26321. ( exit $ac_status )
  26322. if test "$ac_cv_type_charp" = yes; then
  26323. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26324. See \`config.log' for more details." >&5
  26325. echo "$as_me: error: cannot compute sizeof (char*)
  26326. See \`config.log' for more details." >&2;}
  26327. { (exit 77); exit 77; }; }
  26328. else
  26329. ac_cv_sizeof_charp=0
  26330. fi
  26331. fi
  26332. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26333. fi
  26334. rm -f conftest.val
  26335. fi
  26336. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  26337. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  26338. cat >>confdefs.h <<_ACEOF
  26339. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  26340. _ACEOF
  26341. { echo "$as_me:$LINENO: checking for int" >&5
  26342. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  26343. if test "${ac_cv_type_int+set}" = set; then
  26344. echo $ECHO_N "(cached) $ECHO_C" >&6
  26345. else
  26346. cat >conftest.$ac_ext <<_ACEOF
  26347. /* confdefs.h. */
  26348. _ACEOF
  26349. cat confdefs.h >>conftest.$ac_ext
  26350. cat >>conftest.$ac_ext <<_ACEOF
  26351. /* end confdefs.h. */
  26352. $ac_includes_default
  26353. typedef int ac__type_new_;
  26354. int
  26355. main ()
  26356. {
  26357. if ((ac__type_new_ *) 0)
  26358. return 0;
  26359. if (sizeof (ac__type_new_))
  26360. return 0;
  26361. ;
  26362. return 0;
  26363. }
  26364. _ACEOF
  26365. rm -f conftest.$ac_objext
  26366. if { (ac_try="$ac_compile"
  26367. case "(($ac_try" in
  26368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26369. *) ac_try_echo=$ac_try;;
  26370. esac
  26371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26372. (eval "$ac_compile") 2>conftest.er1
  26373. ac_status=$?
  26374. grep -v '^ *+' conftest.er1 >conftest.err
  26375. rm -f conftest.er1
  26376. cat conftest.err >&5
  26377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26378. (exit $ac_status); } && {
  26379. test -z "$ac_c_werror_flag" ||
  26380. test ! -s conftest.err
  26381. } && test -s conftest.$ac_objext; then
  26382. ac_cv_type_int=yes
  26383. else
  26384. echo "$as_me: failed program was:" >&5
  26385. sed 's/^/| /' conftest.$ac_ext >&5
  26386. ac_cv_type_int=no
  26387. fi
  26388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26389. fi
  26390. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  26391. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  26392. # The cast to long int works around a bug in the HP C Compiler
  26393. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26394. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26395. # This bug is HP SR number 8606223364.
  26396. { echo "$as_me:$LINENO: checking size of int" >&5
  26397. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  26398. if test "${ac_cv_sizeof_int+set}" = set; then
  26399. echo $ECHO_N "(cached) $ECHO_C" >&6
  26400. else
  26401. if test "$cross_compiling" = yes; then
  26402. # Depending upon the size, compute the lo and hi bounds.
  26403. cat >conftest.$ac_ext <<_ACEOF
  26404. /* confdefs.h. */
  26405. _ACEOF
  26406. cat confdefs.h >>conftest.$ac_ext
  26407. cat >>conftest.$ac_ext <<_ACEOF
  26408. /* end confdefs.h. */
  26409. $ac_includes_default
  26410. typedef int ac__type_sizeof_;
  26411. int
  26412. main ()
  26413. {
  26414. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26415. test_array [0] = 0
  26416. ;
  26417. return 0;
  26418. }
  26419. _ACEOF
  26420. rm -f conftest.$ac_objext
  26421. if { (ac_try="$ac_compile"
  26422. case "(($ac_try" in
  26423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26424. *) ac_try_echo=$ac_try;;
  26425. esac
  26426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26427. (eval "$ac_compile") 2>conftest.er1
  26428. ac_status=$?
  26429. grep -v '^ *+' conftest.er1 >conftest.err
  26430. rm -f conftest.er1
  26431. cat conftest.err >&5
  26432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26433. (exit $ac_status); } && {
  26434. test -z "$ac_c_werror_flag" ||
  26435. test ! -s conftest.err
  26436. } && test -s conftest.$ac_objext; then
  26437. ac_lo=0 ac_mid=0
  26438. while :; do
  26439. cat >conftest.$ac_ext <<_ACEOF
  26440. /* confdefs.h. */
  26441. _ACEOF
  26442. cat confdefs.h >>conftest.$ac_ext
  26443. cat >>conftest.$ac_ext <<_ACEOF
  26444. /* end confdefs.h. */
  26445. $ac_includes_default
  26446. typedef int ac__type_sizeof_;
  26447. int
  26448. main ()
  26449. {
  26450. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26451. test_array [0] = 0
  26452. ;
  26453. return 0;
  26454. }
  26455. _ACEOF
  26456. rm -f conftest.$ac_objext
  26457. if { (ac_try="$ac_compile"
  26458. case "(($ac_try" in
  26459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26460. *) ac_try_echo=$ac_try;;
  26461. esac
  26462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26463. (eval "$ac_compile") 2>conftest.er1
  26464. ac_status=$?
  26465. grep -v '^ *+' conftest.er1 >conftest.err
  26466. rm -f conftest.er1
  26467. cat conftest.err >&5
  26468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26469. (exit $ac_status); } && {
  26470. test -z "$ac_c_werror_flag" ||
  26471. test ! -s conftest.err
  26472. } && test -s conftest.$ac_objext; then
  26473. ac_hi=$ac_mid; break
  26474. else
  26475. echo "$as_me: failed program was:" >&5
  26476. sed 's/^/| /' conftest.$ac_ext >&5
  26477. ac_lo=`expr $ac_mid + 1`
  26478. if test $ac_lo -le $ac_mid; then
  26479. ac_lo= ac_hi=
  26480. break
  26481. fi
  26482. ac_mid=`expr 2 '*' $ac_mid + 1`
  26483. fi
  26484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26485. done
  26486. else
  26487. echo "$as_me: failed program was:" >&5
  26488. sed 's/^/| /' conftest.$ac_ext >&5
  26489. cat >conftest.$ac_ext <<_ACEOF
  26490. /* confdefs.h. */
  26491. _ACEOF
  26492. cat confdefs.h >>conftest.$ac_ext
  26493. cat >>conftest.$ac_ext <<_ACEOF
  26494. /* end confdefs.h. */
  26495. $ac_includes_default
  26496. typedef int ac__type_sizeof_;
  26497. int
  26498. main ()
  26499. {
  26500. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26501. test_array [0] = 0
  26502. ;
  26503. return 0;
  26504. }
  26505. _ACEOF
  26506. rm -f conftest.$ac_objext
  26507. if { (ac_try="$ac_compile"
  26508. case "(($ac_try" in
  26509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26510. *) ac_try_echo=$ac_try;;
  26511. esac
  26512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26513. (eval "$ac_compile") 2>conftest.er1
  26514. ac_status=$?
  26515. grep -v '^ *+' conftest.er1 >conftest.err
  26516. rm -f conftest.er1
  26517. cat conftest.err >&5
  26518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26519. (exit $ac_status); } && {
  26520. test -z "$ac_c_werror_flag" ||
  26521. test ! -s conftest.err
  26522. } && test -s conftest.$ac_objext; then
  26523. ac_hi=-1 ac_mid=-1
  26524. while :; do
  26525. cat >conftest.$ac_ext <<_ACEOF
  26526. /* confdefs.h. */
  26527. _ACEOF
  26528. cat confdefs.h >>conftest.$ac_ext
  26529. cat >>conftest.$ac_ext <<_ACEOF
  26530. /* end confdefs.h. */
  26531. $ac_includes_default
  26532. typedef int ac__type_sizeof_;
  26533. int
  26534. main ()
  26535. {
  26536. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26537. test_array [0] = 0
  26538. ;
  26539. return 0;
  26540. }
  26541. _ACEOF
  26542. rm -f conftest.$ac_objext
  26543. if { (ac_try="$ac_compile"
  26544. case "(($ac_try" in
  26545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26546. *) ac_try_echo=$ac_try;;
  26547. esac
  26548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26549. (eval "$ac_compile") 2>conftest.er1
  26550. ac_status=$?
  26551. grep -v '^ *+' conftest.er1 >conftest.err
  26552. rm -f conftest.er1
  26553. cat conftest.err >&5
  26554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26555. (exit $ac_status); } && {
  26556. test -z "$ac_c_werror_flag" ||
  26557. test ! -s conftest.err
  26558. } && test -s conftest.$ac_objext; then
  26559. ac_lo=$ac_mid; break
  26560. else
  26561. echo "$as_me: failed program was:" >&5
  26562. sed 's/^/| /' conftest.$ac_ext >&5
  26563. ac_hi=`expr '(' $ac_mid ')' - 1`
  26564. if test $ac_mid -le $ac_hi; then
  26565. ac_lo= ac_hi=
  26566. break
  26567. fi
  26568. ac_mid=`expr 2 '*' $ac_mid`
  26569. fi
  26570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26571. done
  26572. else
  26573. echo "$as_me: failed program was:" >&5
  26574. sed 's/^/| /' conftest.$ac_ext >&5
  26575. ac_lo= ac_hi=
  26576. fi
  26577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26578. fi
  26579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26580. # Binary search between lo and hi bounds.
  26581. while test "x$ac_lo" != "x$ac_hi"; do
  26582. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26583. cat >conftest.$ac_ext <<_ACEOF
  26584. /* confdefs.h. */
  26585. _ACEOF
  26586. cat confdefs.h >>conftest.$ac_ext
  26587. cat >>conftest.$ac_ext <<_ACEOF
  26588. /* end confdefs.h. */
  26589. $ac_includes_default
  26590. typedef int ac__type_sizeof_;
  26591. int
  26592. main ()
  26593. {
  26594. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26595. test_array [0] = 0
  26596. ;
  26597. return 0;
  26598. }
  26599. _ACEOF
  26600. rm -f conftest.$ac_objext
  26601. if { (ac_try="$ac_compile"
  26602. case "(($ac_try" in
  26603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26604. *) ac_try_echo=$ac_try;;
  26605. esac
  26606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26607. (eval "$ac_compile") 2>conftest.er1
  26608. ac_status=$?
  26609. grep -v '^ *+' conftest.er1 >conftest.err
  26610. rm -f conftest.er1
  26611. cat conftest.err >&5
  26612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26613. (exit $ac_status); } && {
  26614. test -z "$ac_c_werror_flag" ||
  26615. test ! -s conftest.err
  26616. } && test -s conftest.$ac_objext; then
  26617. ac_hi=$ac_mid
  26618. else
  26619. echo "$as_me: failed program was:" >&5
  26620. sed 's/^/| /' conftest.$ac_ext >&5
  26621. ac_lo=`expr '(' $ac_mid ')' + 1`
  26622. fi
  26623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26624. done
  26625. case $ac_lo in
  26626. ?*) ac_cv_sizeof_int=$ac_lo;;
  26627. '') if test "$ac_cv_type_int" = yes; then
  26628. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26629. See \`config.log' for more details." >&5
  26630. echo "$as_me: error: cannot compute sizeof (int)
  26631. See \`config.log' for more details." >&2;}
  26632. { (exit 77); exit 77; }; }
  26633. else
  26634. ac_cv_sizeof_int=0
  26635. fi ;;
  26636. esac
  26637. else
  26638. cat >conftest.$ac_ext <<_ACEOF
  26639. /* confdefs.h. */
  26640. _ACEOF
  26641. cat confdefs.h >>conftest.$ac_ext
  26642. cat >>conftest.$ac_ext <<_ACEOF
  26643. /* end confdefs.h. */
  26644. $ac_includes_default
  26645. typedef int ac__type_sizeof_;
  26646. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26647. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26648. #include <stdio.h>
  26649. #include <stdlib.h>
  26650. int
  26651. main ()
  26652. {
  26653. FILE *f = fopen ("conftest.val", "w");
  26654. if (! f)
  26655. return 1;
  26656. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26657. {
  26658. long int i = longval ();
  26659. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26660. return 1;
  26661. fprintf (f, "%ld\n", i);
  26662. }
  26663. else
  26664. {
  26665. unsigned long int i = ulongval ();
  26666. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26667. return 1;
  26668. fprintf (f, "%lu\n", i);
  26669. }
  26670. return ferror (f) || fclose (f) != 0;
  26671. ;
  26672. return 0;
  26673. }
  26674. _ACEOF
  26675. rm -f conftest$ac_exeext
  26676. if { (ac_try="$ac_link"
  26677. case "(($ac_try" in
  26678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26679. *) ac_try_echo=$ac_try;;
  26680. esac
  26681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26682. (eval "$ac_link") 2>&5
  26683. ac_status=$?
  26684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26685. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26686. { (case "(($ac_try" in
  26687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26688. *) ac_try_echo=$ac_try;;
  26689. esac
  26690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26691. (eval "$ac_try") 2>&5
  26692. ac_status=$?
  26693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26694. (exit $ac_status); }; }; then
  26695. ac_cv_sizeof_int=`cat conftest.val`
  26696. else
  26697. echo "$as_me: program exited with status $ac_status" >&5
  26698. echo "$as_me: failed program was:" >&5
  26699. sed 's/^/| /' conftest.$ac_ext >&5
  26700. ( exit $ac_status )
  26701. if test "$ac_cv_type_int" = yes; then
  26702. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26703. See \`config.log' for more details." >&5
  26704. echo "$as_me: error: cannot compute sizeof (int)
  26705. See \`config.log' for more details." >&2;}
  26706. { (exit 77); exit 77; }; }
  26707. else
  26708. ac_cv_sizeof_int=0
  26709. fi
  26710. fi
  26711. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26712. fi
  26713. rm -f conftest.val
  26714. fi
  26715. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  26716. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  26717. cat >>confdefs.h <<_ACEOF
  26718. #define SIZEOF_INT $ac_cv_sizeof_int
  26719. _ACEOF
  26720. { echo "$as_me:$LINENO: checking for long" >&5
  26721. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  26722. if test "${ac_cv_type_long+set}" = set; then
  26723. echo $ECHO_N "(cached) $ECHO_C" >&6
  26724. else
  26725. cat >conftest.$ac_ext <<_ACEOF
  26726. /* confdefs.h. */
  26727. _ACEOF
  26728. cat confdefs.h >>conftest.$ac_ext
  26729. cat >>conftest.$ac_ext <<_ACEOF
  26730. /* end confdefs.h. */
  26731. $ac_includes_default
  26732. typedef long ac__type_new_;
  26733. int
  26734. main ()
  26735. {
  26736. if ((ac__type_new_ *) 0)
  26737. return 0;
  26738. if (sizeof (ac__type_new_))
  26739. return 0;
  26740. ;
  26741. return 0;
  26742. }
  26743. _ACEOF
  26744. rm -f conftest.$ac_objext
  26745. if { (ac_try="$ac_compile"
  26746. case "(($ac_try" in
  26747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26748. *) ac_try_echo=$ac_try;;
  26749. esac
  26750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26751. (eval "$ac_compile") 2>conftest.er1
  26752. ac_status=$?
  26753. grep -v '^ *+' conftest.er1 >conftest.err
  26754. rm -f conftest.er1
  26755. cat conftest.err >&5
  26756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26757. (exit $ac_status); } && {
  26758. test -z "$ac_c_werror_flag" ||
  26759. test ! -s conftest.err
  26760. } && test -s conftest.$ac_objext; then
  26761. ac_cv_type_long=yes
  26762. else
  26763. echo "$as_me: failed program was:" >&5
  26764. sed 's/^/| /' conftest.$ac_ext >&5
  26765. ac_cv_type_long=no
  26766. fi
  26767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26768. fi
  26769. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  26770. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  26771. # The cast to long int works around a bug in the HP C Compiler
  26772. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26773. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26774. # This bug is HP SR number 8606223364.
  26775. { echo "$as_me:$LINENO: checking size of long" >&5
  26776. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  26777. if test "${ac_cv_sizeof_long+set}" = set; then
  26778. echo $ECHO_N "(cached) $ECHO_C" >&6
  26779. else
  26780. if test "$cross_compiling" = yes; then
  26781. # Depending upon the size, compute the lo and hi bounds.
  26782. cat >conftest.$ac_ext <<_ACEOF
  26783. /* confdefs.h. */
  26784. _ACEOF
  26785. cat confdefs.h >>conftest.$ac_ext
  26786. cat >>conftest.$ac_ext <<_ACEOF
  26787. /* end confdefs.h. */
  26788. $ac_includes_default
  26789. typedef long ac__type_sizeof_;
  26790. int
  26791. main ()
  26792. {
  26793. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26794. test_array [0] = 0
  26795. ;
  26796. return 0;
  26797. }
  26798. _ACEOF
  26799. rm -f conftest.$ac_objext
  26800. if { (ac_try="$ac_compile"
  26801. case "(($ac_try" in
  26802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26803. *) ac_try_echo=$ac_try;;
  26804. esac
  26805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26806. (eval "$ac_compile") 2>conftest.er1
  26807. ac_status=$?
  26808. grep -v '^ *+' conftest.er1 >conftest.err
  26809. rm -f conftest.er1
  26810. cat conftest.err >&5
  26811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26812. (exit $ac_status); } && {
  26813. test -z "$ac_c_werror_flag" ||
  26814. test ! -s conftest.err
  26815. } && test -s conftest.$ac_objext; then
  26816. ac_lo=0 ac_mid=0
  26817. while :; do
  26818. cat >conftest.$ac_ext <<_ACEOF
  26819. /* confdefs.h. */
  26820. _ACEOF
  26821. cat confdefs.h >>conftest.$ac_ext
  26822. cat >>conftest.$ac_ext <<_ACEOF
  26823. /* end confdefs.h. */
  26824. $ac_includes_default
  26825. typedef long ac__type_sizeof_;
  26826. int
  26827. main ()
  26828. {
  26829. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26830. test_array [0] = 0
  26831. ;
  26832. return 0;
  26833. }
  26834. _ACEOF
  26835. rm -f conftest.$ac_objext
  26836. if { (ac_try="$ac_compile"
  26837. case "(($ac_try" in
  26838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26839. *) ac_try_echo=$ac_try;;
  26840. esac
  26841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26842. (eval "$ac_compile") 2>conftest.er1
  26843. ac_status=$?
  26844. grep -v '^ *+' conftest.er1 >conftest.err
  26845. rm -f conftest.er1
  26846. cat conftest.err >&5
  26847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26848. (exit $ac_status); } && {
  26849. test -z "$ac_c_werror_flag" ||
  26850. test ! -s conftest.err
  26851. } && test -s conftest.$ac_objext; then
  26852. ac_hi=$ac_mid; break
  26853. else
  26854. echo "$as_me: failed program was:" >&5
  26855. sed 's/^/| /' conftest.$ac_ext >&5
  26856. ac_lo=`expr $ac_mid + 1`
  26857. if test $ac_lo -le $ac_mid; then
  26858. ac_lo= ac_hi=
  26859. break
  26860. fi
  26861. ac_mid=`expr 2 '*' $ac_mid + 1`
  26862. fi
  26863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26864. done
  26865. else
  26866. echo "$as_me: failed program was:" >&5
  26867. sed 's/^/| /' conftest.$ac_ext >&5
  26868. cat >conftest.$ac_ext <<_ACEOF
  26869. /* confdefs.h. */
  26870. _ACEOF
  26871. cat confdefs.h >>conftest.$ac_ext
  26872. cat >>conftest.$ac_ext <<_ACEOF
  26873. /* end confdefs.h. */
  26874. $ac_includes_default
  26875. typedef long ac__type_sizeof_;
  26876. int
  26877. main ()
  26878. {
  26879. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26880. test_array [0] = 0
  26881. ;
  26882. return 0;
  26883. }
  26884. _ACEOF
  26885. rm -f conftest.$ac_objext
  26886. if { (ac_try="$ac_compile"
  26887. case "(($ac_try" in
  26888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26889. *) ac_try_echo=$ac_try;;
  26890. esac
  26891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26892. (eval "$ac_compile") 2>conftest.er1
  26893. ac_status=$?
  26894. grep -v '^ *+' conftest.er1 >conftest.err
  26895. rm -f conftest.er1
  26896. cat conftest.err >&5
  26897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26898. (exit $ac_status); } && {
  26899. test -z "$ac_c_werror_flag" ||
  26900. test ! -s conftest.err
  26901. } && test -s conftest.$ac_objext; then
  26902. ac_hi=-1 ac_mid=-1
  26903. while :; do
  26904. cat >conftest.$ac_ext <<_ACEOF
  26905. /* confdefs.h. */
  26906. _ACEOF
  26907. cat confdefs.h >>conftest.$ac_ext
  26908. cat >>conftest.$ac_ext <<_ACEOF
  26909. /* end confdefs.h. */
  26910. $ac_includes_default
  26911. typedef long ac__type_sizeof_;
  26912. int
  26913. main ()
  26914. {
  26915. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26916. test_array [0] = 0
  26917. ;
  26918. return 0;
  26919. }
  26920. _ACEOF
  26921. rm -f conftest.$ac_objext
  26922. if { (ac_try="$ac_compile"
  26923. case "(($ac_try" in
  26924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26925. *) ac_try_echo=$ac_try;;
  26926. esac
  26927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26928. (eval "$ac_compile") 2>conftest.er1
  26929. ac_status=$?
  26930. grep -v '^ *+' conftest.er1 >conftest.err
  26931. rm -f conftest.er1
  26932. cat conftest.err >&5
  26933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26934. (exit $ac_status); } && {
  26935. test -z "$ac_c_werror_flag" ||
  26936. test ! -s conftest.err
  26937. } && test -s conftest.$ac_objext; then
  26938. ac_lo=$ac_mid; break
  26939. else
  26940. echo "$as_me: failed program was:" >&5
  26941. sed 's/^/| /' conftest.$ac_ext >&5
  26942. ac_hi=`expr '(' $ac_mid ')' - 1`
  26943. if test $ac_mid -le $ac_hi; then
  26944. ac_lo= ac_hi=
  26945. break
  26946. fi
  26947. ac_mid=`expr 2 '*' $ac_mid`
  26948. fi
  26949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26950. done
  26951. else
  26952. echo "$as_me: failed program was:" >&5
  26953. sed 's/^/| /' conftest.$ac_ext >&5
  26954. ac_lo= ac_hi=
  26955. fi
  26956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26957. fi
  26958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26959. # Binary search between lo and hi bounds.
  26960. while test "x$ac_lo" != "x$ac_hi"; do
  26961. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26962. cat >conftest.$ac_ext <<_ACEOF
  26963. /* confdefs.h. */
  26964. _ACEOF
  26965. cat confdefs.h >>conftest.$ac_ext
  26966. cat >>conftest.$ac_ext <<_ACEOF
  26967. /* end confdefs.h. */
  26968. $ac_includes_default
  26969. typedef long ac__type_sizeof_;
  26970. int
  26971. main ()
  26972. {
  26973. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26974. test_array [0] = 0
  26975. ;
  26976. return 0;
  26977. }
  26978. _ACEOF
  26979. rm -f conftest.$ac_objext
  26980. if { (ac_try="$ac_compile"
  26981. case "(($ac_try" in
  26982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26983. *) ac_try_echo=$ac_try;;
  26984. esac
  26985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26986. (eval "$ac_compile") 2>conftest.er1
  26987. ac_status=$?
  26988. grep -v '^ *+' conftest.er1 >conftest.err
  26989. rm -f conftest.er1
  26990. cat conftest.err >&5
  26991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26992. (exit $ac_status); } && {
  26993. test -z "$ac_c_werror_flag" ||
  26994. test ! -s conftest.err
  26995. } && test -s conftest.$ac_objext; then
  26996. ac_hi=$ac_mid
  26997. else
  26998. echo "$as_me: failed program was:" >&5
  26999. sed 's/^/| /' conftest.$ac_ext >&5
  27000. ac_lo=`expr '(' $ac_mid ')' + 1`
  27001. fi
  27002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27003. done
  27004. case $ac_lo in
  27005. ?*) ac_cv_sizeof_long=$ac_lo;;
  27006. '') if test "$ac_cv_type_long" = yes; then
  27007. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27008. See \`config.log' for more details." >&5
  27009. echo "$as_me: error: cannot compute sizeof (long)
  27010. See \`config.log' for more details." >&2;}
  27011. { (exit 77); exit 77; }; }
  27012. else
  27013. ac_cv_sizeof_long=0
  27014. fi ;;
  27015. esac
  27016. else
  27017. cat >conftest.$ac_ext <<_ACEOF
  27018. /* confdefs.h. */
  27019. _ACEOF
  27020. cat confdefs.h >>conftest.$ac_ext
  27021. cat >>conftest.$ac_ext <<_ACEOF
  27022. /* end confdefs.h. */
  27023. $ac_includes_default
  27024. typedef long ac__type_sizeof_;
  27025. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27026. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27027. #include <stdio.h>
  27028. #include <stdlib.h>
  27029. int
  27030. main ()
  27031. {
  27032. FILE *f = fopen ("conftest.val", "w");
  27033. if (! f)
  27034. return 1;
  27035. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27036. {
  27037. long int i = longval ();
  27038. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27039. return 1;
  27040. fprintf (f, "%ld\n", i);
  27041. }
  27042. else
  27043. {
  27044. unsigned long int i = ulongval ();
  27045. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27046. return 1;
  27047. fprintf (f, "%lu\n", i);
  27048. }
  27049. return ferror (f) || fclose (f) != 0;
  27050. ;
  27051. return 0;
  27052. }
  27053. _ACEOF
  27054. rm -f conftest$ac_exeext
  27055. if { (ac_try="$ac_link"
  27056. case "(($ac_try" in
  27057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27058. *) ac_try_echo=$ac_try;;
  27059. esac
  27060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27061. (eval "$ac_link") 2>&5
  27062. ac_status=$?
  27063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27064. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27065. { (case "(($ac_try" in
  27066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27067. *) ac_try_echo=$ac_try;;
  27068. esac
  27069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27070. (eval "$ac_try") 2>&5
  27071. ac_status=$?
  27072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27073. (exit $ac_status); }; }; then
  27074. ac_cv_sizeof_long=`cat conftest.val`
  27075. else
  27076. echo "$as_me: program exited with status $ac_status" >&5
  27077. echo "$as_me: failed program was:" >&5
  27078. sed 's/^/| /' conftest.$ac_ext >&5
  27079. ( exit $ac_status )
  27080. if test "$ac_cv_type_long" = yes; then
  27081. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27082. See \`config.log' for more details." >&5
  27083. echo "$as_me: error: cannot compute sizeof (long)
  27084. See \`config.log' for more details." >&2;}
  27085. { (exit 77); exit 77; }; }
  27086. else
  27087. ac_cv_sizeof_long=0
  27088. fi
  27089. fi
  27090. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27091. fi
  27092. rm -f conftest.val
  27093. fi
  27094. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  27095. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  27096. cat >>confdefs.h <<_ACEOF
  27097. #define SIZEOF_LONG $ac_cv_sizeof_long
  27098. _ACEOF
  27099. { echo "$as_me:$LINENO: checking for short" >&5
  27100. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  27101. if test "${ac_cv_type_short+set}" = set; then
  27102. echo $ECHO_N "(cached) $ECHO_C" >&6
  27103. else
  27104. cat >conftest.$ac_ext <<_ACEOF
  27105. /* confdefs.h. */
  27106. _ACEOF
  27107. cat confdefs.h >>conftest.$ac_ext
  27108. cat >>conftest.$ac_ext <<_ACEOF
  27109. /* end confdefs.h. */
  27110. $ac_includes_default
  27111. typedef short ac__type_new_;
  27112. int
  27113. main ()
  27114. {
  27115. if ((ac__type_new_ *) 0)
  27116. return 0;
  27117. if (sizeof (ac__type_new_))
  27118. return 0;
  27119. ;
  27120. return 0;
  27121. }
  27122. _ACEOF
  27123. rm -f conftest.$ac_objext
  27124. if { (ac_try="$ac_compile"
  27125. case "(($ac_try" in
  27126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27127. *) ac_try_echo=$ac_try;;
  27128. esac
  27129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27130. (eval "$ac_compile") 2>conftest.er1
  27131. ac_status=$?
  27132. grep -v '^ *+' conftest.er1 >conftest.err
  27133. rm -f conftest.er1
  27134. cat conftest.err >&5
  27135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27136. (exit $ac_status); } && {
  27137. test -z "$ac_c_werror_flag" ||
  27138. test ! -s conftest.err
  27139. } && test -s conftest.$ac_objext; then
  27140. ac_cv_type_short=yes
  27141. else
  27142. echo "$as_me: failed program was:" >&5
  27143. sed 's/^/| /' conftest.$ac_ext >&5
  27144. ac_cv_type_short=no
  27145. fi
  27146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27147. fi
  27148. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  27149. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  27150. # The cast to long int works around a bug in the HP C Compiler
  27151. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27152. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27153. # This bug is HP SR number 8606223364.
  27154. { echo "$as_me:$LINENO: checking size of short" >&5
  27155. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  27156. if test "${ac_cv_sizeof_short+set}" = set; then
  27157. echo $ECHO_N "(cached) $ECHO_C" >&6
  27158. else
  27159. if test "$cross_compiling" = yes; then
  27160. # Depending upon the size, compute the lo and hi bounds.
  27161. cat >conftest.$ac_ext <<_ACEOF
  27162. /* confdefs.h. */
  27163. _ACEOF
  27164. cat confdefs.h >>conftest.$ac_ext
  27165. cat >>conftest.$ac_ext <<_ACEOF
  27166. /* end confdefs.h. */
  27167. $ac_includes_default
  27168. typedef short ac__type_sizeof_;
  27169. int
  27170. main ()
  27171. {
  27172. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  27173. test_array [0] = 0
  27174. ;
  27175. return 0;
  27176. }
  27177. _ACEOF
  27178. rm -f conftest.$ac_objext
  27179. if { (ac_try="$ac_compile"
  27180. case "(($ac_try" in
  27181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27182. *) ac_try_echo=$ac_try;;
  27183. esac
  27184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27185. (eval "$ac_compile") 2>conftest.er1
  27186. ac_status=$?
  27187. grep -v '^ *+' conftest.er1 >conftest.err
  27188. rm -f conftest.er1
  27189. cat conftest.err >&5
  27190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27191. (exit $ac_status); } && {
  27192. test -z "$ac_c_werror_flag" ||
  27193. test ! -s conftest.err
  27194. } && test -s conftest.$ac_objext; then
  27195. ac_lo=0 ac_mid=0
  27196. while :; do
  27197. cat >conftest.$ac_ext <<_ACEOF
  27198. /* confdefs.h. */
  27199. _ACEOF
  27200. cat confdefs.h >>conftest.$ac_ext
  27201. cat >>conftest.$ac_ext <<_ACEOF
  27202. /* end confdefs.h. */
  27203. $ac_includes_default
  27204. typedef short ac__type_sizeof_;
  27205. int
  27206. main ()
  27207. {
  27208. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27209. test_array [0] = 0
  27210. ;
  27211. return 0;
  27212. }
  27213. _ACEOF
  27214. rm -f conftest.$ac_objext
  27215. if { (ac_try="$ac_compile"
  27216. case "(($ac_try" in
  27217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27218. *) ac_try_echo=$ac_try;;
  27219. esac
  27220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27221. (eval "$ac_compile") 2>conftest.er1
  27222. ac_status=$?
  27223. grep -v '^ *+' conftest.er1 >conftest.err
  27224. rm -f conftest.er1
  27225. cat conftest.err >&5
  27226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27227. (exit $ac_status); } && {
  27228. test -z "$ac_c_werror_flag" ||
  27229. test ! -s conftest.err
  27230. } && test -s conftest.$ac_objext; then
  27231. ac_hi=$ac_mid; break
  27232. else
  27233. echo "$as_me: failed program was:" >&5
  27234. sed 's/^/| /' conftest.$ac_ext >&5
  27235. ac_lo=`expr $ac_mid + 1`
  27236. if test $ac_lo -le $ac_mid; then
  27237. ac_lo= ac_hi=
  27238. break
  27239. fi
  27240. ac_mid=`expr 2 '*' $ac_mid + 1`
  27241. fi
  27242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27243. done
  27244. else
  27245. echo "$as_me: failed program was:" >&5
  27246. sed 's/^/| /' conftest.$ac_ext >&5
  27247. cat >conftest.$ac_ext <<_ACEOF
  27248. /* confdefs.h. */
  27249. _ACEOF
  27250. cat confdefs.h >>conftest.$ac_ext
  27251. cat >>conftest.$ac_ext <<_ACEOF
  27252. /* end confdefs.h. */
  27253. $ac_includes_default
  27254. typedef short ac__type_sizeof_;
  27255. int
  27256. main ()
  27257. {
  27258. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  27259. test_array [0] = 0
  27260. ;
  27261. return 0;
  27262. }
  27263. _ACEOF
  27264. rm -f conftest.$ac_objext
  27265. if { (ac_try="$ac_compile"
  27266. case "(($ac_try" in
  27267. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27268. *) ac_try_echo=$ac_try;;
  27269. esac
  27270. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27271. (eval "$ac_compile") 2>conftest.er1
  27272. ac_status=$?
  27273. grep -v '^ *+' conftest.er1 >conftest.err
  27274. rm -f conftest.er1
  27275. cat conftest.err >&5
  27276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27277. (exit $ac_status); } && {
  27278. test -z "$ac_c_werror_flag" ||
  27279. test ! -s conftest.err
  27280. } && test -s conftest.$ac_objext; then
  27281. ac_hi=-1 ac_mid=-1
  27282. while :; do
  27283. cat >conftest.$ac_ext <<_ACEOF
  27284. /* confdefs.h. */
  27285. _ACEOF
  27286. cat confdefs.h >>conftest.$ac_ext
  27287. cat >>conftest.$ac_ext <<_ACEOF
  27288. /* end confdefs.h. */
  27289. $ac_includes_default
  27290. typedef short ac__type_sizeof_;
  27291. int
  27292. main ()
  27293. {
  27294. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  27295. test_array [0] = 0
  27296. ;
  27297. return 0;
  27298. }
  27299. _ACEOF
  27300. rm -f conftest.$ac_objext
  27301. if { (ac_try="$ac_compile"
  27302. case "(($ac_try" in
  27303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27304. *) ac_try_echo=$ac_try;;
  27305. esac
  27306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27307. (eval "$ac_compile") 2>conftest.er1
  27308. ac_status=$?
  27309. grep -v '^ *+' conftest.er1 >conftest.err
  27310. rm -f conftest.er1
  27311. cat conftest.err >&5
  27312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27313. (exit $ac_status); } && {
  27314. test -z "$ac_c_werror_flag" ||
  27315. test ! -s conftest.err
  27316. } && test -s conftest.$ac_objext; then
  27317. ac_lo=$ac_mid; break
  27318. else
  27319. echo "$as_me: failed program was:" >&5
  27320. sed 's/^/| /' conftest.$ac_ext >&5
  27321. ac_hi=`expr '(' $ac_mid ')' - 1`
  27322. if test $ac_mid -le $ac_hi; then
  27323. ac_lo= ac_hi=
  27324. break
  27325. fi
  27326. ac_mid=`expr 2 '*' $ac_mid`
  27327. fi
  27328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27329. done
  27330. else
  27331. echo "$as_me: failed program was:" >&5
  27332. sed 's/^/| /' conftest.$ac_ext >&5
  27333. ac_lo= ac_hi=
  27334. fi
  27335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27336. fi
  27337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27338. # Binary search between lo and hi bounds.
  27339. while test "x$ac_lo" != "x$ac_hi"; do
  27340. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27341. cat >conftest.$ac_ext <<_ACEOF
  27342. /* confdefs.h. */
  27343. _ACEOF
  27344. cat confdefs.h >>conftest.$ac_ext
  27345. cat >>conftest.$ac_ext <<_ACEOF
  27346. /* end confdefs.h. */
  27347. $ac_includes_default
  27348. typedef short ac__type_sizeof_;
  27349. int
  27350. main ()
  27351. {
  27352. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27353. test_array [0] = 0
  27354. ;
  27355. return 0;
  27356. }
  27357. _ACEOF
  27358. rm -f conftest.$ac_objext
  27359. if { (ac_try="$ac_compile"
  27360. case "(($ac_try" in
  27361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27362. *) ac_try_echo=$ac_try;;
  27363. esac
  27364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27365. (eval "$ac_compile") 2>conftest.er1
  27366. ac_status=$?
  27367. grep -v '^ *+' conftest.er1 >conftest.err
  27368. rm -f conftest.er1
  27369. cat conftest.err >&5
  27370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27371. (exit $ac_status); } && {
  27372. test -z "$ac_c_werror_flag" ||
  27373. test ! -s conftest.err
  27374. } && test -s conftest.$ac_objext; then
  27375. ac_hi=$ac_mid
  27376. else
  27377. echo "$as_me: failed program was:" >&5
  27378. sed 's/^/| /' conftest.$ac_ext >&5
  27379. ac_lo=`expr '(' $ac_mid ')' + 1`
  27380. fi
  27381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27382. done
  27383. case $ac_lo in
  27384. ?*) ac_cv_sizeof_short=$ac_lo;;
  27385. '') if test "$ac_cv_type_short" = yes; then
  27386. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27387. See \`config.log' for more details." >&5
  27388. echo "$as_me: error: cannot compute sizeof (short)
  27389. See \`config.log' for more details." >&2;}
  27390. { (exit 77); exit 77; }; }
  27391. else
  27392. ac_cv_sizeof_short=0
  27393. fi ;;
  27394. esac
  27395. else
  27396. cat >conftest.$ac_ext <<_ACEOF
  27397. /* confdefs.h. */
  27398. _ACEOF
  27399. cat confdefs.h >>conftest.$ac_ext
  27400. cat >>conftest.$ac_ext <<_ACEOF
  27401. /* end confdefs.h. */
  27402. $ac_includes_default
  27403. typedef short ac__type_sizeof_;
  27404. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27405. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27406. #include <stdio.h>
  27407. #include <stdlib.h>
  27408. int
  27409. main ()
  27410. {
  27411. FILE *f = fopen ("conftest.val", "w");
  27412. if (! f)
  27413. return 1;
  27414. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27415. {
  27416. long int i = longval ();
  27417. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27418. return 1;
  27419. fprintf (f, "%ld\n", i);
  27420. }
  27421. else
  27422. {
  27423. unsigned long int i = ulongval ();
  27424. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27425. return 1;
  27426. fprintf (f, "%lu\n", i);
  27427. }
  27428. return ferror (f) || fclose (f) != 0;
  27429. ;
  27430. return 0;
  27431. }
  27432. _ACEOF
  27433. rm -f conftest$ac_exeext
  27434. if { (ac_try="$ac_link"
  27435. case "(($ac_try" in
  27436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27437. *) ac_try_echo=$ac_try;;
  27438. esac
  27439. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27440. (eval "$ac_link") 2>&5
  27441. ac_status=$?
  27442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27443. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27444. { (case "(($ac_try" in
  27445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27446. *) ac_try_echo=$ac_try;;
  27447. esac
  27448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27449. (eval "$ac_try") 2>&5
  27450. ac_status=$?
  27451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27452. (exit $ac_status); }; }; then
  27453. ac_cv_sizeof_short=`cat conftest.val`
  27454. else
  27455. echo "$as_me: program exited with status $ac_status" >&5
  27456. echo "$as_me: failed program was:" >&5
  27457. sed 's/^/| /' conftest.$ac_ext >&5
  27458. ( exit $ac_status )
  27459. if test "$ac_cv_type_short" = yes; then
  27460. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27461. See \`config.log' for more details." >&5
  27462. echo "$as_me: error: cannot compute sizeof (short)
  27463. See \`config.log' for more details." >&2;}
  27464. { (exit 77); exit 77; }; }
  27465. else
  27466. ac_cv_sizeof_short=0
  27467. fi
  27468. fi
  27469. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27470. fi
  27471. rm -f conftest.val
  27472. fi
  27473. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  27474. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  27475. cat >>confdefs.h <<_ACEOF
  27476. #define SIZEOF_SHORT $ac_cv_sizeof_short
  27477. _ACEOF
  27478. # ----------------------------------------------------------------------
  27479. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  27480. # ----------------------------------------------------------------------
  27481. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  27482. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  27483. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  27484. echo $ECHO_N "(cached) $ECHO_C" >&6
  27485. else
  27486. ac_check_lib_save_LIBS=$LIBS
  27487. LIBS="-lgen $LIBS"
  27488. cat >conftest.$ac_ext <<_ACEOF
  27489. /* confdefs.h. */
  27490. _ACEOF
  27491. cat confdefs.h >>conftest.$ac_ext
  27492. cat >>conftest.$ac_ext <<_ACEOF
  27493. /* end confdefs.h. */
  27494. /* Override any GCC internal prototype to avoid an error.
  27495. Use char because int might match the return type of a GCC
  27496. builtin and then its argument prototype would still apply. */
  27497. #ifdef __cplusplus
  27498. extern "C"
  27499. #endif
  27500. char pathfind ();
  27501. int
  27502. main ()
  27503. {
  27504. return pathfind ();
  27505. ;
  27506. return 0;
  27507. }
  27508. _ACEOF
  27509. rm -f conftest.$ac_objext conftest$ac_exeext
  27510. if { (ac_try="$ac_link"
  27511. case "(($ac_try" in
  27512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27513. *) ac_try_echo=$ac_try;;
  27514. esac
  27515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27516. (eval "$ac_link") 2>conftest.er1
  27517. ac_status=$?
  27518. grep -v '^ *+' conftest.er1 >conftest.err
  27519. rm -f conftest.er1
  27520. cat conftest.err >&5
  27521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27522. (exit $ac_status); } && {
  27523. test -z "$ac_c_werror_flag" ||
  27524. test ! -s conftest.err
  27525. } && test -s conftest$ac_exeext &&
  27526. $as_test_x conftest$ac_exeext; then
  27527. ac_cv_lib_gen_pathfind=yes
  27528. else
  27529. echo "$as_me: failed program was:" >&5
  27530. sed 's/^/| /' conftest.$ac_ext >&5
  27531. ac_cv_lib_gen_pathfind=no
  27532. fi
  27533. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27534. conftest$ac_exeext conftest.$ac_ext
  27535. LIBS=$ac_check_lib_save_LIBS
  27536. fi
  27537. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27538. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  27539. if test $ac_cv_lib_gen_pathfind = yes; then
  27540. cat >>confdefs.h <<_ACEOF
  27541. #define HAVE_LIBGEN 1
  27542. _ACEOF
  27543. LIBS="-lgen $LIBS"
  27544. fi
  27545. for ac_func in vprintf
  27546. do
  27547. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27548. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27549. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27550. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27551. echo $ECHO_N "(cached) $ECHO_C" >&6
  27552. else
  27553. cat >conftest.$ac_ext <<_ACEOF
  27554. /* confdefs.h. */
  27555. _ACEOF
  27556. cat confdefs.h >>conftest.$ac_ext
  27557. cat >>conftest.$ac_ext <<_ACEOF
  27558. /* end confdefs.h. */
  27559. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27560. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27561. #define $ac_func innocuous_$ac_func
  27562. /* System header to define __stub macros and hopefully few prototypes,
  27563. which can conflict with char $ac_func (); below.
  27564. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27565. <limits.h> exists even on freestanding compilers. */
  27566. #ifdef __STDC__
  27567. # include <limits.h>
  27568. #else
  27569. # include <assert.h>
  27570. #endif
  27571. #undef $ac_func
  27572. /* Override any GCC internal prototype to avoid an error.
  27573. Use char because int might match the return type of a GCC
  27574. builtin and then its argument prototype would still apply. */
  27575. #ifdef __cplusplus
  27576. extern "C"
  27577. #endif
  27578. char $ac_func ();
  27579. /* The GNU C library defines this for functions which it implements
  27580. to always fail with ENOSYS. Some functions are actually named
  27581. something starting with __ and the normal name is an alias. */
  27582. #if defined __stub_$ac_func || defined __stub___$ac_func
  27583. choke me
  27584. #endif
  27585. int
  27586. main ()
  27587. {
  27588. return $ac_func ();
  27589. ;
  27590. return 0;
  27591. }
  27592. _ACEOF
  27593. rm -f conftest.$ac_objext conftest$ac_exeext
  27594. if { (ac_try="$ac_link"
  27595. case "(($ac_try" in
  27596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27597. *) ac_try_echo=$ac_try;;
  27598. esac
  27599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27600. (eval "$ac_link") 2>conftest.er1
  27601. ac_status=$?
  27602. grep -v '^ *+' conftest.er1 >conftest.err
  27603. rm -f conftest.er1
  27604. cat conftest.err >&5
  27605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27606. (exit $ac_status); } && {
  27607. test -z "$ac_c_werror_flag" ||
  27608. test ! -s conftest.err
  27609. } && test -s conftest$ac_exeext &&
  27610. $as_test_x conftest$ac_exeext; then
  27611. eval "$as_ac_var=yes"
  27612. else
  27613. echo "$as_me: failed program was:" >&5
  27614. sed 's/^/| /' conftest.$ac_ext >&5
  27615. eval "$as_ac_var=no"
  27616. fi
  27617. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27618. conftest$ac_exeext conftest.$ac_ext
  27619. fi
  27620. ac_res=`eval echo '${'$as_ac_var'}'`
  27621. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27622. echo "${ECHO_T}$ac_res" >&6; }
  27623. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27624. cat >>confdefs.h <<_ACEOF
  27625. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27626. _ACEOF
  27627. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  27628. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  27629. if test "${ac_cv_func__doprnt+set}" = set; then
  27630. echo $ECHO_N "(cached) $ECHO_C" >&6
  27631. else
  27632. cat >conftest.$ac_ext <<_ACEOF
  27633. /* confdefs.h. */
  27634. _ACEOF
  27635. cat confdefs.h >>conftest.$ac_ext
  27636. cat >>conftest.$ac_ext <<_ACEOF
  27637. /* end confdefs.h. */
  27638. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  27639. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27640. #define _doprnt innocuous__doprnt
  27641. /* System header to define __stub macros and hopefully few prototypes,
  27642. which can conflict with char _doprnt (); below.
  27643. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27644. <limits.h> exists even on freestanding compilers. */
  27645. #ifdef __STDC__
  27646. # include <limits.h>
  27647. #else
  27648. # include <assert.h>
  27649. #endif
  27650. #undef _doprnt
  27651. /* Override any GCC internal prototype to avoid an error.
  27652. Use char because int might match the return type of a GCC
  27653. builtin and then its argument prototype would still apply. */
  27654. #ifdef __cplusplus
  27655. extern "C"
  27656. #endif
  27657. char _doprnt ();
  27658. /* The GNU C library defines this for functions which it implements
  27659. to always fail with ENOSYS. Some functions are actually named
  27660. something starting with __ and the normal name is an alias. */
  27661. #if defined __stub__doprnt || defined __stub____doprnt
  27662. choke me
  27663. #endif
  27664. int
  27665. main ()
  27666. {
  27667. return _doprnt ();
  27668. ;
  27669. return 0;
  27670. }
  27671. _ACEOF
  27672. rm -f conftest.$ac_objext conftest$ac_exeext
  27673. if { (ac_try="$ac_link"
  27674. case "(($ac_try" in
  27675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27676. *) ac_try_echo=$ac_try;;
  27677. esac
  27678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27679. (eval "$ac_link") 2>conftest.er1
  27680. ac_status=$?
  27681. grep -v '^ *+' conftest.er1 >conftest.err
  27682. rm -f conftest.er1
  27683. cat conftest.err >&5
  27684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27685. (exit $ac_status); } && {
  27686. test -z "$ac_c_werror_flag" ||
  27687. test ! -s conftest.err
  27688. } && test -s conftest$ac_exeext &&
  27689. $as_test_x conftest$ac_exeext; then
  27690. ac_cv_func__doprnt=yes
  27691. else
  27692. echo "$as_me: failed program was:" >&5
  27693. sed 's/^/| /' conftest.$ac_ext >&5
  27694. ac_cv_func__doprnt=no
  27695. fi
  27696. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27697. conftest$ac_exeext conftest.$ac_ext
  27698. fi
  27699. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  27700. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  27701. if test $ac_cv_func__doprnt = yes; then
  27702. cat >>confdefs.h <<\_ACEOF
  27703. #define HAVE_DOPRNT 1
  27704. _ACEOF
  27705. fi
  27706. fi
  27707. done
  27708. for ac_func in strsignal mmap canonicalize_file_name snprintf strdup strchr strrchr
  27709. do
  27710. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27711. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27712. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27713. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27714. echo $ECHO_N "(cached) $ECHO_C" >&6
  27715. else
  27716. cat >conftest.$ac_ext <<_ACEOF
  27717. /* confdefs.h. */
  27718. _ACEOF
  27719. cat confdefs.h >>conftest.$ac_ext
  27720. cat >>conftest.$ac_ext <<_ACEOF
  27721. /* end confdefs.h. */
  27722. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27723. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27724. #define $ac_func innocuous_$ac_func
  27725. /* System header to define __stub macros and hopefully few prototypes,
  27726. which can conflict with char $ac_func (); below.
  27727. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27728. <limits.h> exists even on freestanding compilers. */
  27729. #ifdef __STDC__
  27730. # include <limits.h>
  27731. #else
  27732. # include <assert.h>
  27733. #endif
  27734. #undef $ac_func
  27735. /* Override any GCC internal prototype to avoid an error.
  27736. Use char because int might match the return type of a GCC
  27737. builtin and then its argument prototype would still apply. */
  27738. #ifdef __cplusplus
  27739. extern "C"
  27740. #endif
  27741. char $ac_func ();
  27742. /* The GNU C library defines this for functions which it implements
  27743. to always fail with ENOSYS. Some functions are actually named
  27744. something starting with __ and the normal name is an alias. */
  27745. #if defined __stub_$ac_func || defined __stub___$ac_func
  27746. choke me
  27747. #endif
  27748. int
  27749. main ()
  27750. {
  27751. return $ac_func ();
  27752. ;
  27753. return 0;
  27754. }
  27755. _ACEOF
  27756. rm -f conftest.$ac_objext conftest$ac_exeext
  27757. if { (ac_try="$ac_link"
  27758. case "(($ac_try" in
  27759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27760. *) ac_try_echo=$ac_try;;
  27761. esac
  27762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27763. (eval "$ac_link") 2>conftest.er1
  27764. ac_status=$?
  27765. grep -v '^ *+' conftest.er1 >conftest.err
  27766. rm -f conftest.er1
  27767. cat conftest.err >&5
  27768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27769. (exit $ac_status); } && {
  27770. test -z "$ac_c_werror_flag" ||
  27771. test ! -s conftest.err
  27772. } && test -s conftest$ac_exeext &&
  27773. $as_test_x conftest$ac_exeext; then
  27774. eval "$as_ac_var=yes"
  27775. else
  27776. echo "$as_me: failed program was:" >&5
  27777. sed 's/^/| /' conftest.$ac_ext >&5
  27778. eval "$as_ac_var=no"
  27779. fi
  27780. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27781. conftest$ac_exeext conftest.$ac_ext
  27782. fi
  27783. ac_res=`eval echo '${'$as_ac_var'}'`
  27784. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27785. echo "${ECHO_T}$ac_res" >&6; }
  27786. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27787. cat >>confdefs.h <<_ACEOF
  27788. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27789. _ACEOF
  27790. fi
  27791. done
  27792. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  27793. fi
  27794. # Check to see if a reg expr header is specified.
  27795. # Check whether --with-regex-header was given.
  27796. if test "${with_regex_header+set}" = set; then
  27797. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  27798. else
  27799. { echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  27800. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6; }
  27801. if test "${libopts_cv_with_regex_header+set}" = set; then
  27802. echo $ECHO_N "(cached) $ECHO_C" >&6
  27803. else
  27804. libopts_cv_with_regex_header=no
  27805. fi
  27806. { echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  27807. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6; }
  27808. fi
  27809. # end of AC_ARG_WITH
  27810. if test "X${libopts_cv_with_regex_header}" != Xno
  27811. then
  27812. cat >>confdefs.h <<_ACEOF
  27813. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  27814. _ACEOF
  27815. else
  27816. cat >>confdefs.h <<\_ACEOF
  27817. #define REGEX_HEADER <regex.h>
  27818. _ACEOF
  27819. fi
  27820. # Check to see if a working libregex can be found.
  27821. # Check whether --with-libregex was given.
  27822. if test "${with_libregex+set}" = set; then
  27823. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  27824. else
  27825. { echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  27826. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6; }
  27827. if test "${libopts_cv_with_libregex_root+set}" = set; then
  27828. echo $ECHO_N "(cached) $ECHO_C" >&6
  27829. else
  27830. libopts_cv_with_libregex_root=no
  27831. fi
  27832. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  27833. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6; }
  27834. fi
  27835. # end of AC_ARG_WITH libregex
  27836. if test "${with_libguile+set}" = set && \
  27837. test "${withval}" = no
  27838. then ## disabled by request
  27839. libopts_cv_with_libregex_root=no
  27840. libopts_cv_with_libregex_cflags=no
  27841. libopts_cv_with_libregex_libs=no
  27842. else
  27843. # Check whether --with-libregex-cflags was given.
  27844. if test "${with_libregex_cflags+set}" = set; then
  27845. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  27846. else
  27847. { echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  27848. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6; }
  27849. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  27850. echo $ECHO_N "(cached) $ECHO_C" >&6
  27851. else
  27852. libopts_cv_with_libregex_cflags=no
  27853. fi
  27854. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  27855. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6; }
  27856. fi
  27857. # end of AC_ARG_WITH libregex-cflags
  27858. # Check whether --with-libregex-libs was given.
  27859. if test "${with_libregex_libs+set}" = set; then
  27860. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  27861. else
  27862. { echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  27863. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6; }
  27864. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  27865. echo $ECHO_N "(cached) $ECHO_C" >&6
  27866. else
  27867. libopts_cv_with_libregex_libs=no
  27868. fi
  27869. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  27870. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6; }
  27871. fi
  27872. # end of AC_ARG_WITH libregex-libs
  27873. case "X${libopts_cv_with_libregex_cflags}" in
  27874. Xyes|Xno|X )
  27875. case "X${libopts_cv_with_libregex_root}" in
  27876. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  27877. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  27878. esac
  27879. esac
  27880. case "X${libopts_cv_with_libregex_libs}" in
  27881. Xyes|Xno|X )
  27882. case "X${libopts_cv_with_libregex_root}" in
  27883. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  27884. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  27885. esac
  27886. esac
  27887. libopts_save_CPPFLAGS="${CPPFLAGS}"
  27888. libopts_save_LIBS="${LIBS}"
  27889. fi ## disabled by request
  27890. case "X${libopts_cv_with_libregex_cflags}" in
  27891. Xyes|Xno|X )
  27892. libopts_cv_with_libregex_cflags="" ;;
  27893. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  27894. esac
  27895. case "X${libopts_cv_with_libregex_libs}" in
  27896. Xyes|Xno|X )
  27897. libopts_cv_with_libregex_libs="" ;;
  27898. * )
  27899. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  27900. esac
  27901. LIBREGEX_CFLAGS=""
  27902. LIBREGEX_LIBS=""
  27903. { echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  27904. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6; }
  27905. if test "${libopts_cv_with_libregex+set}" = set; then
  27906. echo $ECHO_N "(cached) $ECHO_C" >&6
  27907. else
  27908. if test "$cross_compiling" = yes; then
  27909. libopts_cv_with_libregex=no
  27910. else
  27911. cat >conftest.$ac_ext <<_ACEOF
  27912. /* confdefs.h. */
  27913. _ACEOF
  27914. cat confdefs.h >>conftest.$ac_ext
  27915. cat >>conftest.$ac_ext <<_ACEOF
  27916. /* end confdefs.h. */
  27917. #include <stdio.h>
  27918. #include <stdlib.h>
  27919. #include <sys/types.h>
  27920. #include REGEX_HEADER
  27921. static regex_t re;
  27922. void comp_re( char const* pzPat ) {
  27923. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  27924. if (res == 0) return;
  27925. exit( res ); }
  27926. int main() {
  27927. regmatch_t m[2];
  27928. comp_re( "^.*\$" );
  27929. comp_re( "()|no.*" );
  27930. comp_re( "." );
  27931. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  27932. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  27933. fputs( "error: regex -->.<-- did not match\n", stderr );
  27934. return 1;
  27935. }
  27936. return 0; }
  27937. _ACEOF
  27938. rm -f conftest$ac_exeext
  27939. if { (ac_try="$ac_link"
  27940. case "(($ac_try" in
  27941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27942. *) ac_try_echo=$ac_try;;
  27943. esac
  27944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27945. (eval "$ac_link") 2>&5
  27946. ac_status=$?
  27947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27948. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27949. { (case "(($ac_try" in
  27950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27951. *) ac_try_echo=$ac_try;;
  27952. esac
  27953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27954. (eval "$ac_try") 2>&5
  27955. ac_status=$?
  27956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27957. (exit $ac_status); }; }; then
  27958. libopts_cv_with_libregex=yes
  27959. else
  27960. echo "$as_me: program exited with status $ac_status" >&5
  27961. echo "$as_me: failed program was:" >&5
  27962. sed 's/^/| /' conftest.$ac_ext >&5
  27963. ( exit $ac_status )
  27964. libopts_cv_with_libregex=no
  27965. fi
  27966. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27967. fi
  27968. # end of AC_TRY_RUN
  27969. fi
  27970. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  27971. { echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  27972. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6; }
  27973. if test "X${libopts_cv_with_libregex}" != Xno
  27974. then
  27975. cat >>confdefs.h <<\_ACEOF
  27976. #define WITH_LIBREGEX 1
  27977. _ACEOF
  27978. else
  27979. CPPFLAGS="${libopts_save_CPPFLAGS}"
  27980. LIBS="${libopts_save_LIBS}"
  27981. fi
  27982. # Check to see if pathfind(3) works.
  27983. { echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  27984. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6; }
  27985. if test "${libopts_cv_run_pathfind+set}" = set; then
  27986. echo $ECHO_N "(cached) $ECHO_C" >&6
  27987. else
  27988. if test "$cross_compiling" = yes; then
  27989. libopts_cv_run_pathfind=no
  27990. else
  27991. cat >conftest.$ac_ext <<_ACEOF
  27992. /* confdefs.h. */
  27993. _ACEOF
  27994. cat confdefs.h >>conftest.$ac_ext
  27995. cat >>conftest.$ac_ext <<_ACEOF
  27996. /* end confdefs.h. */
  27997. #include <string.h>
  27998. #include <stdlib.h>
  27999. int main (int argc, char** argv) {
  28000. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  28001. return (pz == 0) ? 1 : 0;
  28002. }
  28003. _ACEOF
  28004. rm -f conftest$ac_exeext
  28005. if { (ac_try="$ac_link"
  28006. case "(($ac_try" in
  28007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28008. *) ac_try_echo=$ac_try;;
  28009. esac
  28010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28011. (eval "$ac_link") 2>&5
  28012. ac_status=$?
  28013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28014. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28015. { (case "(($ac_try" in
  28016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28017. *) ac_try_echo=$ac_try;;
  28018. esac
  28019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28020. (eval "$ac_try") 2>&5
  28021. ac_status=$?
  28022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28023. (exit $ac_status); }; }; then
  28024. libopts_cv_run_pathfind=yes
  28025. else
  28026. echo "$as_me: program exited with status $ac_status" >&5
  28027. echo "$as_me: failed program was:" >&5
  28028. sed 's/^/| /' conftest.$ac_ext >&5
  28029. ( exit $ac_status )
  28030. libopts_cv_run_pathfind=no
  28031. fi
  28032. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28033. fi
  28034. # end of TRY_RUN
  28035. fi
  28036. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  28037. { echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  28038. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6; }
  28039. if test "X${libopts_cv_run_pathfind}" != Xno
  28040. then
  28041. cat >>confdefs.h <<\_ACEOF
  28042. #define HAVE_PATHFIND 1
  28043. _ACEOF
  28044. fi
  28045. # Check to see if /dev/zero is readable device.
  28046. { echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  28047. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6; }
  28048. if test "${libopts_cv_test_dev_zero+set}" = set; then
  28049. echo $ECHO_N "(cached) $ECHO_C" >&6
  28050. else
  28051. libopts_cv_test_dev_zero=`exec 2> /dev/null
  28052. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  28053. test -z "${dzero}" && exit 1
  28054. echo ${dzero}`
  28055. if test $? -ne 0
  28056. then libopts_cv_test_dev_zero=no
  28057. elif test -z "$libopts_cv_test_dev_zero"
  28058. then libopts_cv_test_dev_zero=no
  28059. fi
  28060. fi
  28061. # end of CACHE_VAL of libopts_cv_test_dev_zero
  28062. { echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  28063. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6; }
  28064. if test "X${libopts_cv_test_dev_zero}" != Xno
  28065. then
  28066. cat >>confdefs.h <<\_ACEOF
  28067. #define HAVE_DEV_ZERO 1
  28068. _ACEOF
  28069. fi
  28070. # Check to see if we have a functional realpath(3C).
  28071. { echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  28072. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6; }
  28073. if test "${libopts_cv_run_realpath+set}" = set; then
  28074. echo $ECHO_N "(cached) $ECHO_C" >&6
  28075. else
  28076. if test "$cross_compiling" = yes; then
  28077. libopts_cv_run_realpath=no
  28078. else
  28079. cat >conftest.$ac_ext <<_ACEOF
  28080. /* confdefs.h. */
  28081. _ACEOF
  28082. cat confdefs.h >>conftest.$ac_ext
  28083. cat >>conftest.$ac_ext <<_ACEOF
  28084. /* end confdefs.h. */
  28085. #include <limits.h>
  28086. #include <stdlib.h>
  28087. int main (int argc, char** argv) {
  28088. #ifndef PATH_MAX
  28089. choke me!!
  28090. #else
  28091. char zPath[PATH_MAX+1];
  28092. #endif
  28093. char *pz = realpath(argv[0], zPath);
  28094. return (pz == zPath) ? 0 : 1;
  28095. }
  28096. _ACEOF
  28097. rm -f conftest$ac_exeext
  28098. if { (ac_try="$ac_link"
  28099. case "(($ac_try" in
  28100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28101. *) ac_try_echo=$ac_try;;
  28102. esac
  28103. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28104. (eval "$ac_link") 2>&5
  28105. ac_status=$?
  28106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28107. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28108. { (case "(($ac_try" in
  28109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28110. *) ac_try_echo=$ac_try;;
  28111. esac
  28112. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28113. (eval "$ac_try") 2>&5
  28114. ac_status=$?
  28115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28116. (exit $ac_status); }; }; then
  28117. libopts_cv_run_realpath=yes
  28118. else
  28119. echo "$as_me: program exited with status $ac_status" >&5
  28120. echo "$as_me: failed program was:" >&5
  28121. sed 's/^/| /' conftest.$ac_ext >&5
  28122. ( exit $ac_status )
  28123. libopts_cv_run_realpath=no
  28124. fi
  28125. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28126. fi
  28127. # end of TRY_RUN
  28128. fi
  28129. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  28130. { echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  28131. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6; }
  28132. if test "X${libopts_cv_run_realpath}" != Xno
  28133. then
  28134. cat >>confdefs.h <<\_ACEOF
  28135. #define HAVE_REALPATH 1
  28136. _ACEOF
  28137. fi
  28138. # Check to see if strftime() works.
  28139. { echo "$as_me:$LINENO: checking whether strftime() works" >&5
  28140. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6; }
  28141. if test "${libopts_cv_run_strftime+set}" = set; then
  28142. echo $ECHO_N "(cached) $ECHO_C" >&6
  28143. else
  28144. if test "$cross_compiling" = yes; then
  28145. libopts_cv_run_strftime=no
  28146. else
  28147. cat >conftest.$ac_ext <<_ACEOF
  28148. /* confdefs.h. */
  28149. _ACEOF
  28150. cat confdefs.h >>conftest.$ac_ext
  28151. cat >>conftest.$ac_ext <<_ACEOF
  28152. /* end confdefs.h. */
  28153. #include <time.h>
  28154. #include <string.h>
  28155. char t_buf[ 64 ];
  28156. int main() {
  28157. static char const z[] = "Thursday Aug 28 240";
  28158. struct tm tm;
  28159. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  28160. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  28161. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  28162. tm.tm_mday = 28; /* day of the month [1, 31] */
  28163. tm.tm_mon = 7; /* months since January [0, 11] */
  28164. tm.tm_year = 86; /* years since 1900 */
  28165. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  28166. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  28167. tm.tm_isdst = 1; /* flag for daylight savings time */
  28168. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  28169. return (strcmp( t_buf, z ) != 0); }
  28170. _ACEOF
  28171. rm -f conftest$ac_exeext
  28172. if { (ac_try="$ac_link"
  28173. case "(($ac_try" in
  28174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28175. *) ac_try_echo=$ac_try;;
  28176. esac
  28177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28178. (eval "$ac_link") 2>&5
  28179. ac_status=$?
  28180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28181. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28182. { (case "(($ac_try" in
  28183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28184. *) ac_try_echo=$ac_try;;
  28185. esac
  28186. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28187. (eval "$ac_try") 2>&5
  28188. ac_status=$?
  28189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28190. (exit $ac_status); }; }; then
  28191. libopts_cv_run_strftime=yes
  28192. else
  28193. echo "$as_me: program exited with status $ac_status" >&5
  28194. echo "$as_me: failed program was:" >&5
  28195. sed 's/^/| /' conftest.$ac_ext >&5
  28196. ( exit $ac_status )
  28197. libopts_cv_run_strftime=no
  28198. fi
  28199. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28200. fi
  28201. # end of TRY_RUN
  28202. fi
  28203. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  28204. { echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  28205. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6; }
  28206. if test "X${libopts_cv_run_strftime}" != Xno
  28207. then
  28208. cat >>confdefs.h <<\_ACEOF
  28209. #define HAVE_STRFTIME 1
  28210. _ACEOF
  28211. fi
  28212. # Check to see if fopen accepts "b" mode.
  28213. { echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  28214. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6; }
  28215. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  28216. echo $ECHO_N "(cached) $ECHO_C" >&6
  28217. else
  28218. if test "$cross_compiling" = yes; then
  28219. libopts_cv_run_fopen_binary=no
  28220. else
  28221. cat >conftest.$ac_ext <<_ACEOF
  28222. /* confdefs.h. */
  28223. _ACEOF
  28224. cat confdefs.h >>conftest.$ac_ext
  28225. cat >>conftest.$ac_ext <<_ACEOF
  28226. /* end confdefs.h. */
  28227. #include <stdio.h>
  28228. int main (int argc, char** argv) {
  28229. FILE* fp = fopen("conftest.$ac_ext", "rb");
  28230. return (fp == NULL) ? 1 : fclose(fp); }
  28231. _ACEOF
  28232. rm -f conftest$ac_exeext
  28233. if { (ac_try="$ac_link"
  28234. case "(($ac_try" in
  28235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28236. *) ac_try_echo=$ac_try;;
  28237. esac
  28238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28239. (eval "$ac_link") 2>&5
  28240. ac_status=$?
  28241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28242. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28243. { (case "(($ac_try" in
  28244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28245. *) ac_try_echo=$ac_try;;
  28246. esac
  28247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28248. (eval "$ac_try") 2>&5
  28249. ac_status=$?
  28250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28251. (exit $ac_status); }; }; then
  28252. libopts_cv_run_fopen_binary=yes
  28253. else
  28254. echo "$as_me: program exited with status $ac_status" >&5
  28255. echo "$as_me: failed program was:" >&5
  28256. sed 's/^/| /' conftest.$ac_ext >&5
  28257. ( exit $ac_status )
  28258. libopts_cv_run_fopen_binary=no
  28259. fi
  28260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28261. fi
  28262. # end of TRY_RUN
  28263. fi
  28264. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  28265. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  28266. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6; }
  28267. if test "X${libopts_cv_run_fopen_binary}" != Xno
  28268. then
  28269. cat >>confdefs.h <<\_ACEOF
  28270. #define FOPEN_BINARY_FLAG "b"
  28271. _ACEOF
  28272. else
  28273. cat >>confdefs.h <<\_ACEOF
  28274. #define FOPEN_BINARY_FLAG ""
  28275. _ACEOF
  28276. fi
  28277. # Check to see if fopen accepts "t" mode.
  28278. { echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  28279. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6; }
  28280. if test "${libopts_cv_run_fopen_text+set}" = set; then
  28281. echo $ECHO_N "(cached) $ECHO_C" >&6
  28282. else
  28283. if test "$cross_compiling" = yes; then
  28284. libopts_cv_run_fopen_text=no
  28285. else
  28286. cat >conftest.$ac_ext <<_ACEOF
  28287. /* confdefs.h. */
  28288. _ACEOF
  28289. cat confdefs.h >>conftest.$ac_ext
  28290. cat >>conftest.$ac_ext <<_ACEOF
  28291. /* end confdefs.h. */
  28292. #include <stdio.h>
  28293. int main (int argc, char** argv) {
  28294. FILE* fp = fopen("conftest.$ac_ext", "rt");
  28295. return (fp == NULL) ? 1 : fclose(fp); }
  28296. _ACEOF
  28297. rm -f conftest$ac_exeext
  28298. if { (ac_try="$ac_link"
  28299. case "(($ac_try" in
  28300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28301. *) ac_try_echo=$ac_try;;
  28302. esac
  28303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28304. (eval "$ac_link") 2>&5
  28305. ac_status=$?
  28306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28307. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28308. { (case "(($ac_try" in
  28309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28310. *) ac_try_echo=$ac_try;;
  28311. esac
  28312. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28313. (eval "$ac_try") 2>&5
  28314. ac_status=$?
  28315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28316. (exit $ac_status); }; }; then
  28317. libopts_cv_run_fopen_text=yes
  28318. else
  28319. echo "$as_me: program exited with status $ac_status" >&5
  28320. echo "$as_me: failed program was:" >&5
  28321. sed 's/^/| /' conftest.$ac_ext >&5
  28322. ( exit $ac_status )
  28323. libopts_cv_run_fopen_text=no
  28324. fi
  28325. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28326. fi
  28327. # end of TRY_RUN
  28328. fi
  28329. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  28330. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  28331. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6; }
  28332. if test "X${libopts_cv_run_fopen_text}" != Xno
  28333. then
  28334. cat >>confdefs.h <<\_ACEOF
  28335. #define FOPEN_TEXT_FLAG "t"
  28336. _ACEOF
  28337. else
  28338. cat >>confdefs.h <<\_ACEOF
  28339. #define FOPEN_TEXT_FLAG ""
  28340. _ACEOF
  28341. fi
  28342. # Check to see if not wanting optional option args.
  28343. # Check whether --enable-optional-args was given.
  28344. if test "${enable_optional_args+set}" = set; then
  28345. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  28346. else
  28347. { echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
  28348. echo $ECHO_N "checking whether not wanting optional option args... $ECHO_C" >&6; }
  28349. if test "${libopts_cv_enable_optional_args+set}" = set; then
  28350. echo $ECHO_N "(cached) $ECHO_C" >&6
  28351. else
  28352. libopts_cv_enable_optional_args=yes
  28353. fi
  28354. { echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
  28355. echo "${ECHO_T}$libopts_cv_enable_optional_args" >&6; }
  28356. fi
  28357. # end of AC_ARG_ENABLE
  28358. if test "X${libopts_cv_enable_optional_args}" = Xno
  28359. then
  28360. cat >>confdefs.h <<\_ACEOF
  28361. #define NO_OPTIONAL_OPT_ARGS 1
  28362. _ACEOF
  28363. fi
  28364. else
  28365. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  28366. # =================
  28367. # AC_HEADER_STDC
  28368. # =================
  28369. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  28370. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  28371. if test "${ac_cv_header_stdc+set}" = set; then
  28372. echo $ECHO_N "(cached) $ECHO_C" >&6
  28373. else
  28374. cat >conftest.$ac_ext <<_ACEOF
  28375. /* confdefs.h. */
  28376. _ACEOF
  28377. cat confdefs.h >>conftest.$ac_ext
  28378. cat >>conftest.$ac_ext <<_ACEOF
  28379. /* end confdefs.h. */
  28380. #include <stdlib.h>
  28381. #include <stdarg.h>
  28382. #include <string.h>
  28383. #include <float.h>
  28384. int
  28385. main ()
  28386. {
  28387. ;
  28388. return 0;
  28389. }
  28390. _ACEOF
  28391. rm -f conftest.$ac_objext
  28392. if { (ac_try="$ac_compile"
  28393. case "(($ac_try" in
  28394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28395. *) ac_try_echo=$ac_try;;
  28396. esac
  28397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28398. (eval "$ac_compile") 2>conftest.er1
  28399. ac_status=$?
  28400. grep -v '^ *+' conftest.er1 >conftest.err
  28401. rm -f conftest.er1
  28402. cat conftest.err >&5
  28403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28404. (exit $ac_status); } && {
  28405. test -z "$ac_c_werror_flag" ||
  28406. test ! -s conftest.err
  28407. } && test -s conftest.$ac_objext; then
  28408. ac_cv_header_stdc=yes
  28409. else
  28410. echo "$as_me: failed program was:" >&5
  28411. sed 's/^/| /' conftest.$ac_ext >&5
  28412. ac_cv_header_stdc=no
  28413. fi
  28414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28415. if test $ac_cv_header_stdc = yes; then
  28416. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  28417. cat >conftest.$ac_ext <<_ACEOF
  28418. /* confdefs.h. */
  28419. _ACEOF
  28420. cat confdefs.h >>conftest.$ac_ext
  28421. cat >>conftest.$ac_ext <<_ACEOF
  28422. /* end confdefs.h. */
  28423. #include <string.h>
  28424. _ACEOF
  28425. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28426. $EGREP "memchr" >/dev/null 2>&1; then
  28427. :
  28428. else
  28429. ac_cv_header_stdc=no
  28430. fi
  28431. rm -f conftest*
  28432. fi
  28433. if test $ac_cv_header_stdc = yes; then
  28434. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  28435. cat >conftest.$ac_ext <<_ACEOF
  28436. /* confdefs.h. */
  28437. _ACEOF
  28438. cat confdefs.h >>conftest.$ac_ext
  28439. cat >>conftest.$ac_ext <<_ACEOF
  28440. /* end confdefs.h. */
  28441. #include <stdlib.h>
  28442. _ACEOF
  28443. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28444. $EGREP "free" >/dev/null 2>&1; then
  28445. :
  28446. else
  28447. ac_cv_header_stdc=no
  28448. fi
  28449. rm -f conftest*
  28450. fi
  28451. if test $ac_cv_header_stdc = yes; then
  28452. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  28453. if test "$cross_compiling" = yes; then
  28454. :
  28455. else
  28456. cat >conftest.$ac_ext <<_ACEOF
  28457. /* confdefs.h. */
  28458. _ACEOF
  28459. cat confdefs.h >>conftest.$ac_ext
  28460. cat >>conftest.$ac_ext <<_ACEOF
  28461. /* end confdefs.h. */
  28462. #include <ctype.h>
  28463. #include <stdlib.h>
  28464. #if ((' ' & 0x0FF) == 0x020)
  28465. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  28466. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  28467. #else
  28468. # define ISLOWER(c) \
  28469. (('a' <= (c) && (c) <= 'i') \
  28470. || ('j' <= (c) && (c) <= 'r') \
  28471. || ('s' <= (c) && (c) <= 'z'))
  28472. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  28473. #endif
  28474. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  28475. int
  28476. main ()
  28477. {
  28478. int i;
  28479. for (i = 0; i < 256; i++)
  28480. if (XOR (islower (i), ISLOWER (i))
  28481. || toupper (i) != TOUPPER (i))
  28482. return 2;
  28483. return 0;
  28484. }
  28485. _ACEOF
  28486. rm -f conftest$ac_exeext
  28487. if { (ac_try="$ac_link"
  28488. case "(($ac_try" in
  28489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28490. *) ac_try_echo=$ac_try;;
  28491. esac
  28492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28493. (eval "$ac_link") 2>&5
  28494. ac_status=$?
  28495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28496. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28497. { (case "(($ac_try" in
  28498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28499. *) ac_try_echo=$ac_try;;
  28500. esac
  28501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28502. (eval "$ac_try") 2>&5
  28503. ac_status=$?
  28504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28505. (exit $ac_status); }; }; then
  28506. :
  28507. else
  28508. echo "$as_me: program exited with status $ac_status" >&5
  28509. echo "$as_me: failed program was:" >&5
  28510. sed 's/^/| /' conftest.$ac_ext >&5
  28511. ( exit $ac_status )
  28512. ac_cv_header_stdc=no
  28513. fi
  28514. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28515. fi
  28516. fi
  28517. fi
  28518. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  28519. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  28520. if test $ac_cv_header_stdc = yes; then
  28521. cat >>confdefs.h <<\_ACEOF
  28522. #define STDC_HEADERS 1
  28523. _ACEOF
  28524. fi
  28525. # =================
  28526. # AC_HEADER_DIRENT
  28527. # =================
  28528. ac_header_dirent=no
  28529. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  28530. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  28531. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  28532. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  28533. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28534. echo $ECHO_N "(cached) $ECHO_C" >&6
  28535. else
  28536. cat >conftest.$ac_ext <<_ACEOF
  28537. /* confdefs.h. */
  28538. _ACEOF
  28539. cat confdefs.h >>conftest.$ac_ext
  28540. cat >>conftest.$ac_ext <<_ACEOF
  28541. /* end confdefs.h. */
  28542. #include <sys/types.h>
  28543. #include <$ac_hdr>
  28544. int
  28545. main ()
  28546. {
  28547. if ((DIR *) 0)
  28548. return 0;
  28549. ;
  28550. return 0;
  28551. }
  28552. _ACEOF
  28553. rm -f conftest.$ac_objext
  28554. if { (ac_try="$ac_compile"
  28555. case "(($ac_try" in
  28556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28557. *) ac_try_echo=$ac_try;;
  28558. esac
  28559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28560. (eval "$ac_compile") 2>conftest.er1
  28561. ac_status=$?
  28562. grep -v '^ *+' conftest.er1 >conftest.err
  28563. rm -f conftest.er1
  28564. cat conftest.err >&5
  28565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28566. (exit $ac_status); } && {
  28567. test -z "$ac_c_werror_flag" ||
  28568. test ! -s conftest.err
  28569. } && test -s conftest.$ac_objext; then
  28570. eval "$as_ac_Header=yes"
  28571. else
  28572. echo "$as_me: failed program was:" >&5
  28573. sed 's/^/| /' conftest.$ac_ext >&5
  28574. eval "$as_ac_Header=no"
  28575. fi
  28576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28577. fi
  28578. ac_res=`eval echo '${'$as_ac_Header'}'`
  28579. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28580. echo "${ECHO_T}$ac_res" >&6; }
  28581. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28582. cat >>confdefs.h <<_ACEOF
  28583. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  28584. _ACEOF
  28585. ac_header_dirent=$ac_hdr; break
  28586. fi
  28587. done
  28588. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  28589. if test $ac_header_dirent = dirent.h; then
  28590. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28591. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28592. if test "${ac_cv_search_opendir+set}" = set; then
  28593. echo $ECHO_N "(cached) $ECHO_C" >&6
  28594. else
  28595. ac_func_search_save_LIBS=$LIBS
  28596. cat >conftest.$ac_ext <<_ACEOF
  28597. /* confdefs.h. */
  28598. _ACEOF
  28599. cat confdefs.h >>conftest.$ac_ext
  28600. cat >>conftest.$ac_ext <<_ACEOF
  28601. /* end confdefs.h. */
  28602. /* Override any GCC internal prototype to avoid an error.
  28603. Use char because int might match the return type of a GCC
  28604. builtin and then its argument prototype would still apply. */
  28605. #ifdef __cplusplus
  28606. extern "C"
  28607. #endif
  28608. char opendir ();
  28609. int
  28610. main ()
  28611. {
  28612. return opendir ();
  28613. ;
  28614. return 0;
  28615. }
  28616. _ACEOF
  28617. for ac_lib in '' dir; do
  28618. if test -z "$ac_lib"; then
  28619. ac_res="none required"
  28620. else
  28621. ac_res=-l$ac_lib
  28622. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28623. fi
  28624. rm -f conftest.$ac_objext conftest$ac_exeext
  28625. if { (ac_try="$ac_link"
  28626. case "(($ac_try" in
  28627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28628. *) ac_try_echo=$ac_try;;
  28629. esac
  28630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28631. (eval "$ac_link") 2>conftest.er1
  28632. ac_status=$?
  28633. grep -v '^ *+' conftest.er1 >conftest.err
  28634. rm -f conftest.er1
  28635. cat conftest.err >&5
  28636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28637. (exit $ac_status); } && {
  28638. test -z "$ac_c_werror_flag" ||
  28639. test ! -s conftest.err
  28640. } && test -s conftest$ac_exeext &&
  28641. $as_test_x conftest$ac_exeext; then
  28642. ac_cv_search_opendir=$ac_res
  28643. else
  28644. echo "$as_me: failed program was:" >&5
  28645. sed 's/^/| /' conftest.$ac_ext >&5
  28646. fi
  28647. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28648. conftest$ac_exeext
  28649. if test "${ac_cv_search_opendir+set}" = set; then
  28650. break
  28651. fi
  28652. done
  28653. if test "${ac_cv_search_opendir+set}" = set; then
  28654. :
  28655. else
  28656. ac_cv_search_opendir=no
  28657. fi
  28658. rm conftest.$ac_ext
  28659. LIBS=$ac_func_search_save_LIBS
  28660. fi
  28661. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28662. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28663. ac_res=$ac_cv_search_opendir
  28664. if test "$ac_res" != no; then
  28665. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28666. fi
  28667. else
  28668. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28669. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28670. if test "${ac_cv_search_opendir+set}" = set; then
  28671. echo $ECHO_N "(cached) $ECHO_C" >&6
  28672. else
  28673. ac_func_search_save_LIBS=$LIBS
  28674. cat >conftest.$ac_ext <<_ACEOF
  28675. /* confdefs.h. */
  28676. _ACEOF
  28677. cat confdefs.h >>conftest.$ac_ext
  28678. cat >>conftest.$ac_ext <<_ACEOF
  28679. /* end confdefs.h. */
  28680. /* Override any GCC internal prototype to avoid an error.
  28681. Use char because int might match the return type of a GCC
  28682. builtin and then its argument prototype would still apply. */
  28683. #ifdef __cplusplus
  28684. extern "C"
  28685. #endif
  28686. char opendir ();
  28687. int
  28688. main ()
  28689. {
  28690. return opendir ();
  28691. ;
  28692. return 0;
  28693. }
  28694. _ACEOF
  28695. for ac_lib in '' x; do
  28696. if test -z "$ac_lib"; then
  28697. ac_res="none required"
  28698. else
  28699. ac_res=-l$ac_lib
  28700. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28701. fi
  28702. rm -f conftest.$ac_objext conftest$ac_exeext
  28703. if { (ac_try="$ac_link"
  28704. case "(($ac_try" in
  28705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28706. *) ac_try_echo=$ac_try;;
  28707. esac
  28708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28709. (eval "$ac_link") 2>conftest.er1
  28710. ac_status=$?
  28711. grep -v '^ *+' conftest.er1 >conftest.err
  28712. rm -f conftest.er1
  28713. cat conftest.err >&5
  28714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28715. (exit $ac_status); } && {
  28716. test -z "$ac_c_werror_flag" ||
  28717. test ! -s conftest.err
  28718. } && test -s conftest$ac_exeext &&
  28719. $as_test_x conftest$ac_exeext; then
  28720. ac_cv_search_opendir=$ac_res
  28721. else
  28722. echo "$as_me: failed program was:" >&5
  28723. sed 's/^/| /' conftest.$ac_ext >&5
  28724. fi
  28725. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28726. conftest$ac_exeext
  28727. if test "${ac_cv_search_opendir+set}" = set; then
  28728. break
  28729. fi
  28730. done
  28731. if test "${ac_cv_search_opendir+set}" = set; then
  28732. :
  28733. else
  28734. ac_cv_search_opendir=no
  28735. fi
  28736. rm conftest.$ac_ext
  28737. LIBS=$ac_func_search_save_LIBS
  28738. fi
  28739. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28740. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28741. ac_res=$ac_cv_search_opendir
  28742. if test "$ac_res" != no; then
  28743. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28744. fi
  28745. fi
  28746. # =================
  28747. # AC_CHECK_HEADERS
  28748. # =================
  28749. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  28750. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  28751. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  28752. utime.h sysexits.h
  28753. do
  28754. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28755. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28756. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28757. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28758. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28759. echo $ECHO_N "(cached) $ECHO_C" >&6
  28760. fi
  28761. ac_res=`eval echo '${'$as_ac_Header'}'`
  28762. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28763. echo "${ECHO_T}$ac_res" >&6; }
  28764. else
  28765. # Is the header compilable?
  28766. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28767. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28768. cat >conftest.$ac_ext <<_ACEOF
  28769. /* confdefs.h. */
  28770. _ACEOF
  28771. cat confdefs.h >>conftest.$ac_ext
  28772. cat >>conftest.$ac_ext <<_ACEOF
  28773. /* end confdefs.h. */
  28774. $ac_includes_default
  28775. #include <$ac_header>
  28776. _ACEOF
  28777. rm -f conftest.$ac_objext
  28778. if { (ac_try="$ac_compile"
  28779. case "(($ac_try" in
  28780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28781. *) ac_try_echo=$ac_try;;
  28782. esac
  28783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28784. (eval "$ac_compile") 2>conftest.er1
  28785. ac_status=$?
  28786. grep -v '^ *+' conftest.er1 >conftest.err
  28787. rm -f conftest.er1
  28788. cat conftest.err >&5
  28789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28790. (exit $ac_status); } && {
  28791. test -z "$ac_c_werror_flag" ||
  28792. test ! -s conftest.err
  28793. } && test -s conftest.$ac_objext; then
  28794. ac_header_compiler=yes
  28795. else
  28796. echo "$as_me: failed program was:" >&5
  28797. sed 's/^/| /' conftest.$ac_ext >&5
  28798. ac_header_compiler=no
  28799. fi
  28800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28801. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28802. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28803. # Is the header present?
  28804. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28805. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28806. cat >conftest.$ac_ext <<_ACEOF
  28807. /* confdefs.h. */
  28808. _ACEOF
  28809. cat confdefs.h >>conftest.$ac_ext
  28810. cat >>conftest.$ac_ext <<_ACEOF
  28811. /* end confdefs.h. */
  28812. #include <$ac_header>
  28813. _ACEOF
  28814. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28815. case "(($ac_try" in
  28816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28817. *) ac_try_echo=$ac_try;;
  28818. esac
  28819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28820. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28821. ac_status=$?
  28822. grep -v '^ *+' conftest.er1 >conftest.err
  28823. rm -f conftest.er1
  28824. cat conftest.err >&5
  28825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28826. (exit $ac_status); } >/dev/null && {
  28827. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28828. test ! -s conftest.err
  28829. }; then
  28830. ac_header_preproc=yes
  28831. else
  28832. echo "$as_me: failed program was:" >&5
  28833. sed 's/^/| /' conftest.$ac_ext >&5
  28834. ac_header_preproc=no
  28835. fi
  28836. rm -f conftest.err conftest.$ac_ext
  28837. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28838. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28839. # So? What about this header?
  28840. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28841. yes:no: )
  28842. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28843. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28844. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28845. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28846. ac_header_preproc=yes
  28847. ;;
  28848. no:yes:* )
  28849. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28850. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28851. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28852. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28853. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28854. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28855. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28856. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28857. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28858. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28859. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28860. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28861. ;;
  28862. esac
  28863. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28864. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28865. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28866. echo $ECHO_N "(cached) $ECHO_C" >&6
  28867. else
  28868. eval "$as_ac_Header=\$ac_header_preproc"
  28869. fi
  28870. ac_res=`eval echo '${'$as_ac_Header'}'`
  28871. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28872. echo "${ECHO_T}$ac_res" >&6; }
  28873. fi
  28874. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28875. cat >>confdefs.h <<_ACEOF
  28876. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28877. _ACEOF
  28878. fi
  28879. done
  28880. # --------------------------------------------
  28881. # Verify certain entries from AC_CHECK_HEADERS
  28882. # --------------------------------------------
  28883. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  28884. string errno stdlib memory setjmp
  28885. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  28886. test "${as_ac_var}" = set || \
  28887. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  28888. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  28889. { (exit 1); exit 1; }; }
  28890. done
  28891. # ================================================
  28892. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  28893. # if varargs.h is present define HAVE_VARARGS_H.
  28894. # ================================================
  28895. for ac_header in stdarg.h varargs.h
  28896. do
  28897. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28898. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28899. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28900. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28901. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28902. echo $ECHO_N "(cached) $ECHO_C" >&6
  28903. fi
  28904. ac_res=`eval echo '${'$as_ac_Header'}'`
  28905. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28906. echo "${ECHO_T}$ac_res" >&6; }
  28907. else
  28908. # Is the header compilable?
  28909. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28910. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28911. cat >conftest.$ac_ext <<_ACEOF
  28912. /* confdefs.h. */
  28913. _ACEOF
  28914. cat confdefs.h >>conftest.$ac_ext
  28915. cat >>conftest.$ac_ext <<_ACEOF
  28916. /* end confdefs.h. */
  28917. $ac_includes_default
  28918. #include <$ac_header>
  28919. _ACEOF
  28920. rm -f conftest.$ac_objext
  28921. if { (ac_try="$ac_compile"
  28922. case "(($ac_try" in
  28923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28924. *) ac_try_echo=$ac_try;;
  28925. esac
  28926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28927. (eval "$ac_compile") 2>conftest.er1
  28928. ac_status=$?
  28929. grep -v '^ *+' conftest.er1 >conftest.err
  28930. rm -f conftest.er1
  28931. cat conftest.err >&5
  28932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28933. (exit $ac_status); } && {
  28934. test -z "$ac_c_werror_flag" ||
  28935. test ! -s conftest.err
  28936. } && test -s conftest.$ac_objext; then
  28937. ac_header_compiler=yes
  28938. else
  28939. echo "$as_me: failed program was:" >&5
  28940. sed 's/^/| /' conftest.$ac_ext >&5
  28941. ac_header_compiler=no
  28942. fi
  28943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28944. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28945. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28946. # Is the header present?
  28947. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28948. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28949. cat >conftest.$ac_ext <<_ACEOF
  28950. /* confdefs.h. */
  28951. _ACEOF
  28952. cat confdefs.h >>conftest.$ac_ext
  28953. cat >>conftest.$ac_ext <<_ACEOF
  28954. /* end confdefs.h. */
  28955. #include <$ac_header>
  28956. _ACEOF
  28957. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28958. case "(($ac_try" in
  28959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28960. *) ac_try_echo=$ac_try;;
  28961. esac
  28962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28963. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28964. ac_status=$?
  28965. grep -v '^ *+' conftest.er1 >conftest.err
  28966. rm -f conftest.er1
  28967. cat conftest.err >&5
  28968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28969. (exit $ac_status); } >/dev/null && {
  28970. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28971. test ! -s conftest.err
  28972. }; then
  28973. ac_header_preproc=yes
  28974. else
  28975. echo "$as_me: failed program was:" >&5
  28976. sed 's/^/| /' conftest.$ac_ext >&5
  28977. ac_header_preproc=no
  28978. fi
  28979. rm -f conftest.err conftest.$ac_ext
  28980. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28981. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28982. # So? What about this header?
  28983. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28984. yes:no: )
  28985. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28986. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28987. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28988. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28989. ac_header_preproc=yes
  28990. ;;
  28991. no:yes:* )
  28992. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28993. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28994. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28995. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28996. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28997. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28998. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28999. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29000. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29001. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29002. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29003. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29004. ;;
  29005. esac
  29006. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29008. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29009. echo $ECHO_N "(cached) $ECHO_C" >&6
  29010. else
  29011. eval "$as_ac_Header=\$ac_header_preproc"
  29012. fi
  29013. ac_res=`eval echo '${'$as_ac_Header'}'`
  29014. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29015. echo "${ECHO_T}$ac_res" >&6; }
  29016. fi
  29017. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29018. cat >>confdefs.h <<_ACEOF
  29019. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29020. _ACEOF
  29021. break
  29022. fi
  29023. done
  29024. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29025. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  29026. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  29027. { (exit 1); exit 1; }; }
  29028. fi
  29029. # ================================================
  29030. # Similarly for the string.h and strings.h headers
  29031. # ================================================
  29032. for ac_header in string.h strings.h
  29033. do
  29034. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29035. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29036. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29037. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29038. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29039. echo $ECHO_N "(cached) $ECHO_C" >&6
  29040. fi
  29041. ac_res=`eval echo '${'$as_ac_Header'}'`
  29042. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29043. echo "${ECHO_T}$ac_res" >&6; }
  29044. else
  29045. # Is the header compilable?
  29046. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29047. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29048. cat >conftest.$ac_ext <<_ACEOF
  29049. /* confdefs.h. */
  29050. _ACEOF
  29051. cat confdefs.h >>conftest.$ac_ext
  29052. cat >>conftest.$ac_ext <<_ACEOF
  29053. /* end confdefs.h. */
  29054. $ac_includes_default
  29055. #include <$ac_header>
  29056. _ACEOF
  29057. rm -f conftest.$ac_objext
  29058. if { (ac_try="$ac_compile"
  29059. case "(($ac_try" in
  29060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29061. *) ac_try_echo=$ac_try;;
  29062. esac
  29063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29064. (eval "$ac_compile") 2>conftest.er1
  29065. ac_status=$?
  29066. grep -v '^ *+' conftest.er1 >conftest.err
  29067. rm -f conftest.er1
  29068. cat conftest.err >&5
  29069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29070. (exit $ac_status); } && {
  29071. test -z "$ac_c_werror_flag" ||
  29072. test ! -s conftest.err
  29073. } && test -s conftest.$ac_objext; then
  29074. ac_header_compiler=yes
  29075. else
  29076. echo "$as_me: failed program was:" >&5
  29077. sed 's/^/| /' conftest.$ac_ext >&5
  29078. ac_header_compiler=no
  29079. fi
  29080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29081. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29082. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29083. # Is the header present?
  29084. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29085. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29086. cat >conftest.$ac_ext <<_ACEOF
  29087. /* confdefs.h. */
  29088. _ACEOF
  29089. cat confdefs.h >>conftest.$ac_ext
  29090. cat >>conftest.$ac_ext <<_ACEOF
  29091. /* end confdefs.h. */
  29092. #include <$ac_header>
  29093. _ACEOF
  29094. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29095. case "(($ac_try" in
  29096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29097. *) ac_try_echo=$ac_try;;
  29098. esac
  29099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29100. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29101. ac_status=$?
  29102. grep -v '^ *+' conftest.er1 >conftest.err
  29103. rm -f conftest.er1
  29104. cat conftest.err >&5
  29105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29106. (exit $ac_status); } >/dev/null && {
  29107. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29108. test ! -s conftest.err
  29109. }; then
  29110. ac_header_preproc=yes
  29111. else
  29112. echo "$as_me: failed program was:" >&5
  29113. sed 's/^/| /' conftest.$ac_ext >&5
  29114. ac_header_preproc=no
  29115. fi
  29116. rm -f conftest.err conftest.$ac_ext
  29117. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29118. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29119. # So? What about this header?
  29120. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29121. yes:no: )
  29122. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29123. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29124. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29125. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29126. ac_header_preproc=yes
  29127. ;;
  29128. no:yes:* )
  29129. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29130. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29131. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29132. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29133. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29134. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29135. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29136. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29137. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29138. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29139. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29140. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29141. ;;
  29142. esac
  29143. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29144. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29145. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29146. echo $ECHO_N "(cached) $ECHO_C" >&6
  29147. else
  29148. eval "$as_ac_Header=\$ac_header_preproc"
  29149. fi
  29150. ac_res=`eval echo '${'$as_ac_Header'}'`
  29151. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29152. echo "${ECHO_T}$ac_res" >&6; }
  29153. fi
  29154. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29155. cat >>confdefs.h <<_ACEOF
  29156. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29157. _ACEOF
  29158. break
  29159. fi
  29160. done
  29161. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29162. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  29163. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  29164. { (exit 1); exit 1; }; }
  29165. fi
  29166. # =====================
  29167. # ...and limits headers
  29168. # =====================
  29169. for ac_header in limits.h sys/limits.h values.h
  29170. do
  29171. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29172. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29173. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29174. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29175. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29176. echo $ECHO_N "(cached) $ECHO_C" >&6
  29177. fi
  29178. ac_res=`eval echo '${'$as_ac_Header'}'`
  29179. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29180. echo "${ECHO_T}$ac_res" >&6; }
  29181. else
  29182. # Is the header compilable?
  29183. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29184. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29185. cat >conftest.$ac_ext <<_ACEOF
  29186. /* confdefs.h. */
  29187. _ACEOF
  29188. cat confdefs.h >>conftest.$ac_ext
  29189. cat >>conftest.$ac_ext <<_ACEOF
  29190. /* end confdefs.h. */
  29191. $ac_includes_default
  29192. #include <$ac_header>
  29193. _ACEOF
  29194. rm -f conftest.$ac_objext
  29195. if { (ac_try="$ac_compile"
  29196. case "(($ac_try" in
  29197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29198. *) ac_try_echo=$ac_try;;
  29199. esac
  29200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29201. (eval "$ac_compile") 2>conftest.er1
  29202. ac_status=$?
  29203. grep -v '^ *+' conftest.er1 >conftest.err
  29204. rm -f conftest.er1
  29205. cat conftest.err >&5
  29206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29207. (exit $ac_status); } && {
  29208. test -z "$ac_c_werror_flag" ||
  29209. test ! -s conftest.err
  29210. } && test -s conftest.$ac_objext; then
  29211. ac_header_compiler=yes
  29212. else
  29213. echo "$as_me: failed program was:" >&5
  29214. sed 's/^/| /' conftest.$ac_ext >&5
  29215. ac_header_compiler=no
  29216. fi
  29217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29218. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29219. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29220. # Is the header present?
  29221. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29222. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29223. cat >conftest.$ac_ext <<_ACEOF
  29224. /* confdefs.h. */
  29225. _ACEOF
  29226. cat confdefs.h >>conftest.$ac_ext
  29227. cat >>conftest.$ac_ext <<_ACEOF
  29228. /* end confdefs.h. */
  29229. #include <$ac_header>
  29230. _ACEOF
  29231. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29232. case "(($ac_try" in
  29233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29234. *) ac_try_echo=$ac_try;;
  29235. esac
  29236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29237. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29238. ac_status=$?
  29239. grep -v '^ *+' conftest.er1 >conftest.err
  29240. rm -f conftest.er1
  29241. cat conftest.err >&5
  29242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29243. (exit $ac_status); } >/dev/null && {
  29244. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29245. test ! -s conftest.err
  29246. }; then
  29247. ac_header_preproc=yes
  29248. else
  29249. echo "$as_me: failed program was:" >&5
  29250. sed 's/^/| /' conftest.$ac_ext >&5
  29251. ac_header_preproc=no
  29252. fi
  29253. rm -f conftest.err conftest.$ac_ext
  29254. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29255. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29256. # So? What about this header?
  29257. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29258. yes:no: )
  29259. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29260. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29261. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29262. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29263. ac_header_preproc=yes
  29264. ;;
  29265. no:yes:* )
  29266. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29267. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29268. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29269. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29270. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29271. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29272. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29273. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29274. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29275. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29276. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29277. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29278. ;;
  29279. esac
  29280. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29281. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29282. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29283. echo $ECHO_N "(cached) $ECHO_C" >&6
  29284. else
  29285. eval "$as_ac_Header=\$ac_header_preproc"
  29286. fi
  29287. ac_res=`eval echo '${'$as_ac_Header'}'`
  29288. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29289. echo "${ECHO_T}$ac_res" >&6; }
  29290. fi
  29291. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29292. cat >>confdefs.h <<_ACEOF
  29293. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29294. _ACEOF
  29295. break
  29296. fi
  29297. done
  29298. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  29299. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  29300. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  29301. { (exit 1); exit 1; }; }
  29302. fi
  29303. # ========================
  29304. # ...and int types headers
  29305. # ========================
  29306. for ac_header in stdint.h inttypes.h
  29307. do
  29308. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29309. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29310. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29312. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29313. echo $ECHO_N "(cached) $ECHO_C" >&6
  29314. fi
  29315. ac_res=`eval echo '${'$as_ac_Header'}'`
  29316. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29317. echo "${ECHO_T}$ac_res" >&6; }
  29318. else
  29319. # Is the header compilable?
  29320. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  29321. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  29322. cat >conftest.$ac_ext <<_ACEOF
  29323. /* confdefs.h. */
  29324. _ACEOF
  29325. cat confdefs.h >>conftest.$ac_ext
  29326. cat >>conftest.$ac_ext <<_ACEOF
  29327. /* end confdefs.h. */
  29328. $ac_includes_default
  29329. #include <$ac_header>
  29330. _ACEOF
  29331. rm -f conftest.$ac_objext
  29332. if { (ac_try="$ac_compile"
  29333. case "(($ac_try" in
  29334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29335. *) ac_try_echo=$ac_try;;
  29336. esac
  29337. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29338. (eval "$ac_compile") 2>conftest.er1
  29339. ac_status=$?
  29340. grep -v '^ *+' conftest.er1 >conftest.err
  29341. rm -f conftest.er1
  29342. cat conftest.err >&5
  29343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29344. (exit $ac_status); } && {
  29345. test -z "$ac_c_werror_flag" ||
  29346. test ! -s conftest.err
  29347. } && test -s conftest.$ac_objext; then
  29348. ac_header_compiler=yes
  29349. else
  29350. echo "$as_me: failed program was:" >&5
  29351. sed 's/^/| /' conftest.$ac_ext >&5
  29352. ac_header_compiler=no
  29353. fi
  29354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29355. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29356. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29357. # Is the header present?
  29358. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29359. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29360. cat >conftest.$ac_ext <<_ACEOF
  29361. /* confdefs.h. */
  29362. _ACEOF
  29363. cat confdefs.h >>conftest.$ac_ext
  29364. cat >>conftest.$ac_ext <<_ACEOF
  29365. /* end confdefs.h. */
  29366. #include <$ac_header>
  29367. _ACEOF
  29368. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29369. case "(($ac_try" in
  29370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29371. *) ac_try_echo=$ac_try;;
  29372. esac
  29373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29374. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29375. ac_status=$?
  29376. grep -v '^ *+' conftest.er1 >conftest.err
  29377. rm -f conftest.er1
  29378. cat conftest.err >&5
  29379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29380. (exit $ac_status); } >/dev/null && {
  29381. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29382. test ! -s conftest.err
  29383. }; then
  29384. ac_header_preproc=yes
  29385. else
  29386. echo "$as_me: failed program was:" >&5
  29387. sed 's/^/| /' conftest.$ac_ext >&5
  29388. ac_header_preproc=no
  29389. fi
  29390. rm -f conftest.err conftest.$ac_ext
  29391. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29392. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29393. # So? What about this header?
  29394. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29395. yes:no: )
  29396. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29397. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29398. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29399. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29400. ac_header_preproc=yes
  29401. ;;
  29402. no:yes:* )
  29403. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29404. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29405. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29406. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29407. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29408. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29409. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29410. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29411. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29412. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29413. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29414. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29415. ;;
  29416. esac
  29417. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29418. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29419. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29420. echo $ECHO_N "(cached) $ECHO_C" >&6
  29421. else
  29422. eval "$as_ac_Header=\$ac_header_preproc"
  29423. fi
  29424. ac_res=`eval echo '${'$as_ac_Header'}'`
  29425. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29426. echo "${ECHO_T}$ac_res" >&6; }
  29427. fi
  29428. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29429. cat >>confdefs.h <<_ACEOF
  29430. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29431. _ACEOF
  29432. break
  29433. fi
  29434. done
  29435. { echo "$as_me:$LINENO: checking for int8_t" >&5
  29436. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  29437. if test "${ac_cv_type_int8_t+set}" = set; then
  29438. echo $ECHO_N "(cached) $ECHO_C" >&6
  29439. else
  29440. cat >conftest.$ac_ext <<_ACEOF
  29441. /* confdefs.h. */
  29442. _ACEOF
  29443. cat confdefs.h >>conftest.$ac_ext
  29444. cat >>conftest.$ac_ext <<_ACEOF
  29445. /* end confdefs.h. */
  29446. $ac_includes_default
  29447. typedef int8_t ac__type_new_;
  29448. int
  29449. main ()
  29450. {
  29451. if ((ac__type_new_ *) 0)
  29452. return 0;
  29453. if (sizeof (ac__type_new_))
  29454. return 0;
  29455. ;
  29456. return 0;
  29457. }
  29458. _ACEOF
  29459. rm -f conftest.$ac_objext
  29460. if { (ac_try="$ac_compile"
  29461. case "(($ac_try" in
  29462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29463. *) ac_try_echo=$ac_try;;
  29464. esac
  29465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29466. (eval "$ac_compile") 2>conftest.er1
  29467. ac_status=$?
  29468. grep -v '^ *+' conftest.er1 >conftest.err
  29469. rm -f conftest.er1
  29470. cat conftest.err >&5
  29471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29472. (exit $ac_status); } && {
  29473. test -z "$ac_c_werror_flag" ||
  29474. test ! -s conftest.err
  29475. } && test -s conftest.$ac_objext; then
  29476. ac_cv_type_int8_t=yes
  29477. else
  29478. echo "$as_me: failed program was:" >&5
  29479. sed 's/^/| /' conftest.$ac_ext >&5
  29480. ac_cv_type_int8_t=no
  29481. fi
  29482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29483. fi
  29484. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  29485. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  29486. if test $ac_cv_type_int8_t = yes; then
  29487. cat >>confdefs.h <<_ACEOF
  29488. #define HAVE_INT8_T 1
  29489. _ACEOF
  29490. fi
  29491. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  29492. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  29493. if test "${ac_cv_type_uint8_t+set}" = set; then
  29494. echo $ECHO_N "(cached) $ECHO_C" >&6
  29495. else
  29496. cat >conftest.$ac_ext <<_ACEOF
  29497. /* confdefs.h. */
  29498. _ACEOF
  29499. cat confdefs.h >>conftest.$ac_ext
  29500. cat >>conftest.$ac_ext <<_ACEOF
  29501. /* end confdefs.h. */
  29502. $ac_includes_default
  29503. typedef uint8_t ac__type_new_;
  29504. int
  29505. main ()
  29506. {
  29507. if ((ac__type_new_ *) 0)
  29508. return 0;
  29509. if (sizeof (ac__type_new_))
  29510. return 0;
  29511. ;
  29512. return 0;
  29513. }
  29514. _ACEOF
  29515. rm -f conftest.$ac_objext
  29516. if { (ac_try="$ac_compile"
  29517. case "(($ac_try" in
  29518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29519. *) ac_try_echo=$ac_try;;
  29520. esac
  29521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29522. (eval "$ac_compile") 2>conftest.er1
  29523. ac_status=$?
  29524. grep -v '^ *+' conftest.er1 >conftest.err
  29525. rm -f conftest.er1
  29526. cat conftest.err >&5
  29527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29528. (exit $ac_status); } && {
  29529. test -z "$ac_c_werror_flag" ||
  29530. test ! -s conftest.err
  29531. } && test -s conftest.$ac_objext; then
  29532. ac_cv_type_uint8_t=yes
  29533. else
  29534. echo "$as_me: failed program was:" >&5
  29535. sed 's/^/| /' conftest.$ac_ext >&5
  29536. ac_cv_type_uint8_t=no
  29537. fi
  29538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29539. fi
  29540. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  29541. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  29542. if test $ac_cv_type_uint8_t = yes; then
  29543. cat >>confdefs.h <<_ACEOF
  29544. #define HAVE_UINT8_T 1
  29545. _ACEOF
  29546. fi
  29547. { echo "$as_me:$LINENO: checking for int16_t" >&5
  29548. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  29549. if test "${ac_cv_type_int16_t+set}" = set; then
  29550. echo $ECHO_N "(cached) $ECHO_C" >&6
  29551. else
  29552. cat >conftest.$ac_ext <<_ACEOF
  29553. /* confdefs.h. */
  29554. _ACEOF
  29555. cat confdefs.h >>conftest.$ac_ext
  29556. cat >>conftest.$ac_ext <<_ACEOF
  29557. /* end confdefs.h. */
  29558. $ac_includes_default
  29559. typedef int16_t ac__type_new_;
  29560. int
  29561. main ()
  29562. {
  29563. if ((ac__type_new_ *) 0)
  29564. return 0;
  29565. if (sizeof (ac__type_new_))
  29566. return 0;
  29567. ;
  29568. return 0;
  29569. }
  29570. _ACEOF
  29571. rm -f conftest.$ac_objext
  29572. if { (ac_try="$ac_compile"
  29573. case "(($ac_try" in
  29574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29575. *) ac_try_echo=$ac_try;;
  29576. esac
  29577. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29578. (eval "$ac_compile") 2>conftest.er1
  29579. ac_status=$?
  29580. grep -v '^ *+' conftest.er1 >conftest.err
  29581. rm -f conftest.er1
  29582. cat conftest.err >&5
  29583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29584. (exit $ac_status); } && {
  29585. test -z "$ac_c_werror_flag" ||
  29586. test ! -s conftest.err
  29587. } && test -s conftest.$ac_objext; then
  29588. ac_cv_type_int16_t=yes
  29589. else
  29590. echo "$as_me: failed program was:" >&5
  29591. sed 's/^/| /' conftest.$ac_ext >&5
  29592. ac_cv_type_int16_t=no
  29593. fi
  29594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29595. fi
  29596. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  29597. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  29598. if test $ac_cv_type_int16_t = yes; then
  29599. cat >>confdefs.h <<_ACEOF
  29600. #define HAVE_INT16_T 1
  29601. _ACEOF
  29602. fi
  29603. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  29604. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  29605. if test "${ac_cv_type_uint16_t+set}" = set; then
  29606. echo $ECHO_N "(cached) $ECHO_C" >&6
  29607. else
  29608. cat >conftest.$ac_ext <<_ACEOF
  29609. /* confdefs.h. */
  29610. _ACEOF
  29611. cat confdefs.h >>conftest.$ac_ext
  29612. cat >>conftest.$ac_ext <<_ACEOF
  29613. /* end confdefs.h. */
  29614. $ac_includes_default
  29615. typedef uint16_t ac__type_new_;
  29616. int
  29617. main ()
  29618. {
  29619. if ((ac__type_new_ *) 0)
  29620. return 0;
  29621. if (sizeof (ac__type_new_))
  29622. return 0;
  29623. ;
  29624. return 0;
  29625. }
  29626. _ACEOF
  29627. rm -f conftest.$ac_objext
  29628. if { (ac_try="$ac_compile"
  29629. case "(($ac_try" in
  29630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29631. *) ac_try_echo=$ac_try;;
  29632. esac
  29633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29634. (eval "$ac_compile") 2>conftest.er1
  29635. ac_status=$?
  29636. grep -v '^ *+' conftest.er1 >conftest.err
  29637. rm -f conftest.er1
  29638. cat conftest.err >&5
  29639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29640. (exit $ac_status); } && {
  29641. test -z "$ac_c_werror_flag" ||
  29642. test ! -s conftest.err
  29643. } && test -s conftest.$ac_objext; then
  29644. ac_cv_type_uint16_t=yes
  29645. else
  29646. echo "$as_me: failed program was:" >&5
  29647. sed 's/^/| /' conftest.$ac_ext >&5
  29648. ac_cv_type_uint16_t=no
  29649. fi
  29650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29651. fi
  29652. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  29653. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  29654. if test $ac_cv_type_uint16_t = yes; then
  29655. cat >>confdefs.h <<_ACEOF
  29656. #define HAVE_UINT16_T 1
  29657. _ACEOF
  29658. fi
  29659. { echo "$as_me:$LINENO: checking for int32_t" >&5
  29660. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  29661. if test "${ac_cv_type_int32_t+set}" = set; then
  29662. echo $ECHO_N "(cached) $ECHO_C" >&6
  29663. else
  29664. cat >conftest.$ac_ext <<_ACEOF
  29665. /* confdefs.h. */
  29666. _ACEOF
  29667. cat confdefs.h >>conftest.$ac_ext
  29668. cat >>conftest.$ac_ext <<_ACEOF
  29669. /* end confdefs.h. */
  29670. $ac_includes_default
  29671. typedef int32_t ac__type_new_;
  29672. int
  29673. main ()
  29674. {
  29675. if ((ac__type_new_ *) 0)
  29676. return 0;
  29677. if (sizeof (ac__type_new_))
  29678. return 0;
  29679. ;
  29680. return 0;
  29681. }
  29682. _ACEOF
  29683. rm -f conftest.$ac_objext
  29684. if { (ac_try="$ac_compile"
  29685. case "(($ac_try" in
  29686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29687. *) ac_try_echo=$ac_try;;
  29688. esac
  29689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29690. (eval "$ac_compile") 2>conftest.er1
  29691. ac_status=$?
  29692. grep -v '^ *+' conftest.er1 >conftest.err
  29693. rm -f conftest.er1
  29694. cat conftest.err >&5
  29695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29696. (exit $ac_status); } && {
  29697. test -z "$ac_c_werror_flag" ||
  29698. test ! -s conftest.err
  29699. } && test -s conftest.$ac_objext; then
  29700. ac_cv_type_int32_t=yes
  29701. else
  29702. echo "$as_me: failed program was:" >&5
  29703. sed 's/^/| /' conftest.$ac_ext >&5
  29704. ac_cv_type_int32_t=no
  29705. fi
  29706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29707. fi
  29708. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  29709. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  29710. if test $ac_cv_type_int32_t = yes; then
  29711. cat >>confdefs.h <<_ACEOF
  29712. #define HAVE_INT32_T 1
  29713. _ACEOF
  29714. fi
  29715. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  29716. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  29717. if test "${ac_cv_type_uint32_t+set}" = set; then
  29718. echo $ECHO_N "(cached) $ECHO_C" >&6
  29719. else
  29720. cat >conftest.$ac_ext <<_ACEOF
  29721. /* confdefs.h. */
  29722. _ACEOF
  29723. cat confdefs.h >>conftest.$ac_ext
  29724. cat >>conftest.$ac_ext <<_ACEOF
  29725. /* end confdefs.h. */
  29726. $ac_includes_default
  29727. typedef uint32_t ac__type_new_;
  29728. int
  29729. main ()
  29730. {
  29731. if ((ac__type_new_ *) 0)
  29732. return 0;
  29733. if (sizeof (ac__type_new_))
  29734. return 0;
  29735. ;
  29736. return 0;
  29737. }
  29738. _ACEOF
  29739. rm -f conftest.$ac_objext
  29740. if { (ac_try="$ac_compile"
  29741. case "(($ac_try" in
  29742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29743. *) ac_try_echo=$ac_try;;
  29744. esac
  29745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29746. (eval "$ac_compile") 2>conftest.er1
  29747. ac_status=$?
  29748. grep -v '^ *+' conftest.er1 >conftest.err
  29749. rm -f conftest.er1
  29750. cat conftest.err >&5
  29751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29752. (exit $ac_status); } && {
  29753. test -z "$ac_c_werror_flag" ||
  29754. test ! -s conftest.err
  29755. } && test -s conftest.$ac_objext; then
  29756. ac_cv_type_uint32_t=yes
  29757. else
  29758. echo "$as_me: failed program was:" >&5
  29759. sed 's/^/| /' conftest.$ac_ext >&5
  29760. ac_cv_type_uint32_t=no
  29761. fi
  29762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29763. fi
  29764. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  29765. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  29766. if test $ac_cv_type_uint32_t = yes; then
  29767. cat >>confdefs.h <<_ACEOF
  29768. #define HAVE_UINT32_T 1
  29769. _ACEOF
  29770. fi
  29771. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  29772. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  29773. if test "${ac_cv_type_intptr_t+set}" = set; then
  29774. echo $ECHO_N "(cached) $ECHO_C" >&6
  29775. else
  29776. cat >conftest.$ac_ext <<_ACEOF
  29777. /* confdefs.h. */
  29778. _ACEOF
  29779. cat confdefs.h >>conftest.$ac_ext
  29780. cat >>conftest.$ac_ext <<_ACEOF
  29781. /* end confdefs.h. */
  29782. $ac_includes_default
  29783. typedef intptr_t ac__type_new_;
  29784. int
  29785. main ()
  29786. {
  29787. if ((ac__type_new_ *) 0)
  29788. return 0;
  29789. if (sizeof (ac__type_new_))
  29790. return 0;
  29791. ;
  29792. return 0;
  29793. }
  29794. _ACEOF
  29795. rm -f conftest.$ac_objext
  29796. if { (ac_try="$ac_compile"
  29797. case "(($ac_try" in
  29798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29799. *) ac_try_echo=$ac_try;;
  29800. esac
  29801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29802. (eval "$ac_compile") 2>conftest.er1
  29803. ac_status=$?
  29804. grep -v '^ *+' conftest.er1 >conftest.err
  29805. rm -f conftest.er1
  29806. cat conftest.err >&5
  29807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29808. (exit $ac_status); } && {
  29809. test -z "$ac_c_werror_flag" ||
  29810. test ! -s conftest.err
  29811. } && test -s conftest.$ac_objext; then
  29812. ac_cv_type_intptr_t=yes
  29813. else
  29814. echo "$as_me: failed program was:" >&5
  29815. sed 's/^/| /' conftest.$ac_ext >&5
  29816. ac_cv_type_intptr_t=no
  29817. fi
  29818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29819. fi
  29820. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  29821. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  29822. if test $ac_cv_type_intptr_t = yes; then
  29823. cat >>confdefs.h <<_ACEOF
  29824. #define HAVE_INTPTR_T 1
  29825. _ACEOF
  29826. fi
  29827. { echo "$as_me:$LINENO: checking for uint_t" >&5
  29828. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  29829. if test "${ac_cv_type_uint_t+set}" = set; then
  29830. echo $ECHO_N "(cached) $ECHO_C" >&6
  29831. else
  29832. cat >conftest.$ac_ext <<_ACEOF
  29833. /* confdefs.h. */
  29834. _ACEOF
  29835. cat confdefs.h >>conftest.$ac_ext
  29836. cat >>conftest.$ac_ext <<_ACEOF
  29837. /* end confdefs.h. */
  29838. $ac_includes_default
  29839. typedef uint_t ac__type_new_;
  29840. int
  29841. main ()
  29842. {
  29843. if ((ac__type_new_ *) 0)
  29844. return 0;
  29845. if (sizeof (ac__type_new_))
  29846. return 0;
  29847. ;
  29848. return 0;
  29849. }
  29850. _ACEOF
  29851. rm -f conftest.$ac_objext
  29852. if { (ac_try="$ac_compile"
  29853. case "(($ac_try" in
  29854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29855. *) ac_try_echo=$ac_try;;
  29856. esac
  29857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29858. (eval "$ac_compile") 2>conftest.er1
  29859. ac_status=$?
  29860. grep -v '^ *+' conftest.er1 >conftest.err
  29861. rm -f conftest.er1
  29862. cat conftest.err >&5
  29863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29864. (exit $ac_status); } && {
  29865. test -z "$ac_c_werror_flag" ||
  29866. test ! -s conftest.err
  29867. } && test -s conftest.$ac_objext; then
  29868. ac_cv_type_uint_t=yes
  29869. else
  29870. echo "$as_me: failed program was:" >&5
  29871. sed 's/^/| /' conftest.$ac_ext >&5
  29872. ac_cv_type_uint_t=no
  29873. fi
  29874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29875. fi
  29876. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  29877. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  29878. if test $ac_cv_type_uint_t = yes; then
  29879. cat >>confdefs.h <<_ACEOF
  29880. #define HAVE_UINT_T 1
  29881. _ACEOF
  29882. fi
  29883. # ====================
  29884. # uintptr type & sizes
  29885. # ====================
  29886. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  29887. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  29888. if test "${ac_cv_type_uintptr_t+set}" = set; then
  29889. echo $ECHO_N "(cached) $ECHO_C" >&6
  29890. else
  29891. cat >conftest.$ac_ext <<_ACEOF
  29892. /* confdefs.h. */
  29893. _ACEOF
  29894. cat confdefs.h >>conftest.$ac_ext
  29895. cat >>conftest.$ac_ext <<_ACEOF
  29896. /* end confdefs.h. */
  29897. $ac_includes_default
  29898. typedef uintptr_t ac__type_new_;
  29899. int
  29900. main ()
  29901. {
  29902. if ((ac__type_new_ *) 0)
  29903. return 0;
  29904. if (sizeof (ac__type_new_))
  29905. return 0;
  29906. ;
  29907. return 0;
  29908. }
  29909. _ACEOF
  29910. rm -f conftest.$ac_objext
  29911. if { (ac_try="$ac_compile"
  29912. case "(($ac_try" in
  29913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29914. *) ac_try_echo=$ac_try;;
  29915. esac
  29916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29917. (eval "$ac_compile") 2>conftest.er1
  29918. ac_status=$?
  29919. grep -v '^ *+' conftest.er1 >conftest.err
  29920. rm -f conftest.er1
  29921. cat conftest.err >&5
  29922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29923. (exit $ac_status); } && {
  29924. test -z "$ac_c_werror_flag" ||
  29925. test ! -s conftest.err
  29926. } && test -s conftest.$ac_objext; then
  29927. ac_cv_type_uintptr_t=yes
  29928. else
  29929. echo "$as_me: failed program was:" >&5
  29930. sed 's/^/| /' conftest.$ac_ext >&5
  29931. ac_cv_type_uintptr_t=no
  29932. fi
  29933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29934. fi
  29935. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  29936. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  29937. if test $ac_cv_type_uintptr_t = yes; then
  29938. cat >>confdefs.h <<_ACEOF
  29939. #define HAVE_UINTPTR_T 1
  29940. _ACEOF
  29941. else
  29942. cat >>confdefs.h <<\_ACEOF
  29943. #define uintptr_t unsigned long
  29944. _ACEOF
  29945. fi
  29946. { echo "$as_me:$LINENO: checking for char*" >&5
  29947. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  29948. if test "${ac_cv_type_charp+set}" = set; then
  29949. echo $ECHO_N "(cached) $ECHO_C" >&6
  29950. else
  29951. cat >conftest.$ac_ext <<_ACEOF
  29952. /* confdefs.h. */
  29953. _ACEOF
  29954. cat confdefs.h >>conftest.$ac_ext
  29955. cat >>conftest.$ac_ext <<_ACEOF
  29956. /* end confdefs.h. */
  29957. $ac_includes_default
  29958. typedef char* ac__type_new_;
  29959. int
  29960. main ()
  29961. {
  29962. if ((ac__type_new_ *) 0)
  29963. return 0;
  29964. if (sizeof (ac__type_new_))
  29965. return 0;
  29966. ;
  29967. return 0;
  29968. }
  29969. _ACEOF
  29970. rm -f conftest.$ac_objext
  29971. if { (ac_try="$ac_compile"
  29972. case "(($ac_try" in
  29973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29974. *) ac_try_echo=$ac_try;;
  29975. esac
  29976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29977. (eval "$ac_compile") 2>conftest.er1
  29978. ac_status=$?
  29979. grep -v '^ *+' conftest.er1 >conftest.err
  29980. rm -f conftest.er1
  29981. cat conftest.err >&5
  29982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29983. (exit $ac_status); } && {
  29984. test -z "$ac_c_werror_flag" ||
  29985. test ! -s conftest.err
  29986. } && test -s conftest.$ac_objext; then
  29987. ac_cv_type_charp=yes
  29988. else
  29989. echo "$as_me: failed program was:" >&5
  29990. sed 's/^/| /' conftest.$ac_ext >&5
  29991. ac_cv_type_charp=no
  29992. fi
  29993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29994. fi
  29995. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  29996. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  29997. # The cast to long int works around a bug in the HP C Compiler
  29998. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29999. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30000. # This bug is HP SR number 8606223364.
  30001. { echo "$as_me:$LINENO: checking size of char*" >&5
  30002. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  30003. if test "${ac_cv_sizeof_charp+set}" = set; then
  30004. echo $ECHO_N "(cached) $ECHO_C" >&6
  30005. else
  30006. if test "$cross_compiling" = yes; then
  30007. # Depending upon the size, compute the lo and hi bounds.
  30008. cat >conftest.$ac_ext <<_ACEOF
  30009. /* confdefs.h. */
  30010. _ACEOF
  30011. cat confdefs.h >>conftest.$ac_ext
  30012. cat >>conftest.$ac_ext <<_ACEOF
  30013. /* end confdefs.h. */
  30014. $ac_includes_default
  30015. typedef char* ac__type_sizeof_;
  30016. int
  30017. main ()
  30018. {
  30019. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30020. test_array [0] = 0
  30021. ;
  30022. return 0;
  30023. }
  30024. _ACEOF
  30025. rm -f conftest.$ac_objext
  30026. if { (ac_try="$ac_compile"
  30027. case "(($ac_try" in
  30028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30029. *) ac_try_echo=$ac_try;;
  30030. esac
  30031. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30032. (eval "$ac_compile") 2>conftest.er1
  30033. ac_status=$?
  30034. grep -v '^ *+' conftest.er1 >conftest.err
  30035. rm -f conftest.er1
  30036. cat conftest.err >&5
  30037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30038. (exit $ac_status); } && {
  30039. test -z "$ac_c_werror_flag" ||
  30040. test ! -s conftest.err
  30041. } && test -s conftest.$ac_objext; then
  30042. ac_lo=0 ac_mid=0
  30043. while :; do
  30044. cat >conftest.$ac_ext <<_ACEOF
  30045. /* confdefs.h. */
  30046. _ACEOF
  30047. cat confdefs.h >>conftest.$ac_ext
  30048. cat >>conftest.$ac_ext <<_ACEOF
  30049. /* end confdefs.h. */
  30050. $ac_includes_default
  30051. typedef char* ac__type_sizeof_;
  30052. int
  30053. main ()
  30054. {
  30055. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30056. test_array [0] = 0
  30057. ;
  30058. return 0;
  30059. }
  30060. _ACEOF
  30061. rm -f conftest.$ac_objext
  30062. if { (ac_try="$ac_compile"
  30063. case "(($ac_try" in
  30064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30065. *) ac_try_echo=$ac_try;;
  30066. esac
  30067. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30068. (eval "$ac_compile") 2>conftest.er1
  30069. ac_status=$?
  30070. grep -v '^ *+' conftest.er1 >conftest.err
  30071. rm -f conftest.er1
  30072. cat conftest.err >&5
  30073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30074. (exit $ac_status); } && {
  30075. test -z "$ac_c_werror_flag" ||
  30076. test ! -s conftest.err
  30077. } && test -s conftest.$ac_objext; then
  30078. ac_hi=$ac_mid; break
  30079. else
  30080. echo "$as_me: failed program was:" >&5
  30081. sed 's/^/| /' conftest.$ac_ext >&5
  30082. ac_lo=`expr $ac_mid + 1`
  30083. if test $ac_lo -le $ac_mid; then
  30084. ac_lo= ac_hi=
  30085. break
  30086. fi
  30087. ac_mid=`expr 2 '*' $ac_mid + 1`
  30088. fi
  30089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30090. done
  30091. else
  30092. echo "$as_me: failed program was:" >&5
  30093. sed 's/^/| /' conftest.$ac_ext >&5
  30094. cat >conftest.$ac_ext <<_ACEOF
  30095. /* confdefs.h. */
  30096. _ACEOF
  30097. cat confdefs.h >>conftest.$ac_ext
  30098. cat >>conftest.$ac_ext <<_ACEOF
  30099. /* end confdefs.h. */
  30100. $ac_includes_default
  30101. typedef char* ac__type_sizeof_;
  30102. int
  30103. main ()
  30104. {
  30105. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30106. test_array [0] = 0
  30107. ;
  30108. return 0;
  30109. }
  30110. _ACEOF
  30111. rm -f conftest.$ac_objext
  30112. if { (ac_try="$ac_compile"
  30113. case "(($ac_try" in
  30114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30115. *) ac_try_echo=$ac_try;;
  30116. esac
  30117. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30118. (eval "$ac_compile") 2>conftest.er1
  30119. ac_status=$?
  30120. grep -v '^ *+' conftest.er1 >conftest.err
  30121. rm -f conftest.er1
  30122. cat conftest.err >&5
  30123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30124. (exit $ac_status); } && {
  30125. test -z "$ac_c_werror_flag" ||
  30126. test ! -s conftest.err
  30127. } && test -s conftest.$ac_objext; then
  30128. ac_hi=-1 ac_mid=-1
  30129. while :; do
  30130. cat >conftest.$ac_ext <<_ACEOF
  30131. /* confdefs.h. */
  30132. _ACEOF
  30133. cat confdefs.h >>conftest.$ac_ext
  30134. cat >>conftest.$ac_ext <<_ACEOF
  30135. /* end confdefs.h. */
  30136. $ac_includes_default
  30137. typedef char* ac__type_sizeof_;
  30138. int
  30139. main ()
  30140. {
  30141. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30142. test_array [0] = 0
  30143. ;
  30144. return 0;
  30145. }
  30146. _ACEOF
  30147. rm -f conftest.$ac_objext
  30148. if { (ac_try="$ac_compile"
  30149. case "(($ac_try" in
  30150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30151. *) ac_try_echo=$ac_try;;
  30152. esac
  30153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30154. (eval "$ac_compile") 2>conftest.er1
  30155. ac_status=$?
  30156. grep -v '^ *+' conftest.er1 >conftest.err
  30157. rm -f conftest.er1
  30158. cat conftest.err >&5
  30159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30160. (exit $ac_status); } && {
  30161. test -z "$ac_c_werror_flag" ||
  30162. test ! -s conftest.err
  30163. } && test -s conftest.$ac_objext; then
  30164. ac_lo=$ac_mid; break
  30165. else
  30166. echo "$as_me: failed program was:" >&5
  30167. sed 's/^/| /' conftest.$ac_ext >&5
  30168. ac_hi=`expr '(' $ac_mid ')' - 1`
  30169. if test $ac_mid -le $ac_hi; then
  30170. ac_lo= ac_hi=
  30171. break
  30172. fi
  30173. ac_mid=`expr 2 '*' $ac_mid`
  30174. fi
  30175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30176. done
  30177. else
  30178. echo "$as_me: failed program was:" >&5
  30179. sed 's/^/| /' conftest.$ac_ext >&5
  30180. ac_lo= ac_hi=
  30181. fi
  30182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30183. fi
  30184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30185. # Binary search between lo and hi bounds.
  30186. while test "x$ac_lo" != "x$ac_hi"; do
  30187. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30188. cat >conftest.$ac_ext <<_ACEOF
  30189. /* confdefs.h. */
  30190. _ACEOF
  30191. cat confdefs.h >>conftest.$ac_ext
  30192. cat >>conftest.$ac_ext <<_ACEOF
  30193. /* end confdefs.h. */
  30194. $ac_includes_default
  30195. typedef char* ac__type_sizeof_;
  30196. int
  30197. main ()
  30198. {
  30199. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30200. test_array [0] = 0
  30201. ;
  30202. return 0;
  30203. }
  30204. _ACEOF
  30205. rm -f conftest.$ac_objext
  30206. if { (ac_try="$ac_compile"
  30207. case "(($ac_try" in
  30208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30209. *) ac_try_echo=$ac_try;;
  30210. esac
  30211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30212. (eval "$ac_compile") 2>conftest.er1
  30213. ac_status=$?
  30214. grep -v '^ *+' conftest.er1 >conftest.err
  30215. rm -f conftest.er1
  30216. cat conftest.err >&5
  30217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30218. (exit $ac_status); } && {
  30219. test -z "$ac_c_werror_flag" ||
  30220. test ! -s conftest.err
  30221. } && test -s conftest.$ac_objext; then
  30222. ac_hi=$ac_mid
  30223. else
  30224. echo "$as_me: failed program was:" >&5
  30225. sed 's/^/| /' conftest.$ac_ext >&5
  30226. ac_lo=`expr '(' $ac_mid ')' + 1`
  30227. fi
  30228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30229. done
  30230. case $ac_lo in
  30231. ?*) ac_cv_sizeof_charp=$ac_lo;;
  30232. '') if test "$ac_cv_type_charp" = yes; then
  30233. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30234. See \`config.log' for more details." >&5
  30235. echo "$as_me: error: cannot compute sizeof (char*)
  30236. See \`config.log' for more details." >&2;}
  30237. { (exit 77); exit 77; }; }
  30238. else
  30239. ac_cv_sizeof_charp=0
  30240. fi ;;
  30241. esac
  30242. else
  30243. cat >conftest.$ac_ext <<_ACEOF
  30244. /* confdefs.h. */
  30245. _ACEOF
  30246. cat confdefs.h >>conftest.$ac_ext
  30247. cat >>conftest.$ac_ext <<_ACEOF
  30248. /* end confdefs.h. */
  30249. $ac_includes_default
  30250. typedef char* ac__type_sizeof_;
  30251. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30252. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30253. #include <stdio.h>
  30254. #include <stdlib.h>
  30255. int
  30256. main ()
  30257. {
  30258. FILE *f = fopen ("conftest.val", "w");
  30259. if (! f)
  30260. return 1;
  30261. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30262. {
  30263. long int i = longval ();
  30264. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30265. return 1;
  30266. fprintf (f, "%ld\n", i);
  30267. }
  30268. else
  30269. {
  30270. unsigned long int i = ulongval ();
  30271. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30272. return 1;
  30273. fprintf (f, "%lu\n", i);
  30274. }
  30275. return ferror (f) || fclose (f) != 0;
  30276. ;
  30277. return 0;
  30278. }
  30279. _ACEOF
  30280. rm -f conftest$ac_exeext
  30281. if { (ac_try="$ac_link"
  30282. case "(($ac_try" in
  30283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30284. *) ac_try_echo=$ac_try;;
  30285. esac
  30286. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30287. (eval "$ac_link") 2>&5
  30288. ac_status=$?
  30289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30290. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30291. { (case "(($ac_try" in
  30292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30293. *) ac_try_echo=$ac_try;;
  30294. esac
  30295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30296. (eval "$ac_try") 2>&5
  30297. ac_status=$?
  30298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30299. (exit $ac_status); }; }; then
  30300. ac_cv_sizeof_charp=`cat conftest.val`
  30301. else
  30302. echo "$as_me: program exited with status $ac_status" >&5
  30303. echo "$as_me: failed program was:" >&5
  30304. sed 's/^/| /' conftest.$ac_ext >&5
  30305. ( exit $ac_status )
  30306. if test "$ac_cv_type_charp" = yes; then
  30307. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  30308. See \`config.log' for more details." >&5
  30309. echo "$as_me: error: cannot compute sizeof (char*)
  30310. See \`config.log' for more details." >&2;}
  30311. { (exit 77); exit 77; }; }
  30312. else
  30313. ac_cv_sizeof_charp=0
  30314. fi
  30315. fi
  30316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30317. fi
  30318. rm -f conftest.val
  30319. fi
  30320. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  30321. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  30322. cat >>confdefs.h <<_ACEOF
  30323. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  30324. _ACEOF
  30325. { echo "$as_me:$LINENO: checking for int" >&5
  30326. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  30327. if test "${ac_cv_type_int+set}" = set; then
  30328. echo $ECHO_N "(cached) $ECHO_C" >&6
  30329. else
  30330. cat >conftest.$ac_ext <<_ACEOF
  30331. /* confdefs.h. */
  30332. _ACEOF
  30333. cat confdefs.h >>conftest.$ac_ext
  30334. cat >>conftest.$ac_ext <<_ACEOF
  30335. /* end confdefs.h. */
  30336. $ac_includes_default
  30337. typedef int ac__type_new_;
  30338. int
  30339. main ()
  30340. {
  30341. if ((ac__type_new_ *) 0)
  30342. return 0;
  30343. if (sizeof (ac__type_new_))
  30344. return 0;
  30345. ;
  30346. return 0;
  30347. }
  30348. _ACEOF
  30349. rm -f conftest.$ac_objext
  30350. if { (ac_try="$ac_compile"
  30351. case "(($ac_try" in
  30352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30353. *) ac_try_echo=$ac_try;;
  30354. esac
  30355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30356. (eval "$ac_compile") 2>conftest.er1
  30357. ac_status=$?
  30358. grep -v '^ *+' conftest.er1 >conftest.err
  30359. rm -f conftest.er1
  30360. cat conftest.err >&5
  30361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30362. (exit $ac_status); } && {
  30363. test -z "$ac_c_werror_flag" ||
  30364. test ! -s conftest.err
  30365. } && test -s conftest.$ac_objext; then
  30366. ac_cv_type_int=yes
  30367. else
  30368. echo "$as_me: failed program was:" >&5
  30369. sed 's/^/| /' conftest.$ac_ext >&5
  30370. ac_cv_type_int=no
  30371. fi
  30372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30373. fi
  30374. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  30375. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  30376. # The cast to long int works around a bug in the HP C Compiler
  30377. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30378. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30379. # This bug is HP SR number 8606223364.
  30380. { echo "$as_me:$LINENO: checking size of int" >&5
  30381. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  30382. if test "${ac_cv_sizeof_int+set}" = set; then
  30383. echo $ECHO_N "(cached) $ECHO_C" >&6
  30384. else
  30385. if test "$cross_compiling" = yes; then
  30386. # Depending upon the size, compute the lo and hi bounds.
  30387. cat >conftest.$ac_ext <<_ACEOF
  30388. /* confdefs.h. */
  30389. _ACEOF
  30390. cat confdefs.h >>conftest.$ac_ext
  30391. cat >>conftest.$ac_ext <<_ACEOF
  30392. /* end confdefs.h. */
  30393. $ac_includes_default
  30394. typedef int ac__type_sizeof_;
  30395. int
  30396. main ()
  30397. {
  30398. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30399. test_array [0] = 0
  30400. ;
  30401. return 0;
  30402. }
  30403. _ACEOF
  30404. rm -f conftest.$ac_objext
  30405. if { (ac_try="$ac_compile"
  30406. case "(($ac_try" in
  30407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30408. *) ac_try_echo=$ac_try;;
  30409. esac
  30410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30411. (eval "$ac_compile") 2>conftest.er1
  30412. ac_status=$?
  30413. grep -v '^ *+' conftest.er1 >conftest.err
  30414. rm -f conftest.er1
  30415. cat conftest.err >&5
  30416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30417. (exit $ac_status); } && {
  30418. test -z "$ac_c_werror_flag" ||
  30419. test ! -s conftest.err
  30420. } && test -s conftest.$ac_objext; then
  30421. ac_lo=0 ac_mid=0
  30422. while :; do
  30423. cat >conftest.$ac_ext <<_ACEOF
  30424. /* confdefs.h. */
  30425. _ACEOF
  30426. cat confdefs.h >>conftest.$ac_ext
  30427. cat >>conftest.$ac_ext <<_ACEOF
  30428. /* end confdefs.h. */
  30429. $ac_includes_default
  30430. typedef int ac__type_sizeof_;
  30431. int
  30432. main ()
  30433. {
  30434. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30435. test_array [0] = 0
  30436. ;
  30437. return 0;
  30438. }
  30439. _ACEOF
  30440. rm -f conftest.$ac_objext
  30441. if { (ac_try="$ac_compile"
  30442. case "(($ac_try" in
  30443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30444. *) ac_try_echo=$ac_try;;
  30445. esac
  30446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30447. (eval "$ac_compile") 2>conftest.er1
  30448. ac_status=$?
  30449. grep -v '^ *+' conftest.er1 >conftest.err
  30450. rm -f conftest.er1
  30451. cat conftest.err >&5
  30452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30453. (exit $ac_status); } && {
  30454. test -z "$ac_c_werror_flag" ||
  30455. test ! -s conftest.err
  30456. } && test -s conftest.$ac_objext; then
  30457. ac_hi=$ac_mid; break
  30458. else
  30459. echo "$as_me: failed program was:" >&5
  30460. sed 's/^/| /' conftest.$ac_ext >&5
  30461. ac_lo=`expr $ac_mid + 1`
  30462. if test $ac_lo -le $ac_mid; then
  30463. ac_lo= ac_hi=
  30464. break
  30465. fi
  30466. ac_mid=`expr 2 '*' $ac_mid + 1`
  30467. fi
  30468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30469. done
  30470. else
  30471. echo "$as_me: failed program was:" >&5
  30472. sed 's/^/| /' conftest.$ac_ext >&5
  30473. cat >conftest.$ac_ext <<_ACEOF
  30474. /* confdefs.h. */
  30475. _ACEOF
  30476. cat confdefs.h >>conftest.$ac_ext
  30477. cat >>conftest.$ac_ext <<_ACEOF
  30478. /* end confdefs.h. */
  30479. $ac_includes_default
  30480. typedef int ac__type_sizeof_;
  30481. int
  30482. main ()
  30483. {
  30484. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30485. test_array [0] = 0
  30486. ;
  30487. return 0;
  30488. }
  30489. _ACEOF
  30490. rm -f conftest.$ac_objext
  30491. if { (ac_try="$ac_compile"
  30492. case "(($ac_try" in
  30493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30494. *) ac_try_echo=$ac_try;;
  30495. esac
  30496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30497. (eval "$ac_compile") 2>conftest.er1
  30498. ac_status=$?
  30499. grep -v '^ *+' conftest.er1 >conftest.err
  30500. rm -f conftest.er1
  30501. cat conftest.err >&5
  30502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30503. (exit $ac_status); } && {
  30504. test -z "$ac_c_werror_flag" ||
  30505. test ! -s conftest.err
  30506. } && test -s conftest.$ac_objext; then
  30507. ac_hi=-1 ac_mid=-1
  30508. while :; do
  30509. cat >conftest.$ac_ext <<_ACEOF
  30510. /* confdefs.h. */
  30511. _ACEOF
  30512. cat confdefs.h >>conftest.$ac_ext
  30513. cat >>conftest.$ac_ext <<_ACEOF
  30514. /* end confdefs.h. */
  30515. $ac_includes_default
  30516. typedef int ac__type_sizeof_;
  30517. int
  30518. main ()
  30519. {
  30520. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30521. test_array [0] = 0
  30522. ;
  30523. return 0;
  30524. }
  30525. _ACEOF
  30526. rm -f conftest.$ac_objext
  30527. if { (ac_try="$ac_compile"
  30528. case "(($ac_try" in
  30529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30530. *) ac_try_echo=$ac_try;;
  30531. esac
  30532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30533. (eval "$ac_compile") 2>conftest.er1
  30534. ac_status=$?
  30535. grep -v '^ *+' conftest.er1 >conftest.err
  30536. rm -f conftest.er1
  30537. cat conftest.err >&5
  30538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30539. (exit $ac_status); } && {
  30540. test -z "$ac_c_werror_flag" ||
  30541. test ! -s conftest.err
  30542. } && test -s conftest.$ac_objext; then
  30543. ac_lo=$ac_mid; break
  30544. else
  30545. echo "$as_me: failed program was:" >&5
  30546. sed 's/^/| /' conftest.$ac_ext >&5
  30547. ac_hi=`expr '(' $ac_mid ')' - 1`
  30548. if test $ac_mid -le $ac_hi; then
  30549. ac_lo= ac_hi=
  30550. break
  30551. fi
  30552. ac_mid=`expr 2 '*' $ac_mid`
  30553. fi
  30554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30555. done
  30556. else
  30557. echo "$as_me: failed program was:" >&5
  30558. sed 's/^/| /' conftest.$ac_ext >&5
  30559. ac_lo= ac_hi=
  30560. fi
  30561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30562. fi
  30563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30564. # Binary search between lo and hi bounds.
  30565. while test "x$ac_lo" != "x$ac_hi"; do
  30566. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30567. cat >conftest.$ac_ext <<_ACEOF
  30568. /* confdefs.h. */
  30569. _ACEOF
  30570. cat confdefs.h >>conftest.$ac_ext
  30571. cat >>conftest.$ac_ext <<_ACEOF
  30572. /* end confdefs.h. */
  30573. $ac_includes_default
  30574. typedef int ac__type_sizeof_;
  30575. int
  30576. main ()
  30577. {
  30578. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30579. test_array [0] = 0
  30580. ;
  30581. return 0;
  30582. }
  30583. _ACEOF
  30584. rm -f conftest.$ac_objext
  30585. if { (ac_try="$ac_compile"
  30586. case "(($ac_try" in
  30587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30588. *) ac_try_echo=$ac_try;;
  30589. esac
  30590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30591. (eval "$ac_compile") 2>conftest.er1
  30592. ac_status=$?
  30593. grep -v '^ *+' conftest.er1 >conftest.err
  30594. rm -f conftest.er1
  30595. cat conftest.err >&5
  30596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30597. (exit $ac_status); } && {
  30598. test -z "$ac_c_werror_flag" ||
  30599. test ! -s conftest.err
  30600. } && test -s conftest.$ac_objext; then
  30601. ac_hi=$ac_mid
  30602. else
  30603. echo "$as_me: failed program was:" >&5
  30604. sed 's/^/| /' conftest.$ac_ext >&5
  30605. ac_lo=`expr '(' $ac_mid ')' + 1`
  30606. fi
  30607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30608. done
  30609. case $ac_lo in
  30610. ?*) ac_cv_sizeof_int=$ac_lo;;
  30611. '') if test "$ac_cv_type_int" = yes; then
  30612. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30613. See \`config.log' for more details." >&5
  30614. echo "$as_me: error: cannot compute sizeof (int)
  30615. See \`config.log' for more details." >&2;}
  30616. { (exit 77); exit 77; }; }
  30617. else
  30618. ac_cv_sizeof_int=0
  30619. fi ;;
  30620. esac
  30621. else
  30622. cat >conftest.$ac_ext <<_ACEOF
  30623. /* confdefs.h. */
  30624. _ACEOF
  30625. cat confdefs.h >>conftest.$ac_ext
  30626. cat >>conftest.$ac_ext <<_ACEOF
  30627. /* end confdefs.h. */
  30628. $ac_includes_default
  30629. typedef int ac__type_sizeof_;
  30630. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30631. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30632. #include <stdio.h>
  30633. #include <stdlib.h>
  30634. int
  30635. main ()
  30636. {
  30637. FILE *f = fopen ("conftest.val", "w");
  30638. if (! f)
  30639. return 1;
  30640. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30641. {
  30642. long int i = longval ();
  30643. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30644. return 1;
  30645. fprintf (f, "%ld\n", i);
  30646. }
  30647. else
  30648. {
  30649. unsigned long int i = ulongval ();
  30650. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30651. return 1;
  30652. fprintf (f, "%lu\n", i);
  30653. }
  30654. return ferror (f) || fclose (f) != 0;
  30655. ;
  30656. return 0;
  30657. }
  30658. _ACEOF
  30659. rm -f conftest$ac_exeext
  30660. if { (ac_try="$ac_link"
  30661. case "(($ac_try" in
  30662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30663. *) ac_try_echo=$ac_try;;
  30664. esac
  30665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30666. (eval "$ac_link") 2>&5
  30667. ac_status=$?
  30668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30669. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30670. { (case "(($ac_try" in
  30671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30672. *) ac_try_echo=$ac_try;;
  30673. esac
  30674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30675. (eval "$ac_try") 2>&5
  30676. ac_status=$?
  30677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30678. (exit $ac_status); }; }; then
  30679. ac_cv_sizeof_int=`cat conftest.val`
  30680. else
  30681. echo "$as_me: program exited with status $ac_status" >&5
  30682. echo "$as_me: failed program was:" >&5
  30683. sed 's/^/| /' conftest.$ac_ext >&5
  30684. ( exit $ac_status )
  30685. if test "$ac_cv_type_int" = yes; then
  30686. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30687. See \`config.log' for more details." >&5
  30688. echo "$as_me: error: cannot compute sizeof (int)
  30689. See \`config.log' for more details." >&2;}
  30690. { (exit 77); exit 77; }; }
  30691. else
  30692. ac_cv_sizeof_int=0
  30693. fi
  30694. fi
  30695. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30696. fi
  30697. rm -f conftest.val
  30698. fi
  30699. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  30700. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  30701. cat >>confdefs.h <<_ACEOF
  30702. #define SIZEOF_INT $ac_cv_sizeof_int
  30703. _ACEOF
  30704. { echo "$as_me:$LINENO: checking for long" >&5
  30705. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  30706. if test "${ac_cv_type_long+set}" = set; then
  30707. echo $ECHO_N "(cached) $ECHO_C" >&6
  30708. else
  30709. cat >conftest.$ac_ext <<_ACEOF
  30710. /* confdefs.h. */
  30711. _ACEOF
  30712. cat confdefs.h >>conftest.$ac_ext
  30713. cat >>conftest.$ac_ext <<_ACEOF
  30714. /* end confdefs.h. */
  30715. $ac_includes_default
  30716. typedef long ac__type_new_;
  30717. int
  30718. main ()
  30719. {
  30720. if ((ac__type_new_ *) 0)
  30721. return 0;
  30722. if (sizeof (ac__type_new_))
  30723. return 0;
  30724. ;
  30725. return 0;
  30726. }
  30727. _ACEOF
  30728. rm -f conftest.$ac_objext
  30729. if { (ac_try="$ac_compile"
  30730. case "(($ac_try" in
  30731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30732. *) ac_try_echo=$ac_try;;
  30733. esac
  30734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30735. (eval "$ac_compile") 2>conftest.er1
  30736. ac_status=$?
  30737. grep -v '^ *+' conftest.er1 >conftest.err
  30738. rm -f conftest.er1
  30739. cat conftest.err >&5
  30740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30741. (exit $ac_status); } && {
  30742. test -z "$ac_c_werror_flag" ||
  30743. test ! -s conftest.err
  30744. } && test -s conftest.$ac_objext; then
  30745. ac_cv_type_long=yes
  30746. else
  30747. echo "$as_me: failed program was:" >&5
  30748. sed 's/^/| /' conftest.$ac_ext >&5
  30749. ac_cv_type_long=no
  30750. fi
  30751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30752. fi
  30753. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  30754. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  30755. # The cast to long int works around a bug in the HP C Compiler
  30756. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30757. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30758. # This bug is HP SR number 8606223364.
  30759. { echo "$as_me:$LINENO: checking size of long" >&5
  30760. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  30761. if test "${ac_cv_sizeof_long+set}" = set; then
  30762. echo $ECHO_N "(cached) $ECHO_C" >&6
  30763. else
  30764. if test "$cross_compiling" = yes; then
  30765. # Depending upon the size, compute the lo and hi bounds.
  30766. cat >conftest.$ac_ext <<_ACEOF
  30767. /* confdefs.h. */
  30768. _ACEOF
  30769. cat confdefs.h >>conftest.$ac_ext
  30770. cat >>conftest.$ac_ext <<_ACEOF
  30771. /* end confdefs.h. */
  30772. $ac_includes_default
  30773. typedef long ac__type_sizeof_;
  30774. int
  30775. main ()
  30776. {
  30777. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30778. test_array [0] = 0
  30779. ;
  30780. return 0;
  30781. }
  30782. _ACEOF
  30783. rm -f conftest.$ac_objext
  30784. if { (ac_try="$ac_compile"
  30785. case "(($ac_try" in
  30786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30787. *) ac_try_echo=$ac_try;;
  30788. esac
  30789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30790. (eval "$ac_compile") 2>conftest.er1
  30791. ac_status=$?
  30792. grep -v '^ *+' conftest.er1 >conftest.err
  30793. rm -f conftest.er1
  30794. cat conftest.err >&5
  30795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30796. (exit $ac_status); } && {
  30797. test -z "$ac_c_werror_flag" ||
  30798. test ! -s conftest.err
  30799. } && test -s conftest.$ac_objext; then
  30800. ac_lo=0 ac_mid=0
  30801. while :; do
  30802. cat >conftest.$ac_ext <<_ACEOF
  30803. /* confdefs.h. */
  30804. _ACEOF
  30805. cat confdefs.h >>conftest.$ac_ext
  30806. cat >>conftest.$ac_ext <<_ACEOF
  30807. /* end confdefs.h. */
  30808. $ac_includes_default
  30809. typedef long ac__type_sizeof_;
  30810. int
  30811. main ()
  30812. {
  30813. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30814. test_array [0] = 0
  30815. ;
  30816. return 0;
  30817. }
  30818. _ACEOF
  30819. rm -f conftest.$ac_objext
  30820. if { (ac_try="$ac_compile"
  30821. case "(($ac_try" in
  30822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30823. *) ac_try_echo=$ac_try;;
  30824. esac
  30825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30826. (eval "$ac_compile") 2>conftest.er1
  30827. ac_status=$?
  30828. grep -v '^ *+' conftest.er1 >conftest.err
  30829. rm -f conftest.er1
  30830. cat conftest.err >&5
  30831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30832. (exit $ac_status); } && {
  30833. test -z "$ac_c_werror_flag" ||
  30834. test ! -s conftest.err
  30835. } && test -s conftest.$ac_objext; then
  30836. ac_hi=$ac_mid; break
  30837. else
  30838. echo "$as_me: failed program was:" >&5
  30839. sed 's/^/| /' conftest.$ac_ext >&5
  30840. ac_lo=`expr $ac_mid + 1`
  30841. if test $ac_lo -le $ac_mid; then
  30842. ac_lo= ac_hi=
  30843. break
  30844. fi
  30845. ac_mid=`expr 2 '*' $ac_mid + 1`
  30846. fi
  30847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30848. done
  30849. else
  30850. echo "$as_me: failed program was:" >&5
  30851. sed 's/^/| /' conftest.$ac_ext >&5
  30852. cat >conftest.$ac_ext <<_ACEOF
  30853. /* confdefs.h. */
  30854. _ACEOF
  30855. cat confdefs.h >>conftest.$ac_ext
  30856. cat >>conftest.$ac_ext <<_ACEOF
  30857. /* end confdefs.h. */
  30858. $ac_includes_default
  30859. typedef long ac__type_sizeof_;
  30860. int
  30861. main ()
  30862. {
  30863. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30864. test_array [0] = 0
  30865. ;
  30866. return 0;
  30867. }
  30868. _ACEOF
  30869. rm -f conftest.$ac_objext
  30870. if { (ac_try="$ac_compile"
  30871. case "(($ac_try" in
  30872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30873. *) ac_try_echo=$ac_try;;
  30874. esac
  30875. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30876. (eval "$ac_compile") 2>conftest.er1
  30877. ac_status=$?
  30878. grep -v '^ *+' conftest.er1 >conftest.err
  30879. rm -f conftest.er1
  30880. cat conftest.err >&5
  30881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30882. (exit $ac_status); } && {
  30883. test -z "$ac_c_werror_flag" ||
  30884. test ! -s conftest.err
  30885. } && test -s conftest.$ac_objext; then
  30886. ac_hi=-1 ac_mid=-1
  30887. while :; do
  30888. cat >conftest.$ac_ext <<_ACEOF
  30889. /* confdefs.h. */
  30890. _ACEOF
  30891. cat confdefs.h >>conftest.$ac_ext
  30892. cat >>conftest.$ac_ext <<_ACEOF
  30893. /* end confdefs.h. */
  30894. $ac_includes_default
  30895. typedef long ac__type_sizeof_;
  30896. int
  30897. main ()
  30898. {
  30899. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30900. test_array [0] = 0
  30901. ;
  30902. return 0;
  30903. }
  30904. _ACEOF
  30905. rm -f conftest.$ac_objext
  30906. if { (ac_try="$ac_compile"
  30907. case "(($ac_try" in
  30908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30909. *) ac_try_echo=$ac_try;;
  30910. esac
  30911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30912. (eval "$ac_compile") 2>conftest.er1
  30913. ac_status=$?
  30914. grep -v '^ *+' conftest.er1 >conftest.err
  30915. rm -f conftest.er1
  30916. cat conftest.err >&5
  30917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30918. (exit $ac_status); } && {
  30919. test -z "$ac_c_werror_flag" ||
  30920. test ! -s conftest.err
  30921. } && test -s conftest.$ac_objext; then
  30922. ac_lo=$ac_mid; break
  30923. else
  30924. echo "$as_me: failed program was:" >&5
  30925. sed 's/^/| /' conftest.$ac_ext >&5
  30926. ac_hi=`expr '(' $ac_mid ')' - 1`
  30927. if test $ac_mid -le $ac_hi; then
  30928. ac_lo= ac_hi=
  30929. break
  30930. fi
  30931. ac_mid=`expr 2 '*' $ac_mid`
  30932. fi
  30933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30934. done
  30935. else
  30936. echo "$as_me: failed program was:" >&5
  30937. sed 's/^/| /' conftest.$ac_ext >&5
  30938. ac_lo= ac_hi=
  30939. fi
  30940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30941. fi
  30942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30943. # Binary search between lo and hi bounds.
  30944. while test "x$ac_lo" != "x$ac_hi"; do
  30945. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30946. cat >conftest.$ac_ext <<_ACEOF
  30947. /* confdefs.h. */
  30948. _ACEOF
  30949. cat confdefs.h >>conftest.$ac_ext
  30950. cat >>conftest.$ac_ext <<_ACEOF
  30951. /* end confdefs.h. */
  30952. $ac_includes_default
  30953. typedef long ac__type_sizeof_;
  30954. int
  30955. main ()
  30956. {
  30957. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30958. test_array [0] = 0
  30959. ;
  30960. return 0;
  30961. }
  30962. _ACEOF
  30963. rm -f conftest.$ac_objext
  30964. if { (ac_try="$ac_compile"
  30965. case "(($ac_try" in
  30966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30967. *) ac_try_echo=$ac_try;;
  30968. esac
  30969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30970. (eval "$ac_compile") 2>conftest.er1
  30971. ac_status=$?
  30972. grep -v '^ *+' conftest.er1 >conftest.err
  30973. rm -f conftest.er1
  30974. cat conftest.err >&5
  30975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30976. (exit $ac_status); } && {
  30977. test -z "$ac_c_werror_flag" ||
  30978. test ! -s conftest.err
  30979. } && test -s conftest.$ac_objext; then
  30980. ac_hi=$ac_mid
  30981. else
  30982. echo "$as_me: failed program was:" >&5
  30983. sed 's/^/| /' conftest.$ac_ext >&5
  30984. ac_lo=`expr '(' $ac_mid ')' + 1`
  30985. fi
  30986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30987. done
  30988. case $ac_lo in
  30989. ?*) ac_cv_sizeof_long=$ac_lo;;
  30990. '') if test "$ac_cv_type_long" = yes; then
  30991. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30992. See \`config.log' for more details." >&5
  30993. echo "$as_me: error: cannot compute sizeof (long)
  30994. See \`config.log' for more details." >&2;}
  30995. { (exit 77); exit 77; }; }
  30996. else
  30997. ac_cv_sizeof_long=0
  30998. fi ;;
  30999. esac
  31000. else
  31001. cat >conftest.$ac_ext <<_ACEOF
  31002. /* confdefs.h. */
  31003. _ACEOF
  31004. cat confdefs.h >>conftest.$ac_ext
  31005. cat >>conftest.$ac_ext <<_ACEOF
  31006. /* end confdefs.h. */
  31007. $ac_includes_default
  31008. typedef long ac__type_sizeof_;
  31009. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31010. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31011. #include <stdio.h>
  31012. #include <stdlib.h>
  31013. int
  31014. main ()
  31015. {
  31016. FILE *f = fopen ("conftest.val", "w");
  31017. if (! f)
  31018. return 1;
  31019. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31020. {
  31021. long int i = longval ();
  31022. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31023. return 1;
  31024. fprintf (f, "%ld\n", i);
  31025. }
  31026. else
  31027. {
  31028. unsigned long int i = ulongval ();
  31029. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31030. return 1;
  31031. fprintf (f, "%lu\n", i);
  31032. }
  31033. return ferror (f) || fclose (f) != 0;
  31034. ;
  31035. return 0;
  31036. }
  31037. _ACEOF
  31038. rm -f conftest$ac_exeext
  31039. if { (ac_try="$ac_link"
  31040. case "(($ac_try" in
  31041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31042. *) ac_try_echo=$ac_try;;
  31043. esac
  31044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31045. (eval "$ac_link") 2>&5
  31046. ac_status=$?
  31047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31048. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31049. { (case "(($ac_try" in
  31050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31051. *) ac_try_echo=$ac_try;;
  31052. esac
  31053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31054. (eval "$ac_try") 2>&5
  31055. ac_status=$?
  31056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31057. (exit $ac_status); }; }; then
  31058. ac_cv_sizeof_long=`cat conftest.val`
  31059. else
  31060. echo "$as_me: program exited with status $ac_status" >&5
  31061. echo "$as_me: failed program was:" >&5
  31062. sed 's/^/| /' conftest.$ac_ext >&5
  31063. ( exit $ac_status )
  31064. if test "$ac_cv_type_long" = yes; then
  31065. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  31066. See \`config.log' for more details." >&5
  31067. echo "$as_me: error: cannot compute sizeof (long)
  31068. See \`config.log' for more details." >&2;}
  31069. { (exit 77); exit 77; }; }
  31070. else
  31071. ac_cv_sizeof_long=0
  31072. fi
  31073. fi
  31074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31075. fi
  31076. rm -f conftest.val
  31077. fi
  31078. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  31079. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  31080. cat >>confdefs.h <<_ACEOF
  31081. #define SIZEOF_LONG $ac_cv_sizeof_long
  31082. _ACEOF
  31083. { echo "$as_me:$LINENO: checking for short" >&5
  31084. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  31085. if test "${ac_cv_type_short+set}" = set; then
  31086. echo $ECHO_N "(cached) $ECHO_C" >&6
  31087. else
  31088. cat >conftest.$ac_ext <<_ACEOF
  31089. /* confdefs.h. */
  31090. _ACEOF
  31091. cat confdefs.h >>conftest.$ac_ext
  31092. cat >>conftest.$ac_ext <<_ACEOF
  31093. /* end confdefs.h. */
  31094. $ac_includes_default
  31095. typedef short ac__type_new_;
  31096. int
  31097. main ()
  31098. {
  31099. if ((ac__type_new_ *) 0)
  31100. return 0;
  31101. if (sizeof (ac__type_new_))
  31102. return 0;
  31103. ;
  31104. return 0;
  31105. }
  31106. _ACEOF
  31107. rm -f conftest.$ac_objext
  31108. if { (ac_try="$ac_compile"
  31109. case "(($ac_try" in
  31110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31111. *) ac_try_echo=$ac_try;;
  31112. esac
  31113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31114. (eval "$ac_compile") 2>conftest.er1
  31115. ac_status=$?
  31116. grep -v '^ *+' conftest.er1 >conftest.err
  31117. rm -f conftest.er1
  31118. cat conftest.err >&5
  31119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31120. (exit $ac_status); } && {
  31121. test -z "$ac_c_werror_flag" ||
  31122. test ! -s conftest.err
  31123. } && test -s conftest.$ac_objext; then
  31124. ac_cv_type_short=yes
  31125. else
  31126. echo "$as_me: failed program was:" >&5
  31127. sed 's/^/| /' conftest.$ac_ext >&5
  31128. ac_cv_type_short=no
  31129. fi
  31130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31131. fi
  31132. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  31133. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  31134. # The cast to long int works around a bug in the HP C Compiler
  31135. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31136. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31137. # This bug is HP SR number 8606223364.
  31138. { echo "$as_me:$LINENO: checking size of short" >&5
  31139. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  31140. if test "${ac_cv_sizeof_short+set}" = set; then
  31141. echo $ECHO_N "(cached) $ECHO_C" >&6
  31142. else
  31143. if test "$cross_compiling" = yes; then
  31144. # Depending upon the size, compute the lo and hi bounds.
  31145. cat >conftest.$ac_ext <<_ACEOF
  31146. /* confdefs.h. */
  31147. _ACEOF
  31148. cat confdefs.h >>conftest.$ac_ext
  31149. cat >>conftest.$ac_ext <<_ACEOF
  31150. /* end confdefs.h. */
  31151. $ac_includes_default
  31152. typedef short ac__type_sizeof_;
  31153. int
  31154. main ()
  31155. {
  31156. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  31157. test_array [0] = 0
  31158. ;
  31159. return 0;
  31160. }
  31161. _ACEOF
  31162. rm -f conftest.$ac_objext
  31163. if { (ac_try="$ac_compile"
  31164. case "(($ac_try" in
  31165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31166. *) ac_try_echo=$ac_try;;
  31167. esac
  31168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31169. (eval "$ac_compile") 2>conftest.er1
  31170. ac_status=$?
  31171. grep -v '^ *+' conftest.er1 >conftest.err
  31172. rm -f conftest.er1
  31173. cat conftest.err >&5
  31174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31175. (exit $ac_status); } && {
  31176. test -z "$ac_c_werror_flag" ||
  31177. test ! -s conftest.err
  31178. } && test -s conftest.$ac_objext; then
  31179. ac_lo=0 ac_mid=0
  31180. while :; do
  31181. cat >conftest.$ac_ext <<_ACEOF
  31182. /* confdefs.h. */
  31183. _ACEOF
  31184. cat confdefs.h >>conftest.$ac_ext
  31185. cat >>conftest.$ac_ext <<_ACEOF
  31186. /* end confdefs.h. */
  31187. $ac_includes_default
  31188. typedef short ac__type_sizeof_;
  31189. int
  31190. main ()
  31191. {
  31192. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31193. test_array [0] = 0
  31194. ;
  31195. return 0;
  31196. }
  31197. _ACEOF
  31198. rm -f conftest.$ac_objext
  31199. if { (ac_try="$ac_compile"
  31200. case "(($ac_try" in
  31201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31202. *) ac_try_echo=$ac_try;;
  31203. esac
  31204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31205. (eval "$ac_compile") 2>conftest.er1
  31206. ac_status=$?
  31207. grep -v '^ *+' conftest.er1 >conftest.err
  31208. rm -f conftest.er1
  31209. cat conftest.err >&5
  31210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31211. (exit $ac_status); } && {
  31212. test -z "$ac_c_werror_flag" ||
  31213. test ! -s conftest.err
  31214. } && test -s conftest.$ac_objext; then
  31215. ac_hi=$ac_mid; break
  31216. else
  31217. echo "$as_me: failed program was:" >&5
  31218. sed 's/^/| /' conftest.$ac_ext >&5
  31219. ac_lo=`expr $ac_mid + 1`
  31220. if test $ac_lo -le $ac_mid; then
  31221. ac_lo= ac_hi=
  31222. break
  31223. fi
  31224. ac_mid=`expr 2 '*' $ac_mid + 1`
  31225. fi
  31226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31227. done
  31228. else
  31229. echo "$as_me: failed program was:" >&5
  31230. sed 's/^/| /' conftest.$ac_ext >&5
  31231. cat >conftest.$ac_ext <<_ACEOF
  31232. /* confdefs.h. */
  31233. _ACEOF
  31234. cat confdefs.h >>conftest.$ac_ext
  31235. cat >>conftest.$ac_ext <<_ACEOF
  31236. /* end confdefs.h. */
  31237. $ac_includes_default
  31238. typedef short ac__type_sizeof_;
  31239. int
  31240. main ()
  31241. {
  31242. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  31243. test_array [0] = 0
  31244. ;
  31245. return 0;
  31246. }
  31247. _ACEOF
  31248. rm -f conftest.$ac_objext
  31249. if { (ac_try="$ac_compile"
  31250. case "(($ac_try" in
  31251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31252. *) ac_try_echo=$ac_try;;
  31253. esac
  31254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31255. (eval "$ac_compile") 2>conftest.er1
  31256. ac_status=$?
  31257. grep -v '^ *+' conftest.er1 >conftest.err
  31258. rm -f conftest.er1
  31259. cat conftest.err >&5
  31260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31261. (exit $ac_status); } && {
  31262. test -z "$ac_c_werror_flag" ||
  31263. test ! -s conftest.err
  31264. } && test -s conftest.$ac_objext; then
  31265. ac_hi=-1 ac_mid=-1
  31266. while :; do
  31267. cat >conftest.$ac_ext <<_ACEOF
  31268. /* confdefs.h. */
  31269. _ACEOF
  31270. cat confdefs.h >>conftest.$ac_ext
  31271. cat >>conftest.$ac_ext <<_ACEOF
  31272. /* end confdefs.h. */
  31273. $ac_includes_default
  31274. typedef short ac__type_sizeof_;
  31275. int
  31276. main ()
  31277. {
  31278. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  31279. test_array [0] = 0
  31280. ;
  31281. return 0;
  31282. }
  31283. _ACEOF
  31284. rm -f conftest.$ac_objext
  31285. if { (ac_try="$ac_compile"
  31286. case "(($ac_try" in
  31287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31288. *) ac_try_echo=$ac_try;;
  31289. esac
  31290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31291. (eval "$ac_compile") 2>conftest.er1
  31292. ac_status=$?
  31293. grep -v '^ *+' conftest.er1 >conftest.err
  31294. rm -f conftest.er1
  31295. cat conftest.err >&5
  31296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31297. (exit $ac_status); } && {
  31298. test -z "$ac_c_werror_flag" ||
  31299. test ! -s conftest.err
  31300. } && test -s conftest.$ac_objext; then
  31301. ac_lo=$ac_mid; break
  31302. else
  31303. echo "$as_me: failed program was:" >&5
  31304. sed 's/^/| /' conftest.$ac_ext >&5
  31305. ac_hi=`expr '(' $ac_mid ')' - 1`
  31306. if test $ac_mid -le $ac_hi; then
  31307. ac_lo= ac_hi=
  31308. break
  31309. fi
  31310. ac_mid=`expr 2 '*' $ac_mid`
  31311. fi
  31312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31313. done
  31314. else
  31315. echo "$as_me: failed program was:" >&5
  31316. sed 's/^/| /' conftest.$ac_ext >&5
  31317. ac_lo= ac_hi=
  31318. fi
  31319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31320. fi
  31321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31322. # Binary search between lo and hi bounds.
  31323. while test "x$ac_lo" != "x$ac_hi"; do
  31324. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  31325. cat >conftest.$ac_ext <<_ACEOF
  31326. /* confdefs.h. */
  31327. _ACEOF
  31328. cat confdefs.h >>conftest.$ac_ext
  31329. cat >>conftest.$ac_ext <<_ACEOF
  31330. /* end confdefs.h. */
  31331. $ac_includes_default
  31332. typedef short ac__type_sizeof_;
  31333. int
  31334. main ()
  31335. {
  31336. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  31337. test_array [0] = 0
  31338. ;
  31339. return 0;
  31340. }
  31341. _ACEOF
  31342. rm -f conftest.$ac_objext
  31343. if { (ac_try="$ac_compile"
  31344. case "(($ac_try" in
  31345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31346. *) ac_try_echo=$ac_try;;
  31347. esac
  31348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31349. (eval "$ac_compile") 2>conftest.er1
  31350. ac_status=$?
  31351. grep -v '^ *+' conftest.er1 >conftest.err
  31352. rm -f conftest.er1
  31353. cat conftest.err >&5
  31354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31355. (exit $ac_status); } && {
  31356. test -z "$ac_c_werror_flag" ||
  31357. test ! -s conftest.err
  31358. } && test -s conftest.$ac_objext; then
  31359. ac_hi=$ac_mid
  31360. else
  31361. echo "$as_me: failed program was:" >&5
  31362. sed 's/^/| /' conftest.$ac_ext >&5
  31363. ac_lo=`expr '(' $ac_mid ')' + 1`
  31364. fi
  31365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31366. done
  31367. case $ac_lo in
  31368. ?*) ac_cv_sizeof_short=$ac_lo;;
  31369. '') if test "$ac_cv_type_short" = yes; then
  31370. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31371. See \`config.log' for more details." >&5
  31372. echo "$as_me: error: cannot compute sizeof (short)
  31373. See \`config.log' for more details." >&2;}
  31374. { (exit 77); exit 77; }; }
  31375. else
  31376. ac_cv_sizeof_short=0
  31377. fi ;;
  31378. esac
  31379. else
  31380. cat >conftest.$ac_ext <<_ACEOF
  31381. /* confdefs.h. */
  31382. _ACEOF
  31383. cat confdefs.h >>conftest.$ac_ext
  31384. cat >>conftest.$ac_ext <<_ACEOF
  31385. /* end confdefs.h. */
  31386. $ac_includes_default
  31387. typedef short ac__type_sizeof_;
  31388. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31389. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31390. #include <stdio.h>
  31391. #include <stdlib.h>
  31392. int
  31393. main ()
  31394. {
  31395. FILE *f = fopen ("conftest.val", "w");
  31396. if (! f)
  31397. return 1;
  31398. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31399. {
  31400. long int i = longval ();
  31401. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31402. return 1;
  31403. fprintf (f, "%ld\n", i);
  31404. }
  31405. else
  31406. {
  31407. unsigned long int i = ulongval ();
  31408. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31409. return 1;
  31410. fprintf (f, "%lu\n", i);
  31411. }
  31412. return ferror (f) || fclose (f) != 0;
  31413. ;
  31414. return 0;
  31415. }
  31416. _ACEOF
  31417. rm -f conftest$ac_exeext
  31418. if { (ac_try="$ac_link"
  31419. case "(($ac_try" in
  31420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31421. *) ac_try_echo=$ac_try;;
  31422. esac
  31423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31424. (eval "$ac_link") 2>&5
  31425. ac_status=$?
  31426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31427. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31428. { (case "(($ac_try" in
  31429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31430. *) ac_try_echo=$ac_try;;
  31431. esac
  31432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31433. (eval "$ac_try") 2>&5
  31434. ac_status=$?
  31435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31436. (exit $ac_status); }; }; then
  31437. ac_cv_sizeof_short=`cat conftest.val`
  31438. else
  31439. echo "$as_me: program exited with status $ac_status" >&5
  31440. echo "$as_me: failed program was:" >&5
  31441. sed 's/^/| /' conftest.$ac_ext >&5
  31442. ( exit $ac_status )
  31443. if test "$ac_cv_type_short" = yes; then
  31444. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31445. See \`config.log' for more details." >&5
  31446. echo "$as_me: error: cannot compute sizeof (short)
  31447. See \`config.log' for more details." >&2;}
  31448. { (exit 77); exit 77; }; }
  31449. else
  31450. ac_cv_sizeof_short=0
  31451. fi
  31452. fi
  31453. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31454. fi
  31455. rm -f conftest.val
  31456. fi
  31457. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  31458. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  31459. cat >>confdefs.h <<_ACEOF
  31460. #define SIZEOF_SHORT $ac_cv_sizeof_short
  31461. _ACEOF
  31462. # ----------------------------------------------------------------------
  31463. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  31464. # ----------------------------------------------------------------------
  31465. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  31466. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  31467. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  31468. echo $ECHO_N "(cached) $ECHO_C" >&6
  31469. else
  31470. ac_check_lib_save_LIBS=$LIBS
  31471. LIBS="-lgen $LIBS"
  31472. cat >conftest.$ac_ext <<_ACEOF
  31473. /* confdefs.h. */
  31474. _ACEOF
  31475. cat confdefs.h >>conftest.$ac_ext
  31476. cat >>conftest.$ac_ext <<_ACEOF
  31477. /* end confdefs.h. */
  31478. /* Override any GCC internal prototype to avoid an error.
  31479. Use char because int might match the return type of a GCC
  31480. builtin and then its argument prototype would still apply. */
  31481. #ifdef __cplusplus
  31482. extern "C"
  31483. #endif
  31484. char pathfind ();
  31485. int
  31486. main ()
  31487. {
  31488. return pathfind ();
  31489. ;
  31490. return 0;
  31491. }
  31492. _ACEOF
  31493. rm -f conftest.$ac_objext conftest$ac_exeext
  31494. if { (ac_try="$ac_link"
  31495. case "(($ac_try" in
  31496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31497. *) ac_try_echo=$ac_try;;
  31498. esac
  31499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31500. (eval "$ac_link") 2>conftest.er1
  31501. ac_status=$?
  31502. grep -v '^ *+' conftest.er1 >conftest.err
  31503. rm -f conftest.er1
  31504. cat conftest.err >&5
  31505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31506. (exit $ac_status); } && {
  31507. test -z "$ac_c_werror_flag" ||
  31508. test ! -s conftest.err
  31509. } && test -s conftest$ac_exeext &&
  31510. $as_test_x conftest$ac_exeext; then
  31511. ac_cv_lib_gen_pathfind=yes
  31512. else
  31513. echo "$as_me: failed program was:" >&5
  31514. sed 's/^/| /' conftest.$ac_ext >&5
  31515. ac_cv_lib_gen_pathfind=no
  31516. fi
  31517. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31518. conftest$ac_exeext conftest.$ac_ext
  31519. LIBS=$ac_check_lib_save_LIBS
  31520. fi
  31521. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  31522. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  31523. if test $ac_cv_lib_gen_pathfind = yes; then
  31524. cat >>confdefs.h <<_ACEOF
  31525. #define HAVE_LIBGEN 1
  31526. _ACEOF
  31527. LIBS="-lgen $LIBS"
  31528. fi
  31529. for ac_func in vprintf
  31530. do
  31531. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31532. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31533. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31534. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31535. echo $ECHO_N "(cached) $ECHO_C" >&6
  31536. else
  31537. cat >conftest.$ac_ext <<_ACEOF
  31538. /* confdefs.h. */
  31539. _ACEOF
  31540. cat confdefs.h >>conftest.$ac_ext
  31541. cat >>conftest.$ac_ext <<_ACEOF
  31542. /* end confdefs.h. */
  31543. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31544. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31545. #define $ac_func innocuous_$ac_func
  31546. /* System header to define __stub macros and hopefully few prototypes,
  31547. which can conflict with char $ac_func (); below.
  31548. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31549. <limits.h> exists even on freestanding compilers. */
  31550. #ifdef __STDC__
  31551. # include <limits.h>
  31552. #else
  31553. # include <assert.h>
  31554. #endif
  31555. #undef $ac_func
  31556. /* Override any GCC internal prototype to avoid an error.
  31557. Use char because int might match the return type of a GCC
  31558. builtin and then its argument prototype would still apply. */
  31559. #ifdef __cplusplus
  31560. extern "C"
  31561. #endif
  31562. char $ac_func ();
  31563. /* The GNU C library defines this for functions which it implements
  31564. to always fail with ENOSYS. Some functions are actually named
  31565. something starting with __ and the normal name is an alias. */
  31566. #if defined __stub_$ac_func || defined __stub___$ac_func
  31567. choke me
  31568. #endif
  31569. int
  31570. main ()
  31571. {
  31572. return $ac_func ();
  31573. ;
  31574. return 0;
  31575. }
  31576. _ACEOF
  31577. rm -f conftest.$ac_objext conftest$ac_exeext
  31578. if { (ac_try="$ac_link"
  31579. case "(($ac_try" in
  31580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31581. *) ac_try_echo=$ac_try;;
  31582. esac
  31583. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31584. (eval "$ac_link") 2>conftest.er1
  31585. ac_status=$?
  31586. grep -v '^ *+' conftest.er1 >conftest.err
  31587. rm -f conftest.er1
  31588. cat conftest.err >&5
  31589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31590. (exit $ac_status); } && {
  31591. test -z "$ac_c_werror_flag" ||
  31592. test ! -s conftest.err
  31593. } && test -s conftest$ac_exeext &&
  31594. $as_test_x conftest$ac_exeext; then
  31595. eval "$as_ac_var=yes"
  31596. else
  31597. echo "$as_me: failed program was:" >&5
  31598. sed 's/^/| /' conftest.$ac_ext >&5
  31599. eval "$as_ac_var=no"
  31600. fi
  31601. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31602. conftest$ac_exeext conftest.$ac_ext
  31603. fi
  31604. ac_res=`eval echo '${'$as_ac_var'}'`
  31605. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31606. echo "${ECHO_T}$ac_res" >&6; }
  31607. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31608. cat >>confdefs.h <<_ACEOF
  31609. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31610. _ACEOF
  31611. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  31612. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  31613. if test "${ac_cv_func__doprnt+set}" = set; then
  31614. echo $ECHO_N "(cached) $ECHO_C" >&6
  31615. else
  31616. cat >conftest.$ac_ext <<_ACEOF
  31617. /* confdefs.h. */
  31618. _ACEOF
  31619. cat confdefs.h >>conftest.$ac_ext
  31620. cat >>conftest.$ac_ext <<_ACEOF
  31621. /* end confdefs.h. */
  31622. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  31623. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31624. #define _doprnt innocuous__doprnt
  31625. /* System header to define __stub macros and hopefully few prototypes,
  31626. which can conflict with char _doprnt (); below.
  31627. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31628. <limits.h> exists even on freestanding compilers. */
  31629. #ifdef __STDC__
  31630. # include <limits.h>
  31631. #else
  31632. # include <assert.h>
  31633. #endif
  31634. #undef _doprnt
  31635. /* Override any GCC internal prototype to avoid an error.
  31636. Use char because int might match the return type of a GCC
  31637. builtin and then its argument prototype would still apply. */
  31638. #ifdef __cplusplus
  31639. extern "C"
  31640. #endif
  31641. char _doprnt ();
  31642. /* The GNU C library defines this for functions which it implements
  31643. to always fail with ENOSYS. Some functions are actually named
  31644. something starting with __ and the normal name is an alias. */
  31645. #if defined __stub__doprnt || defined __stub____doprnt
  31646. choke me
  31647. #endif
  31648. int
  31649. main ()
  31650. {
  31651. return _doprnt ();
  31652. ;
  31653. return 0;
  31654. }
  31655. _ACEOF
  31656. rm -f conftest.$ac_objext conftest$ac_exeext
  31657. if { (ac_try="$ac_link"
  31658. case "(($ac_try" in
  31659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31660. *) ac_try_echo=$ac_try;;
  31661. esac
  31662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31663. (eval "$ac_link") 2>conftest.er1
  31664. ac_status=$?
  31665. grep -v '^ *+' conftest.er1 >conftest.err
  31666. rm -f conftest.er1
  31667. cat conftest.err >&5
  31668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31669. (exit $ac_status); } && {
  31670. test -z "$ac_c_werror_flag" ||
  31671. test ! -s conftest.err
  31672. } && test -s conftest$ac_exeext &&
  31673. $as_test_x conftest$ac_exeext; then
  31674. ac_cv_func__doprnt=yes
  31675. else
  31676. echo "$as_me: failed program was:" >&5
  31677. sed 's/^/| /' conftest.$ac_ext >&5
  31678. ac_cv_func__doprnt=no
  31679. fi
  31680. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31681. conftest$ac_exeext conftest.$ac_ext
  31682. fi
  31683. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  31684. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  31685. if test $ac_cv_func__doprnt = yes; then
  31686. cat >>confdefs.h <<\_ACEOF
  31687. #define HAVE_DOPRNT 1
  31688. _ACEOF
  31689. fi
  31690. fi
  31691. done
  31692. for ac_func in strsignal mmap canonicalize_file_name snprintf strdup strchr strrchr
  31693. do
  31694. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31695. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31696. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31697. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31698. echo $ECHO_N "(cached) $ECHO_C" >&6
  31699. else
  31700. cat >conftest.$ac_ext <<_ACEOF
  31701. /* confdefs.h. */
  31702. _ACEOF
  31703. cat confdefs.h >>conftest.$ac_ext
  31704. cat >>conftest.$ac_ext <<_ACEOF
  31705. /* end confdefs.h. */
  31706. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31707. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31708. #define $ac_func innocuous_$ac_func
  31709. /* System header to define __stub macros and hopefully few prototypes,
  31710. which can conflict with char $ac_func (); below.
  31711. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31712. <limits.h> exists even on freestanding compilers. */
  31713. #ifdef __STDC__
  31714. # include <limits.h>
  31715. #else
  31716. # include <assert.h>
  31717. #endif
  31718. #undef $ac_func
  31719. /* Override any GCC internal prototype to avoid an error.
  31720. Use char because int might match the return type of a GCC
  31721. builtin and then its argument prototype would still apply. */
  31722. #ifdef __cplusplus
  31723. extern "C"
  31724. #endif
  31725. char $ac_func ();
  31726. /* The GNU C library defines this for functions which it implements
  31727. to always fail with ENOSYS. Some functions are actually named
  31728. something starting with __ and the normal name is an alias. */
  31729. #if defined __stub_$ac_func || defined __stub___$ac_func
  31730. choke me
  31731. #endif
  31732. int
  31733. main ()
  31734. {
  31735. return $ac_func ();
  31736. ;
  31737. return 0;
  31738. }
  31739. _ACEOF
  31740. rm -f conftest.$ac_objext conftest$ac_exeext
  31741. if { (ac_try="$ac_link"
  31742. case "(($ac_try" in
  31743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31744. *) ac_try_echo=$ac_try;;
  31745. esac
  31746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31747. (eval "$ac_link") 2>conftest.er1
  31748. ac_status=$?
  31749. grep -v '^ *+' conftest.er1 >conftest.err
  31750. rm -f conftest.er1
  31751. cat conftest.err >&5
  31752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31753. (exit $ac_status); } && {
  31754. test -z "$ac_c_werror_flag" ||
  31755. test ! -s conftest.err
  31756. } && test -s conftest$ac_exeext &&
  31757. $as_test_x conftest$ac_exeext; then
  31758. eval "$as_ac_var=yes"
  31759. else
  31760. echo "$as_me: failed program was:" >&5
  31761. sed 's/^/| /' conftest.$ac_ext >&5
  31762. eval "$as_ac_var=no"
  31763. fi
  31764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31765. conftest$ac_exeext conftest.$ac_ext
  31766. fi
  31767. ac_res=`eval echo '${'$as_ac_var'}'`
  31768. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31769. echo "${ECHO_T}$ac_res" >&6; }
  31770. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31771. cat >>confdefs.h <<_ACEOF
  31772. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31773. _ACEOF
  31774. fi
  31775. done
  31776. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  31777. fi
  31778. fi
  31779. # end of AC_DEFUN of LIBOPTS_CHECK
  31780. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  31781. cat >confcache <<\_ACEOF
  31782. # This file is a shell script that caches the results of configure
  31783. # tests run on this system so they can be shared between configure
  31784. # scripts and configure runs, see configure's option --config-cache.
  31785. # It is not useful on other systems. If it contains results you don't
  31786. # want to keep, you may remove or edit it.
  31787. #
  31788. # config.status only pays attention to the cache file if you give it
  31789. # the --recheck option to rerun configure.
  31790. #
  31791. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31792. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31793. # following values.
  31794. _ACEOF
  31795. # The following way of writing the cache mishandles newlines in values,
  31796. # but we know of no workaround that is simple, portable, and efficient.
  31797. # So, we kill variables containing newlines.
  31798. # Ultrix sh set writes to stderr and can't be redirected directly,
  31799. # and sets the high bit in the cache file unless we assign to the vars.
  31800. (
  31801. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31802. eval ac_val=\$$ac_var
  31803. case $ac_val in #(
  31804. *${as_nl}*)
  31805. case $ac_var in #(
  31806. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  31807. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  31808. esac
  31809. case $ac_var in #(
  31810. _ | IFS | as_nl) ;; #(
  31811. *) $as_unset $ac_var ;;
  31812. esac ;;
  31813. esac
  31814. done
  31815. (set) 2>&1 |
  31816. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31817. *${as_nl}ac_space=\ *)
  31818. # `set' does not quote correctly, so add quotes (double-quote
  31819. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31820. sed -n \
  31821. "s/'/'\\\\''/g;
  31822. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31823. ;; #(
  31824. *)
  31825. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31826. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31827. ;;
  31828. esac |
  31829. sort
  31830. ) |
  31831. sed '
  31832. /^ac_cv_env_/b end
  31833. t clear
  31834. :clear
  31835. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31836. t end
  31837. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31838. :end' >>confcache
  31839. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31840. if test -w "$cache_file"; then
  31841. test "x$cache_file" != "x/dev/null" &&
  31842. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31843. echo "$as_me: updating cache $cache_file" >&6;}
  31844. cat confcache >$cache_file
  31845. else
  31846. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31847. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31848. fi
  31849. fi
  31850. rm -f confcache
  31851. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31852. # Let make expand exec_prefix.
  31853. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31854. DEFS=-DHAVE_CONFIG_H
  31855. ac_libobjs=
  31856. ac_ltlibobjs=
  31857. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31858. # 1. Remove the extension, and $U if already installed.
  31859. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31860. ac_i=`echo "$ac_i" | sed "$ac_script"`
  31861. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31862. # will be set to the directory where LIBOBJS objects are built.
  31863. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31864. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31865. done
  31866. LIBOBJS=$ac_libobjs
  31867. LTLIBOBJS=$ac_ltlibobjs
  31868. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  31869. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  31870. Usually this means the macro was only invoked conditionally." >&5
  31871. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  31872. Usually this means the macro was only invoked conditionally." >&2;}
  31873. { (exit 1); exit 1; }; }
  31874. fi
  31875. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  31876. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  31877. Usually this means the macro was only invoked conditionally." >&5
  31878. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  31879. Usually this means the macro was only invoked conditionally." >&2;}
  31880. { (exit 1); exit 1; }; }
  31881. fi
  31882. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31883. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31884. Usually this means the macro was only invoked conditionally." >&5
  31885. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31886. Usually this means the macro was only invoked conditionally." >&2;}
  31887. { (exit 1); exit 1; }; }
  31888. fi
  31889. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31890. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31891. Usually this means the macro was only invoked conditionally." >&5
  31892. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31893. Usually this means the macro was only invoked conditionally." >&2;}
  31894. { (exit 1); exit 1; }; }
  31895. fi
  31896. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31897. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31898. Usually this means the macro was only invoked conditionally." >&5
  31899. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31900. Usually this means the macro was only invoked conditionally." >&2;}
  31901. { (exit 1); exit 1; }; }
  31902. fi
  31903. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31904. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31905. Usually this means the macro was only invoked conditionally." >&5
  31906. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31907. Usually this means the macro was only invoked conditionally." >&2;}
  31908. { (exit 1); exit 1; }; }
  31909. fi
  31910. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  31911. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31912. Usually this means the macro was only invoked conditionally." >&5
  31913. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31914. Usually this means the macro was only invoked conditionally." >&2;}
  31915. { (exit 1); exit 1; }; }
  31916. fi
  31917. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  31918. { { echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31919. Usually this means the macro was only invoked conditionally." >&5
  31920. echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31921. Usually this means the macro was only invoked conditionally." >&2;}
  31922. { (exit 1); exit 1; }; }
  31923. fi
  31924. if test -z "${ENABLE_TCPREPLAY_EDIT_TRUE}" && test -z "${ENABLE_TCPREPLAY_EDIT_FALSE}"; then
  31925. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31926. Usually this means the macro was only invoked conditionally." >&5
  31927. echo "$as_me: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31928. Usually this means the macro was only invoked conditionally." >&2;}
  31929. { (exit 1); exit 1; }; }
  31930. fi
  31931. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  31932. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31933. Usually this means the macro was only invoked conditionally." >&5
  31934. echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31935. Usually this means the macro was only invoked conditionally." >&2;}
  31936. { (exit 1); exit 1; }; }
  31937. fi
  31938. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  31939. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31940. Usually this means the macro was only invoked conditionally." >&5
  31941. echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31942. Usually this means the macro was only invoked conditionally." >&2;}
  31943. { (exit 1); exit 1; }; }
  31944. fi
  31945. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  31946. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  31947. Usually this means the macro was only invoked conditionally." >&5
  31948. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  31949. Usually this means the macro was only invoked conditionally." >&2;}
  31950. { (exit 1); exit 1; }; }
  31951. fi
  31952. : ${CONFIG_STATUS=./config.status}
  31953. ac_clean_files_save=$ac_clean_files
  31954. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31955. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31956. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31957. cat >$CONFIG_STATUS <<_ACEOF
  31958. #! $SHELL
  31959. # Generated by $as_me.
  31960. # Run this file to recreate the current configuration.
  31961. # Compiler output produced by configure, useful for debugging
  31962. # configure, is in config.log if it exists.
  31963. debug=false
  31964. ac_cs_recheck=false
  31965. ac_cs_silent=false
  31966. SHELL=\${CONFIG_SHELL-$SHELL}
  31967. _ACEOF
  31968. cat >>$CONFIG_STATUS <<\_ACEOF
  31969. ## --------------------- ##
  31970. ## M4sh Initialization. ##
  31971. ## --------------------- ##
  31972. # Be more Bourne compatible
  31973. DUALCASE=1; export DUALCASE # for MKS sh
  31974. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31975. emulate sh
  31976. NULLCMD=:
  31977. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31978. # is contrary to our usage. Disable this feature.
  31979. alias -g '${1+"$@"}'='"$@"'
  31980. setopt NO_GLOB_SUBST
  31981. else
  31982. case `(set -o) 2>/dev/null` in
  31983. *posix*) set -o posix ;;
  31984. esac
  31985. fi
  31986. # PATH needs CR
  31987. # Avoid depending upon Character Ranges.
  31988. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31989. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31990. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31991. as_cr_digits='0123456789'
  31992. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31993. # The user is always right.
  31994. if test "${PATH_SEPARATOR+set}" != set; then
  31995. echo "#! /bin/sh" >conf$$.sh
  31996. echo "exit 0" >>conf$$.sh
  31997. chmod +x conf$$.sh
  31998. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31999. PATH_SEPARATOR=';'
  32000. else
  32001. PATH_SEPARATOR=:
  32002. fi
  32003. rm -f conf$$.sh
  32004. fi
  32005. # Support unset when possible.
  32006. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  32007. as_unset=unset
  32008. else
  32009. as_unset=false
  32010. fi
  32011. # IFS
  32012. # We need space, tab and new line, in precisely that order. Quoting is
  32013. # there to prevent editors from complaining about space-tab.
  32014. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  32015. # splitting by setting IFS to empty value.)
  32016. as_nl='
  32017. '
  32018. IFS=" "" $as_nl"
  32019. # Find who we are. Look in the path if we contain no directory separator.
  32020. case $0 in
  32021. *[\\/]* ) as_myself=$0 ;;
  32022. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32023. for as_dir in $PATH
  32024. do
  32025. IFS=$as_save_IFS
  32026. test -z "$as_dir" && as_dir=.
  32027. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  32028. done
  32029. IFS=$as_save_IFS
  32030. ;;
  32031. esac
  32032. # We did not find ourselves, most probably we were run as `sh COMMAND'
  32033. # in which case we are not to be found in the path.
  32034. if test "x$as_myself" = x; then
  32035. as_myself=$0
  32036. fi
  32037. if test ! -f "$as_myself"; then
  32038. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  32039. { (exit 1); exit 1; }
  32040. fi
  32041. # Work around bugs in pre-3.0 UWIN ksh.
  32042. for as_var in ENV MAIL MAILPATH
  32043. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32044. done
  32045. PS1='$ '
  32046. PS2='> '
  32047. PS4='+ '
  32048. # NLS nuisances.
  32049. for as_var in \
  32050. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  32051. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  32052. LC_TELEPHONE LC_TIME
  32053. do
  32054. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  32055. eval $as_var=C; export $as_var
  32056. else
  32057. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  32058. fi
  32059. done
  32060. # Required to use basename.
  32061. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32062. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32063. as_expr=expr
  32064. else
  32065. as_expr=false
  32066. fi
  32067. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  32068. as_basename=basename
  32069. else
  32070. as_basename=false
  32071. fi
  32072. # Name of the executable.
  32073. as_me=`$as_basename -- "$0" ||
  32074. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  32075. X"$0" : 'X\(//\)$' \| \
  32076. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  32077. echo X/"$0" |
  32078. sed '/^.*\/\([^/][^/]*\)\/*$/{
  32079. s//\1/
  32080. q
  32081. }
  32082. /^X\/\(\/\/\)$/{
  32083. s//\1/
  32084. q
  32085. }
  32086. /^X\/\(\/\).*/{
  32087. s//\1/
  32088. q
  32089. }
  32090. s/.*/./; q'`
  32091. # CDPATH.
  32092. $as_unset CDPATH
  32093. as_lineno_1=$LINENO
  32094. as_lineno_2=$LINENO
  32095. test "x$as_lineno_1" != "x$as_lineno_2" &&
  32096. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  32097. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  32098. # uniformly replaced by the line number. The first 'sed' inserts a
  32099. # line-number line after each line using $LINENO; the second 'sed'
  32100. # does the real work. The second script uses 'N' to pair each
  32101. # line-number line with the line containing $LINENO, and appends
  32102. # trailing '-' during substitution so that $LINENO is not a special
  32103. # case at line end.
  32104. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  32105. # scripts with optimization help from Paolo Bonzini. Blame Lee
  32106. # E. McMahon (1931-1989) for sed's syntax. :-)
  32107. sed -n '
  32108. p
  32109. /[$]LINENO/=
  32110. ' <$as_myself |
  32111. sed '
  32112. s/[$]LINENO.*/&-/
  32113. t lineno
  32114. b
  32115. :lineno
  32116. N
  32117. :loop
  32118. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  32119. t loop
  32120. s/-\n.*//
  32121. ' >$as_me.lineno &&
  32122. chmod +x "$as_me.lineno" ||
  32123. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  32124. { (exit 1); exit 1; }; }
  32125. # Don't try to exec as it changes $[0], causing all sort of problems
  32126. # (the dirname of $[0] is not the place where we might find the
  32127. # original and so on. Autoconf is especially sensitive to this).
  32128. . "./$as_me.lineno"
  32129. # Exit status is that of the last command.
  32130. exit
  32131. }
  32132. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  32133. as_dirname=dirname
  32134. else
  32135. as_dirname=false
  32136. fi
  32137. ECHO_C= ECHO_N= ECHO_T=
  32138. case `echo -n x` in
  32139. -n*)
  32140. case `echo 'x\c'` in
  32141. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  32142. *) ECHO_C='\c';;
  32143. esac;;
  32144. *)
  32145. ECHO_N='-n';;
  32146. esac
  32147. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32148. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32149. as_expr=expr
  32150. else
  32151. as_expr=false
  32152. fi
  32153. rm -f conf$$ conf$$.exe conf$$.file
  32154. if test -d conf$$.dir; then
  32155. rm -f conf$$.dir/conf$$.file
  32156. else
  32157. rm -f conf$$.dir
  32158. mkdir conf$$.dir
  32159. fi
  32160. echo >conf$$.file
  32161. if ln -s conf$$.file conf$$ 2>/dev/null; then
  32162. as_ln_s='ln -s'
  32163. # ... but there are two gotchas:
  32164. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  32165. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  32166. # In both cases, we have to default to `cp -p'.
  32167. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  32168. as_ln_s='cp -p'
  32169. elif ln conf$$.file conf$$ 2>/dev/null; then
  32170. as_ln_s=ln
  32171. else
  32172. as_ln_s='cp -p'
  32173. fi
  32174. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  32175. rmdir conf$$.dir 2>/dev/null
  32176. if mkdir -p . 2>/dev/null; then
  32177. as_mkdir_p=:
  32178. else
  32179. test -d ./-p && rmdir ./-p
  32180. as_mkdir_p=false
  32181. fi
  32182. if test -x / >/dev/null 2>&1; then
  32183. as_test_x='test -x'
  32184. else
  32185. if ls -dL / >/dev/null 2>&1; then
  32186. as_ls_L_option=L
  32187. else
  32188. as_ls_L_option=
  32189. fi
  32190. as_test_x='
  32191. eval sh -c '\''
  32192. if test -d "$1"; then
  32193. test -d "$1/.";
  32194. else
  32195. case $1 in
  32196. -*)set "./$1";;
  32197. esac;
  32198. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  32199. ???[sx]*):;;*)false;;esac;fi
  32200. '\'' sh
  32201. '
  32202. fi
  32203. as_executable_p=$as_test_x
  32204. # Sed expression to map a string onto a valid CPP name.
  32205. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  32206. # Sed expression to map a string onto a valid variable name.
  32207. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  32208. exec 6>&1
  32209. # Save the log message, to keep $[0] and so on meaningful, and to
  32210. # report actual input values of CONFIG_FILES etc. instead of their
  32211. # values after options handling.
  32212. ac_log="
  32213. This file was extended by $as_me, which was
  32214. generated by GNU Autoconf 2.61. Invocation command line was
  32215. CONFIG_FILES = $CONFIG_FILES
  32216. CONFIG_HEADERS = $CONFIG_HEADERS
  32217. CONFIG_LINKS = $CONFIG_LINKS
  32218. CONFIG_COMMANDS = $CONFIG_COMMANDS
  32219. $ $0 $@
  32220. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  32221. "
  32222. _ACEOF
  32223. cat >>$CONFIG_STATUS <<_ACEOF
  32224. # Files that config.status was made for.
  32225. config_files="$ac_config_files"
  32226. config_headers="$ac_config_headers"
  32227. config_commands="$ac_config_commands"
  32228. _ACEOF
  32229. cat >>$CONFIG_STATUS <<\_ACEOF
  32230. ac_cs_usage="\
  32231. \`$as_me' instantiates files from templates according to the
  32232. current configuration.
  32233. Usage: $0 [OPTIONS] [FILE]...
  32234. -h, --help print this help, then exit
  32235. -V, --version print version number and configuration settings, then exit
  32236. -q, --quiet do not print progress messages
  32237. -d, --debug don't remove temporary files
  32238. --recheck update $as_me by reconfiguring in the same conditions
  32239. --file=FILE[:TEMPLATE]
  32240. instantiate the configuration file FILE
  32241. --header=FILE[:TEMPLATE]
  32242. instantiate the configuration header FILE
  32243. Configuration files:
  32244. $config_files
  32245. Configuration headers:
  32246. $config_headers
  32247. Configuration commands:
  32248. $config_commands
  32249. Report bugs to <bug-autoconf@gnu.org>."
  32250. _ACEOF
  32251. cat >>$CONFIG_STATUS <<_ACEOF
  32252. ac_cs_version="\\
  32253. config.status
  32254. configured by $0, generated by GNU Autoconf 2.61,
  32255. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  32256. Copyright (C) 2006 Free Software Foundation, Inc.
  32257. This config.status script is free software; the Free Software Foundation
  32258. gives unlimited permission to copy, distribute and modify it."
  32259. ac_pwd='$ac_pwd'
  32260. srcdir='$srcdir'
  32261. INSTALL='$INSTALL'
  32262. MKDIR_P='$MKDIR_P'
  32263. _ACEOF
  32264. cat >>$CONFIG_STATUS <<\_ACEOF
  32265. # If no file are specified by the user, then we need to provide default
  32266. # value. By we need to know if files were specified by the user.
  32267. ac_need_defaults=:
  32268. while test $# != 0
  32269. do
  32270. case $1 in
  32271. --*=*)
  32272. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  32273. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  32274. ac_shift=:
  32275. ;;
  32276. *)
  32277. ac_option=$1
  32278. ac_optarg=$2
  32279. ac_shift=shift
  32280. ;;
  32281. esac
  32282. case $ac_option in
  32283. # Handling of the options.
  32284. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  32285. ac_cs_recheck=: ;;
  32286. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  32287. echo "$ac_cs_version"; exit ;;
  32288. --debug | --debu | --deb | --de | --d | -d )
  32289. debug=: ;;
  32290. --file | --fil | --fi | --f )
  32291. $ac_shift
  32292. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  32293. ac_need_defaults=false;;
  32294. --header | --heade | --head | --hea )
  32295. $ac_shift
  32296. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  32297. ac_need_defaults=false;;
  32298. --he | --h)
  32299. # Conflict between --help and --header
  32300. { echo "$as_me: error: ambiguous option: $1
  32301. Try \`$0 --help' for more information." >&2
  32302. { (exit 1); exit 1; }; };;
  32303. --help | --hel | -h )
  32304. echo "$ac_cs_usage"; exit ;;
  32305. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  32306. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  32307. ac_cs_silent=: ;;
  32308. # This is an error.
  32309. -*) { echo "$as_me: error: unrecognized option: $1
  32310. Try \`$0 --help' for more information." >&2
  32311. { (exit 1); exit 1; }; } ;;
  32312. *) ac_config_targets="$ac_config_targets $1"
  32313. ac_need_defaults=false ;;
  32314. esac
  32315. shift
  32316. done
  32317. ac_configure_extra_args=
  32318. if $ac_cs_silent; then
  32319. exec 6>/dev/null
  32320. ac_configure_extra_args="$ac_configure_extra_args --silent"
  32321. fi
  32322. _ACEOF
  32323. cat >>$CONFIG_STATUS <<_ACEOF
  32324. if \$ac_cs_recheck; then
  32325. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  32326. CONFIG_SHELL=$SHELL
  32327. export CONFIG_SHELL
  32328. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  32329. fi
  32330. _ACEOF
  32331. cat >>$CONFIG_STATUS <<\_ACEOF
  32332. exec 5>>config.log
  32333. {
  32334. echo
  32335. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  32336. ## Running $as_me. ##
  32337. _ASBOX
  32338. echo "$ac_log"
  32339. } >&5
  32340. _ACEOF
  32341. cat >>$CONFIG_STATUS <<_ACEOF
  32342. #
  32343. # INIT-COMMANDS
  32344. #
  32345. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  32346. _ACEOF
  32347. cat >>$CONFIG_STATUS <<\_ACEOF
  32348. # Handling of arguments.
  32349. for ac_config_target in $ac_config_targets
  32350. do
  32351. case $ac_config_target in
  32352. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  32353. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  32354. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  32355. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  32356. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  32357. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  32358. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  32359. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  32360. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  32361. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  32362. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  32363. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  32364. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  32365. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  32366. "tcpreplay.spec") CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  32367. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  32368. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  32369. { (exit 1); exit 1; }; };;
  32370. esac
  32371. done
  32372. # If the user did not use the arguments to specify the items to instantiate,
  32373. # then the envvar interface is used. Set only those that are not.
  32374. # We use the long form for the default assignment because of an extremely
  32375. # bizarre bug on SunOS 4.1.3.
  32376. if $ac_need_defaults; then
  32377. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  32378. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  32379. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  32380. fi
  32381. # Have a temporary directory for convenience. Make it in the build tree
  32382. # simply because there is no reason against having it here, and in addition,
  32383. # creating and moving files from /tmp can sometimes cause problems.
  32384. # Hook for its removal unless debugging.
  32385. # Note that there is a small window in which the directory will not be cleaned:
  32386. # after its creation but before its name has been assigned to `$tmp'.
  32387. $debug ||
  32388. {
  32389. tmp=
  32390. trap 'exit_status=$?
  32391. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  32392. ' 0
  32393. trap '{ (exit 1); exit 1; }' 1 2 13 15
  32394. }
  32395. # Create a (secure) tmp directory for tmp files.
  32396. {
  32397. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  32398. test -n "$tmp" && test -d "$tmp"
  32399. } ||
  32400. {
  32401. tmp=./conf$$-$RANDOM
  32402. (umask 077 && mkdir "$tmp")
  32403. } ||
  32404. {
  32405. echo "$me: cannot create a temporary directory in ." >&2
  32406. { (exit 1); exit 1; }
  32407. }
  32408. #
  32409. # Set up the sed scripts for CONFIG_FILES section.
  32410. #
  32411. # No need to generate the scripts if there are no CONFIG_FILES.
  32412. # This happens for instance when ./config.status config.h
  32413. if test -n "$CONFIG_FILES"; then
  32414. _ACEOF
  32415. ac_delim='%!_!# '
  32416. for ac_last_try in false false false false false :; do
  32417. cat >conf$$subs.sed <<_ACEOF
  32418. SHELL!$SHELL$ac_delim
  32419. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  32420. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  32421. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  32422. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  32423. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  32424. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  32425. exec_prefix!$exec_prefix$ac_delim
  32426. prefix!$prefix$ac_delim
  32427. program_transform_name!$program_transform_name$ac_delim
  32428. bindir!$bindir$ac_delim
  32429. sbindir!$sbindir$ac_delim
  32430. libexecdir!$libexecdir$ac_delim
  32431. datarootdir!$datarootdir$ac_delim
  32432. datadir!$datadir$ac_delim
  32433. sysconfdir!$sysconfdir$ac_delim
  32434. sharedstatedir!$sharedstatedir$ac_delim
  32435. localstatedir!$localstatedir$ac_delim
  32436. includedir!$includedir$ac_delim
  32437. oldincludedir!$oldincludedir$ac_delim
  32438. docdir!$docdir$ac_delim
  32439. infodir!$infodir$ac_delim
  32440. htmldir!$htmldir$ac_delim
  32441. dvidir!$dvidir$ac_delim
  32442. pdfdir!$pdfdir$ac_delim
  32443. psdir!$psdir$ac_delim
  32444. libdir!$libdir$ac_delim
  32445. localedir!$localedir$ac_delim
  32446. mandir!$mandir$ac_delim
  32447. DEFS!$DEFS$ac_delim
  32448. ECHO_C!$ECHO_C$ac_delim
  32449. ECHO_N!$ECHO_N$ac_delim
  32450. ECHO_T!$ECHO_T$ac_delim
  32451. LIBS!$LIBS$ac_delim
  32452. build_alias!$build_alias$ac_delim
  32453. host_alias!$host_alias$ac_delim
  32454. target_alias!$target_alias$ac_delim
  32455. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  32456. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  32457. MAINT!$MAINT$ac_delim
  32458. TCPREPLAY_VERSION!$TCPREPLAY_VERSION$ac_delim
  32459. TCPREPLAY_RELEASE!$TCPREPLAY_RELEASE$ac_delim
  32460. build!$build$ac_delim
  32461. build_cpu!$build_cpu$ac_delim
  32462. build_vendor!$build_vendor$ac_delim
  32463. build_os!$build_os$ac_delim
  32464. host!$host$ac_delim
  32465. host_cpu!$host_cpu$ac_delim
  32466. host_vendor!$host_vendor$ac_delim
  32467. host_os!$host_os$ac_delim
  32468. target!$target$ac_delim
  32469. target_cpu!$target_cpu$ac_delim
  32470. target_vendor!$target_vendor$ac_delim
  32471. target_os!$target_os$ac_delim
  32472. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  32473. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  32474. INSTALL_DATA!$INSTALL_DATA$ac_delim
  32475. am__isrc!$am__isrc$ac_delim
  32476. CYGPATH_W!$CYGPATH_W$ac_delim
  32477. PACKAGE!$PACKAGE$ac_delim
  32478. VERSION!$VERSION$ac_delim
  32479. ACLOCAL!$ACLOCAL$ac_delim
  32480. AUTOCONF!$AUTOCONF$ac_delim
  32481. AUTOMAKE!$AUTOMAKE$ac_delim
  32482. AUTOHEADER!$AUTOHEADER$ac_delim
  32483. MAKEINFO!$MAKEINFO$ac_delim
  32484. install_sh!$install_sh$ac_delim
  32485. STRIP!$STRIP$ac_delim
  32486. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  32487. mkdir_p!$mkdir_p$ac_delim
  32488. AWK!$AWK$ac_delim
  32489. SET_MAKE!$SET_MAKE$ac_delim
  32490. am__leading_dot!$am__leading_dot$ac_delim
  32491. AMTAR!$AMTAR$ac_delim
  32492. am__tar!$am__tar$ac_delim
  32493. am__untar!$am__untar$ac_delim
  32494. CC!$CC$ac_delim
  32495. CFLAGS!$CFLAGS$ac_delim
  32496. LDFLAGS!$LDFLAGS$ac_delim
  32497. CPPFLAGS!$CPPFLAGS$ac_delim
  32498. ac_ct_CC!$ac_ct_CC$ac_delim
  32499. EXEEXT!$EXEEXT$ac_delim
  32500. OBJEXT!$OBJEXT$ac_delim
  32501. DEPDIR!$DEPDIR$ac_delim
  32502. am__include!$am__include$ac_delim
  32503. am__quote!$am__quote$ac_delim
  32504. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  32505. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  32506. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  32507. CCDEPMODE!$CCDEPMODE$ac_delim
  32508. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  32509. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  32510. SED!$SED$ac_delim
  32511. GREP!$GREP$ac_delim
  32512. EGREP!$EGREP$ac_delim
  32513. LN_S!$LN_S$ac_delim
  32514. ECHO!$ECHO$ac_delim
  32515. _ACEOF
  32516. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  32517. break
  32518. elif $ac_last_try; then
  32519. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32520. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32521. { (exit 1); exit 1; }; }
  32522. else
  32523. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32524. fi
  32525. done
  32526. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32527. if test -n "$ac_eof"; then
  32528. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32529. ac_eof=`expr $ac_eof + 1`
  32530. fi
  32531. cat >>$CONFIG_STATUS <<_ACEOF
  32532. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  32533. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32534. _ACEOF
  32535. sed '
  32536. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32537. s/^/s,@/; s/!/@,|#_!!_#|/
  32538. :n
  32539. t n
  32540. s/'"$ac_delim"'$/,g/; t
  32541. s/$/\\/; p
  32542. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32543. ' >>$CONFIG_STATUS <conf$$subs.sed
  32544. rm -f conf$$subs.sed
  32545. cat >>$CONFIG_STATUS <<_ACEOF
  32546. CEOF$ac_eof
  32547. _ACEOF
  32548. ac_delim='%!_!# '
  32549. for ac_last_try in false false false false false :; do
  32550. cat >conf$$subs.sed <<_ACEOF
  32551. AR!$AR$ac_delim
  32552. RANLIB!$RANLIB$ac_delim
  32553. CPP!$CPP$ac_delim
  32554. CXX!$CXX$ac_delim
  32555. CXXFLAGS!$CXXFLAGS$ac_delim
  32556. ac_ct_CXX!$ac_ct_CXX$ac_delim
  32557. CXXDEPMODE!$CXXDEPMODE$ac_delim
  32558. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  32559. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  32560. CXXCPP!$CXXCPP$ac_delim
  32561. F77!$F77$ac_delim
  32562. FFLAGS!$FFLAGS$ac_delim
  32563. ac_ct_F77!$ac_ct_F77$ac_delim
  32564. LIBTOOL!$LIBTOOL$ac_delim
  32565. PRINTF!$PRINTF$ac_delim
  32566. AUTOGEN!$AUTOGEN$ac_delim
  32567. LIBOBJS!$LIBOBJS$ac_delim
  32568. SYSTEM_STRLCPY_TRUE!$SYSTEM_STRLCPY_TRUE$ac_delim
  32569. SYSTEM_STRLCPY_FALSE!$SYSTEM_STRLCPY_FALSE$ac_delim
  32570. WORDS_BIGENDIAN_TRUE!$WORDS_BIGENDIAN_TRUE$ac_delim
  32571. WORDS_BIGENDIAN_FALSE!$WORDS_BIGENDIAN_FALSE$ac_delim
  32572. debug_flag!$debug_flag$ac_delim
  32573. ENABLE_TCPREPLAY_EDIT_TRUE!$ENABLE_TCPREPLAY_EDIT_TRUE$ac_delim
  32574. ENABLE_TCPREPLAY_EDIT_FALSE!$ENABLE_TCPREPLAY_EDIT_FALSE$ac_delim
  32575. LNETINC!$LNETINC$ac_delim
  32576. LNETLIB!$LNETLIB$ac_delim
  32577. LPCAPINC!$LPCAPINC$ac_delim
  32578. LPCAPLIB!$LPCAPLIB$ac_delim
  32579. PCAP_BPF_H_FILE!$PCAP_BPF_H_FILE$ac_delim
  32580. pcncfg!$pcncfg$ac_delim
  32581. LNAVLIB!$LNAVLIB$ac_delim
  32582. LNAV_CFLAGS!$LNAV_CFLAGS$ac_delim
  32583. tcpdump_path!$tcpdump_path$ac_delim
  32584. ENABLE_TCPDUMP_TRUE!$ENABLE_TCPDUMP_TRUE$ac_delim
  32585. ENABLE_TCPDUMP_FALSE!$ENABLE_TCPDUMP_FALSE$ac_delim
  32586. nic1!$nic1$ac_delim
  32587. nic2!$nic2$ac_delim
  32588. LIBOPTS_DIR!$LIBOPTS_DIR$ac_delim
  32589. INSTALL_LIBOPTS_TRUE!$INSTALL_LIBOPTS_TRUE$ac_delim
  32590. INSTALL_LIBOPTS_FALSE!$INSTALL_LIBOPTS_FALSE$ac_delim
  32591. NEED_LIBOPTS_TRUE!$NEED_LIBOPTS_TRUE$ac_delim
  32592. NEED_LIBOPTS_FALSE!$NEED_LIBOPTS_FALSE$ac_delim
  32593. LIBOPTS_LDADD!$LIBOPTS_LDADD$ac_delim
  32594. LIBOPTS_CFLAGS!$LIBOPTS_CFLAGS$ac_delim
  32595. LTLIBOBJS!$LTLIBOBJS$ac_delim
  32596. _ACEOF
  32597. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
  32598. break
  32599. elif $ac_last_try; then
  32600. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32601. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32602. { (exit 1); exit 1; }; }
  32603. else
  32604. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32605. fi
  32606. done
  32607. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32608. if test -n "$ac_eof"; then
  32609. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32610. ac_eof=`expr $ac_eof + 1`
  32611. fi
  32612. cat >>$CONFIG_STATUS <<_ACEOF
  32613. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  32614. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  32615. _ACEOF
  32616. sed '
  32617. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32618. s/^/s,@/; s/!/@,|#_!!_#|/
  32619. :n
  32620. t n
  32621. s/'"$ac_delim"'$/,g/; t
  32622. s/$/\\/; p
  32623. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32624. ' >>$CONFIG_STATUS <conf$$subs.sed
  32625. rm -f conf$$subs.sed
  32626. cat >>$CONFIG_STATUS <<_ACEOF
  32627. :end
  32628. s/|#_!!_#|//g
  32629. CEOF$ac_eof
  32630. _ACEOF
  32631. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32632. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32633. # trailing colons and then remove the whole line if VPATH becomes empty
  32634. # (actually we leave an empty line to preserve line numbers).
  32635. if test "x$srcdir" = x.; then
  32636. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32637. s/:*\$(srcdir):*/:/
  32638. s/:*\${srcdir}:*/:/
  32639. s/:*@srcdir@:*/:/
  32640. s/^\([^=]*=[ ]*\):*/\1/
  32641. s/:*$//
  32642. s/^[^=]*=[ ]*$//
  32643. }'
  32644. fi
  32645. cat >>$CONFIG_STATUS <<\_ACEOF
  32646. fi # test -n "$CONFIG_FILES"
  32647. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  32648. do
  32649. case $ac_tag in
  32650. :[FHLC]) ac_mode=$ac_tag; continue;;
  32651. esac
  32652. case $ac_mode$ac_tag in
  32653. :[FHL]*:*);;
  32654. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  32655. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  32656. { (exit 1); exit 1; }; };;
  32657. :[FH]-) ac_tag=-:-;;
  32658. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32659. esac
  32660. ac_save_IFS=$IFS
  32661. IFS=:
  32662. set x $ac_tag
  32663. IFS=$ac_save_IFS
  32664. shift
  32665. ac_file=$1
  32666. shift
  32667. case $ac_mode in
  32668. :L) ac_source=$1;;
  32669. :[FH])
  32670. ac_file_inputs=
  32671. for ac_f
  32672. do
  32673. case $ac_f in
  32674. -) ac_f="$tmp/stdin";;
  32675. *) # Look for the file first in the build tree, then in the source tree
  32676. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32677. # because $ac_f cannot contain `:'.
  32678. test -f "$ac_f" ||
  32679. case $ac_f in
  32680. [\\/$]*) false;;
  32681. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32682. esac ||
  32683. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32684. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32685. { (exit 1); exit 1; }; };;
  32686. esac
  32687. ac_file_inputs="$ac_file_inputs $ac_f"
  32688. done
  32689. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32690. # use $as_me), people would be surprised to read:
  32691. # /* config.h. Generated by config.status. */
  32692. configure_input="Generated from "`IFS=:
  32693. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  32694. if test x"$ac_file" != x-; then
  32695. configure_input="$ac_file. $configure_input"
  32696. { echo "$as_me:$LINENO: creating $ac_file" >&5
  32697. echo "$as_me: creating $ac_file" >&6;}
  32698. fi
  32699. case $ac_tag in
  32700. *:-:* | *:-) cat >"$tmp/stdin";;
  32701. esac
  32702. ;;
  32703. esac
  32704. ac_dir=`$as_dirname -- "$ac_file" ||
  32705. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32706. X"$ac_file" : 'X\(//\)[^/]' \| \
  32707. X"$ac_file" : 'X\(//\)$' \| \
  32708. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32709. echo X"$ac_file" |
  32710. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32711. s//\1/
  32712. q
  32713. }
  32714. /^X\(\/\/\)[^/].*/{
  32715. s//\1/
  32716. q
  32717. }
  32718. /^X\(\/\/\)$/{
  32719. s//\1/
  32720. q
  32721. }
  32722. /^X\(\/\).*/{
  32723. s//\1/
  32724. q
  32725. }
  32726. s/.*/./; q'`
  32727. { as_dir="$ac_dir"
  32728. case $as_dir in #(
  32729. -*) as_dir=./$as_dir;;
  32730. esac
  32731. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32732. as_dirs=
  32733. while :; do
  32734. case $as_dir in #(
  32735. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32736. *) as_qdir=$as_dir;;
  32737. esac
  32738. as_dirs="'$as_qdir' $as_dirs"
  32739. as_dir=`$as_dirname -- "$as_dir" ||
  32740. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32741. X"$as_dir" : 'X\(//\)[^/]' \| \
  32742. X"$as_dir" : 'X\(//\)$' \| \
  32743. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32744. echo X"$as_dir" |
  32745. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32746. s//\1/
  32747. q
  32748. }
  32749. /^X\(\/\/\)[^/].*/{
  32750. s//\1/
  32751. q
  32752. }
  32753. /^X\(\/\/\)$/{
  32754. s//\1/
  32755. q
  32756. }
  32757. /^X\(\/\).*/{
  32758. s//\1/
  32759. q
  32760. }
  32761. s/.*/./; q'`
  32762. test -d "$as_dir" && break
  32763. done
  32764. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32765. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32766. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32767. { (exit 1); exit 1; }; }; }
  32768. ac_builddir=.
  32769. case "$ac_dir" in
  32770. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32771. *)
  32772. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32773. # A ".." for each directory in $ac_dir_suffix.
  32774. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32775. case $ac_top_builddir_sub in
  32776. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32777. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32778. esac ;;
  32779. esac
  32780. ac_abs_top_builddir=$ac_pwd
  32781. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32782. # for backward compatibility:
  32783. ac_top_builddir=$ac_top_build_prefix
  32784. case $srcdir in
  32785. .) # We are building in place.
  32786. ac_srcdir=.
  32787. ac_top_srcdir=$ac_top_builddir_sub
  32788. ac_abs_top_srcdir=$ac_pwd ;;
  32789. [\\/]* | ?:[\\/]* ) # Absolute name.
  32790. ac_srcdir=$srcdir$ac_dir_suffix;
  32791. ac_top_srcdir=$srcdir
  32792. ac_abs_top_srcdir=$srcdir ;;
  32793. *) # Relative name.
  32794. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32795. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32796. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32797. esac
  32798. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32799. case $ac_mode in
  32800. :F)
  32801. #
  32802. # CONFIG_FILE
  32803. #
  32804. case $INSTALL in
  32805. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32806. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32807. esac
  32808. ac_MKDIR_P=$MKDIR_P
  32809. case $MKDIR_P in
  32810. [\\/$]* | ?:[\\/]* ) ;;
  32811. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  32812. esac
  32813. _ACEOF
  32814. cat >>$CONFIG_STATUS <<\_ACEOF
  32815. # If the template does not know about datarootdir, expand it.
  32816. # FIXME: This hack should be removed a few years after 2.60.
  32817. ac_datarootdir_hack=; ac_datarootdir_seen=
  32818. case `sed -n '/datarootdir/ {
  32819. p
  32820. q
  32821. }
  32822. /@datadir@/p
  32823. /@docdir@/p
  32824. /@infodir@/p
  32825. /@localedir@/p
  32826. /@mandir@/p
  32827. ' $ac_file_inputs` in
  32828. *datarootdir*) ac_datarootdir_seen=yes;;
  32829. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32830. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32831. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32832. _ACEOF
  32833. cat >>$CONFIG_STATUS <<_ACEOF
  32834. ac_datarootdir_hack='
  32835. s&@datadir@&$datadir&g
  32836. s&@docdir@&$docdir&g
  32837. s&@infodir@&$infodir&g
  32838. s&@localedir@&$localedir&g
  32839. s&@mandir@&$mandir&g
  32840. s&\\\${datarootdir}&$datarootdir&g' ;;
  32841. esac
  32842. _ACEOF
  32843. # Neutralize VPATH when `$srcdir' = `.'.
  32844. # Shell code in configure.ac might set extrasub.
  32845. # FIXME: do we really want to maintain this feature?
  32846. cat >>$CONFIG_STATUS <<_ACEOF
  32847. sed "$ac_vpsub
  32848. $extrasub
  32849. _ACEOF
  32850. cat >>$CONFIG_STATUS <<\_ACEOF
  32851. :t
  32852. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32853. s&@configure_input@&$configure_input&;t t
  32854. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32855. s&@srcdir@&$ac_srcdir&;t t
  32856. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32857. s&@top_srcdir@&$ac_top_srcdir&;t t
  32858. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32859. s&@builddir@&$ac_builddir&;t t
  32860. s&@abs_builddir@&$ac_abs_builddir&;t t
  32861. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32862. s&@INSTALL@&$ac_INSTALL&;t t
  32863. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  32864. $ac_datarootdir_hack
  32865. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  32866. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32867. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32868. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32869. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32870. which seems to be undefined. Please make sure it is defined." >&5
  32871. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32872. which seems to be undefined. Please make sure it is defined." >&2;}
  32873. rm -f "$tmp/stdin"
  32874. case $ac_file in
  32875. -) cat "$tmp/out"; rm -f "$tmp/out";;
  32876. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  32877. esac
  32878. ;;
  32879. :H)
  32880. #
  32881. # CONFIG_HEADER
  32882. #
  32883. _ACEOF
  32884. # Transform confdefs.h into a sed script `conftest.defines', that
  32885. # substitutes the proper values into config.h.in to produce config.h.
  32886. rm -f conftest.defines conftest.tail
  32887. # First, append a space to every undef/define line, to ease matching.
  32888. echo 's/$/ /' >conftest.defines
  32889. # Then, protect against being on the right side of a sed subst, or in
  32890. # an unquoted here document, in config.status. If some macros were
  32891. # called several times there might be several #defines for the same
  32892. # symbol, which is useless. But do not sort them, since the last
  32893. # AC_DEFINE must be honored.
  32894. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32895. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  32896. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  32897. # PARAMS is the parameter list in the macro definition--in most cases, it's
  32898. # just an empty string.
  32899. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  32900. ac_dB='\\)[ (].*,\\1define\\2'
  32901. ac_dC=' '
  32902. ac_dD=' ,'
  32903. uniq confdefs.h |
  32904. sed -n '
  32905. t rset
  32906. :rset
  32907. s/^[ ]*#[ ]*define[ ][ ]*//
  32908. t ok
  32909. d
  32910. :ok
  32911. s/[\\&,]/\\&/g
  32912. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  32913. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  32914. ' >>conftest.defines
  32915. # Remove the space that was appended to ease matching.
  32916. # Then replace #undef with comments. This is necessary, for
  32917. # example, in the case of _POSIX_SOURCE, which is predefined and required
  32918. # on some systems where configure will not decide to define it.
  32919. # (The regexp can be short, since the line contains either #define or #undef.)
  32920. echo 's/ $//
  32921. s,^[ #]*u.*,/* & */,' >>conftest.defines
  32922. # Break up conftest.defines:
  32923. ac_max_sed_lines=50
  32924. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  32925. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  32926. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  32927. # et cetera.
  32928. ac_in='$ac_file_inputs'
  32929. ac_out='"$tmp/out1"'
  32930. ac_nxt='"$tmp/out2"'
  32931. while :
  32932. do
  32933. # Write a here document:
  32934. cat >>$CONFIG_STATUS <<_ACEOF
  32935. # First, check the format of the line:
  32936. cat >"\$tmp/defines.sed" <<\\CEOF
  32937. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  32938. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  32939. b
  32940. :def
  32941. _ACEOF
  32942. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  32943. echo 'CEOF
  32944. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  32945. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  32946. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  32947. grep . conftest.tail >/dev/null || break
  32948. rm -f conftest.defines
  32949. mv conftest.tail conftest.defines
  32950. done
  32951. rm -f conftest.defines conftest.tail
  32952. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  32953. cat >>$CONFIG_STATUS <<\_ACEOF
  32954. if test x"$ac_file" != x-; then
  32955. echo "/* $configure_input */" >"$tmp/config.h"
  32956. cat "$ac_result" >>"$tmp/config.h"
  32957. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  32958. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32959. echo "$as_me: $ac_file is unchanged" >&6;}
  32960. else
  32961. rm -f $ac_file
  32962. mv "$tmp/config.h" $ac_file
  32963. fi
  32964. else
  32965. echo "/* $configure_input */"
  32966. cat "$ac_result"
  32967. fi
  32968. rm -f "$tmp/out12"
  32969. # Compute $ac_file's index in $config_headers.
  32970. _am_stamp_count=1
  32971. for _am_header in $config_headers :; do
  32972. case $_am_header in
  32973. $ac_file | $ac_file:* )
  32974. break ;;
  32975. * )
  32976. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  32977. esac
  32978. done
  32979. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  32980. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32981. X$ac_file : 'X\(//\)[^/]' \| \
  32982. X$ac_file : 'X\(//\)$' \| \
  32983. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  32984. echo X$ac_file |
  32985. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32986. s//\1/
  32987. q
  32988. }
  32989. /^X\(\/\/\)[^/].*/{
  32990. s//\1/
  32991. q
  32992. }
  32993. /^X\(\/\/\)$/{
  32994. s//\1/
  32995. q
  32996. }
  32997. /^X\(\/\).*/{
  32998. s//\1/
  32999. q
  33000. }
  33001. s/.*/./; q'`/stamp-h$_am_stamp_count
  33002. ;;
  33003. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  33004. echo "$as_me: executing $ac_file commands" >&6;}
  33005. ;;
  33006. esac
  33007. case $ac_file$ac_mode in
  33008. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  33009. # Strip MF so we end up with the name of the file.
  33010. mf=`echo "$mf" | sed -e 's/:.*$//'`
  33011. # Check whether this is an Automake generated Makefile or not.
  33012. # We used to match only the files named `Makefile.in', but
  33013. # some people rename them; so instead we look at the file content.
  33014. # Grep'ing the first line is not enough: some people post-process
  33015. # each Makefile.in and add a new line on top of each file to say so.
  33016. # Grep'ing the whole file is not good either: AIX grep has a line
  33017. # limit of 2048, but all sed's we know have understand at least 4000.
  33018. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  33019. dirpart=`$as_dirname -- "$mf" ||
  33020. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33021. X"$mf" : 'X\(//\)[^/]' \| \
  33022. X"$mf" : 'X\(//\)$' \| \
  33023. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  33024. echo X"$mf" |
  33025. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33026. s//\1/
  33027. q
  33028. }
  33029. /^X\(\/\/\)[^/].*/{
  33030. s//\1/
  33031. q
  33032. }
  33033. /^X\(\/\/\)$/{
  33034. s//\1/
  33035. q
  33036. }
  33037. /^X\(\/\).*/{
  33038. s//\1/
  33039. q
  33040. }
  33041. s/.*/./; q'`
  33042. else
  33043. continue
  33044. fi
  33045. # Extract the definition of DEPDIR, am__include, and am__quote
  33046. # from the Makefile without running `make'.
  33047. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  33048. test -z "$DEPDIR" && continue
  33049. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  33050. test -z "am__include" && continue
  33051. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  33052. # When using ansi2knr, U may be empty or an underscore; expand it
  33053. U=`sed -n 's/^U = //p' < "$mf"`
  33054. # Find all dependency output files, they are included files with
  33055. # $(DEPDIR) in their names. We invoke sed twice because it is the
  33056. # simplest approach to changing $(DEPDIR) to its actual value in the
  33057. # expansion.
  33058. for file in `sed -n "
  33059. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  33060. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  33061. # Make sure the directory exists.
  33062. test -f "$dirpart/$file" && continue
  33063. fdir=`$as_dirname -- "$file" ||
  33064. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33065. X"$file" : 'X\(//\)[^/]' \| \
  33066. X"$file" : 'X\(//\)$' \| \
  33067. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  33068. echo X"$file" |
  33069. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33070. s//\1/
  33071. q
  33072. }
  33073. /^X\(\/\/\)[^/].*/{
  33074. s//\1/
  33075. q
  33076. }
  33077. /^X\(\/\/\)$/{
  33078. s//\1/
  33079. q
  33080. }
  33081. /^X\(\/\).*/{
  33082. s//\1/
  33083. q
  33084. }
  33085. s/.*/./; q'`
  33086. { as_dir=$dirpart/$fdir
  33087. case $as_dir in #(
  33088. -*) as_dir=./$as_dir;;
  33089. esac
  33090. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  33091. as_dirs=
  33092. while :; do
  33093. case $as_dir in #(
  33094. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  33095. *) as_qdir=$as_dir;;
  33096. esac
  33097. as_dirs="'$as_qdir' $as_dirs"
  33098. as_dir=`$as_dirname -- "$as_dir" ||
  33099. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33100. X"$as_dir" : 'X\(//\)[^/]' \| \
  33101. X"$as_dir" : 'X\(//\)$' \| \
  33102. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  33103. echo X"$as_dir" |
  33104. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33105. s//\1/
  33106. q
  33107. }
  33108. /^X\(\/\/\)[^/].*/{
  33109. s//\1/
  33110. q
  33111. }
  33112. /^X\(\/\/\)$/{
  33113. s//\1/
  33114. q
  33115. }
  33116. /^X\(\/\).*/{
  33117. s//\1/
  33118. q
  33119. }
  33120. s/.*/./; q'`
  33121. test -d "$as_dir" && break
  33122. done
  33123. test -z "$as_dirs" || eval "mkdir $as_dirs"
  33124. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  33125. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  33126. { (exit 1); exit 1; }; }; }
  33127. # echo "creating $dirpart/$file"
  33128. echo '# dummy' > "$dirpart/$file"
  33129. done
  33130. done
  33131. ;;
  33132. esac
  33133. done # for ac_tag
  33134. { (exit 0); exit 0; }
  33135. _ACEOF
  33136. chmod +x $CONFIG_STATUS
  33137. ac_clean_files=$ac_clean_files_save
  33138. # configure is writing to config.log, and then calls config.status.
  33139. # config.status does its own redirection, appending to config.log.
  33140. # Unfortunately, on DOS this fails, as config.log is still kept open
  33141. # by configure, so config.status won't be able to write to it; its
  33142. # output is simply discarded. So we exec the FD to /dev/null,
  33143. # effectively closing config.log, so it can be properly (re)opened and
  33144. # appended to by config.status. When coming back to configure, we
  33145. # need to make the FD available again.
  33146. if test "$no_create" != yes; then
  33147. ac_cs_success=:
  33148. ac_config_status_args=
  33149. test "$silent" = yes &&
  33150. ac_config_status_args="$ac_config_status_args --quiet"
  33151. exec 5>/dev/null
  33152. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  33153. exec 5>>config.log
  33154. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  33155. # would make configure fail if this is the last instruction.
  33156. $ac_cs_success || { (exit 1); exit 1; }
  33157. fi
  33158. # Configuration results
  33159. { echo "$as_me:$LINENO: result: ##########################################################################
  33160. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33161. ##########################################################################
  33162. libpcap: ${foundpcap} (${libpcap_version})
  33163. libnet: ${foundnet}
  33164. autogen: ${AUTOGEN}
  33165. 64bit counter support: ${use64bit_counters}
  33166. tcpdump binary path: ${tcpdump_path}
  33167. tcpreplay edit support: ${tcpreplay_edit}
  33168. tcpbridge support: ${enable_tcpbridge}
  33169. Supported Packet Injection Methods (*):
  33170. Linux PF_PACKET: ${have_pf}
  33171. BSD BPF: ${have_bpf}
  33172. libnet: ${have_libnet}
  33173. pcap_inject: ${have_pcap_inject}
  33174. pcap_sendpacket: ${have_pcap_sendpacket}
  33175. * In order of preference; see configure --help to override
  33176. " >&5
  33177. echo "${ECHO_T}##########################################################################
  33178. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  33179. ##########################################################################
  33180. libpcap: ${foundpcap} (${libpcap_version})
  33181. libnet: ${foundnet}
  33182. autogen: ${AUTOGEN}
  33183. 64bit counter support: ${use64bit_counters}
  33184. tcpdump binary path: ${tcpdump_path}
  33185. tcpreplay edit support: ${tcpreplay_edit}
  33186. tcpbridge support: ${enable_tcpbridge}
  33187. Supported Packet Injection Methods (*):
  33188. Linux PF_PACKET: ${have_pf}
  33189. BSD BPF: ${have_bpf}
  33190. libnet: ${have_libnet}
  33191. pcap_inject: ${have_pcap_inject}
  33192. pcap_sendpacket: ${have_pcap_sendpacket}
  33193. * In order of preference; see configure --help to override
  33194. " >&6; }
  33195. case $host in
  33196. *-apple-darwin*)
  33197. { echo "$as_me:$LINENO: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  33198. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  33199. echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  33200. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  33201. ;;
  33202. *-*-cygwin)
  33203. { echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33204. http://tcpreplay.synfin.net/trac/newticket" >&5
  33205. echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!
  33206. http://tcpreplay.synfin.net/trac/newticket" >&2;}
  33207. ;;
  33208. esac