configure 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846
  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. GREP
  762. EGREP
  763. LN_S
  764. ECHO
  765. AR
  766. RANLIB
  767. CPP
  768. CXX
  769. CXXFLAGS
  770. ac_ct_CXX
  771. CXXDEPMODE
  772. am__fastdepCXX_TRUE
  773. am__fastdepCXX_FALSE
  774. CXXCPP
  775. F77
  776. FFLAGS
  777. ac_ct_F77
  778. LIBTOOL
  779. SED
  780. PRINTF
  781. AUTOGEN
  782. LIBOBJS
  783. SYSTEM_STRLCPY_TRUE
  784. SYSTEM_STRLCPY_FALSE
  785. WORDS_BIGENDIAN_TRUE
  786. WORDS_BIGENDIAN_FALSE
  787. debug_flag
  788. ENABLE_TCPREPLAY_EDIT_TRUE
  789. ENABLE_TCPREPLAY_EDIT_FALSE
  790. ENABLE_FLOWREPLAY_TRUE
  791. ENABLE_FLOWREPLAY_FALSE
  792. LNETINC
  793. LNETLIB
  794. LPCAPINC
  795. LPCAPLIB
  796. PCAP_BPF_H_FILE
  797. pcncfg
  798. LNAVLIB
  799. LNAV_CFLAGS
  800. td
  801. ENABLE_TCPDUMP_TRUE
  802. ENABLE_TCPDUMP_FALSE
  803. nic1
  804. nic2
  805. LIBOPTS_DIR
  806. INSTALL_LIBOPTS_TRUE
  807. INSTALL_LIBOPTS_FALSE
  808. NEED_LIBOPTS_TRUE
  809. NEED_LIBOPTS_FALSE
  810. LIBOPTS_LDADD
  811. LIBOPTS_CFLAGS
  812. LTLIBOBJS'
  813. ac_subst_files=''
  814. ac_precious_vars='build_alias
  815. host_alias
  816. target_alias
  817. CC
  818. CFLAGS
  819. LDFLAGS
  820. LIBS
  821. CPPFLAGS
  822. CPP
  823. CXX
  824. CXXFLAGS
  825. CCC
  826. CXXCPP
  827. F77
  828. FFLAGS'
  829. # Initialize some variables set by options.
  830. ac_init_help=
  831. ac_init_version=false
  832. # The variables have the same names as the options, with
  833. # dashes changed to underlines.
  834. cache_file=/dev/null
  835. exec_prefix=NONE
  836. no_create=
  837. no_recursion=
  838. prefix=NONE
  839. program_prefix=NONE
  840. program_suffix=NONE
  841. program_transform_name=s,x,x,
  842. silent=
  843. site=
  844. srcdir=
  845. verbose=
  846. x_includes=NONE
  847. x_libraries=NONE
  848. # Installation directory options.
  849. # These are left unexpanded so users can "make install exec_prefix=/foo"
  850. # and all the variables that are supposed to be based on exec_prefix
  851. # by default will actually change.
  852. # Use braces instead of parens because sh, perl, etc. also accept them.
  853. # (The list follows the same order as the GNU Coding Standards.)
  854. bindir='${exec_prefix}/bin'
  855. sbindir='${exec_prefix}/sbin'
  856. libexecdir='${exec_prefix}/libexec'
  857. datarootdir='${prefix}/share'
  858. datadir='${datarootdir}'
  859. sysconfdir='${prefix}/etc'
  860. sharedstatedir='${prefix}/com'
  861. localstatedir='${prefix}/var'
  862. includedir='${prefix}/include'
  863. oldincludedir='/usr/include'
  864. docdir='${datarootdir}/doc/${PACKAGE}'
  865. infodir='${datarootdir}/info'
  866. htmldir='${docdir}'
  867. dvidir='${docdir}'
  868. pdfdir='${docdir}'
  869. psdir='${docdir}'
  870. libdir='${exec_prefix}/lib'
  871. localedir='${datarootdir}/locale'
  872. mandir='${datarootdir}/man'
  873. ac_prev=
  874. ac_dashdash=
  875. for ac_option
  876. do
  877. # If the previous option needs an argument, assign it.
  878. if test -n "$ac_prev"; then
  879. eval $ac_prev=\$ac_option
  880. ac_prev=
  881. continue
  882. fi
  883. case $ac_option in
  884. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  885. *) ac_optarg=yes ;;
  886. esac
  887. # Accept the important Cygnus configure options, so we can diagnose typos.
  888. case $ac_dashdash$ac_option in
  889. --)
  890. ac_dashdash=yes ;;
  891. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  892. ac_prev=bindir ;;
  893. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  894. bindir=$ac_optarg ;;
  895. -build | --build | --buil | --bui | --bu)
  896. ac_prev=build_alias ;;
  897. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  898. build_alias=$ac_optarg ;;
  899. -cache-file | --cache-file | --cache-fil | --cache-fi \
  900. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  901. ac_prev=cache_file ;;
  902. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  903. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  904. cache_file=$ac_optarg ;;
  905. --config-cache | -C)
  906. cache_file=config.cache ;;
  907. -datadir | --datadir | --datadi | --datad)
  908. ac_prev=datadir ;;
  909. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  910. datadir=$ac_optarg ;;
  911. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  912. | --dataroo | --dataro | --datar)
  913. ac_prev=datarootdir ;;
  914. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  915. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  916. datarootdir=$ac_optarg ;;
  917. -disable-* | --disable-*)
  918. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  921. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  922. { (exit 1); exit 1; }; }
  923. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  924. eval enable_$ac_feature=no ;;
  925. -docdir | --docdir | --docdi | --doc | --do)
  926. ac_prev=docdir ;;
  927. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  928. docdir=$ac_optarg ;;
  929. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  930. ac_prev=dvidir ;;
  931. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  932. dvidir=$ac_optarg ;;
  933. -enable-* | --enable-*)
  934. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  937. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  938. { (exit 1); exit 1; }; }
  939. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  940. eval enable_$ac_feature=\$ac_optarg ;;
  941. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  942. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  943. | --exec | --exe | --ex)
  944. ac_prev=exec_prefix ;;
  945. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  946. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  947. | --exec=* | --exe=* | --ex=*)
  948. exec_prefix=$ac_optarg ;;
  949. -gas | --gas | --ga | --g)
  950. # Obsolete; use --with-gas.
  951. with_gas=yes ;;
  952. -help | --help | --hel | --he | -h)
  953. ac_init_help=long ;;
  954. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  955. ac_init_help=recursive ;;
  956. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  957. ac_init_help=short ;;
  958. -host | --host | --hos | --ho)
  959. ac_prev=host_alias ;;
  960. -host=* | --host=* | --hos=* | --ho=*)
  961. host_alias=$ac_optarg ;;
  962. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  963. ac_prev=htmldir ;;
  964. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  965. | --ht=*)
  966. htmldir=$ac_optarg ;;
  967. -includedir | --includedir | --includedi | --included | --include \
  968. | --includ | --inclu | --incl | --inc)
  969. ac_prev=includedir ;;
  970. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  971. | --includ=* | --inclu=* | --incl=* | --inc=*)
  972. includedir=$ac_optarg ;;
  973. -infodir | --infodir | --infodi | --infod | --info | --inf)
  974. ac_prev=infodir ;;
  975. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  976. infodir=$ac_optarg ;;
  977. -libdir | --libdir | --libdi | --libd)
  978. ac_prev=libdir ;;
  979. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  980. libdir=$ac_optarg ;;
  981. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  982. | --libexe | --libex | --libe)
  983. ac_prev=libexecdir ;;
  984. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  985. | --libexe=* | --libex=* | --libe=*)
  986. libexecdir=$ac_optarg ;;
  987. -localedir | --localedir | --localedi | --localed | --locale)
  988. ac_prev=localedir ;;
  989. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  990. localedir=$ac_optarg ;;
  991. -localstatedir | --localstatedir | --localstatedi | --localstated \
  992. | --localstate | --localstat | --localsta | --localst | --locals)
  993. ac_prev=localstatedir ;;
  994. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  995. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  996. localstatedir=$ac_optarg ;;
  997. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  998. ac_prev=mandir ;;
  999. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1000. mandir=$ac_optarg ;;
  1001. -nfp | --nfp | --nf)
  1002. # Obsolete; use --without-fp.
  1003. with_fp=no ;;
  1004. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1005. | --no-cr | --no-c | -n)
  1006. no_create=yes ;;
  1007. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1008. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1009. no_recursion=yes ;;
  1010. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1011. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1012. | --oldin | --oldi | --old | --ol | --o)
  1013. ac_prev=oldincludedir ;;
  1014. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1015. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1016. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1017. oldincludedir=$ac_optarg ;;
  1018. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1019. ac_prev=prefix ;;
  1020. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1021. prefix=$ac_optarg ;;
  1022. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1023. | --program-pre | --program-pr | --program-p)
  1024. ac_prev=program_prefix ;;
  1025. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1026. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1027. program_prefix=$ac_optarg ;;
  1028. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1029. | --program-suf | --program-su | --program-s)
  1030. ac_prev=program_suffix ;;
  1031. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1032. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1033. program_suffix=$ac_optarg ;;
  1034. -program-transform-name | --program-transform-name \
  1035. | --program-transform-nam | --program-transform-na \
  1036. | --program-transform-n | --program-transform- \
  1037. | --program-transform | --program-transfor \
  1038. | --program-transfo | --program-transf \
  1039. | --program-trans | --program-tran \
  1040. | --progr-tra | --program-tr | --program-t)
  1041. ac_prev=program_transform_name ;;
  1042. -program-transform-name=* | --program-transform-name=* \
  1043. | --program-transform-nam=* | --program-transform-na=* \
  1044. | --program-transform-n=* | --program-transform-=* \
  1045. | --program-transform=* | --program-transfor=* \
  1046. | --program-transfo=* | --program-transf=* \
  1047. | --program-trans=* | --program-tran=* \
  1048. | --progr-tra=* | --program-tr=* | --program-t=*)
  1049. program_transform_name=$ac_optarg ;;
  1050. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1051. ac_prev=pdfdir ;;
  1052. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1053. pdfdir=$ac_optarg ;;
  1054. -psdir | --psdir | --psdi | --psd | --ps)
  1055. ac_prev=psdir ;;
  1056. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1057. psdir=$ac_optarg ;;
  1058. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1059. | -silent | --silent | --silen | --sile | --sil)
  1060. silent=yes ;;
  1061. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1062. ac_prev=sbindir ;;
  1063. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1064. | --sbi=* | --sb=*)
  1065. sbindir=$ac_optarg ;;
  1066. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1067. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1068. | --sharedst | --shareds | --shared | --share | --shar \
  1069. | --sha | --sh)
  1070. ac_prev=sharedstatedir ;;
  1071. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1072. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1073. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1074. | --sha=* | --sh=*)
  1075. sharedstatedir=$ac_optarg ;;
  1076. -site | --site | --sit)
  1077. ac_prev=site ;;
  1078. -site=* | --site=* | --sit=*)
  1079. site=$ac_optarg ;;
  1080. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1081. ac_prev=srcdir ;;
  1082. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1083. srcdir=$ac_optarg ;;
  1084. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1085. | --syscon | --sysco | --sysc | --sys | --sy)
  1086. ac_prev=sysconfdir ;;
  1087. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1088. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1089. sysconfdir=$ac_optarg ;;
  1090. -target | --target | --targe | --targ | --tar | --ta | --t)
  1091. ac_prev=target_alias ;;
  1092. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1093. target_alias=$ac_optarg ;;
  1094. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1095. verbose=yes ;;
  1096. -version | --version | --versio | --versi | --vers | -V)
  1097. ac_init_version=: ;;
  1098. -with-* | --with-*)
  1099. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1102. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1103. { (exit 1); exit 1; }; }
  1104. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1105. eval with_$ac_package=\$ac_optarg ;;
  1106. -without-* | --without-*)
  1107. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1108. # Reject names that are not valid shell variable names.
  1109. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1110. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1111. { (exit 1); exit 1; }; }
  1112. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1113. eval with_$ac_package=no ;;
  1114. --x)
  1115. # Obsolete; use --with-x.
  1116. with_x=yes ;;
  1117. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1118. | --x-incl | --x-inc | --x-in | --x-i)
  1119. ac_prev=x_includes ;;
  1120. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1121. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1122. x_includes=$ac_optarg ;;
  1123. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1124. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1125. ac_prev=x_libraries ;;
  1126. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1127. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1128. x_libraries=$ac_optarg ;;
  1129. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1130. Try \`$0 --help' for more information." >&2
  1131. { (exit 1); exit 1; }; }
  1132. ;;
  1133. *=*)
  1134. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1135. # Reject names that are not valid shell variable names.
  1136. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1137. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1138. { (exit 1); exit 1; }; }
  1139. eval $ac_envvar=\$ac_optarg
  1140. export $ac_envvar ;;
  1141. *)
  1142. # FIXME: should be removed in autoconf 3.0.
  1143. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1144. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1145. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1146. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1147. ;;
  1148. esac
  1149. done
  1150. if test -n "$ac_prev"; then
  1151. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1152. { echo "$as_me: error: missing argument to $ac_option" >&2
  1153. { (exit 1); exit 1; }; }
  1154. fi
  1155. # Be sure to have absolute directory names.
  1156. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1157. datadir sysconfdir sharedstatedir localstatedir includedir \
  1158. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1159. libdir localedir mandir
  1160. do
  1161. eval ac_val=\$$ac_var
  1162. case $ac_val in
  1163. [\\/$]* | ?:[\\/]* ) continue;;
  1164. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1165. esac
  1166. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1167. { (exit 1); exit 1; }; }
  1168. done
  1169. # There might be people who depend on the old broken behavior: `$host'
  1170. # used to hold the argument of --host etc.
  1171. # FIXME: To remove some day.
  1172. build=$build_alias
  1173. host=$host_alias
  1174. target=$target_alias
  1175. # FIXME: To remove some day.
  1176. if test "x$host_alias" != x; then
  1177. if test "x$build_alias" = x; then
  1178. cross_compiling=maybe
  1179. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1180. If a cross compiler is detected then cross compile mode will be used." >&2
  1181. elif test "x$build_alias" != "x$host_alias"; then
  1182. cross_compiling=yes
  1183. fi
  1184. fi
  1185. ac_tool_prefix=
  1186. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1187. test "$silent" = yes && exec 6>/dev/null
  1188. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1189. ac_ls_di=`ls -di .` &&
  1190. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1191. { echo "$as_me: error: Working directory cannot be determined" >&2
  1192. { (exit 1); exit 1; }; }
  1193. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1194. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1195. { (exit 1); exit 1; }; }
  1196. # Find the source files, if location was not specified.
  1197. if test -z "$srcdir"; then
  1198. ac_srcdir_defaulted=yes
  1199. # Try the directory containing this script, then the parent directory.
  1200. ac_confdir=`$as_dirname -- "$0" ||
  1201. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1202. X"$0" : 'X\(//\)[^/]' \| \
  1203. X"$0" : 'X\(//\)$' \| \
  1204. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1205. echo X"$0" |
  1206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1207. s//\1/
  1208. q
  1209. }
  1210. /^X\(\/\/\)[^/].*/{
  1211. s//\1/
  1212. q
  1213. }
  1214. /^X\(\/\/\)$/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\).*/{
  1219. s//\1/
  1220. q
  1221. }
  1222. s/.*/./; q'`
  1223. srcdir=$ac_confdir
  1224. if test ! -r "$srcdir/$ac_unique_file"; then
  1225. srcdir=..
  1226. fi
  1227. else
  1228. ac_srcdir_defaulted=no
  1229. fi
  1230. if test ! -r "$srcdir/$ac_unique_file"; then
  1231. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1232. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1233. { (exit 1); exit 1; }; }
  1234. fi
  1235. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1236. ac_abs_confdir=`(
  1237. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1238. { (exit 1); exit 1; }; }
  1239. pwd)`
  1240. # When building in place, set srcdir=.
  1241. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1242. srcdir=.
  1243. fi
  1244. # Remove unnecessary trailing slashes from srcdir.
  1245. # Double slashes in file names in object file debugging info
  1246. # mess up M-x gdb in Emacs.
  1247. case $srcdir in
  1248. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1249. esac
  1250. for ac_var in $ac_precious_vars; do
  1251. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1252. eval ac_env_${ac_var}_value=\$${ac_var}
  1253. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1254. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1255. done
  1256. #
  1257. # Report the --help message.
  1258. #
  1259. if test "$ac_init_help" = "long"; then
  1260. # Omit some internal or obsolete options to make the list less imposing.
  1261. # This message is too long to be a string in the A/UX 3.1 sh.
  1262. cat <<_ACEOF
  1263. \`configure' configures this package to adapt to many kinds of systems.
  1264. Usage: $0 [OPTION]... [VAR=VALUE]...
  1265. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1266. VAR=VALUE. See below for descriptions of some of the useful variables.
  1267. Defaults for the options are specified in brackets.
  1268. Configuration:
  1269. -h, --help display this help and exit
  1270. --help=short display options specific to this package
  1271. --help=recursive display the short help of all the included packages
  1272. -V, --version display version information and exit
  1273. -q, --quiet, --silent do not print \`checking...' messages
  1274. --cache-file=FILE cache test results in FILE [disabled]
  1275. -C, --config-cache alias for \`--cache-file=config.cache'
  1276. -n, --no-create do not create output files
  1277. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1278. Installation directories:
  1279. --prefix=PREFIX install architecture-independent files in PREFIX
  1280. [$ac_default_prefix]
  1281. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1282. [PREFIX]
  1283. By default, \`make install' will install all the files in
  1284. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1285. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1286. for instance \`--prefix=\$HOME'.
  1287. For better control, use the options below.
  1288. Fine tuning of the installation directories:
  1289. --bindir=DIR user executables [EPREFIX/bin]
  1290. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1291. --libexecdir=DIR program executables [EPREFIX/libexec]
  1292. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1293. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1294. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1295. --libdir=DIR object code libraries [EPREFIX/lib]
  1296. --includedir=DIR C header files [PREFIX/include]
  1297. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1298. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1299. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1300. --infodir=DIR info documentation [DATAROOTDIR/info]
  1301. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1302. --mandir=DIR man documentation [DATAROOTDIR/man]
  1303. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1304. --htmldir=DIR html documentation [DOCDIR]
  1305. --dvidir=DIR dvi documentation [DOCDIR]
  1306. --pdfdir=DIR pdf documentation [DOCDIR]
  1307. --psdir=DIR ps documentation [DOCDIR]
  1308. _ACEOF
  1309. cat <<\_ACEOF
  1310. Program names:
  1311. --program-prefix=PREFIX prepend PREFIX to installed program names
  1312. --program-suffix=SUFFIX append SUFFIX to installed program names
  1313. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1314. System types:
  1315. --build=BUILD configure for building on BUILD [guessed]
  1316. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1317. --target=TARGET configure for building compilers for TARGET [HOST]
  1318. _ACEOF
  1319. fi
  1320. if test -n "$ac_init_help"; then
  1321. cat <<\_ACEOF
  1322. Optional Features:
  1323. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1324. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1325. --enable-maintainer-mode enable make rules and dependencies not useful
  1326. (and sometimes confusing) to the casual installer
  1327. --enable-shared[=PKGS] build shared libraries [default=yes]
  1328. --enable-static[=PKGS] build static libraries [default=yes]
  1329. --enable-fast-install[=PKGS]
  1330. optimize for fast installation [default=yes]
  1331. --disable-dependency-tracking speeds up one-time build
  1332. --enable-dependency-tracking do not reject slow dependency extractors
  1333. --disable-libtool-lock avoid locking (might break parallel builds)
  1334. --disable-largefile omit support for large files
  1335. --enable-debug Enable debugging code and support for the -d option
  1336. --enable-pedantic Enable gcc's -pedantic option
  1337. --enable-efence Enable Electric Fence memory debugger
  1338. --enable-gprof Enable GNU Profiler
  1339. --enable-64bits Use 64bit packet counters
  1340. --enable-force-bpf Force using BPF for sending packets
  1341. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1342. --enable-force-libnet Force using libnet for sending packets
  1343. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1344. packets
  1345. --enable-force-sendpacket
  1346. Force using libpcap's pcap_sendpacket() for sending
  1347. packets
  1348. --enable-tcpreplay-edit Link packet editing code with tcpreplay
  1349. --enable-dynamic-link Dynamically link libraries
  1350. --enable-flowreplay Enable building flowreplay (alpha)
  1351. --enable-libnet Enable using the libnet 1.1.x library (deprecated)
  1352. --enable-local-libopts Force using the supplied libopts tearoff code
  1353. --disable-libopts-install
  1354. Do not install libopts with client installation
  1355. Optional Packages:
  1356. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1357. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1358. --with-dmalloc use dmalloc, as in
  1359. http://www.dmalloc.com/dmalloc.tar.gz
  1360. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1361. --with-pic try to use only PIC/non-PIC objects [default=use
  1362. both]
  1363. --with-tags[=TAGS] include additional configurations [automatic]
  1364. --with-libnet=DIR Use libnet in DIR
  1365. --with-libpcap=DIR Use libpcap in DIR
  1366. --with-pcapnav-config=FILE
  1367. Use given pcapnav-config
  1368. --with-tcpdump=FILE Path to tcpdump binary
  1369. --with-testnic=NIC Select which network card to use for testing
  1370. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1371. testing
  1372. --with-autoopts-config specify the config-info script
  1373. --with-regex-header a reg expr header is specified
  1374. --with-libregex libregex installation prefix
  1375. --with-libregex-cflags libregex compile flags
  1376. --with-libregex-libs libregex link command arguments
  1377. Some influential environment variables:
  1378. CC C compiler command
  1379. CFLAGS C compiler flags
  1380. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1381. nonstandard directory <lib dir>
  1382. LIBS libraries to pass to the linker, e.g. -l<library>
  1383. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1384. you have headers in a nonstandard directory <include dir>
  1385. CPP C preprocessor
  1386. CXX C++ compiler command
  1387. CXXFLAGS C++ compiler flags
  1388. CXXCPP C++ preprocessor
  1389. F77 Fortran 77 compiler command
  1390. FFLAGS Fortran 77 compiler flags
  1391. Use these variables to override the choices made by `configure' or to help
  1392. it to find libraries and programs with nonstandard names/locations.
  1393. _ACEOF
  1394. ac_status=$?
  1395. fi
  1396. if test "$ac_init_help" = "recursive"; then
  1397. # If there are subdirs, report their specific --help.
  1398. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1399. test -d "$ac_dir" || continue
  1400. ac_builddir=.
  1401. case "$ac_dir" in
  1402. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1403. *)
  1404. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1405. # A ".." for each directory in $ac_dir_suffix.
  1406. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1407. case $ac_top_builddir_sub in
  1408. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1409. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1410. esac ;;
  1411. esac
  1412. ac_abs_top_builddir=$ac_pwd
  1413. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1414. # for backward compatibility:
  1415. ac_top_builddir=$ac_top_build_prefix
  1416. case $srcdir in
  1417. .) # We are building in place.
  1418. ac_srcdir=.
  1419. ac_top_srcdir=$ac_top_builddir_sub
  1420. ac_abs_top_srcdir=$ac_pwd ;;
  1421. [\\/]* | ?:[\\/]* ) # Absolute name.
  1422. ac_srcdir=$srcdir$ac_dir_suffix;
  1423. ac_top_srcdir=$srcdir
  1424. ac_abs_top_srcdir=$srcdir ;;
  1425. *) # Relative name.
  1426. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1427. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1428. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1429. esac
  1430. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1431. cd "$ac_dir" || { ac_status=$?; continue; }
  1432. # Check for guested configure.
  1433. if test -f "$ac_srcdir/configure.gnu"; then
  1434. echo &&
  1435. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1436. elif test -f "$ac_srcdir/configure"; then
  1437. echo &&
  1438. $SHELL "$ac_srcdir/configure" --help=recursive
  1439. else
  1440. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1441. fi || ac_status=$?
  1442. cd "$ac_pwd" || { ac_status=$?; break; }
  1443. done
  1444. fi
  1445. test -n "$ac_init_help" && exit $ac_status
  1446. if $ac_init_version; then
  1447. cat <<\_ACEOF
  1448. configure
  1449. generated by GNU Autoconf 2.61
  1450. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1451. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1452. This configure script is free software; the Free Software Foundation
  1453. gives unlimited permission to copy, distribute and modify it.
  1454. _ACEOF
  1455. exit
  1456. fi
  1457. cat >config.log <<_ACEOF
  1458. This file contains any messages produced by compilers while
  1459. running configure, to aid debugging if configure makes a mistake.
  1460. It was created by $as_me, which was
  1461. generated by GNU Autoconf 2.61. Invocation command line was
  1462. $ $0 $@
  1463. _ACEOF
  1464. exec 5>>config.log
  1465. {
  1466. cat <<_ASUNAME
  1467. ## --------- ##
  1468. ## Platform. ##
  1469. ## --------- ##
  1470. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1471. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1472. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1473. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1474. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1475. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1476. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1477. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1478. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1479. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1480. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1481. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1482. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1483. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1484. _ASUNAME
  1485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1486. for as_dir in $PATH
  1487. do
  1488. IFS=$as_save_IFS
  1489. test -z "$as_dir" && as_dir=.
  1490. echo "PATH: $as_dir"
  1491. done
  1492. IFS=$as_save_IFS
  1493. } >&5
  1494. cat >&5 <<_ACEOF
  1495. ## ----------- ##
  1496. ## Core tests. ##
  1497. ## ----------- ##
  1498. _ACEOF
  1499. # Keep a trace of the command line.
  1500. # Strip out --no-create and --no-recursion so they do not pile up.
  1501. # Strip out --silent because we don't want to record it for future runs.
  1502. # Also quote any args containing shell meta-characters.
  1503. # Make two passes to allow for proper duplicate-argument suppression.
  1504. ac_configure_args=
  1505. ac_configure_args0=
  1506. ac_configure_args1=
  1507. ac_must_keep_next=false
  1508. for ac_pass in 1 2
  1509. do
  1510. for ac_arg
  1511. do
  1512. case $ac_arg in
  1513. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1514. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1515. | -silent | --silent | --silen | --sile | --sil)
  1516. continue ;;
  1517. *\'*)
  1518. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1519. esac
  1520. case $ac_pass in
  1521. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1522. 2)
  1523. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1524. if test $ac_must_keep_next = true; then
  1525. ac_must_keep_next=false # Got value, back to normal.
  1526. else
  1527. case $ac_arg in
  1528. *=* | --config-cache | -C | -disable-* | --disable-* \
  1529. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1530. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1531. | -with-* | --with-* | -without-* | --without-* | --x)
  1532. case "$ac_configure_args0 " in
  1533. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1534. esac
  1535. ;;
  1536. -* ) ac_must_keep_next=true ;;
  1537. esac
  1538. fi
  1539. ac_configure_args="$ac_configure_args '$ac_arg'"
  1540. ;;
  1541. esac
  1542. done
  1543. done
  1544. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1545. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1546. # When interrupted or exit'd, cleanup temporary files, and complete
  1547. # config.log. We remove comments because anyway the quotes in there
  1548. # would cause problems or look ugly.
  1549. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1550. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1551. trap 'exit_status=$?
  1552. # Save into config.log some information that might help in debugging.
  1553. {
  1554. echo
  1555. cat <<\_ASBOX
  1556. ## ---------------- ##
  1557. ## Cache variables. ##
  1558. ## ---------------- ##
  1559. _ASBOX
  1560. echo
  1561. # The following way of writing the cache mishandles newlines in values,
  1562. (
  1563. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1564. eval ac_val=\$$ac_var
  1565. case $ac_val in #(
  1566. *${as_nl}*)
  1567. case $ac_var in #(
  1568. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1569. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1570. esac
  1571. case $ac_var in #(
  1572. _ | IFS | as_nl) ;; #(
  1573. *) $as_unset $ac_var ;;
  1574. esac ;;
  1575. esac
  1576. done
  1577. (set) 2>&1 |
  1578. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1579. *${as_nl}ac_space=\ *)
  1580. sed -n \
  1581. "s/'\''/'\''\\\\'\'''\''/g;
  1582. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1583. ;; #(
  1584. *)
  1585. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1586. ;;
  1587. esac |
  1588. sort
  1589. )
  1590. echo
  1591. cat <<\_ASBOX
  1592. ## ----------------- ##
  1593. ## Output variables. ##
  1594. ## ----------------- ##
  1595. _ASBOX
  1596. echo
  1597. for ac_var in $ac_subst_vars
  1598. do
  1599. eval ac_val=\$$ac_var
  1600. case $ac_val in
  1601. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1602. esac
  1603. echo "$ac_var='\''$ac_val'\''"
  1604. done | sort
  1605. echo
  1606. if test -n "$ac_subst_files"; then
  1607. cat <<\_ASBOX
  1608. ## ------------------- ##
  1609. ## File substitutions. ##
  1610. ## ------------------- ##
  1611. _ASBOX
  1612. echo
  1613. for ac_var in $ac_subst_files
  1614. do
  1615. eval ac_val=\$$ac_var
  1616. case $ac_val in
  1617. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1618. esac
  1619. echo "$ac_var='\''$ac_val'\''"
  1620. done | sort
  1621. echo
  1622. fi
  1623. if test -s confdefs.h; then
  1624. cat <<\_ASBOX
  1625. ## ----------- ##
  1626. ## confdefs.h. ##
  1627. ## ----------- ##
  1628. _ASBOX
  1629. echo
  1630. cat confdefs.h
  1631. echo
  1632. fi
  1633. test "$ac_signal" != 0 &&
  1634. echo "$as_me: caught signal $ac_signal"
  1635. echo "$as_me: exit $exit_status"
  1636. } >&5
  1637. rm -f core *.core core.conftest.* &&
  1638. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1639. exit $exit_status
  1640. ' 0
  1641. for ac_signal in 1 2 13 15; do
  1642. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1643. done
  1644. ac_signal=0
  1645. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1646. rm -f -r conftest* confdefs.h
  1647. # Predefined preprocessor variables.
  1648. cat >>confdefs.h <<_ACEOF
  1649. #define PACKAGE_NAME "$PACKAGE_NAME"
  1650. _ACEOF
  1651. cat >>confdefs.h <<_ACEOF
  1652. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1653. _ACEOF
  1654. cat >>confdefs.h <<_ACEOF
  1655. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1656. _ACEOF
  1657. cat >>confdefs.h <<_ACEOF
  1658. #define PACKAGE_STRING "$PACKAGE_STRING"
  1659. _ACEOF
  1660. cat >>confdefs.h <<_ACEOF
  1661. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1662. _ACEOF
  1663. # Let the site file select an alternate cache file if it wants to.
  1664. # Prefer explicitly selected file to automatically selected ones.
  1665. if test -n "$CONFIG_SITE"; then
  1666. set x "$CONFIG_SITE"
  1667. elif test "x$prefix" != xNONE; then
  1668. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1669. else
  1670. set x "$ac_default_prefix/share/config.site" \
  1671. "$ac_default_prefix/etc/config.site"
  1672. fi
  1673. shift
  1674. for ac_site_file
  1675. do
  1676. if test -r "$ac_site_file"; then
  1677. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1678. echo "$as_me: loading site script $ac_site_file" >&6;}
  1679. sed 's/^/| /' "$ac_site_file" >&5
  1680. . "$ac_site_file"
  1681. fi
  1682. done
  1683. if test -r "$cache_file"; then
  1684. # Some versions of bash will fail to source /dev/null (special
  1685. # files actually), so we avoid doing that.
  1686. if test -f "$cache_file"; then
  1687. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1688. echo "$as_me: loading cache $cache_file" >&6;}
  1689. case $cache_file in
  1690. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1691. *) . "./$cache_file";;
  1692. esac
  1693. fi
  1694. else
  1695. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1696. echo "$as_me: creating cache $cache_file" >&6;}
  1697. >$cache_file
  1698. fi
  1699. # Check that the precious variables saved in the cache have kept the same
  1700. # value.
  1701. ac_cache_corrupted=false
  1702. for ac_var in $ac_precious_vars; do
  1703. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1704. eval ac_new_set=\$ac_env_${ac_var}_set
  1705. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1706. eval ac_new_val=\$ac_env_${ac_var}_value
  1707. case $ac_old_set,$ac_new_set in
  1708. set,)
  1709. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1710. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1711. ac_cache_corrupted=: ;;
  1712. ,set)
  1713. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1714. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1715. ac_cache_corrupted=: ;;
  1716. ,);;
  1717. *)
  1718. if test "x$ac_old_val" != "x$ac_new_val"; then
  1719. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1720. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1721. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1722. echo "$as_me: former value: $ac_old_val" >&2;}
  1723. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1724. echo "$as_me: current value: $ac_new_val" >&2;}
  1725. ac_cache_corrupted=:
  1726. fi;;
  1727. esac
  1728. # Pass precious variables to config.status.
  1729. if test "$ac_new_set" = set; then
  1730. case $ac_new_val in
  1731. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1732. *) ac_arg=$ac_var=$ac_new_val ;;
  1733. esac
  1734. case " $ac_configure_args " in
  1735. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1736. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1737. esac
  1738. fi
  1739. done
  1740. if $ac_cache_corrupted; then
  1741. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1742. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1743. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1744. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1745. { (exit 1); exit 1; }; }
  1746. fi
  1747. ac_ext=c
  1748. ac_cpp='$CPP $CPPFLAGS'
  1749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1752. ac_config_headers="$ac_config_headers src/config.h"
  1753. ac_aux_dir=
  1754. for ac_dir in config "$srcdir"/config; do
  1755. if test -f "$ac_dir/install-sh"; then
  1756. ac_aux_dir=$ac_dir
  1757. ac_install_sh="$ac_aux_dir/install-sh -c"
  1758. break
  1759. elif test -f "$ac_dir/install.sh"; then
  1760. ac_aux_dir=$ac_dir
  1761. ac_install_sh="$ac_aux_dir/install.sh -c"
  1762. break
  1763. elif test -f "$ac_dir/shtool"; then
  1764. ac_aux_dir=$ac_dir
  1765. ac_install_sh="$ac_aux_dir/shtool install -c"
  1766. break
  1767. fi
  1768. done
  1769. if test -z "$ac_aux_dir"; then
  1770. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1771. echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1772. { (exit 1); exit 1; }; }
  1773. fi
  1774. # These three variables are undocumented and unsupported,
  1775. # and are intended to be withdrawn in a future Autoconf release.
  1776. # They can cause serious problems if a builder's source tree is in a directory
  1777. # whose full name contains unusual characters.
  1778. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1779. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1780. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1781. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1782. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  1783. # Check whether --enable-maintainer-mode was given.
  1784. if test "${enable_maintainer_mode+set}" = set; then
  1785. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1786. else
  1787. USE_MAINTAINER_MODE=no
  1788. fi
  1789. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1790. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  1791. if test $USE_MAINTAINER_MODE = yes; then
  1792. MAINTAINER_MODE_TRUE=
  1793. MAINTAINER_MODE_FALSE='#'
  1794. else
  1795. MAINTAINER_MODE_TRUE='#'
  1796. MAINTAINER_MODE_FALSE=
  1797. fi
  1798. MAINT=$MAINTAINER_MODE_TRUE
  1799. { echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1800. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6; }
  1801. # Check whether --with-dmalloc was given.
  1802. if test "${with_dmalloc+set}" = set; then
  1803. withval=$with_dmalloc; if test "$withval" = yes; then
  1804. { echo "$as_me:$LINENO: result: yes" >&5
  1805. echo "${ECHO_T}yes" >&6; }
  1806. cat >>confdefs.h <<\_ACEOF
  1807. #define WITH_DMALLOC 1
  1808. _ACEOF
  1809. LIBS="$LIBS -ldmalloc"
  1810. LDFLAGS="$LDFLAGS -g"
  1811. else
  1812. { echo "$as_me:$LINENO: result: no" >&5
  1813. echo "${ECHO_T}no" >&6; }
  1814. fi
  1815. else
  1816. { echo "$as_me:$LINENO: result: no" >&5
  1817. echo "${ECHO_T}no" >&6; }
  1818. fi
  1819. MAJOR_VERSION=3
  1820. MINOR_VERSION=0
  1821. MICRO_VERSION=1
  1822. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1823. TCPREPLAY_RELEASE=1
  1824. cat >>confdefs.h <<\_ACEOF
  1825. #define PACKAGE tcpreplay
  1826. _ACEOF
  1827. cat >>confdefs.h <<_ACEOF
  1828. #define VERSION "$TCPREPLAY_VERSION"
  1829. _ACEOF
  1830. USER_CFLAGS=$CFLAGS
  1831. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1832. # Make sure we can run config.sub.
  1833. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1834. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1835. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1836. { (exit 1); exit 1; }; }
  1837. { echo "$as_me:$LINENO: checking build system type" >&5
  1838. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1839. if test "${ac_cv_build+set}" = set; then
  1840. echo $ECHO_N "(cached) $ECHO_C" >&6
  1841. else
  1842. ac_build_alias=$build_alias
  1843. test "x$ac_build_alias" = x &&
  1844. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1845. test "x$ac_build_alias" = x &&
  1846. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1847. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1848. { (exit 1); exit 1; }; }
  1849. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1850. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1851. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1852. { (exit 1); exit 1; }; }
  1853. fi
  1854. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1855. echo "${ECHO_T}$ac_cv_build" >&6; }
  1856. case $ac_cv_build in
  1857. *-*-*) ;;
  1858. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1859. echo "$as_me: error: invalid value of canonical build" >&2;}
  1860. { (exit 1); exit 1; }; };;
  1861. esac
  1862. build=$ac_cv_build
  1863. ac_save_IFS=$IFS; IFS='-'
  1864. set x $ac_cv_build
  1865. shift
  1866. build_cpu=$1
  1867. build_vendor=$2
  1868. shift; shift
  1869. # Remember, the first character of IFS is used to create $*,
  1870. # except with old shells:
  1871. build_os=$*
  1872. IFS=$ac_save_IFS
  1873. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1874. { echo "$as_me:$LINENO: checking host system type" >&5
  1875. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1876. if test "${ac_cv_host+set}" = set; then
  1877. echo $ECHO_N "(cached) $ECHO_C" >&6
  1878. else
  1879. if test "x$host_alias" = x; then
  1880. ac_cv_host=$ac_cv_build
  1881. else
  1882. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1883. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1884. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1885. { (exit 1); exit 1; }; }
  1886. fi
  1887. fi
  1888. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1889. echo "${ECHO_T}$ac_cv_host" >&6; }
  1890. case $ac_cv_host in
  1891. *-*-*) ;;
  1892. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1893. echo "$as_me: error: invalid value of canonical host" >&2;}
  1894. { (exit 1); exit 1; }; };;
  1895. esac
  1896. host=$ac_cv_host
  1897. ac_save_IFS=$IFS; IFS='-'
  1898. set x $ac_cv_host
  1899. shift
  1900. host_cpu=$1
  1901. host_vendor=$2
  1902. shift; shift
  1903. # Remember, the first character of IFS is used to create $*,
  1904. # except with old shells:
  1905. host_os=$*
  1906. IFS=$ac_save_IFS
  1907. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1908. { echo "$as_me:$LINENO: checking target system type" >&5
  1909. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1910. if test "${ac_cv_target+set}" = set; then
  1911. echo $ECHO_N "(cached) $ECHO_C" >&6
  1912. else
  1913. if test "x$target_alias" = x; then
  1914. ac_cv_target=$ac_cv_host
  1915. else
  1916. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1917. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1918. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1919. { (exit 1); exit 1; }; }
  1920. fi
  1921. fi
  1922. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1923. echo "${ECHO_T}$ac_cv_target" >&6; }
  1924. case $ac_cv_target in
  1925. *-*-*) ;;
  1926. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1927. echo "$as_me: error: invalid value of canonical target" >&2;}
  1928. { (exit 1); exit 1; }; };;
  1929. esac
  1930. target=$ac_cv_target
  1931. ac_save_IFS=$IFS; IFS='-'
  1932. set x $ac_cv_target
  1933. shift
  1934. target_cpu=$1
  1935. target_vendor=$2
  1936. shift; shift
  1937. # Remember, the first character of IFS is used to create $*,
  1938. # except with old shells:
  1939. target_os=$*
  1940. IFS=$ac_save_IFS
  1941. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1942. # The aliases save the names the user supplied, while $host etc.
  1943. # will get canonicalized.
  1944. test -n "$target_alias" &&
  1945. test "$program_prefix$program_suffix$program_transform_name" = \
  1946. NONENONEs,x,x, &&
  1947. program_prefix=${target_alias}-
  1948. { echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  1949. echo $ECHO_N "checking for cygwin development environment... $ECHO_C" >&6; }
  1950. if test `echo $target | grep -c cygwin` -gt 0 ; then
  1951. cat >>confdefs.h <<\_ACEOF
  1952. #define HAVE_WIN32 1
  1953. _ACEOF
  1954. { echo "$as_me:$LINENO: result: yes" >&5
  1955. echo "${ECHO_T}yes" >&6; }
  1956. else
  1957. { echo "$as_me:$LINENO: result: no" >&5
  1958. echo "${ECHO_T}no" >&6; }
  1959. fi
  1960. am__api_version='1.10'
  1961. # Find a good install program. We prefer a C program (faster),
  1962. # so one script is as good as another. But avoid the broken or
  1963. # incompatible versions:
  1964. # SysV /etc/install, /usr/sbin/install
  1965. # SunOS /usr/etc/install
  1966. # IRIX /sbin/install
  1967. # AIX /bin/install
  1968. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1969. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1970. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1971. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1972. # OS/2's system install, which has a completely different semantic
  1973. # ./install, which can be erroneously created by make from ./install.sh.
  1974. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1975. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1976. if test -z "$INSTALL"; then
  1977. if test "${ac_cv_path_install+set}" = set; then
  1978. echo $ECHO_N "(cached) $ECHO_C" >&6
  1979. else
  1980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1981. for as_dir in $PATH
  1982. do
  1983. IFS=$as_save_IFS
  1984. test -z "$as_dir" && as_dir=.
  1985. # Account for people who put trailing slashes in PATH elements.
  1986. case $as_dir/ in
  1987. ./ | .// | /cC/* | \
  1988. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1989. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1990. /usr/ucb/* ) ;;
  1991. *)
  1992. # OSF1 and SCO ODT 3.0 have their own names for install.
  1993. # Don't use installbsd from OSF since it installs stuff as root
  1994. # by default.
  1995. for ac_prog in ginstall scoinst install; do
  1996. for ac_exec_ext in '' $ac_executable_extensions; do
  1997. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1998. if test $ac_prog = install &&
  1999. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2000. # AIX install. It has an incompatible calling convention.
  2001. :
  2002. elif test $ac_prog = install &&
  2003. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2004. # program-specific install script used by HP pwplus--don't use.
  2005. :
  2006. else
  2007. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2008. break 3
  2009. fi
  2010. fi
  2011. done
  2012. done
  2013. ;;
  2014. esac
  2015. done
  2016. IFS=$as_save_IFS
  2017. fi
  2018. if test "${ac_cv_path_install+set}" = set; then
  2019. INSTALL=$ac_cv_path_install
  2020. else
  2021. # As a last resort, use the slow shell script. Don't cache a
  2022. # value for INSTALL within a source directory, because that will
  2023. # break other packages using the cache if that directory is
  2024. # removed, or if the value is a relative name.
  2025. INSTALL=$ac_install_sh
  2026. fi
  2027. fi
  2028. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2029. echo "${ECHO_T}$INSTALL" >&6; }
  2030. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2031. # It thinks the first close brace ends the variable substitution.
  2032. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2033. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2034. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2035. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2036. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2037. # Just in case
  2038. sleep 1
  2039. echo timestamp > conftest.file
  2040. # Do `set' in a subshell so we don't clobber the current shell's
  2041. # arguments. Must try -L first in case configure is actually a
  2042. # symlink; some systems play weird games with the mod time of symlinks
  2043. # (eg FreeBSD returns the mod time of the symlink's containing
  2044. # directory).
  2045. if (
  2046. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2047. if test "$*" = "X"; then
  2048. # -L didn't work.
  2049. set X `ls -t $srcdir/configure conftest.file`
  2050. fi
  2051. rm -f conftest.file
  2052. if test "$*" != "X $srcdir/configure conftest.file" \
  2053. && test "$*" != "X conftest.file $srcdir/configure"; then
  2054. # If neither matched, then we have a broken ls. This can happen
  2055. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2056. # broken ls alias from the environment. This has actually
  2057. # happened. Such a system could not be considered "sane".
  2058. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2059. alias in your environment" >&5
  2060. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2061. alias in your environment" >&2;}
  2062. { (exit 1); exit 1; }; }
  2063. fi
  2064. test "$2" = conftest.file
  2065. )
  2066. then
  2067. # Ok.
  2068. :
  2069. else
  2070. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2071. Check your system clock" >&5
  2072. echo "$as_me: error: newly created file is older than distributed files!
  2073. Check your system clock" >&2;}
  2074. { (exit 1); exit 1; }; }
  2075. fi
  2076. { echo "$as_me:$LINENO: result: yes" >&5
  2077. echo "${ECHO_T}yes" >&6; }
  2078. test "$program_prefix" != NONE &&
  2079. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2080. # Use a double $ so make ignores it.
  2081. test "$program_suffix" != NONE &&
  2082. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2083. # Double any \ or $. echo might interpret backslashes.
  2084. # By default was `s,x,x', remove it if useless.
  2085. cat <<\_ACEOF >conftest.sed
  2086. s/[\\$]/&&/g;s/;s,x,x,$//
  2087. _ACEOF
  2088. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2089. rm -f conftest.sed
  2090. # expand $ac_aux_dir to an absolute path
  2091. am_aux_dir=`cd $ac_aux_dir && pwd`
  2092. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2093. # Use eval to expand $SHELL
  2094. if eval "$MISSING --run true"; then
  2095. am_missing_run="$MISSING --run "
  2096. else
  2097. am_missing_run=
  2098. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2099. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2100. fi
  2101. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2102. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2103. if test -z "$MKDIR_P"; then
  2104. if test "${ac_cv_path_mkdir+set}" = set; then
  2105. echo $ECHO_N "(cached) $ECHO_C" >&6
  2106. else
  2107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2108. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2109. do
  2110. IFS=$as_save_IFS
  2111. test -z "$as_dir" && as_dir=.
  2112. for ac_prog in mkdir gmkdir; do
  2113. for ac_exec_ext in '' $ac_executable_extensions; do
  2114. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2115. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2116. 'mkdir (GNU coreutils) '* | \
  2117. 'mkdir (coreutils) '* | \
  2118. 'mkdir (fileutils) '4.1*)
  2119. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2120. break 3;;
  2121. esac
  2122. done
  2123. done
  2124. done
  2125. IFS=$as_save_IFS
  2126. fi
  2127. if test "${ac_cv_path_mkdir+set}" = set; then
  2128. MKDIR_P="$ac_cv_path_mkdir -p"
  2129. else
  2130. # As a last resort, use the slow shell script. Don't cache a
  2131. # value for MKDIR_P within a source directory, because that will
  2132. # break other packages using the cache if that directory is
  2133. # removed, or if the value is a relative name.
  2134. test -d ./--version && rmdir ./--version
  2135. MKDIR_P="$ac_install_sh -d"
  2136. fi
  2137. fi
  2138. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2139. echo "${ECHO_T}$MKDIR_P" >&6; }
  2140. mkdir_p="$MKDIR_P"
  2141. case $mkdir_p in
  2142. [\\/$]* | ?:[\\/]*) ;;
  2143. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2144. esac
  2145. for ac_prog in gawk mawk nawk awk
  2146. do
  2147. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2148. set dummy $ac_prog; ac_word=$2
  2149. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2150. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2151. if test "${ac_cv_prog_AWK+set}" = set; then
  2152. echo $ECHO_N "(cached) $ECHO_C" >&6
  2153. else
  2154. if test -n "$AWK"; then
  2155. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2156. else
  2157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2158. for as_dir in $PATH
  2159. do
  2160. IFS=$as_save_IFS
  2161. test -z "$as_dir" && as_dir=.
  2162. for ac_exec_ext in '' $ac_executable_extensions; do
  2163. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2164. ac_cv_prog_AWK="$ac_prog"
  2165. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2166. break 2
  2167. fi
  2168. done
  2169. done
  2170. IFS=$as_save_IFS
  2171. fi
  2172. fi
  2173. AWK=$ac_cv_prog_AWK
  2174. if test -n "$AWK"; then
  2175. { echo "$as_me:$LINENO: result: $AWK" >&5
  2176. echo "${ECHO_T}$AWK" >&6; }
  2177. else
  2178. { echo "$as_me:$LINENO: result: no" >&5
  2179. echo "${ECHO_T}no" >&6; }
  2180. fi
  2181. test -n "$AWK" && break
  2182. done
  2183. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2184. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2185. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2186. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2187. echo $ECHO_N "(cached) $ECHO_C" >&6
  2188. else
  2189. cat >conftest.make <<\_ACEOF
  2190. SHELL = /bin/sh
  2191. all:
  2192. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2193. _ACEOF
  2194. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2195. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2196. *@@@%%%=?*=@@@%%%*)
  2197. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2198. *)
  2199. eval ac_cv_prog_make_${ac_make}_set=no;;
  2200. esac
  2201. rm -f conftest.make
  2202. fi
  2203. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2204. { echo "$as_me:$LINENO: result: yes" >&5
  2205. echo "${ECHO_T}yes" >&6; }
  2206. SET_MAKE=
  2207. else
  2208. { echo "$as_me:$LINENO: result: no" >&5
  2209. echo "${ECHO_T}no" >&6; }
  2210. SET_MAKE="MAKE=${MAKE-make}"
  2211. fi
  2212. rm -rf .tst 2>/dev/null
  2213. mkdir .tst 2>/dev/null
  2214. if test -d .tst; then
  2215. am__leading_dot=.
  2216. else
  2217. am__leading_dot=_
  2218. fi
  2219. rmdir .tst 2>/dev/null
  2220. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2221. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2222. # is not polluted with repeated "-I."
  2223. am__isrc=' -I$(srcdir)'
  2224. # test to see if srcdir already configured
  2225. if test -f $srcdir/config.status; then
  2226. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2227. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2228. { (exit 1); exit 1; }; }
  2229. fi
  2230. fi
  2231. # test whether we have cygpath
  2232. if test -z "$CYGPATH_W"; then
  2233. if (cygpath --version) >/dev/null 2>/dev/null; then
  2234. CYGPATH_W='cygpath -w'
  2235. else
  2236. CYGPATH_W=echo
  2237. fi
  2238. fi
  2239. # Define the identity of the package.
  2240. PACKAGE=tcpreplay
  2241. VERSION=$TCPREPLAY_VERSION
  2242. # Some tools Automake needs.
  2243. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2244. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2245. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2246. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2247. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2248. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2249. # Installed binaries are usually stripped using `strip' when the user
  2250. # run `make install-strip'. However `strip' might not be the right
  2251. # tool to use in cross-compilation environments, therefore Automake
  2252. # will honor the `STRIP' environment variable to overrule this program.
  2253. if test "$cross_compiling" != no; then
  2254. if test -n "$ac_tool_prefix"; then
  2255. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2256. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2257. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2259. if test "${ac_cv_prog_STRIP+set}" = set; then
  2260. echo $ECHO_N "(cached) $ECHO_C" >&6
  2261. else
  2262. if test -n "$STRIP"; then
  2263. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2264. else
  2265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2266. for as_dir in $PATH
  2267. do
  2268. IFS=$as_save_IFS
  2269. test -z "$as_dir" && as_dir=.
  2270. for ac_exec_ext in '' $ac_executable_extensions; do
  2271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2272. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2273. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2274. break 2
  2275. fi
  2276. done
  2277. done
  2278. IFS=$as_save_IFS
  2279. fi
  2280. fi
  2281. STRIP=$ac_cv_prog_STRIP
  2282. if test -n "$STRIP"; then
  2283. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2284. echo "${ECHO_T}$STRIP" >&6; }
  2285. else
  2286. { echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6; }
  2288. fi
  2289. fi
  2290. if test -z "$ac_cv_prog_STRIP"; then
  2291. ac_ct_STRIP=$STRIP
  2292. # Extract the first word of "strip", so it can be a program name with args.
  2293. set dummy strip; ac_word=$2
  2294. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2295. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2296. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2297. echo $ECHO_N "(cached) $ECHO_C" >&6
  2298. else
  2299. if test -n "$ac_ct_STRIP"; then
  2300. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2301. else
  2302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2303. for as_dir in $PATH
  2304. do
  2305. IFS=$as_save_IFS
  2306. test -z "$as_dir" && as_dir=.
  2307. for ac_exec_ext in '' $ac_executable_extensions; do
  2308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2309. ac_cv_prog_ac_ct_STRIP="strip"
  2310. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2311. break 2
  2312. fi
  2313. done
  2314. done
  2315. IFS=$as_save_IFS
  2316. fi
  2317. fi
  2318. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2319. if test -n "$ac_ct_STRIP"; then
  2320. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2321. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2322. else
  2323. { echo "$as_me:$LINENO: result: no" >&5
  2324. echo "${ECHO_T}no" >&6; }
  2325. fi
  2326. if test "x$ac_ct_STRIP" = x; then
  2327. STRIP=":"
  2328. else
  2329. case $cross_compiling:$ac_tool_warned in
  2330. yes:)
  2331. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2332. whose name does not start with the host triplet. If you think this
  2333. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2334. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2335. whose name does not start with the host triplet. If you think this
  2336. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2337. ac_tool_warned=yes ;;
  2338. esac
  2339. STRIP=$ac_ct_STRIP
  2340. fi
  2341. else
  2342. STRIP="$ac_cv_prog_STRIP"
  2343. fi
  2344. fi
  2345. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2346. # We need awk for the "check" target. The system "awk" is bad on
  2347. # some platforms.
  2348. # Always define AMTAR for backward compatibility.
  2349. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2350. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2351. # Find a good install program. We prefer a C program (faster),
  2352. # so one script is as good as another. But avoid the broken or
  2353. # incompatible versions:
  2354. # SysV /etc/install, /usr/sbin/install
  2355. # SunOS /usr/etc/install
  2356. # IRIX /sbin/install
  2357. # AIX /bin/install
  2358. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2359. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2360. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2361. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2362. # OS/2's system install, which has a completely different semantic
  2363. # ./install, which can be erroneously created by make from ./install.sh.
  2364. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2365. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2366. if test -z "$INSTALL"; then
  2367. if test "${ac_cv_path_install+set}" = set; then
  2368. echo $ECHO_N "(cached) $ECHO_C" >&6
  2369. else
  2370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2371. for as_dir in $PATH
  2372. do
  2373. IFS=$as_save_IFS
  2374. test -z "$as_dir" && as_dir=.
  2375. # Account for people who put trailing slashes in PATH elements.
  2376. case $as_dir/ in
  2377. ./ | .// | /cC/* | \
  2378. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2379. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2380. /usr/ucb/* ) ;;
  2381. *)
  2382. # OSF1 and SCO ODT 3.0 have their own names for install.
  2383. # Don't use installbsd from OSF since it installs stuff as root
  2384. # by default.
  2385. for ac_prog in ginstall scoinst install; do
  2386. for ac_exec_ext in '' $ac_executable_extensions; do
  2387. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2388. if test $ac_prog = install &&
  2389. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2390. # AIX install. It has an incompatible calling convention.
  2391. :
  2392. elif test $ac_prog = install &&
  2393. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2394. # program-specific install script used by HP pwplus--don't use.
  2395. :
  2396. else
  2397. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2398. break 3
  2399. fi
  2400. fi
  2401. done
  2402. done
  2403. ;;
  2404. esac
  2405. done
  2406. IFS=$as_save_IFS
  2407. fi
  2408. if test "${ac_cv_path_install+set}" = set; then
  2409. INSTALL=$ac_cv_path_install
  2410. else
  2411. # As a last resort, use the slow shell script. Don't cache a
  2412. # value for INSTALL within a source directory, because that will
  2413. # break other packages using the cache if that directory is
  2414. # removed, or if the value is a relative name.
  2415. INSTALL=$ac_install_sh
  2416. fi
  2417. fi
  2418. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2419. echo "${ECHO_T}$INSTALL" >&6; }
  2420. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2421. # It thinks the first close brace ends the variable substitution.
  2422. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2423. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2424. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2425. # Check whether --enable-shared was given.
  2426. if test "${enable_shared+set}" = set; then
  2427. enableval=$enable_shared; p=${PACKAGE-default}
  2428. case $enableval in
  2429. yes) enable_shared=yes ;;
  2430. no) enable_shared=no ;;
  2431. *)
  2432. enable_shared=no
  2433. # Look at the argument we got. We use all the common list separators.
  2434. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2435. for pkg in $enableval; do
  2436. IFS="$lt_save_ifs"
  2437. if test "X$pkg" = "X$p"; then
  2438. enable_shared=yes
  2439. fi
  2440. done
  2441. IFS="$lt_save_ifs"
  2442. ;;
  2443. esac
  2444. else
  2445. enable_shared=yes
  2446. fi
  2447. # Check whether --enable-static was given.
  2448. if test "${enable_static+set}" = set; then
  2449. enableval=$enable_static; p=${PACKAGE-default}
  2450. case $enableval in
  2451. yes) enable_static=yes ;;
  2452. no) enable_static=no ;;
  2453. *)
  2454. enable_static=no
  2455. # Look at the argument we got. We use all the common list separators.
  2456. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2457. for pkg in $enableval; do
  2458. IFS="$lt_save_ifs"
  2459. if test "X$pkg" = "X$p"; then
  2460. enable_static=yes
  2461. fi
  2462. done
  2463. IFS="$lt_save_ifs"
  2464. ;;
  2465. esac
  2466. else
  2467. enable_static=yes
  2468. fi
  2469. # Check whether --enable-fast-install was given.
  2470. if test "${enable_fast_install+set}" = set; then
  2471. enableval=$enable_fast_install; p=${PACKAGE-default}
  2472. case $enableval in
  2473. yes) enable_fast_install=yes ;;
  2474. no) enable_fast_install=no ;;
  2475. *)
  2476. enable_fast_install=no
  2477. # Look at the argument we got. We use all the common list separators.
  2478. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2479. for pkg in $enableval; do
  2480. IFS="$lt_save_ifs"
  2481. if test "X$pkg" = "X$p"; then
  2482. enable_fast_install=yes
  2483. fi
  2484. done
  2485. IFS="$lt_save_ifs"
  2486. ;;
  2487. esac
  2488. else
  2489. enable_fast_install=yes
  2490. fi
  2491. DEPDIR="${am__leading_dot}deps"
  2492. ac_config_commands="$ac_config_commands depfiles"
  2493. am_make=${MAKE-make}
  2494. cat > confinc << 'END'
  2495. am__doit:
  2496. @echo done
  2497. .PHONY: am__doit
  2498. END
  2499. # If we don't find an include directive, just comment out the code.
  2500. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2501. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2502. am__include="#"
  2503. am__quote=
  2504. _am_result=none
  2505. # First try GNU make style include.
  2506. echo "include confinc" > confmf
  2507. # We grep out `Entering directory' and `Leaving directory'
  2508. # messages which can occur if `w' ends up in MAKEFLAGS.
  2509. # In particular we don't look at `^make:' because GNU make might
  2510. # be invoked under some other name (usually "gmake"), in which
  2511. # case it prints its new name instead of `make'.
  2512. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2513. am__include=include
  2514. am__quote=
  2515. _am_result=GNU
  2516. fi
  2517. # Now try BSD make style include.
  2518. if test "$am__include" = "#"; then
  2519. echo '.include "confinc"' > confmf
  2520. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2521. am__include=.include
  2522. am__quote="\""
  2523. _am_result=BSD
  2524. fi
  2525. fi
  2526. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2527. echo "${ECHO_T}$_am_result" >&6; }
  2528. rm -f confinc confmf
  2529. # Check whether --enable-dependency-tracking was given.
  2530. if test "${enable_dependency_tracking+set}" = set; then
  2531. enableval=$enable_dependency_tracking;
  2532. fi
  2533. if test "x$enable_dependency_tracking" != xno; then
  2534. am_depcomp="$ac_aux_dir/depcomp"
  2535. AMDEPBACKSLASH='\'
  2536. fi
  2537. if test "x$enable_dependency_tracking" != xno; then
  2538. AMDEP_TRUE=
  2539. AMDEP_FALSE='#'
  2540. else
  2541. AMDEP_TRUE='#'
  2542. AMDEP_FALSE=
  2543. fi
  2544. ac_ext=c
  2545. ac_cpp='$CPP $CPPFLAGS'
  2546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2549. if test -n "$ac_tool_prefix"; then
  2550. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2551. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2552. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2553. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2554. if test "${ac_cv_prog_CC+set}" = set; then
  2555. echo $ECHO_N "(cached) $ECHO_C" >&6
  2556. else
  2557. if test -n "$CC"; then
  2558. ac_cv_prog_CC="$CC" # Let the user override the test.
  2559. else
  2560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2561. for as_dir in $PATH
  2562. do
  2563. IFS=$as_save_IFS
  2564. test -z "$as_dir" && as_dir=.
  2565. for ac_exec_ext in '' $ac_executable_extensions; do
  2566. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2567. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2568. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2569. break 2
  2570. fi
  2571. done
  2572. done
  2573. IFS=$as_save_IFS
  2574. fi
  2575. fi
  2576. CC=$ac_cv_prog_CC
  2577. if test -n "$CC"; then
  2578. { echo "$as_me:$LINENO: result: $CC" >&5
  2579. echo "${ECHO_T}$CC" >&6; }
  2580. else
  2581. { echo "$as_me:$LINENO: result: no" >&5
  2582. echo "${ECHO_T}no" >&6; }
  2583. fi
  2584. fi
  2585. if test -z "$ac_cv_prog_CC"; then
  2586. ac_ct_CC=$CC
  2587. # Extract the first word of "gcc", so it can be a program name with args.
  2588. set dummy gcc; ac_word=$2
  2589. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2590. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2591. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2592. echo $ECHO_N "(cached) $ECHO_C" >&6
  2593. else
  2594. if test -n "$ac_ct_CC"; then
  2595. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. test -z "$as_dir" && as_dir=.
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2604. ac_cv_prog_ac_ct_CC="gcc"
  2605. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606. break 2
  2607. fi
  2608. done
  2609. done
  2610. IFS=$as_save_IFS
  2611. fi
  2612. fi
  2613. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2614. if test -n "$ac_ct_CC"; then
  2615. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2616. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2617. else
  2618. { echo "$as_me:$LINENO: result: no" >&5
  2619. echo "${ECHO_T}no" >&6; }
  2620. fi
  2621. if test "x$ac_ct_CC" = x; then
  2622. CC=""
  2623. else
  2624. case $cross_compiling:$ac_tool_warned in
  2625. yes:)
  2626. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2627. whose name does not start with the host triplet. If you think this
  2628. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2629. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2630. whose name does not start with the host triplet. If you think this
  2631. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2632. ac_tool_warned=yes ;;
  2633. esac
  2634. CC=$ac_ct_CC
  2635. fi
  2636. else
  2637. CC="$ac_cv_prog_CC"
  2638. fi
  2639. if test -z "$CC"; then
  2640. if test -n "$ac_tool_prefix"; then
  2641. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2642. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2643. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2644. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2645. if test "${ac_cv_prog_CC+set}" = set; then
  2646. echo $ECHO_N "(cached) $ECHO_C" >&6
  2647. else
  2648. if test -n "$CC"; then
  2649. ac_cv_prog_CC="$CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2658. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2659. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. IFS=$as_save_IFS
  2665. fi
  2666. fi
  2667. CC=$ac_cv_prog_CC
  2668. if test -n "$CC"; then
  2669. { echo "$as_me:$LINENO: result: $CC" >&5
  2670. echo "${ECHO_T}$CC" >&6; }
  2671. else
  2672. { echo "$as_me:$LINENO: result: no" >&5
  2673. echo "${ECHO_T}no" >&6; }
  2674. fi
  2675. fi
  2676. fi
  2677. if test -z "$CC"; then
  2678. # Extract the first word of "cc", so it can be a program name with args.
  2679. set dummy cc; ac_word=$2
  2680. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2681. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2682. if test "${ac_cv_prog_CC+set}" = set; then
  2683. echo $ECHO_N "(cached) $ECHO_C" >&6
  2684. else
  2685. if test -n "$CC"; then
  2686. ac_cv_prog_CC="$CC" # Let the user override the test.
  2687. else
  2688. ac_prog_rejected=no
  2689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2690. for as_dir in $PATH
  2691. do
  2692. IFS=$as_save_IFS
  2693. test -z "$as_dir" && as_dir=.
  2694. for ac_exec_ext in '' $ac_executable_extensions; do
  2695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2696. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2697. ac_prog_rejected=yes
  2698. continue
  2699. fi
  2700. ac_cv_prog_CC="cc"
  2701. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2702. break 2
  2703. fi
  2704. done
  2705. done
  2706. IFS=$as_save_IFS
  2707. if test $ac_prog_rejected = yes; then
  2708. # We found a bogon in the path, so make sure we never use it.
  2709. set dummy $ac_cv_prog_CC
  2710. shift
  2711. if test $# != 0; then
  2712. # We chose a different compiler from the bogus one.
  2713. # However, it has the same basename, so the bogon will be chosen
  2714. # first if we set CC to just the basename; use the full file name.
  2715. shift
  2716. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2717. fi
  2718. fi
  2719. fi
  2720. fi
  2721. CC=$ac_cv_prog_CC
  2722. if test -n "$CC"; then
  2723. { echo "$as_me:$LINENO: result: $CC" >&5
  2724. echo "${ECHO_T}$CC" >&6; }
  2725. else
  2726. { echo "$as_me:$LINENO: result: no" >&5
  2727. echo "${ECHO_T}no" >&6; }
  2728. fi
  2729. fi
  2730. if test -z "$CC"; then
  2731. if test -n "$ac_tool_prefix"; then
  2732. for ac_prog in cl.exe
  2733. do
  2734. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2735. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2736. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2737. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2738. if test "${ac_cv_prog_CC+set}" = set; then
  2739. echo $ECHO_N "(cached) $ECHO_C" >&6
  2740. else
  2741. if test -n "$CC"; then
  2742. ac_cv_prog_CC="$CC" # Let the user override the test.
  2743. else
  2744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2745. for as_dir in $PATH
  2746. do
  2747. IFS=$as_save_IFS
  2748. test -z "$as_dir" && as_dir=.
  2749. for ac_exec_ext in '' $ac_executable_extensions; do
  2750. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2751. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2752. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2753. break 2
  2754. fi
  2755. done
  2756. done
  2757. IFS=$as_save_IFS
  2758. fi
  2759. fi
  2760. CC=$ac_cv_prog_CC
  2761. if test -n "$CC"; then
  2762. { echo "$as_me:$LINENO: result: $CC" >&5
  2763. echo "${ECHO_T}$CC" >&6; }
  2764. else
  2765. { echo "$as_me:$LINENO: result: no" >&5
  2766. echo "${ECHO_T}no" >&6; }
  2767. fi
  2768. test -n "$CC" && break
  2769. done
  2770. fi
  2771. if test -z "$CC"; then
  2772. ac_ct_CC=$CC
  2773. for ac_prog in cl.exe
  2774. do
  2775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2776. set dummy $ac_prog; ac_word=$2
  2777. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2778. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2779. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2780. echo $ECHO_N "(cached) $ECHO_C" >&6
  2781. else
  2782. if test -n "$ac_ct_CC"; then
  2783. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2784. else
  2785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2786. for as_dir in $PATH
  2787. do
  2788. IFS=$as_save_IFS
  2789. test -z "$as_dir" && as_dir=.
  2790. for ac_exec_ext in '' $ac_executable_extensions; do
  2791. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2792. ac_cv_prog_ac_ct_CC="$ac_prog"
  2793. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2794. break 2
  2795. fi
  2796. done
  2797. done
  2798. IFS=$as_save_IFS
  2799. fi
  2800. fi
  2801. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2802. if test -n "$ac_ct_CC"; then
  2803. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2804. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2805. else
  2806. { echo "$as_me:$LINENO: result: no" >&5
  2807. echo "${ECHO_T}no" >&6; }
  2808. fi
  2809. test -n "$ac_ct_CC" && break
  2810. done
  2811. if test "x$ac_ct_CC" = x; then
  2812. CC=""
  2813. else
  2814. case $cross_compiling:$ac_tool_warned in
  2815. yes:)
  2816. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2817. whose name does not start with the host triplet. If you think this
  2818. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2819. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2820. whose name does not start with the host triplet. If you think this
  2821. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2822. ac_tool_warned=yes ;;
  2823. esac
  2824. CC=$ac_ct_CC
  2825. fi
  2826. fi
  2827. fi
  2828. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2829. See \`config.log' for more details." >&5
  2830. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2831. See \`config.log' for more details." >&2;}
  2832. { (exit 1); exit 1; }; }
  2833. # Provide some information about the compiler.
  2834. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2835. ac_compiler=`set X $ac_compile; echo $2`
  2836. { (ac_try="$ac_compiler --version >&5"
  2837. case "(($ac_try" in
  2838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2839. *) ac_try_echo=$ac_try;;
  2840. esac
  2841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2842. (eval "$ac_compiler --version >&5") 2>&5
  2843. ac_status=$?
  2844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845. (exit $ac_status); }
  2846. { (ac_try="$ac_compiler -v >&5"
  2847. case "(($ac_try" in
  2848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2849. *) ac_try_echo=$ac_try;;
  2850. esac
  2851. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2852. (eval "$ac_compiler -v >&5") 2>&5
  2853. ac_status=$?
  2854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2855. (exit $ac_status); }
  2856. { (ac_try="$ac_compiler -V >&5"
  2857. case "(($ac_try" in
  2858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2859. *) ac_try_echo=$ac_try;;
  2860. esac
  2861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2862. (eval "$ac_compiler -V >&5") 2>&5
  2863. ac_status=$?
  2864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2865. (exit $ac_status); }
  2866. cat >conftest.$ac_ext <<_ACEOF
  2867. /* confdefs.h. */
  2868. _ACEOF
  2869. cat confdefs.h >>conftest.$ac_ext
  2870. cat >>conftest.$ac_ext <<_ACEOF
  2871. /* end confdefs.h. */
  2872. int
  2873. main ()
  2874. {
  2875. ;
  2876. return 0;
  2877. }
  2878. _ACEOF
  2879. ac_clean_files_save=$ac_clean_files
  2880. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2881. # Try to create an executable without -o first, disregard a.out.
  2882. # It will help us diagnose broken compilers, and finding out an intuition
  2883. # of exeext.
  2884. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2885. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2886. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2887. #
  2888. # List of possible output files, starting from the most likely.
  2889. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2890. # only as a last resort. b.out is created by i960 compilers.
  2891. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2892. #
  2893. # The IRIX 6 linker writes into existing files which may not be
  2894. # executable, retaining their permissions. Remove them first so a
  2895. # subsequent execution test works.
  2896. ac_rmfiles=
  2897. for ac_file in $ac_files
  2898. do
  2899. case $ac_file in
  2900. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2901. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2902. esac
  2903. done
  2904. rm -f $ac_rmfiles
  2905. if { (ac_try="$ac_link_default"
  2906. case "(($ac_try" in
  2907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2908. *) ac_try_echo=$ac_try;;
  2909. esac
  2910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2911. (eval "$ac_link_default") 2>&5
  2912. ac_status=$?
  2913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); }; then
  2915. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2916. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2917. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2918. # so that the user can short-circuit this test for compilers unknown to
  2919. # Autoconf.
  2920. for ac_file in $ac_files ''
  2921. do
  2922. test -f "$ac_file" || continue
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2925. ;;
  2926. [ab].out )
  2927. # We found the default executable, but exeext='' is most
  2928. # certainly right.
  2929. break;;
  2930. *.* )
  2931. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2932. then :; else
  2933. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2934. fi
  2935. # We set ac_cv_exeext here because the later test for it is not
  2936. # safe: cross compilers may not add the suffix if given an `-o'
  2937. # argument, so we may need to know it at that point already.
  2938. # Even if this section looks crufty: it has the advantage of
  2939. # actually working.
  2940. break;;
  2941. * )
  2942. break;;
  2943. esac
  2944. done
  2945. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2946. else
  2947. ac_file=''
  2948. fi
  2949. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2950. echo "${ECHO_T}$ac_file" >&6; }
  2951. if test -z "$ac_file"; then
  2952. echo "$as_me: failed program was:" >&5
  2953. sed 's/^/| /' conftest.$ac_ext >&5
  2954. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2955. See \`config.log' for more details." >&5
  2956. echo "$as_me: error: C compiler cannot create executables
  2957. See \`config.log' for more details." >&2;}
  2958. { (exit 77); exit 77; }; }
  2959. fi
  2960. ac_exeext=$ac_cv_exeext
  2961. # Check that the compiler produces executables we can run. If not, either
  2962. # the compiler is broken, or we cross compile.
  2963. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2964. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2965. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2966. # If not cross compiling, check that we can run a simple program.
  2967. if test "$cross_compiling" != yes; then
  2968. if { ac_try='./$ac_file'
  2969. { (case "(($ac_try" in
  2970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2971. *) ac_try_echo=$ac_try;;
  2972. esac
  2973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2974. (eval "$ac_try") 2>&5
  2975. ac_status=$?
  2976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2977. (exit $ac_status); }; }; then
  2978. cross_compiling=no
  2979. else
  2980. if test "$cross_compiling" = maybe; then
  2981. cross_compiling=yes
  2982. else
  2983. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2984. If you meant to cross compile, use \`--host'.
  2985. See \`config.log' for more details." >&5
  2986. echo "$as_me: error: cannot run C compiled programs.
  2987. If you meant to cross compile, use \`--host'.
  2988. See \`config.log' for more details." >&2;}
  2989. { (exit 1); exit 1; }; }
  2990. fi
  2991. fi
  2992. fi
  2993. { echo "$as_me:$LINENO: result: yes" >&5
  2994. echo "${ECHO_T}yes" >&6; }
  2995. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2996. ac_clean_files=$ac_clean_files_save
  2997. # Check that the compiler produces executables we can run. If not, either
  2998. # the compiler is broken, or we cross compile.
  2999. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3000. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  3001. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3002. echo "${ECHO_T}$cross_compiling" >&6; }
  3003. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3004. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  3005. if { (ac_try="$ac_link"
  3006. case "(($ac_try" in
  3007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3008. *) ac_try_echo=$ac_try;;
  3009. esac
  3010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3011. (eval "$ac_link") 2>&5
  3012. ac_status=$?
  3013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3014. (exit $ac_status); }; then
  3015. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3016. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3017. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3018. # `rm'.
  3019. for ac_file in conftest.exe conftest conftest.*; do
  3020. test -f "$ac_file" || continue
  3021. case $ac_file in
  3022. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  3023. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3024. break;;
  3025. * ) break;;
  3026. esac
  3027. done
  3028. else
  3029. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3030. See \`config.log' for more details." >&5
  3031. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3032. See \`config.log' for more details." >&2;}
  3033. { (exit 1); exit 1; }; }
  3034. fi
  3035. rm -f conftest$ac_cv_exeext
  3036. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3037. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  3038. rm -f conftest.$ac_ext
  3039. EXEEXT=$ac_cv_exeext
  3040. ac_exeext=$EXEEXT
  3041. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3042. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  3043. if test "${ac_cv_objext+set}" = set; then
  3044. echo $ECHO_N "(cached) $ECHO_C" >&6
  3045. else
  3046. cat >conftest.$ac_ext <<_ACEOF
  3047. /* confdefs.h. */
  3048. _ACEOF
  3049. cat confdefs.h >>conftest.$ac_ext
  3050. cat >>conftest.$ac_ext <<_ACEOF
  3051. /* end confdefs.h. */
  3052. int
  3053. main ()
  3054. {
  3055. ;
  3056. return 0;
  3057. }
  3058. _ACEOF
  3059. rm -f conftest.o conftest.obj
  3060. if { (ac_try="$ac_compile"
  3061. case "(($ac_try" in
  3062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3063. *) ac_try_echo=$ac_try;;
  3064. esac
  3065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3066. (eval "$ac_compile") 2>&5
  3067. ac_status=$?
  3068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3069. (exit $ac_status); }; then
  3070. for ac_file in conftest.o conftest.obj conftest.*; do
  3071. test -f "$ac_file" || continue;
  3072. case $ac_file in
  3073. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  3074. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3075. break;;
  3076. esac
  3077. done
  3078. else
  3079. echo "$as_me: failed program was:" >&5
  3080. sed 's/^/| /' conftest.$ac_ext >&5
  3081. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3082. See \`config.log' for more details." >&5
  3083. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3084. See \`config.log' for more details." >&2;}
  3085. { (exit 1); exit 1; }; }
  3086. fi
  3087. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3088. fi
  3089. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3090. echo "${ECHO_T}$ac_cv_objext" >&6; }
  3091. OBJEXT=$ac_cv_objext
  3092. ac_objext=$OBJEXT
  3093. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3094. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3095. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3096. echo $ECHO_N "(cached) $ECHO_C" >&6
  3097. else
  3098. cat >conftest.$ac_ext <<_ACEOF
  3099. /* confdefs.h. */
  3100. _ACEOF
  3101. cat confdefs.h >>conftest.$ac_ext
  3102. cat >>conftest.$ac_ext <<_ACEOF
  3103. /* end confdefs.h. */
  3104. int
  3105. main ()
  3106. {
  3107. #ifndef __GNUC__
  3108. choke me
  3109. #endif
  3110. ;
  3111. return 0;
  3112. }
  3113. _ACEOF
  3114. rm -f conftest.$ac_objext
  3115. if { (ac_try="$ac_compile"
  3116. case "(($ac_try" in
  3117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3118. *) ac_try_echo=$ac_try;;
  3119. esac
  3120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3121. (eval "$ac_compile") 2>conftest.er1
  3122. ac_status=$?
  3123. grep -v '^ *+' conftest.er1 >conftest.err
  3124. rm -f conftest.er1
  3125. cat conftest.err >&5
  3126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3127. (exit $ac_status); } && {
  3128. test -z "$ac_c_werror_flag" ||
  3129. test ! -s conftest.err
  3130. } && test -s conftest.$ac_objext; then
  3131. ac_compiler_gnu=yes
  3132. else
  3133. echo "$as_me: failed program was:" >&5
  3134. sed 's/^/| /' conftest.$ac_ext >&5
  3135. ac_compiler_gnu=no
  3136. fi
  3137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3138. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3139. fi
  3140. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3141. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3142. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3143. ac_test_CFLAGS=${CFLAGS+set}
  3144. ac_save_CFLAGS=$CFLAGS
  3145. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3146. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3147. if test "${ac_cv_prog_cc_g+set}" = set; then
  3148. echo $ECHO_N "(cached) $ECHO_C" >&6
  3149. else
  3150. ac_save_c_werror_flag=$ac_c_werror_flag
  3151. ac_c_werror_flag=yes
  3152. ac_cv_prog_cc_g=no
  3153. CFLAGS="-g"
  3154. cat >conftest.$ac_ext <<_ACEOF
  3155. /* confdefs.h. */
  3156. _ACEOF
  3157. cat confdefs.h >>conftest.$ac_ext
  3158. cat >>conftest.$ac_ext <<_ACEOF
  3159. /* end confdefs.h. */
  3160. int
  3161. main ()
  3162. {
  3163. ;
  3164. return 0;
  3165. }
  3166. _ACEOF
  3167. rm -f conftest.$ac_objext
  3168. if { (ac_try="$ac_compile"
  3169. case "(($ac_try" in
  3170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3171. *) ac_try_echo=$ac_try;;
  3172. esac
  3173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3174. (eval "$ac_compile") 2>conftest.er1
  3175. ac_status=$?
  3176. grep -v '^ *+' conftest.er1 >conftest.err
  3177. rm -f conftest.er1
  3178. cat conftest.err >&5
  3179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3180. (exit $ac_status); } && {
  3181. test -z "$ac_c_werror_flag" ||
  3182. test ! -s conftest.err
  3183. } && test -s conftest.$ac_objext; then
  3184. ac_cv_prog_cc_g=yes
  3185. else
  3186. echo "$as_me: failed program was:" >&5
  3187. sed 's/^/| /' conftest.$ac_ext >&5
  3188. CFLAGS=""
  3189. cat >conftest.$ac_ext <<_ACEOF
  3190. /* confdefs.h. */
  3191. _ACEOF
  3192. cat confdefs.h >>conftest.$ac_ext
  3193. cat >>conftest.$ac_ext <<_ACEOF
  3194. /* end confdefs.h. */
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. rm -f conftest.$ac_objext
  3203. if { (ac_try="$ac_compile"
  3204. case "(($ac_try" in
  3205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3206. *) ac_try_echo=$ac_try;;
  3207. esac
  3208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3209. (eval "$ac_compile") 2>conftest.er1
  3210. ac_status=$?
  3211. grep -v '^ *+' conftest.er1 >conftest.err
  3212. rm -f conftest.er1
  3213. cat conftest.err >&5
  3214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3215. (exit $ac_status); } && {
  3216. test -z "$ac_c_werror_flag" ||
  3217. test ! -s conftest.err
  3218. } && test -s conftest.$ac_objext; then
  3219. :
  3220. else
  3221. echo "$as_me: failed program was:" >&5
  3222. sed 's/^/| /' conftest.$ac_ext >&5
  3223. ac_c_werror_flag=$ac_save_c_werror_flag
  3224. CFLAGS="-g"
  3225. cat >conftest.$ac_ext <<_ACEOF
  3226. /* confdefs.h. */
  3227. _ACEOF
  3228. cat confdefs.h >>conftest.$ac_ext
  3229. cat >>conftest.$ac_ext <<_ACEOF
  3230. /* end confdefs.h. */
  3231. int
  3232. main ()
  3233. {
  3234. ;
  3235. return 0;
  3236. }
  3237. _ACEOF
  3238. rm -f conftest.$ac_objext
  3239. if { (ac_try="$ac_compile"
  3240. case "(($ac_try" in
  3241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3242. *) ac_try_echo=$ac_try;;
  3243. esac
  3244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3245. (eval "$ac_compile") 2>conftest.er1
  3246. ac_status=$?
  3247. grep -v '^ *+' conftest.er1 >conftest.err
  3248. rm -f conftest.er1
  3249. cat conftest.err >&5
  3250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3251. (exit $ac_status); } && {
  3252. test -z "$ac_c_werror_flag" ||
  3253. test ! -s conftest.err
  3254. } && test -s conftest.$ac_objext; then
  3255. ac_cv_prog_cc_g=yes
  3256. else
  3257. echo "$as_me: failed program was:" >&5
  3258. sed 's/^/| /' conftest.$ac_ext >&5
  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. fi
  3264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3265. ac_c_werror_flag=$ac_save_c_werror_flag
  3266. fi
  3267. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3268. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3269. if test "$ac_test_CFLAGS" = set; then
  3270. CFLAGS=$ac_save_CFLAGS
  3271. elif test $ac_cv_prog_cc_g = yes; then
  3272. if test "$GCC" = yes; then
  3273. CFLAGS="-g -O2"
  3274. else
  3275. CFLAGS="-g"
  3276. fi
  3277. else
  3278. if test "$GCC" = yes; then
  3279. CFLAGS="-O2"
  3280. else
  3281. CFLAGS=
  3282. fi
  3283. fi
  3284. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3285. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3286. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3287. echo $ECHO_N "(cached) $ECHO_C" >&6
  3288. else
  3289. ac_cv_prog_cc_c89=no
  3290. ac_save_CC=$CC
  3291. cat >conftest.$ac_ext <<_ACEOF
  3292. /* confdefs.h. */
  3293. _ACEOF
  3294. cat confdefs.h >>conftest.$ac_ext
  3295. cat >>conftest.$ac_ext <<_ACEOF
  3296. /* end confdefs.h. */
  3297. #include <stdarg.h>
  3298. #include <stdio.h>
  3299. #include <sys/types.h>
  3300. #include <sys/stat.h>
  3301. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3302. struct buf { int x; };
  3303. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3304. static char *e (p, i)
  3305. char **p;
  3306. int i;
  3307. {
  3308. return p[i];
  3309. }
  3310. static char *f (char * (*g) (char **, int), char **p, ...)
  3311. {
  3312. char *s;
  3313. va_list v;
  3314. va_start (v,p);
  3315. s = g (p, va_arg (v,int));
  3316. va_end (v);
  3317. return s;
  3318. }
  3319. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3320. function prototypes and stuff, but not '\xHH' hex character constants.
  3321. These don't provoke an error unfortunately, instead are silently treated
  3322. as 'x'. The following induces an error, until -std is added to get
  3323. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3324. array size at least. It's necessary to write '\x00'==0 to get something
  3325. that's true only with -std. */
  3326. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3327. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3328. inside strings and character constants. */
  3329. #define FOO(x) 'x'
  3330. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3331. int test (int i, double x);
  3332. struct s1 {int (*f) (int a);};
  3333. struct s2 {int (*f) (double a);};
  3334. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3335. int argc;
  3336. char **argv;
  3337. int
  3338. main ()
  3339. {
  3340. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3346. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3347. do
  3348. CC="$ac_save_CC $ac_arg"
  3349. rm -f conftest.$ac_objext
  3350. if { (ac_try="$ac_compile"
  3351. case "(($ac_try" in
  3352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3353. *) ac_try_echo=$ac_try;;
  3354. esac
  3355. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3356. (eval "$ac_compile") 2>conftest.er1
  3357. ac_status=$?
  3358. grep -v '^ *+' conftest.er1 >conftest.err
  3359. rm -f conftest.er1
  3360. cat conftest.err >&5
  3361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3362. (exit $ac_status); } && {
  3363. test -z "$ac_c_werror_flag" ||
  3364. test ! -s conftest.err
  3365. } && test -s conftest.$ac_objext; then
  3366. ac_cv_prog_cc_c89=$ac_arg
  3367. else
  3368. echo "$as_me: failed program was:" >&5
  3369. sed 's/^/| /' conftest.$ac_ext >&5
  3370. fi
  3371. rm -f core conftest.err conftest.$ac_objext
  3372. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3373. done
  3374. rm -f conftest.$ac_ext
  3375. CC=$ac_save_CC
  3376. fi
  3377. # AC_CACHE_VAL
  3378. case "x$ac_cv_prog_cc_c89" in
  3379. x)
  3380. { echo "$as_me:$LINENO: result: none needed" >&5
  3381. echo "${ECHO_T}none needed" >&6; } ;;
  3382. xno)
  3383. { echo "$as_me:$LINENO: result: unsupported" >&5
  3384. echo "${ECHO_T}unsupported" >&6; } ;;
  3385. *)
  3386. CC="$CC $ac_cv_prog_cc_c89"
  3387. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3388. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3389. esac
  3390. ac_ext=c
  3391. ac_cpp='$CPP $CPPFLAGS'
  3392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3395. depcc="$CC" am_compiler_list=
  3396. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3397. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3398. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3399. echo $ECHO_N "(cached) $ECHO_C" >&6
  3400. else
  3401. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3402. # We make a subdir and do the tests there. Otherwise we can end up
  3403. # making bogus files that we don't know about and never remove. For
  3404. # instance it was reported that on HP-UX the gcc test will end up
  3405. # making a dummy file named `D' -- because `-MD' means `put the output
  3406. # in D'.
  3407. mkdir conftest.dir
  3408. # Copy depcomp to subdir because otherwise we won't find it if we're
  3409. # using a relative directory.
  3410. cp "$am_depcomp" conftest.dir
  3411. cd conftest.dir
  3412. # We will build objects and dependencies in a subdirectory because
  3413. # it helps to detect inapplicable dependency modes. For instance
  3414. # both Tru64's cc and ICC support -MD to output dependencies as a
  3415. # side effect of compilation, but ICC will put the dependencies in
  3416. # the current directory while Tru64 will put them in the object
  3417. # directory.
  3418. mkdir sub
  3419. am_cv_CC_dependencies_compiler_type=none
  3420. if test "$am_compiler_list" = ""; then
  3421. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3422. fi
  3423. for depmode in $am_compiler_list; do
  3424. # Setup a source with many dependencies, because some compilers
  3425. # like to wrap large dependency lists on column 80 (with \), and
  3426. # we should not choose a depcomp mode which is confused by this.
  3427. #
  3428. # We need to recreate these files for each test, as the compiler may
  3429. # overwrite some of them when testing with obscure command lines.
  3430. # This happens at least with the AIX C compiler.
  3431. : > sub/conftest.c
  3432. for i in 1 2 3 4 5 6; do
  3433. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3434. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3435. # Solaris 8's {/usr,}/bin/sh.
  3436. touch sub/conftst$i.h
  3437. done
  3438. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3439. case $depmode in
  3440. nosideeffect)
  3441. # after this tag, mechanisms are not by side-effect, so they'll
  3442. # only be used when explicitly requested
  3443. if test "x$enable_dependency_tracking" = xyes; then
  3444. continue
  3445. else
  3446. break
  3447. fi
  3448. ;;
  3449. none) break ;;
  3450. esac
  3451. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3452. # mode. It turns out that the SunPro C++ compiler does not properly
  3453. # handle `-M -o', and we need to detect this.
  3454. if depmode=$depmode \
  3455. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3456. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3457. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3458. >/dev/null 2>conftest.err &&
  3459. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3460. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3461. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3462. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3463. # icc doesn't choke on unknown options, it will just issue warnings
  3464. # or remarks (even with -Werror). So we grep stderr for any message
  3465. # that says an option was ignored or not supported.
  3466. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3467. # icc: Command line warning: ignoring option '-M'; no argument required
  3468. # The diagnosis changed in icc 8.0:
  3469. # icc: Command line remark: option '-MP' not supported
  3470. if (grep 'ignoring option' conftest.err ||
  3471. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3472. am_cv_CC_dependencies_compiler_type=$depmode
  3473. break
  3474. fi
  3475. fi
  3476. done
  3477. cd ..
  3478. rm -rf conftest.dir
  3479. else
  3480. am_cv_CC_dependencies_compiler_type=none
  3481. fi
  3482. fi
  3483. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3484. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3485. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3486. if
  3487. test "x$enable_dependency_tracking" != xno \
  3488. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3489. am__fastdepCC_TRUE=
  3490. am__fastdepCC_FALSE='#'
  3491. else
  3492. am__fastdepCC_TRUE='#'
  3493. am__fastdepCC_FALSE=
  3494. fi
  3495. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3496. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3497. if test "${lt_cv_path_SED+set}" = set; then
  3498. echo $ECHO_N "(cached) $ECHO_C" >&6
  3499. else
  3500. # Loop through the user's path and test for sed and gsed.
  3501. # Then use that list of sed's as ones to test for truncation.
  3502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3503. for as_dir in $PATH
  3504. do
  3505. IFS=$as_save_IFS
  3506. test -z "$as_dir" && as_dir=.
  3507. for lt_ac_prog in sed gsed; do
  3508. for ac_exec_ext in '' $ac_executable_extensions; do
  3509. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3510. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3511. fi
  3512. done
  3513. done
  3514. done
  3515. lt_ac_max=0
  3516. lt_ac_count=0
  3517. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3518. # along with /bin/sed that truncates output.
  3519. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3520. test ! -f $lt_ac_sed && continue
  3521. cat /dev/null > conftest.in
  3522. lt_ac_count=0
  3523. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3524. # Check for GNU sed and select it if it is found.
  3525. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3526. lt_cv_path_SED=$lt_ac_sed
  3527. break
  3528. fi
  3529. while true; do
  3530. cat conftest.in conftest.in >conftest.tmp
  3531. mv conftest.tmp conftest.in
  3532. cp conftest.in conftest.nl
  3533. echo >>conftest.nl
  3534. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3535. cmp -s conftest.out conftest.nl || break
  3536. # 10000 chars as input seems more than enough
  3537. test $lt_ac_count -gt 10 && break
  3538. lt_ac_count=`expr $lt_ac_count + 1`
  3539. if test $lt_ac_count -gt $lt_ac_max; then
  3540. lt_ac_max=$lt_ac_count
  3541. lt_cv_path_SED=$lt_ac_sed
  3542. fi
  3543. done
  3544. done
  3545. fi
  3546. SED=$lt_cv_path_SED
  3547. { echo "$as_me:$LINENO: result: $SED" >&5
  3548. echo "${ECHO_T}$SED" >&6; }
  3549. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3550. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3551. if test "${ac_cv_path_GREP+set}" = set; then
  3552. echo $ECHO_N "(cached) $ECHO_C" >&6
  3553. else
  3554. # Extract the first word of "grep ggrep" to use in msg output
  3555. if test -z "$GREP"; then
  3556. set dummy grep ggrep; ac_prog_name=$2
  3557. if test "${ac_cv_path_GREP+set}" = set; then
  3558. echo $ECHO_N "(cached) $ECHO_C" >&6
  3559. else
  3560. ac_path_GREP_found=false
  3561. # Loop through the user's path and test for each of PROGNAME-LIST
  3562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3563. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3564. do
  3565. IFS=$as_save_IFS
  3566. test -z "$as_dir" && as_dir=.
  3567. for ac_prog in grep ggrep; do
  3568. for ac_exec_ext in '' $ac_executable_extensions; do
  3569. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3570. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3571. # Check for GNU ac_path_GREP and select it if it is found.
  3572. # Check for GNU $ac_path_GREP
  3573. case `"$ac_path_GREP" --version 2>&1` in
  3574. *GNU*)
  3575. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3576. *)
  3577. ac_count=0
  3578. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3579. while :
  3580. do
  3581. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3582. mv "conftest.tmp" "conftest.in"
  3583. cp "conftest.in" "conftest.nl"
  3584. echo 'GREP' >> "conftest.nl"
  3585. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3586. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3587. ac_count=`expr $ac_count + 1`
  3588. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3589. # Best one so far, save it but keep looking for a better one
  3590. ac_cv_path_GREP="$ac_path_GREP"
  3591. ac_path_GREP_max=$ac_count
  3592. fi
  3593. # 10*(2^10) chars as input seems more than enough
  3594. test $ac_count -gt 10 && break
  3595. done
  3596. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3597. esac
  3598. $ac_path_GREP_found && break 3
  3599. done
  3600. done
  3601. done
  3602. IFS=$as_save_IFS
  3603. fi
  3604. GREP="$ac_cv_path_GREP"
  3605. if test -z "$GREP"; then
  3606. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3607. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3608. { (exit 1); exit 1; }; }
  3609. fi
  3610. else
  3611. ac_cv_path_GREP=$GREP
  3612. fi
  3613. fi
  3614. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3615. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3616. GREP="$ac_cv_path_GREP"
  3617. { echo "$as_me:$LINENO: checking for egrep" >&5
  3618. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3619. if test "${ac_cv_path_EGREP+set}" = set; then
  3620. echo $ECHO_N "(cached) $ECHO_C" >&6
  3621. else
  3622. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3623. then ac_cv_path_EGREP="$GREP -E"
  3624. else
  3625. # Extract the first word of "egrep" to use in msg output
  3626. if test -z "$EGREP"; then
  3627. set dummy egrep; ac_prog_name=$2
  3628. if test "${ac_cv_path_EGREP+set}" = set; then
  3629. echo $ECHO_N "(cached) $ECHO_C" >&6
  3630. else
  3631. ac_path_EGREP_found=false
  3632. # Loop through the user's path and test for each of PROGNAME-LIST
  3633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3634. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3635. do
  3636. IFS=$as_save_IFS
  3637. test -z "$as_dir" && as_dir=.
  3638. for ac_prog in egrep; do
  3639. for ac_exec_ext in '' $ac_executable_extensions; do
  3640. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3641. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3642. # Check for GNU ac_path_EGREP and select it if it is found.
  3643. # Check for GNU $ac_path_EGREP
  3644. case `"$ac_path_EGREP" --version 2>&1` in
  3645. *GNU*)
  3646. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3647. *)
  3648. ac_count=0
  3649. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3650. while :
  3651. do
  3652. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3653. mv "conftest.tmp" "conftest.in"
  3654. cp "conftest.in" "conftest.nl"
  3655. echo 'EGREP' >> "conftest.nl"
  3656. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3657. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3658. ac_count=`expr $ac_count + 1`
  3659. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3660. # Best one so far, save it but keep looking for a better one
  3661. ac_cv_path_EGREP="$ac_path_EGREP"
  3662. ac_path_EGREP_max=$ac_count
  3663. fi
  3664. # 10*(2^10) chars as input seems more than enough
  3665. test $ac_count -gt 10 && break
  3666. done
  3667. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3668. esac
  3669. $ac_path_EGREP_found && break 3
  3670. done
  3671. done
  3672. done
  3673. IFS=$as_save_IFS
  3674. fi
  3675. EGREP="$ac_cv_path_EGREP"
  3676. if test -z "$EGREP"; then
  3677. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3678. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3679. { (exit 1); exit 1; }; }
  3680. fi
  3681. else
  3682. ac_cv_path_EGREP=$EGREP
  3683. fi
  3684. fi
  3685. fi
  3686. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3687. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3688. EGREP="$ac_cv_path_EGREP"
  3689. # Check whether --with-gnu-ld was given.
  3690. if test "${with_gnu_ld+set}" = set; then
  3691. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3692. else
  3693. with_gnu_ld=no
  3694. fi
  3695. ac_prog=ld
  3696. if test "$GCC" = yes; then
  3697. # Check if gcc -print-prog-name=ld gives a path.
  3698. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3699. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3700. case $host in
  3701. *-*-mingw*)
  3702. # gcc leaves a trailing carriage return which upsets mingw
  3703. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3704. *)
  3705. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3706. esac
  3707. case $ac_prog in
  3708. # Accept absolute paths.
  3709. [\\/]* | ?:[\\/]*)
  3710. re_direlt='/[^/][^/]*/\.\./'
  3711. # Canonicalize the pathname of ld
  3712. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3713. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3714. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3715. done
  3716. test -z "$LD" && LD="$ac_prog"
  3717. ;;
  3718. "")
  3719. # If it fails, then pretend we aren't using GCC.
  3720. ac_prog=ld
  3721. ;;
  3722. *)
  3723. # If it is relative, then search for the first ld in PATH.
  3724. with_gnu_ld=unknown
  3725. ;;
  3726. esac
  3727. elif test "$with_gnu_ld" = yes; then
  3728. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3729. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3730. else
  3731. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3732. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3733. fi
  3734. if test "${lt_cv_path_LD+set}" = set; then
  3735. echo $ECHO_N "(cached) $ECHO_C" >&6
  3736. else
  3737. if test -z "$LD"; then
  3738. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3739. for ac_dir in $PATH; do
  3740. IFS="$lt_save_ifs"
  3741. test -z "$ac_dir" && ac_dir=.
  3742. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3743. lt_cv_path_LD="$ac_dir/$ac_prog"
  3744. # Check to see if the program is GNU ld. I'd rather use --version,
  3745. # but apparently some variants of GNU ld only accept -v.
  3746. # Break only if it was the GNU/non-GNU ld that we prefer.
  3747. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3748. *GNU* | *'with BFD'*)
  3749. test "$with_gnu_ld" != no && break
  3750. ;;
  3751. *)
  3752. test "$with_gnu_ld" != yes && break
  3753. ;;
  3754. esac
  3755. fi
  3756. done
  3757. IFS="$lt_save_ifs"
  3758. else
  3759. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3760. fi
  3761. fi
  3762. LD="$lt_cv_path_LD"
  3763. if test -n "$LD"; then
  3764. { echo "$as_me:$LINENO: result: $LD" >&5
  3765. echo "${ECHO_T}$LD" >&6; }
  3766. else
  3767. { echo "$as_me:$LINENO: result: no" >&5
  3768. echo "${ECHO_T}no" >&6; }
  3769. fi
  3770. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3771. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3772. { (exit 1); exit 1; }; }
  3773. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3774. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3775. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3776. echo $ECHO_N "(cached) $ECHO_C" >&6
  3777. else
  3778. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3779. case `$LD -v 2>&1 </dev/null` in
  3780. *GNU* | *'with BFD'*)
  3781. lt_cv_prog_gnu_ld=yes
  3782. ;;
  3783. *)
  3784. lt_cv_prog_gnu_ld=no
  3785. ;;
  3786. esac
  3787. fi
  3788. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3789. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3790. with_gnu_ld=$lt_cv_prog_gnu_ld
  3791. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3792. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3793. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3794. echo $ECHO_N "(cached) $ECHO_C" >&6
  3795. else
  3796. lt_cv_ld_reload_flag='-r'
  3797. fi
  3798. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3799. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3800. reload_flag=$lt_cv_ld_reload_flag
  3801. case $reload_flag in
  3802. "" | " "*) ;;
  3803. *) reload_flag=" $reload_flag" ;;
  3804. esac
  3805. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3806. case $host_os in
  3807. darwin*)
  3808. if test "$GCC" = yes; then
  3809. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3810. else
  3811. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3812. fi
  3813. ;;
  3814. esac
  3815. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3816. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3817. if test "${lt_cv_path_NM+set}" = set; then
  3818. echo $ECHO_N "(cached) $ECHO_C" >&6
  3819. else
  3820. if test -n "$NM"; then
  3821. # Let the user override the test.
  3822. lt_cv_path_NM="$NM"
  3823. else
  3824. lt_nm_to_check="${ac_tool_prefix}nm"
  3825. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3826. lt_nm_to_check="$lt_nm_to_check nm"
  3827. fi
  3828. for lt_tmp_nm in $lt_nm_to_check; do
  3829. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3830. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3831. IFS="$lt_save_ifs"
  3832. test -z "$ac_dir" && ac_dir=.
  3833. tmp_nm="$ac_dir/$lt_tmp_nm"
  3834. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3835. # Check to see if the nm accepts a BSD-compat flag.
  3836. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3837. # nm: unknown option "B" ignored
  3838. # Tru64's nm complains that /dev/null is an invalid object file
  3839. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3840. */dev/null* | *'Invalid file or object type'*)
  3841. lt_cv_path_NM="$tmp_nm -B"
  3842. break
  3843. ;;
  3844. *)
  3845. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3846. */dev/null*)
  3847. lt_cv_path_NM="$tmp_nm -p"
  3848. break
  3849. ;;
  3850. *)
  3851. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3852. continue # so that we can try to find one that supports BSD flags
  3853. ;;
  3854. esac
  3855. ;;
  3856. esac
  3857. fi
  3858. done
  3859. IFS="$lt_save_ifs"
  3860. done
  3861. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3862. fi
  3863. fi
  3864. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3865. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3866. NM="$lt_cv_path_NM"
  3867. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3868. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3869. LN_S=$as_ln_s
  3870. if test "$LN_S" = "ln -s"; then
  3871. { echo "$as_me:$LINENO: result: yes" >&5
  3872. echo "${ECHO_T}yes" >&6; }
  3873. else
  3874. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3875. echo "${ECHO_T}no, using $LN_S" >&6; }
  3876. fi
  3877. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3878. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  3879. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3880. echo $ECHO_N "(cached) $ECHO_C" >&6
  3881. else
  3882. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3883. lt_cv_file_magic_test_file=
  3884. lt_cv_deplibs_check_method='unknown'
  3885. # Need to set the preceding variable on all platforms that support
  3886. # interlibrary dependencies.
  3887. # 'none' -- dependencies not supported.
  3888. # `unknown' -- same as none, but documents that we really don't know.
  3889. # 'pass_all' -- all dependencies passed with no checks.
  3890. # 'test_compile' -- check by making test program.
  3891. # 'file_magic [[regex]]' -- check by looking for files in library path
  3892. # which responds to the $file_magic_cmd with a given extended regex.
  3893. # If you have `file' or equivalent on your system and you're not sure
  3894. # whether `pass_all' will *always* work, you probably want this one.
  3895. case $host_os in
  3896. aix4* | aix5*)
  3897. lt_cv_deplibs_check_method=pass_all
  3898. ;;
  3899. beos*)
  3900. lt_cv_deplibs_check_method=pass_all
  3901. ;;
  3902. bsdi[45]*)
  3903. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3904. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3905. lt_cv_file_magic_test_file=/shlib/libc.so
  3906. ;;
  3907. cygwin*)
  3908. # func_win32_libid is a shell function defined in ltmain.sh
  3909. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3910. lt_cv_file_magic_cmd='func_win32_libid'
  3911. ;;
  3912. mingw* | pw32*)
  3913. # Base MSYS/MinGW do not provide the 'file' command needed by
  3914. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3915. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3916. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3917. ;;
  3918. darwin* | rhapsody*)
  3919. lt_cv_deplibs_check_method=pass_all
  3920. ;;
  3921. freebsd* | kfreebsd*-gnu | dragonfly*)
  3922. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3923. case $host_cpu in
  3924. i*86 )
  3925. # Not sure whether the presence of OpenBSD here was a mistake.
  3926. # Let's accept both of them until this is cleared up.
  3927. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3928. lt_cv_file_magic_cmd=/usr/bin/file
  3929. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3930. ;;
  3931. esac
  3932. else
  3933. lt_cv_deplibs_check_method=pass_all
  3934. fi
  3935. ;;
  3936. gnu*)
  3937. lt_cv_deplibs_check_method=pass_all
  3938. ;;
  3939. hpux10.20* | hpux11*)
  3940. lt_cv_file_magic_cmd=/usr/bin/file
  3941. case $host_cpu in
  3942. ia64*)
  3943. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3944. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3945. ;;
  3946. hppa*64*)
  3947. 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]'
  3948. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3949. ;;
  3950. *)
  3951. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3952. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3953. ;;
  3954. esac
  3955. ;;
  3956. interix3*)
  3957. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3958. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3959. ;;
  3960. irix5* | irix6* | nonstopux*)
  3961. case $LD in
  3962. *-32|*"-32 ") libmagic=32-bit;;
  3963. *-n32|*"-n32 ") libmagic=N32;;
  3964. *-64|*"-64 ") libmagic=64-bit;;
  3965. *) libmagic=never-match;;
  3966. esac
  3967. lt_cv_deplibs_check_method=pass_all
  3968. ;;
  3969. # This must be Linux ELF.
  3970. linux*)
  3971. lt_cv_deplibs_check_method=pass_all
  3972. ;;
  3973. netbsd*)
  3974. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3975. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3976. else
  3977. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3978. fi
  3979. ;;
  3980. newos6*)
  3981. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3982. lt_cv_file_magic_cmd=/usr/bin/file
  3983. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3984. ;;
  3985. nto-qnx*)
  3986. lt_cv_deplibs_check_method=unknown
  3987. ;;
  3988. openbsd*)
  3989. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3990. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3991. else
  3992. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3993. fi
  3994. ;;
  3995. osf3* | osf4* | osf5*)
  3996. lt_cv_deplibs_check_method=pass_all
  3997. ;;
  3998. solaris*)
  3999. lt_cv_deplibs_check_method=pass_all
  4000. ;;
  4001. sysv4 | sysv4.3*)
  4002. case $host_vendor in
  4003. motorola)
  4004. 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]'
  4005. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4006. ;;
  4007. ncr)
  4008. lt_cv_deplibs_check_method=pass_all
  4009. ;;
  4010. sequent)
  4011. lt_cv_file_magic_cmd='/bin/file'
  4012. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4013. ;;
  4014. sni)
  4015. lt_cv_file_magic_cmd='/bin/file'
  4016. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4017. lt_cv_file_magic_test_file=/lib/libc.so
  4018. ;;
  4019. siemens)
  4020. lt_cv_deplibs_check_method=pass_all
  4021. ;;
  4022. pc)
  4023. lt_cv_deplibs_check_method=pass_all
  4024. ;;
  4025. esac
  4026. ;;
  4027. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4028. lt_cv_deplibs_check_method=pass_all
  4029. ;;
  4030. esac
  4031. fi
  4032. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4033. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4034. file_magic_cmd=$lt_cv_file_magic_cmd
  4035. deplibs_check_method=$lt_cv_deplibs_check_method
  4036. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4037. # If no C compiler was specified, use CC.
  4038. LTCC=${LTCC-"$CC"}
  4039. # If no C compiler flags were specified, use CFLAGS.
  4040. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4041. # Allow CC to be a program name with arguments.
  4042. compiler=$CC
  4043. # Check whether --enable-libtool-lock was given.
  4044. if test "${enable_libtool_lock+set}" = set; then
  4045. enableval=$enable_libtool_lock;
  4046. fi
  4047. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4048. # Some flags need to be propagated to the compiler or linker for good
  4049. # libtool support.
  4050. case $host in
  4051. ia64-*-hpux*)
  4052. # Find out which ABI we are using.
  4053. echo 'int i;' > conftest.$ac_ext
  4054. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4055. (eval $ac_compile) 2>&5
  4056. ac_status=$?
  4057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4058. (exit $ac_status); }; then
  4059. case `/usr/bin/file conftest.$ac_objext` in
  4060. *ELF-32*)
  4061. HPUX_IA64_MODE="32"
  4062. ;;
  4063. *ELF-64*)
  4064. HPUX_IA64_MODE="64"
  4065. ;;
  4066. esac
  4067. fi
  4068. rm -rf conftest*
  4069. ;;
  4070. *-*-irix6*)
  4071. # Find out which ABI we are using.
  4072. echo '#line 4577 "configure"' > conftest.$ac_ext
  4073. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4074. (eval $ac_compile) 2>&5
  4075. ac_status=$?
  4076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4077. (exit $ac_status); }; then
  4078. if test "$lt_cv_prog_gnu_ld" = yes; then
  4079. case `/usr/bin/file conftest.$ac_objext` in
  4080. *32-bit*)
  4081. LD="${LD-ld} -melf32bsmip"
  4082. ;;
  4083. *N32*)
  4084. LD="${LD-ld} -melf32bmipn32"
  4085. ;;
  4086. *64-bit*)
  4087. LD="${LD-ld} -melf64bmip"
  4088. ;;
  4089. esac
  4090. else
  4091. case `/usr/bin/file conftest.$ac_objext` in
  4092. *32-bit*)
  4093. LD="${LD-ld} -32"
  4094. ;;
  4095. *N32*)
  4096. LD="${LD-ld} -n32"
  4097. ;;
  4098. *64-bit*)
  4099. LD="${LD-ld} -64"
  4100. ;;
  4101. esac
  4102. fi
  4103. fi
  4104. rm -rf conftest*
  4105. ;;
  4106. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4107. # Find out which ABI we are using.
  4108. echo 'int i;' > conftest.$ac_ext
  4109. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4110. (eval $ac_compile) 2>&5
  4111. ac_status=$?
  4112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4113. (exit $ac_status); }; then
  4114. case `/usr/bin/file conftest.o` in
  4115. *32-bit*)
  4116. case $host in
  4117. x86_64-*linux*)
  4118. LD="${LD-ld} -m elf_i386"
  4119. ;;
  4120. ppc64-*linux*|powerpc64-*linux*)
  4121. LD="${LD-ld} -m elf32ppclinux"
  4122. ;;
  4123. s390x-*linux*)
  4124. LD="${LD-ld} -m elf_s390"
  4125. ;;
  4126. sparc64-*linux*)
  4127. LD="${LD-ld} -m elf32_sparc"
  4128. ;;
  4129. esac
  4130. ;;
  4131. *64-bit*)
  4132. case $host in
  4133. x86_64-*linux*)
  4134. LD="${LD-ld} -m elf_x86_64"
  4135. ;;
  4136. ppc*-*linux*|powerpc*-*linux*)
  4137. LD="${LD-ld} -m elf64ppc"
  4138. ;;
  4139. s390*-*linux*)
  4140. LD="${LD-ld} -m elf64_s390"
  4141. ;;
  4142. sparc*-*linux*)
  4143. LD="${LD-ld} -m elf64_sparc"
  4144. ;;
  4145. esac
  4146. ;;
  4147. esac
  4148. fi
  4149. rm -rf conftest*
  4150. ;;
  4151. *-*-sco3.2v5*)
  4152. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4153. SAVE_CFLAGS="$CFLAGS"
  4154. CFLAGS="$CFLAGS -belf"
  4155. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4156. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4157. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4158. echo $ECHO_N "(cached) $ECHO_C" >&6
  4159. else
  4160. ac_ext=c
  4161. ac_cpp='$CPP $CPPFLAGS'
  4162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4165. cat >conftest.$ac_ext <<_ACEOF
  4166. /* confdefs.h. */
  4167. _ACEOF
  4168. cat confdefs.h >>conftest.$ac_ext
  4169. cat >>conftest.$ac_ext <<_ACEOF
  4170. /* end confdefs.h. */
  4171. int
  4172. main ()
  4173. {
  4174. ;
  4175. return 0;
  4176. }
  4177. _ACEOF
  4178. rm -f conftest.$ac_objext conftest$ac_exeext
  4179. if { (ac_try="$ac_link"
  4180. case "(($ac_try" in
  4181. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4182. *) ac_try_echo=$ac_try;;
  4183. esac
  4184. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4185. (eval "$ac_link") 2>conftest.er1
  4186. ac_status=$?
  4187. grep -v '^ *+' conftest.er1 >conftest.err
  4188. rm -f conftest.er1
  4189. cat conftest.err >&5
  4190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4191. (exit $ac_status); } && {
  4192. test -z "$ac_c_werror_flag" ||
  4193. test ! -s conftest.err
  4194. } && test -s conftest$ac_exeext &&
  4195. $as_test_x conftest$ac_exeext; then
  4196. lt_cv_cc_needs_belf=yes
  4197. else
  4198. echo "$as_me: failed program was:" >&5
  4199. sed 's/^/| /' conftest.$ac_ext >&5
  4200. lt_cv_cc_needs_belf=no
  4201. fi
  4202. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4203. conftest$ac_exeext conftest.$ac_ext
  4204. ac_ext=c
  4205. ac_cpp='$CPP $CPPFLAGS'
  4206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4209. fi
  4210. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4211. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4212. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4213. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4214. CFLAGS="$SAVE_CFLAGS"
  4215. fi
  4216. ;;
  4217. sparc*-*solaris*)
  4218. # Find out which ABI we are using.
  4219. echo 'int i;' > conftest.$ac_ext
  4220. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4221. (eval $ac_compile) 2>&5
  4222. ac_status=$?
  4223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4224. (exit $ac_status); }; then
  4225. case `/usr/bin/file conftest.o` in
  4226. *64-bit*)
  4227. case $lt_cv_prog_gnu_ld in
  4228. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4229. *) LD="${LD-ld} -64" ;;
  4230. esac
  4231. ;;
  4232. esac
  4233. fi
  4234. rm -rf conftest*
  4235. ;;
  4236. esac
  4237. need_locks="$enable_libtool_lock"
  4238. ac_ext=c
  4239. ac_cpp='$CPP $CPPFLAGS'
  4240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4243. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4244. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4245. # On Suns, sometimes $CPP names a directory.
  4246. if test -n "$CPP" && test -d "$CPP"; then
  4247. CPP=
  4248. fi
  4249. if test -z "$CPP"; then
  4250. if test "${ac_cv_prog_CPP+set}" = set; then
  4251. echo $ECHO_N "(cached) $ECHO_C" >&6
  4252. else
  4253. # Double quotes because CPP needs to be expanded
  4254. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4255. do
  4256. ac_preproc_ok=false
  4257. for ac_c_preproc_warn_flag in '' yes
  4258. do
  4259. # Use a header file that comes with gcc, so configuring glibc
  4260. # with a fresh cross-compiler works.
  4261. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4262. # <limits.h> exists even on freestanding compilers.
  4263. # On the NeXT, cc -E runs the code through the compiler's parser,
  4264. # not just through cpp. "Syntax error" is here to catch this case.
  4265. cat >conftest.$ac_ext <<_ACEOF
  4266. /* confdefs.h. */
  4267. _ACEOF
  4268. cat confdefs.h >>conftest.$ac_ext
  4269. cat >>conftest.$ac_ext <<_ACEOF
  4270. /* end confdefs.h. */
  4271. #ifdef __STDC__
  4272. # include <limits.h>
  4273. #else
  4274. # include <assert.h>
  4275. #endif
  4276. Syntax error
  4277. _ACEOF
  4278. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4279. case "(($ac_try" in
  4280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4281. *) ac_try_echo=$ac_try;;
  4282. esac
  4283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4285. ac_status=$?
  4286. grep -v '^ *+' conftest.er1 >conftest.err
  4287. rm -f conftest.er1
  4288. cat conftest.err >&5
  4289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4290. (exit $ac_status); } >/dev/null && {
  4291. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4292. test ! -s conftest.err
  4293. }; then
  4294. :
  4295. else
  4296. echo "$as_me: failed program was:" >&5
  4297. sed 's/^/| /' conftest.$ac_ext >&5
  4298. # Broken: fails on valid input.
  4299. continue
  4300. fi
  4301. rm -f conftest.err conftest.$ac_ext
  4302. # OK, works on sane cases. Now check whether nonexistent headers
  4303. # can be detected and how.
  4304. cat >conftest.$ac_ext <<_ACEOF
  4305. /* confdefs.h. */
  4306. _ACEOF
  4307. cat confdefs.h >>conftest.$ac_ext
  4308. cat >>conftest.$ac_ext <<_ACEOF
  4309. /* end confdefs.h. */
  4310. #include <ac_nonexistent.h>
  4311. _ACEOF
  4312. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4313. case "(($ac_try" in
  4314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4315. *) ac_try_echo=$ac_try;;
  4316. esac
  4317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4318. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4319. ac_status=$?
  4320. grep -v '^ *+' conftest.er1 >conftest.err
  4321. rm -f conftest.er1
  4322. cat conftest.err >&5
  4323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4324. (exit $ac_status); } >/dev/null && {
  4325. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4326. test ! -s conftest.err
  4327. }; then
  4328. # Broken: success on invalid input.
  4329. continue
  4330. else
  4331. echo "$as_me: failed program was:" >&5
  4332. sed 's/^/| /' conftest.$ac_ext >&5
  4333. # Passes both tests.
  4334. ac_preproc_ok=:
  4335. break
  4336. fi
  4337. rm -f conftest.err conftest.$ac_ext
  4338. done
  4339. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4340. rm -f conftest.err conftest.$ac_ext
  4341. if $ac_preproc_ok; then
  4342. break
  4343. fi
  4344. done
  4345. ac_cv_prog_CPP=$CPP
  4346. fi
  4347. CPP=$ac_cv_prog_CPP
  4348. else
  4349. ac_cv_prog_CPP=$CPP
  4350. fi
  4351. { echo "$as_me:$LINENO: result: $CPP" >&5
  4352. echo "${ECHO_T}$CPP" >&6; }
  4353. ac_preproc_ok=false
  4354. for ac_c_preproc_warn_flag in '' yes
  4355. do
  4356. # Use a header file that comes with gcc, so configuring glibc
  4357. # with a fresh cross-compiler works.
  4358. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4359. # <limits.h> exists even on freestanding compilers.
  4360. # On the NeXT, cc -E runs the code through the compiler's parser,
  4361. # not just through cpp. "Syntax error" is here to catch this case.
  4362. cat >conftest.$ac_ext <<_ACEOF
  4363. /* confdefs.h. */
  4364. _ACEOF
  4365. cat confdefs.h >>conftest.$ac_ext
  4366. cat >>conftest.$ac_ext <<_ACEOF
  4367. /* end confdefs.h. */
  4368. #ifdef __STDC__
  4369. # include <limits.h>
  4370. #else
  4371. # include <assert.h>
  4372. #endif
  4373. Syntax error
  4374. _ACEOF
  4375. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4376. case "(($ac_try" in
  4377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4378. *) ac_try_echo=$ac_try;;
  4379. esac
  4380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4381. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4382. ac_status=$?
  4383. grep -v '^ *+' conftest.er1 >conftest.err
  4384. rm -f conftest.er1
  4385. cat conftest.err >&5
  4386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4387. (exit $ac_status); } >/dev/null && {
  4388. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4389. test ! -s conftest.err
  4390. }; then
  4391. :
  4392. else
  4393. echo "$as_me: failed program was:" >&5
  4394. sed 's/^/| /' conftest.$ac_ext >&5
  4395. # Broken: fails on valid input.
  4396. continue
  4397. fi
  4398. rm -f conftest.err conftest.$ac_ext
  4399. # OK, works on sane cases. Now check whether nonexistent headers
  4400. # can be detected and how.
  4401. cat >conftest.$ac_ext <<_ACEOF
  4402. /* confdefs.h. */
  4403. _ACEOF
  4404. cat confdefs.h >>conftest.$ac_ext
  4405. cat >>conftest.$ac_ext <<_ACEOF
  4406. /* end confdefs.h. */
  4407. #include <ac_nonexistent.h>
  4408. _ACEOF
  4409. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4410. case "(($ac_try" in
  4411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4412. *) ac_try_echo=$ac_try;;
  4413. esac
  4414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4415. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4416. ac_status=$?
  4417. grep -v '^ *+' conftest.er1 >conftest.err
  4418. rm -f conftest.er1
  4419. cat conftest.err >&5
  4420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4421. (exit $ac_status); } >/dev/null && {
  4422. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4423. test ! -s conftest.err
  4424. }; then
  4425. # Broken: success on invalid input.
  4426. continue
  4427. else
  4428. echo "$as_me: failed program was:" >&5
  4429. sed 's/^/| /' conftest.$ac_ext >&5
  4430. # Passes both tests.
  4431. ac_preproc_ok=:
  4432. break
  4433. fi
  4434. rm -f conftest.err conftest.$ac_ext
  4435. done
  4436. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4437. rm -f conftest.err conftest.$ac_ext
  4438. if $ac_preproc_ok; then
  4439. :
  4440. else
  4441. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4442. See \`config.log' for more details." >&5
  4443. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4444. See \`config.log' for more details." >&2;}
  4445. { (exit 1); exit 1; }; }
  4446. fi
  4447. ac_ext=c
  4448. ac_cpp='$CPP $CPPFLAGS'
  4449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4452. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4453. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4454. if test "${ac_cv_header_stdc+set}" = set; then
  4455. echo $ECHO_N "(cached) $ECHO_C" >&6
  4456. else
  4457. cat >conftest.$ac_ext <<_ACEOF
  4458. /* confdefs.h. */
  4459. _ACEOF
  4460. cat confdefs.h >>conftest.$ac_ext
  4461. cat >>conftest.$ac_ext <<_ACEOF
  4462. /* end confdefs.h. */
  4463. #include <stdlib.h>
  4464. #include <stdarg.h>
  4465. #include <string.h>
  4466. #include <float.h>
  4467. int
  4468. main ()
  4469. {
  4470. ;
  4471. return 0;
  4472. }
  4473. _ACEOF
  4474. rm -f conftest.$ac_objext
  4475. if { (ac_try="$ac_compile"
  4476. case "(($ac_try" in
  4477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4478. *) ac_try_echo=$ac_try;;
  4479. esac
  4480. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4481. (eval "$ac_compile") 2>conftest.er1
  4482. ac_status=$?
  4483. grep -v '^ *+' conftest.er1 >conftest.err
  4484. rm -f conftest.er1
  4485. cat conftest.err >&5
  4486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4487. (exit $ac_status); } && {
  4488. test -z "$ac_c_werror_flag" ||
  4489. test ! -s conftest.err
  4490. } && test -s conftest.$ac_objext; then
  4491. ac_cv_header_stdc=yes
  4492. else
  4493. echo "$as_me: failed program was:" >&5
  4494. sed 's/^/| /' conftest.$ac_ext >&5
  4495. ac_cv_header_stdc=no
  4496. fi
  4497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4498. if test $ac_cv_header_stdc = yes; then
  4499. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4500. cat >conftest.$ac_ext <<_ACEOF
  4501. /* confdefs.h. */
  4502. _ACEOF
  4503. cat confdefs.h >>conftest.$ac_ext
  4504. cat >>conftest.$ac_ext <<_ACEOF
  4505. /* end confdefs.h. */
  4506. #include <string.h>
  4507. _ACEOF
  4508. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4509. $EGREP "memchr" >/dev/null 2>&1; then
  4510. :
  4511. else
  4512. ac_cv_header_stdc=no
  4513. fi
  4514. rm -f conftest*
  4515. fi
  4516. if test $ac_cv_header_stdc = yes; then
  4517. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4518. cat >conftest.$ac_ext <<_ACEOF
  4519. /* confdefs.h. */
  4520. _ACEOF
  4521. cat confdefs.h >>conftest.$ac_ext
  4522. cat >>conftest.$ac_ext <<_ACEOF
  4523. /* end confdefs.h. */
  4524. #include <stdlib.h>
  4525. _ACEOF
  4526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4527. $EGREP "free" >/dev/null 2>&1; then
  4528. :
  4529. else
  4530. ac_cv_header_stdc=no
  4531. fi
  4532. rm -f conftest*
  4533. fi
  4534. if test $ac_cv_header_stdc = yes; then
  4535. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4536. if test "$cross_compiling" = yes; then
  4537. :
  4538. else
  4539. cat >conftest.$ac_ext <<_ACEOF
  4540. /* confdefs.h. */
  4541. _ACEOF
  4542. cat confdefs.h >>conftest.$ac_ext
  4543. cat >>conftest.$ac_ext <<_ACEOF
  4544. /* end confdefs.h. */
  4545. #include <ctype.h>
  4546. #include <stdlib.h>
  4547. #if ((' ' & 0x0FF) == 0x020)
  4548. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4549. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4550. #else
  4551. # define ISLOWER(c) \
  4552. (('a' <= (c) && (c) <= 'i') \
  4553. || ('j' <= (c) && (c) <= 'r') \
  4554. || ('s' <= (c) && (c) <= 'z'))
  4555. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4556. #endif
  4557. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4558. int
  4559. main ()
  4560. {
  4561. int i;
  4562. for (i = 0; i < 256; i++)
  4563. if (XOR (islower (i), ISLOWER (i))
  4564. || toupper (i) != TOUPPER (i))
  4565. return 2;
  4566. return 0;
  4567. }
  4568. _ACEOF
  4569. rm -f conftest$ac_exeext
  4570. if { (ac_try="$ac_link"
  4571. case "(($ac_try" in
  4572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4573. *) ac_try_echo=$ac_try;;
  4574. esac
  4575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4576. (eval "$ac_link") 2>&5
  4577. ac_status=$?
  4578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4579. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4580. { (case "(($ac_try" in
  4581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4582. *) ac_try_echo=$ac_try;;
  4583. esac
  4584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4585. (eval "$ac_try") 2>&5
  4586. ac_status=$?
  4587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4588. (exit $ac_status); }; }; then
  4589. :
  4590. else
  4591. echo "$as_me: program exited with status $ac_status" >&5
  4592. echo "$as_me: failed program was:" >&5
  4593. sed 's/^/| /' conftest.$ac_ext >&5
  4594. ( exit $ac_status )
  4595. ac_cv_header_stdc=no
  4596. fi
  4597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4598. fi
  4599. fi
  4600. fi
  4601. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4602. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4603. if test $ac_cv_header_stdc = yes; then
  4604. cat >>confdefs.h <<\_ACEOF
  4605. #define STDC_HEADERS 1
  4606. _ACEOF
  4607. fi
  4608. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4609. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4610. inttypes.h stdint.h unistd.h
  4611. do
  4612. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4613. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4614. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4615. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4616. echo $ECHO_N "(cached) $ECHO_C" >&6
  4617. else
  4618. cat >conftest.$ac_ext <<_ACEOF
  4619. /* confdefs.h. */
  4620. _ACEOF
  4621. cat confdefs.h >>conftest.$ac_ext
  4622. cat >>conftest.$ac_ext <<_ACEOF
  4623. /* end confdefs.h. */
  4624. $ac_includes_default
  4625. #include <$ac_header>
  4626. _ACEOF
  4627. rm -f conftest.$ac_objext
  4628. if { (ac_try="$ac_compile"
  4629. case "(($ac_try" in
  4630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4631. *) ac_try_echo=$ac_try;;
  4632. esac
  4633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4634. (eval "$ac_compile") 2>conftest.er1
  4635. ac_status=$?
  4636. grep -v '^ *+' conftest.er1 >conftest.err
  4637. rm -f conftest.er1
  4638. cat conftest.err >&5
  4639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4640. (exit $ac_status); } && {
  4641. test -z "$ac_c_werror_flag" ||
  4642. test ! -s conftest.err
  4643. } && test -s conftest.$ac_objext; then
  4644. eval "$as_ac_Header=yes"
  4645. else
  4646. echo "$as_me: failed program was:" >&5
  4647. sed 's/^/| /' conftest.$ac_ext >&5
  4648. eval "$as_ac_Header=no"
  4649. fi
  4650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4651. fi
  4652. ac_res=`eval echo '${'$as_ac_Header'}'`
  4653. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4654. echo "${ECHO_T}$ac_res" >&6; }
  4655. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4656. cat >>confdefs.h <<_ACEOF
  4657. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4658. _ACEOF
  4659. fi
  4660. done
  4661. for ac_header in dlfcn.h
  4662. do
  4663. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4664. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4665. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4666. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4667. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4668. echo $ECHO_N "(cached) $ECHO_C" >&6
  4669. fi
  4670. ac_res=`eval echo '${'$as_ac_Header'}'`
  4671. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4672. echo "${ECHO_T}$ac_res" >&6; }
  4673. else
  4674. # Is the header compilable?
  4675. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4676. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4677. cat >conftest.$ac_ext <<_ACEOF
  4678. /* confdefs.h. */
  4679. _ACEOF
  4680. cat confdefs.h >>conftest.$ac_ext
  4681. cat >>conftest.$ac_ext <<_ACEOF
  4682. /* end confdefs.h. */
  4683. $ac_includes_default
  4684. #include <$ac_header>
  4685. _ACEOF
  4686. rm -f conftest.$ac_objext
  4687. if { (ac_try="$ac_compile"
  4688. case "(($ac_try" in
  4689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4690. *) ac_try_echo=$ac_try;;
  4691. esac
  4692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4693. (eval "$ac_compile") 2>conftest.er1
  4694. ac_status=$?
  4695. grep -v '^ *+' conftest.er1 >conftest.err
  4696. rm -f conftest.er1
  4697. cat conftest.err >&5
  4698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4699. (exit $ac_status); } && {
  4700. test -z "$ac_c_werror_flag" ||
  4701. test ! -s conftest.err
  4702. } && test -s conftest.$ac_objext; then
  4703. ac_header_compiler=yes
  4704. else
  4705. echo "$as_me: failed program was:" >&5
  4706. sed 's/^/| /' conftest.$ac_ext >&5
  4707. ac_header_compiler=no
  4708. fi
  4709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4710. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4711. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4712. # Is the header present?
  4713. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4714. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4715. cat >conftest.$ac_ext <<_ACEOF
  4716. /* confdefs.h. */
  4717. _ACEOF
  4718. cat confdefs.h >>conftest.$ac_ext
  4719. cat >>conftest.$ac_ext <<_ACEOF
  4720. /* end confdefs.h. */
  4721. #include <$ac_header>
  4722. _ACEOF
  4723. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4724. case "(($ac_try" in
  4725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4726. *) ac_try_echo=$ac_try;;
  4727. esac
  4728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4729. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4730. ac_status=$?
  4731. grep -v '^ *+' conftest.er1 >conftest.err
  4732. rm -f conftest.er1
  4733. cat conftest.err >&5
  4734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4735. (exit $ac_status); } >/dev/null && {
  4736. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4737. test ! -s conftest.err
  4738. }; then
  4739. ac_header_preproc=yes
  4740. else
  4741. echo "$as_me: failed program was:" >&5
  4742. sed 's/^/| /' conftest.$ac_ext >&5
  4743. ac_header_preproc=no
  4744. fi
  4745. rm -f conftest.err conftest.$ac_ext
  4746. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4747. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4748. # So? What about this header?
  4749. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4750. yes:no: )
  4751. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4752. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4753. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4754. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4755. ac_header_preproc=yes
  4756. ;;
  4757. no:yes:* )
  4758. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4759. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4760. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4761. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4762. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4763. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4764. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4765. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4766. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4767. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4768. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4769. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4770. ;;
  4771. esac
  4772. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4773. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4774. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4775. echo $ECHO_N "(cached) $ECHO_C" >&6
  4776. else
  4777. eval "$as_ac_Header=\$ac_header_preproc"
  4778. fi
  4779. ac_res=`eval echo '${'$as_ac_Header'}'`
  4780. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4781. echo "${ECHO_T}$ac_res" >&6; }
  4782. fi
  4783. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4784. cat >>confdefs.h <<_ACEOF
  4785. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4786. _ACEOF
  4787. fi
  4788. done
  4789. ac_ext=cpp
  4790. ac_cpp='$CXXCPP $CPPFLAGS'
  4791. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4792. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4793. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4794. if test -z "$CXX"; then
  4795. if test -n "$CCC"; then
  4796. CXX=$CCC
  4797. else
  4798. if test -n "$ac_tool_prefix"; then
  4799. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4800. do
  4801. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4802. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4803. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4804. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4805. if test "${ac_cv_prog_CXX+set}" = set; then
  4806. echo $ECHO_N "(cached) $ECHO_C" >&6
  4807. else
  4808. if test -n "$CXX"; then
  4809. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4810. else
  4811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4812. for as_dir in $PATH
  4813. do
  4814. IFS=$as_save_IFS
  4815. test -z "$as_dir" && as_dir=.
  4816. for ac_exec_ext in '' $ac_executable_extensions; do
  4817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4818. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4819. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4820. break 2
  4821. fi
  4822. done
  4823. done
  4824. IFS=$as_save_IFS
  4825. fi
  4826. fi
  4827. CXX=$ac_cv_prog_CXX
  4828. if test -n "$CXX"; then
  4829. { echo "$as_me:$LINENO: result: $CXX" >&5
  4830. echo "${ECHO_T}$CXX" >&6; }
  4831. else
  4832. { echo "$as_me:$LINENO: result: no" >&5
  4833. echo "${ECHO_T}no" >&6; }
  4834. fi
  4835. test -n "$CXX" && break
  4836. done
  4837. fi
  4838. if test -z "$CXX"; then
  4839. ac_ct_CXX=$CXX
  4840. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4841. do
  4842. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4843. set dummy $ac_prog; ac_word=$2
  4844. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4845. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4846. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4847. echo $ECHO_N "(cached) $ECHO_C" >&6
  4848. else
  4849. if test -n "$ac_ct_CXX"; then
  4850. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4851. else
  4852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4853. for as_dir in $PATH
  4854. do
  4855. IFS=$as_save_IFS
  4856. test -z "$as_dir" && as_dir=.
  4857. for ac_exec_ext in '' $ac_executable_extensions; do
  4858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4859. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4860. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4861. break 2
  4862. fi
  4863. done
  4864. done
  4865. IFS=$as_save_IFS
  4866. fi
  4867. fi
  4868. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4869. if test -n "$ac_ct_CXX"; then
  4870. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4871. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4872. else
  4873. { echo "$as_me:$LINENO: result: no" >&5
  4874. echo "${ECHO_T}no" >&6; }
  4875. fi
  4876. test -n "$ac_ct_CXX" && break
  4877. done
  4878. if test "x$ac_ct_CXX" = x; then
  4879. CXX="g++"
  4880. else
  4881. case $cross_compiling:$ac_tool_warned in
  4882. yes:)
  4883. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4884. whose name does not start with the host triplet. If you think this
  4885. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4886. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4887. whose name does not start with the host triplet. If you think this
  4888. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4889. ac_tool_warned=yes ;;
  4890. esac
  4891. CXX=$ac_ct_CXX
  4892. fi
  4893. fi
  4894. fi
  4895. fi
  4896. # Provide some information about the compiler.
  4897. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  4898. ac_compiler=`set X $ac_compile; echo $2`
  4899. { (ac_try="$ac_compiler --version >&5"
  4900. case "(($ac_try" in
  4901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4902. *) ac_try_echo=$ac_try;;
  4903. esac
  4904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4905. (eval "$ac_compiler --version >&5") 2>&5
  4906. ac_status=$?
  4907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4908. (exit $ac_status); }
  4909. { (ac_try="$ac_compiler -v >&5"
  4910. case "(($ac_try" in
  4911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4912. *) ac_try_echo=$ac_try;;
  4913. esac
  4914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4915. (eval "$ac_compiler -v >&5") 2>&5
  4916. ac_status=$?
  4917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4918. (exit $ac_status); }
  4919. { (ac_try="$ac_compiler -V >&5"
  4920. case "(($ac_try" in
  4921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4922. *) ac_try_echo=$ac_try;;
  4923. esac
  4924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4925. (eval "$ac_compiler -V >&5") 2>&5
  4926. ac_status=$?
  4927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4928. (exit $ac_status); }
  4929. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  4930. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  4931. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  4932. echo $ECHO_N "(cached) $ECHO_C" >&6
  4933. else
  4934. cat >conftest.$ac_ext <<_ACEOF
  4935. /* confdefs.h. */
  4936. _ACEOF
  4937. cat confdefs.h >>conftest.$ac_ext
  4938. cat >>conftest.$ac_ext <<_ACEOF
  4939. /* end confdefs.h. */
  4940. int
  4941. main ()
  4942. {
  4943. #ifndef __GNUC__
  4944. choke me
  4945. #endif
  4946. ;
  4947. return 0;
  4948. }
  4949. _ACEOF
  4950. rm -f conftest.$ac_objext
  4951. if { (ac_try="$ac_compile"
  4952. case "(($ac_try" in
  4953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4954. *) ac_try_echo=$ac_try;;
  4955. esac
  4956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4957. (eval "$ac_compile") 2>conftest.er1
  4958. ac_status=$?
  4959. grep -v '^ *+' conftest.er1 >conftest.err
  4960. rm -f conftest.er1
  4961. cat conftest.err >&5
  4962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4963. (exit $ac_status); } && {
  4964. test -z "$ac_cxx_werror_flag" ||
  4965. test ! -s conftest.err
  4966. } && test -s conftest.$ac_objext; then
  4967. ac_compiler_gnu=yes
  4968. else
  4969. echo "$as_me: failed program was:" >&5
  4970. sed 's/^/| /' conftest.$ac_ext >&5
  4971. ac_compiler_gnu=no
  4972. fi
  4973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4974. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4975. fi
  4976. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  4977. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  4978. GXX=`test $ac_compiler_gnu = yes && echo yes`
  4979. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4980. ac_save_CXXFLAGS=$CXXFLAGS
  4981. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  4982. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  4983. if test "${ac_cv_prog_cxx_g+set}" = set; then
  4984. echo $ECHO_N "(cached) $ECHO_C" >&6
  4985. else
  4986. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4987. ac_cxx_werror_flag=yes
  4988. ac_cv_prog_cxx_g=no
  4989. CXXFLAGS="-g"
  4990. cat >conftest.$ac_ext <<_ACEOF
  4991. /* confdefs.h. */
  4992. _ACEOF
  4993. cat confdefs.h >>conftest.$ac_ext
  4994. cat >>conftest.$ac_ext <<_ACEOF
  4995. /* end confdefs.h. */
  4996. int
  4997. main ()
  4998. {
  4999. ;
  5000. return 0;
  5001. }
  5002. _ACEOF
  5003. rm -f conftest.$ac_objext
  5004. if { (ac_try="$ac_compile"
  5005. case "(($ac_try" in
  5006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5007. *) ac_try_echo=$ac_try;;
  5008. esac
  5009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5010. (eval "$ac_compile") 2>conftest.er1
  5011. ac_status=$?
  5012. grep -v '^ *+' conftest.er1 >conftest.err
  5013. rm -f conftest.er1
  5014. cat conftest.err >&5
  5015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5016. (exit $ac_status); } && {
  5017. test -z "$ac_cxx_werror_flag" ||
  5018. test ! -s conftest.err
  5019. } && test -s conftest.$ac_objext; then
  5020. ac_cv_prog_cxx_g=yes
  5021. else
  5022. echo "$as_me: failed program was:" >&5
  5023. sed 's/^/| /' conftest.$ac_ext >&5
  5024. CXXFLAGS=""
  5025. cat >conftest.$ac_ext <<_ACEOF
  5026. /* confdefs.h. */
  5027. _ACEOF
  5028. cat confdefs.h >>conftest.$ac_ext
  5029. cat >>conftest.$ac_ext <<_ACEOF
  5030. /* end confdefs.h. */
  5031. int
  5032. main ()
  5033. {
  5034. ;
  5035. return 0;
  5036. }
  5037. _ACEOF
  5038. rm -f conftest.$ac_objext
  5039. if { (ac_try="$ac_compile"
  5040. case "(($ac_try" in
  5041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5042. *) ac_try_echo=$ac_try;;
  5043. esac
  5044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5045. (eval "$ac_compile") 2>conftest.er1
  5046. ac_status=$?
  5047. grep -v '^ *+' conftest.er1 >conftest.err
  5048. rm -f conftest.er1
  5049. cat conftest.err >&5
  5050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051. (exit $ac_status); } && {
  5052. test -z "$ac_cxx_werror_flag" ||
  5053. test ! -s conftest.err
  5054. } && test -s conftest.$ac_objext; then
  5055. :
  5056. else
  5057. echo "$as_me: failed program was:" >&5
  5058. sed 's/^/| /' conftest.$ac_ext >&5
  5059. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5060. CXXFLAGS="-g"
  5061. cat >conftest.$ac_ext <<_ACEOF
  5062. /* confdefs.h. */
  5063. _ACEOF
  5064. cat confdefs.h >>conftest.$ac_ext
  5065. cat >>conftest.$ac_ext <<_ACEOF
  5066. /* end confdefs.h. */
  5067. int
  5068. main ()
  5069. {
  5070. ;
  5071. return 0;
  5072. }
  5073. _ACEOF
  5074. rm -f conftest.$ac_objext
  5075. if { (ac_try="$ac_compile"
  5076. case "(($ac_try" in
  5077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5078. *) ac_try_echo=$ac_try;;
  5079. esac
  5080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5081. (eval "$ac_compile") 2>conftest.er1
  5082. ac_status=$?
  5083. grep -v '^ *+' conftest.er1 >conftest.err
  5084. rm -f conftest.er1
  5085. cat conftest.err >&5
  5086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5087. (exit $ac_status); } && {
  5088. test -z "$ac_cxx_werror_flag" ||
  5089. test ! -s conftest.err
  5090. } && test -s conftest.$ac_objext; then
  5091. ac_cv_prog_cxx_g=yes
  5092. else
  5093. echo "$as_me: failed program was:" >&5
  5094. sed 's/^/| /' conftest.$ac_ext >&5
  5095. fi
  5096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5097. fi
  5098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5099. fi
  5100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5101. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5102. fi
  5103. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5104. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5105. if test "$ac_test_CXXFLAGS" = set; then
  5106. CXXFLAGS=$ac_save_CXXFLAGS
  5107. elif test $ac_cv_prog_cxx_g = yes; then
  5108. if test "$GXX" = yes; then
  5109. CXXFLAGS="-g -O2"
  5110. else
  5111. CXXFLAGS="-g"
  5112. fi
  5113. else
  5114. if test "$GXX" = yes; then
  5115. CXXFLAGS="-O2"
  5116. else
  5117. CXXFLAGS=
  5118. fi
  5119. fi
  5120. ac_ext=cpp
  5121. ac_cpp='$CXXCPP $CPPFLAGS'
  5122. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5123. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5124. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5125. depcc="$CXX" am_compiler_list=
  5126. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5127. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5128. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5129. echo $ECHO_N "(cached) $ECHO_C" >&6
  5130. else
  5131. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5132. # We make a subdir and do the tests there. Otherwise we can end up
  5133. # making bogus files that we don't know about and never remove. For
  5134. # instance it was reported that on HP-UX the gcc test will end up
  5135. # making a dummy file named `D' -- because `-MD' means `put the output
  5136. # in D'.
  5137. mkdir conftest.dir
  5138. # Copy depcomp to subdir because otherwise we won't find it if we're
  5139. # using a relative directory.
  5140. cp "$am_depcomp" conftest.dir
  5141. cd conftest.dir
  5142. # We will build objects and dependencies in a subdirectory because
  5143. # it helps to detect inapplicable dependency modes. For instance
  5144. # both Tru64's cc and ICC support -MD to output dependencies as a
  5145. # side effect of compilation, but ICC will put the dependencies in
  5146. # the current directory while Tru64 will put them in the object
  5147. # directory.
  5148. mkdir sub
  5149. am_cv_CXX_dependencies_compiler_type=none
  5150. if test "$am_compiler_list" = ""; then
  5151. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5152. fi
  5153. for depmode in $am_compiler_list; do
  5154. # Setup a source with many dependencies, because some compilers
  5155. # like to wrap large dependency lists on column 80 (with \), and
  5156. # we should not choose a depcomp mode which is confused by this.
  5157. #
  5158. # We need to recreate these files for each test, as the compiler may
  5159. # overwrite some of them when testing with obscure command lines.
  5160. # This happens at least with the AIX C compiler.
  5161. : > sub/conftest.c
  5162. for i in 1 2 3 4 5 6; do
  5163. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5164. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5165. # Solaris 8's {/usr,}/bin/sh.
  5166. touch sub/conftst$i.h
  5167. done
  5168. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5169. case $depmode in
  5170. nosideeffect)
  5171. # after this tag, mechanisms are not by side-effect, so they'll
  5172. # only be used when explicitly requested
  5173. if test "x$enable_dependency_tracking" = xyes; then
  5174. continue
  5175. else
  5176. break
  5177. fi
  5178. ;;
  5179. none) break ;;
  5180. esac
  5181. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5182. # mode. It turns out that the SunPro C++ compiler does not properly
  5183. # handle `-M -o', and we need to detect this.
  5184. if depmode=$depmode \
  5185. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5186. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5187. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5188. >/dev/null 2>conftest.err &&
  5189. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5190. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5191. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5192. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5193. # icc doesn't choke on unknown options, it will just issue warnings
  5194. # or remarks (even with -Werror). So we grep stderr for any message
  5195. # that says an option was ignored or not supported.
  5196. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5197. # icc: Command line warning: ignoring option '-M'; no argument required
  5198. # The diagnosis changed in icc 8.0:
  5199. # icc: Command line remark: option '-MP' not supported
  5200. if (grep 'ignoring option' conftest.err ||
  5201. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5202. am_cv_CXX_dependencies_compiler_type=$depmode
  5203. break
  5204. fi
  5205. fi
  5206. done
  5207. cd ..
  5208. rm -rf conftest.dir
  5209. else
  5210. am_cv_CXX_dependencies_compiler_type=none
  5211. fi
  5212. fi
  5213. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5214. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5215. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5216. if
  5217. test "x$enable_dependency_tracking" != xno \
  5218. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5219. am__fastdepCXX_TRUE=
  5220. am__fastdepCXX_FALSE='#'
  5221. else
  5222. am__fastdepCXX_TRUE='#'
  5223. am__fastdepCXX_FALSE=
  5224. fi
  5225. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5226. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5227. (test "X$CXX" != "Xg++"))) ; then
  5228. ac_ext=cpp
  5229. ac_cpp='$CXXCPP $CPPFLAGS'
  5230. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5231. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5232. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5233. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5234. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5235. if test -z "$CXXCPP"; then
  5236. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5237. echo $ECHO_N "(cached) $ECHO_C" >&6
  5238. else
  5239. # Double quotes because CXXCPP needs to be expanded
  5240. for CXXCPP in "$CXX -E" "/lib/cpp"
  5241. do
  5242. ac_preproc_ok=false
  5243. for ac_cxx_preproc_warn_flag in '' yes
  5244. do
  5245. # Use a header file that comes with gcc, so configuring glibc
  5246. # with a fresh cross-compiler works.
  5247. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5248. # <limits.h> exists even on freestanding compilers.
  5249. # On the NeXT, cc -E runs the code through the compiler's parser,
  5250. # not just through cpp. "Syntax error" is here to catch this case.
  5251. cat >conftest.$ac_ext <<_ACEOF
  5252. /* confdefs.h. */
  5253. _ACEOF
  5254. cat confdefs.h >>conftest.$ac_ext
  5255. cat >>conftest.$ac_ext <<_ACEOF
  5256. /* end confdefs.h. */
  5257. #ifdef __STDC__
  5258. # include <limits.h>
  5259. #else
  5260. # include <assert.h>
  5261. #endif
  5262. Syntax error
  5263. _ACEOF
  5264. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5265. case "(($ac_try" in
  5266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5267. *) ac_try_echo=$ac_try;;
  5268. esac
  5269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5270. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5271. ac_status=$?
  5272. grep -v '^ *+' conftest.er1 >conftest.err
  5273. rm -f conftest.er1
  5274. cat conftest.err >&5
  5275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5276. (exit $ac_status); } >/dev/null && {
  5277. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5278. test ! -s conftest.err
  5279. }; then
  5280. :
  5281. else
  5282. echo "$as_me: failed program was:" >&5
  5283. sed 's/^/| /' conftest.$ac_ext >&5
  5284. # Broken: fails on valid input.
  5285. continue
  5286. fi
  5287. rm -f conftest.err conftest.$ac_ext
  5288. # OK, works on sane cases. Now check whether nonexistent headers
  5289. # can be detected and how.
  5290. cat >conftest.$ac_ext <<_ACEOF
  5291. /* confdefs.h. */
  5292. _ACEOF
  5293. cat confdefs.h >>conftest.$ac_ext
  5294. cat >>conftest.$ac_ext <<_ACEOF
  5295. /* end confdefs.h. */
  5296. #include <ac_nonexistent.h>
  5297. _ACEOF
  5298. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5299. case "(($ac_try" in
  5300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5301. *) ac_try_echo=$ac_try;;
  5302. esac
  5303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5304. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5305. ac_status=$?
  5306. grep -v '^ *+' conftest.er1 >conftest.err
  5307. rm -f conftest.er1
  5308. cat conftest.err >&5
  5309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5310. (exit $ac_status); } >/dev/null && {
  5311. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5312. test ! -s conftest.err
  5313. }; then
  5314. # Broken: success on invalid input.
  5315. continue
  5316. else
  5317. echo "$as_me: failed program was:" >&5
  5318. sed 's/^/| /' conftest.$ac_ext >&5
  5319. # Passes both tests.
  5320. ac_preproc_ok=:
  5321. break
  5322. fi
  5323. rm -f conftest.err conftest.$ac_ext
  5324. done
  5325. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5326. rm -f conftest.err conftest.$ac_ext
  5327. if $ac_preproc_ok; then
  5328. break
  5329. fi
  5330. done
  5331. ac_cv_prog_CXXCPP=$CXXCPP
  5332. fi
  5333. CXXCPP=$ac_cv_prog_CXXCPP
  5334. else
  5335. ac_cv_prog_CXXCPP=$CXXCPP
  5336. fi
  5337. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5338. echo "${ECHO_T}$CXXCPP" >&6; }
  5339. ac_preproc_ok=false
  5340. for ac_cxx_preproc_warn_flag in '' yes
  5341. do
  5342. # Use a header file that comes with gcc, so configuring glibc
  5343. # with a fresh cross-compiler works.
  5344. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5345. # <limits.h> exists even on freestanding compilers.
  5346. # On the NeXT, cc -E runs the code through the compiler's parser,
  5347. # not just through cpp. "Syntax error" is here to catch this case.
  5348. cat >conftest.$ac_ext <<_ACEOF
  5349. /* confdefs.h. */
  5350. _ACEOF
  5351. cat confdefs.h >>conftest.$ac_ext
  5352. cat >>conftest.$ac_ext <<_ACEOF
  5353. /* end confdefs.h. */
  5354. #ifdef __STDC__
  5355. # include <limits.h>
  5356. #else
  5357. # include <assert.h>
  5358. #endif
  5359. Syntax error
  5360. _ACEOF
  5361. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5362. case "(($ac_try" in
  5363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5364. *) ac_try_echo=$ac_try;;
  5365. esac
  5366. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5367. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5368. ac_status=$?
  5369. grep -v '^ *+' conftest.er1 >conftest.err
  5370. rm -f conftest.er1
  5371. cat conftest.err >&5
  5372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5373. (exit $ac_status); } >/dev/null && {
  5374. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5375. test ! -s conftest.err
  5376. }; then
  5377. :
  5378. else
  5379. echo "$as_me: failed program was:" >&5
  5380. sed 's/^/| /' conftest.$ac_ext >&5
  5381. # Broken: fails on valid input.
  5382. continue
  5383. fi
  5384. rm -f conftest.err conftest.$ac_ext
  5385. # OK, works on sane cases. Now check whether nonexistent headers
  5386. # can be detected and how.
  5387. cat >conftest.$ac_ext <<_ACEOF
  5388. /* confdefs.h. */
  5389. _ACEOF
  5390. cat confdefs.h >>conftest.$ac_ext
  5391. cat >>conftest.$ac_ext <<_ACEOF
  5392. /* end confdefs.h. */
  5393. #include <ac_nonexistent.h>
  5394. _ACEOF
  5395. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5396. case "(($ac_try" in
  5397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5398. *) ac_try_echo=$ac_try;;
  5399. esac
  5400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5401. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5402. ac_status=$?
  5403. grep -v '^ *+' conftest.er1 >conftest.err
  5404. rm -f conftest.er1
  5405. cat conftest.err >&5
  5406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5407. (exit $ac_status); } >/dev/null && {
  5408. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5409. test ! -s conftest.err
  5410. }; then
  5411. # Broken: success on invalid input.
  5412. continue
  5413. else
  5414. echo "$as_me: failed program was:" >&5
  5415. sed 's/^/| /' conftest.$ac_ext >&5
  5416. # Passes both tests.
  5417. ac_preproc_ok=:
  5418. break
  5419. fi
  5420. rm -f conftest.err conftest.$ac_ext
  5421. done
  5422. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5423. rm -f conftest.err conftest.$ac_ext
  5424. if $ac_preproc_ok; then
  5425. :
  5426. else
  5427. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5428. See \`config.log' for more details." >&5
  5429. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5430. See \`config.log' for more details." >&2;}
  5431. { (exit 1); exit 1; }; }
  5432. fi
  5433. ac_ext=cpp
  5434. ac_cpp='$CXXCPP $CPPFLAGS'
  5435. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5436. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5437. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5438. fi
  5439. ac_ext=f
  5440. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5441. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5442. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5443. if test -n "$ac_tool_prefix"; then
  5444. 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
  5445. do
  5446. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5447. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5448. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5449. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5450. if test "${ac_cv_prog_F77+set}" = set; then
  5451. echo $ECHO_N "(cached) $ECHO_C" >&6
  5452. else
  5453. if test -n "$F77"; then
  5454. ac_cv_prog_F77="$F77" # Let the user override the test.
  5455. else
  5456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5457. for as_dir in $PATH
  5458. do
  5459. IFS=$as_save_IFS
  5460. test -z "$as_dir" && as_dir=.
  5461. for ac_exec_ext in '' $ac_executable_extensions; do
  5462. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5463. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5464. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5465. break 2
  5466. fi
  5467. done
  5468. done
  5469. IFS=$as_save_IFS
  5470. fi
  5471. fi
  5472. F77=$ac_cv_prog_F77
  5473. if test -n "$F77"; then
  5474. { echo "$as_me:$LINENO: result: $F77" >&5
  5475. echo "${ECHO_T}$F77" >&6; }
  5476. else
  5477. { echo "$as_me:$LINENO: result: no" >&5
  5478. echo "${ECHO_T}no" >&6; }
  5479. fi
  5480. test -n "$F77" && break
  5481. done
  5482. fi
  5483. if test -z "$F77"; then
  5484. ac_ct_F77=$F77
  5485. 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
  5486. do
  5487. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5488. set dummy $ac_prog; ac_word=$2
  5489. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5490. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5491. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5492. echo $ECHO_N "(cached) $ECHO_C" >&6
  5493. else
  5494. if test -n "$ac_ct_F77"; then
  5495. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5504. ac_cv_prog_ac_ct_F77="$ac_prog"
  5505. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. fi
  5512. fi
  5513. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5514. if test -n "$ac_ct_F77"; then
  5515. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5516. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5517. else
  5518. { echo "$as_me:$LINENO: result: no" >&5
  5519. echo "${ECHO_T}no" >&6; }
  5520. fi
  5521. test -n "$ac_ct_F77" && break
  5522. done
  5523. if test "x$ac_ct_F77" = x; then
  5524. F77=""
  5525. else
  5526. case $cross_compiling:$ac_tool_warned in
  5527. yes:)
  5528. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5529. whose name does not start with the host triplet. If you think this
  5530. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5531. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5532. whose name does not start with the host triplet. If you think this
  5533. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5534. ac_tool_warned=yes ;;
  5535. esac
  5536. F77=$ac_ct_F77
  5537. fi
  5538. fi
  5539. # Provide some information about the compiler.
  5540. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5541. ac_compiler=`set X $ac_compile; echo $2`
  5542. { (ac_try="$ac_compiler --version >&5"
  5543. case "(($ac_try" in
  5544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5545. *) ac_try_echo=$ac_try;;
  5546. esac
  5547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5548. (eval "$ac_compiler --version >&5") 2>&5
  5549. ac_status=$?
  5550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5551. (exit $ac_status); }
  5552. { (ac_try="$ac_compiler -v >&5"
  5553. case "(($ac_try" in
  5554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5555. *) ac_try_echo=$ac_try;;
  5556. esac
  5557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5558. (eval "$ac_compiler -v >&5") 2>&5
  5559. ac_status=$?
  5560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5561. (exit $ac_status); }
  5562. { (ac_try="$ac_compiler -V >&5"
  5563. case "(($ac_try" in
  5564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5565. *) ac_try_echo=$ac_try;;
  5566. esac
  5567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5568. (eval "$ac_compiler -V >&5") 2>&5
  5569. ac_status=$?
  5570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571. (exit $ac_status); }
  5572. rm -f a.out
  5573. # If we don't use `.F' as extension, the preprocessor is not run on the
  5574. # input file. (Note that this only needs to work for GNU compilers.)
  5575. ac_save_ext=$ac_ext
  5576. ac_ext=F
  5577. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5578. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5579. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5580. echo $ECHO_N "(cached) $ECHO_C" >&6
  5581. else
  5582. cat >conftest.$ac_ext <<_ACEOF
  5583. program main
  5584. #ifndef __GNUC__
  5585. choke me
  5586. #endif
  5587. end
  5588. _ACEOF
  5589. rm -f conftest.$ac_objext
  5590. if { (ac_try="$ac_compile"
  5591. case "(($ac_try" in
  5592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5593. *) ac_try_echo=$ac_try;;
  5594. esac
  5595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5596. (eval "$ac_compile") 2>conftest.er1
  5597. ac_status=$?
  5598. grep -v '^ *+' conftest.er1 >conftest.err
  5599. rm -f conftest.er1
  5600. cat conftest.err >&5
  5601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5602. (exit $ac_status); } && {
  5603. test -z "$ac_f77_werror_flag" ||
  5604. test ! -s conftest.err
  5605. } && test -s conftest.$ac_objext; then
  5606. ac_compiler_gnu=yes
  5607. else
  5608. echo "$as_me: failed program was:" >&5
  5609. sed 's/^/| /' conftest.$ac_ext >&5
  5610. ac_compiler_gnu=no
  5611. fi
  5612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5613. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5614. fi
  5615. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5616. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5617. ac_ext=$ac_save_ext
  5618. ac_test_FFLAGS=${FFLAGS+set}
  5619. ac_save_FFLAGS=$FFLAGS
  5620. FFLAGS=
  5621. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5622. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5623. if test "${ac_cv_prog_f77_g+set}" = set; then
  5624. echo $ECHO_N "(cached) $ECHO_C" >&6
  5625. else
  5626. FFLAGS=-g
  5627. cat >conftest.$ac_ext <<_ACEOF
  5628. program main
  5629. end
  5630. _ACEOF
  5631. rm -f conftest.$ac_objext
  5632. if { (ac_try="$ac_compile"
  5633. case "(($ac_try" in
  5634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5635. *) ac_try_echo=$ac_try;;
  5636. esac
  5637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5638. (eval "$ac_compile") 2>conftest.er1
  5639. ac_status=$?
  5640. grep -v '^ *+' conftest.er1 >conftest.err
  5641. rm -f conftest.er1
  5642. cat conftest.err >&5
  5643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5644. (exit $ac_status); } && {
  5645. test -z "$ac_f77_werror_flag" ||
  5646. test ! -s conftest.err
  5647. } && test -s conftest.$ac_objext; then
  5648. ac_cv_prog_f77_g=yes
  5649. else
  5650. echo "$as_me: failed program was:" >&5
  5651. sed 's/^/| /' conftest.$ac_ext >&5
  5652. ac_cv_prog_f77_g=no
  5653. fi
  5654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5655. fi
  5656. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5657. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5658. if test "$ac_test_FFLAGS" = set; then
  5659. FFLAGS=$ac_save_FFLAGS
  5660. elif test $ac_cv_prog_f77_g = yes; then
  5661. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5662. FFLAGS="-g -O2"
  5663. else
  5664. FFLAGS="-g"
  5665. fi
  5666. else
  5667. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5668. FFLAGS="-O2"
  5669. else
  5670. FFLAGS=
  5671. fi
  5672. fi
  5673. G77=`test $ac_compiler_gnu = yes && echo yes`
  5674. ac_ext=c
  5675. ac_cpp='$CPP $CPPFLAGS'
  5676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5679. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5680. # find the maximum length of command line arguments
  5681. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5682. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5683. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5684. echo $ECHO_N "(cached) $ECHO_C" >&6
  5685. else
  5686. i=0
  5687. teststring="ABCD"
  5688. case $build_os in
  5689. msdosdjgpp*)
  5690. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5691. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5692. # during glob expansion). Even if it were fixed, the result of this
  5693. # check would be larger than it should be.
  5694. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5695. ;;
  5696. gnu*)
  5697. # Under GNU Hurd, this test is not required because there is
  5698. # no limit to the length of command line arguments.
  5699. # Libtool will interpret -1 as no limit whatsoever
  5700. lt_cv_sys_max_cmd_len=-1;
  5701. ;;
  5702. cygwin* | mingw*)
  5703. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5704. # about 5 minutes as the teststring grows exponentially.
  5705. # Worse, since 9x/ME are not pre-emptively multitasking,
  5706. # you end up with a "frozen" computer, even though with patience
  5707. # the test eventually succeeds (with a max line length of 256k).
  5708. # Instead, let's just punt: use the minimum linelength reported by
  5709. # all of the supported platforms: 8192 (on NT/2K/XP).
  5710. lt_cv_sys_max_cmd_len=8192;
  5711. ;;
  5712. amigaos*)
  5713. # On AmigaOS with pdksh, this test takes hours, literally.
  5714. # So we just punt and use a minimum line length of 8192.
  5715. lt_cv_sys_max_cmd_len=8192;
  5716. ;;
  5717. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5718. # This has been around since 386BSD, at least. Likely further.
  5719. if test -x /sbin/sysctl; then
  5720. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5721. elif test -x /usr/sbin/sysctl; then
  5722. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5723. else
  5724. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5725. fi
  5726. # And add a safety zone
  5727. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5728. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5729. ;;
  5730. interix*)
  5731. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5732. lt_cv_sys_max_cmd_len=196608
  5733. ;;
  5734. osf*)
  5735. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5736. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5737. # nice to cause kernel panics so lets avoid the loop below.
  5738. # First set a reasonable default.
  5739. lt_cv_sys_max_cmd_len=16384
  5740. #
  5741. if test -x /sbin/sysconfig; then
  5742. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5743. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5744. esac
  5745. fi
  5746. ;;
  5747. sco3.2v5*)
  5748. lt_cv_sys_max_cmd_len=102400
  5749. ;;
  5750. sysv5* | sco5v6* | sysv4.2uw2*)
  5751. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5752. if test -n "$kargmax"; then
  5753. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5754. else
  5755. lt_cv_sys_max_cmd_len=32768
  5756. fi
  5757. ;;
  5758. *)
  5759. # If test is not a shell built-in, we'll probably end up computing a
  5760. # maximum length that is only half of the actual maximum length, but
  5761. # we can't tell.
  5762. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5763. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5764. = "XX$teststring") >/dev/null 2>&1 &&
  5765. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5766. lt_cv_sys_max_cmd_len=$new_result &&
  5767. test $i != 17 # 1/2 MB should be enough
  5768. do
  5769. i=`expr $i + 1`
  5770. teststring=$teststring$teststring
  5771. done
  5772. teststring=
  5773. # Add a significant safety factor because C++ compilers can tack on massive
  5774. # amounts of additional arguments before passing them to the linker.
  5775. # It appears as though 1/2 is a usable value.
  5776. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5777. ;;
  5778. esac
  5779. fi
  5780. if test -n $lt_cv_sys_max_cmd_len ; then
  5781. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5782. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5783. else
  5784. { echo "$as_me:$LINENO: result: none" >&5
  5785. echo "${ECHO_T}none" >&6; }
  5786. fi
  5787. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5788. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5789. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5790. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5791. echo $ECHO_N "(cached) $ECHO_C" >&6
  5792. else
  5793. # These are sane defaults that work on at least a few old systems.
  5794. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5795. # Character class describing NM global symbol codes.
  5796. symcode='[BCDEGRST]'
  5797. # Regexp to match symbols that can be accessed directly from C.
  5798. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5799. # Transform an extracted symbol line into a proper C declaration
  5800. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5801. # Transform an extracted symbol line into symbol name and symbol address
  5802. 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'"
  5803. # Define system-specific variables.
  5804. case $host_os in
  5805. aix*)
  5806. symcode='[BCDT]'
  5807. ;;
  5808. cygwin* | mingw* | pw32*)
  5809. symcode='[ABCDGISTW]'
  5810. ;;
  5811. hpux*) # Its linker distinguishes data from code symbols
  5812. if test "$host_cpu" = ia64; then
  5813. symcode='[ABCDEGRST]'
  5814. fi
  5815. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5816. 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'"
  5817. ;;
  5818. linux*)
  5819. if test "$host_cpu" = ia64; then
  5820. symcode='[ABCDGIRSTW]'
  5821. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5822. 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'"
  5823. fi
  5824. ;;
  5825. irix* | nonstopux*)
  5826. symcode='[BCDEGRST]'
  5827. ;;
  5828. osf*)
  5829. symcode='[BCDEGQRST]'
  5830. ;;
  5831. solaris*)
  5832. symcode='[BDRT]'
  5833. ;;
  5834. sco3.2v5*)
  5835. symcode='[DT]'
  5836. ;;
  5837. sysv4.2uw2*)
  5838. symcode='[DT]'
  5839. ;;
  5840. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5841. symcode='[ABDT]'
  5842. ;;
  5843. sysv4)
  5844. symcode='[DFNSTU]'
  5845. ;;
  5846. esac
  5847. # Handle CRLF in mingw tool chain
  5848. opt_cr=
  5849. case $build_os in
  5850. mingw*)
  5851. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5852. ;;
  5853. esac
  5854. # If we're using GNU nm, then use its standard symbol codes.
  5855. case `$NM -V 2>&1` in
  5856. *GNU* | *'with BFD'*)
  5857. symcode='[ABCDGIRSTW]' ;;
  5858. esac
  5859. # Try without a prefix undercore, then with it.
  5860. for ac_symprfx in "" "_"; do
  5861. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5862. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5863. # Write the raw and C identifiers.
  5864. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5865. # Check to see that the pipe works correctly.
  5866. pipe_works=no
  5867. rm -f conftest*
  5868. cat > conftest.$ac_ext <<EOF
  5869. #ifdef __cplusplus
  5870. extern "C" {
  5871. #endif
  5872. char nm_test_var;
  5873. void nm_test_func(){}
  5874. #ifdef __cplusplus
  5875. }
  5876. #endif
  5877. int main(){nm_test_var='a';nm_test_func();return(0);}
  5878. EOF
  5879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5880. (eval $ac_compile) 2>&5
  5881. ac_status=$?
  5882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5883. (exit $ac_status); }; then
  5884. # Now try to grab the symbols.
  5885. nlist=conftest.nm
  5886. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5887. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5888. ac_status=$?
  5889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5890. (exit $ac_status); } && test -s "$nlist"; then
  5891. # Try sorting and uniquifying the output.
  5892. if sort "$nlist" | uniq > "$nlist"T; then
  5893. mv -f "$nlist"T "$nlist"
  5894. else
  5895. rm -f "$nlist"T
  5896. fi
  5897. # Make sure that we snagged all the symbols we need.
  5898. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5899. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5900. cat <<EOF > conftest.$ac_ext
  5901. #ifdef __cplusplus
  5902. extern "C" {
  5903. #endif
  5904. EOF
  5905. # Now generate the symbol file.
  5906. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5907. cat <<EOF >> conftest.$ac_ext
  5908. #if defined (__STDC__) && __STDC__
  5909. # define lt_ptr_t void *
  5910. #else
  5911. # define lt_ptr_t char *
  5912. # define const
  5913. #endif
  5914. /* The mapping between symbol names and symbols. */
  5915. const struct {
  5916. const char *name;
  5917. lt_ptr_t address;
  5918. }
  5919. lt_preloaded_symbols[] =
  5920. {
  5921. EOF
  5922. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5923. cat <<\EOF >> conftest.$ac_ext
  5924. {0, (lt_ptr_t) 0}
  5925. };
  5926. #ifdef __cplusplus
  5927. }
  5928. #endif
  5929. EOF
  5930. # Now try linking the two files.
  5931. mv conftest.$ac_objext conftstm.$ac_objext
  5932. lt_save_LIBS="$LIBS"
  5933. lt_save_CFLAGS="$CFLAGS"
  5934. LIBS="conftstm.$ac_objext"
  5935. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5936. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5937. (eval $ac_link) 2>&5
  5938. ac_status=$?
  5939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5940. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5941. pipe_works=yes
  5942. fi
  5943. LIBS="$lt_save_LIBS"
  5944. CFLAGS="$lt_save_CFLAGS"
  5945. else
  5946. echo "cannot find nm_test_func in $nlist" >&5
  5947. fi
  5948. else
  5949. echo "cannot find nm_test_var in $nlist" >&5
  5950. fi
  5951. else
  5952. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5953. fi
  5954. else
  5955. echo "$progname: failed program was:" >&5
  5956. cat conftest.$ac_ext >&5
  5957. fi
  5958. rm -f conftest* conftst*
  5959. # Do not use the global_symbol_pipe unless it works.
  5960. if test "$pipe_works" = yes; then
  5961. break
  5962. else
  5963. lt_cv_sys_global_symbol_pipe=
  5964. fi
  5965. done
  5966. fi
  5967. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5968. lt_cv_sys_global_symbol_to_cdecl=
  5969. fi
  5970. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5971. { echo "$as_me:$LINENO: result: failed" >&5
  5972. echo "${ECHO_T}failed" >&6; }
  5973. else
  5974. { echo "$as_me:$LINENO: result: ok" >&5
  5975. echo "${ECHO_T}ok" >&6; }
  5976. fi
  5977. { echo "$as_me:$LINENO: checking for objdir" >&5
  5978. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  5979. if test "${lt_cv_objdir+set}" = set; then
  5980. echo $ECHO_N "(cached) $ECHO_C" >&6
  5981. else
  5982. rm -f .libs 2>/dev/null
  5983. mkdir .libs 2>/dev/null
  5984. if test -d .libs; then
  5985. lt_cv_objdir=.libs
  5986. else
  5987. # MS-DOS does not allow filenames that begin with a dot.
  5988. lt_cv_objdir=_libs
  5989. fi
  5990. rmdir .libs 2>/dev/null
  5991. fi
  5992. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5993. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  5994. objdir=$lt_cv_objdir
  5995. case $host_os in
  5996. aix3*)
  5997. # AIX sometimes has problems with the GCC collect2 program. For some
  5998. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5999. # vanish in a puff of smoke.
  6000. if test "X${COLLECT_NAMES+set}" != Xset; then
  6001. COLLECT_NAMES=
  6002. export COLLECT_NAMES
  6003. fi
  6004. ;;
  6005. esac
  6006. # Sed substitution that helps us do robust quoting. It backslashifies
  6007. # metacharacters that are still active within double-quoted strings.
  6008. Xsed='sed -e 1s/^X//'
  6009. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6010. # Same as above, but do not quote variable references.
  6011. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6012. # Sed substitution to delay expansion of an escaped shell variable in a
  6013. # double_quote_subst'ed string.
  6014. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6015. # Sed substitution to avoid accidental globbing in evaled expressions
  6016. no_glob_subst='s/\*/\\\*/g'
  6017. # Constants:
  6018. rm="rm -f"
  6019. # Global variables:
  6020. default_ofile=libtool
  6021. can_build_shared=yes
  6022. # All known linkers require a `.a' archive for static linking (except MSVC,
  6023. # which needs '.lib').
  6024. libext=a
  6025. ltmain="$ac_aux_dir/ltmain.sh"
  6026. ofile="$default_ofile"
  6027. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6028. if test -n "$ac_tool_prefix"; then
  6029. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6030. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6031. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6032. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6033. if test "${ac_cv_prog_AR+set}" = set; then
  6034. echo $ECHO_N "(cached) $ECHO_C" >&6
  6035. else
  6036. if test -n "$AR"; then
  6037. ac_cv_prog_AR="$AR" # Let the user override the test.
  6038. else
  6039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6040. for as_dir in $PATH
  6041. do
  6042. IFS=$as_save_IFS
  6043. test -z "$as_dir" && as_dir=.
  6044. for ac_exec_ext in '' $ac_executable_extensions; do
  6045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6046. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6047. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6048. break 2
  6049. fi
  6050. done
  6051. done
  6052. IFS=$as_save_IFS
  6053. fi
  6054. fi
  6055. AR=$ac_cv_prog_AR
  6056. if test -n "$AR"; then
  6057. { echo "$as_me:$LINENO: result: $AR" >&5
  6058. echo "${ECHO_T}$AR" >&6; }
  6059. else
  6060. { echo "$as_me:$LINENO: result: no" >&5
  6061. echo "${ECHO_T}no" >&6; }
  6062. fi
  6063. fi
  6064. if test -z "$ac_cv_prog_AR"; then
  6065. ac_ct_AR=$AR
  6066. # Extract the first word of "ar", so it can be a program name with args.
  6067. set dummy ar; ac_word=$2
  6068. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6069. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6070. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6071. echo $ECHO_N "(cached) $ECHO_C" >&6
  6072. else
  6073. if test -n "$ac_ct_AR"; then
  6074. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6075. else
  6076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6077. for as_dir in $PATH
  6078. do
  6079. IFS=$as_save_IFS
  6080. test -z "$as_dir" && as_dir=.
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6083. ac_cv_prog_ac_ct_AR="ar"
  6084. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. fi
  6091. fi
  6092. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6093. if test -n "$ac_ct_AR"; then
  6094. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6095. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6096. else
  6097. { echo "$as_me:$LINENO: result: no" >&5
  6098. echo "${ECHO_T}no" >&6; }
  6099. fi
  6100. if test "x$ac_ct_AR" = x; then
  6101. AR="false"
  6102. else
  6103. case $cross_compiling:$ac_tool_warned in
  6104. yes:)
  6105. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6106. whose name does not start with the host triplet. If you think this
  6107. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6108. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6109. whose name does not start with the host triplet. If you think this
  6110. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6111. ac_tool_warned=yes ;;
  6112. esac
  6113. AR=$ac_ct_AR
  6114. fi
  6115. else
  6116. AR="$ac_cv_prog_AR"
  6117. fi
  6118. if test -n "$ac_tool_prefix"; then
  6119. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6120. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6121. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6122. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6123. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6124. echo $ECHO_N "(cached) $ECHO_C" >&6
  6125. else
  6126. if test -n "$RANLIB"; then
  6127. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6128. else
  6129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6130. for as_dir in $PATH
  6131. do
  6132. IFS=$as_save_IFS
  6133. test -z "$as_dir" && as_dir=.
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6136. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6137. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6138. break 2
  6139. fi
  6140. done
  6141. done
  6142. IFS=$as_save_IFS
  6143. fi
  6144. fi
  6145. RANLIB=$ac_cv_prog_RANLIB
  6146. if test -n "$RANLIB"; then
  6147. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6148. echo "${ECHO_T}$RANLIB" >&6; }
  6149. else
  6150. { echo "$as_me:$LINENO: result: no" >&5
  6151. echo "${ECHO_T}no" >&6; }
  6152. fi
  6153. fi
  6154. if test -z "$ac_cv_prog_RANLIB"; then
  6155. ac_ct_RANLIB=$RANLIB
  6156. # Extract the first word of "ranlib", so it can be a program name with args.
  6157. set dummy ranlib; ac_word=$2
  6158. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6159. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6160. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6161. echo $ECHO_N "(cached) $ECHO_C" >&6
  6162. else
  6163. if test -n "$ac_ct_RANLIB"; then
  6164. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6173. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6174. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6183. if test -n "$ac_ct_RANLIB"; then
  6184. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6185. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6186. else
  6187. { echo "$as_me:$LINENO: result: no" >&5
  6188. echo "${ECHO_T}no" >&6; }
  6189. fi
  6190. if test "x$ac_ct_RANLIB" = x; then
  6191. RANLIB=":"
  6192. else
  6193. case $cross_compiling:$ac_tool_warned in
  6194. yes:)
  6195. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6196. whose name does not start with the host triplet. If you think this
  6197. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6198. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6199. whose name does not start with the host triplet. If you think this
  6200. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6201. ac_tool_warned=yes ;;
  6202. esac
  6203. RANLIB=$ac_ct_RANLIB
  6204. fi
  6205. else
  6206. RANLIB="$ac_cv_prog_RANLIB"
  6207. fi
  6208. if test -n "$ac_tool_prefix"; then
  6209. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6210. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6211. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6212. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6213. if test "${ac_cv_prog_STRIP+set}" = set; then
  6214. echo $ECHO_N "(cached) $ECHO_C" >&6
  6215. else
  6216. if test -n "$STRIP"; then
  6217. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6218. else
  6219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6220. for as_dir in $PATH
  6221. do
  6222. IFS=$as_save_IFS
  6223. test -z "$as_dir" && as_dir=.
  6224. for ac_exec_ext in '' $ac_executable_extensions; do
  6225. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6226. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6227. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6228. break 2
  6229. fi
  6230. done
  6231. done
  6232. IFS=$as_save_IFS
  6233. fi
  6234. fi
  6235. STRIP=$ac_cv_prog_STRIP
  6236. if test -n "$STRIP"; then
  6237. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6238. echo "${ECHO_T}$STRIP" >&6; }
  6239. else
  6240. { echo "$as_me:$LINENO: result: no" >&5
  6241. echo "${ECHO_T}no" >&6; }
  6242. fi
  6243. fi
  6244. if test -z "$ac_cv_prog_STRIP"; then
  6245. ac_ct_STRIP=$STRIP
  6246. # Extract the first word of "strip", so it can be a program name with args.
  6247. set dummy strip; ac_word=$2
  6248. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6249. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6250. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6251. echo $ECHO_N "(cached) $ECHO_C" >&6
  6252. else
  6253. if test -n "$ac_ct_STRIP"; then
  6254. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6255. else
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6263. ac_cv_prog_ac_ct_STRIP="strip"
  6264. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. fi
  6271. fi
  6272. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6273. if test -n "$ac_ct_STRIP"; then
  6274. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6275. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6276. else
  6277. { echo "$as_me:$LINENO: result: no" >&5
  6278. echo "${ECHO_T}no" >&6; }
  6279. fi
  6280. if test "x$ac_ct_STRIP" = x; then
  6281. STRIP=":"
  6282. else
  6283. case $cross_compiling:$ac_tool_warned in
  6284. yes:)
  6285. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6286. whose name does not start with the host triplet. If you think this
  6287. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6288. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6289. whose name does not start with the host triplet. If you think this
  6290. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6291. ac_tool_warned=yes ;;
  6292. esac
  6293. STRIP=$ac_ct_STRIP
  6294. fi
  6295. else
  6296. STRIP="$ac_cv_prog_STRIP"
  6297. fi
  6298. old_CC="$CC"
  6299. old_CFLAGS="$CFLAGS"
  6300. # Set sane defaults for various variables
  6301. test -z "$AR" && AR=ar
  6302. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6303. test -z "$AS" && AS=as
  6304. test -z "$CC" && CC=cc
  6305. test -z "$LTCC" && LTCC=$CC
  6306. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6307. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6308. test -z "$LD" && LD=ld
  6309. test -z "$LN_S" && LN_S="ln -s"
  6310. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6311. test -z "$NM" && NM=nm
  6312. test -z "$SED" && SED=sed
  6313. test -z "$OBJDUMP" && OBJDUMP=objdump
  6314. test -z "$RANLIB" && RANLIB=:
  6315. test -z "$STRIP" && STRIP=:
  6316. test -z "$ac_objext" && ac_objext=o
  6317. # Determine commands to create old-style static archives.
  6318. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  6319. old_postinstall_cmds='chmod 644 $oldlib'
  6320. old_postuninstall_cmds=
  6321. if test -n "$RANLIB"; then
  6322. case $host_os in
  6323. openbsd*)
  6324. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6325. ;;
  6326. *)
  6327. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6328. ;;
  6329. esac
  6330. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6331. fi
  6332. for cc_temp in $compiler""; do
  6333. case $cc_temp in
  6334. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6335. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6336. \-*) ;;
  6337. *) break;;
  6338. esac
  6339. done
  6340. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6341. # Only perform the check for file, if the check method requires it
  6342. case $deplibs_check_method in
  6343. file_magic*)
  6344. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6345. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6346. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6347. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6348. echo $ECHO_N "(cached) $ECHO_C" >&6
  6349. else
  6350. case $MAGIC_CMD in
  6351. [\\/*] | ?:[\\/]*)
  6352. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6353. ;;
  6354. *)
  6355. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6356. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6357. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6358. for ac_dir in $ac_dummy; do
  6359. IFS="$lt_save_ifs"
  6360. test -z "$ac_dir" && ac_dir=.
  6361. if test -f $ac_dir/${ac_tool_prefix}file; then
  6362. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6363. if test -n "$file_magic_test_file"; then
  6364. case $deplibs_check_method in
  6365. "file_magic "*)
  6366. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6367. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6368. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6369. $EGREP "$file_magic_regex" > /dev/null; then
  6370. :
  6371. else
  6372. cat <<EOF 1>&2
  6373. *** Warning: the command libtool uses to detect shared libraries,
  6374. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6375. *** The result is that libtool may fail to recognize shared libraries
  6376. *** as such. This will affect the creation of libtool libraries that
  6377. *** depend on shared libraries, but programs linked with such libtool
  6378. *** libraries will work regardless of this problem. Nevertheless, you
  6379. *** may want to report the problem to your system manager and/or to
  6380. *** bug-libtool@gnu.org
  6381. EOF
  6382. fi ;;
  6383. esac
  6384. fi
  6385. break
  6386. fi
  6387. done
  6388. IFS="$lt_save_ifs"
  6389. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6390. ;;
  6391. esac
  6392. fi
  6393. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6394. if test -n "$MAGIC_CMD"; then
  6395. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6396. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6397. else
  6398. { echo "$as_me:$LINENO: result: no" >&5
  6399. echo "${ECHO_T}no" >&6; }
  6400. fi
  6401. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6402. if test -n "$ac_tool_prefix"; then
  6403. { echo "$as_me:$LINENO: checking for file" >&5
  6404. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6405. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6406. echo $ECHO_N "(cached) $ECHO_C" >&6
  6407. else
  6408. case $MAGIC_CMD in
  6409. [\\/*] | ?:[\\/]*)
  6410. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6411. ;;
  6412. *)
  6413. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6414. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6415. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6416. for ac_dir in $ac_dummy; do
  6417. IFS="$lt_save_ifs"
  6418. test -z "$ac_dir" && ac_dir=.
  6419. if test -f $ac_dir/file; then
  6420. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6421. if test -n "$file_magic_test_file"; then
  6422. case $deplibs_check_method in
  6423. "file_magic "*)
  6424. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6425. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6426. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6427. $EGREP "$file_magic_regex" > /dev/null; then
  6428. :
  6429. else
  6430. cat <<EOF 1>&2
  6431. *** Warning: the command libtool uses to detect shared libraries,
  6432. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6433. *** The result is that libtool may fail to recognize shared libraries
  6434. *** as such. This will affect the creation of libtool libraries that
  6435. *** depend on shared libraries, but programs linked with such libtool
  6436. *** libraries will work regardless of this problem. Nevertheless, you
  6437. *** may want to report the problem to your system manager and/or to
  6438. *** bug-libtool@gnu.org
  6439. EOF
  6440. fi ;;
  6441. esac
  6442. fi
  6443. break
  6444. fi
  6445. done
  6446. IFS="$lt_save_ifs"
  6447. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6448. ;;
  6449. esac
  6450. fi
  6451. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6452. if test -n "$MAGIC_CMD"; then
  6453. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6454. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6455. else
  6456. { echo "$as_me:$LINENO: result: no" >&5
  6457. echo "${ECHO_T}no" >&6; }
  6458. fi
  6459. else
  6460. MAGIC_CMD=:
  6461. fi
  6462. fi
  6463. fi
  6464. ;;
  6465. esac
  6466. enable_dlopen=no
  6467. enable_win32_dll=no
  6468. # Check whether --enable-libtool-lock was given.
  6469. if test "${enable_libtool_lock+set}" = set; then
  6470. enableval=$enable_libtool_lock;
  6471. fi
  6472. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6473. # Check whether --with-pic was given.
  6474. if test "${with_pic+set}" = set; then
  6475. withval=$with_pic; pic_mode="$withval"
  6476. else
  6477. pic_mode=default
  6478. fi
  6479. test -z "$pic_mode" && pic_mode=default
  6480. # Use C for the default configuration in the libtool script
  6481. tagname=
  6482. lt_save_CC="$CC"
  6483. ac_ext=c
  6484. ac_cpp='$CPP $CPPFLAGS'
  6485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6488. # Source file extension for C test sources.
  6489. ac_ext=c
  6490. # Object file extension for compiled C test sources.
  6491. objext=o
  6492. objext=$objext
  6493. # Code to be used in simple compile tests
  6494. lt_simple_compile_test_code="int some_variable = 0;\n"
  6495. # Code to be used in simple link tests
  6496. lt_simple_link_test_code='int main(){return(0);}\n'
  6497. # If no C compiler was specified, use CC.
  6498. LTCC=${LTCC-"$CC"}
  6499. # If no C compiler flags were specified, use CFLAGS.
  6500. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6501. # Allow CC to be a program name with arguments.
  6502. compiler=$CC
  6503. # save warnings/boilerplate of simple test code
  6504. ac_outfile=conftest.$ac_objext
  6505. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  6506. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6507. _lt_compiler_boilerplate=`cat conftest.err`
  6508. $rm conftest*
  6509. ac_outfile=conftest.$ac_objext
  6510. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  6511. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6512. _lt_linker_boilerplate=`cat conftest.err`
  6513. $rm conftest*
  6514. lt_prog_compiler_no_builtin_flag=
  6515. if test "$GCC" = yes; then
  6516. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6517. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6518. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6519. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6520. echo $ECHO_N "(cached) $ECHO_C" >&6
  6521. else
  6522. lt_cv_prog_compiler_rtti_exceptions=no
  6523. ac_outfile=conftest.$ac_objext
  6524. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6525. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6526. # Insert the option either (1) after the last *FLAGS variable, or
  6527. # (2) before a word containing "conftest.", or (3) at the end.
  6528. # Note that $ac_compile itself does not contain backslashes and begins
  6529. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6530. # The option is referenced via a variable to avoid confusing sed.
  6531. lt_compile=`echo "$ac_compile" | $SED \
  6532. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6533. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6534. -e 's:$: $lt_compiler_flag:'`
  6535. (eval echo "\"\$as_me:7303: $lt_compile\"" >&5)
  6536. (eval "$lt_compile" 2>conftest.err)
  6537. ac_status=$?
  6538. cat conftest.err >&5
  6539. echo "$as_me:7307: \$? = $ac_status" >&5
  6540. if (exit $ac_status) && test -s "$ac_outfile"; then
  6541. # The compiler can only warn and ignore the option if not recognized
  6542. # So say no if there are warnings other than the usual output.
  6543. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6544. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6545. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6546. lt_cv_prog_compiler_rtti_exceptions=yes
  6547. fi
  6548. fi
  6549. $rm conftest*
  6550. fi
  6551. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6552. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6553. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6554. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6555. else
  6556. :
  6557. fi
  6558. fi
  6559. lt_prog_compiler_wl=
  6560. lt_prog_compiler_pic=
  6561. lt_prog_compiler_static=
  6562. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6563. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6564. if test "$GCC" = yes; then
  6565. lt_prog_compiler_wl='-Wl,'
  6566. lt_prog_compiler_static='-static'
  6567. case $host_os in
  6568. aix*)
  6569. # All AIX code is PIC.
  6570. if test "$host_cpu" = ia64; then
  6571. # AIX 5 now supports IA64 processor
  6572. lt_prog_compiler_static='-Bstatic'
  6573. fi
  6574. ;;
  6575. amigaos*)
  6576. # FIXME: we need at least 68020 code to build shared libraries, but
  6577. # adding the `-m68020' flag to GCC prevents building anything better,
  6578. # like `-m68040'.
  6579. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6580. ;;
  6581. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6582. # PIC is the default for these OSes.
  6583. ;;
  6584. mingw* | pw32* | os2*)
  6585. # This hack is so that the source file can tell whether it is being
  6586. # built for inclusion in a dll (and should export symbols for example).
  6587. lt_prog_compiler_pic='-DDLL_EXPORT'
  6588. ;;
  6589. darwin* | rhapsody*)
  6590. # PIC is the default on this platform
  6591. # Common symbols not allowed in MH_DYLIB files
  6592. lt_prog_compiler_pic='-fno-common'
  6593. ;;
  6594. interix3*)
  6595. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6596. # Instead, we relocate shared libraries at runtime.
  6597. ;;
  6598. msdosdjgpp*)
  6599. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6600. # on systems that don't support them.
  6601. lt_prog_compiler_can_build_shared=no
  6602. enable_shared=no
  6603. ;;
  6604. sysv4*MP*)
  6605. if test -d /usr/nec; then
  6606. lt_prog_compiler_pic=-Kconform_pic
  6607. fi
  6608. ;;
  6609. hpux*)
  6610. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6611. # not for PA HP-UX.
  6612. case $host_cpu in
  6613. hppa*64*|ia64*)
  6614. # +Z the default
  6615. ;;
  6616. *)
  6617. lt_prog_compiler_pic='-fPIC'
  6618. ;;
  6619. esac
  6620. ;;
  6621. *)
  6622. lt_prog_compiler_pic='-fPIC'
  6623. ;;
  6624. esac
  6625. else
  6626. # PORTME Check for flag to pass linker flags through the system compiler.
  6627. case $host_os in
  6628. aix*)
  6629. lt_prog_compiler_wl='-Wl,'
  6630. if test "$host_cpu" = ia64; then
  6631. # AIX 5 now supports IA64 processor
  6632. lt_prog_compiler_static='-Bstatic'
  6633. else
  6634. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6635. fi
  6636. ;;
  6637. darwin*)
  6638. # PIC is the default on this platform
  6639. # Common symbols not allowed in MH_DYLIB files
  6640. case $cc_basename in
  6641. xlc*)
  6642. lt_prog_compiler_pic='-qnocommon'
  6643. lt_prog_compiler_wl='-Wl,'
  6644. ;;
  6645. esac
  6646. ;;
  6647. mingw* | pw32* | os2*)
  6648. # This hack is so that the source file can tell whether it is being
  6649. # built for inclusion in a dll (and should export symbols for example).
  6650. lt_prog_compiler_pic='-DDLL_EXPORT'
  6651. ;;
  6652. hpux9* | hpux10* | hpux11*)
  6653. lt_prog_compiler_wl='-Wl,'
  6654. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6655. # not for PA HP-UX.
  6656. case $host_cpu in
  6657. hppa*64*|ia64*)
  6658. # +Z the default
  6659. ;;
  6660. *)
  6661. lt_prog_compiler_pic='+Z'
  6662. ;;
  6663. esac
  6664. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6665. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6666. ;;
  6667. irix5* | irix6* | nonstopux*)
  6668. lt_prog_compiler_wl='-Wl,'
  6669. # PIC (with -KPIC) is the default.
  6670. lt_prog_compiler_static='-non_shared'
  6671. ;;
  6672. newsos6)
  6673. lt_prog_compiler_pic='-KPIC'
  6674. lt_prog_compiler_static='-Bstatic'
  6675. ;;
  6676. linux*)
  6677. case $cc_basename in
  6678. icc* | ecc*)
  6679. lt_prog_compiler_wl='-Wl,'
  6680. lt_prog_compiler_pic='-KPIC'
  6681. lt_prog_compiler_static='-static'
  6682. ;;
  6683. pgcc* | pgf77* | pgf90* | pgf95*)
  6684. # Portland Group compilers (*not* the Pentium gcc compiler,
  6685. # which looks to be a dead project)
  6686. lt_prog_compiler_wl='-Wl,'
  6687. lt_prog_compiler_pic='-fpic'
  6688. lt_prog_compiler_static='-Bstatic'
  6689. ;;
  6690. ccc*)
  6691. lt_prog_compiler_wl='-Wl,'
  6692. # All Alpha code is PIC.
  6693. lt_prog_compiler_static='-non_shared'
  6694. ;;
  6695. esac
  6696. ;;
  6697. osf3* | osf4* | osf5*)
  6698. lt_prog_compiler_wl='-Wl,'
  6699. # All OSF/1 code is PIC.
  6700. lt_prog_compiler_static='-non_shared'
  6701. ;;
  6702. solaris*)
  6703. lt_prog_compiler_pic='-KPIC'
  6704. lt_prog_compiler_static='-Bstatic'
  6705. case $cc_basename in
  6706. f77* | f90* | f95*)
  6707. lt_prog_compiler_wl='-Qoption ld ';;
  6708. *)
  6709. lt_prog_compiler_wl='-Wl,';;
  6710. esac
  6711. ;;
  6712. sunos4*)
  6713. lt_prog_compiler_wl='-Qoption ld '
  6714. lt_prog_compiler_pic='-PIC'
  6715. lt_prog_compiler_static='-Bstatic'
  6716. ;;
  6717. sysv4 | sysv4.2uw2* | sysv4.3*)
  6718. lt_prog_compiler_wl='-Wl,'
  6719. lt_prog_compiler_pic='-KPIC'
  6720. lt_prog_compiler_static='-Bstatic'
  6721. ;;
  6722. sysv4*MP*)
  6723. if test -d /usr/nec ;then
  6724. lt_prog_compiler_pic='-Kconform_pic'
  6725. lt_prog_compiler_static='-Bstatic'
  6726. fi
  6727. ;;
  6728. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6729. lt_prog_compiler_wl='-Wl,'
  6730. lt_prog_compiler_pic='-KPIC'
  6731. lt_prog_compiler_static='-Bstatic'
  6732. ;;
  6733. unicos*)
  6734. lt_prog_compiler_wl='-Wl,'
  6735. lt_prog_compiler_can_build_shared=no
  6736. ;;
  6737. uts4*)
  6738. lt_prog_compiler_pic='-pic'
  6739. lt_prog_compiler_static='-Bstatic'
  6740. ;;
  6741. *)
  6742. lt_prog_compiler_can_build_shared=no
  6743. ;;
  6744. esac
  6745. fi
  6746. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6747. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6748. #
  6749. # Check to make sure the PIC flag actually works.
  6750. #
  6751. if test -n "$lt_prog_compiler_pic"; then
  6752. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6753. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6754. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6755. echo $ECHO_N "(cached) $ECHO_C" >&6
  6756. else
  6757. lt_prog_compiler_pic_works=no
  6758. ac_outfile=conftest.$ac_objext
  6759. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6760. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6761. # Insert the option either (1) after the last *FLAGS variable, or
  6762. # (2) before a word containing "conftest.", or (3) at the end.
  6763. # Note that $ac_compile itself does not contain backslashes and begins
  6764. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6765. # The option is referenced via a variable to avoid confusing sed.
  6766. lt_compile=`echo "$ac_compile" | $SED \
  6767. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6768. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6769. -e 's:$: $lt_compiler_flag:'`
  6770. (eval echo "\"\$as_me:7571: $lt_compile\"" >&5)
  6771. (eval "$lt_compile" 2>conftest.err)
  6772. ac_status=$?
  6773. cat conftest.err >&5
  6774. echo "$as_me:7575: \$? = $ac_status" >&5
  6775. if (exit $ac_status) && test -s "$ac_outfile"; then
  6776. # The compiler can only warn and ignore the option if not recognized
  6777. # So say no if there are warnings other than the usual output.
  6778. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6779. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6780. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6781. lt_prog_compiler_pic_works=yes
  6782. fi
  6783. fi
  6784. $rm conftest*
  6785. fi
  6786. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6787. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6788. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6789. case $lt_prog_compiler_pic in
  6790. "" | " "*) ;;
  6791. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6792. esac
  6793. else
  6794. lt_prog_compiler_pic=
  6795. lt_prog_compiler_can_build_shared=no
  6796. fi
  6797. fi
  6798. case $host_os in
  6799. # For platforms which do not support PIC, -DPIC is meaningless:
  6800. *djgpp*)
  6801. lt_prog_compiler_pic=
  6802. ;;
  6803. *)
  6804. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6805. ;;
  6806. esac
  6807. #
  6808. # Check to make sure the static flag actually works.
  6809. #
  6810. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6811. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6812. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6813. if test "${lt_prog_compiler_static_works+set}" = set; then
  6814. echo $ECHO_N "(cached) $ECHO_C" >&6
  6815. else
  6816. lt_prog_compiler_static_works=no
  6817. save_LDFLAGS="$LDFLAGS"
  6818. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6819. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6820. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6821. # The linker can only warn and ignore the option if not recognized
  6822. # So say no if there are warnings
  6823. if test -s conftest.err; then
  6824. # Append any errors to the config.log.
  6825. cat conftest.err 1>&5
  6826. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6827. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6828. if diff conftest.exp conftest.er2 >/dev/null; then
  6829. lt_prog_compiler_static_works=yes
  6830. fi
  6831. else
  6832. lt_prog_compiler_static_works=yes
  6833. fi
  6834. fi
  6835. $rm conftest*
  6836. LDFLAGS="$save_LDFLAGS"
  6837. fi
  6838. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6839. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6840. if test x"$lt_prog_compiler_static_works" = xyes; then
  6841. :
  6842. else
  6843. lt_prog_compiler_static=
  6844. fi
  6845. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6846. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6847. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6848. echo $ECHO_N "(cached) $ECHO_C" >&6
  6849. else
  6850. lt_cv_prog_compiler_c_o=no
  6851. $rm -r conftest 2>/dev/null
  6852. mkdir conftest
  6853. cd conftest
  6854. mkdir out
  6855. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6856. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6857. # Insert the option either (1) after the last *FLAGS variable, or
  6858. # (2) before a word containing "conftest.", or (3) at the end.
  6859. # Note that $ac_compile itself does not contain backslashes and begins
  6860. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6861. lt_compile=`echo "$ac_compile" | $SED \
  6862. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6863. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6864. -e 's:$: $lt_compiler_flag:'`
  6865. (eval echo "\"\$as_me:7675: $lt_compile\"" >&5)
  6866. (eval "$lt_compile" 2>out/conftest.err)
  6867. ac_status=$?
  6868. cat out/conftest.err >&5
  6869. echo "$as_me:7679: \$? = $ac_status" >&5
  6870. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6871. then
  6872. # The compiler can only warn and ignore the option if not recognized
  6873. # So say no if there are warnings
  6874. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6875. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6876. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6877. lt_cv_prog_compiler_c_o=yes
  6878. fi
  6879. fi
  6880. chmod u+w . 2>&5
  6881. $rm conftest*
  6882. # SGI C++ compiler will create directory out/ii_files/ for
  6883. # template instantiation
  6884. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6885. $rm out/* && rmdir out
  6886. cd ..
  6887. rmdir conftest
  6888. $rm conftest*
  6889. fi
  6890. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6891. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  6892. hard_links="nottested"
  6893. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6894. # do not overwrite the value of need_locks provided by the user
  6895. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6896. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  6897. hard_links=yes
  6898. $rm conftest*
  6899. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6900. touch conftest.a
  6901. ln conftest.a conftest.b 2>&5 || hard_links=no
  6902. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6903. { echo "$as_me:$LINENO: result: $hard_links" >&5
  6904. echo "${ECHO_T}$hard_links" >&6; }
  6905. if test "$hard_links" = no; then
  6906. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6907. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6908. need_locks=warn
  6909. fi
  6910. else
  6911. need_locks=no
  6912. fi
  6913. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6914. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  6915. runpath_var=
  6916. allow_undefined_flag=
  6917. enable_shared_with_static_runtimes=no
  6918. archive_cmds=
  6919. archive_expsym_cmds=
  6920. old_archive_From_new_cmds=
  6921. old_archive_from_expsyms_cmds=
  6922. export_dynamic_flag_spec=
  6923. whole_archive_flag_spec=
  6924. thread_safe_flag_spec=
  6925. hardcode_libdir_flag_spec=
  6926. hardcode_libdir_flag_spec_ld=
  6927. hardcode_libdir_separator=
  6928. hardcode_direct=no
  6929. hardcode_minus_L=no
  6930. hardcode_shlibpath_var=unsupported
  6931. link_all_deplibs=unknown
  6932. hardcode_automatic=no
  6933. module_cmds=
  6934. module_expsym_cmds=
  6935. always_export_symbols=no
  6936. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6937. # include_expsyms should be a list of space-separated symbols to be *always*
  6938. # included in the symbol list
  6939. include_expsyms=
  6940. # exclude_expsyms can be an extended regexp of symbols to exclude
  6941. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6942. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6943. # as well as any symbol that contains `d'.
  6944. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6945. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6946. # platforms (ab)use it in PIC code, but their linkers get confused if
  6947. # the symbol is explicitly referenced. Since portable code cannot
  6948. # rely on this symbol name, it's probably fine to never include it in
  6949. # preloaded symbol tables.
  6950. extract_expsyms_cmds=
  6951. # Just being paranoid about ensuring that cc_basename is set.
  6952. for cc_temp in $compiler""; do
  6953. case $cc_temp in
  6954. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6955. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6956. \-*) ;;
  6957. *) break;;
  6958. esac
  6959. done
  6960. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6961. case $host_os in
  6962. cygwin* | mingw* | pw32*)
  6963. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6964. # When not using gcc, we currently assume that we are using
  6965. # Microsoft Visual C++.
  6966. if test "$GCC" != yes; then
  6967. with_gnu_ld=no
  6968. fi
  6969. ;;
  6970. interix*)
  6971. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6972. with_gnu_ld=yes
  6973. ;;
  6974. openbsd*)
  6975. with_gnu_ld=no
  6976. ;;
  6977. esac
  6978. ld_shlibs=yes
  6979. if test "$with_gnu_ld" = yes; then
  6980. # If archive_cmds runs LD, not CC, wlarc should be empty
  6981. wlarc='${wl}'
  6982. # Set some defaults for GNU ld with shared library support. These
  6983. # are reset later if shared libraries are not supported. Putting them
  6984. # here allows them to be overridden if necessary.
  6985. runpath_var=LD_RUN_PATH
  6986. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6987. export_dynamic_flag_spec='${wl}--export-dynamic'
  6988. # ancient GNU ld didn't support --whole-archive et. al.
  6989. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6990. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6991. else
  6992. whole_archive_flag_spec=
  6993. fi
  6994. supports_anon_versioning=no
  6995. case `$LD -v 2>/dev/null` in
  6996. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6997. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6998. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6999. *\ 2.11.*) ;; # other 2.11 versions
  7000. *) supports_anon_versioning=yes ;;
  7001. esac
  7002. # See if GNU ld supports shared libraries.
  7003. case $host_os in
  7004. aix3* | aix4* | aix5*)
  7005. # On AIX/PPC, the GNU linker is very broken
  7006. if test "$host_cpu" != ia64; then
  7007. ld_shlibs=no
  7008. cat <<EOF 1>&2
  7009. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7010. *** to be unable to reliably create shared libraries on AIX.
  7011. *** Therefore, libtool is disabling shared libraries support. If you
  7012. *** really care for shared libraries, you may want to modify your PATH
  7013. *** so that a non-GNU linker is found, and then restart.
  7014. EOF
  7015. fi
  7016. ;;
  7017. amigaos*)
  7018. 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)'
  7019. hardcode_libdir_flag_spec='-L$libdir'
  7020. hardcode_minus_L=yes
  7021. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7022. # that the semantics of dynamic libraries on AmigaOS, at least up
  7023. # to version 4, is to share data among multiple programs linked
  7024. # with the same dynamic library. Since this doesn't match the
  7025. # behavior of shared libraries on other platforms, we can't use
  7026. # them.
  7027. ld_shlibs=no
  7028. ;;
  7029. beos*)
  7030. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7031. allow_undefined_flag=unsupported
  7032. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7033. # support --undefined. This deserves some investigation. FIXME
  7034. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7035. else
  7036. ld_shlibs=no
  7037. fi
  7038. ;;
  7039. cygwin* | mingw* | pw32*)
  7040. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7041. # as there is no search path for DLLs.
  7042. hardcode_libdir_flag_spec='-L$libdir'
  7043. allow_undefined_flag=unsupported
  7044. always_export_symbols=no
  7045. enable_shared_with_static_runtimes=yes
  7046. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  7047. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7048. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7049. # If the export-symbols file already is a .def file (1st line
  7050. # is EXPORTS), use it as is; otherwise, prepend...
  7051. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7052. cp $export_symbols $output_objdir/$soname.def;
  7053. else
  7054. echo EXPORTS > $output_objdir/$soname.def;
  7055. cat $export_symbols >> $output_objdir/$soname.def;
  7056. fi~
  7057. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7058. else
  7059. ld_shlibs=no
  7060. fi
  7061. ;;
  7062. interix3*)
  7063. hardcode_direct=no
  7064. hardcode_shlibpath_var=no
  7065. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7066. export_dynamic_flag_spec='${wl}-E'
  7067. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7068. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7069. # default) and relocated if they conflict, which is a slow very memory
  7070. # consuming and fragmenting process. To avoid this, we pick a random,
  7071. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7072. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7073. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7074. 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'
  7075. ;;
  7076. linux*)
  7077. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7078. tmp_addflag=
  7079. case $cc_basename,$host_cpu in
  7080. pgcc*) # Portland Group C compiler
  7081. 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'
  7082. tmp_addflag=' $pic_flag'
  7083. ;;
  7084. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7085. 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'
  7086. tmp_addflag=' $pic_flag -Mnomain' ;;
  7087. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7088. tmp_addflag=' -i_dynamic' ;;
  7089. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7090. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7091. ifc* | ifort*) # Intel Fortran compiler
  7092. tmp_addflag=' -nofor_main' ;;
  7093. esac
  7094. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7095. if test $supports_anon_versioning = yes; then
  7096. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7097. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7098. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7099. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7100. fi
  7101. else
  7102. ld_shlibs=no
  7103. fi
  7104. ;;
  7105. netbsd*)
  7106. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7107. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7108. wlarc=
  7109. else
  7110. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7111. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7112. fi
  7113. ;;
  7114. solaris*)
  7115. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7116. ld_shlibs=no
  7117. cat <<EOF 1>&2
  7118. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7119. *** create shared libraries on Solaris systems. Therefore, libtool
  7120. *** is disabling shared libraries support. We urge you to upgrade GNU
  7121. *** binutils to release 2.9.1 or newer. Another option is to modify
  7122. *** your PATH or compiler configuration so that the native linker is
  7123. *** used, and then restart.
  7124. EOF
  7125. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7126. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7127. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7128. else
  7129. ld_shlibs=no
  7130. fi
  7131. ;;
  7132. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7133. case `$LD -v 2>&1` in
  7134. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7135. ld_shlibs=no
  7136. cat <<_LT_EOF 1>&2
  7137. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7138. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7139. *** is disabling shared libraries support. We urge you to upgrade GNU
  7140. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7141. *** your PATH or compiler configuration so that the native linker is
  7142. *** used, and then restart.
  7143. _LT_EOF
  7144. ;;
  7145. *)
  7146. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7147. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7148. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7149. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7150. else
  7151. ld_shlibs=no
  7152. fi
  7153. ;;
  7154. esac
  7155. ;;
  7156. sunos4*)
  7157. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7158. wlarc=
  7159. hardcode_direct=yes
  7160. hardcode_shlibpath_var=no
  7161. ;;
  7162. *)
  7163. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7164. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7165. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7166. else
  7167. ld_shlibs=no
  7168. fi
  7169. ;;
  7170. esac
  7171. if test "$ld_shlibs" = no; then
  7172. runpath_var=
  7173. hardcode_libdir_flag_spec=
  7174. export_dynamic_flag_spec=
  7175. whole_archive_flag_spec=
  7176. fi
  7177. else
  7178. # PORTME fill in a description of your system's linker (not GNU ld)
  7179. case $host_os in
  7180. aix3*)
  7181. allow_undefined_flag=unsupported
  7182. always_export_symbols=yes
  7183. 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'
  7184. # Note: this linker hardcodes the directories in LIBPATH if there
  7185. # are no directories specified by -L.
  7186. hardcode_minus_L=yes
  7187. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7188. # Neither direct hardcoding nor static linking is supported with a
  7189. # broken collect2.
  7190. hardcode_direct=unsupported
  7191. fi
  7192. ;;
  7193. aix4* | aix5*)
  7194. if test "$host_cpu" = ia64; then
  7195. # On IA64, the linker does run time linking by default, so we don't
  7196. # have to do anything special.
  7197. aix_use_runtimelinking=no
  7198. exp_sym_flag='-Bexport'
  7199. no_entry_flag=""
  7200. else
  7201. # If we're using GNU nm, then we don't want the "-C" option.
  7202. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7203. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7204. 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'
  7205. else
  7206. 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'
  7207. fi
  7208. aix_use_runtimelinking=no
  7209. # Test if we are trying to use run time linking or normal
  7210. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7211. # need to do runtime linking.
  7212. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7213. for ld_flag in $LDFLAGS; do
  7214. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7215. aix_use_runtimelinking=yes
  7216. break
  7217. fi
  7218. done
  7219. ;;
  7220. esac
  7221. exp_sym_flag='-bexport'
  7222. no_entry_flag='-bnoentry'
  7223. fi
  7224. # When large executables or shared objects are built, AIX ld can
  7225. # have problems creating the table of contents. If linking a library
  7226. # or program results in "error TOC overflow" add -mminimal-toc to
  7227. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7228. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7229. archive_cmds=''
  7230. hardcode_direct=yes
  7231. hardcode_libdir_separator=':'
  7232. link_all_deplibs=yes
  7233. if test "$GCC" = yes; then
  7234. case $host_os in aix4.[012]|aix4.[012].*)
  7235. # We only want to do this on AIX 4.2 and lower, the check
  7236. # below for broken collect2 doesn't work under 4.3+
  7237. collect2name=`${CC} -print-prog-name=collect2`
  7238. if test -f "$collect2name" && \
  7239. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7240. then
  7241. # We have reworked collect2
  7242. hardcode_direct=yes
  7243. else
  7244. # We have old collect2
  7245. hardcode_direct=unsupported
  7246. # It fails to find uninstalled libraries when the uninstalled
  7247. # path is not listed in the libpath. Setting hardcode_minus_L
  7248. # to unsupported forces relinking
  7249. hardcode_minus_L=yes
  7250. hardcode_libdir_flag_spec='-L$libdir'
  7251. hardcode_libdir_separator=
  7252. fi
  7253. ;;
  7254. esac
  7255. shared_flag='-shared'
  7256. if test "$aix_use_runtimelinking" = yes; then
  7257. shared_flag="$shared_flag "'${wl}-G'
  7258. fi
  7259. else
  7260. # not using gcc
  7261. if test "$host_cpu" = ia64; then
  7262. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7263. # chokes on -Wl,-G. The following line is correct:
  7264. shared_flag='-G'
  7265. else
  7266. if test "$aix_use_runtimelinking" = yes; then
  7267. shared_flag='${wl}-G'
  7268. else
  7269. shared_flag='${wl}-bM:SRE'
  7270. fi
  7271. fi
  7272. fi
  7273. # It seems that -bexpall does not export symbols beginning with
  7274. # underscore (_), so it is better to generate a list of symbols to export.
  7275. always_export_symbols=yes
  7276. if test "$aix_use_runtimelinking" = yes; then
  7277. # Warning - without using the other runtime loading flags (-brtl),
  7278. # -berok will link without error, but may produce a broken library.
  7279. allow_undefined_flag='-berok'
  7280. # Determine the default libpath from the value encoded in an empty executable.
  7281. cat >conftest.$ac_ext <<_ACEOF
  7282. /* confdefs.h. */
  7283. _ACEOF
  7284. cat confdefs.h >>conftest.$ac_ext
  7285. cat >>conftest.$ac_ext <<_ACEOF
  7286. /* end confdefs.h. */
  7287. int
  7288. main ()
  7289. {
  7290. ;
  7291. return 0;
  7292. }
  7293. _ACEOF
  7294. rm -f conftest.$ac_objext conftest$ac_exeext
  7295. if { (ac_try="$ac_link"
  7296. case "(($ac_try" in
  7297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7298. *) ac_try_echo=$ac_try;;
  7299. esac
  7300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7301. (eval "$ac_link") 2>conftest.er1
  7302. ac_status=$?
  7303. grep -v '^ *+' conftest.er1 >conftest.err
  7304. rm -f conftest.er1
  7305. cat conftest.err >&5
  7306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7307. (exit $ac_status); } && {
  7308. test -z "$ac_c_werror_flag" ||
  7309. test ! -s conftest.err
  7310. } && test -s conftest$ac_exeext &&
  7311. $as_test_x conftest$ac_exeext; then
  7312. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7313. }'`
  7314. # Check for a 64-bit object if we didn't find anything.
  7315. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7316. }'`; fi
  7317. else
  7318. echo "$as_me: failed program was:" >&5
  7319. sed 's/^/| /' conftest.$ac_ext >&5
  7320. fi
  7321. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7322. conftest$ac_exeext conftest.$ac_ext
  7323. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7324. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7325. 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"
  7326. else
  7327. if test "$host_cpu" = ia64; then
  7328. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7329. allow_undefined_flag="-z nodefs"
  7330. 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"
  7331. else
  7332. # Determine the default libpath from the value encoded in an empty executable.
  7333. cat >conftest.$ac_ext <<_ACEOF
  7334. /* confdefs.h. */
  7335. _ACEOF
  7336. cat confdefs.h >>conftest.$ac_ext
  7337. cat >>conftest.$ac_ext <<_ACEOF
  7338. /* end confdefs.h. */
  7339. int
  7340. main ()
  7341. {
  7342. ;
  7343. return 0;
  7344. }
  7345. _ACEOF
  7346. rm -f conftest.$ac_objext conftest$ac_exeext
  7347. if { (ac_try="$ac_link"
  7348. case "(($ac_try" in
  7349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7350. *) ac_try_echo=$ac_try;;
  7351. esac
  7352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7353. (eval "$ac_link") 2>conftest.er1
  7354. ac_status=$?
  7355. grep -v '^ *+' conftest.er1 >conftest.err
  7356. rm -f conftest.er1
  7357. cat conftest.err >&5
  7358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7359. (exit $ac_status); } && {
  7360. test -z "$ac_c_werror_flag" ||
  7361. test ! -s conftest.err
  7362. } && test -s conftest$ac_exeext &&
  7363. $as_test_x conftest$ac_exeext; then
  7364. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7365. }'`
  7366. # Check for a 64-bit object if we didn't find anything.
  7367. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  7368. }'`; fi
  7369. else
  7370. echo "$as_me: failed program was:" >&5
  7371. sed 's/^/| /' conftest.$ac_ext >&5
  7372. fi
  7373. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7374. conftest$ac_exeext conftest.$ac_ext
  7375. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7376. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7377. # Warning - without using the other run time loading flags,
  7378. # -berok will link without error, but may produce a broken library.
  7379. no_undefined_flag=' ${wl}-bernotok'
  7380. allow_undefined_flag=' ${wl}-berok'
  7381. # Exported symbols can be pulled into shared objects from archives
  7382. whole_archive_flag_spec='$convenience'
  7383. archive_cmds_need_lc=yes
  7384. # This is similar to how AIX traditionally builds its shared libraries.
  7385. 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'
  7386. fi
  7387. fi
  7388. ;;
  7389. amigaos*)
  7390. 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)'
  7391. hardcode_libdir_flag_spec='-L$libdir'
  7392. hardcode_minus_L=yes
  7393. # see comment about different semantics on the GNU ld section
  7394. ld_shlibs=no
  7395. ;;
  7396. bsdi[45]*)
  7397. export_dynamic_flag_spec=-rdynamic
  7398. ;;
  7399. cygwin* | mingw* | pw32*)
  7400. # When not using gcc, we currently assume that we are using
  7401. # Microsoft Visual C++.
  7402. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7403. # no search path for DLLs.
  7404. hardcode_libdir_flag_spec=' '
  7405. allow_undefined_flag=unsupported
  7406. # Tell ltmain to make .lib files, not .a files.
  7407. libext=lib
  7408. # Tell ltmain to make .dll files, not .so files.
  7409. shrext_cmds=".dll"
  7410. # FIXME: Setting linknames here is a bad hack.
  7411. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7412. # The linker will automatically build a .lib file if we build a DLL.
  7413. old_archive_From_new_cmds='true'
  7414. # FIXME: Should let the user specify the lib program.
  7415. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  7416. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7417. enable_shared_with_static_runtimes=yes
  7418. ;;
  7419. darwin* | rhapsody*)
  7420. case $host_os in
  7421. rhapsody* | darwin1.[012])
  7422. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7423. ;;
  7424. *) # Darwin 1.3 on
  7425. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7426. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7427. else
  7428. case ${MACOSX_DEPLOYMENT_TARGET} in
  7429. 10.[012])
  7430. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7431. ;;
  7432. 10.*)
  7433. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7434. ;;
  7435. esac
  7436. fi
  7437. ;;
  7438. esac
  7439. archive_cmds_need_lc=no
  7440. hardcode_direct=no
  7441. hardcode_automatic=yes
  7442. hardcode_shlibpath_var=unsupported
  7443. whole_archive_flag_spec=''
  7444. link_all_deplibs=yes
  7445. if test "$GCC" = yes ; then
  7446. output_verbose_link_cmd='echo'
  7447. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7448. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7449. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7450. 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}'
  7451. 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}'
  7452. else
  7453. case $cc_basename in
  7454. xlc*)
  7455. output_verbose_link_cmd='echo'
  7456. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  7457. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7458. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7459. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7460. 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}'
  7461. ;;
  7462. *)
  7463. ld_shlibs=no
  7464. ;;
  7465. esac
  7466. fi
  7467. ;;
  7468. dgux*)
  7469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7470. hardcode_libdir_flag_spec='-L$libdir'
  7471. hardcode_shlibpath_var=no
  7472. ;;
  7473. freebsd1*)
  7474. ld_shlibs=no
  7475. ;;
  7476. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7477. # support. Future versions do this automatically, but an explicit c++rt0.o
  7478. # does not break anything, and helps significantly (at the cost of a little
  7479. # extra space).
  7480. freebsd2.2*)
  7481. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7482. hardcode_libdir_flag_spec='-R$libdir'
  7483. hardcode_direct=yes
  7484. hardcode_shlibpath_var=no
  7485. ;;
  7486. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7487. freebsd2*)
  7488. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7489. hardcode_direct=yes
  7490. hardcode_minus_L=yes
  7491. hardcode_shlibpath_var=no
  7492. ;;
  7493. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7494. freebsd* | kfreebsd*-gnu | dragonfly*)
  7495. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7496. hardcode_libdir_flag_spec='-R$libdir'
  7497. hardcode_direct=yes
  7498. hardcode_shlibpath_var=no
  7499. ;;
  7500. hpux9*)
  7501. if test "$GCC" = yes; then
  7502. 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'
  7503. else
  7504. 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'
  7505. fi
  7506. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7507. hardcode_libdir_separator=:
  7508. hardcode_direct=yes
  7509. # hardcode_minus_L: Not really in the search PATH,
  7510. # but as the default location of the library.
  7511. hardcode_minus_L=yes
  7512. export_dynamic_flag_spec='${wl}-E'
  7513. ;;
  7514. hpux10*)
  7515. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7516. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7517. else
  7518. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7519. fi
  7520. if test "$with_gnu_ld" = no; then
  7521. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7522. hardcode_libdir_separator=:
  7523. hardcode_direct=yes
  7524. export_dynamic_flag_spec='${wl}-E'
  7525. # hardcode_minus_L: Not really in the search PATH,
  7526. # but as the default location of the library.
  7527. hardcode_minus_L=yes
  7528. fi
  7529. ;;
  7530. hpux11*)
  7531. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7532. case $host_cpu in
  7533. hppa*64*)
  7534. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7535. ;;
  7536. ia64*)
  7537. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7538. ;;
  7539. *)
  7540. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7541. ;;
  7542. esac
  7543. else
  7544. case $host_cpu in
  7545. hppa*64*)
  7546. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7547. ;;
  7548. ia64*)
  7549. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7550. ;;
  7551. *)
  7552. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7553. ;;
  7554. esac
  7555. fi
  7556. if test "$with_gnu_ld" = no; then
  7557. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7558. hardcode_libdir_separator=:
  7559. case $host_cpu in
  7560. hppa*64*|ia64*)
  7561. hardcode_libdir_flag_spec_ld='+b $libdir'
  7562. hardcode_direct=no
  7563. hardcode_shlibpath_var=no
  7564. ;;
  7565. *)
  7566. hardcode_direct=yes
  7567. export_dynamic_flag_spec='${wl}-E'
  7568. # hardcode_minus_L: Not really in the search PATH,
  7569. # but as the default location of the library.
  7570. hardcode_minus_L=yes
  7571. ;;
  7572. esac
  7573. fi
  7574. ;;
  7575. irix5* | irix6* | nonstopux*)
  7576. if test "$GCC" = yes; then
  7577. 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'
  7578. else
  7579. 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'
  7580. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7581. fi
  7582. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7583. hardcode_libdir_separator=:
  7584. link_all_deplibs=yes
  7585. ;;
  7586. netbsd*)
  7587. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7588. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7589. else
  7590. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7591. fi
  7592. hardcode_libdir_flag_spec='-R$libdir'
  7593. hardcode_direct=yes
  7594. hardcode_shlibpath_var=no
  7595. ;;
  7596. newsos6)
  7597. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7598. hardcode_direct=yes
  7599. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7600. hardcode_libdir_separator=:
  7601. hardcode_shlibpath_var=no
  7602. ;;
  7603. openbsd*)
  7604. hardcode_direct=yes
  7605. hardcode_shlibpath_var=no
  7606. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7607. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7608. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7609. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7610. export_dynamic_flag_spec='${wl}-E'
  7611. else
  7612. case $host_os in
  7613. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7614. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7615. hardcode_libdir_flag_spec='-R$libdir'
  7616. ;;
  7617. *)
  7618. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7619. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7620. ;;
  7621. esac
  7622. fi
  7623. ;;
  7624. os2*)
  7625. hardcode_libdir_flag_spec='-L$libdir'
  7626. hardcode_minus_L=yes
  7627. allow_undefined_flag=unsupported
  7628. 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'
  7629. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7630. ;;
  7631. osf3*)
  7632. if test "$GCC" = yes; then
  7633. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7634. 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'
  7635. else
  7636. allow_undefined_flag=' -expect_unresolved \*'
  7637. 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'
  7638. fi
  7639. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7640. hardcode_libdir_separator=:
  7641. ;;
  7642. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7643. if test "$GCC" = yes; then
  7644. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7645. 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'
  7646. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7647. else
  7648. allow_undefined_flag=' -expect_unresolved \*'
  7649. 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'
  7650. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7651. $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'
  7652. # Both c and cxx compiler support -rpath directly
  7653. hardcode_libdir_flag_spec='-rpath $libdir'
  7654. fi
  7655. hardcode_libdir_separator=:
  7656. ;;
  7657. solaris*)
  7658. no_undefined_flag=' -z text'
  7659. if test "$GCC" = yes; then
  7660. wlarc='${wl}'
  7661. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7662. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7663. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7664. else
  7665. wlarc=''
  7666. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7667. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7668. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7669. fi
  7670. hardcode_libdir_flag_spec='-R$libdir'
  7671. hardcode_shlibpath_var=no
  7672. case $host_os in
  7673. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7674. *)
  7675. # The compiler driver will combine linker options so we
  7676. # cannot just pass the convience library names through
  7677. # without $wl, iff we do not link with $LD.
  7678. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7679. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7680. case $wlarc in
  7681. '')
  7682. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7683. *)
  7684. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  7685. esac ;;
  7686. esac
  7687. link_all_deplibs=yes
  7688. ;;
  7689. sunos4*)
  7690. if test "x$host_vendor" = xsequent; then
  7691. # Use $CC to link under sequent, because it throws in some extra .o
  7692. # files that make .init and .fini sections work.
  7693. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7694. else
  7695. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7696. fi
  7697. hardcode_libdir_flag_spec='-L$libdir'
  7698. hardcode_direct=yes
  7699. hardcode_minus_L=yes
  7700. hardcode_shlibpath_var=no
  7701. ;;
  7702. sysv4)
  7703. case $host_vendor in
  7704. sni)
  7705. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7706. hardcode_direct=yes # is this really true???
  7707. ;;
  7708. siemens)
  7709. ## LD is ld it makes a PLAMLIB
  7710. ## CC just makes a GrossModule.
  7711. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7712. reload_cmds='$CC -r -o $output$reload_objs'
  7713. hardcode_direct=no
  7714. ;;
  7715. motorola)
  7716. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7717. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7718. ;;
  7719. esac
  7720. runpath_var='LD_RUN_PATH'
  7721. hardcode_shlibpath_var=no
  7722. ;;
  7723. sysv4.3*)
  7724. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7725. hardcode_shlibpath_var=no
  7726. export_dynamic_flag_spec='-Bexport'
  7727. ;;
  7728. sysv4*MP*)
  7729. if test -d /usr/nec; then
  7730. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7731. hardcode_shlibpath_var=no
  7732. runpath_var=LD_RUN_PATH
  7733. hardcode_runpath_var=yes
  7734. ld_shlibs=yes
  7735. fi
  7736. ;;
  7737. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7738. no_undefined_flag='${wl}-z,text'
  7739. archive_cmds_need_lc=no
  7740. hardcode_shlibpath_var=no
  7741. runpath_var='LD_RUN_PATH'
  7742. if test "$GCC" = yes; then
  7743. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7744. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7745. else
  7746. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7747. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7748. fi
  7749. ;;
  7750. sysv5* | sco3.2v5* | sco5v6*)
  7751. # Note: We can NOT use -z defs as we might desire, because we do not
  7752. # link with -lc, and that would cause any symbols used from libc to
  7753. # always be unresolved, which means just about no library would
  7754. # ever link correctly. If we're not using GNU ld we use -z text
  7755. # though, which does catch some bad symbols but isn't as heavy-handed
  7756. # as -z defs.
  7757. no_undefined_flag='${wl}-z,text'
  7758. allow_undefined_flag='${wl}-z,nodefs'
  7759. archive_cmds_need_lc=no
  7760. hardcode_shlibpath_var=no
  7761. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7762. hardcode_libdir_separator=':'
  7763. link_all_deplibs=yes
  7764. export_dynamic_flag_spec='${wl}-Bexport'
  7765. runpath_var='LD_RUN_PATH'
  7766. if test "$GCC" = yes; then
  7767. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7768. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7769. else
  7770. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7771. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7772. fi
  7773. ;;
  7774. uts4*)
  7775. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7776. hardcode_libdir_flag_spec='-L$libdir'
  7777. hardcode_shlibpath_var=no
  7778. ;;
  7779. *)
  7780. ld_shlibs=no
  7781. ;;
  7782. esac
  7783. fi
  7784. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7785. echo "${ECHO_T}$ld_shlibs" >&6; }
  7786. test "$ld_shlibs" = no && can_build_shared=no
  7787. #
  7788. # Do we need to explicitly link libc?
  7789. #
  7790. case "x$archive_cmds_need_lc" in
  7791. x|xyes)
  7792. # Assume -lc should be added
  7793. archive_cmds_need_lc=yes
  7794. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7795. case $archive_cmds in
  7796. *'~'*)
  7797. # FIXME: we may have to deal with multi-command sequences.
  7798. ;;
  7799. '$CC '*)
  7800. # Test whether the compiler implicitly links with -lc since on some
  7801. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7802. # to ld, don't add -lc before -lgcc.
  7803. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7804. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7805. $rm conftest*
  7806. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7807. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7808. (eval $ac_compile) 2>&5
  7809. ac_status=$?
  7810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7811. (exit $ac_status); } 2>conftest.err; then
  7812. soname=conftest
  7813. lib=conftest
  7814. libobjs=conftest.$ac_objext
  7815. deplibs=
  7816. wl=$lt_prog_compiler_wl
  7817. pic_flag=$lt_prog_compiler_pic
  7818. compiler_flags=-v
  7819. linker_flags=-v
  7820. verstring=
  7821. output_objdir=.
  7822. libname=conftest
  7823. lt_save_allow_undefined_flag=$allow_undefined_flag
  7824. allow_undefined_flag=
  7825. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7826. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7827. ac_status=$?
  7828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. (exit $ac_status); }
  7830. then
  7831. archive_cmds_need_lc=no
  7832. else
  7833. archive_cmds_need_lc=yes
  7834. fi
  7835. allow_undefined_flag=$lt_save_allow_undefined_flag
  7836. else
  7837. cat conftest.err 1>&5
  7838. fi
  7839. $rm conftest*
  7840. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7841. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  7842. ;;
  7843. esac
  7844. fi
  7845. ;;
  7846. esac
  7847. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7848. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  7849. library_names_spec=
  7850. libname_spec='lib$name'
  7851. soname_spec=
  7852. shrext_cmds=".so"
  7853. postinstall_cmds=
  7854. postuninstall_cmds=
  7855. finish_cmds=
  7856. finish_eval=
  7857. shlibpath_var=
  7858. shlibpath_overrides_runpath=unknown
  7859. version_type=none
  7860. dynamic_linker="$host_os ld.so"
  7861. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7862. if test "$GCC" = yes; then
  7863. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7864. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7865. # if the path contains ";" then we assume it to be the separator
  7866. # otherwise default to the standard path separator (i.e. ":") - it is
  7867. # assumed that no part of a normal pathname contains ";" but that should
  7868. # okay in the real world where ";" in dirpaths is itself problematic.
  7869. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7870. else
  7871. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7872. fi
  7873. else
  7874. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7875. fi
  7876. need_lib_prefix=unknown
  7877. hardcode_into_libs=no
  7878. # when you set need_version to no, make sure it does not cause -set_version
  7879. # flags to be left without arguments
  7880. need_version=unknown
  7881. case $host_os in
  7882. aix3*)
  7883. version_type=linux
  7884. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7885. shlibpath_var=LIBPATH
  7886. # AIX 3 has no versioning support, so we append a major version to the name.
  7887. soname_spec='${libname}${release}${shared_ext}$major'
  7888. ;;
  7889. aix4* | aix5*)
  7890. version_type=linux
  7891. need_lib_prefix=no
  7892. need_version=no
  7893. hardcode_into_libs=yes
  7894. if test "$host_cpu" = ia64; then
  7895. # AIX 5 supports IA64
  7896. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7897. shlibpath_var=LD_LIBRARY_PATH
  7898. else
  7899. # With GCC up to 2.95.x, collect2 would create an import file
  7900. # for dependence libraries. The import file would start with
  7901. # the line `#! .'. This would cause the generated library to
  7902. # depend on `.', always an invalid library. This was fixed in
  7903. # development snapshots of GCC prior to 3.0.
  7904. case $host_os in
  7905. aix4 | aix4.[01] | aix4.[01].*)
  7906. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7907. echo ' yes '
  7908. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7909. :
  7910. else
  7911. can_build_shared=no
  7912. fi
  7913. ;;
  7914. esac
  7915. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7916. # soname into executable. Probably we can add versioning support to
  7917. # collect2, so additional links can be useful in future.
  7918. if test "$aix_use_runtimelinking" = yes; then
  7919. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7920. # instead of lib<name>.a to let people know that these are not
  7921. # typical AIX shared libraries.
  7922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7923. else
  7924. # We preserve .a as extension for shared libraries through AIX4.2
  7925. # and later when we are not doing run time linking.
  7926. library_names_spec='${libname}${release}.a $libname.a'
  7927. soname_spec='${libname}${release}${shared_ext}$major'
  7928. fi
  7929. shlibpath_var=LIBPATH
  7930. fi
  7931. ;;
  7932. amigaos*)
  7933. library_names_spec='$libname.ixlibrary $libname.a'
  7934. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7935. 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'
  7936. ;;
  7937. beos*)
  7938. library_names_spec='${libname}${shared_ext}'
  7939. dynamic_linker="$host_os ld.so"
  7940. shlibpath_var=LIBRARY_PATH
  7941. ;;
  7942. bsdi[45]*)
  7943. version_type=linux
  7944. need_version=no
  7945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7946. soname_spec='${libname}${release}${shared_ext}$major'
  7947. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7948. shlibpath_var=LD_LIBRARY_PATH
  7949. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7950. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7951. # the default ld.so.conf also contains /usr/contrib/lib and
  7952. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7953. # libtool to hard-code these into programs
  7954. ;;
  7955. cygwin* | mingw* | pw32*)
  7956. version_type=windows
  7957. shrext_cmds=".dll"
  7958. need_version=no
  7959. need_lib_prefix=no
  7960. case $GCC,$host_os in
  7961. yes,cygwin* | yes,mingw* | yes,pw32*)
  7962. library_names_spec='$libname.dll.a'
  7963. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7964. postinstall_cmds='base_file=`basename \${file}`~
  7965. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7966. dldir=$destdir/`dirname \$dlpath`~
  7967. test -d \$dldir || mkdir -p \$dldir~
  7968. $install_prog $dir/$dlname \$dldir/$dlname~
  7969. chmod a+x \$dldir/$dlname'
  7970. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7971. dlpath=$dir/\$dldll~
  7972. $rm \$dlpath'
  7973. shlibpath_overrides_runpath=yes
  7974. case $host_os in
  7975. cygwin*)
  7976. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7977. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7978. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7979. ;;
  7980. mingw*)
  7981. # MinGW DLLs use traditional 'lib' prefix
  7982. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7983. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7984. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7985. # It is most probably a Windows format PATH printed by
  7986. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7987. # path with ; separators, and with drive letters. We can handle the
  7988. # drive letters (cygwin fileutils understands them), so leave them,
  7989. # especially as we might pass files found there to a mingw objdump,
  7990. # which wouldn't understand a cygwinified path. Ahh.
  7991. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7992. else
  7993. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7994. fi
  7995. ;;
  7996. pw32*)
  7997. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7998. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7999. ;;
  8000. esac
  8001. ;;
  8002. *)
  8003. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8004. ;;
  8005. esac
  8006. dynamic_linker='Win32 ld.exe'
  8007. # FIXME: first we should search . and the directory the executable is in
  8008. shlibpath_var=PATH
  8009. ;;
  8010. darwin* | rhapsody*)
  8011. dynamic_linker="$host_os dyld"
  8012. version_type=darwin
  8013. need_lib_prefix=no
  8014. need_version=no
  8015. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8016. soname_spec='${libname}${release}${major}$shared_ext'
  8017. shlibpath_overrides_runpath=yes
  8018. shlibpath_var=DYLD_LIBRARY_PATH
  8019. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8020. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  8021. if test "$GCC" = yes; then
  8022. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  8023. else
  8024. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  8025. fi
  8026. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8027. ;;
  8028. dgux*)
  8029. version_type=linux
  8030. need_lib_prefix=no
  8031. need_version=no
  8032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8033. soname_spec='${libname}${release}${shared_ext}$major'
  8034. shlibpath_var=LD_LIBRARY_PATH
  8035. ;;
  8036. freebsd1*)
  8037. dynamic_linker=no
  8038. ;;
  8039. kfreebsd*-gnu)
  8040. version_type=linux
  8041. need_lib_prefix=no
  8042. need_version=no
  8043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8044. soname_spec='${libname}${release}${shared_ext}$major'
  8045. shlibpath_var=LD_LIBRARY_PATH
  8046. shlibpath_overrides_runpath=no
  8047. hardcode_into_libs=yes
  8048. dynamic_linker='GNU ld.so'
  8049. ;;
  8050. freebsd* | dragonfly*)
  8051. # DragonFly does not have aout. When/if they implement a new
  8052. # versioning mechanism, adjust this.
  8053. if test -x /usr/bin/objformat; then
  8054. objformat=`/usr/bin/objformat`
  8055. else
  8056. case $host_os in
  8057. freebsd[123]*) objformat=aout ;;
  8058. *) objformat=elf ;;
  8059. esac
  8060. fi
  8061. version_type=freebsd-$objformat
  8062. case $version_type in
  8063. freebsd-elf*)
  8064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8065. need_version=no
  8066. need_lib_prefix=no
  8067. ;;
  8068. freebsd-*)
  8069. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8070. need_version=yes
  8071. ;;
  8072. esac
  8073. shlibpath_var=LD_LIBRARY_PATH
  8074. case $host_os in
  8075. freebsd2*)
  8076. shlibpath_overrides_runpath=yes
  8077. ;;
  8078. freebsd3.[01]* | freebsdelf3.[01]*)
  8079. shlibpath_overrides_runpath=yes
  8080. hardcode_into_libs=yes
  8081. ;;
  8082. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8083. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8084. shlibpath_overrides_runpath=no
  8085. hardcode_into_libs=yes
  8086. ;;
  8087. freebsd*) # from 4.6 on
  8088. shlibpath_overrides_runpath=yes
  8089. hardcode_into_libs=yes
  8090. ;;
  8091. esac
  8092. ;;
  8093. gnu*)
  8094. version_type=linux
  8095. need_lib_prefix=no
  8096. need_version=no
  8097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8098. soname_spec='${libname}${release}${shared_ext}$major'
  8099. shlibpath_var=LD_LIBRARY_PATH
  8100. hardcode_into_libs=yes
  8101. ;;
  8102. hpux9* | hpux10* | hpux11*)
  8103. # Give a soname corresponding to the major version so that dld.sl refuses to
  8104. # link against other versions.
  8105. version_type=sunos
  8106. need_lib_prefix=no
  8107. need_version=no
  8108. case $host_cpu in
  8109. ia64*)
  8110. shrext_cmds='.so'
  8111. hardcode_into_libs=yes
  8112. dynamic_linker="$host_os dld.so"
  8113. shlibpath_var=LD_LIBRARY_PATH
  8114. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8116. soname_spec='${libname}${release}${shared_ext}$major'
  8117. if test "X$HPUX_IA64_MODE" = X32; then
  8118. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8119. else
  8120. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8121. fi
  8122. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8123. ;;
  8124. hppa*64*)
  8125. shrext_cmds='.sl'
  8126. hardcode_into_libs=yes
  8127. dynamic_linker="$host_os dld.sl"
  8128. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8129. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8131. soname_spec='${libname}${release}${shared_ext}$major'
  8132. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8133. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8134. ;;
  8135. *)
  8136. shrext_cmds='.sl'
  8137. dynamic_linker="$host_os dld.sl"
  8138. shlibpath_var=SHLIB_PATH
  8139. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8141. soname_spec='${libname}${release}${shared_ext}$major'
  8142. ;;
  8143. esac
  8144. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8145. postinstall_cmds='chmod 555 $lib'
  8146. ;;
  8147. interix3*)
  8148. version_type=linux
  8149. need_lib_prefix=no
  8150. need_version=no
  8151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8152. soname_spec='${libname}${release}${shared_ext}$major'
  8153. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8154. shlibpath_var=LD_LIBRARY_PATH
  8155. shlibpath_overrides_runpath=no
  8156. hardcode_into_libs=yes
  8157. ;;
  8158. irix5* | irix6* | nonstopux*)
  8159. case $host_os in
  8160. nonstopux*) version_type=nonstopux ;;
  8161. *)
  8162. if test "$lt_cv_prog_gnu_ld" = yes; then
  8163. version_type=linux
  8164. else
  8165. version_type=irix
  8166. fi ;;
  8167. esac
  8168. need_lib_prefix=no
  8169. need_version=no
  8170. soname_spec='${libname}${release}${shared_ext}$major'
  8171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8172. case $host_os in
  8173. irix5* | nonstopux*)
  8174. libsuff= shlibsuff=
  8175. ;;
  8176. *)
  8177. case $LD in # libtool.m4 will add one of these switches to LD
  8178. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8179. libsuff= shlibsuff= libmagic=32-bit;;
  8180. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8181. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8182. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8183. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8184. *) libsuff= shlibsuff= libmagic=never-match;;
  8185. esac
  8186. ;;
  8187. esac
  8188. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8189. shlibpath_overrides_runpath=no
  8190. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8191. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8192. hardcode_into_libs=yes
  8193. ;;
  8194. # No shared lib support for Linux oldld, aout, or coff.
  8195. linux*oldld* | linux*aout* | linux*coff*)
  8196. dynamic_linker=no
  8197. ;;
  8198. # This must be Linux ELF.
  8199. linux*)
  8200. version_type=linux
  8201. need_lib_prefix=no
  8202. need_version=no
  8203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8204. soname_spec='${libname}${release}${shared_ext}$major'
  8205. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8206. shlibpath_var=LD_LIBRARY_PATH
  8207. shlibpath_overrides_runpath=no
  8208. # This implies no fast_install, which is unacceptable.
  8209. # Some rework will be needed to allow for fast_install
  8210. # before this can be enabled.
  8211. hardcode_into_libs=yes
  8212. # Append ld.so.conf contents to the search path
  8213. if test -f /etc/ld.so.conf; then
  8214. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8215. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8216. fi
  8217. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8218. # powerpc, because MkLinux only supported shared libraries with the
  8219. # GNU dynamic linker. Since this was broken with cross compilers,
  8220. # most powerpc-linux boxes support dynamic linking these days and
  8221. # people can always --disable-shared, the test was removed, and we
  8222. # assume the GNU/Linux dynamic linker is in use.
  8223. dynamic_linker='GNU/Linux ld.so'
  8224. ;;
  8225. knetbsd*-gnu)
  8226. version_type=linux
  8227. need_lib_prefix=no
  8228. need_version=no
  8229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8230. soname_spec='${libname}${release}${shared_ext}$major'
  8231. shlibpath_var=LD_LIBRARY_PATH
  8232. shlibpath_overrides_runpath=no
  8233. hardcode_into_libs=yes
  8234. dynamic_linker='GNU ld.so'
  8235. ;;
  8236. netbsd*)
  8237. version_type=sunos
  8238. need_lib_prefix=no
  8239. need_version=no
  8240. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8242. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8243. dynamic_linker='NetBSD (a.out) ld.so'
  8244. else
  8245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8246. soname_spec='${libname}${release}${shared_ext}$major'
  8247. dynamic_linker='NetBSD ld.elf_so'
  8248. fi
  8249. shlibpath_var=LD_LIBRARY_PATH
  8250. shlibpath_overrides_runpath=yes
  8251. hardcode_into_libs=yes
  8252. ;;
  8253. newsos6)
  8254. version_type=linux
  8255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8256. shlibpath_var=LD_LIBRARY_PATH
  8257. shlibpath_overrides_runpath=yes
  8258. ;;
  8259. nto-qnx*)
  8260. version_type=linux
  8261. need_lib_prefix=no
  8262. need_version=no
  8263. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8264. soname_spec='${libname}${release}${shared_ext}$major'
  8265. shlibpath_var=LD_LIBRARY_PATH
  8266. shlibpath_overrides_runpath=yes
  8267. ;;
  8268. openbsd*)
  8269. version_type=sunos
  8270. sys_lib_dlsearch_path_spec="/usr/lib"
  8271. need_lib_prefix=no
  8272. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8273. case $host_os in
  8274. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8275. *) need_version=no ;;
  8276. esac
  8277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8278. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8279. shlibpath_var=LD_LIBRARY_PATH
  8280. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8281. case $host_os in
  8282. openbsd2.[89] | openbsd2.[89].*)
  8283. shlibpath_overrides_runpath=no
  8284. ;;
  8285. *)
  8286. shlibpath_overrides_runpath=yes
  8287. ;;
  8288. esac
  8289. else
  8290. shlibpath_overrides_runpath=yes
  8291. fi
  8292. ;;
  8293. os2*)
  8294. libname_spec='$name'
  8295. shrext_cmds=".dll"
  8296. need_lib_prefix=no
  8297. library_names_spec='$libname${shared_ext} $libname.a'
  8298. dynamic_linker='OS/2 ld.exe'
  8299. shlibpath_var=LIBPATH
  8300. ;;
  8301. osf3* | osf4* | osf5*)
  8302. version_type=osf
  8303. need_lib_prefix=no
  8304. need_version=no
  8305. soname_spec='${libname}${release}${shared_ext}$major'
  8306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8307. shlibpath_var=LD_LIBRARY_PATH
  8308. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8309. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8310. ;;
  8311. solaris*)
  8312. version_type=linux
  8313. need_lib_prefix=no
  8314. need_version=no
  8315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8316. soname_spec='${libname}${release}${shared_ext}$major'
  8317. shlibpath_var=LD_LIBRARY_PATH
  8318. shlibpath_overrides_runpath=yes
  8319. hardcode_into_libs=yes
  8320. # ldd complains unless libraries are executable
  8321. postinstall_cmds='chmod +x $lib'
  8322. ;;
  8323. sunos4*)
  8324. version_type=sunos
  8325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8326. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8327. shlibpath_var=LD_LIBRARY_PATH
  8328. shlibpath_overrides_runpath=yes
  8329. if test "$with_gnu_ld" = yes; then
  8330. need_lib_prefix=no
  8331. fi
  8332. need_version=yes
  8333. ;;
  8334. sysv4 | sysv4.3*)
  8335. version_type=linux
  8336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8337. soname_spec='${libname}${release}${shared_ext}$major'
  8338. shlibpath_var=LD_LIBRARY_PATH
  8339. case $host_vendor in
  8340. sni)
  8341. shlibpath_overrides_runpath=no
  8342. need_lib_prefix=no
  8343. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8344. runpath_var=LD_RUN_PATH
  8345. ;;
  8346. siemens)
  8347. need_lib_prefix=no
  8348. ;;
  8349. motorola)
  8350. need_lib_prefix=no
  8351. need_version=no
  8352. shlibpath_overrides_runpath=no
  8353. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8354. ;;
  8355. esac
  8356. ;;
  8357. sysv4*MP*)
  8358. if test -d /usr/nec ;then
  8359. version_type=linux
  8360. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8361. soname_spec='$libname${shared_ext}.$major'
  8362. shlibpath_var=LD_LIBRARY_PATH
  8363. fi
  8364. ;;
  8365. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8366. version_type=freebsd-elf
  8367. need_lib_prefix=no
  8368. need_version=no
  8369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8370. soname_spec='${libname}${release}${shared_ext}$major'
  8371. shlibpath_var=LD_LIBRARY_PATH
  8372. hardcode_into_libs=yes
  8373. if test "$with_gnu_ld" = yes; then
  8374. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8375. shlibpath_overrides_runpath=no
  8376. else
  8377. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8378. shlibpath_overrides_runpath=yes
  8379. case $host_os in
  8380. sco3.2v5*)
  8381. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8382. ;;
  8383. esac
  8384. fi
  8385. sys_lib_dlsearch_path_spec='/usr/lib'
  8386. ;;
  8387. uts4*)
  8388. version_type=linux
  8389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8390. soname_spec='${libname}${release}${shared_ext}$major'
  8391. shlibpath_var=LD_LIBRARY_PATH
  8392. ;;
  8393. *)
  8394. dynamic_linker=no
  8395. ;;
  8396. esac
  8397. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8398. echo "${ECHO_T}$dynamic_linker" >&6; }
  8399. test "$dynamic_linker" = no && can_build_shared=no
  8400. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8401. if test "$GCC" = yes; then
  8402. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8403. fi
  8404. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8405. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8406. hardcode_action=
  8407. if test -n "$hardcode_libdir_flag_spec" || \
  8408. test -n "$runpath_var" || \
  8409. test "X$hardcode_automatic" = "Xyes" ; then
  8410. # We can hardcode non-existant directories.
  8411. if test "$hardcode_direct" != no &&
  8412. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8413. # have to relink, otherwise we might link with an installed library
  8414. # when we should be linking with a yet-to-be-installed one
  8415. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8416. test "$hardcode_minus_L" != no; then
  8417. # Linking always hardcodes the temporary library directory.
  8418. hardcode_action=relink
  8419. else
  8420. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8421. hardcode_action=immediate
  8422. fi
  8423. else
  8424. # We cannot hardcode anything, or else we can only hardcode existing
  8425. # directories.
  8426. hardcode_action=unsupported
  8427. fi
  8428. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8429. echo "${ECHO_T}$hardcode_action" >&6; }
  8430. if test "$hardcode_action" = relink; then
  8431. # Fast installation is not supported
  8432. enable_fast_install=no
  8433. elif test "$shlibpath_overrides_runpath" = yes ||
  8434. test "$enable_shared" = no; then
  8435. # Fast installation is not necessary
  8436. enable_fast_install=needless
  8437. fi
  8438. striplib=
  8439. old_striplib=
  8440. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8441. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8442. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8443. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8444. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8445. { echo "$as_me:$LINENO: result: yes" >&5
  8446. echo "${ECHO_T}yes" >&6; }
  8447. else
  8448. # FIXME - insert some real tests, host_os isn't really good enough
  8449. case $host_os in
  8450. darwin*)
  8451. if test -n "$STRIP" ; then
  8452. striplib="$STRIP -x"
  8453. { echo "$as_me:$LINENO: result: yes" >&5
  8454. echo "${ECHO_T}yes" >&6; }
  8455. else
  8456. { echo "$as_me:$LINENO: result: no" >&5
  8457. echo "${ECHO_T}no" >&6; }
  8458. fi
  8459. ;;
  8460. *)
  8461. { echo "$as_me:$LINENO: result: no" >&5
  8462. echo "${ECHO_T}no" >&6; }
  8463. ;;
  8464. esac
  8465. fi
  8466. if test "x$enable_dlopen" != xyes; then
  8467. enable_dlopen=unknown
  8468. enable_dlopen_self=unknown
  8469. enable_dlopen_self_static=unknown
  8470. else
  8471. lt_cv_dlopen=no
  8472. lt_cv_dlopen_libs=
  8473. case $host_os in
  8474. beos*)
  8475. lt_cv_dlopen="load_add_on"
  8476. lt_cv_dlopen_libs=
  8477. lt_cv_dlopen_self=yes
  8478. ;;
  8479. mingw* | pw32*)
  8480. lt_cv_dlopen="LoadLibrary"
  8481. lt_cv_dlopen_libs=
  8482. ;;
  8483. cygwin*)
  8484. lt_cv_dlopen="dlopen"
  8485. lt_cv_dlopen_libs=
  8486. ;;
  8487. darwin*)
  8488. # if libdl is installed we need to link against it
  8489. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8490. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8491. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8492. echo $ECHO_N "(cached) $ECHO_C" >&6
  8493. else
  8494. ac_check_lib_save_LIBS=$LIBS
  8495. LIBS="-ldl $LIBS"
  8496. cat >conftest.$ac_ext <<_ACEOF
  8497. /* confdefs.h. */
  8498. _ACEOF
  8499. cat confdefs.h >>conftest.$ac_ext
  8500. cat >>conftest.$ac_ext <<_ACEOF
  8501. /* end confdefs.h. */
  8502. /* Override any GCC internal prototype to avoid an error.
  8503. Use char because int might match the return type of a GCC
  8504. builtin and then its argument prototype would still apply. */
  8505. #ifdef __cplusplus
  8506. extern "C"
  8507. #endif
  8508. char dlopen ();
  8509. int
  8510. main ()
  8511. {
  8512. return dlopen ();
  8513. ;
  8514. return 0;
  8515. }
  8516. _ACEOF
  8517. rm -f conftest.$ac_objext conftest$ac_exeext
  8518. if { (ac_try="$ac_link"
  8519. case "(($ac_try" in
  8520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8521. *) ac_try_echo=$ac_try;;
  8522. esac
  8523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8524. (eval "$ac_link") 2>conftest.er1
  8525. ac_status=$?
  8526. grep -v '^ *+' conftest.er1 >conftest.err
  8527. rm -f conftest.er1
  8528. cat conftest.err >&5
  8529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8530. (exit $ac_status); } && {
  8531. test -z "$ac_c_werror_flag" ||
  8532. test ! -s conftest.err
  8533. } && test -s conftest$ac_exeext &&
  8534. $as_test_x conftest$ac_exeext; then
  8535. ac_cv_lib_dl_dlopen=yes
  8536. else
  8537. echo "$as_me: failed program was:" >&5
  8538. sed 's/^/| /' conftest.$ac_ext >&5
  8539. ac_cv_lib_dl_dlopen=no
  8540. fi
  8541. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8542. conftest$ac_exeext conftest.$ac_ext
  8543. LIBS=$ac_check_lib_save_LIBS
  8544. fi
  8545. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8546. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8547. if test $ac_cv_lib_dl_dlopen = yes; then
  8548. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8549. else
  8550. lt_cv_dlopen="dyld"
  8551. lt_cv_dlopen_libs=
  8552. lt_cv_dlopen_self=yes
  8553. fi
  8554. ;;
  8555. *)
  8556. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8557. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8558. if test "${ac_cv_func_shl_load+set}" = set; then
  8559. echo $ECHO_N "(cached) $ECHO_C" >&6
  8560. else
  8561. cat >conftest.$ac_ext <<_ACEOF
  8562. /* confdefs.h. */
  8563. _ACEOF
  8564. cat confdefs.h >>conftest.$ac_ext
  8565. cat >>conftest.$ac_ext <<_ACEOF
  8566. /* end confdefs.h. */
  8567. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8568. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8569. #define shl_load innocuous_shl_load
  8570. /* System header to define __stub macros and hopefully few prototypes,
  8571. which can conflict with char shl_load (); below.
  8572. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8573. <limits.h> exists even on freestanding compilers. */
  8574. #ifdef __STDC__
  8575. # include <limits.h>
  8576. #else
  8577. # include <assert.h>
  8578. #endif
  8579. #undef shl_load
  8580. /* Override any GCC internal prototype to avoid an error.
  8581. Use char because int might match the return type of a GCC
  8582. builtin and then its argument prototype would still apply. */
  8583. #ifdef __cplusplus
  8584. extern "C"
  8585. #endif
  8586. char shl_load ();
  8587. /* The GNU C library defines this for functions which it implements
  8588. to always fail with ENOSYS. Some functions are actually named
  8589. something starting with __ and the normal name is an alias. */
  8590. #if defined __stub_shl_load || defined __stub___shl_load
  8591. choke me
  8592. #endif
  8593. int
  8594. main ()
  8595. {
  8596. return shl_load ();
  8597. ;
  8598. return 0;
  8599. }
  8600. _ACEOF
  8601. rm -f conftest.$ac_objext conftest$ac_exeext
  8602. if { (ac_try="$ac_link"
  8603. case "(($ac_try" in
  8604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8605. *) ac_try_echo=$ac_try;;
  8606. esac
  8607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8608. (eval "$ac_link") 2>conftest.er1
  8609. ac_status=$?
  8610. grep -v '^ *+' conftest.er1 >conftest.err
  8611. rm -f conftest.er1
  8612. cat conftest.err >&5
  8613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8614. (exit $ac_status); } && {
  8615. test -z "$ac_c_werror_flag" ||
  8616. test ! -s conftest.err
  8617. } && test -s conftest$ac_exeext &&
  8618. $as_test_x conftest$ac_exeext; then
  8619. ac_cv_func_shl_load=yes
  8620. else
  8621. echo "$as_me: failed program was:" >&5
  8622. sed 's/^/| /' conftest.$ac_ext >&5
  8623. ac_cv_func_shl_load=no
  8624. fi
  8625. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8626. conftest$ac_exeext conftest.$ac_ext
  8627. fi
  8628. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8629. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8630. if test $ac_cv_func_shl_load = yes; then
  8631. lt_cv_dlopen="shl_load"
  8632. else
  8633. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8634. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8635. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8636. echo $ECHO_N "(cached) $ECHO_C" >&6
  8637. else
  8638. ac_check_lib_save_LIBS=$LIBS
  8639. LIBS="-ldld $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  8647. Use char because int might match the return type of a GCC
  8648. builtin and then its argument prototype would still apply. */
  8649. #ifdef __cplusplus
  8650. extern "C"
  8651. #endif
  8652. char shl_load ();
  8653. int
  8654. main ()
  8655. {
  8656. return shl_load ();
  8657. ;
  8658. return 0;
  8659. }
  8660. _ACEOF
  8661. rm -f conftest.$ac_objext conftest$ac_exeext
  8662. if { (ac_try="$ac_link"
  8663. case "(($ac_try" in
  8664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8665. *) ac_try_echo=$ac_try;;
  8666. esac
  8667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8668. (eval "$ac_link") 2>conftest.er1
  8669. ac_status=$?
  8670. grep -v '^ *+' conftest.er1 >conftest.err
  8671. rm -f conftest.er1
  8672. cat conftest.err >&5
  8673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8674. (exit $ac_status); } && {
  8675. test -z "$ac_c_werror_flag" ||
  8676. test ! -s conftest.err
  8677. } && test -s conftest$ac_exeext &&
  8678. $as_test_x conftest$ac_exeext; then
  8679. ac_cv_lib_dld_shl_load=yes
  8680. else
  8681. echo "$as_me: failed program was:" >&5
  8682. sed 's/^/| /' conftest.$ac_ext >&5
  8683. ac_cv_lib_dld_shl_load=no
  8684. fi
  8685. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8686. conftest$ac_exeext conftest.$ac_ext
  8687. LIBS=$ac_check_lib_save_LIBS
  8688. fi
  8689. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8690. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8691. if test $ac_cv_lib_dld_shl_load = yes; then
  8692. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8693. else
  8694. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8695. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8696. if test "${ac_cv_func_dlopen+set}" = set; then
  8697. echo $ECHO_N "(cached) $ECHO_C" >&6
  8698. else
  8699. cat >conftest.$ac_ext <<_ACEOF
  8700. /* confdefs.h. */
  8701. _ACEOF
  8702. cat confdefs.h >>conftest.$ac_ext
  8703. cat >>conftest.$ac_ext <<_ACEOF
  8704. /* end confdefs.h. */
  8705. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8706. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8707. #define dlopen innocuous_dlopen
  8708. /* System header to define __stub macros and hopefully few prototypes,
  8709. which can conflict with char dlopen (); below.
  8710. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8711. <limits.h> exists even on freestanding compilers. */
  8712. #ifdef __STDC__
  8713. # include <limits.h>
  8714. #else
  8715. # include <assert.h>
  8716. #endif
  8717. #undef dlopen
  8718. /* Override any GCC internal prototype to avoid an error.
  8719. Use char because int might match the return type of a GCC
  8720. builtin and then its argument prototype would still apply. */
  8721. #ifdef __cplusplus
  8722. extern "C"
  8723. #endif
  8724. char dlopen ();
  8725. /* The GNU C library defines this for functions which it implements
  8726. to always fail with ENOSYS. Some functions are actually named
  8727. something starting with __ and the normal name is an alias. */
  8728. #if defined __stub_dlopen || defined __stub___dlopen
  8729. choke me
  8730. #endif
  8731. int
  8732. main ()
  8733. {
  8734. return dlopen ();
  8735. ;
  8736. return 0;
  8737. }
  8738. _ACEOF
  8739. rm -f conftest.$ac_objext conftest$ac_exeext
  8740. if { (ac_try="$ac_link"
  8741. case "(($ac_try" in
  8742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8743. *) ac_try_echo=$ac_try;;
  8744. esac
  8745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8746. (eval "$ac_link") 2>conftest.er1
  8747. ac_status=$?
  8748. grep -v '^ *+' conftest.er1 >conftest.err
  8749. rm -f conftest.er1
  8750. cat conftest.err >&5
  8751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8752. (exit $ac_status); } && {
  8753. test -z "$ac_c_werror_flag" ||
  8754. test ! -s conftest.err
  8755. } && test -s conftest$ac_exeext &&
  8756. $as_test_x conftest$ac_exeext; then
  8757. ac_cv_func_dlopen=yes
  8758. else
  8759. echo "$as_me: failed program was:" >&5
  8760. sed 's/^/| /' conftest.$ac_ext >&5
  8761. ac_cv_func_dlopen=no
  8762. fi
  8763. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8764. conftest$ac_exeext conftest.$ac_ext
  8765. fi
  8766. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8767. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8768. if test $ac_cv_func_dlopen = yes; then
  8769. lt_cv_dlopen="dlopen"
  8770. else
  8771. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8772. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8773. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8774. echo $ECHO_N "(cached) $ECHO_C" >&6
  8775. else
  8776. ac_check_lib_save_LIBS=$LIBS
  8777. LIBS="-ldl $LIBS"
  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. /* Override any GCC internal prototype to avoid an error.
  8785. Use char because int might match the return type of a GCC
  8786. builtin and then its argument prototype would still apply. */
  8787. #ifdef __cplusplus
  8788. extern "C"
  8789. #endif
  8790. char dlopen ();
  8791. int
  8792. main ()
  8793. {
  8794. return dlopen ();
  8795. ;
  8796. return 0;
  8797. }
  8798. _ACEOF
  8799. rm -f conftest.$ac_objext conftest$ac_exeext
  8800. if { (ac_try="$ac_link"
  8801. case "(($ac_try" in
  8802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8803. *) ac_try_echo=$ac_try;;
  8804. esac
  8805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8806. (eval "$ac_link") 2>conftest.er1
  8807. ac_status=$?
  8808. grep -v '^ *+' conftest.er1 >conftest.err
  8809. rm -f conftest.er1
  8810. cat conftest.err >&5
  8811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8812. (exit $ac_status); } && {
  8813. test -z "$ac_c_werror_flag" ||
  8814. test ! -s conftest.err
  8815. } && test -s conftest$ac_exeext &&
  8816. $as_test_x conftest$ac_exeext; then
  8817. ac_cv_lib_dl_dlopen=yes
  8818. else
  8819. echo "$as_me: failed program was:" >&5
  8820. sed 's/^/| /' conftest.$ac_ext >&5
  8821. ac_cv_lib_dl_dlopen=no
  8822. fi
  8823. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8824. conftest$ac_exeext conftest.$ac_ext
  8825. LIBS=$ac_check_lib_save_LIBS
  8826. fi
  8827. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8828. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8829. if test $ac_cv_lib_dl_dlopen = yes; then
  8830. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8831. else
  8832. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8833. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  8834. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8835. echo $ECHO_N "(cached) $ECHO_C" >&6
  8836. else
  8837. ac_check_lib_save_LIBS=$LIBS
  8838. LIBS="-lsvld $LIBS"
  8839. cat >conftest.$ac_ext <<_ACEOF
  8840. /* confdefs.h. */
  8841. _ACEOF
  8842. cat confdefs.h >>conftest.$ac_ext
  8843. cat >>conftest.$ac_ext <<_ACEOF
  8844. /* end confdefs.h. */
  8845. /* Override any GCC internal prototype to avoid an error.
  8846. Use char because int might match the return type of a GCC
  8847. builtin and then its argument prototype would still apply. */
  8848. #ifdef __cplusplus
  8849. extern "C"
  8850. #endif
  8851. char dlopen ();
  8852. int
  8853. main ()
  8854. {
  8855. return dlopen ();
  8856. ;
  8857. return 0;
  8858. }
  8859. _ACEOF
  8860. rm -f conftest.$ac_objext conftest$ac_exeext
  8861. if { (ac_try="$ac_link"
  8862. case "(($ac_try" in
  8863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8864. *) ac_try_echo=$ac_try;;
  8865. esac
  8866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8867. (eval "$ac_link") 2>conftest.er1
  8868. ac_status=$?
  8869. grep -v '^ *+' conftest.er1 >conftest.err
  8870. rm -f conftest.er1
  8871. cat conftest.err >&5
  8872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8873. (exit $ac_status); } && {
  8874. test -z "$ac_c_werror_flag" ||
  8875. test ! -s conftest.err
  8876. } && test -s conftest$ac_exeext &&
  8877. $as_test_x conftest$ac_exeext; then
  8878. ac_cv_lib_svld_dlopen=yes
  8879. else
  8880. echo "$as_me: failed program was:" >&5
  8881. sed 's/^/| /' conftest.$ac_ext >&5
  8882. ac_cv_lib_svld_dlopen=no
  8883. fi
  8884. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8885. conftest$ac_exeext conftest.$ac_ext
  8886. LIBS=$ac_check_lib_save_LIBS
  8887. fi
  8888. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8889. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  8890. if test $ac_cv_lib_svld_dlopen = yes; then
  8891. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8892. else
  8893. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8894. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  8895. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8896. echo $ECHO_N "(cached) $ECHO_C" >&6
  8897. else
  8898. ac_check_lib_save_LIBS=$LIBS
  8899. LIBS="-ldld $LIBS"
  8900. cat >conftest.$ac_ext <<_ACEOF
  8901. /* confdefs.h. */
  8902. _ACEOF
  8903. cat confdefs.h >>conftest.$ac_ext
  8904. cat >>conftest.$ac_ext <<_ACEOF
  8905. /* end confdefs.h. */
  8906. /* Override any GCC internal prototype to avoid an error.
  8907. Use char because int might match the return type of a GCC
  8908. builtin and then its argument prototype would still apply. */
  8909. #ifdef __cplusplus
  8910. extern "C"
  8911. #endif
  8912. char dld_link ();
  8913. int
  8914. main ()
  8915. {
  8916. return dld_link ();
  8917. ;
  8918. return 0;
  8919. }
  8920. _ACEOF
  8921. rm -f conftest.$ac_objext conftest$ac_exeext
  8922. if { (ac_try="$ac_link"
  8923. case "(($ac_try" in
  8924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8925. *) ac_try_echo=$ac_try;;
  8926. esac
  8927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8928. (eval "$ac_link") 2>conftest.er1
  8929. ac_status=$?
  8930. grep -v '^ *+' conftest.er1 >conftest.err
  8931. rm -f conftest.er1
  8932. cat conftest.err >&5
  8933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8934. (exit $ac_status); } && {
  8935. test -z "$ac_c_werror_flag" ||
  8936. test ! -s conftest.err
  8937. } && test -s conftest$ac_exeext &&
  8938. $as_test_x conftest$ac_exeext; then
  8939. ac_cv_lib_dld_dld_link=yes
  8940. else
  8941. echo "$as_me: failed program was:" >&5
  8942. sed 's/^/| /' conftest.$ac_ext >&5
  8943. ac_cv_lib_dld_dld_link=no
  8944. fi
  8945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8946. conftest$ac_exeext conftest.$ac_ext
  8947. LIBS=$ac_check_lib_save_LIBS
  8948. fi
  8949. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8950. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  8951. if test $ac_cv_lib_dld_dld_link = yes; then
  8952. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8953. fi
  8954. fi
  8955. fi
  8956. fi
  8957. fi
  8958. fi
  8959. ;;
  8960. esac
  8961. if test "x$lt_cv_dlopen" != xno; then
  8962. enable_dlopen=yes
  8963. else
  8964. enable_dlopen=no
  8965. fi
  8966. case $lt_cv_dlopen in
  8967. dlopen)
  8968. save_CPPFLAGS="$CPPFLAGS"
  8969. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8970. save_LDFLAGS="$LDFLAGS"
  8971. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8972. save_LIBS="$LIBS"
  8973. LIBS="$lt_cv_dlopen_libs $LIBS"
  8974. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8975. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  8976. if test "${lt_cv_dlopen_self+set}" = set; then
  8977. echo $ECHO_N "(cached) $ECHO_C" >&6
  8978. else
  8979. if test "$cross_compiling" = yes; then :
  8980. lt_cv_dlopen_self=cross
  8981. else
  8982. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8983. lt_status=$lt_dlunknown
  8984. cat > conftest.$ac_ext <<EOF
  8985. #line 9983 "configure"
  8986. #include "confdefs.h"
  8987. #if HAVE_DLFCN_H
  8988. #include <dlfcn.h>
  8989. #endif
  8990. #include <stdio.h>
  8991. #ifdef RTLD_GLOBAL
  8992. # define LT_DLGLOBAL RTLD_GLOBAL
  8993. #else
  8994. # ifdef DL_GLOBAL
  8995. # define LT_DLGLOBAL DL_GLOBAL
  8996. # else
  8997. # define LT_DLGLOBAL 0
  8998. # endif
  8999. #endif
  9000. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9001. find out it does not work in some platform. */
  9002. #ifndef LT_DLLAZY_OR_NOW
  9003. # ifdef RTLD_LAZY
  9004. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9005. # else
  9006. # ifdef DL_LAZY
  9007. # define LT_DLLAZY_OR_NOW DL_LAZY
  9008. # else
  9009. # ifdef RTLD_NOW
  9010. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9011. # else
  9012. # ifdef DL_NOW
  9013. # define LT_DLLAZY_OR_NOW DL_NOW
  9014. # else
  9015. # define LT_DLLAZY_OR_NOW 0
  9016. # endif
  9017. # endif
  9018. # endif
  9019. # endif
  9020. #endif
  9021. #ifdef __cplusplus
  9022. extern "C" void exit (int);
  9023. #endif
  9024. void fnord() { int i=42;}
  9025. int main ()
  9026. {
  9027. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9028. int status = $lt_dlunknown;
  9029. if (self)
  9030. {
  9031. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9032. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9033. /* dlclose (self); */
  9034. }
  9035. else
  9036. puts (dlerror ());
  9037. exit (status);
  9038. }
  9039. EOF
  9040. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9041. (eval $ac_link) 2>&5
  9042. ac_status=$?
  9043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9044. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9045. (./conftest; exit; ) >&5 2>/dev/null
  9046. lt_status=$?
  9047. case x$lt_status in
  9048. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9049. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9050. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9051. esac
  9052. else :
  9053. # compilation failed
  9054. lt_cv_dlopen_self=no
  9055. fi
  9056. fi
  9057. rm -fr conftest*
  9058. fi
  9059. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9060. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9061. if test "x$lt_cv_dlopen_self" = xyes; then
  9062. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9063. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9064. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9065. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9066. echo $ECHO_N "(cached) $ECHO_C" >&6
  9067. else
  9068. if test "$cross_compiling" = yes; then :
  9069. lt_cv_dlopen_self_static=cross
  9070. else
  9071. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9072. lt_status=$lt_dlunknown
  9073. cat > conftest.$ac_ext <<EOF
  9074. #line 10083 "configure"
  9075. #include "confdefs.h"
  9076. #if HAVE_DLFCN_H
  9077. #include <dlfcn.h>
  9078. #endif
  9079. #include <stdio.h>
  9080. #ifdef RTLD_GLOBAL
  9081. # define LT_DLGLOBAL RTLD_GLOBAL
  9082. #else
  9083. # ifdef DL_GLOBAL
  9084. # define LT_DLGLOBAL DL_GLOBAL
  9085. # else
  9086. # define LT_DLGLOBAL 0
  9087. # endif
  9088. #endif
  9089. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9090. find out it does not work in some platform. */
  9091. #ifndef LT_DLLAZY_OR_NOW
  9092. # ifdef RTLD_LAZY
  9093. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9094. # else
  9095. # ifdef DL_LAZY
  9096. # define LT_DLLAZY_OR_NOW DL_LAZY
  9097. # else
  9098. # ifdef RTLD_NOW
  9099. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9100. # else
  9101. # ifdef DL_NOW
  9102. # define LT_DLLAZY_OR_NOW DL_NOW
  9103. # else
  9104. # define LT_DLLAZY_OR_NOW 0
  9105. # endif
  9106. # endif
  9107. # endif
  9108. # endif
  9109. #endif
  9110. #ifdef __cplusplus
  9111. extern "C" void exit (int);
  9112. #endif
  9113. void fnord() { int i=42;}
  9114. int main ()
  9115. {
  9116. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9117. int status = $lt_dlunknown;
  9118. if (self)
  9119. {
  9120. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9121. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9122. /* dlclose (self); */
  9123. }
  9124. else
  9125. puts (dlerror ());
  9126. exit (status);
  9127. }
  9128. EOF
  9129. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9130. (eval $ac_link) 2>&5
  9131. ac_status=$?
  9132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9133. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9134. (./conftest; exit; ) >&5 2>/dev/null
  9135. lt_status=$?
  9136. case x$lt_status in
  9137. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9138. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9139. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9140. esac
  9141. else :
  9142. # compilation failed
  9143. lt_cv_dlopen_self_static=no
  9144. fi
  9145. fi
  9146. rm -fr conftest*
  9147. fi
  9148. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9149. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9150. fi
  9151. CPPFLAGS="$save_CPPFLAGS"
  9152. LDFLAGS="$save_LDFLAGS"
  9153. LIBS="$save_LIBS"
  9154. ;;
  9155. esac
  9156. case $lt_cv_dlopen_self in
  9157. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9158. *) enable_dlopen_self=unknown ;;
  9159. esac
  9160. case $lt_cv_dlopen_self_static in
  9161. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9162. *) enable_dlopen_self_static=unknown ;;
  9163. esac
  9164. fi
  9165. # Report which library types will actually be built
  9166. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9167. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9168. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9169. echo "${ECHO_T}$can_build_shared" >&6; }
  9170. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9171. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9172. test "$can_build_shared" = "no" && enable_shared=no
  9173. # On AIX, shared libraries and static libraries use the same namespace, and
  9174. # are all built from PIC.
  9175. case $host_os in
  9176. aix3*)
  9177. test "$enable_shared" = yes && enable_static=no
  9178. if test -n "$RANLIB"; then
  9179. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9180. postinstall_cmds='$RANLIB $lib'
  9181. fi
  9182. ;;
  9183. aix4* | aix5*)
  9184. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9185. test "$enable_shared" = yes && enable_static=no
  9186. fi
  9187. ;;
  9188. esac
  9189. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9190. echo "${ECHO_T}$enable_shared" >&6; }
  9191. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9192. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9193. # Make sure either enable_shared or enable_static is yes.
  9194. test "$enable_shared" = yes || enable_static=yes
  9195. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9196. echo "${ECHO_T}$enable_static" >&6; }
  9197. # The else clause should only fire when bootstrapping the
  9198. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9199. # with your package, and you will get complaints that there are
  9200. # no rules to generate ltmain.sh.
  9201. if test -f "$ltmain"; then
  9202. # See if we are running on zsh, and set the options which allow our commands through
  9203. # without removal of \ escapes.
  9204. if test -n "${ZSH_VERSION+set}" ; then
  9205. setopt NO_GLOB_SUBST
  9206. fi
  9207. # Now quote all the things that may contain metacharacters while being
  9208. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9209. # variables and quote the copies for generation of the libtool script.
  9210. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9211. SED SHELL STRIP \
  9212. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9213. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9214. deplibs_check_method reload_flag reload_cmds need_locks \
  9215. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9216. lt_cv_sys_global_symbol_to_c_name_address \
  9217. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9218. old_postinstall_cmds old_postuninstall_cmds \
  9219. compiler \
  9220. CC \
  9221. LD \
  9222. lt_prog_compiler_wl \
  9223. lt_prog_compiler_pic \
  9224. lt_prog_compiler_static \
  9225. lt_prog_compiler_no_builtin_flag \
  9226. export_dynamic_flag_spec \
  9227. thread_safe_flag_spec \
  9228. whole_archive_flag_spec \
  9229. enable_shared_with_static_runtimes \
  9230. old_archive_cmds \
  9231. old_archive_from_new_cmds \
  9232. predep_objects \
  9233. postdep_objects \
  9234. predeps \
  9235. postdeps \
  9236. compiler_lib_search_path \
  9237. archive_cmds \
  9238. archive_expsym_cmds \
  9239. postinstall_cmds \
  9240. postuninstall_cmds \
  9241. old_archive_from_expsyms_cmds \
  9242. allow_undefined_flag \
  9243. no_undefined_flag \
  9244. export_symbols_cmds \
  9245. hardcode_libdir_flag_spec \
  9246. hardcode_libdir_flag_spec_ld \
  9247. hardcode_libdir_separator \
  9248. hardcode_automatic \
  9249. module_cmds \
  9250. module_expsym_cmds \
  9251. lt_cv_prog_compiler_c_o \
  9252. exclude_expsyms \
  9253. include_expsyms; do
  9254. case $var in
  9255. old_archive_cmds | \
  9256. old_archive_from_new_cmds | \
  9257. archive_cmds | \
  9258. archive_expsym_cmds | \
  9259. module_cmds | \
  9260. module_expsym_cmds | \
  9261. old_archive_from_expsyms_cmds | \
  9262. export_symbols_cmds | \
  9263. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9264. postinstall_cmds | postuninstall_cmds | \
  9265. old_postinstall_cmds | old_postuninstall_cmds | \
  9266. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9267. # Double-quote double-evaled strings.
  9268. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9269. ;;
  9270. *)
  9271. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9272. ;;
  9273. esac
  9274. done
  9275. case $lt_echo in
  9276. *'\$0 --fallback-echo"')
  9277. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9278. ;;
  9279. esac
  9280. cfgfile="${ofile}T"
  9281. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9282. $rm -f "$cfgfile"
  9283. { echo "$as_me:$LINENO: creating $ofile" >&5
  9284. echo "$as_me: creating $ofile" >&6;}
  9285. cat <<__EOF__ >> "$cfgfile"
  9286. #! $SHELL
  9287. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9288. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9289. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9290. #
  9291. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  9292. # Free Software Foundation, Inc.
  9293. #
  9294. # This file is part of GNU Libtool:
  9295. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9296. #
  9297. # This program is free software; you can redistribute it and/or modify
  9298. # it under the terms of the GNU General Public License as published by
  9299. # the Free Software Foundation; either version 2 of the License, or
  9300. # (at your option) any later version.
  9301. #
  9302. # This program is distributed in the hope that it will be useful, but
  9303. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9304. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9305. # General Public License for more details.
  9306. #
  9307. # You should have received a copy of the GNU General Public License
  9308. # along with this program; if not, write to the Free Software
  9309. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9310. #
  9311. # As a special exception to the GNU General Public License, if you
  9312. # distribute this file as part of a program that contains a
  9313. # configuration script generated by Autoconf, you may include it under
  9314. # the same distribution terms that you use for the rest of that program.
  9315. # A sed program that does not truncate output.
  9316. SED=$lt_SED
  9317. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9318. Xsed="$SED -e 1s/^X//"
  9319. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9320. # if CDPATH is set.
  9321. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9322. # The names of the tagged configurations supported by this script.
  9323. available_tags=
  9324. # ### BEGIN LIBTOOL CONFIG
  9325. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9326. # Shell to use when invoking shell scripts.
  9327. SHELL=$lt_SHELL
  9328. # Whether or not to build shared libraries.
  9329. build_libtool_libs=$enable_shared
  9330. # Whether or not to build static libraries.
  9331. build_old_libs=$enable_static
  9332. # Whether or not to add -lc for building shared libraries.
  9333. build_libtool_need_lc=$archive_cmds_need_lc
  9334. # Whether or not to disallow shared libs when runtime libs are static
  9335. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9336. # Whether or not to optimize for fast installation.
  9337. fast_install=$enable_fast_install
  9338. # The host system.
  9339. host_alias=$host_alias
  9340. host=$host
  9341. host_os=$host_os
  9342. # The build system.
  9343. build_alias=$build_alias
  9344. build=$build
  9345. build_os=$build_os
  9346. # An echo program that does not interpret backslashes.
  9347. echo=$lt_echo
  9348. # The archiver.
  9349. AR=$lt_AR
  9350. AR_FLAGS=$lt_AR_FLAGS
  9351. # A C compiler.
  9352. LTCC=$lt_LTCC
  9353. # LTCC compiler flags.
  9354. LTCFLAGS=$lt_LTCFLAGS
  9355. # A language-specific compiler.
  9356. CC=$lt_compiler
  9357. # Is the compiler the GNU C compiler?
  9358. with_gcc=$GCC
  9359. # An ERE matcher.
  9360. EGREP=$lt_EGREP
  9361. # The linker used to build libraries.
  9362. LD=$lt_LD
  9363. # Whether we need hard or soft links.
  9364. LN_S=$lt_LN_S
  9365. # A BSD-compatible nm program.
  9366. NM=$lt_NM
  9367. # A symbol stripping program
  9368. STRIP=$lt_STRIP
  9369. # Used to examine libraries when file_magic_cmd begins "file"
  9370. MAGIC_CMD=$MAGIC_CMD
  9371. # Used on cygwin: DLL creation program.
  9372. DLLTOOL="$DLLTOOL"
  9373. # Used on cygwin: object dumper.
  9374. OBJDUMP="$OBJDUMP"
  9375. # Used on cygwin: assembler.
  9376. AS="$AS"
  9377. # The name of the directory that contains temporary libtool files.
  9378. objdir=$objdir
  9379. # How to create reloadable object files.
  9380. reload_flag=$lt_reload_flag
  9381. reload_cmds=$lt_reload_cmds
  9382. # How to pass a linker flag through the compiler.
  9383. wl=$lt_lt_prog_compiler_wl
  9384. # Object file suffix (normally "o").
  9385. objext="$ac_objext"
  9386. # Old archive suffix (normally "a").
  9387. libext="$libext"
  9388. # Shared library suffix (normally ".so").
  9389. shrext_cmds='$shrext_cmds'
  9390. # Executable file suffix (normally "").
  9391. exeext="$exeext"
  9392. # Additional compiler flags for building library objects.
  9393. pic_flag=$lt_lt_prog_compiler_pic
  9394. pic_mode=$pic_mode
  9395. # What is the maximum length of a command?
  9396. max_cmd_len=$lt_cv_sys_max_cmd_len
  9397. # Does compiler simultaneously support -c and -o options?
  9398. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9399. # Must we lock files when doing compilation?
  9400. need_locks=$lt_need_locks
  9401. # Do we need the lib prefix for modules?
  9402. need_lib_prefix=$need_lib_prefix
  9403. # Do we need a version for libraries?
  9404. need_version=$need_version
  9405. # Whether dlopen is supported.
  9406. dlopen_support=$enable_dlopen
  9407. # Whether dlopen of programs is supported.
  9408. dlopen_self=$enable_dlopen_self
  9409. # Whether dlopen of statically linked programs is supported.
  9410. dlopen_self_static=$enable_dlopen_self_static
  9411. # Compiler flag to prevent dynamic linking.
  9412. link_static_flag=$lt_lt_prog_compiler_static
  9413. # Compiler flag to turn off builtin functions.
  9414. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9415. # Compiler flag to allow reflexive dlopens.
  9416. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9417. # Compiler flag to generate shared objects directly from archives.
  9418. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9419. # Compiler flag to generate thread-safe objects.
  9420. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9421. # Library versioning type.
  9422. version_type=$version_type
  9423. # Format of library name prefix.
  9424. libname_spec=$lt_libname_spec
  9425. # List of archive names. First name is the real one, the rest are links.
  9426. # The last name is the one that the linker finds with -lNAME.
  9427. library_names_spec=$lt_library_names_spec
  9428. # The coded name of the library, if different from the real name.
  9429. soname_spec=$lt_soname_spec
  9430. # Commands used to build and install an old-style archive.
  9431. RANLIB=$lt_RANLIB
  9432. old_archive_cmds=$lt_old_archive_cmds
  9433. old_postinstall_cmds=$lt_old_postinstall_cmds
  9434. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9435. # Create an old-style archive from a shared archive.
  9436. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9437. # Create a temporary old-style archive to link instead of a shared archive.
  9438. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9439. # Commands used to build and install a shared archive.
  9440. archive_cmds=$lt_archive_cmds
  9441. archive_expsym_cmds=$lt_archive_expsym_cmds
  9442. postinstall_cmds=$lt_postinstall_cmds
  9443. postuninstall_cmds=$lt_postuninstall_cmds
  9444. # Commands used to build a loadable module (assumed same as above if empty)
  9445. module_cmds=$lt_module_cmds
  9446. module_expsym_cmds=$lt_module_expsym_cmds
  9447. # Commands to strip libraries.
  9448. old_striplib=$lt_old_striplib
  9449. striplib=$lt_striplib
  9450. # Dependencies to place before the objects being linked to create a
  9451. # shared library.
  9452. predep_objects=$lt_predep_objects
  9453. # Dependencies to place after the objects being linked to create a
  9454. # shared library.
  9455. postdep_objects=$lt_postdep_objects
  9456. # Dependencies to place before the objects being linked to create a
  9457. # shared library.
  9458. predeps=$lt_predeps
  9459. # Dependencies to place after the objects being linked to create a
  9460. # shared library.
  9461. postdeps=$lt_postdeps
  9462. # The library search path used internally by the compiler when linking
  9463. # a shared library.
  9464. compiler_lib_search_path=$lt_compiler_lib_search_path
  9465. # Method to check whether dependent libraries are shared objects.
  9466. deplibs_check_method=$lt_deplibs_check_method
  9467. # Command to use when deplibs_check_method == file_magic.
  9468. file_magic_cmd=$lt_file_magic_cmd
  9469. # Flag that allows shared libraries with undefined symbols to be built.
  9470. allow_undefined_flag=$lt_allow_undefined_flag
  9471. # Flag that forces no undefined symbols.
  9472. no_undefined_flag=$lt_no_undefined_flag
  9473. # Commands used to finish a libtool library installation in a directory.
  9474. finish_cmds=$lt_finish_cmds
  9475. # Same as above, but a single script fragment to be evaled but not shown.
  9476. finish_eval=$lt_finish_eval
  9477. # Take the output of nm and produce a listing of raw symbols and C names.
  9478. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9479. # Transform the output of nm in a proper C declaration
  9480. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9481. # Transform the output of nm in a C name address pair
  9482. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9483. # This is the shared library runtime path variable.
  9484. runpath_var=$runpath_var
  9485. # This is the shared library path variable.
  9486. shlibpath_var=$shlibpath_var
  9487. # Is shlibpath searched before the hard-coded library search path?
  9488. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9489. # How to hardcode a shared library path into an executable.
  9490. hardcode_action=$hardcode_action
  9491. # Whether we should hardcode library paths into libraries.
  9492. hardcode_into_libs=$hardcode_into_libs
  9493. # Flag to hardcode \$libdir into a binary during linking.
  9494. # This must work even if \$libdir does not exist.
  9495. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9496. # If ld is used when linking, flag to hardcode \$libdir into
  9497. # a binary during linking. This must work even if \$libdir does
  9498. # not exist.
  9499. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9500. # Whether we need a single -rpath flag with a separated argument.
  9501. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9502. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9503. # resulting binary.
  9504. hardcode_direct=$hardcode_direct
  9505. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9506. # resulting binary.
  9507. hardcode_minus_L=$hardcode_minus_L
  9508. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9509. # the resulting binary.
  9510. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9511. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9512. # and all subsequent libraries and executables linked against it.
  9513. hardcode_automatic=$hardcode_automatic
  9514. # Variables whose values should be saved in libtool wrapper scripts and
  9515. # restored at relink time.
  9516. variables_saved_for_relink="$variables_saved_for_relink"
  9517. # Whether libtool must link a program against all its dependency libraries.
  9518. link_all_deplibs=$link_all_deplibs
  9519. # Compile-time system search path for libraries
  9520. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9521. # Run-time system search path for libraries
  9522. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9523. # Fix the shell variable \$srcfile for the compiler.
  9524. fix_srcfile_path="$fix_srcfile_path"
  9525. # Set to yes if exported symbols are required.
  9526. always_export_symbols=$always_export_symbols
  9527. # The commands to list exported symbols.
  9528. export_symbols_cmds=$lt_export_symbols_cmds
  9529. # The commands to extract the exported symbol list from a shared archive.
  9530. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9531. # Symbols that should not be listed in the preloaded symbols.
  9532. exclude_expsyms=$lt_exclude_expsyms
  9533. # Symbols that must always be exported.
  9534. include_expsyms=$lt_include_expsyms
  9535. # ### END LIBTOOL CONFIG
  9536. __EOF__
  9537. case $host_os in
  9538. aix3*)
  9539. cat <<\EOF >> "$cfgfile"
  9540. # AIX sometimes has problems with the GCC collect2 program. For some
  9541. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9542. # vanish in a puff of smoke.
  9543. if test "X${COLLECT_NAMES+set}" != Xset; then
  9544. COLLECT_NAMES=
  9545. export COLLECT_NAMES
  9546. fi
  9547. EOF
  9548. ;;
  9549. esac
  9550. # We use sed instead of cat because bash on DJGPP gets confused if
  9551. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9552. # text mode, it properly converts lines to CR/LF. This bash problem
  9553. # is reportedly fixed, but why not run on old versions too?
  9554. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9555. mv -f "$cfgfile" "$ofile" || \
  9556. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9557. chmod +x "$ofile"
  9558. else
  9559. # If there is no Makefile yet, we rely on a make rule to execute
  9560. # `config.status --recheck' to rerun these tests and create the
  9561. # libtool script then.
  9562. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9563. if test -f "$ltmain_in"; then
  9564. test -f Makefile && make "$ltmain"
  9565. fi
  9566. fi
  9567. ac_ext=c
  9568. ac_cpp='$CPP $CPPFLAGS'
  9569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9572. CC="$lt_save_CC"
  9573. # Check whether --with-tags was given.
  9574. if test "${with_tags+set}" = set; then
  9575. withval=$with_tags; tagnames="$withval"
  9576. fi
  9577. if test -f "$ltmain" && test -n "$tagnames"; then
  9578. if test ! -f "${ofile}"; then
  9579. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9580. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9581. fi
  9582. if test -z "$LTCC"; then
  9583. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9584. if test -z "$LTCC"; then
  9585. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9586. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9587. else
  9588. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9589. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9590. fi
  9591. fi
  9592. if test -z "$LTCFLAGS"; then
  9593. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9594. fi
  9595. # Extract list of available tagged configurations in $ofile.
  9596. # Note that this assumes the entire list is on one line.
  9597. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9598. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9599. for tagname in $tagnames; do
  9600. IFS="$lt_save_ifs"
  9601. # Check whether tagname contains only valid characters
  9602. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9603. "") ;;
  9604. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9605. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9606. { (exit 1); exit 1; }; }
  9607. ;;
  9608. esac
  9609. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9610. then
  9611. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9612. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9613. { (exit 1); exit 1; }; }
  9614. fi
  9615. # Update the list of available tags.
  9616. if test -n "$tagname"; then
  9617. echo appending configuration tag \"$tagname\" to $ofile
  9618. case $tagname in
  9619. CXX)
  9620. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9621. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9622. (test "X$CXX" != "Xg++"))) ; then
  9623. ac_ext=cpp
  9624. ac_cpp='$CXXCPP $CPPFLAGS'
  9625. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9626. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9627. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9628. archive_cmds_need_lc_CXX=no
  9629. allow_undefined_flag_CXX=
  9630. always_export_symbols_CXX=no
  9631. archive_expsym_cmds_CXX=
  9632. export_dynamic_flag_spec_CXX=
  9633. hardcode_direct_CXX=no
  9634. hardcode_libdir_flag_spec_CXX=
  9635. hardcode_libdir_flag_spec_ld_CXX=
  9636. hardcode_libdir_separator_CXX=
  9637. hardcode_minus_L_CXX=no
  9638. hardcode_shlibpath_var_CXX=unsupported
  9639. hardcode_automatic_CXX=no
  9640. module_cmds_CXX=
  9641. module_expsym_cmds_CXX=
  9642. link_all_deplibs_CXX=unknown
  9643. old_archive_cmds_CXX=$old_archive_cmds
  9644. no_undefined_flag_CXX=
  9645. whole_archive_flag_spec_CXX=
  9646. enable_shared_with_static_runtimes_CXX=no
  9647. # Dependencies to place before and after the object being linked:
  9648. predep_objects_CXX=
  9649. postdep_objects_CXX=
  9650. predeps_CXX=
  9651. postdeps_CXX=
  9652. compiler_lib_search_path_CXX=
  9653. # Source file extension for C++ test sources.
  9654. ac_ext=cpp
  9655. # Object file extension for compiled C++ test sources.
  9656. objext=o
  9657. objext_CXX=$objext
  9658. # Code to be used in simple compile tests
  9659. lt_simple_compile_test_code="int some_variable = 0;\n"
  9660. # Code to be used in simple link tests
  9661. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9662. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9663. # If no C compiler was specified, use CC.
  9664. LTCC=${LTCC-"$CC"}
  9665. # If no C compiler flags were specified, use CFLAGS.
  9666. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9667. # Allow CC to be a program name with arguments.
  9668. compiler=$CC
  9669. # save warnings/boilerplate of simple test code
  9670. ac_outfile=conftest.$ac_objext
  9671. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9672. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9673. _lt_compiler_boilerplate=`cat conftest.err`
  9674. $rm conftest*
  9675. ac_outfile=conftest.$ac_objext
  9676. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9677. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9678. _lt_linker_boilerplate=`cat conftest.err`
  9679. $rm conftest*
  9680. # Allow CC to be a program name with arguments.
  9681. lt_save_CC=$CC
  9682. lt_save_LD=$LD
  9683. lt_save_GCC=$GCC
  9684. GCC=$GXX
  9685. lt_save_with_gnu_ld=$with_gnu_ld
  9686. lt_save_path_LD=$lt_cv_path_LD
  9687. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9688. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9689. else
  9690. $as_unset lt_cv_prog_gnu_ld
  9691. fi
  9692. if test -n "${lt_cv_path_LDCXX+set}"; then
  9693. lt_cv_path_LD=$lt_cv_path_LDCXX
  9694. else
  9695. $as_unset lt_cv_path_LD
  9696. fi
  9697. test -z "${LDCXX+set}" || LD=$LDCXX
  9698. CC=${CXX-"c++"}
  9699. compiler=$CC
  9700. compiler_CXX=$CC
  9701. for cc_temp in $compiler""; do
  9702. case $cc_temp in
  9703. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9704. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9705. \-*) ;;
  9706. *) break;;
  9707. esac
  9708. done
  9709. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9710. # We don't want -fno-exception wen compiling C++ code, so set the
  9711. # no_builtin_flag separately
  9712. if test "$GXX" = yes; then
  9713. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9714. else
  9715. lt_prog_compiler_no_builtin_flag_CXX=
  9716. fi
  9717. if test "$GXX" = yes; then
  9718. # Set up default GNU C++ configuration
  9719. # Check whether --with-gnu-ld was given.
  9720. if test "${with_gnu_ld+set}" = set; then
  9721. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9722. else
  9723. with_gnu_ld=no
  9724. fi
  9725. ac_prog=ld
  9726. if test "$GCC" = yes; then
  9727. # Check if gcc -print-prog-name=ld gives a path.
  9728. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9729. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9730. case $host in
  9731. *-*-mingw*)
  9732. # gcc leaves a trailing carriage return which upsets mingw
  9733. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9734. *)
  9735. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9736. esac
  9737. case $ac_prog in
  9738. # Accept absolute paths.
  9739. [\\/]* | ?:[\\/]*)
  9740. re_direlt='/[^/][^/]*/\.\./'
  9741. # Canonicalize the pathname of ld
  9742. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9743. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9744. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9745. done
  9746. test -z "$LD" && LD="$ac_prog"
  9747. ;;
  9748. "")
  9749. # If it fails, then pretend we aren't using GCC.
  9750. ac_prog=ld
  9751. ;;
  9752. *)
  9753. # If it is relative, then search for the first ld in PATH.
  9754. with_gnu_ld=unknown
  9755. ;;
  9756. esac
  9757. elif test "$with_gnu_ld" = yes; then
  9758. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9759. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9760. else
  9761. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9762. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9763. fi
  9764. if test "${lt_cv_path_LD+set}" = set; then
  9765. echo $ECHO_N "(cached) $ECHO_C" >&6
  9766. else
  9767. if test -z "$LD"; then
  9768. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9769. for ac_dir in $PATH; do
  9770. IFS="$lt_save_ifs"
  9771. test -z "$ac_dir" && ac_dir=.
  9772. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9773. lt_cv_path_LD="$ac_dir/$ac_prog"
  9774. # Check to see if the program is GNU ld. I'd rather use --version,
  9775. # but apparently some variants of GNU ld only accept -v.
  9776. # Break only if it was the GNU/non-GNU ld that we prefer.
  9777. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9778. *GNU* | *'with BFD'*)
  9779. test "$with_gnu_ld" != no && break
  9780. ;;
  9781. *)
  9782. test "$with_gnu_ld" != yes && break
  9783. ;;
  9784. esac
  9785. fi
  9786. done
  9787. IFS="$lt_save_ifs"
  9788. else
  9789. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9790. fi
  9791. fi
  9792. LD="$lt_cv_path_LD"
  9793. if test -n "$LD"; then
  9794. { echo "$as_me:$LINENO: result: $LD" >&5
  9795. echo "${ECHO_T}$LD" >&6; }
  9796. else
  9797. { echo "$as_me:$LINENO: result: no" >&5
  9798. echo "${ECHO_T}no" >&6; }
  9799. fi
  9800. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9801. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9802. { (exit 1); exit 1; }; }
  9803. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9804. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9805. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9806. echo $ECHO_N "(cached) $ECHO_C" >&6
  9807. else
  9808. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9809. case `$LD -v 2>&1 </dev/null` in
  9810. *GNU* | *'with BFD'*)
  9811. lt_cv_prog_gnu_ld=yes
  9812. ;;
  9813. *)
  9814. lt_cv_prog_gnu_ld=no
  9815. ;;
  9816. esac
  9817. fi
  9818. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9819. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  9820. with_gnu_ld=$lt_cv_prog_gnu_ld
  9821. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9822. # archiving commands below assume that GNU ld is being used.
  9823. if test "$with_gnu_ld" = yes; then
  9824. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9825. 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'
  9826. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9827. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9828. # If archive_cmds runs LD, not CC, wlarc should be empty
  9829. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9830. # investigate it a little bit more. (MM)
  9831. wlarc='${wl}'
  9832. # ancient GNU ld didn't support --whole-archive et. al.
  9833. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9834. grep 'no-whole-archive' > /dev/null; then
  9835. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9836. else
  9837. whole_archive_flag_spec_CXX=
  9838. fi
  9839. else
  9840. with_gnu_ld=no
  9841. wlarc=
  9842. # A generic and very simple default shared library creation
  9843. # command for GNU C++ for the case where it uses the native
  9844. # linker, instead of GNU ld. If possible, this setting should
  9845. # overridden to take advantage of the native linker features on
  9846. # the platform it is being used on.
  9847. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9848. fi
  9849. # Commands to make compiler produce verbose output that lists
  9850. # what "hidden" libraries, object files and flags are used when
  9851. # linking a shared library.
  9852. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9853. else
  9854. GXX=no
  9855. with_gnu_ld=no
  9856. wlarc=
  9857. fi
  9858. # PORTME: fill in a description of your system's C++ link characteristics
  9859. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9860. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  9861. ld_shlibs_CXX=yes
  9862. case $host_os in
  9863. aix3*)
  9864. # FIXME: insert proper C++ library support
  9865. ld_shlibs_CXX=no
  9866. ;;
  9867. aix4* | aix5*)
  9868. if test "$host_cpu" = ia64; then
  9869. # On IA64, the linker does run time linking by default, so we don't
  9870. # have to do anything special.
  9871. aix_use_runtimelinking=no
  9872. exp_sym_flag='-Bexport'
  9873. no_entry_flag=""
  9874. else
  9875. aix_use_runtimelinking=no
  9876. # Test if we are trying to use run time linking or normal
  9877. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9878. # need to do runtime linking.
  9879. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9880. for ld_flag in $LDFLAGS; do
  9881. case $ld_flag in
  9882. *-brtl*)
  9883. aix_use_runtimelinking=yes
  9884. break
  9885. ;;
  9886. esac
  9887. done
  9888. ;;
  9889. esac
  9890. exp_sym_flag='-bexport'
  9891. no_entry_flag='-bnoentry'
  9892. fi
  9893. # When large executables or shared objects are built, AIX ld can
  9894. # have problems creating the table of contents. If linking a library
  9895. # or program results in "error TOC overflow" add -mminimal-toc to
  9896. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9897. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9898. archive_cmds_CXX=''
  9899. hardcode_direct_CXX=yes
  9900. hardcode_libdir_separator_CXX=':'
  9901. link_all_deplibs_CXX=yes
  9902. if test "$GXX" = yes; then
  9903. case $host_os in aix4.[012]|aix4.[012].*)
  9904. # We only want to do this on AIX 4.2 and lower, the check
  9905. # below for broken collect2 doesn't work under 4.3+
  9906. collect2name=`${CC} -print-prog-name=collect2`
  9907. if test -f "$collect2name" && \
  9908. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9909. then
  9910. # We have reworked collect2
  9911. hardcode_direct_CXX=yes
  9912. else
  9913. # We have old collect2
  9914. hardcode_direct_CXX=unsupported
  9915. # It fails to find uninstalled libraries when the uninstalled
  9916. # path is not listed in the libpath. Setting hardcode_minus_L
  9917. # to unsupported forces relinking
  9918. hardcode_minus_L_CXX=yes
  9919. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9920. hardcode_libdir_separator_CXX=
  9921. fi
  9922. ;;
  9923. esac
  9924. shared_flag='-shared'
  9925. if test "$aix_use_runtimelinking" = yes; then
  9926. shared_flag="$shared_flag "'${wl}-G'
  9927. fi
  9928. else
  9929. # not using gcc
  9930. if test "$host_cpu" = ia64; then
  9931. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9932. # chokes on -Wl,-G. The following line is correct:
  9933. shared_flag='-G'
  9934. else
  9935. if test "$aix_use_runtimelinking" = yes; then
  9936. shared_flag='${wl}-G'
  9937. else
  9938. shared_flag='${wl}-bM:SRE'
  9939. fi
  9940. fi
  9941. fi
  9942. # It seems that -bexpall does not export symbols beginning with
  9943. # underscore (_), so it is better to generate a list of symbols to export.
  9944. always_export_symbols_CXX=yes
  9945. if test "$aix_use_runtimelinking" = yes; then
  9946. # Warning - without using the other runtime loading flags (-brtl),
  9947. # -berok will link without error, but may produce a broken library.
  9948. allow_undefined_flag_CXX='-berok'
  9949. # Determine the default libpath from the value encoded in an empty executable.
  9950. cat >conftest.$ac_ext <<_ACEOF
  9951. /* confdefs.h. */
  9952. _ACEOF
  9953. cat confdefs.h >>conftest.$ac_ext
  9954. cat >>conftest.$ac_ext <<_ACEOF
  9955. /* end confdefs.h. */
  9956. int
  9957. main ()
  9958. {
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. rm -f conftest.$ac_objext conftest$ac_exeext
  9964. if { (ac_try="$ac_link"
  9965. case "(($ac_try" in
  9966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9967. *) ac_try_echo=$ac_try;;
  9968. esac
  9969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9970. (eval "$ac_link") 2>conftest.er1
  9971. ac_status=$?
  9972. grep -v '^ *+' conftest.er1 >conftest.err
  9973. rm -f conftest.er1
  9974. cat conftest.err >&5
  9975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9976. (exit $ac_status); } && {
  9977. test -z "$ac_cxx_werror_flag" ||
  9978. test ! -s conftest.err
  9979. } && test -s conftest$ac_exeext &&
  9980. $as_test_x conftest$ac_exeext; then
  9981. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9982. }'`
  9983. # Check for a 64-bit object if we didn't find anything.
  9984. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9985. }'`; fi
  9986. else
  9987. echo "$as_me: failed program was:" >&5
  9988. sed 's/^/| /' conftest.$ac_ext >&5
  9989. fi
  9990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9991. conftest$ac_exeext conftest.$ac_ext
  9992. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9993. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9994. 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"
  9995. else
  9996. if test "$host_cpu" = ia64; then
  9997. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9998. allow_undefined_flag_CXX="-z nodefs"
  9999. 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"
  10000. else
  10001. # Determine the default libpath from the value encoded in an empty executable.
  10002. cat >conftest.$ac_ext <<_ACEOF
  10003. /* confdefs.h. */
  10004. _ACEOF
  10005. cat confdefs.h >>conftest.$ac_ext
  10006. cat >>conftest.$ac_ext <<_ACEOF
  10007. /* end confdefs.h. */
  10008. int
  10009. main ()
  10010. {
  10011. ;
  10012. return 0;
  10013. }
  10014. _ACEOF
  10015. rm -f conftest.$ac_objext conftest$ac_exeext
  10016. if { (ac_try="$ac_link"
  10017. case "(($ac_try" in
  10018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10019. *) ac_try_echo=$ac_try;;
  10020. esac
  10021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10022. (eval "$ac_link") 2>conftest.er1
  10023. ac_status=$?
  10024. grep -v '^ *+' conftest.er1 >conftest.err
  10025. rm -f conftest.er1
  10026. cat conftest.err >&5
  10027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10028. (exit $ac_status); } && {
  10029. test -z "$ac_cxx_werror_flag" ||
  10030. test ! -s conftest.err
  10031. } && test -s conftest$ac_exeext &&
  10032. $as_test_x conftest$ac_exeext; then
  10033. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10034. }'`
  10035. # Check for a 64-bit object if we didn't find anything.
  10036. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  10037. }'`; fi
  10038. else
  10039. echo "$as_me: failed program was:" >&5
  10040. sed 's/^/| /' conftest.$ac_ext >&5
  10041. fi
  10042. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10043. conftest$ac_exeext conftest.$ac_ext
  10044. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10045. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10046. # Warning - without using the other run time loading flags,
  10047. # -berok will link without error, but may produce a broken library.
  10048. no_undefined_flag_CXX=' ${wl}-bernotok'
  10049. allow_undefined_flag_CXX=' ${wl}-berok'
  10050. # Exported symbols can be pulled into shared objects from archives
  10051. whole_archive_flag_spec_CXX='$convenience'
  10052. archive_cmds_need_lc_CXX=yes
  10053. # This is similar to how AIX traditionally builds its shared libraries.
  10054. 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'
  10055. fi
  10056. fi
  10057. ;;
  10058. beos*)
  10059. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10060. allow_undefined_flag_CXX=unsupported
  10061. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10062. # support --undefined. This deserves some investigation. FIXME
  10063. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10064. else
  10065. ld_shlibs_CXX=no
  10066. fi
  10067. ;;
  10068. chorus*)
  10069. case $cc_basename in
  10070. *)
  10071. # FIXME: insert proper C++ library support
  10072. ld_shlibs_CXX=no
  10073. ;;
  10074. esac
  10075. ;;
  10076. cygwin* | mingw* | pw32*)
  10077. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10078. # as there is no search path for DLLs.
  10079. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10080. allow_undefined_flag_CXX=unsupported
  10081. always_export_symbols_CXX=no
  10082. enable_shared_with_static_runtimes_CXX=yes
  10083. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10084. 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'
  10085. # If the export-symbols file already is a .def file (1st line
  10086. # is EXPORTS), use it as is; otherwise, prepend...
  10087. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10088. cp $export_symbols $output_objdir/$soname.def;
  10089. else
  10090. echo EXPORTS > $output_objdir/$soname.def;
  10091. cat $export_symbols >> $output_objdir/$soname.def;
  10092. fi~
  10093. $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'
  10094. else
  10095. ld_shlibs_CXX=no
  10096. fi
  10097. ;;
  10098. darwin* | rhapsody*)
  10099. case $host_os in
  10100. rhapsody* | darwin1.[012])
  10101. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10102. ;;
  10103. *) # Darwin 1.3 on
  10104. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10105. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10106. else
  10107. case ${MACOSX_DEPLOYMENT_TARGET} in
  10108. 10.[012])
  10109. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10110. ;;
  10111. 10.*)
  10112. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10113. ;;
  10114. esac
  10115. fi
  10116. ;;
  10117. esac
  10118. archive_cmds_need_lc_CXX=no
  10119. hardcode_direct_CXX=no
  10120. hardcode_automatic_CXX=yes
  10121. hardcode_shlibpath_var_CXX=unsupported
  10122. whole_archive_flag_spec_CXX=''
  10123. link_all_deplibs_CXX=yes
  10124. if test "$GXX" = yes ; then
  10125. lt_int_apple_cc_single_mod=no
  10126. output_verbose_link_cmd='echo'
  10127. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10128. lt_int_apple_cc_single_mod=yes
  10129. fi
  10130. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10131. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10132. else
  10133. 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'
  10134. fi
  10135. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10136. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10137. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10138. 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}'
  10139. else
  10140. 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}'
  10141. fi
  10142. 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}'
  10143. else
  10144. case $cc_basename in
  10145. xlc*)
  10146. output_verbose_link_cmd='echo'
  10147. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  10148. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10149. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10150. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10151. 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}'
  10152. ;;
  10153. *)
  10154. ld_shlibs_CXX=no
  10155. ;;
  10156. esac
  10157. fi
  10158. ;;
  10159. dgux*)
  10160. case $cc_basename in
  10161. ec++*)
  10162. # FIXME: insert proper C++ library support
  10163. ld_shlibs_CXX=no
  10164. ;;
  10165. ghcx*)
  10166. # Green Hills C++ Compiler
  10167. # FIXME: insert proper C++ library support
  10168. ld_shlibs_CXX=no
  10169. ;;
  10170. *)
  10171. # FIXME: insert proper C++ library support
  10172. ld_shlibs_CXX=no
  10173. ;;
  10174. esac
  10175. ;;
  10176. freebsd[12]*)
  10177. # C++ shared libraries reported to be fairly broken before switch to ELF
  10178. ld_shlibs_CXX=no
  10179. ;;
  10180. freebsd-elf*)
  10181. archive_cmds_need_lc_CXX=no
  10182. ;;
  10183. freebsd* | kfreebsd*-gnu | dragonfly*)
  10184. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10185. # conventions
  10186. ld_shlibs_CXX=yes
  10187. ;;
  10188. gnu*)
  10189. ;;
  10190. hpux9*)
  10191. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10192. hardcode_libdir_separator_CXX=:
  10193. export_dynamic_flag_spec_CXX='${wl}-E'
  10194. hardcode_direct_CXX=yes
  10195. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10196. # but as the default
  10197. # location of the library.
  10198. case $cc_basename in
  10199. CC*)
  10200. # FIXME: insert proper C++ library support
  10201. ld_shlibs_CXX=no
  10202. ;;
  10203. aCC*)
  10204. 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'
  10205. # Commands to make compiler produce verbose output that lists
  10206. # what "hidden" libraries, object files and flags are used when
  10207. # linking a shared library.
  10208. #
  10209. # There doesn't appear to be a way to prevent this compiler from
  10210. # explicitly linking system object files so we need to strip them
  10211. # from the output so that they don't get included in the library
  10212. # dependencies.
  10213. 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'
  10214. ;;
  10215. *)
  10216. if test "$GXX" = yes; then
  10217. 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'
  10218. else
  10219. # FIXME: insert proper C++ library support
  10220. ld_shlibs_CXX=no
  10221. fi
  10222. ;;
  10223. esac
  10224. ;;
  10225. hpux10*|hpux11*)
  10226. if test $with_gnu_ld = no; then
  10227. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10228. hardcode_libdir_separator_CXX=:
  10229. case $host_cpu in
  10230. hppa*64*|ia64*)
  10231. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  10232. ;;
  10233. *)
  10234. export_dynamic_flag_spec_CXX='${wl}-E'
  10235. ;;
  10236. esac
  10237. fi
  10238. case $host_cpu in
  10239. hppa*64*|ia64*)
  10240. hardcode_direct_CXX=no
  10241. hardcode_shlibpath_var_CXX=no
  10242. ;;
  10243. *)
  10244. hardcode_direct_CXX=yes
  10245. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10246. # but as the default
  10247. # location of the library.
  10248. ;;
  10249. esac
  10250. case $cc_basename in
  10251. CC*)
  10252. # FIXME: insert proper C++ library support
  10253. ld_shlibs_CXX=no
  10254. ;;
  10255. aCC*)
  10256. case $host_cpu in
  10257. hppa*64*)
  10258. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10259. ;;
  10260. ia64*)
  10261. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10262. ;;
  10263. *)
  10264. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10265. ;;
  10266. esac
  10267. # Commands to make compiler produce verbose output that lists
  10268. # what "hidden" libraries, object files and flags are used when
  10269. # linking a shared library.
  10270. #
  10271. # There doesn't appear to be a way to prevent this compiler from
  10272. # explicitly linking system object files so we need to strip them
  10273. # from the output so that they don't get included in the library
  10274. # dependencies.
  10275. 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'
  10276. ;;
  10277. *)
  10278. if test "$GXX" = yes; then
  10279. if test $with_gnu_ld = no; then
  10280. case $host_cpu in
  10281. hppa*64*)
  10282. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10283. ;;
  10284. ia64*)
  10285. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10286. ;;
  10287. *)
  10288. 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'
  10289. ;;
  10290. esac
  10291. fi
  10292. else
  10293. # FIXME: insert proper C++ library support
  10294. ld_shlibs_CXX=no
  10295. fi
  10296. ;;
  10297. esac
  10298. ;;
  10299. interix3*)
  10300. hardcode_direct_CXX=no
  10301. hardcode_shlibpath_var_CXX=no
  10302. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10303. export_dynamic_flag_spec_CXX='${wl}-E'
  10304. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10305. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10306. # default) and relocated if they conflict, which is a slow very memory
  10307. # consuming and fragmenting process. To avoid this, we pick a random,
  10308. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10309. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10310. 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'
  10311. 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'
  10312. ;;
  10313. irix5* | irix6*)
  10314. case $cc_basename in
  10315. CC*)
  10316. # SGI C++
  10317. 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'
  10318. # Archives containing C++ object files must be created using
  10319. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10320. # necessary to make sure instantiated templates are included
  10321. # in the archive.
  10322. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10323. ;;
  10324. *)
  10325. if test "$GXX" = yes; then
  10326. if test "$with_gnu_ld" = no; then
  10327. 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'
  10328. else
  10329. 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'
  10330. fi
  10331. fi
  10332. link_all_deplibs_CXX=yes
  10333. ;;
  10334. esac
  10335. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10336. hardcode_libdir_separator_CXX=:
  10337. ;;
  10338. linux*)
  10339. case $cc_basename in
  10340. KCC*)
  10341. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10342. # KCC will only create a shared library if the output file
  10343. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10344. # to its proper name (with version) after linking.
  10345. 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'
  10346. 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'
  10347. # Commands to make compiler produce verbose output that lists
  10348. # what "hidden" libraries, object files and flags are used when
  10349. # linking a shared library.
  10350. #
  10351. # There doesn't appear to be a way to prevent this compiler from
  10352. # explicitly linking system object files so we need to strip them
  10353. # from the output so that they don't get included in the library
  10354. # dependencies.
  10355. 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'
  10356. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10357. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10358. # Archives containing C++ object files must be created using
  10359. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10360. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10361. ;;
  10362. icpc*)
  10363. # Intel C++
  10364. with_gnu_ld=yes
  10365. # version 8.0 and above of icpc choke on multiply defined symbols
  10366. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10367. # earlier do not add the objects themselves.
  10368. case `$CC -V 2>&1` in
  10369. *"Version 7."*)
  10370. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10371. 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'
  10372. ;;
  10373. *) # Version 8.0 or newer
  10374. tmp_idyn=
  10375. case $host_cpu in
  10376. ia64*) tmp_idyn=' -i_dynamic';;
  10377. esac
  10378. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10379. 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'
  10380. ;;
  10381. esac
  10382. archive_cmds_need_lc_CXX=no
  10383. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10384. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10385. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10386. ;;
  10387. pgCC*)
  10388. # Portland Group C++ compiler
  10389. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10390. 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'
  10391. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10392. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10393. 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'
  10394. ;;
  10395. cxx*)
  10396. # Compaq C++
  10397. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10398. 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'
  10399. runpath_var=LD_RUN_PATH
  10400. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10401. hardcode_libdir_separator_CXX=:
  10402. # Commands to make compiler produce verbose output that lists
  10403. # what "hidden" libraries, object files and flags are used when
  10404. # linking a shared library.
  10405. #
  10406. # There doesn't appear to be a way to prevent this compiler from
  10407. # explicitly linking system object files so we need to strip them
  10408. # from the output so that they don't get included in the library
  10409. # dependencies.
  10410. 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'
  10411. ;;
  10412. esac
  10413. ;;
  10414. lynxos*)
  10415. # FIXME: insert proper C++ library support
  10416. ld_shlibs_CXX=no
  10417. ;;
  10418. m88k*)
  10419. # FIXME: insert proper C++ library support
  10420. ld_shlibs_CXX=no
  10421. ;;
  10422. mvs*)
  10423. case $cc_basename in
  10424. cxx*)
  10425. # FIXME: insert proper C++ library support
  10426. ld_shlibs_CXX=no
  10427. ;;
  10428. *)
  10429. # FIXME: insert proper C++ library support
  10430. ld_shlibs_CXX=no
  10431. ;;
  10432. esac
  10433. ;;
  10434. netbsd*)
  10435. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10436. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10437. wlarc=
  10438. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10439. hardcode_direct_CXX=yes
  10440. hardcode_shlibpath_var_CXX=no
  10441. fi
  10442. # Workaround some broken pre-1.5 toolchains
  10443. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10444. ;;
  10445. openbsd2*)
  10446. # C++ shared libraries are fairly broken
  10447. ld_shlibs_CXX=no
  10448. ;;
  10449. openbsd*)
  10450. hardcode_direct_CXX=yes
  10451. hardcode_shlibpath_var_CXX=no
  10452. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10453. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10454. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10455. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10456. export_dynamic_flag_spec_CXX='${wl}-E'
  10457. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10458. fi
  10459. output_verbose_link_cmd='echo'
  10460. ;;
  10461. osf3*)
  10462. case $cc_basename in
  10463. KCC*)
  10464. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10465. # KCC will only create a shared library if the output file
  10466. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10467. # to its proper name (with version) after linking.
  10468. 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'
  10469. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10470. hardcode_libdir_separator_CXX=:
  10471. # Archives containing C++ object files must be created using
  10472. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10473. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10474. ;;
  10475. RCC*)
  10476. # Rational C++ 2.4.1
  10477. # FIXME: insert proper C++ library support
  10478. ld_shlibs_CXX=no
  10479. ;;
  10480. cxx*)
  10481. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10482. 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'
  10483. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10484. hardcode_libdir_separator_CXX=:
  10485. # Commands to make compiler produce verbose output that lists
  10486. # what "hidden" libraries, object files and flags are used when
  10487. # linking a shared library.
  10488. #
  10489. # There doesn't appear to be a way to prevent this compiler from
  10490. # explicitly linking system object files so we need to strip them
  10491. # from the output so that they don't get included in the library
  10492. # dependencies.
  10493. 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'
  10494. ;;
  10495. *)
  10496. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10497. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10498. 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'
  10499. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10500. hardcode_libdir_separator_CXX=:
  10501. # Commands to make compiler produce verbose output that lists
  10502. # what "hidden" libraries, object files and flags are used when
  10503. # linking a shared library.
  10504. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10505. else
  10506. # FIXME: insert proper C++ library support
  10507. ld_shlibs_CXX=no
  10508. fi
  10509. ;;
  10510. esac
  10511. ;;
  10512. osf4* | osf5*)
  10513. case $cc_basename in
  10514. KCC*)
  10515. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10516. # KCC will only create a shared library if the output file
  10517. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10518. # to its proper name (with version) after linking.
  10519. 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'
  10520. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10521. hardcode_libdir_separator_CXX=:
  10522. # Archives containing C++ object files must be created using
  10523. # the KAI C++ compiler.
  10524. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10525. ;;
  10526. RCC*)
  10527. # Rational C++ 2.4.1
  10528. # FIXME: insert proper C++ library support
  10529. ld_shlibs_CXX=no
  10530. ;;
  10531. cxx*)
  10532. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10533. 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'
  10534. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10535. echo "-hidden">> $lib.exp~
  10536. $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~
  10537. $rm $lib.exp'
  10538. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10539. hardcode_libdir_separator_CXX=:
  10540. # Commands to make compiler produce verbose output that lists
  10541. # what "hidden" libraries, object files and flags are used when
  10542. # linking a shared library.
  10543. #
  10544. # There doesn't appear to be a way to prevent this compiler from
  10545. # explicitly linking system object files so we need to strip them
  10546. # from the output so that they don't get included in the library
  10547. # dependencies.
  10548. 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'
  10549. ;;
  10550. *)
  10551. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10552. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10553. 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'
  10554. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10555. hardcode_libdir_separator_CXX=:
  10556. # Commands to make compiler produce verbose output that lists
  10557. # what "hidden" libraries, object files and flags are used when
  10558. # linking a shared library.
  10559. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10560. else
  10561. # FIXME: insert proper C++ library support
  10562. ld_shlibs_CXX=no
  10563. fi
  10564. ;;
  10565. esac
  10566. ;;
  10567. psos*)
  10568. # FIXME: insert proper C++ library support
  10569. ld_shlibs_CXX=no
  10570. ;;
  10571. sunos4*)
  10572. case $cc_basename in
  10573. CC*)
  10574. # Sun C++ 4.x
  10575. # FIXME: insert proper C++ library support
  10576. ld_shlibs_CXX=no
  10577. ;;
  10578. lcc*)
  10579. # Lucid
  10580. # FIXME: insert proper C++ library support
  10581. ld_shlibs_CXX=no
  10582. ;;
  10583. *)
  10584. # FIXME: insert proper C++ library support
  10585. ld_shlibs_CXX=no
  10586. ;;
  10587. esac
  10588. ;;
  10589. solaris*)
  10590. case $cc_basename in
  10591. CC*)
  10592. # Sun C++ 4.2, 5.x and Centerline C++
  10593. archive_cmds_need_lc_CXX=yes
  10594. no_undefined_flag_CXX=' -zdefs'
  10595. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10596. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10597. $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'
  10598. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10599. hardcode_shlibpath_var_CXX=no
  10600. case $host_os in
  10601. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10602. *)
  10603. # The C++ compiler is used as linker so we must use $wl
  10604. # flag to pass the commands to the underlying system
  10605. # linker. We must also pass each convience library through
  10606. # to the system linker between allextract/defaultextract.
  10607. # The C++ compiler will combine linker options so we
  10608. # cannot just pass the convience library names through
  10609. # without $wl.
  10610. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10611. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  10612. ;;
  10613. esac
  10614. link_all_deplibs_CXX=yes
  10615. output_verbose_link_cmd='echo'
  10616. # Archives containing C++ object files must be created using
  10617. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10618. # necessary to make sure instantiated templates are included
  10619. # in the archive.
  10620. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10621. ;;
  10622. gcx*)
  10623. # Green Hills C++ Compiler
  10624. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10625. # The C++ compiler must be used to create the archive.
  10626. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10627. ;;
  10628. *)
  10629. # GNU C++ compiler with Solaris linker
  10630. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10631. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10632. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10633. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10634. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10635. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10636. # Commands to make compiler produce verbose output that lists
  10637. # what "hidden" libraries, object files and flags are used when
  10638. # linking a shared library.
  10639. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10640. else
  10641. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10642. # platform.
  10643. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10644. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10645. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10646. # Commands to make compiler produce verbose output that lists
  10647. # what "hidden" libraries, object files and flags are used when
  10648. # linking a shared library.
  10649. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10650. fi
  10651. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10652. fi
  10653. ;;
  10654. esac
  10655. ;;
  10656. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10657. no_undefined_flag_CXX='${wl}-z,text'
  10658. archive_cmds_need_lc_CXX=no
  10659. hardcode_shlibpath_var_CXX=no
  10660. runpath_var='LD_RUN_PATH'
  10661. case $cc_basename in
  10662. CC*)
  10663. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10664. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10665. ;;
  10666. *)
  10667. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10668. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10669. ;;
  10670. esac
  10671. ;;
  10672. sysv5* | sco3.2v5* | sco5v6*)
  10673. # Note: We can NOT use -z defs as we might desire, because we do not
  10674. # link with -lc, and that would cause any symbols used from libc to
  10675. # always be unresolved, which means just about no library would
  10676. # ever link correctly. If we're not using GNU ld we use -z text
  10677. # though, which does catch some bad symbols but isn't as heavy-handed
  10678. # as -z defs.
  10679. # For security reasons, it is highly recommended that you always
  10680. # use absolute paths for naming shared libraries, and exclude the
  10681. # DT_RUNPATH tag from executables and libraries. But doing so
  10682. # requires that you compile everything twice, which is a pain.
  10683. # So that behaviour is only enabled if SCOABSPATH is set to a
  10684. # non-empty value in the environment. Most likely only useful for
  10685. # creating official distributions of packages.
  10686. # This is a hack until libtool officially supports absolute path
  10687. # names for shared libraries.
  10688. no_undefined_flag_CXX='${wl}-z,text'
  10689. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10690. archive_cmds_need_lc_CXX=no
  10691. hardcode_shlibpath_var_CXX=no
  10692. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10693. hardcode_libdir_separator_CXX=':'
  10694. link_all_deplibs_CXX=yes
  10695. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10696. runpath_var='LD_RUN_PATH'
  10697. case $cc_basename in
  10698. CC*)
  10699. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10700. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10701. ;;
  10702. *)
  10703. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10704. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10705. ;;
  10706. esac
  10707. ;;
  10708. tandem*)
  10709. case $cc_basename in
  10710. NCC*)
  10711. # NonStop-UX NCC 3.20
  10712. # FIXME: insert proper C++ library support
  10713. ld_shlibs_CXX=no
  10714. ;;
  10715. *)
  10716. # FIXME: insert proper C++ library support
  10717. ld_shlibs_CXX=no
  10718. ;;
  10719. esac
  10720. ;;
  10721. vxworks*)
  10722. # FIXME: insert proper C++ library support
  10723. ld_shlibs_CXX=no
  10724. ;;
  10725. *)
  10726. # FIXME: insert proper C++ library support
  10727. ld_shlibs_CXX=no
  10728. ;;
  10729. esac
  10730. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10731. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10732. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10733. GCC_CXX="$GXX"
  10734. LD_CXX="$LD"
  10735. cat > conftest.$ac_ext <<EOF
  10736. class Foo
  10737. {
  10738. public:
  10739. Foo (void) { a = 0; }
  10740. private:
  10741. int a;
  10742. };
  10743. EOF
  10744. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10745. (eval $ac_compile) 2>&5
  10746. ac_status=$?
  10747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10748. (exit $ac_status); }; then
  10749. # Parse the compiler output and extract the necessary
  10750. # objects, libraries and library flags.
  10751. # Sentinel used to keep track of whether or not we are before
  10752. # the conftest object file.
  10753. pre_test_object_deps_done=no
  10754. # The `*' in the case matches for architectures that use `case' in
  10755. # $output_verbose_cmd can trigger glob expansion during the loop
  10756. # eval without this substitution.
  10757. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10758. for p in `eval $output_verbose_link_cmd`; do
  10759. case $p in
  10760. -L* | -R* | -l*)
  10761. # Some compilers place space between "-{L,R}" and the path.
  10762. # Remove the space.
  10763. if test $p = "-L" \
  10764. || test $p = "-R"; then
  10765. prev=$p
  10766. continue
  10767. else
  10768. prev=
  10769. fi
  10770. if test "$pre_test_object_deps_done" = no; then
  10771. case $p in
  10772. -L* | -R*)
  10773. # Internal compiler library paths should come after those
  10774. # provided the user. The postdeps already come after the
  10775. # user supplied libs so there is no need to process them.
  10776. if test -z "$compiler_lib_search_path_CXX"; then
  10777. compiler_lib_search_path_CXX="${prev}${p}"
  10778. else
  10779. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10780. fi
  10781. ;;
  10782. # The "-l" case would never come before the object being
  10783. # linked, so don't bother handling this case.
  10784. esac
  10785. else
  10786. if test -z "$postdeps_CXX"; then
  10787. postdeps_CXX="${prev}${p}"
  10788. else
  10789. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10790. fi
  10791. fi
  10792. ;;
  10793. *.$objext)
  10794. # This assumes that the test object file only shows up
  10795. # once in the compiler output.
  10796. if test "$p" = "conftest.$objext"; then
  10797. pre_test_object_deps_done=yes
  10798. continue
  10799. fi
  10800. if test "$pre_test_object_deps_done" = no; then
  10801. if test -z "$predep_objects_CXX"; then
  10802. predep_objects_CXX="$p"
  10803. else
  10804. predep_objects_CXX="$predep_objects_CXX $p"
  10805. fi
  10806. else
  10807. if test -z "$postdep_objects_CXX"; then
  10808. postdep_objects_CXX="$p"
  10809. else
  10810. postdep_objects_CXX="$postdep_objects_CXX $p"
  10811. fi
  10812. fi
  10813. ;;
  10814. *) ;; # Ignore the rest.
  10815. esac
  10816. done
  10817. # Clean up.
  10818. rm -f a.out a.exe
  10819. else
  10820. echo "libtool.m4: error: problem compiling CXX test program"
  10821. fi
  10822. $rm -f confest.$objext
  10823. # PORTME: override above test on systems where it is broken
  10824. case $host_os in
  10825. interix3*)
  10826. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10827. # hack all around it, let's just trust "g++" to DTRT.
  10828. predep_objects_CXX=
  10829. postdep_objects_CXX=
  10830. postdeps_CXX=
  10831. ;;
  10832. solaris*)
  10833. case $cc_basename in
  10834. CC*)
  10835. # Adding this requires a known-good setup of shared libraries for
  10836. # Sun compiler versions before 5.6, else PIC objects from an old
  10837. # archive will be linked into the output, leading to subtle bugs.
  10838. postdeps_CXX='-lCstd -lCrun'
  10839. ;;
  10840. esac
  10841. ;;
  10842. esac
  10843. case " $postdeps_CXX " in
  10844. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10845. esac
  10846. lt_prog_compiler_wl_CXX=
  10847. lt_prog_compiler_pic_CXX=
  10848. lt_prog_compiler_static_CXX=
  10849. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10850. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  10851. # C++ specific cases for pic, static, wl, etc.
  10852. if test "$GXX" = yes; then
  10853. lt_prog_compiler_wl_CXX='-Wl,'
  10854. lt_prog_compiler_static_CXX='-static'
  10855. case $host_os in
  10856. aix*)
  10857. # All AIX code is PIC.
  10858. if test "$host_cpu" = ia64; then
  10859. # AIX 5 now supports IA64 processor
  10860. lt_prog_compiler_static_CXX='-Bstatic'
  10861. fi
  10862. ;;
  10863. amigaos*)
  10864. # FIXME: we need at least 68020 code to build shared libraries, but
  10865. # adding the `-m68020' flag to GCC prevents building anything better,
  10866. # like `-m68040'.
  10867. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10868. ;;
  10869. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10870. # PIC is the default for these OSes.
  10871. ;;
  10872. mingw* | os2* | pw32*)
  10873. # This hack is so that the source file can tell whether it is being
  10874. # built for inclusion in a dll (and should export symbols for example).
  10875. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10876. ;;
  10877. darwin* | rhapsody*)
  10878. # PIC is the default on this platform
  10879. # Common symbols not allowed in MH_DYLIB files
  10880. lt_prog_compiler_pic_CXX='-fno-common'
  10881. ;;
  10882. *djgpp*)
  10883. # DJGPP does not support shared libraries at all
  10884. lt_prog_compiler_pic_CXX=
  10885. ;;
  10886. interix3*)
  10887. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10888. # Instead, we relocate shared libraries at runtime.
  10889. ;;
  10890. sysv4*MP*)
  10891. if test -d /usr/nec; then
  10892. lt_prog_compiler_pic_CXX=-Kconform_pic
  10893. fi
  10894. ;;
  10895. hpux*)
  10896. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10897. # not for PA HP-UX.
  10898. case $host_cpu in
  10899. hppa*64*|ia64*)
  10900. ;;
  10901. *)
  10902. lt_prog_compiler_pic_CXX='-fPIC'
  10903. ;;
  10904. esac
  10905. ;;
  10906. *)
  10907. lt_prog_compiler_pic_CXX='-fPIC'
  10908. ;;
  10909. esac
  10910. else
  10911. case $host_os in
  10912. aix4* | aix5*)
  10913. # All AIX code is PIC.
  10914. if test "$host_cpu" = ia64; then
  10915. # AIX 5 now supports IA64 processor
  10916. lt_prog_compiler_static_CXX='-Bstatic'
  10917. else
  10918. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10919. fi
  10920. ;;
  10921. chorus*)
  10922. case $cc_basename in
  10923. cxch68*)
  10924. # Green Hills C++ Compiler
  10925. # _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"
  10926. ;;
  10927. esac
  10928. ;;
  10929. darwin*)
  10930. # PIC is the default on this platform
  10931. # Common symbols not allowed in MH_DYLIB files
  10932. case $cc_basename in
  10933. xlc*)
  10934. lt_prog_compiler_pic_CXX='-qnocommon'
  10935. lt_prog_compiler_wl_CXX='-Wl,'
  10936. ;;
  10937. esac
  10938. ;;
  10939. dgux*)
  10940. case $cc_basename in
  10941. ec++*)
  10942. lt_prog_compiler_pic_CXX='-KPIC'
  10943. ;;
  10944. ghcx*)
  10945. # Green Hills C++ Compiler
  10946. lt_prog_compiler_pic_CXX='-pic'
  10947. ;;
  10948. *)
  10949. ;;
  10950. esac
  10951. ;;
  10952. freebsd* | kfreebsd*-gnu | dragonfly*)
  10953. # FreeBSD uses GNU C++
  10954. ;;
  10955. hpux9* | hpux10* | hpux11*)
  10956. case $cc_basename in
  10957. CC*)
  10958. lt_prog_compiler_wl_CXX='-Wl,'
  10959. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10960. if test "$host_cpu" != ia64; then
  10961. lt_prog_compiler_pic_CXX='+Z'
  10962. fi
  10963. ;;
  10964. aCC*)
  10965. lt_prog_compiler_wl_CXX='-Wl,'
  10966. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10967. case $host_cpu in
  10968. hppa*64*|ia64*)
  10969. # +Z the default
  10970. ;;
  10971. *)
  10972. lt_prog_compiler_pic_CXX='+Z'
  10973. ;;
  10974. esac
  10975. ;;
  10976. *)
  10977. ;;
  10978. esac
  10979. ;;
  10980. interix*)
  10981. # This is c89, which is MS Visual C++ (no shared libs)
  10982. # Anyone wants to do a port?
  10983. ;;
  10984. irix5* | irix6* | nonstopux*)
  10985. case $cc_basename in
  10986. CC*)
  10987. lt_prog_compiler_wl_CXX='-Wl,'
  10988. lt_prog_compiler_static_CXX='-non_shared'
  10989. # CC pic flag -KPIC is the default.
  10990. ;;
  10991. *)
  10992. ;;
  10993. esac
  10994. ;;
  10995. linux*)
  10996. case $cc_basename in
  10997. KCC*)
  10998. # KAI C++ Compiler
  10999. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11000. lt_prog_compiler_pic_CXX='-fPIC'
  11001. ;;
  11002. icpc* | ecpc*)
  11003. # Intel C++
  11004. lt_prog_compiler_wl_CXX='-Wl,'
  11005. lt_prog_compiler_pic_CXX='-KPIC'
  11006. lt_prog_compiler_static_CXX='-static'
  11007. ;;
  11008. pgCC*)
  11009. # Portland Group C++ compiler.
  11010. lt_prog_compiler_wl_CXX='-Wl,'
  11011. lt_prog_compiler_pic_CXX='-fpic'
  11012. lt_prog_compiler_static_CXX='-Bstatic'
  11013. ;;
  11014. cxx*)
  11015. # Compaq C++
  11016. # Make sure the PIC flag is empty. It appears that all Alpha
  11017. # Linux and Compaq Tru64 Unix objects are PIC.
  11018. lt_prog_compiler_pic_CXX=
  11019. lt_prog_compiler_static_CXX='-non_shared'
  11020. ;;
  11021. *)
  11022. ;;
  11023. esac
  11024. ;;
  11025. lynxos*)
  11026. ;;
  11027. m88k*)
  11028. ;;
  11029. mvs*)
  11030. case $cc_basename in
  11031. cxx*)
  11032. lt_prog_compiler_pic_CXX='-W c,exportall'
  11033. ;;
  11034. *)
  11035. ;;
  11036. esac
  11037. ;;
  11038. netbsd*)
  11039. ;;
  11040. osf3* | osf4* | osf5*)
  11041. case $cc_basename in
  11042. KCC*)
  11043. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11044. ;;
  11045. RCC*)
  11046. # Rational C++ 2.4.1
  11047. lt_prog_compiler_pic_CXX='-pic'
  11048. ;;
  11049. cxx*)
  11050. # Digital/Compaq C++
  11051. lt_prog_compiler_wl_CXX='-Wl,'
  11052. # Make sure the PIC flag is empty. It appears that all Alpha
  11053. # Linux and Compaq Tru64 Unix objects are PIC.
  11054. lt_prog_compiler_pic_CXX=
  11055. lt_prog_compiler_static_CXX='-non_shared'
  11056. ;;
  11057. *)
  11058. ;;
  11059. esac
  11060. ;;
  11061. psos*)
  11062. ;;
  11063. solaris*)
  11064. case $cc_basename in
  11065. CC*)
  11066. # Sun C++ 4.2, 5.x and Centerline C++
  11067. lt_prog_compiler_pic_CXX='-KPIC'
  11068. lt_prog_compiler_static_CXX='-Bstatic'
  11069. lt_prog_compiler_wl_CXX='-Qoption ld '
  11070. ;;
  11071. gcx*)
  11072. # Green Hills C++ Compiler
  11073. lt_prog_compiler_pic_CXX='-PIC'
  11074. ;;
  11075. *)
  11076. ;;
  11077. esac
  11078. ;;
  11079. sunos4*)
  11080. case $cc_basename in
  11081. CC*)
  11082. # Sun C++ 4.x
  11083. lt_prog_compiler_pic_CXX='-pic'
  11084. lt_prog_compiler_static_CXX='-Bstatic'
  11085. ;;
  11086. lcc*)
  11087. # Lucid
  11088. lt_prog_compiler_pic_CXX='-pic'
  11089. ;;
  11090. *)
  11091. ;;
  11092. esac
  11093. ;;
  11094. tandem*)
  11095. case $cc_basename in
  11096. NCC*)
  11097. # NonStop-UX NCC 3.20
  11098. lt_prog_compiler_pic_CXX='-KPIC'
  11099. ;;
  11100. *)
  11101. ;;
  11102. esac
  11103. ;;
  11104. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11105. case $cc_basename in
  11106. CC*)
  11107. lt_prog_compiler_wl_CXX='-Wl,'
  11108. lt_prog_compiler_pic_CXX='-KPIC'
  11109. lt_prog_compiler_static_CXX='-Bstatic'
  11110. ;;
  11111. esac
  11112. ;;
  11113. vxworks*)
  11114. ;;
  11115. *)
  11116. lt_prog_compiler_can_build_shared_CXX=no
  11117. ;;
  11118. esac
  11119. fi
  11120. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11121. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11122. #
  11123. # Check to make sure the PIC flag actually works.
  11124. #
  11125. if test -n "$lt_prog_compiler_pic_CXX"; then
  11126. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11127. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11128. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11129. echo $ECHO_N "(cached) $ECHO_C" >&6
  11130. else
  11131. lt_prog_compiler_pic_works_CXX=no
  11132. ac_outfile=conftest.$ac_objext
  11133. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11134. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11135. # Insert the option either (1) after the last *FLAGS variable, or
  11136. # (2) before a word containing "conftest.", or (3) at the end.
  11137. # Note that $ac_compile itself does not contain backslashes and begins
  11138. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11139. # The option is referenced via a variable to avoid confusing sed.
  11140. lt_compile=`echo "$ac_compile" | $SED \
  11141. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11142. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11143. -e 's:$: $lt_compiler_flag:'`
  11144. (eval echo "\"\$as_me:12419: $lt_compile\"" >&5)
  11145. (eval "$lt_compile" 2>conftest.err)
  11146. ac_status=$?
  11147. cat conftest.err >&5
  11148. echo "$as_me:12423: \$? = $ac_status" >&5
  11149. if (exit $ac_status) && test -s "$ac_outfile"; then
  11150. # The compiler can only warn and ignore the option if not recognized
  11151. # So say no if there are warnings other than the usual output.
  11152. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11153. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11154. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11155. lt_prog_compiler_pic_works_CXX=yes
  11156. fi
  11157. fi
  11158. $rm conftest*
  11159. fi
  11160. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11161. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11162. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11163. case $lt_prog_compiler_pic_CXX in
  11164. "" | " "*) ;;
  11165. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11166. esac
  11167. else
  11168. lt_prog_compiler_pic_CXX=
  11169. lt_prog_compiler_can_build_shared_CXX=no
  11170. fi
  11171. fi
  11172. case $host_os in
  11173. # For platforms which do not support PIC, -DPIC is meaningless:
  11174. *djgpp*)
  11175. lt_prog_compiler_pic_CXX=
  11176. ;;
  11177. *)
  11178. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11179. ;;
  11180. esac
  11181. #
  11182. # Check to make sure the static flag actually works.
  11183. #
  11184. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11185. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11186. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11187. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11188. echo $ECHO_N "(cached) $ECHO_C" >&6
  11189. else
  11190. lt_prog_compiler_static_works_CXX=no
  11191. save_LDFLAGS="$LDFLAGS"
  11192. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11193. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  11194. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11195. # The linker can only warn and ignore the option if not recognized
  11196. # So say no if there are warnings
  11197. if test -s conftest.err; then
  11198. # Append any errors to the config.log.
  11199. cat conftest.err 1>&5
  11200. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11201. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11202. if diff conftest.exp conftest.er2 >/dev/null; then
  11203. lt_prog_compiler_static_works_CXX=yes
  11204. fi
  11205. else
  11206. lt_prog_compiler_static_works_CXX=yes
  11207. fi
  11208. fi
  11209. $rm conftest*
  11210. LDFLAGS="$save_LDFLAGS"
  11211. fi
  11212. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11213. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11214. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11215. :
  11216. else
  11217. lt_prog_compiler_static_CXX=
  11218. fi
  11219. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11220. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11221. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11222. echo $ECHO_N "(cached) $ECHO_C" >&6
  11223. else
  11224. lt_cv_prog_compiler_c_o_CXX=no
  11225. $rm -r conftest 2>/dev/null
  11226. mkdir conftest
  11227. cd conftest
  11228. mkdir out
  11229. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11230. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11231. # Insert the option either (1) after the last *FLAGS variable, or
  11232. # (2) before a word containing "conftest.", or (3) at the end.
  11233. # Note that $ac_compile itself does not contain backslashes and begins
  11234. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11235. lt_compile=`echo "$ac_compile" | $SED \
  11236. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11237. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11238. -e 's:$: $lt_compiler_flag:'`
  11239. (eval echo "\"\$as_me:12523: $lt_compile\"" >&5)
  11240. (eval "$lt_compile" 2>out/conftest.err)
  11241. ac_status=$?
  11242. cat out/conftest.err >&5
  11243. echo "$as_me:12527: \$? = $ac_status" >&5
  11244. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11245. then
  11246. # The compiler can only warn and ignore the option if not recognized
  11247. # So say no if there are warnings
  11248. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11249. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11250. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11251. lt_cv_prog_compiler_c_o_CXX=yes
  11252. fi
  11253. fi
  11254. chmod u+w . 2>&5
  11255. $rm conftest*
  11256. # SGI C++ compiler will create directory out/ii_files/ for
  11257. # template instantiation
  11258. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11259. $rm out/* && rmdir out
  11260. cd ..
  11261. rmdir conftest
  11262. $rm conftest*
  11263. fi
  11264. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11265. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11266. hard_links="nottested"
  11267. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11268. # do not overwrite the value of need_locks provided by the user
  11269. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11270. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11271. hard_links=yes
  11272. $rm conftest*
  11273. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11274. touch conftest.a
  11275. ln conftest.a conftest.b 2>&5 || hard_links=no
  11276. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11277. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11278. echo "${ECHO_T}$hard_links" >&6; }
  11279. if test "$hard_links" = no; then
  11280. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11281. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11282. need_locks=warn
  11283. fi
  11284. else
  11285. need_locks=no
  11286. fi
  11287. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11288. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11289. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11290. case $host_os in
  11291. aix4* | aix5*)
  11292. # If we're using GNU nm, then we don't want the "-C" option.
  11293. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11294. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11295. 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'
  11296. else
  11297. 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'
  11298. fi
  11299. ;;
  11300. pw32*)
  11301. export_symbols_cmds_CXX="$ltdll_cmds"
  11302. ;;
  11303. cygwin* | mingw*)
  11304. 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'
  11305. ;;
  11306. *)
  11307. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11308. ;;
  11309. esac
  11310. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11311. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11312. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11313. #
  11314. # Do we need to explicitly link libc?
  11315. #
  11316. case "x$archive_cmds_need_lc_CXX" in
  11317. x|xyes)
  11318. # Assume -lc should be added
  11319. archive_cmds_need_lc_CXX=yes
  11320. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11321. case $archive_cmds_CXX in
  11322. *'~'*)
  11323. # FIXME: we may have to deal with multi-command sequences.
  11324. ;;
  11325. '$CC '*)
  11326. # Test whether the compiler implicitly links with -lc since on some
  11327. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11328. # to ld, don't add -lc before -lgcc.
  11329. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11330. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11331. $rm conftest*
  11332. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11333. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11334. (eval $ac_compile) 2>&5
  11335. ac_status=$?
  11336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11337. (exit $ac_status); } 2>conftest.err; then
  11338. soname=conftest
  11339. lib=conftest
  11340. libobjs=conftest.$ac_objext
  11341. deplibs=
  11342. wl=$lt_prog_compiler_wl_CXX
  11343. pic_flag=$lt_prog_compiler_pic_CXX
  11344. compiler_flags=-v
  11345. linker_flags=-v
  11346. verstring=
  11347. output_objdir=.
  11348. libname=conftest
  11349. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11350. allow_undefined_flag_CXX=
  11351. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11352. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11353. ac_status=$?
  11354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11355. (exit $ac_status); }
  11356. then
  11357. archive_cmds_need_lc_CXX=no
  11358. else
  11359. archive_cmds_need_lc_CXX=yes
  11360. fi
  11361. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11362. else
  11363. cat conftest.err 1>&5
  11364. fi
  11365. $rm conftest*
  11366. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11367. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11368. ;;
  11369. esac
  11370. fi
  11371. ;;
  11372. esac
  11373. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11374. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11375. library_names_spec=
  11376. libname_spec='lib$name'
  11377. soname_spec=
  11378. shrext_cmds=".so"
  11379. postinstall_cmds=
  11380. postuninstall_cmds=
  11381. finish_cmds=
  11382. finish_eval=
  11383. shlibpath_var=
  11384. shlibpath_overrides_runpath=unknown
  11385. version_type=none
  11386. dynamic_linker="$host_os ld.so"
  11387. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11388. if test "$GCC" = yes; then
  11389. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11390. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  11391. # if the path contains ";" then we assume it to be the separator
  11392. # otherwise default to the standard path separator (i.e. ":") - it is
  11393. # assumed that no part of a normal pathname contains ";" but that should
  11394. # okay in the real world where ";" in dirpaths is itself problematic.
  11395. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11396. else
  11397. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11398. fi
  11399. else
  11400. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11401. fi
  11402. need_lib_prefix=unknown
  11403. hardcode_into_libs=no
  11404. # when you set need_version to no, make sure it does not cause -set_version
  11405. # flags to be left without arguments
  11406. need_version=unknown
  11407. case $host_os in
  11408. aix3*)
  11409. version_type=linux
  11410. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11411. shlibpath_var=LIBPATH
  11412. # AIX 3 has no versioning support, so we append a major version to the name.
  11413. soname_spec='${libname}${release}${shared_ext}$major'
  11414. ;;
  11415. aix4* | aix5*)
  11416. version_type=linux
  11417. need_lib_prefix=no
  11418. need_version=no
  11419. hardcode_into_libs=yes
  11420. if test "$host_cpu" = ia64; then
  11421. # AIX 5 supports IA64
  11422. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11423. shlibpath_var=LD_LIBRARY_PATH
  11424. else
  11425. # With GCC up to 2.95.x, collect2 would create an import file
  11426. # for dependence libraries. The import file would start with
  11427. # the line `#! .'. This would cause the generated library to
  11428. # depend on `.', always an invalid library. This was fixed in
  11429. # development snapshots of GCC prior to 3.0.
  11430. case $host_os in
  11431. aix4 | aix4.[01] | aix4.[01].*)
  11432. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11433. echo ' yes '
  11434. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11435. :
  11436. else
  11437. can_build_shared=no
  11438. fi
  11439. ;;
  11440. esac
  11441. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11442. # soname into executable. Probably we can add versioning support to
  11443. # collect2, so additional links can be useful in future.
  11444. if test "$aix_use_runtimelinking" = yes; then
  11445. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11446. # instead of lib<name>.a to let people know that these are not
  11447. # typical AIX shared libraries.
  11448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11449. else
  11450. # We preserve .a as extension for shared libraries through AIX4.2
  11451. # and later when we are not doing run time linking.
  11452. library_names_spec='${libname}${release}.a $libname.a'
  11453. soname_spec='${libname}${release}${shared_ext}$major'
  11454. fi
  11455. shlibpath_var=LIBPATH
  11456. fi
  11457. ;;
  11458. amigaos*)
  11459. library_names_spec='$libname.ixlibrary $libname.a'
  11460. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11461. 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'
  11462. ;;
  11463. beos*)
  11464. library_names_spec='${libname}${shared_ext}'
  11465. dynamic_linker="$host_os ld.so"
  11466. shlibpath_var=LIBRARY_PATH
  11467. ;;
  11468. bsdi[45]*)
  11469. version_type=linux
  11470. need_version=no
  11471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11472. soname_spec='${libname}${release}${shared_ext}$major'
  11473. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11474. shlibpath_var=LD_LIBRARY_PATH
  11475. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11476. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11477. # the default ld.so.conf also contains /usr/contrib/lib and
  11478. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11479. # libtool to hard-code these into programs
  11480. ;;
  11481. cygwin* | mingw* | pw32*)
  11482. version_type=windows
  11483. shrext_cmds=".dll"
  11484. need_version=no
  11485. need_lib_prefix=no
  11486. case $GCC,$host_os in
  11487. yes,cygwin* | yes,mingw* | yes,pw32*)
  11488. library_names_spec='$libname.dll.a'
  11489. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11490. postinstall_cmds='base_file=`basename \${file}`~
  11491. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11492. dldir=$destdir/`dirname \$dlpath`~
  11493. test -d \$dldir || mkdir -p \$dldir~
  11494. $install_prog $dir/$dlname \$dldir/$dlname~
  11495. chmod a+x \$dldir/$dlname'
  11496. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11497. dlpath=$dir/\$dldll~
  11498. $rm \$dlpath'
  11499. shlibpath_overrides_runpath=yes
  11500. case $host_os in
  11501. cygwin*)
  11502. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11503. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11504. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11505. ;;
  11506. mingw*)
  11507. # MinGW DLLs use traditional 'lib' prefix
  11508. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11509. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11510. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11511. # It is most probably a Windows format PATH printed by
  11512. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11513. # path with ; separators, and with drive letters. We can handle the
  11514. # drive letters (cygwin fileutils understands them), so leave them,
  11515. # especially as we might pass files found there to a mingw objdump,
  11516. # which wouldn't understand a cygwinified path. Ahh.
  11517. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11518. else
  11519. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11520. fi
  11521. ;;
  11522. pw32*)
  11523. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11524. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11525. ;;
  11526. esac
  11527. ;;
  11528. *)
  11529. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11530. ;;
  11531. esac
  11532. dynamic_linker='Win32 ld.exe'
  11533. # FIXME: first we should search . and the directory the executable is in
  11534. shlibpath_var=PATH
  11535. ;;
  11536. darwin* | rhapsody*)
  11537. dynamic_linker="$host_os dyld"
  11538. version_type=darwin
  11539. need_lib_prefix=no
  11540. need_version=no
  11541. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11542. soname_spec='${libname}${release}${major}$shared_ext'
  11543. shlibpath_overrides_runpath=yes
  11544. shlibpath_var=DYLD_LIBRARY_PATH
  11545. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11546. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11547. if test "$GCC" = yes; then
  11548. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  11549. else
  11550. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11551. fi
  11552. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11553. ;;
  11554. dgux*)
  11555. version_type=linux
  11556. need_lib_prefix=no
  11557. need_version=no
  11558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11559. soname_spec='${libname}${release}${shared_ext}$major'
  11560. shlibpath_var=LD_LIBRARY_PATH
  11561. ;;
  11562. freebsd1*)
  11563. dynamic_linker=no
  11564. ;;
  11565. kfreebsd*-gnu)
  11566. version_type=linux
  11567. need_lib_prefix=no
  11568. need_version=no
  11569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11570. soname_spec='${libname}${release}${shared_ext}$major'
  11571. shlibpath_var=LD_LIBRARY_PATH
  11572. shlibpath_overrides_runpath=no
  11573. hardcode_into_libs=yes
  11574. dynamic_linker='GNU ld.so'
  11575. ;;
  11576. freebsd* | dragonfly*)
  11577. # DragonFly does not have aout. When/if they implement a new
  11578. # versioning mechanism, adjust this.
  11579. if test -x /usr/bin/objformat; then
  11580. objformat=`/usr/bin/objformat`
  11581. else
  11582. case $host_os in
  11583. freebsd[123]*) objformat=aout ;;
  11584. *) objformat=elf ;;
  11585. esac
  11586. fi
  11587. version_type=freebsd-$objformat
  11588. case $version_type in
  11589. freebsd-elf*)
  11590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11591. need_version=no
  11592. need_lib_prefix=no
  11593. ;;
  11594. freebsd-*)
  11595. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11596. need_version=yes
  11597. ;;
  11598. esac
  11599. shlibpath_var=LD_LIBRARY_PATH
  11600. case $host_os in
  11601. freebsd2*)
  11602. shlibpath_overrides_runpath=yes
  11603. ;;
  11604. freebsd3.[01]* | freebsdelf3.[01]*)
  11605. shlibpath_overrides_runpath=yes
  11606. hardcode_into_libs=yes
  11607. ;;
  11608. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11609. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11610. shlibpath_overrides_runpath=no
  11611. hardcode_into_libs=yes
  11612. ;;
  11613. freebsd*) # from 4.6 on
  11614. shlibpath_overrides_runpath=yes
  11615. hardcode_into_libs=yes
  11616. ;;
  11617. esac
  11618. ;;
  11619. gnu*)
  11620. version_type=linux
  11621. need_lib_prefix=no
  11622. need_version=no
  11623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11624. soname_spec='${libname}${release}${shared_ext}$major'
  11625. shlibpath_var=LD_LIBRARY_PATH
  11626. hardcode_into_libs=yes
  11627. ;;
  11628. hpux9* | hpux10* | hpux11*)
  11629. # Give a soname corresponding to the major version so that dld.sl refuses to
  11630. # link against other versions.
  11631. version_type=sunos
  11632. need_lib_prefix=no
  11633. need_version=no
  11634. case $host_cpu in
  11635. ia64*)
  11636. shrext_cmds='.so'
  11637. hardcode_into_libs=yes
  11638. dynamic_linker="$host_os dld.so"
  11639. shlibpath_var=LD_LIBRARY_PATH
  11640. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11642. soname_spec='${libname}${release}${shared_ext}$major'
  11643. if test "X$HPUX_IA64_MODE" = X32; then
  11644. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11645. else
  11646. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11647. fi
  11648. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11649. ;;
  11650. hppa*64*)
  11651. shrext_cmds='.sl'
  11652. hardcode_into_libs=yes
  11653. dynamic_linker="$host_os dld.sl"
  11654. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11655. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11657. soname_spec='${libname}${release}${shared_ext}$major'
  11658. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11659. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11660. ;;
  11661. *)
  11662. shrext_cmds='.sl'
  11663. dynamic_linker="$host_os dld.sl"
  11664. shlibpath_var=SHLIB_PATH
  11665. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11667. soname_spec='${libname}${release}${shared_ext}$major'
  11668. ;;
  11669. esac
  11670. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11671. postinstall_cmds='chmod 555 $lib'
  11672. ;;
  11673. interix3*)
  11674. version_type=linux
  11675. need_lib_prefix=no
  11676. need_version=no
  11677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11678. soname_spec='${libname}${release}${shared_ext}$major'
  11679. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11680. shlibpath_var=LD_LIBRARY_PATH
  11681. shlibpath_overrides_runpath=no
  11682. hardcode_into_libs=yes
  11683. ;;
  11684. irix5* | irix6* | nonstopux*)
  11685. case $host_os in
  11686. nonstopux*) version_type=nonstopux ;;
  11687. *)
  11688. if test "$lt_cv_prog_gnu_ld" = yes; then
  11689. version_type=linux
  11690. else
  11691. version_type=irix
  11692. fi ;;
  11693. esac
  11694. need_lib_prefix=no
  11695. need_version=no
  11696. soname_spec='${libname}${release}${shared_ext}$major'
  11697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11698. case $host_os in
  11699. irix5* | nonstopux*)
  11700. libsuff= shlibsuff=
  11701. ;;
  11702. *)
  11703. case $LD in # libtool.m4 will add one of these switches to LD
  11704. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11705. libsuff= shlibsuff= libmagic=32-bit;;
  11706. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11707. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11708. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11709. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11710. *) libsuff= shlibsuff= libmagic=never-match;;
  11711. esac
  11712. ;;
  11713. esac
  11714. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11715. shlibpath_overrides_runpath=no
  11716. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11717. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11718. hardcode_into_libs=yes
  11719. ;;
  11720. # No shared lib support for Linux oldld, aout, or coff.
  11721. linux*oldld* | linux*aout* | linux*coff*)
  11722. dynamic_linker=no
  11723. ;;
  11724. # This must be Linux ELF.
  11725. linux*)
  11726. version_type=linux
  11727. need_lib_prefix=no
  11728. need_version=no
  11729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11730. soname_spec='${libname}${release}${shared_ext}$major'
  11731. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11732. shlibpath_var=LD_LIBRARY_PATH
  11733. shlibpath_overrides_runpath=no
  11734. # This implies no fast_install, which is unacceptable.
  11735. # Some rework will be needed to allow for fast_install
  11736. # before this can be enabled.
  11737. hardcode_into_libs=yes
  11738. # Append ld.so.conf contents to the search path
  11739. if test -f /etc/ld.so.conf; then
  11740. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11741. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11742. fi
  11743. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11744. # powerpc, because MkLinux only supported shared libraries with the
  11745. # GNU dynamic linker. Since this was broken with cross compilers,
  11746. # most powerpc-linux boxes support dynamic linking these days and
  11747. # people can always --disable-shared, the test was removed, and we
  11748. # assume the GNU/Linux dynamic linker is in use.
  11749. dynamic_linker='GNU/Linux ld.so'
  11750. ;;
  11751. knetbsd*-gnu)
  11752. version_type=linux
  11753. need_lib_prefix=no
  11754. need_version=no
  11755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11756. soname_spec='${libname}${release}${shared_ext}$major'
  11757. shlibpath_var=LD_LIBRARY_PATH
  11758. shlibpath_overrides_runpath=no
  11759. hardcode_into_libs=yes
  11760. dynamic_linker='GNU ld.so'
  11761. ;;
  11762. netbsd*)
  11763. version_type=sunos
  11764. need_lib_prefix=no
  11765. need_version=no
  11766. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11768. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11769. dynamic_linker='NetBSD (a.out) ld.so'
  11770. else
  11771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11772. soname_spec='${libname}${release}${shared_ext}$major'
  11773. dynamic_linker='NetBSD ld.elf_so'
  11774. fi
  11775. shlibpath_var=LD_LIBRARY_PATH
  11776. shlibpath_overrides_runpath=yes
  11777. hardcode_into_libs=yes
  11778. ;;
  11779. newsos6)
  11780. version_type=linux
  11781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11782. shlibpath_var=LD_LIBRARY_PATH
  11783. shlibpath_overrides_runpath=yes
  11784. ;;
  11785. nto-qnx*)
  11786. version_type=linux
  11787. need_lib_prefix=no
  11788. need_version=no
  11789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11790. soname_spec='${libname}${release}${shared_ext}$major'
  11791. shlibpath_var=LD_LIBRARY_PATH
  11792. shlibpath_overrides_runpath=yes
  11793. ;;
  11794. openbsd*)
  11795. version_type=sunos
  11796. sys_lib_dlsearch_path_spec="/usr/lib"
  11797. need_lib_prefix=no
  11798. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11799. case $host_os in
  11800. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11801. *) need_version=no ;;
  11802. esac
  11803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11804. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11805. shlibpath_var=LD_LIBRARY_PATH
  11806. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11807. case $host_os in
  11808. openbsd2.[89] | openbsd2.[89].*)
  11809. shlibpath_overrides_runpath=no
  11810. ;;
  11811. *)
  11812. shlibpath_overrides_runpath=yes
  11813. ;;
  11814. esac
  11815. else
  11816. shlibpath_overrides_runpath=yes
  11817. fi
  11818. ;;
  11819. os2*)
  11820. libname_spec='$name'
  11821. shrext_cmds=".dll"
  11822. need_lib_prefix=no
  11823. library_names_spec='$libname${shared_ext} $libname.a'
  11824. dynamic_linker='OS/2 ld.exe'
  11825. shlibpath_var=LIBPATH
  11826. ;;
  11827. osf3* | osf4* | osf5*)
  11828. version_type=osf
  11829. need_lib_prefix=no
  11830. need_version=no
  11831. soname_spec='${libname}${release}${shared_ext}$major'
  11832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11833. shlibpath_var=LD_LIBRARY_PATH
  11834. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11835. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11836. ;;
  11837. solaris*)
  11838. version_type=linux
  11839. need_lib_prefix=no
  11840. need_version=no
  11841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11842. soname_spec='${libname}${release}${shared_ext}$major'
  11843. shlibpath_var=LD_LIBRARY_PATH
  11844. shlibpath_overrides_runpath=yes
  11845. hardcode_into_libs=yes
  11846. # ldd complains unless libraries are executable
  11847. postinstall_cmds='chmod +x $lib'
  11848. ;;
  11849. sunos4*)
  11850. version_type=sunos
  11851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11852. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11853. shlibpath_var=LD_LIBRARY_PATH
  11854. shlibpath_overrides_runpath=yes
  11855. if test "$with_gnu_ld" = yes; then
  11856. need_lib_prefix=no
  11857. fi
  11858. need_version=yes
  11859. ;;
  11860. sysv4 | sysv4.3*)
  11861. version_type=linux
  11862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11863. soname_spec='${libname}${release}${shared_ext}$major'
  11864. shlibpath_var=LD_LIBRARY_PATH
  11865. case $host_vendor in
  11866. sni)
  11867. shlibpath_overrides_runpath=no
  11868. need_lib_prefix=no
  11869. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11870. runpath_var=LD_RUN_PATH
  11871. ;;
  11872. siemens)
  11873. need_lib_prefix=no
  11874. ;;
  11875. motorola)
  11876. need_lib_prefix=no
  11877. need_version=no
  11878. shlibpath_overrides_runpath=no
  11879. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11880. ;;
  11881. esac
  11882. ;;
  11883. sysv4*MP*)
  11884. if test -d /usr/nec ;then
  11885. version_type=linux
  11886. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11887. soname_spec='$libname${shared_ext}.$major'
  11888. shlibpath_var=LD_LIBRARY_PATH
  11889. fi
  11890. ;;
  11891. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11892. version_type=freebsd-elf
  11893. need_lib_prefix=no
  11894. need_version=no
  11895. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11896. soname_spec='${libname}${release}${shared_ext}$major'
  11897. shlibpath_var=LD_LIBRARY_PATH
  11898. hardcode_into_libs=yes
  11899. if test "$with_gnu_ld" = yes; then
  11900. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11901. shlibpath_overrides_runpath=no
  11902. else
  11903. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11904. shlibpath_overrides_runpath=yes
  11905. case $host_os in
  11906. sco3.2v5*)
  11907. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11908. ;;
  11909. esac
  11910. fi
  11911. sys_lib_dlsearch_path_spec='/usr/lib'
  11912. ;;
  11913. uts4*)
  11914. version_type=linux
  11915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11916. soname_spec='${libname}${release}${shared_ext}$major'
  11917. shlibpath_var=LD_LIBRARY_PATH
  11918. ;;
  11919. *)
  11920. dynamic_linker=no
  11921. ;;
  11922. esac
  11923. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11924. echo "${ECHO_T}$dynamic_linker" >&6; }
  11925. test "$dynamic_linker" = no && can_build_shared=no
  11926. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11927. if test "$GCC" = yes; then
  11928. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11929. fi
  11930. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11931. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  11932. hardcode_action_CXX=
  11933. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11934. test -n "$runpath_var_CXX" || \
  11935. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11936. # We can hardcode non-existant directories.
  11937. if test "$hardcode_direct_CXX" != no &&
  11938. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11939. # have to relink, otherwise we might link with an installed library
  11940. # when we should be linking with a yet-to-be-installed one
  11941. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11942. test "$hardcode_minus_L_CXX" != no; then
  11943. # Linking always hardcodes the temporary library directory.
  11944. hardcode_action_CXX=relink
  11945. else
  11946. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11947. hardcode_action_CXX=immediate
  11948. fi
  11949. else
  11950. # We cannot hardcode anything, or else we can only hardcode existing
  11951. # directories.
  11952. hardcode_action_CXX=unsupported
  11953. fi
  11954. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11955. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  11956. if test "$hardcode_action_CXX" = relink; then
  11957. # Fast installation is not supported
  11958. enable_fast_install=no
  11959. elif test "$shlibpath_overrides_runpath" = yes ||
  11960. test "$enable_shared" = no; then
  11961. # Fast installation is not necessary
  11962. enable_fast_install=needless
  11963. fi
  11964. # The else clause should only fire when bootstrapping the
  11965. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11966. # with your package, and you will get complaints that there are
  11967. # no rules to generate ltmain.sh.
  11968. if test -f "$ltmain"; then
  11969. # See if we are running on zsh, and set the options which allow our commands through
  11970. # without removal of \ escapes.
  11971. if test -n "${ZSH_VERSION+set}" ; then
  11972. setopt NO_GLOB_SUBST
  11973. fi
  11974. # Now quote all the things that may contain metacharacters while being
  11975. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11976. # variables and quote the copies for generation of the libtool script.
  11977. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11978. SED SHELL STRIP \
  11979. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11980. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11981. deplibs_check_method reload_flag reload_cmds need_locks \
  11982. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11983. lt_cv_sys_global_symbol_to_c_name_address \
  11984. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11985. old_postinstall_cmds old_postuninstall_cmds \
  11986. compiler_CXX \
  11987. CC_CXX \
  11988. LD_CXX \
  11989. lt_prog_compiler_wl_CXX \
  11990. lt_prog_compiler_pic_CXX \
  11991. lt_prog_compiler_static_CXX \
  11992. lt_prog_compiler_no_builtin_flag_CXX \
  11993. export_dynamic_flag_spec_CXX \
  11994. thread_safe_flag_spec_CXX \
  11995. whole_archive_flag_spec_CXX \
  11996. enable_shared_with_static_runtimes_CXX \
  11997. old_archive_cmds_CXX \
  11998. old_archive_from_new_cmds_CXX \
  11999. predep_objects_CXX \
  12000. postdep_objects_CXX \
  12001. predeps_CXX \
  12002. postdeps_CXX \
  12003. compiler_lib_search_path_CXX \
  12004. archive_cmds_CXX \
  12005. archive_expsym_cmds_CXX \
  12006. postinstall_cmds_CXX \
  12007. postuninstall_cmds_CXX \
  12008. old_archive_from_expsyms_cmds_CXX \
  12009. allow_undefined_flag_CXX \
  12010. no_undefined_flag_CXX \
  12011. export_symbols_cmds_CXX \
  12012. hardcode_libdir_flag_spec_CXX \
  12013. hardcode_libdir_flag_spec_ld_CXX \
  12014. hardcode_libdir_separator_CXX \
  12015. hardcode_automatic_CXX \
  12016. module_cmds_CXX \
  12017. module_expsym_cmds_CXX \
  12018. lt_cv_prog_compiler_c_o_CXX \
  12019. exclude_expsyms_CXX \
  12020. include_expsyms_CXX; do
  12021. case $var in
  12022. old_archive_cmds_CXX | \
  12023. old_archive_from_new_cmds_CXX | \
  12024. archive_cmds_CXX | \
  12025. archive_expsym_cmds_CXX | \
  12026. module_cmds_CXX | \
  12027. module_expsym_cmds_CXX | \
  12028. old_archive_from_expsyms_cmds_CXX | \
  12029. export_symbols_cmds_CXX | \
  12030. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12031. postinstall_cmds | postuninstall_cmds | \
  12032. old_postinstall_cmds | old_postuninstall_cmds | \
  12033. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12034. # Double-quote double-evaled strings.
  12035. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12036. ;;
  12037. *)
  12038. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12039. ;;
  12040. esac
  12041. done
  12042. case $lt_echo in
  12043. *'\$0 --fallback-echo"')
  12044. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12045. ;;
  12046. esac
  12047. cfgfile="$ofile"
  12048. cat <<__EOF__ >> "$cfgfile"
  12049. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12050. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12051. # Shell to use when invoking shell scripts.
  12052. SHELL=$lt_SHELL
  12053. # Whether or not to build shared libraries.
  12054. build_libtool_libs=$enable_shared
  12055. # Whether or not to build static libraries.
  12056. build_old_libs=$enable_static
  12057. # Whether or not to add -lc for building shared libraries.
  12058. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12059. # Whether or not to disallow shared libs when runtime libs are static
  12060. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12061. # Whether or not to optimize for fast installation.
  12062. fast_install=$enable_fast_install
  12063. # The host system.
  12064. host_alias=$host_alias
  12065. host=$host
  12066. host_os=$host_os
  12067. # The build system.
  12068. build_alias=$build_alias
  12069. build=$build
  12070. build_os=$build_os
  12071. # An echo program that does not interpret backslashes.
  12072. echo=$lt_echo
  12073. # The archiver.
  12074. AR=$lt_AR
  12075. AR_FLAGS=$lt_AR_FLAGS
  12076. # A C compiler.
  12077. LTCC=$lt_LTCC
  12078. # LTCC compiler flags.
  12079. LTCFLAGS=$lt_LTCFLAGS
  12080. # A language-specific compiler.
  12081. CC=$lt_compiler_CXX
  12082. # Is the compiler the GNU C compiler?
  12083. with_gcc=$GCC_CXX
  12084. # An ERE matcher.
  12085. EGREP=$lt_EGREP
  12086. # The linker used to build libraries.
  12087. LD=$lt_LD_CXX
  12088. # Whether we need hard or soft links.
  12089. LN_S=$lt_LN_S
  12090. # A BSD-compatible nm program.
  12091. NM=$lt_NM
  12092. # A symbol stripping program
  12093. STRIP=$lt_STRIP
  12094. # Used to examine libraries when file_magic_cmd begins "file"
  12095. MAGIC_CMD=$MAGIC_CMD
  12096. # Used on cygwin: DLL creation program.
  12097. DLLTOOL="$DLLTOOL"
  12098. # Used on cygwin: object dumper.
  12099. OBJDUMP="$OBJDUMP"
  12100. # Used on cygwin: assembler.
  12101. AS="$AS"
  12102. # The name of the directory that contains temporary libtool files.
  12103. objdir=$objdir
  12104. # How to create reloadable object files.
  12105. reload_flag=$lt_reload_flag
  12106. reload_cmds=$lt_reload_cmds
  12107. # How to pass a linker flag through the compiler.
  12108. wl=$lt_lt_prog_compiler_wl_CXX
  12109. # Object file suffix (normally "o").
  12110. objext="$ac_objext"
  12111. # Old archive suffix (normally "a").
  12112. libext="$libext"
  12113. # Shared library suffix (normally ".so").
  12114. shrext_cmds='$shrext_cmds'
  12115. # Executable file suffix (normally "").
  12116. exeext="$exeext"
  12117. # Additional compiler flags for building library objects.
  12118. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12119. pic_mode=$pic_mode
  12120. # What is the maximum length of a command?
  12121. max_cmd_len=$lt_cv_sys_max_cmd_len
  12122. # Does compiler simultaneously support -c and -o options?
  12123. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12124. # Must we lock files when doing compilation?
  12125. need_locks=$lt_need_locks
  12126. # Do we need the lib prefix for modules?
  12127. need_lib_prefix=$need_lib_prefix
  12128. # Do we need a version for libraries?
  12129. need_version=$need_version
  12130. # Whether dlopen is supported.
  12131. dlopen_support=$enable_dlopen
  12132. # Whether dlopen of programs is supported.
  12133. dlopen_self=$enable_dlopen_self
  12134. # Whether dlopen of statically linked programs is supported.
  12135. dlopen_self_static=$enable_dlopen_self_static
  12136. # Compiler flag to prevent dynamic linking.
  12137. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12138. # Compiler flag to turn off builtin functions.
  12139. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12140. # Compiler flag to allow reflexive dlopens.
  12141. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12142. # Compiler flag to generate shared objects directly from archives.
  12143. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12144. # Compiler flag to generate thread-safe objects.
  12145. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12146. # Library versioning type.
  12147. version_type=$version_type
  12148. # Format of library name prefix.
  12149. libname_spec=$lt_libname_spec
  12150. # List of archive names. First name is the real one, the rest are links.
  12151. # The last name is the one that the linker finds with -lNAME.
  12152. library_names_spec=$lt_library_names_spec
  12153. # The coded name of the library, if different from the real name.
  12154. soname_spec=$lt_soname_spec
  12155. # Commands used to build and install an old-style archive.
  12156. RANLIB=$lt_RANLIB
  12157. old_archive_cmds=$lt_old_archive_cmds_CXX
  12158. old_postinstall_cmds=$lt_old_postinstall_cmds
  12159. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12160. # Create an old-style archive from a shared archive.
  12161. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12162. # Create a temporary old-style archive to link instead of a shared archive.
  12163. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12164. # Commands used to build and install a shared archive.
  12165. archive_cmds=$lt_archive_cmds_CXX
  12166. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12167. postinstall_cmds=$lt_postinstall_cmds
  12168. postuninstall_cmds=$lt_postuninstall_cmds
  12169. # Commands used to build a loadable module (assumed same as above if empty)
  12170. module_cmds=$lt_module_cmds_CXX
  12171. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12172. # Commands to strip libraries.
  12173. old_striplib=$lt_old_striplib
  12174. striplib=$lt_striplib
  12175. # Dependencies to place before the objects being linked to create a
  12176. # shared library.
  12177. predep_objects=$lt_predep_objects_CXX
  12178. # Dependencies to place after the objects being linked to create a
  12179. # shared library.
  12180. postdep_objects=$lt_postdep_objects_CXX
  12181. # Dependencies to place before the objects being linked to create a
  12182. # shared library.
  12183. predeps=$lt_predeps_CXX
  12184. # Dependencies to place after the objects being linked to create a
  12185. # shared library.
  12186. postdeps=$lt_postdeps_CXX
  12187. # The library search path used internally by the compiler when linking
  12188. # a shared library.
  12189. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12190. # Method to check whether dependent libraries are shared objects.
  12191. deplibs_check_method=$lt_deplibs_check_method
  12192. # Command to use when deplibs_check_method == file_magic.
  12193. file_magic_cmd=$lt_file_magic_cmd
  12194. # Flag that allows shared libraries with undefined symbols to be built.
  12195. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12196. # Flag that forces no undefined symbols.
  12197. no_undefined_flag=$lt_no_undefined_flag_CXX
  12198. # Commands used to finish a libtool library installation in a directory.
  12199. finish_cmds=$lt_finish_cmds
  12200. # Same as above, but a single script fragment to be evaled but not shown.
  12201. finish_eval=$lt_finish_eval
  12202. # Take the output of nm and produce a listing of raw symbols and C names.
  12203. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12204. # Transform the output of nm in a proper C declaration
  12205. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12206. # Transform the output of nm in a C name address pair
  12207. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12208. # This is the shared library runtime path variable.
  12209. runpath_var=$runpath_var
  12210. # This is the shared library path variable.
  12211. shlibpath_var=$shlibpath_var
  12212. # Is shlibpath searched before the hard-coded library search path?
  12213. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12214. # How to hardcode a shared library path into an executable.
  12215. hardcode_action=$hardcode_action_CXX
  12216. # Whether we should hardcode library paths into libraries.
  12217. hardcode_into_libs=$hardcode_into_libs
  12218. # Flag to hardcode \$libdir into a binary during linking.
  12219. # This must work even if \$libdir does not exist.
  12220. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12221. # If ld is used when linking, flag to hardcode \$libdir into
  12222. # a binary during linking. This must work even if \$libdir does
  12223. # not exist.
  12224. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12225. # Whether we need a single -rpath flag with a separated argument.
  12226. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12227. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12228. # resulting binary.
  12229. hardcode_direct=$hardcode_direct_CXX
  12230. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12231. # resulting binary.
  12232. hardcode_minus_L=$hardcode_minus_L_CXX
  12233. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12234. # the resulting binary.
  12235. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12236. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12237. # and all subsequent libraries and executables linked against it.
  12238. hardcode_automatic=$hardcode_automatic_CXX
  12239. # Variables whose values should be saved in libtool wrapper scripts and
  12240. # restored at relink time.
  12241. variables_saved_for_relink="$variables_saved_for_relink"
  12242. # Whether libtool must link a program against all its dependency libraries.
  12243. link_all_deplibs=$link_all_deplibs_CXX
  12244. # Compile-time system search path for libraries
  12245. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12246. # Run-time system search path for libraries
  12247. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12248. # Fix the shell variable \$srcfile for the compiler.
  12249. fix_srcfile_path="$fix_srcfile_path_CXX"
  12250. # Set to yes if exported symbols are required.
  12251. always_export_symbols=$always_export_symbols_CXX
  12252. # The commands to list exported symbols.
  12253. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12254. # The commands to extract the exported symbol list from a shared archive.
  12255. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12256. # Symbols that should not be listed in the preloaded symbols.
  12257. exclude_expsyms=$lt_exclude_expsyms_CXX
  12258. # Symbols that must always be exported.
  12259. include_expsyms=$lt_include_expsyms_CXX
  12260. # ### END LIBTOOL TAG CONFIG: $tagname
  12261. __EOF__
  12262. else
  12263. # If there is no Makefile yet, we rely on a make rule to execute
  12264. # `config.status --recheck' to rerun these tests and create the
  12265. # libtool script then.
  12266. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12267. if test -f "$ltmain_in"; then
  12268. test -f Makefile && make "$ltmain"
  12269. fi
  12270. fi
  12271. ac_ext=c
  12272. ac_cpp='$CPP $CPPFLAGS'
  12273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12276. CC=$lt_save_CC
  12277. LDCXX=$LD
  12278. LD=$lt_save_LD
  12279. GCC=$lt_save_GCC
  12280. with_gnu_ldcxx=$with_gnu_ld
  12281. with_gnu_ld=$lt_save_with_gnu_ld
  12282. lt_cv_path_LDCXX=$lt_cv_path_LD
  12283. lt_cv_path_LD=$lt_save_path_LD
  12284. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12285. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12286. else
  12287. tagname=""
  12288. fi
  12289. ;;
  12290. F77)
  12291. if test -n "$F77" && test "X$F77" != "Xno"; then
  12292. ac_ext=f
  12293. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12294. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12295. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12296. archive_cmds_need_lc_F77=no
  12297. allow_undefined_flag_F77=
  12298. always_export_symbols_F77=no
  12299. archive_expsym_cmds_F77=
  12300. export_dynamic_flag_spec_F77=
  12301. hardcode_direct_F77=no
  12302. hardcode_libdir_flag_spec_F77=
  12303. hardcode_libdir_flag_spec_ld_F77=
  12304. hardcode_libdir_separator_F77=
  12305. hardcode_minus_L_F77=no
  12306. hardcode_automatic_F77=no
  12307. module_cmds_F77=
  12308. module_expsym_cmds_F77=
  12309. link_all_deplibs_F77=unknown
  12310. old_archive_cmds_F77=$old_archive_cmds
  12311. no_undefined_flag_F77=
  12312. whole_archive_flag_spec_F77=
  12313. enable_shared_with_static_runtimes_F77=no
  12314. # Source file extension for f77 test sources.
  12315. ac_ext=f
  12316. # Object file extension for compiled f77 test sources.
  12317. objext=o
  12318. objext_F77=$objext
  12319. # Code to be used in simple compile tests
  12320. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  12321. # Code to be used in simple link tests
  12322. lt_simple_link_test_code=" program t\n end\n"
  12323. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12324. # If no C compiler was specified, use CC.
  12325. LTCC=${LTCC-"$CC"}
  12326. # If no C compiler flags were specified, use CFLAGS.
  12327. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12328. # Allow CC to be a program name with arguments.
  12329. compiler=$CC
  12330. # save warnings/boilerplate of simple test code
  12331. ac_outfile=conftest.$ac_objext
  12332. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  12333. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12334. _lt_compiler_boilerplate=`cat conftest.err`
  12335. $rm conftest*
  12336. ac_outfile=conftest.$ac_objext
  12337. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  12338. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12339. _lt_linker_boilerplate=`cat conftest.err`
  12340. $rm conftest*
  12341. # Allow CC to be a program name with arguments.
  12342. lt_save_CC="$CC"
  12343. CC=${F77-"f77"}
  12344. compiler=$CC
  12345. compiler_F77=$CC
  12346. for cc_temp in $compiler""; do
  12347. case $cc_temp in
  12348. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12349. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12350. \-*) ;;
  12351. *) break;;
  12352. esac
  12353. done
  12354. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12355. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12356. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12357. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12358. echo "${ECHO_T}$can_build_shared" >&6; }
  12359. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12360. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12361. test "$can_build_shared" = "no" && enable_shared=no
  12362. # On AIX, shared libraries and static libraries use the same namespace, and
  12363. # are all built from PIC.
  12364. case $host_os in
  12365. aix3*)
  12366. test "$enable_shared" = yes && enable_static=no
  12367. if test -n "$RANLIB"; then
  12368. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12369. postinstall_cmds='$RANLIB $lib'
  12370. fi
  12371. ;;
  12372. aix4* | aix5*)
  12373. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12374. test "$enable_shared" = yes && enable_static=no
  12375. fi
  12376. ;;
  12377. esac
  12378. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12379. echo "${ECHO_T}$enable_shared" >&6; }
  12380. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12381. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12382. # Make sure either enable_shared or enable_static is yes.
  12383. test "$enable_shared" = yes || enable_static=yes
  12384. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12385. echo "${ECHO_T}$enable_static" >&6; }
  12386. GCC_F77="$G77"
  12387. LD_F77="$LD"
  12388. lt_prog_compiler_wl_F77=
  12389. lt_prog_compiler_pic_F77=
  12390. lt_prog_compiler_static_F77=
  12391. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12392. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12393. if test "$GCC" = yes; then
  12394. lt_prog_compiler_wl_F77='-Wl,'
  12395. lt_prog_compiler_static_F77='-static'
  12396. case $host_os in
  12397. aix*)
  12398. # All AIX code is PIC.
  12399. if test "$host_cpu" = ia64; then
  12400. # AIX 5 now supports IA64 processor
  12401. lt_prog_compiler_static_F77='-Bstatic'
  12402. fi
  12403. ;;
  12404. amigaos*)
  12405. # FIXME: we need at least 68020 code to build shared libraries, but
  12406. # adding the `-m68020' flag to GCC prevents building anything better,
  12407. # like `-m68040'.
  12408. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12409. ;;
  12410. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12411. # PIC is the default for these OSes.
  12412. ;;
  12413. mingw* | pw32* | os2*)
  12414. # This hack is so that the source file can tell whether it is being
  12415. # built for inclusion in a dll (and should export symbols for example).
  12416. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12417. ;;
  12418. darwin* | rhapsody*)
  12419. # PIC is the default on this platform
  12420. # Common symbols not allowed in MH_DYLIB files
  12421. lt_prog_compiler_pic_F77='-fno-common'
  12422. ;;
  12423. interix3*)
  12424. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12425. # Instead, we relocate shared libraries at runtime.
  12426. ;;
  12427. msdosdjgpp*)
  12428. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12429. # on systems that don't support them.
  12430. lt_prog_compiler_can_build_shared_F77=no
  12431. enable_shared=no
  12432. ;;
  12433. sysv4*MP*)
  12434. if test -d /usr/nec; then
  12435. lt_prog_compiler_pic_F77=-Kconform_pic
  12436. fi
  12437. ;;
  12438. hpux*)
  12439. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12440. # not for PA HP-UX.
  12441. case $host_cpu in
  12442. hppa*64*|ia64*)
  12443. # +Z the default
  12444. ;;
  12445. *)
  12446. lt_prog_compiler_pic_F77='-fPIC'
  12447. ;;
  12448. esac
  12449. ;;
  12450. *)
  12451. lt_prog_compiler_pic_F77='-fPIC'
  12452. ;;
  12453. esac
  12454. else
  12455. # PORTME Check for flag to pass linker flags through the system compiler.
  12456. case $host_os in
  12457. aix*)
  12458. lt_prog_compiler_wl_F77='-Wl,'
  12459. if test "$host_cpu" = ia64; then
  12460. # AIX 5 now supports IA64 processor
  12461. lt_prog_compiler_static_F77='-Bstatic'
  12462. else
  12463. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12464. fi
  12465. ;;
  12466. darwin*)
  12467. # PIC is the default on this platform
  12468. # Common symbols not allowed in MH_DYLIB files
  12469. case $cc_basename in
  12470. xlc*)
  12471. lt_prog_compiler_pic_F77='-qnocommon'
  12472. lt_prog_compiler_wl_F77='-Wl,'
  12473. ;;
  12474. esac
  12475. ;;
  12476. mingw* | pw32* | os2*)
  12477. # This hack is so that the source file can tell whether it is being
  12478. # built for inclusion in a dll (and should export symbols for example).
  12479. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12480. ;;
  12481. hpux9* | hpux10* | hpux11*)
  12482. lt_prog_compiler_wl_F77='-Wl,'
  12483. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12484. # not for PA HP-UX.
  12485. case $host_cpu in
  12486. hppa*64*|ia64*)
  12487. # +Z the default
  12488. ;;
  12489. *)
  12490. lt_prog_compiler_pic_F77='+Z'
  12491. ;;
  12492. esac
  12493. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12494. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12495. ;;
  12496. irix5* | irix6* | nonstopux*)
  12497. lt_prog_compiler_wl_F77='-Wl,'
  12498. # PIC (with -KPIC) is the default.
  12499. lt_prog_compiler_static_F77='-non_shared'
  12500. ;;
  12501. newsos6)
  12502. lt_prog_compiler_pic_F77='-KPIC'
  12503. lt_prog_compiler_static_F77='-Bstatic'
  12504. ;;
  12505. linux*)
  12506. case $cc_basename in
  12507. icc* | ecc*)
  12508. lt_prog_compiler_wl_F77='-Wl,'
  12509. lt_prog_compiler_pic_F77='-KPIC'
  12510. lt_prog_compiler_static_F77='-static'
  12511. ;;
  12512. pgcc* | pgf77* | pgf90* | pgf95*)
  12513. # Portland Group compilers (*not* the Pentium gcc compiler,
  12514. # which looks to be a dead project)
  12515. lt_prog_compiler_wl_F77='-Wl,'
  12516. lt_prog_compiler_pic_F77='-fpic'
  12517. lt_prog_compiler_static_F77='-Bstatic'
  12518. ;;
  12519. ccc*)
  12520. lt_prog_compiler_wl_F77='-Wl,'
  12521. # All Alpha code is PIC.
  12522. lt_prog_compiler_static_F77='-non_shared'
  12523. ;;
  12524. esac
  12525. ;;
  12526. osf3* | osf4* | osf5*)
  12527. lt_prog_compiler_wl_F77='-Wl,'
  12528. # All OSF/1 code is PIC.
  12529. lt_prog_compiler_static_F77='-non_shared'
  12530. ;;
  12531. solaris*)
  12532. lt_prog_compiler_pic_F77='-KPIC'
  12533. lt_prog_compiler_static_F77='-Bstatic'
  12534. case $cc_basename in
  12535. f77* | f90* | f95*)
  12536. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12537. *)
  12538. lt_prog_compiler_wl_F77='-Wl,';;
  12539. esac
  12540. ;;
  12541. sunos4*)
  12542. lt_prog_compiler_wl_F77='-Qoption ld '
  12543. lt_prog_compiler_pic_F77='-PIC'
  12544. lt_prog_compiler_static_F77='-Bstatic'
  12545. ;;
  12546. sysv4 | sysv4.2uw2* | sysv4.3*)
  12547. lt_prog_compiler_wl_F77='-Wl,'
  12548. lt_prog_compiler_pic_F77='-KPIC'
  12549. lt_prog_compiler_static_F77='-Bstatic'
  12550. ;;
  12551. sysv4*MP*)
  12552. if test -d /usr/nec ;then
  12553. lt_prog_compiler_pic_F77='-Kconform_pic'
  12554. lt_prog_compiler_static_F77='-Bstatic'
  12555. fi
  12556. ;;
  12557. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12558. lt_prog_compiler_wl_F77='-Wl,'
  12559. lt_prog_compiler_pic_F77='-KPIC'
  12560. lt_prog_compiler_static_F77='-Bstatic'
  12561. ;;
  12562. unicos*)
  12563. lt_prog_compiler_wl_F77='-Wl,'
  12564. lt_prog_compiler_can_build_shared_F77=no
  12565. ;;
  12566. uts4*)
  12567. lt_prog_compiler_pic_F77='-pic'
  12568. lt_prog_compiler_static_F77='-Bstatic'
  12569. ;;
  12570. *)
  12571. lt_prog_compiler_can_build_shared_F77=no
  12572. ;;
  12573. esac
  12574. fi
  12575. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12576. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12577. #
  12578. # Check to make sure the PIC flag actually works.
  12579. #
  12580. if test -n "$lt_prog_compiler_pic_F77"; then
  12581. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12582. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12583. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12584. echo $ECHO_N "(cached) $ECHO_C" >&6
  12585. else
  12586. lt_prog_compiler_pic_works_F77=no
  12587. ac_outfile=conftest.$ac_objext
  12588. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12589. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12590. # Insert the option either (1) after the last *FLAGS variable, or
  12591. # (2) before a word containing "conftest.", or (3) at the end.
  12592. # Note that $ac_compile itself does not contain backslashes and begins
  12593. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12594. # The option is referenced via a variable to avoid confusing sed.
  12595. lt_compile=`echo "$ac_compile" | $SED \
  12596. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12597. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12598. -e 's:$: $lt_compiler_flag:'`
  12599. (eval echo "\"\$as_me:14093: $lt_compile\"" >&5)
  12600. (eval "$lt_compile" 2>conftest.err)
  12601. ac_status=$?
  12602. cat conftest.err >&5
  12603. echo "$as_me:14097: \$? = $ac_status" >&5
  12604. if (exit $ac_status) && test -s "$ac_outfile"; then
  12605. # The compiler can only warn and ignore the option if not recognized
  12606. # So say no if there are warnings other than the usual output.
  12607. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12608. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12609. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12610. lt_prog_compiler_pic_works_F77=yes
  12611. fi
  12612. fi
  12613. $rm conftest*
  12614. fi
  12615. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12616. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12617. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12618. case $lt_prog_compiler_pic_F77 in
  12619. "" | " "*) ;;
  12620. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12621. esac
  12622. else
  12623. lt_prog_compiler_pic_F77=
  12624. lt_prog_compiler_can_build_shared_F77=no
  12625. fi
  12626. fi
  12627. case $host_os in
  12628. # For platforms which do not support PIC, -DPIC is meaningless:
  12629. *djgpp*)
  12630. lt_prog_compiler_pic_F77=
  12631. ;;
  12632. *)
  12633. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12634. ;;
  12635. esac
  12636. #
  12637. # Check to make sure the static flag actually works.
  12638. #
  12639. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12640. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12641. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12642. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12643. echo $ECHO_N "(cached) $ECHO_C" >&6
  12644. else
  12645. lt_prog_compiler_static_works_F77=no
  12646. save_LDFLAGS="$LDFLAGS"
  12647. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12648. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12649. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12650. # The linker can only warn and ignore the option if not recognized
  12651. # So say no if there are warnings
  12652. if test -s conftest.err; then
  12653. # Append any errors to the config.log.
  12654. cat conftest.err 1>&5
  12655. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12656. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12657. if diff conftest.exp conftest.er2 >/dev/null; then
  12658. lt_prog_compiler_static_works_F77=yes
  12659. fi
  12660. else
  12661. lt_prog_compiler_static_works_F77=yes
  12662. fi
  12663. fi
  12664. $rm conftest*
  12665. LDFLAGS="$save_LDFLAGS"
  12666. fi
  12667. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12668. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12669. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12670. :
  12671. else
  12672. lt_prog_compiler_static_F77=
  12673. fi
  12674. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12675. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12676. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12677. echo $ECHO_N "(cached) $ECHO_C" >&6
  12678. else
  12679. lt_cv_prog_compiler_c_o_F77=no
  12680. $rm -r conftest 2>/dev/null
  12681. mkdir conftest
  12682. cd conftest
  12683. mkdir out
  12684. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12685. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12686. # Insert the option either (1) after the last *FLAGS variable, or
  12687. # (2) before a word containing "conftest.", or (3) at the end.
  12688. # Note that $ac_compile itself does not contain backslashes and begins
  12689. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12690. lt_compile=`echo "$ac_compile" | $SED \
  12691. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12692. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12693. -e 's:$: $lt_compiler_flag:'`
  12694. (eval echo "\"\$as_me:14197: $lt_compile\"" >&5)
  12695. (eval "$lt_compile" 2>out/conftest.err)
  12696. ac_status=$?
  12697. cat out/conftest.err >&5
  12698. echo "$as_me:14201: \$? = $ac_status" >&5
  12699. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12700. then
  12701. # The compiler can only warn and ignore the option if not recognized
  12702. # So say no if there are warnings
  12703. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12704. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12705. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12706. lt_cv_prog_compiler_c_o_F77=yes
  12707. fi
  12708. fi
  12709. chmod u+w . 2>&5
  12710. $rm conftest*
  12711. # SGI C++ compiler will create directory out/ii_files/ for
  12712. # template instantiation
  12713. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12714. $rm out/* && rmdir out
  12715. cd ..
  12716. rmdir conftest
  12717. $rm conftest*
  12718. fi
  12719. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12720. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12721. hard_links="nottested"
  12722. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12723. # do not overwrite the value of need_locks provided by the user
  12724. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12725. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12726. hard_links=yes
  12727. $rm conftest*
  12728. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12729. touch conftest.a
  12730. ln conftest.a conftest.b 2>&5 || hard_links=no
  12731. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12732. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12733. echo "${ECHO_T}$hard_links" >&6; }
  12734. if test "$hard_links" = no; then
  12735. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12736. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12737. need_locks=warn
  12738. fi
  12739. else
  12740. need_locks=no
  12741. fi
  12742. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12743. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12744. runpath_var=
  12745. allow_undefined_flag_F77=
  12746. enable_shared_with_static_runtimes_F77=no
  12747. archive_cmds_F77=
  12748. archive_expsym_cmds_F77=
  12749. old_archive_From_new_cmds_F77=
  12750. old_archive_from_expsyms_cmds_F77=
  12751. export_dynamic_flag_spec_F77=
  12752. whole_archive_flag_spec_F77=
  12753. thread_safe_flag_spec_F77=
  12754. hardcode_libdir_flag_spec_F77=
  12755. hardcode_libdir_flag_spec_ld_F77=
  12756. hardcode_libdir_separator_F77=
  12757. hardcode_direct_F77=no
  12758. hardcode_minus_L_F77=no
  12759. hardcode_shlibpath_var_F77=unsupported
  12760. link_all_deplibs_F77=unknown
  12761. hardcode_automatic_F77=no
  12762. module_cmds_F77=
  12763. module_expsym_cmds_F77=
  12764. always_export_symbols_F77=no
  12765. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12766. # include_expsyms should be a list of space-separated symbols to be *always*
  12767. # included in the symbol list
  12768. include_expsyms_F77=
  12769. # exclude_expsyms can be an extended regexp of symbols to exclude
  12770. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12771. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12772. # as well as any symbol that contains `d'.
  12773. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12774. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12775. # platforms (ab)use it in PIC code, but their linkers get confused if
  12776. # the symbol is explicitly referenced. Since portable code cannot
  12777. # rely on this symbol name, it's probably fine to never include it in
  12778. # preloaded symbol tables.
  12779. extract_expsyms_cmds=
  12780. # Just being paranoid about ensuring that cc_basename is set.
  12781. for cc_temp in $compiler""; do
  12782. case $cc_temp in
  12783. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12784. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12785. \-*) ;;
  12786. *) break;;
  12787. esac
  12788. done
  12789. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12790. case $host_os in
  12791. cygwin* | mingw* | pw32*)
  12792. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12793. # When not using gcc, we currently assume that we are using
  12794. # Microsoft Visual C++.
  12795. if test "$GCC" != yes; then
  12796. with_gnu_ld=no
  12797. fi
  12798. ;;
  12799. interix*)
  12800. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12801. with_gnu_ld=yes
  12802. ;;
  12803. openbsd*)
  12804. with_gnu_ld=no
  12805. ;;
  12806. esac
  12807. ld_shlibs_F77=yes
  12808. if test "$with_gnu_ld" = yes; then
  12809. # If archive_cmds runs LD, not CC, wlarc should be empty
  12810. wlarc='${wl}'
  12811. # Set some defaults for GNU ld with shared library support. These
  12812. # are reset later if shared libraries are not supported. Putting them
  12813. # here allows them to be overridden if necessary.
  12814. runpath_var=LD_RUN_PATH
  12815. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12816. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12817. # ancient GNU ld didn't support --whole-archive et. al.
  12818. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12819. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12820. else
  12821. whole_archive_flag_spec_F77=
  12822. fi
  12823. supports_anon_versioning=no
  12824. case `$LD -v 2>/dev/null` in
  12825. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12826. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12827. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12828. *\ 2.11.*) ;; # other 2.11 versions
  12829. *) supports_anon_versioning=yes ;;
  12830. esac
  12831. # See if GNU ld supports shared libraries.
  12832. case $host_os in
  12833. aix3* | aix4* | aix5*)
  12834. # On AIX/PPC, the GNU linker is very broken
  12835. if test "$host_cpu" != ia64; then
  12836. ld_shlibs_F77=no
  12837. cat <<EOF 1>&2
  12838. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12839. *** to be unable to reliably create shared libraries on AIX.
  12840. *** Therefore, libtool is disabling shared libraries support. If you
  12841. *** really care for shared libraries, you may want to modify your PATH
  12842. *** so that a non-GNU linker is found, and then restart.
  12843. EOF
  12844. fi
  12845. ;;
  12846. amigaos*)
  12847. 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)'
  12848. hardcode_libdir_flag_spec_F77='-L$libdir'
  12849. hardcode_minus_L_F77=yes
  12850. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12851. # that the semantics of dynamic libraries on AmigaOS, at least up
  12852. # to version 4, is to share data among multiple programs linked
  12853. # with the same dynamic library. Since this doesn't match the
  12854. # behavior of shared libraries on other platforms, we can't use
  12855. # them.
  12856. ld_shlibs_F77=no
  12857. ;;
  12858. beos*)
  12859. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12860. allow_undefined_flag_F77=unsupported
  12861. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12862. # support --undefined. This deserves some investigation. FIXME
  12863. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12864. else
  12865. ld_shlibs_F77=no
  12866. fi
  12867. ;;
  12868. cygwin* | mingw* | pw32*)
  12869. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12870. # as there is no search path for DLLs.
  12871. hardcode_libdir_flag_spec_F77='-L$libdir'
  12872. allow_undefined_flag_F77=unsupported
  12873. always_export_symbols_F77=no
  12874. enable_shared_with_static_runtimes_F77=yes
  12875. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12876. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12877. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12878. # If the export-symbols file already is a .def file (1st line
  12879. # is EXPORTS), use it as is; otherwise, prepend...
  12880. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12881. cp $export_symbols $output_objdir/$soname.def;
  12882. else
  12883. echo EXPORTS > $output_objdir/$soname.def;
  12884. cat $export_symbols >> $output_objdir/$soname.def;
  12885. fi~
  12886. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12887. else
  12888. ld_shlibs_F77=no
  12889. fi
  12890. ;;
  12891. interix3*)
  12892. hardcode_direct_F77=no
  12893. hardcode_shlibpath_var_F77=no
  12894. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12895. export_dynamic_flag_spec_F77='${wl}-E'
  12896. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12897. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12898. # default) and relocated if they conflict, which is a slow very memory
  12899. # consuming and fragmenting process. To avoid this, we pick a random,
  12900. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12901. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12902. 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'
  12903. 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'
  12904. ;;
  12905. linux*)
  12906. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12907. tmp_addflag=
  12908. case $cc_basename,$host_cpu in
  12909. pgcc*) # Portland Group C compiler
  12910. 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'
  12911. tmp_addflag=' $pic_flag'
  12912. ;;
  12913. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12914. 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'
  12915. tmp_addflag=' $pic_flag -Mnomain' ;;
  12916. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12917. tmp_addflag=' -i_dynamic' ;;
  12918. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12919. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12920. ifc* | ifort*) # Intel Fortran compiler
  12921. tmp_addflag=' -nofor_main' ;;
  12922. esac
  12923. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12924. if test $supports_anon_versioning = yes; then
  12925. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12926. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12927. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12928. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12929. fi
  12930. else
  12931. ld_shlibs_F77=no
  12932. fi
  12933. ;;
  12934. netbsd*)
  12935. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12936. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12937. wlarc=
  12938. else
  12939. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12940. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12941. fi
  12942. ;;
  12943. solaris*)
  12944. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12945. ld_shlibs_F77=no
  12946. cat <<EOF 1>&2
  12947. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12948. *** create shared libraries on Solaris systems. Therefore, libtool
  12949. *** is disabling shared libraries support. We urge you to upgrade GNU
  12950. *** binutils to release 2.9.1 or newer. Another option is to modify
  12951. *** your PATH or compiler configuration so that the native linker is
  12952. *** used, and then restart.
  12953. EOF
  12954. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12955. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12956. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12957. else
  12958. ld_shlibs_F77=no
  12959. fi
  12960. ;;
  12961. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12962. case `$LD -v 2>&1` in
  12963. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12964. ld_shlibs_F77=no
  12965. cat <<_LT_EOF 1>&2
  12966. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12967. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12968. *** is disabling shared libraries support. We urge you to upgrade GNU
  12969. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12970. *** your PATH or compiler configuration so that the native linker is
  12971. *** used, and then restart.
  12972. _LT_EOF
  12973. ;;
  12974. *)
  12975. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12976. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12977. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12978. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12979. else
  12980. ld_shlibs_F77=no
  12981. fi
  12982. ;;
  12983. esac
  12984. ;;
  12985. sunos4*)
  12986. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12987. wlarc=
  12988. hardcode_direct_F77=yes
  12989. hardcode_shlibpath_var_F77=no
  12990. ;;
  12991. *)
  12992. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12993. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12994. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12995. else
  12996. ld_shlibs_F77=no
  12997. fi
  12998. ;;
  12999. esac
  13000. if test "$ld_shlibs_F77" = no; then
  13001. runpath_var=
  13002. hardcode_libdir_flag_spec_F77=
  13003. export_dynamic_flag_spec_F77=
  13004. whole_archive_flag_spec_F77=
  13005. fi
  13006. else
  13007. # PORTME fill in a description of your system's linker (not GNU ld)
  13008. case $host_os in
  13009. aix3*)
  13010. allow_undefined_flag_F77=unsupported
  13011. always_export_symbols_F77=yes
  13012. 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'
  13013. # Note: this linker hardcodes the directories in LIBPATH if there
  13014. # are no directories specified by -L.
  13015. hardcode_minus_L_F77=yes
  13016. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13017. # Neither direct hardcoding nor static linking is supported with a
  13018. # broken collect2.
  13019. hardcode_direct_F77=unsupported
  13020. fi
  13021. ;;
  13022. aix4* | aix5*)
  13023. if test "$host_cpu" = ia64; then
  13024. # On IA64, the linker does run time linking by default, so we don't
  13025. # have to do anything special.
  13026. aix_use_runtimelinking=no
  13027. exp_sym_flag='-Bexport'
  13028. no_entry_flag=""
  13029. else
  13030. # If we're using GNU nm, then we don't want the "-C" option.
  13031. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13032. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13033. 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'
  13034. else
  13035. 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'
  13036. fi
  13037. aix_use_runtimelinking=no
  13038. # Test if we are trying to use run time linking or normal
  13039. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13040. # need to do runtime linking.
  13041. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13042. for ld_flag in $LDFLAGS; do
  13043. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13044. aix_use_runtimelinking=yes
  13045. break
  13046. fi
  13047. done
  13048. ;;
  13049. esac
  13050. exp_sym_flag='-bexport'
  13051. no_entry_flag='-bnoentry'
  13052. fi
  13053. # When large executables or shared objects are built, AIX ld can
  13054. # have problems creating the table of contents. If linking a library
  13055. # or program results in "error TOC overflow" add -mminimal-toc to
  13056. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13057. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13058. archive_cmds_F77=''
  13059. hardcode_direct_F77=yes
  13060. hardcode_libdir_separator_F77=':'
  13061. link_all_deplibs_F77=yes
  13062. if test "$GCC" = yes; then
  13063. case $host_os in aix4.[012]|aix4.[012].*)
  13064. # We only want to do this on AIX 4.2 and lower, the check
  13065. # below for broken collect2 doesn't work under 4.3+
  13066. collect2name=`${CC} -print-prog-name=collect2`
  13067. if test -f "$collect2name" && \
  13068. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13069. then
  13070. # We have reworked collect2
  13071. hardcode_direct_F77=yes
  13072. else
  13073. # We have old collect2
  13074. hardcode_direct_F77=unsupported
  13075. # It fails to find uninstalled libraries when the uninstalled
  13076. # path is not listed in the libpath. Setting hardcode_minus_L
  13077. # to unsupported forces relinking
  13078. hardcode_minus_L_F77=yes
  13079. hardcode_libdir_flag_spec_F77='-L$libdir'
  13080. hardcode_libdir_separator_F77=
  13081. fi
  13082. ;;
  13083. esac
  13084. shared_flag='-shared'
  13085. if test "$aix_use_runtimelinking" = yes; then
  13086. shared_flag="$shared_flag "'${wl}-G'
  13087. fi
  13088. else
  13089. # not using gcc
  13090. if test "$host_cpu" = ia64; then
  13091. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13092. # chokes on -Wl,-G. The following line is correct:
  13093. shared_flag='-G'
  13094. else
  13095. if test "$aix_use_runtimelinking" = yes; then
  13096. shared_flag='${wl}-G'
  13097. else
  13098. shared_flag='${wl}-bM:SRE'
  13099. fi
  13100. fi
  13101. fi
  13102. # It seems that -bexpall does not export symbols beginning with
  13103. # underscore (_), so it is better to generate a list of symbols to export.
  13104. always_export_symbols_F77=yes
  13105. if test "$aix_use_runtimelinking" = yes; then
  13106. # Warning - without using the other runtime loading flags (-brtl),
  13107. # -berok will link without error, but may produce a broken library.
  13108. allow_undefined_flag_F77='-berok'
  13109. # Determine the default libpath from the value encoded in an empty executable.
  13110. cat >conftest.$ac_ext <<_ACEOF
  13111. program main
  13112. end
  13113. _ACEOF
  13114. rm -f conftest.$ac_objext conftest$ac_exeext
  13115. if { (ac_try="$ac_link"
  13116. case "(($ac_try" in
  13117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13118. *) ac_try_echo=$ac_try;;
  13119. esac
  13120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13121. (eval "$ac_link") 2>conftest.er1
  13122. ac_status=$?
  13123. grep -v '^ *+' conftest.er1 >conftest.err
  13124. rm -f conftest.er1
  13125. cat conftest.err >&5
  13126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13127. (exit $ac_status); } && {
  13128. test -z "$ac_f77_werror_flag" ||
  13129. test ! -s conftest.err
  13130. } && test -s conftest$ac_exeext &&
  13131. $as_test_x conftest$ac_exeext; then
  13132. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13133. }'`
  13134. # Check for a 64-bit object if we didn't find anything.
  13135. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13136. }'`; fi
  13137. else
  13138. echo "$as_me: failed program was:" >&5
  13139. sed 's/^/| /' conftest.$ac_ext >&5
  13140. fi
  13141. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13142. conftest$ac_exeext conftest.$ac_ext
  13143. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13144. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13145. 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"
  13146. else
  13147. if test "$host_cpu" = ia64; then
  13148. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13149. allow_undefined_flag_F77="-z nodefs"
  13150. 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"
  13151. else
  13152. # Determine the default libpath from the value encoded in an empty executable.
  13153. cat >conftest.$ac_ext <<_ACEOF
  13154. program main
  13155. end
  13156. _ACEOF
  13157. rm -f conftest.$ac_objext conftest$ac_exeext
  13158. if { (ac_try="$ac_link"
  13159. case "(($ac_try" in
  13160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13161. *) ac_try_echo=$ac_try;;
  13162. esac
  13163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13164. (eval "$ac_link") 2>conftest.er1
  13165. ac_status=$?
  13166. grep -v '^ *+' conftest.er1 >conftest.err
  13167. rm -f conftest.er1
  13168. cat conftest.err >&5
  13169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13170. (exit $ac_status); } && {
  13171. test -z "$ac_f77_werror_flag" ||
  13172. test ! -s conftest.err
  13173. } && test -s conftest$ac_exeext &&
  13174. $as_test_x conftest$ac_exeext; then
  13175. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13176. }'`
  13177. # Check for a 64-bit object if we didn't find anything.
  13178. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13179. }'`; fi
  13180. else
  13181. echo "$as_me: failed program was:" >&5
  13182. sed 's/^/| /' conftest.$ac_ext >&5
  13183. fi
  13184. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13185. conftest$ac_exeext conftest.$ac_ext
  13186. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13187. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13188. # Warning - without using the other run time loading flags,
  13189. # -berok will link without error, but may produce a broken library.
  13190. no_undefined_flag_F77=' ${wl}-bernotok'
  13191. allow_undefined_flag_F77=' ${wl}-berok'
  13192. # Exported symbols can be pulled into shared objects from archives
  13193. whole_archive_flag_spec_F77='$convenience'
  13194. archive_cmds_need_lc_F77=yes
  13195. # This is similar to how AIX traditionally builds its shared libraries.
  13196. 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'
  13197. fi
  13198. fi
  13199. ;;
  13200. amigaos*)
  13201. 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)'
  13202. hardcode_libdir_flag_spec_F77='-L$libdir'
  13203. hardcode_minus_L_F77=yes
  13204. # see comment about different semantics on the GNU ld section
  13205. ld_shlibs_F77=no
  13206. ;;
  13207. bsdi[45]*)
  13208. export_dynamic_flag_spec_F77=-rdynamic
  13209. ;;
  13210. cygwin* | mingw* | pw32*)
  13211. # When not using gcc, we currently assume that we are using
  13212. # Microsoft Visual C++.
  13213. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13214. # no search path for DLLs.
  13215. hardcode_libdir_flag_spec_F77=' '
  13216. allow_undefined_flag_F77=unsupported
  13217. # Tell ltmain to make .lib files, not .a files.
  13218. libext=lib
  13219. # Tell ltmain to make .dll files, not .so files.
  13220. shrext_cmds=".dll"
  13221. # FIXME: Setting linknames here is a bad hack.
  13222. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13223. # The linker will automatically build a .lib file if we build a DLL.
  13224. old_archive_From_new_cmds_F77='true'
  13225. # FIXME: Should let the user specify the lib program.
  13226. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  13227. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13228. enable_shared_with_static_runtimes_F77=yes
  13229. ;;
  13230. darwin* | rhapsody*)
  13231. case $host_os in
  13232. rhapsody* | darwin1.[012])
  13233. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13234. ;;
  13235. *) # Darwin 1.3 on
  13236. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13237. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13238. else
  13239. case ${MACOSX_DEPLOYMENT_TARGET} in
  13240. 10.[012])
  13241. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13242. ;;
  13243. 10.*)
  13244. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13245. ;;
  13246. esac
  13247. fi
  13248. ;;
  13249. esac
  13250. archive_cmds_need_lc_F77=no
  13251. hardcode_direct_F77=no
  13252. hardcode_automatic_F77=yes
  13253. hardcode_shlibpath_var_F77=unsupported
  13254. whole_archive_flag_spec_F77=''
  13255. link_all_deplibs_F77=yes
  13256. if test "$GCC" = yes ; then
  13257. output_verbose_link_cmd='echo'
  13258. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13259. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13260. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13261. 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}'
  13262. 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}'
  13263. else
  13264. case $cc_basename in
  13265. xlc*)
  13266. output_verbose_link_cmd='echo'
  13267. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  13268. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13269. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13270. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13271. 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}'
  13272. ;;
  13273. *)
  13274. ld_shlibs_F77=no
  13275. ;;
  13276. esac
  13277. fi
  13278. ;;
  13279. dgux*)
  13280. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13281. hardcode_libdir_flag_spec_F77='-L$libdir'
  13282. hardcode_shlibpath_var_F77=no
  13283. ;;
  13284. freebsd1*)
  13285. ld_shlibs_F77=no
  13286. ;;
  13287. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13288. # support. Future versions do this automatically, but an explicit c++rt0.o
  13289. # does not break anything, and helps significantly (at the cost of a little
  13290. # extra space).
  13291. freebsd2.2*)
  13292. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13293. hardcode_libdir_flag_spec_F77='-R$libdir'
  13294. hardcode_direct_F77=yes
  13295. hardcode_shlibpath_var_F77=no
  13296. ;;
  13297. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13298. freebsd2*)
  13299. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13300. hardcode_direct_F77=yes
  13301. hardcode_minus_L_F77=yes
  13302. hardcode_shlibpath_var_F77=no
  13303. ;;
  13304. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13305. freebsd* | kfreebsd*-gnu | dragonfly*)
  13306. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13307. hardcode_libdir_flag_spec_F77='-R$libdir'
  13308. hardcode_direct_F77=yes
  13309. hardcode_shlibpath_var_F77=no
  13310. ;;
  13311. hpux9*)
  13312. if test "$GCC" = yes; then
  13313. 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'
  13314. else
  13315. 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'
  13316. fi
  13317. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13318. hardcode_libdir_separator_F77=:
  13319. hardcode_direct_F77=yes
  13320. # hardcode_minus_L: Not really in the search PATH,
  13321. # but as the default location of the library.
  13322. hardcode_minus_L_F77=yes
  13323. export_dynamic_flag_spec_F77='${wl}-E'
  13324. ;;
  13325. hpux10*)
  13326. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13327. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13328. else
  13329. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13330. fi
  13331. if test "$with_gnu_ld" = no; then
  13332. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13333. hardcode_libdir_separator_F77=:
  13334. hardcode_direct_F77=yes
  13335. export_dynamic_flag_spec_F77='${wl}-E'
  13336. # hardcode_minus_L: Not really in the search PATH,
  13337. # but as the default location of the library.
  13338. hardcode_minus_L_F77=yes
  13339. fi
  13340. ;;
  13341. hpux11*)
  13342. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13343. case $host_cpu in
  13344. hppa*64*)
  13345. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13346. ;;
  13347. ia64*)
  13348. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13349. ;;
  13350. *)
  13351. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13352. ;;
  13353. esac
  13354. else
  13355. case $host_cpu in
  13356. hppa*64*)
  13357. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13358. ;;
  13359. ia64*)
  13360. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13361. ;;
  13362. *)
  13363. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13364. ;;
  13365. esac
  13366. fi
  13367. if test "$with_gnu_ld" = no; then
  13368. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13369. hardcode_libdir_separator_F77=:
  13370. case $host_cpu in
  13371. hppa*64*|ia64*)
  13372. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13373. hardcode_direct_F77=no
  13374. hardcode_shlibpath_var_F77=no
  13375. ;;
  13376. *)
  13377. hardcode_direct_F77=yes
  13378. export_dynamic_flag_spec_F77='${wl}-E'
  13379. # hardcode_minus_L: Not really in the search PATH,
  13380. # but as the default location of the library.
  13381. hardcode_minus_L_F77=yes
  13382. ;;
  13383. esac
  13384. fi
  13385. ;;
  13386. irix5* | irix6* | nonstopux*)
  13387. if test "$GCC" = yes; then
  13388. 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'
  13389. else
  13390. 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'
  13391. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13392. fi
  13393. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13394. hardcode_libdir_separator_F77=:
  13395. link_all_deplibs_F77=yes
  13396. ;;
  13397. netbsd*)
  13398. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13399. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13400. else
  13401. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13402. fi
  13403. hardcode_libdir_flag_spec_F77='-R$libdir'
  13404. hardcode_direct_F77=yes
  13405. hardcode_shlibpath_var_F77=no
  13406. ;;
  13407. newsos6)
  13408. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13409. hardcode_direct_F77=yes
  13410. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13411. hardcode_libdir_separator_F77=:
  13412. hardcode_shlibpath_var_F77=no
  13413. ;;
  13414. openbsd*)
  13415. hardcode_direct_F77=yes
  13416. hardcode_shlibpath_var_F77=no
  13417. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13418. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13419. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13420. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13421. export_dynamic_flag_spec_F77='${wl}-E'
  13422. else
  13423. case $host_os in
  13424. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13425. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13426. hardcode_libdir_flag_spec_F77='-R$libdir'
  13427. ;;
  13428. *)
  13429. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13430. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13431. ;;
  13432. esac
  13433. fi
  13434. ;;
  13435. os2*)
  13436. hardcode_libdir_flag_spec_F77='-L$libdir'
  13437. hardcode_minus_L_F77=yes
  13438. allow_undefined_flag_F77=unsupported
  13439. 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'
  13440. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13441. ;;
  13442. osf3*)
  13443. if test "$GCC" = yes; then
  13444. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13445. 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'
  13446. else
  13447. allow_undefined_flag_F77=' -expect_unresolved \*'
  13448. 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'
  13449. fi
  13450. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13451. hardcode_libdir_separator_F77=:
  13452. ;;
  13453. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13454. if test "$GCC" = yes; then
  13455. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13456. 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'
  13457. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13458. else
  13459. allow_undefined_flag_F77=' -expect_unresolved \*'
  13460. 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'
  13461. 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~
  13462. $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'
  13463. # Both c and cxx compiler support -rpath directly
  13464. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13465. fi
  13466. hardcode_libdir_separator_F77=:
  13467. ;;
  13468. solaris*)
  13469. no_undefined_flag_F77=' -z text'
  13470. if test "$GCC" = yes; then
  13471. wlarc='${wl}'
  13472. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13473. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13474. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13475. else
  13476. wlarc=''
  13477. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13478. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13479. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13480. fi
  13481. hardcode_libdir_flag_spec_F77='-R$libdir'
  13482. hardcode_shlibpath_var_F77=no
  13483. case $host_os in
  13484. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13485. *)
  13486. # The compiler driver will combine linker options so we
  13487. # cannot just pass the convience library names through
  13488. # without $wl, iff we do not link with $LD.
  13489. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13490. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13491. case $wlarc in
  13492. '')
  13493. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13494. *)
  13495. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  13496. esac ;;
  13497. esac
  13498. link_all_deplibs_F77=yes
  13499. ;;
  13500. sunos4*)
  13501. if test "x$host_vendor" = xsequent; then
  13502. # Use $CC to link under sequent, because it throws in some extra .o
  13503. # files that make .init and .fini sections work.
  13504. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13505. else
  13506. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13507. fi
  13508. hardcode_libdir_flag_spec_F77='-L$libdir'
  13509. hardcode_direct_F77=yes
  13510. hardcode_minus_L_F77=yes
  13511. hardcode_shlibpath_var_F77=no
  13512. ;;
  13513. sysv4)
  13514. case $host_vendor in
  13515. sni)
  13516. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13517. hardcode_direct_F77=yes # is this really true???
  13518. ;;
  13519. siemens)
  13520. ## LD is ld it makes a PLAMLIB
  13521. ## CC just makes a GrossModule.
  13522. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13523. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13524. hardcode_direct_F77=no
  13525. ;;
  13526. motorola)
  13527. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13528. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13529. ;;
  13530. esac
  13531. runpath_var='LD_RUN_PATH'
  13532. hardcode_shlibpath_var_F77=no
  13533. ;;
  13534. sysv4.3*)
  13535. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13536. hardcode_shlibpath_var_F77=no
  13537. export_dynamic_flag_spec_F77='-Bexport'
  13538. ;;
  13539. sysv4*MP*)
  13540. if test -d /usr/nec; then
  13541. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13542. hardcode_shlibpath_var_F77=no
  13543. runpath_var=LD_RUN_PATH
  13544. hardcode_runpath_var=yes
  13545. ld_shlibs_F77=yes
  13546. fi
  13547. ;;
  13548. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13549. no_undefined_flag_F77='${wl}-z,text'
  13550. archive_cmds_need_lc_F77=no
  13551. hardcode_shlibpath_var_F77=no
  13552. runpath_var='LD_RUN_PATH'
  13553. if test "$GCC" = yes; then
  13554. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13555. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13556. else
  13557. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13558. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13559. fi
  13560. ;;
  13561. sysv5* | sco3.2v5* | sco5v6*)
  13562. # Note: We can NOT use -z defs as we might desire, because we do not
  13563. # link with -lc, and that would cause any symbols used from libc to
  13564. # always be unresolved, which means just about no library would
  13565. # ever link correctly. If we're not using GNU ld we use -z text
  13566. # though, which does catch some bad symbols but isn't as heavy-handed
  13567. # as -z defs.
  13568. no_undefined_flag_F77='${wl}-z,text'
  13569. allow_undefined_flag_F77='${wl}-z,nodefs'
  13570. archive_cmds_need_lc_F77=no
  13571. hardcode_shlibpath_var_F77=no
  13572. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13573. hardcode_libdir_separator_F77=':'
  13574. link_all_deplibs_F77=yes
  13575. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13576. runpath_var='LD_RUN_PATH'
  13577. if test "$GCC" = yes; then
  13578. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13579. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13580. else
  13581. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13582. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13583. fi
  13584. ;;
  13585. uts4*)
  13586. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13587. hardcode_libdir_flag_spec_F77='-L$libdir'
  13588. hardcode_shlibpath_var_F77=no
  13589. ;;
  13590. *)
  13591. ld_shlibs_F77=no
  13592. ;;
  13593. esac
  13594. fi
  13595. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13596. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13597. test "$ld_shlibs_F77" = no && can_build_shared=no
  13598. #
  13599. # Do we need to explicitly link libc?
  13600. #
  13601. case "x$archive_cmds_need_lc_F77" in
  13602. x|xyes)
  13603. # Assume -lc should be added
  13604. archive_cmds_need_lc_F77=yes
  13605. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13606. case $archive_cmds_F77 in
  13607. *'~'*)
  13608. # FIXME: we may have to deal with multi-command sequences.
  13609. ;;
  13610. '$CC '*)
  13611. # Test whether the compiler implicitly links with -lc since on some
  13612. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13613. # to ld, don't add -lc before -lgcc.
  13614. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13615. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13616. $rm conftest*
  13617. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13618. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13619. (eval $ac_compile) 2>&5
  13620. ac_status=$?
  13621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13622. (exit $ac_status); } 2>conftest.err; then
  13623. soname=conftest
  13624. lib=conftest
  13625. libobjs=conftest.$ac_objext
  13626. deplibs=
  13627. wl=$lt_prog_compiler_wl_F77
  13628. pic_flag=$lt_prog_compiler_pic_F77
  13629. compiler_flags=-v
  13630. linker_flags=-v
  13631. verstring=
  13632. output_objdir=.
  13633. libname=conftest
  13634. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13635. allow_undefined_flag_F77=
  13636. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13637. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13638. ac_status=$?
  13639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13640. (exit $ac_status); }
  13641. then
  13642. archive_cmds_need_lc_F77=no
  13643. else
  13644. archive_cmds_need_lc_F77=yes
  13645. fi
  13646. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13647. else
  13648. cat conftest.err 1>&5
  13649. fi
  13650. $rm conftest*
  13651. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13652. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13653. ;;
  13654. esac
  13655. fi
  13656. ;;
  13657. esac
  13658. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13659. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13660. library_names_spec=
  13661. libname_spec='lib$name'
  13662. soname_spec=
  13663. shrext_cmds=".so"
  13664. postinstall_cmds=
  13665. postuninstall_cmds=
  13666. finish_cmds=
  13667. finish_eval=
  13668. shlibpath_var=
  13669. shlibpath_overrides_runpath=unknown
  13670. version_type=none
  13671. dynamic_linker="$host_os ld.so"
  13672. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13673. if test "$GCC" = yes; then
  13674. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13675. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13676. # if the path contains ";" then we assume it to be the separator
  13677. # otherwise default to the standard path separator (i.e. ":") - it is
  13678. # assumed that no part of a normal pathname contains ";" but that should
  13679. # okay in the real world where ";" in dirpaths is itself problematic.
  13680. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13681. else
  13682. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13683. fi
  13684. else
  13685. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13686. fi
  13687. need_lib_prefix=unknown
  13688. hardcode_into_libs=no
  13689. # when you set need_version to no, make sure it does not cause -set_version
  13690. # flags to be left without arguments
  13691. need_version=unknown
  13692. case $host_os in
  13693. aix3*)
  13694. version_type=linux
  13695. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13696. shlibpath_var=LIBPATH
  13697. # AIX 3 has no versioning support, so we append a major version to the name.
  13698. soname_spec='${libname}${release}${shared_ext}$major'
  13699. ;;
  13700. aix4* | aix5*)
  13701. version_type=linux
  13702. need_lib_prefix=no
  13703. need_version=no
  13704. hardcode_into_libs=yes
  13705. if test "$host_cpu" = ia64; then
  13706. # AIX 5 supports IA64
  13707. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13708. shlibpath_var=LD_LIBRARY_PATH
  13709. else
  13710. # With GCC up to 2.95.x, collect2 would create an import file
  13711. # for dependence libraries. The import file would start with
  13712. # the line `#! .'. This would cause the generated library to
  13713. # depend on `.', always an invalid library. This was fixed in
  13714. # development snapshots of GCC prior to 3.0.
  13715. case $host_os in
  13716. aix4 | aix4.[01] | aix4.[01].*)
  13717. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13718. echo ' yes '
  13719. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13720. :
  13721. else
  13722. can_build_shared=no
  13723. fi
  13724. ;;
  13725. esac
  13726. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13727. # soname into executable. Probably we can add versioning support to
  13728. # collect2, so additional links can be useful in future.
  13729. if test "$aix_use_runtimelinking" = yes; then
  13730. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13731. # instead of lib<name>.a to let people know that these are not
  13732. # typical AIX shared libraries.
  13733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13734. else
  13735. # We preserve .a as extension for shared libraries through AIX4.2
  13736. # and later when we are not doing run time linking.
  13737. library_names_spec='${libname}${release}.a $libname.a'
  13738. soname_spec='${libname}${release}${shared_ext}$major'
  13739. fi
  13740. shlibpath_var=LIBPATH
  13741. fi
  13742. ;;
  13743. amigaos*)
  13744. library_names_spec='$libname.ixlibrary $libname.a'
  13745. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13746. 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'
  13747. ;;
  13748. beos*)
  13749. library_names_spec='${libname}${shared_ext}'
  13750. dynamic_linker="$host_os ld.so"
  13751. shlibpath_var=LIBRARY_PATH
  13752. ;;
  13753. bsdi[45]*)
  13754. version_type=linux
  13755. need_version=no
  13756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13757. soname_spec='${libname}${release}${shared_ext}$major'
  13758. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13759. shlibpath_var=LD_LIBRARY_PATH
  13760. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13761. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13762. # the default ld.so.conf also contains /usr/contrib/lib and
  13763. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13764. # libtool to hard-code these into programs
  13765. ;;
  13766. cygwin* | mingw* | pw32*)
  13767. version_type=windows
  13768. shrext_cmds=".dll"
  13769. need_version=no
  13770. need_lib_prefix=no
  13771. case $GCC,$host_os in
  13772. yes,cygwin* | yes,mingw* | yes,pw32*)
  13773. library_names_spec='$libname.dll.a'
  13774. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13775. postinstall_cmds='base_file=`basename \${file}`~
  13776. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13777. dldir=$destdir/`dirname \$dlpath`~
  13778. test -d \$dldir || mkdir -p \$dldir~
  13779. $install_prog $dir/$dlname \$dldir/$dlname~
  13780. chmod a+x \$dldir/$dlname'
  13781. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13782. dlpath=$dir/\$dldll~
  13783. $rm \$dlpath'
  13784. shlibpath_overrides_runpath=yes
  13785. case $host_os in
  13786. cygwin*)
  13787. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13788. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13789. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13790. ;;
  13791. mingw*)
  13792. # MinGW DLLs use traditional 'lib' prefix
  13793. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13794. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13795. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13796. # It is most probably a Windows format PATH printed by
  13797. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13798. # path with ; separators, and with drive letters. We can handle the
  13799. # drive letters (cygwin fileutils understands them), so leave them,
  13800. # especially as we might pass files found there to a mingw objdump,
  13801. # which wouldn't understand a cygwinified path. Ahh.
  13802. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13803. else
  13804. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13805. fi
  13806. ;;
  13807. pw32*)
  13808. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13809. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13810. ;;
  13811. esac
  13812. ;;
  13813. *)
  13814. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13815. ;;
  13816. esac
  13817. dynamic_linker='Win32 ld.exe'
  13818. # FIXME: first we should search . and the directory the executable is in
  13819. shlibpath_var=PATH
  13820. ;;
  13821. darwin* | rhapsody*)
  13822. dynamic_linker="$host_os dyld"
  13823. version_type=darwin
  13824. need_lib_prefix=no
  13825. need_version=no
  13826. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13827. soname_spec='${libname}${release}${major}$shared_ext'
  13828. shlibpath_overrides_runpath=yes
  13829. shlibpath_var=DYLD_LIBRARY_PATH
  13830. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13831. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13832. if test "$GCC" = yes; then
  13833. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13834. else
  13835. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13836. fi
  13837. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13838. ;;
  13839. dgux*)
  13840. version_type=linux
  13841. need_lib_prefix=no
  13842. need_version=no
  13843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13844. soname_spec='${libname}${release}${shared_ext}$major'
  13845. shlibpath_var=LD_LIBRARY_PATH
  13846. ;;
  13847. freebsd1*)
  13848. dynamic_linker=no
  13849. ;;
  13850. kfreebsd*-gnu)
  13851. version_type=linux
  13852. need_lib_prefix=no
  13853. need_version=no
  13854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13855. soname_spec='${libname}${release}${shared_ext}$major'
  13856. shlibpath_var=LD_LIBRARY_PATH
  13857. shlibpath_overrides_runpath=no
  13858. hardcode_into_libs=yes
  13859. dynamic_linker='GNU ld.so'
  13860. ;;
  13861. freebsd* | dragonfly*)
  13862. # DragonFly does not have aout. When/if they implement a new
  13863. # versioning mechanism, adjust this.
  13864. if test -x /usr/bin/objformat; then
  13865. objformat=`/usr/bin/objformat`
  13866. else
  13867. case $host_os in
  13868. freebsd[123]*) objformat=aout ;;
  13869. *) objformat=elf ;;
  13870. esac
  13871. fi
  13872. version_type=freebsd-$objformat
  13873. case $version_type in
  13874. freebsd-elf*)
  13875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13876. need_version=no
  13877. need_lib_prefix=no
  13878. ;;
  13879. freebsd-*)
  13880. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13881. need_version=yes
  13882. ;;
  13883. esac
  13884. shlibpath_var=LD_LIBRARY_PATH
  13885. case $host_os in
  13886. freebsd2*)
  13887. shlibpath_overrides_runpath=yes
  13888. ;;
  13889. freebsd3.[01]* | freebsdelf3.[01]*)
  13890. shlibpath_overrides_runpath=yes
  13891. hardcode_into_libs=yes
  13892. ;;
  13893. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13894. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13895. shlibpath_overrides_runpath=no
  13896. hardcode_into_libs=yes
  13897. ;;
  13898. freebsd*) # from 4.6 on
  13899. shlibpath_overrides_runpath=yes
  13900. hardcode_into_libs=yes
  13901. ;;
  13902. esac
  13903. ;;
  13904. gnu*)
  13905. version_type=linux
  13906. need_lib_prefix=no
  13907. need_version=no
  13908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13909. soname_spec='${libname}${release}${shared_ext}$major'
  13910. shlibpath_var=LD_LIBRARY_PATH
  13911. hardcode_into_libs=yes
  13912. ;;
  13913. hpux9* | hpux10* | hpux11*)
  13914. # Give a soname corresponding to the major version so that dld.sl refuses to
  13915. # link against other versions.
  13916. version_type=sunos
  13917. need_lib_prefix=no
  13918. need_version=no
  13919. case $host_cpu in
  13920. ia64*)
  13921. shrext_cmds='.so'
  13922. hardcode_into_libs=yes
  13923. dynamic_linker="$host_os dld.so"
  13924. shlibpath_var=LD_LIBRARY_PATH
  13925. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13927. soname_spec='${libname}${release}${shared_ext}$major'
  13928. if test "X$HPUX_IA64_MODE" = X32; then
  13929. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13930. else
  13931. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13932. fi
  13933. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13934. ;;
  13935. hppa*64*)
  13936. shrext_cmds='.sl'
  13937. hardcode_into_libs=yes
  13938. dynamic_linker="$host_os dld.sl"
  13939. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13940. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13942. soname_spec='${libname}${release}${shared_ext}$major'
  13943. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13944. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13945. ;;
  13946. *)
  13947. shrext_cmds='.sl'
  13948. dynamic_linker="$host_os dld.sl"
  13949. shlibpath_var=SHLIB_PATH
  13950. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13952. soname_spec='${libname}${release}${shared_ext}$major'
  13953. ;;
  13954. esac
  13955. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13956. postinstall_cmds='chmod 555 $lib'
  13957. ;;
  13958. interix3*)
  13959. version_type=linux
  13960. need_lib_prefix=no
  13961. need_version=no
  13962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13963. soname_spec='${libname}${release}${shared_ext}$major'
  13964. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13965. shlibpath_var=LD_LIBRARY_PATH
  13966. shlibpath_overrides_runpath=no
  13967. hardcode_into_libs=yes
  13968. ;;
  13969. irix5* | irix6* | nonstopux*)
  13970. case $host_os in
  13971. nonstopux*) version_type=nonstopux ;;
  13972. *)
  13973. if test "$lt_cv_prog_gnu_ld" = yes; then
  13974. version_type=linux
  13975. else
  13976. version_type=irix
  13977. fi ;;
  13978. esac
  13979. need_lib_prefix=no
  13980. need_version=no
  13981. soname_spec='${libname}${release}${shared_ext}$major'
  13982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13983. case $host_os in
  13984. irix5* | nonstopux*)
  13985. libsuff= shlibsuff=
  13986. ;;
  13987. *)
  13988. case $LD in # libtool.m4 will add one of these switches to LD
  13989. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13990. libsuff= shlibsuff= libmagic=32-bit;;
  13991. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13992. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13993. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13994. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13995. *) libsuff= shlibsuff= libmagic=never-match;;
  13996. esac
  13997. ;;
  13998. esac
  13999. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14000. shlibpath_overrides_runpath=no
  14001. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14002. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14003. hardcode_into_libs=yes
  14004. ;;
  14005. # No shared lib support for Linux oldld, aout, or coff.
  14006. linux*oldld* | linux*aout* | linux*coff*)
  14007. dynamic_linker=no
  14008. ;;
  14009. # This must be Linux ELF.
  14010. linux*)
  14011. version_type=linux
  14012. need_lib_prefix=no
  14013. need_version=no
  14014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14015. soname_spec='${libname}${release}${shared_ext}$major'
  14016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14017. shlibpath_var=LD_LIBRARY_PATH
  14018. shlibpath_overrides_runpath=no
  14019. # This implies no fast_install, which is unacceptable.
  14020. # Some rework will be needed to allow for fast_install
  14021. # before this can be enabled.
  14022. hardcode_into_libs=yes
  14023. # Append ld.so.conf contents to the search path
  14024. if test -f /etc/ld.so.conf; then
  14025. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14026. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14027. fi
  14028. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14029. # powerpc, because MkLinux only supported shared libraries with the
  14030. # GNU dynamic linker. Since this was broken with cross compilers,
  14031. # most powerpc-linux boxes support dynamic linking these days and
  14032. # people can always --disable-shared, the test was removed, and we
  14033. # assume the GNU/Linux dynamic linker is in use.
  14034. dynamic_linker='GNU/Linux ld.so'
  14035. ;;
  14036. knetbsd*-gnu)
  14037. version_type=linux
  14038. need_lib_prefix=no
  14039. need_version=no
  14040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14041. soname_spec='${libname}${release}${shared_ext}$major'
  14042. shlibpath_var=LD_LIBRARY_PATH
  14043. shlibpath_overrides_runpath=no
  14044. hardcode_into_libs=yes
  14045. dynamic_linker='GNU ld.so'
  14046. ;;
  14047. netbsd*)
  14048. version_type=sunos
  14049. need_lib_prefix=no
  14050. need_version=no
  14051. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14054. dynamic_linker='NetBSD (a.out) ld.so'
  14055. else
  14056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14057. soname_spec='${libname}${release}${shared_ext}$major'
  14058. dynamic_linker='NetBSD ld.elf_so'
  14059. fi
  14060. shlibpath_var=LD_LIBRARY_PATH
  14061. shlibpath_overrides_runpath=yes
  14062. hardcode_into_libs=yes
  14063. ;;
  14064. newsos6)
  14065. version_type=linux
  14066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14067. shlibpath_var=LD_LIBRARY_PATH
  14068. shlibpath_overrides_runpath=yes
  14069. ;;
  14070. nto-qnx*)
  14071. version_type=linux
  14072. need_lib_prefix=no
  14073. need_version=no
  14074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14075. soname_spec='${libname}${release}${shared_ext}$major'
  14076. shlibpath_var=LD_LIBRARY_PATH
  14077. shlibpath_overrides_runpath=yes
  14078. ;;
  14079. openbsd*)
  14080. version_type=sunos
  14081. sys_lib_dlsearch_path_spec="/usr/lib"
  14082. need_lib_prefix=no
  14083. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14084. case $host_os in
  14085. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14086. *) need_version=no ;;
  14087. esac
  14088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14089. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14090. shlibpath_var=LD_LIBRARY_PATH
  14091. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14092. case $host_os in
  14093. openbsd2.[89] | openbsd2.[89].*)
  14094. shlibpath_overrides_runpath=no
  14095. ;;
  14096. *)
  14097. shlibpath_overrides_runpath=yes
  14098. ;;
  14099. esac
  14100. else
  14101. shlibpath_overrides_runpath=yes
  14102. fi
  14103. ;;
  14104. os2*)
  14105. libname_spec='$name'
  14106. shrext_cmds=".dll"
  14107. need_lib_prefix=no
  14108. library_names_spec='$libname${shared_ext} $libname.a'
  14109. dynamic_linker='OS/2 ld.exe'
  14110. shlibpath_var=LIBPATH
  14111. ;;
  14112. osf3* | osf4* | osf5*)
  14113. version_type=osf
  14114. need_lib_prefix=no
  14115. need_version=no
  14116. soname_spec='${libname}${release}${shared_ext}$major'
  14117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14118. shlibpath_var=LD_LIBRARY_PATH
  14119. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14120. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14121. ;;
  14122. solaris*)
  14123. version_type=linux
  14124. need_lib_prefix=no
  14125. need_version=no
  14126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14127. soname_spec='${libname}${release}${shared_ext}$major'
  14128. shlibpath_var=LD_LIBRARY_PATH
  14129. shlibpath_overrides_runpath=yes
  14130. hardcode_into_libs=yes
  14131. # ldd complains unless libraries are executable
  14132. postinstall_cmds='chmod +x $lib'
  14133. ;;
  14134. sunos4*)
  14135. version_type=sunos
  14136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14137. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14138. shlibpath_var=LD_LIBRARY_PATH
  14139. shlibpath_overrides_runpath=yes
  14140. if test "$with_gnu_ld" = yes; then
  14141. need_lib_prefix=no
  14142. fi
  14143. need_version=yes
  14144. ;;
  14145. sysv4 | sysv4.3*)
  14146. version_type=linux
  14147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14148. soname_spec='${libname}${release}${shared_ext}$major'
  14149. shlibpath_var=LD_LIBRARY_PATH
  14150. case $host_vendor in
  14151. sni)
  14152. shlibpath_overrides_runpath=no
  14153. need_lib_prefix=no
  14154. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14155. runpath_var=LD_RUN_PATH
  14156. ;;
  14157. siemens)
  14158. need_lib_prefix=no
  14159. ;;
  14160. motorola)
  14161. need_lib_prefix=no
  14162. need_version=no
  14163. shlibpath_overrides_runpath=no
  14164. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14165. ;;
  14166. esac
  14167. ;;
  14168. sysv4*MP*)
  14169. if test -d /usr/nec ;then
  14170. version_type=linux
  14171. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14172. soname_spec='$libname${shared_ext}.$major'
  14173. shlibpath_var=LD_LIBRARY_PATH
  14174. fi
  14175. ;;
  14176. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14177. version_type=freebsd-elf
  14178. need_lib_prefix=no
  14179. need_version=no
  14180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14181. soname_spec='${libname}${release}${shared_ext}$major'
  14182. shlibpath_var=LD_LIBRARY_PATH
  14183. hardcode_into_libs=yes
  14184. if test "$with_gnu_ld" = yes; then
  14185. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14186. shlibpath_overrides_runpath=no
  14187. else
  14188. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14189. shlibpath_overrides_runpath=yes
  14190. case $host_os in
  14191. sco3.2v5*)
  14192. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14193. ;;
  14194. esac
  14195. fi
  14196. sys_lib_dlsearch_path_spec='/usr/lib'
  14197. ;;
  14198. uts4*)
  14199. version_type=linux
  14200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14201. soname_spec='${libname}${release}${shared_ext}$major'
  14202. shlibpath_var=LD_LIBRARY_PATH
  14203. ;;
  14204. *)
  14205. dynamic_linker=no
  14206. ;;
  14207. esac
  14208. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14209. echo "${ECHO_T}$dynamic_linker" >&6; }
  14210. test "$dynamic_linker" = no && can_build_shared=no
  14211. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14212. if test "$GCC" = yes; then
  14213. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14214. fi
  14215. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14216. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14217. hardcode_action_F77=
  14218. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14219. test -n "$runpath_var_F77" || \
  14220. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14221. # We can hardcode non-existant directories.
  14222. if test "$hardcode_direct_F77" != no &&
  14223. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14224. # have to relink, otherwise we might link with an installed library
  14225. # when we should be linking with a yet-to-be-installed one
  14226. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14227. test "$hardcode_minus_L_F77" != no; then
  14228. # Linking always hardcodes the temporary library directory.
  14229. hardcode_action_F77=relink
  14230. else
  14231. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14232. hardcode_action_F77=immediate
  14233. fi
  14234. else
  14235. # We cannot hardcode anything, or else we can only hardcode existing
  14236. # directories.
  14237. hardcode_action_F77=unsupported
  14238. fi
  14239. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14240. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14241. if test "$hardcode_action_F77" = relink; then
  14242. # Fast installation is not supported
  14243. enable_fast_install=no
  14244. elif test "$shlibpath_overrides_runpath" = yes ||
  14245. test "$enable_shared" = no; then
  14246. # Fast installation is not necessary
  14247. enable_fast_install=needless
  14248. fi
  14249. # The else clause should only fire when bootstrapping the
  14250. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14251. # with your package, and you will get complaints that there are
  14252. # no rules to generate ltmain.sh.
  14253. if test -f "$ltmain"; then
  14254. # See if we are running on zsh, and set the options which allow our commands through
  14255. # without removal of \ escapes.
  14256. if test -n "${ZSH_VERSION+set}" ; then
  14257. setopt NO_GLOB_SUBST
  14258. fi
  14259. # Now quote all the things that may contain metacharacters while being
  14260. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14261. # variables and quote the copies for generation of the libtool script.
  14262. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14263. SED SHELL STRIP \
  14264. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14265. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14266. deplibs_check_method reload_flag reload_cmds need_locks \
  14267. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14268. lt_cv_sys_global_symbol_to_c_name_address \
  14269. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14270. old_postinstall_cmds old_postuninstall_cmds \
  14271. compiler_F77 \
  14272. CC_F77 \
  14273. LD_F77 \
  14274. lt_prog_compiler_wl_F77 \
  14275. lt_prog_compiler_pic_F77 \
  14276. lt_prog_compiler_static_F77 \
  14277. lt_prog_compiler_no_builtin_flag_F77 \
  14278. export_dynamic_flag_spec_F77 \
  14279. thread_safe_flag_spec_F77 \
  14280. whole_archive_flag_spec_F77 \
  14281. enable_shared_with_static_runtimes_F77 \
  14282. old_archive_cmds_F77 \
  14283. old_archive_from_new_cmds_F77 \
  14284. predep_objects_F77 \
  14285. postdep_objects_F77 \
  14286. predeps_F77 \
  14287. postdeps_F77 \
  14288. compiler_lib_search_path_F77 \
  14289. archive_cmds_F77 \
  14290. archive_expsym_cmds_F77 \
  14291. postinstall_cmds_F77 \
  14292. postuninstall_cmds_F77 \
  14293. old_archive_from_expsyms_cmds_F77 \
  14294. allow_undefined_flag_F77 \
  14295. no_undefined_flag_F77 \
  14296. export_symbols_cmds_F77 \
  14297. hardcode_libdir_flag_spec_F77 \
  14298. hardcode_libdir_flag_spec_ld_F77 \
  14299. hardcode_libdir_separator_F77 \
  14300. hardcode_automatic_F77 \
  14301. module_cmds_F77 \
  14302. module_expsym_cmds_F77 \
  14303. lt_cv_prog_compiler_c_o_F77 \
  14304. exclude_expsyms_F77 \
  14305. include_expsyms_F77; do
  14306. case $var in
  14307. old_archive_cmds_F77 | \
  14308. old_archive_from_new_cmds_F77 | \
  14309. archive_cmds_F77 | \
  14310. archive_expsym_cmds_F77 | \
  14311. module_cmds_F77 | \
  14312. module_expsym_cmds_F77 | \
  14313. old_archive_from_expsyms_cmds_F77 | \
  14314. export_symbols_cmds_F77 | \
  14315. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14316. postinstall_cmds | postuninstall_cmds | \
  14317. old_postinstall_cmds | old_postuninstall_cmds | \
  14318. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14319. # Double-quote double-evaled strings.
  14320. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14321. ;;
  14322. *)
  14323. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14324. ;;
  14325. esac
  14326. done
  14327. case $lt_echo in
  14328. *'\$0 --fallback-echo"')
  14329. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14330. ;;
  14331. esac
  14332. cfgfile="$ofile"
  14333. cat <<__EOF__ >> "$cfgfile"
  14334. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14335. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14336. # Shell to use when invoking shell scripts.
  14337. SHELL=$lt_SHELL
  14338. # Whether or not to build shared libraries.
  14339. build_libtool_libs=$enable_shared
  14340. # Whether or not to build static libraries.
  14341. build_old_libs=$enable_static
  14342. # Whether or not to add -lc for building shared libraries.
  14343. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14344. # Whether or not to disallow shared libs when runtime libs are static
  14345. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14346. # Whether or not to optimize for fast installation.
  14347. fast_install=$enable_fast_install
  14348. # The host system.
  14349. host_alias=$host_alias
  14350. host=$host
  14351. host_os=$host_os
  14352. # The build system.
  14353. build_alias=$build_alias
  14354. build=$build
  14355. build_os=$build_os
  14356. # An echo program that does not interpret backslashes.
  14357. echo=$lt_echo
  14358. # The archiver.
  14359. AR=$lt_AR
  14360. AR_FLAGS=$lt_AR_FLAGS
  14361. # A C compiler.
  14362. LTCC=$lt_LTCC
  14363. # LTCC compiler flags.
  14364. LTCFLAGS=$lt_LTCFLAGS
  14365. # A language-specific compiler.
  14366. CC=$lt_compiler_F77
  14367. # Is the compiler the GNU C compiler?
  14368. with_gcc=$GCC_F77
  14369. # An ERE matcher.
  14370. EGREP=$lt_EGREP
  14371. # The linker used to build libraries.
  14372. LD=$lt_LD_F77
  14373. # Whether we need hard or soft links.
  14374. LN_S=$lt_LN_S
  14375. # A BSD-compatible nm program.
  14376. NM=$lt_NM
  14377. # A symbol stripping program
  14378. STRIP=$lt_STRIP
  14379. # Used to examine libraries when file_magic_cmd begins "file"
  14380. MAGIC_CMD=$MAGIC_CMD
  14381. # Used on cygwin: DLL creation program.
  14382. DLLTOOL="$DLLTOOL"
  14383. # Used on cygwin: object dumper.
  14384. OBJDUMP="$OBJDUMP"
  14385. # Used on cygwin: assembler.
  14386. AS="$AS"
  14387. # The name of the directory that contains temporary libtool files.
  14388. objdir=$objdir
  14389. # How to create reloadable object files.
  14390. reload_flag=$lt_reload_flag
  14391. reload_cmds=$lt_reload_cmds
  14392. # How to pass a linker flag through the compiler.
  14393. wl=$lt_lt_prog_compiler_wl_F77
  14394. # Object file suffix (normally "o").
  14395. objext="$ac_objext"
  14396. # Old archive suffix (normally "a").
  14397. libext="$libext"
  14398. # Shared library suffix (normally ".so").
  14399. shrext_cmds='$shrext_cmds'
  14400. # Executable file suffix (normally "").
  14401. exeext="$exeext"
  14402. # Additional compiler flags for building library objects.
  14403. pic_flag=$lt_lt_prog_compiler_pic_F77
  14404. pic_mode=$pic_mode
  14405. # What is the maximum length of a command?
  14406. max_cmd_len=$lt_cv_sys_max_cmd_len
  14407. # Does compiler simultaneously support -c and -o options?
  14408. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14409. # Must we lock files when doing compilation?
  14410. need_locks=$lt_need_locks
  14411. # Do we need the lib prefix for modules?
  14412. need_lib_prefix=$need_lib_prefix
  14413. # Do we need a version for libraries?
  14414. need_version=$need_version
  14415. # Whether dlopen is supported.
  14416. dlopen_support=$enable_dlopen
  14417. # Whether dlopen of programs is supported.
  14418. dlopen_self=$enable_dlopen_self
  14419. # Whether dlopen of statically linked programs is supported.
  14420. dlopen_self_static=$enable_dlopen_self_static
  14421. # Compiler flag to prevent dynamic linking.
  14422. link_static_flag=$lt_lt_prog_compiler_static_F77
  14423. # Compiler flag to turn off builtin functions.
  14424. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14425. # Compiler flag to allow reflexive dlopens.
  14426. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14427. # Compiler flag to generate shared objects directly from archives.
  14428. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14429. # Compiler flag to generate thread-safe objects.
  14430. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14431. # Library versioning type.
  14432. version_type=$version_type
  14433. # Format of library name prefix.
  14434. libname_spec=$lt_libname_spec
  14435. # List of archive names. First name is the real one, the rest are links.
  14436. # The last name is the one that the linker finds with -lNAME.
  14437. library_names_spec=$lt_library_names_spec
  14438. # The coded name of the library, if different from the real name.
  14439. soname_spec=$lt_soname_spec
  14440. # Commands used to build and install an old-style archive.
  14441. RANLIB=$lt_RANLIB
  14442. old_archive_cmds=$lt_old_archive_cmds_F77
  14443. old_postinstall_cmds=$lt_old_postinstall_cmds
  14444. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14445. # Create an old-style archive from a shared archive.
  14446. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14447. # Create a temporary old-style archive to link instead of a shared archive.
  14448. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14449. # Commands used to build and install a shared archive.
  14450. archive_cmds=$lt_archive_cmds_F77
  14451. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14452. postinstall_cmds=$lt_postinstall_cmds
  14453. postuninstall_cmds=$lt_postuninstall_cmds
  14454. # Commands used to build a loadable module (assumed same as above if empty)
  14455. module_cmds=$lt_module_cmds_F77
  14456. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14457. # Commands to strip libraries.
  14458. old_striplib=$lt_old_striplib
  14459. striplib=$lt_striplib
  14460. # Dependencies to place before the objects being linked to create a
  14461. # shared library.
  14462. predep_objects=$lt_predep_objects_F77
  14463. # Dependencies to place after the objects being linked to create a
  14464. # shared library.
  14465. postdep_objects=$lt_postdep_objects_F77
  14466. # Dependencies to place before the objects being linked to create a
  14467. # shared library.
  14468. predeps=$lt_predeps_F77
  14469. # Dependencies to place after the objects being linked to create a
  14470. # shared library.
  14471. postdeps=$lt_postdeps_F77
  14472. # The library search path used internally by the compiler when linking
  14473. # a shared library.
  14474. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14475. # Method to check whether dependent libraries are shared objects.
  14476. deplibs_check_method=$lt_deplibs_check_method
  14477. # Command to use when deplibs_check_method == file_magic.
  14478. file_magic_cmd=$lt_file_magic_cmd
  14479. # Flag that allows shared libraries with undefined symbols to be built.
  14480. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14481. # Flag that forces no undefined symbols.
  14482. no_undefined_flag=$lt_no_undefined_flag_F77
  14483. # Commands used to finish a libtool library installation in a directory.
  14484. finish_cmds=$lt_finish_cmds
  14485. # Same as above, but a single script fragment to be evaled but not shown.
  14486. finish_eval=$lt_finish_eval
  14487. # Take the output of nm and produce a listing of raw symbols and C names.
  14488. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14489. # Transform the output of nm in a proper C declaration
  14490. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14491. # Transform the output of nm in a C name address pair
  14492. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14493. # This is the shared library runtime path variable.
  14494. runpath_var=$runpath_var
  14495. # This is the shared library path variable.
  14496. shlibpath_var=$shlibpath_var
  14497. # Is shlibpath searched before the hard-coded library search path?
  14498. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14499. # How to hardcode a shared library path into an executable.
  14500. hardcode_action=$hardcode_action_F77
  14501. # Whether we should hardcode library paths into libraries.
  14502. hardcode_into_libs=$hardcode_into_libs
  14503. # Flag to hardcode \$libdir into a binary during linking.
  14504. # This must work even if \$libdir does not exist.
  14505. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14506. # If ld is used when linking, flag to hardcode \$libdir into
  14507. # a binary during linking. This must work even if \$libdir does
  14508. # not exist.
  14509. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14510. # Whether we need a single -rpath flag with a separated argument.
  14511. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14512. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14513. # resulting binary.
  14514. hardcode_direct=$hardcode_direct_F77
  14515. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14516. # resulting binary.
  14517. hardcode_minus_L=$hardcode_minus_L_F77
  14518. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14519. # the resulting binary.
  14520. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14521. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14522. # and all subsequent libraries and executables linked against it.
  14523. hardcode_automatic=$hardcode_automatic_F77
  14524. # Variables whose values should be saved in libtool wrapper scripts and
  14525. # restored at relink time.
  14526. variables_saved_for_relink="$variables_saved_for_relink"
  14527. # Whether libtool must link a program against all its dependency libraries.
  14528. link_all_deplibs=$link_all_deplibs_F77
  14529. # Compile-time system search path for libraries
  14530. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14531. # Run-time system search path for libraries
  14532. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14533. # Fix the shell variable \$srcfile for the compiler.
  14534. fix_srcfile_path="$fix_srcfile_path_F77"
  14535. # Set to yes if exported symbols are required.
  14536. always_export_symbols=$always_export_symbols_F77
  14537. # The commands to list exported symbols.
  14538. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14539. # The commands to extract the exported symbol list from a shared archive.
  14540. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14541. # Symbols that should not be listed in the preloaded symbols.
  14542. exclude_expsyms=$lt_exclude_expsyms_F77
  14543. # Symbols that must always be exported.
  14544. include_expsyms=$lt_include_expsyms_F77
  14545. # ### END LIBTOOL TAG CONFIG: $tagname
  14546. __EOF__
  14547. else
  14548. # If there is no Makefile yet, we rely on a make rule to execute
  14549. # `config.status --recheck' to rerun these tests and create the
  14550. # libtool script then.
  14551. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14552. if test -f "$ltmain_in"; then
  14553. test -f Makefile && make "$ltmain"
  14554. fi
  14555. fi
  14556. ac_ext=c
  14557. ac_cpp='$CPP $CPPFLAGS'
  14558. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14559. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14560. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14561. CC="$lt_save_CC"
  14562. else
  14563. tagname=""
  14564. fi
  14565. ;;
  14566. GCJ)
  14567. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14568. # Source file extension for Java test sources.
  14569. ac_ext=java
  14570. # Object file extension for compiled Java test sources.
  14571. objext=o
  14572. objext_GCJ=$objext
  14573. # Code to be used in simple compile tests
  14574. lt_simple_compile_test_code="class foo {}\n"
  14575. # Code to be used in simple link tests
  14576. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14577. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14578. # If no C compiler was specified, use CC.
  14579. LTCC=${LTCC-"$CC"}
  14580. # If no C compiler flags were specified, use CFLAGS.
  14581. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14582. # Allow CC to be a program name with arguments.
  14583. compiler=$CC
  14584. # save warnings/boilerplate of simple test code
  14585. ac_outfile=conftest.$ac_objext
  14586. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14587. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14588. _lt_compiler_boilerplate=`cat conftest.err`
  14589. $rm conftest*
  14590. ac_outfile=conftest.$ac_objext
  14591. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14592. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14593. _lt_linker_boilerplate=`cat conftest.err`
  14594. $rm conftest*
  14595. # Allow CC to be a program name with arguments.
  14596. lt_save_CC="$CC"
  14597. CC=${GCJ-"gcj"}
  14598. compiler=$CC
  14599. compiler_GCJ=$CC
  14600. for cc_temp in $compiler""; do
  14601. case $cc_temp in
  14602. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14603. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14604. \-*) ;;
  14605. *) break;;
  14606. esac
  14607. done
  14608. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14609. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14610. archive_cmds_need_lc_GCJ=no
  14611. old_archive_cmds_GCJ=$old_archive_cmds
  14612. lt_prog_compiler_no_builtin_flag_GCJ=
  14613. if test "$GCC" = yes; then
  14614. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14615. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14616. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14617. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14618. echo $ECHO_N "(cached) $ECHO_C" >&6
  14619. else
  14620. lt_cv_prog_compiler_rtti_exceptions=no
  14621. ac_outfile=conftest.$ac_objext
  14622. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14623. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14624. # Insert the option either (1) after the last *FLAGS variable, or
  14625. # (2) before a word containing "conftest.", or (3) at the end.
  14626. # Note that $ac_compile itself does not contain backslashes and begins
  14627. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14628. # The option is referenced via a variable to avoid confusing sed.
  14629. lt_compile=`echo "$ac_compile" | $SED \
  14630. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14631. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14632. -e 's:$: $lt_compiler_flag:'`
  14633. (eval echo "\"\$as_me:16395: $lt_compile\"" >&5)
  14634. (eval "$lt_compile" 2>conftest.err)
  14635. ac_status=$?
  14636. cat conftest.err >&5
  14637. echo "$as_me:16399: \$? = $ac_status" >&5
  14638. if (exit $ac_status) && test -s "$ac_outfile"; then
  14639. # The compiler can only warn and ignore the option if not recognized
  14640. # So say no if there are warnings other than the usual output.
  14641. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14642. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14643. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14644. lt_cv_prog_compiler_rtti_exceptions=yes
  14645. fi
  14646. fi
  14647. $rm conftest*
  14648. fi
  14649. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14650. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14651. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14652. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14653. else
  14654. :
  14655. fi
  14656. fi
  14657. lt_prog_compiler_wl_GCJ=
  14658. lt_prog_compiler_pic_GCJ=
  14659. lt_prog_compiler_static_GCJ=
  14660. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14661. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14662. if test "$GCC" = yes; then
  14663. lt_prog_compiler_wl_GCJ='-Wl,'
  14664. lt_prog_compiler_static_GCJ='-static'
  14665. case $host_os in
  14666. aix*)
  14667. # All AIX code is PIC.
  14668. if test "$host_cpu" = ia64; then
  14669. # AIX 5 now supports IA64 processor
  14670. lt_prog_compiler_static_GCJ='-Bstatic'
  14671. fi
  14672. ;;
  14673. amigaos*)
  14674. # FIXME: we need at least 68020 code to build shared libraries, but
  14675. # adding the `-m68020' flag to GCC prevents building anything better,
  14676. # like `-m68040'.
  14677. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14678. ;;
  14679. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14680. # PIC is the default for these OSes.
  14681. ;;
  14682. mingw* | pw32* | os2*)
  14683. # This hack is so that the source file can tell whether it is being
  14684. # built for inclusion in a dll (and should export symbols for example).
  14685. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14686. ;;
  14687. darwin* | rhapsody*)
  14688. # PIC is the default on this platform
  14689. # Common symbols not allowed in MH_DYLIB files
  14690. lt_prog_compiler_pic_GCJ='-fno-common'
  14691. ;;
  14692. interix3*)
  14693. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14694. # Instead, we relocate shared libraries at runtime.
  14695. ;;
  14696. msdosdjgpp*)
  14697. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14698. # on systems that don't support them.
  14699. lt_prog_compiler_can_build_shared_GCJ=no
  14700. enable_shared=no
  14701. ;;
  14702. sysv4*MP*)
  14703. if test -d /usr/nec; then
  14704. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14705. fi
  14706. ;;
  14707. hpux*)
  14708. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14709. # not for PA HP-UX.
  14710. case $host_cpu in
  14711. hppa*64*|ia64*)
  14712. # +Z the default
  14713. ;;
  14714. *)
  14715. lt_prog_compiler_pic_GCJ='-fPIC'
  14716. ;;
  14717. esac
  14718. ;;
  14719. *)
  14720. lt_prog_compiler_pic_GCJ='-fPIC'
  14721. ;;
  14722. esac
  14723. else
  14724. # PORTME Check for flag to pass linker flags through the system compiler.
  14725. case $host_os in
  14726. aix*)
  14727. lt_prog_compiler_wl_GCJ='-Wl,'
  14728. if test "$host_cpu" = ia64; then
  14729. # AIX 5 now supports IA64 processor
  14730. lt_prog_compiler_static_GCJ='-Bstatic'
  14731. else
  14732. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14733. fi
  14734. ;;
  14735. darwin*)
  14736. # PIC is the default on this platform
  14737. # Common symbols not allowed in MH_DYLIB files
  14738. case $cc_basename in
  14739. xlc*)
  14740. lt_prog_compiler_pic_GCJ='-qnocommon'
  14741. lt_prog_compiler_wl_GCJ='-Wl,'
  14742. ;;
  14743. esac
  14744. ;;
  14745. mingw* | pw32* | os2*)
  14746. # This hack is so that the source file can tell whether it is being
  14747. # built for inclusion in a dll (and should export symbols for example).
  14748. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14749. ;;
  14750. hpux9* | hpux10* | hpux11*)
  14751. lt_prog_compiler_wl_GCJ='-Wl,'
  14752. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14753. # not for PA HP-UX.
  14754. case $host_cpu in
  14755. hppa*64*|ia64*)
  14756. # +Z the default
  14757. ;;
  14758. *)
  14759. lt_prog_compiler_pic_GCJ='+Z'
  14760. ;;
  14761. esac
  14762. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14763. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14764. ;;
  14765. irix5* | irix6* | nonstopux*)
  14766. lt_prog_compiler_wl_GCJ='-Wl,'
  14767. # PIC (with -KPIC) is the default.
  14768. lt_prog_compiler_static_GCJ='-non_shared'
  14769. ;;
  14770. newsos6)
  14771. lt_prog_compiler_pic_GCJ='-KPIC'
  14772. lt_prog_compiler_static_GCJ='-Bstatic'
  14773. ;;
  14774. linux*)
  14775. case $cc_basename in
  14776. icc* | ecc*)
  14777. lt_prog_compiler_wl_GCJ='-Wl,'
  14778. lt_prog_compiler_pic_GCJ='-KPIC'
  14779. lt_prog_compiler_static_GCJ='-static'
  14780. ;;
  14781. pgcc* | pgf77* | pgf90* | pgf95*)
  14782. # Portland Group compilers (*not* the Pentium gcc compiler,
  14783. # which looks to be a dead project)
  14784. lt_prog_compiler_wl_GCJ='-Wl,'
  14785. lt_prog_compiler_pic_GCJ='-fpic'
  14786. lt_prog_compiler_static_GCJ='-Bstatic'
  14787. ;;
  14788. ccc*)
  14789. lt_prog_compiler_wl_GCJ='-Wl,'
  14790. # All Alpha code is PIC.
  14791. lt_prog_compiler_static_GCJ='-non_shared'
  14792. ;;
  14793. esac
  14794. ;;
  14795. osf3* | osf4* | osf5*)
  14796. lt_prog_compiler_wl_GCJ='-Wl,'
  14797. # All OSF/1 code is PIC.
  14798. lt_prog_compiler_static_GCJ='-non_shared'
  14799. ;;
  14800. solaris*)
  14801. lt_prog_compiler_pic_GCJ='-KPIC'
  14802. lt_prog_compiler_static_GCJ='-Bstatic'
  14803. case $cc_basename in
  14804. f77* | f90* | f95*)
  14805. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14806. *)
  14807. lt_prog_compiler_wl_GCJ='-Wl,';;
  14808. esac
  14809. ;;
  14810. sunos4*)
  14811. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14812. lt_prog_compiler_pic_GCJ='-PIC'
  14813. lt_prog_compiler_static_GCJ='-Bstatic'
  14814. ;;
  14815. sysv4 | sysv4.2uw2* | sysv4.3*)
  14816. lt_prog_compiler_wl_GCJ='-Wl,'
  14817. lt_prog_compiler_pic_GCJ='-KPIC'
  14818. lt_prog_compiler_static_GCJ='-Bstatic'
  14819. ;;
  14820. sysv4*MP*)
  14821. if test -d /usr/nec ;then
  14822. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14823. lt_prog_compiler_static_GCJ='-Bstatic'
  14824. fi
  14825. ;;
  14826. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14827. lt_prog_compiler_wl_GCJ='-Wl,'
  14828. lt_prog_compiler_pic_GCJ='-KPIC'
  14829. lt_prog_compiler_static_GCJ='-Bstatic'
  14830. ;;
  14831. unicos*)
  14832. lt_prog_compiler_wl_GCJ='-Wl,'
  14833. lt_prog_compiler_can_build_shared_GCJ=no
  14834. ;;
  14835. uts4*)
  14836. lt_prog_compiler_pic_GCJ='-pic'
  14837. lt_prog_compiler_static_GCJ='-Bstatic'
  14838. ;;
  14839. *)
  14840. lt_prog_compiler_can_build_shared_GCJ=no
  14841. ;;
  14842. esac
  14843. fi
  14844. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14845. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  14846. #
  14847. # Check to make sure the PIC flag actually works.
  14848. #
  14849. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14850. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14851. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  14852. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14853. echo $ECHO_N "(cached) $ECHO_C" >&6
  14854. else
  14855. lt_prog_compiler_pic_works_GCJ=no
  14856. ac_outfile=conftest.$ac_objext
  14857. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14858. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14859. # Insert the option either (1) after the last *FLAGS variable, or
  14860. # (2) before a word containing "conftest.", or (3) at the end.
  14861. # Note that $ac_compile itself does not contain backslashes and begins
  14862. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14863. # The option is referenced via a variable to avoid confusing sed.
  14864. lt_compile=`echo "$ac_compile" | $SED \
  14865. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14866. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14867. -e 's:$: $lt_compiler_flag:'`
  14868. (eval echo "\"\$as_me:16663: $lt_compile\"" >&5)
  14869. (eval "$lt_compile" 2>conftest.err)
  14870. ac_status=$?
  14871. cat conftest.err >&5
  14872. echo "$as_me:16667: \$? = $ac_status" >&5
  14873. if (exit $ac_status) && test -s "$ac_outfile"; then
  14874. # The compiler can only warn and ignore the option if not recognized
  14875. # So say no if there are warnings other than the usual output.
  14876. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14877. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14878. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14879. lt_prog_compiler_pic_works_GCJ=yes
  14880. fi
  14881. fi
  14882. $rm conftest*
  14883. fi
  14884. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14885. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  14886. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14887. case $lt_prog_compiler_pic_GCJ in
  14888. "" | " "*) ;;
  14889. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14890. esac
  14891. else
  14892. lt_prog_compiler_pic_GCJ=
  14893. lt_prog_compiler_can_build_shared_GCJ=no
  14894. fi
  14895. fi
  14896. case $host_os in
  14897. # For platforms which do not support PIC, -DPIC is meaningless:
  14898. *djgpp*)
  14899. lt_prog_compiler_pic_GCJ=
  14900. ;;
  14901. *)
  14902. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14903. ;;
  14904. esac
  14905. #
  14906. # Check to make sure the static flag actually works.
  14907. #
  14908. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14909. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14910. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14911. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14912. echo $ECHO_N "(cached) $ECHO_C" >&6
  14913. else
  14914. lt_prog_compiler_static_works_GCJ=no
  14915. save_LDFLAGS="$LDFLAGS"
  14916. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14917. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14918. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14919. # The linker can only warn and ignore the option if not recognized
  14920. # So say no if there are warnings
  14921. if test -s conftest.err; then
  14922. # Append any errors to the config.log.
  14923. cat conftest.err 1>&5
  14924. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14925. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14926. if diff conftest.exp conftest.er2 >/dev/null; then
  14927. lt_prog_compiler_static_works_GCJ=yes
  14928. fi
  14929. else
  14930. lt_prog_compiler_static_works_GCJ=yes
  14931. fi
  14932. fi
  14933. $rm conftest*
  14934. LDFLAGS="$save_LDFLAGS"
  14935. fi
  14936. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14937. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  14938. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14939. :
  14940. else
  14941. lt_prog_compiler_static_GCJ=
  14942. fi
  14943. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14944. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14945. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14946. echo $ECHO_N "(cached) $ECHO_C" >&6
  14947. else
  14948. lt_cv_prog_compiler_c_o_GCJ=no
  14949. $rm -r conftest 2>/dev/null
  14950. mkdir conftest
  14951. cd conftest
  14952. mkdir out
  14953. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14954. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14955. # Insert the option either (1) after the last *FLAGS variable, or
  14956. # (2) before a word containing "conftest.", or (3) at the end.
  14957. # Note that $ac_compile itself does not contain backslashes and begins
  14958. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14959. lt_compile=`echo "$ac_compile" | $SED \
  14960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14962. -e 's:$: $lt_compiler_flag:'`
  14963. (eval echo "\"\$as_me:16767: $lt_compile\"" >&5)
  14964. (eval "$lt_compile" 2>out/conftest.err)
  14965. ac_status=$?
  14966. cat out/conftest.err >&5
  14967. echo "$as_me:16771: \$? = $ac_status" >&5
  14968. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14969. then
  14970. # The compiler can only warn and ignore the option if not recognized
  14971. # So say no if there are warnings
  14972. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14973. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14974. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14975. lt_cv_prog_compiler_c_o_GCJ=yes
  14976. fi
  14977. fi
  14978. chmod u+w . 2>&5
  14979. $rm conftest*
  14980. # SGI C++ compiler will create directory out/ii_files/ for
  14981. # template instantiation
  14982. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14983. $rm out/* && rmdir out
  14984. cd ..
  14985. rmdir conftest
  14986. $rm conftest*
  14987. fi
  14988. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14989. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  14990. hard_links="nottested"
  14991. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14992. # do not overwrite the value of need_locks provided by the user
  14993. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14994. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14995. hard_links=yes
  14996. $rm conftest*
  14997. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14998. touch conftest.a
  14999. ln conftest.a conftest.b 2>&5 || hard_links=no
  15000. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15001. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15002. echo "${ECHO_T}$hard_links" >&6; }
  15003. if test "$hard_links" = no; then
  15004. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15005. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15006. need_locks=warn
  15007. fi
  15008. else
  15009. need_locks=no
  15010. fi
  15011. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15012. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15013. runpath_var=
  15014. allow_undefined_flag_GCJ=
  15015. enable_shared_with_static_runtimes_GCJ=no
  15016. archive_cmds_GCJ=
  15017. archive_expsym_cmds_GCJ=
  15018. old_archive_From_new_cmds_GCJ=
  15019. old_archive_from_expsyms_cmds_GCJ=
  15020. export_dynamic_flag_spec_GCJ=
  15021. whole_archive_flag_spec_GCJ=
  15022. thread_safe_flag_spec_GCJ=
  15023. hardcode_libdir_flag_spec_GCJ=
  15024. hardcode_libdir_flag_spec_ld_GCJ=
  15025. hardcode_libdir_separator_GCJ=
  15026. hardcode_direct_GCJ=no
  15027. hardcode_minus_L_GCJ=no
  15028. hardcode_shlibpath_var_GCJ=unsupported
  15029. link_all_deplibs_GCJ=unknown
  15030. hardcode_automatic_GCJ=no
  15031. module_cmds_GCJ=
  15032. module_expsym_cmds_GCJ=
  15033. always_export_symbols_GCJ=no
  15034. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15035. # include_expsyms should be a list of space-separated symbols to be *always*
  15036. # included in the symbol list
  15037. include_expsyms_GCJ=
  15038. # exclude_expsyms can be an extended regexp of symbols to exclude
  15039. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15040. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15041. # as well as any symbol that contains `d'.
  15042. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15043. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15044. # platforms (ab)use it in PIC code, but their linkers get confused if
  15045. # the symbol is explicitly referenced. Since portable code cannot
  15046. # rely on this symbol name, it's probably fine to never include it in
  15047. # preloaded symbol tables.
  15048. extract_expsyms_cmds=
  15049. # Just being paranoid about ensuring that cc_basename is set.
  15050. for cc_temp in $compiler""; do
  15051. case $cc_temp in
  15052. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15053. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15054. \-*) ;;
  15055. *) break;;
  15056. esac
  15057. done
  15058. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15059. case $host_os in
  15060. cygwin* | mingw* | pw32*)
  15061. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15062. # When not using gcc, we currently assume that we are using
  15063. # Microsoft Visual C++.
  15064. if test "$GCC" != yes; then
  15065. with_gnu_ld=no
  15066. fi
  15067. ;;
  15068. interix*)
  15069. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15070. with_gnu_ld=yes
  15071. ;;
  15072. openbsd*)
  15073. with_gnu_ld=no
  15074. ;;
  15075. esac
  15076. ld_shlibs_GCJ=yes
  15077. if test "$with_gnu_ld" = yes; then
  15078. # If archive_cmds runs LD, not CC, wlarc should be empty
  15079. wlarc='${wl}'
  15080. # Set some defaults for GNU ld with shared library support. These
  15081. # are reset later if shared libraries are not supported. Putting them
  15082. # here allows them to be overridden if necessary.
  15083. runpath_var=LD_RUN_PATH
  15084. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15085. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15086. # ancient GNU ld didn't support --whole-archive et. al.
  15087. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15088. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15089. else
  15090. whole_archive_flag_spec_GCJ=
  15091. fi
  15092. supports_anon_versioning=no
  15093. case `$LD -v 2>/dev/null` in
  15094. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15095. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15096. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15097. *\ 2.11.*) ;; # other 2.11 versions
  15098. *) supports_anon_versioning=yes ;;
  15099. esac
  15100. # See if GNU ld supports shared libraries.
  15101. case $host_os in
  15102. aix3* | aix4* | aix5*)
  15103. # On AIX/PPC, the GNU linker is very broken
  15104. if test "$host_cpu" != ia64; then
  15105. ld_shlibs_GCJ=no
  15106. cat <<EOF 1>&2
  15107. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15108. *** to be unable to reliably create shared libraries on AIX.
  15109. *** Therefore, libtool is disabling shared libraries support. If you
  15110. *** really care for shared libraries, you may want to modify your PATH
  15111. *** so that a non-GNU linker is found, and then restart.
  15112. EOF
  15113. fi
  15114. ;;
  15115. amigaos*)
  15116. 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)'
  15117. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15118. hardcode_minus_L_GCJ=yes
  15119. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15120. # that the semantics of dynamic libraries on AmigaOS, at least up
  15121. # to version 4, is to share data among multiple programs linked
  15122. # with the same dynamic library. Since this doesn't match the
  15123. # behavior of shared libraries on other platforms, we can't use
  15124. # them.
  15125. ld_shlibs_GCJ=no
  15126. ;;
  15127. beos*)
  15128. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15129. allow_undefined_flag_GCJ=unsupported
  15130. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15131. # support --undefined. This deserves some investigation. FIXME
  15132. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15133. else
  15134. ld_shlibs_GCJ=no
  15135. fi
  15136. ;;
  15137. cygwin* | mingw* | pw32*)
  15138. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15139. # as there is no search path for DLLs.
  15140. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15141. allow_undefined_flag_GCJ=unsupported
  15142. always_export_symbols_GCJ=no
  15143. enable_shared_with_static_runtimes_GCJ=yes
  15144. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  15145. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15146. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15147. # If the export-symbols file already is a .def file (1st line
  15148. # is EXPORTS), use it as is; otherwise, prepend...
  15149. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15150. cp $export_symbols $output_objdir/$soname.def;
  15151. else
  15152. echo EXPORTS > $output_objdir/$soname.def;
  15153. cat $export_symbols >> $output_objdir/$soname.def;
  15154. fi~
  15155. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15156. else
  15157. ld_shlibs_GCJ=no
  15158. fi
  15159. ;;
  15160. interix3*)
  15161. hardcode_direct_GCJ=no
  15162. hardcode_shlibpath_var_GCJ=no
  15163. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15164. export_dynamic_flag_spec_GCJ='${wl}-E'
  15165. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15166. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15167. # default) and relocated if they conflict, which is a slow very memory
  15168. # consuming and fragmenting process. To avoid this, we pick a random,
  15169. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15170. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15171. 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'
  15172. 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'
  15173. ;;
  15174. linux*)
  15175. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15176. tmp_addflag=
  15177. case $cc_basename,$host_cpu in
  15178. pgcc*) # Portland Group C compiler
  15179. 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'
  15180. tmp_addflag=' $pic_flag'
  15181. ;;
  15182. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15183. 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'
  15184. tmp_addflag=' $pic_flag -Mnomain' ;;
  15185. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15186. tmp_addflag=' -i_dynamic' ;;
  15187. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15188. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15189. ifc* | ifort*) # Intel Fortran compiler
  15190. tmp_addflag=' -nofor_main' ;;
  15191. esac
  15192. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15193. if test $supports_anon_versioning = yes; then
  15194. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15195. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15196. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15197. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15198. fi
  15199. else
  15200. ld_shlibs_GCJ=no
  15201. fi
  15202. ;;
  15203. netbsd*)
  15204. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15205. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15206. wlarc=
  15207. else
  15208. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15209. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15210. fi
  15211. ;;
  15212. solaris*)
  15213. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15214. ld_shlibs_GCJ=no
  15215. cat <<EOF 1>&2
  15216. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15217. *** create shared libraries on Solaris systems. Therefore, libtool
  15218. *** is disabling shared libraries support. We urge you to upgrade GNU
  15219. *** binutils to release 2.9.1 or newer. Another option is to modify
  15220. *** your PATH or compiler configuration so that the native linker is
  15221. *** used, and then restart.
  15222. EOF
  15223. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15224. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15225. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15226. else
  15227. ld_shlibs_GCJ=no
  15228. fi
  15229. ;;
  15230. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15231. case `$LD -v 2>&1` in
  15232. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15233. ld_shlibs_GCJ=no
  15234. cat <<_LT_EOF 1>&2
  15235. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15236. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15237. *** is disabling shared libraries support. We urge you to upgrade GNU
  15238. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15239. *** your PATH or compiler configuration so that the native linker is
  15240. *** used, and then restart.
  15241. _LT_EOF
  15242. ;;
  15243. *)
  15244. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15245. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15246. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15247. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15248. else
  15249. ld_shlibs_GCJ=no
  15250. fi
  15251. ;;
  15252. esac
  15253. ;;
  15254. sunos4*)
  15255. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15256. wlarc=
  15257. hardcode_direct_GCJ=yes
  15258. hardcode_shlibpath_var_GCJ=no
  15259. ;;
  15260. *)
  15261. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15262. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15263. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15264. else
  15265. ld_shlibs_GCJ=no
  15266. fi
  15267. ;;
  15268. esac
  15269. if test "$ld_shlibs_GCJ" = no; then
  15270. runpath_var=
  15271. hardcode_libdir_flag_spec_GCJ=
  15272. export_dynamic_flag_spec_GCJ=
  15273. whole_archive_flag_spec_GCJ=
  15274. fi
  15275. else
  15276. # PORTME fill in a description of your system's linker (not GNU ld)
  15277. case $host_os in
  15278. aix3*)
  15279. allow_undefined_flag_GCJ=unsupported
  15280. always_export_symbols_GCJ=yes
  15281. 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'
  15282. # Note: this linker hardcodes the directories in LIBPATH if there
  15283. # are no directories specified by -L.
  15284. hardcode_minus_L_GCJ=yes
  15285. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15286. # Neither direct hardcoding nor static linking is supported with a
  15287. # broken collect2.
  15288. hardcode_direct_GCJ=unsupported
  15289. fi
  15290. ;;
  15291. aix4* | aix5*)
  15292. if test "$host_cpu" = ia64; then
  15293. # On IA64, the linker does run time linking by default, so we don't
  15294. # have to do anything special.
  15295. aix_use_runtimelinking=no
  15296. exp_sym_flag='-Bexport'
  15297. no_entry_flag=""
  15298. else
  15299. # If we're using GNU nm, then we don't want the "-C" option.
  15300. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15301. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15302. 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'
  15303. else
  15304. 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'
  15305. fi
  15306. aix_use_runtimelinking=no
  15307. # Test if we are trying to use run time linking or normal
  15308. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15309. # need to do runtime linking.
  15310. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15311. for ld_flag in $LDFLAGS; do
  15312. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15313. aix_use_runtimelinking=yes
  15314. break
  15315. fi
  15316. done
  15317. ;;
  15318. esac
  15319. exp_sym_flag='-bexport'
  15320. no_entry_flag='-bnoentry'
  15321. fi
  15322. # When large executables or shared objects are built, AIX ld can
  15323. # have problems creating the table of contents. If linking a library
  15324. # or program results in "error TOC overflow" add -mminimal-toc to
  15325. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15326. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15327. archive_cmds_GCJ=''
  15328. hardcode_direct_GCJ=yes
  15329. hardcode_libdir_separator_GCJ=':'
  15330. link_all_deplibs_GCJ=yes
  15331. if test "$GCC" = yes; then
  15332. case $host_os in aix4.[012]|aix4.[012].*)
  15333. # We only want to do this on AIX 4.2 and lower, the check
  15334. # below for broken collect2 doesn't work under 4.3+
  15335. collect2name=`${CC} -print-prog-name=collect2`
  15336. if test -f "$collect2name" && \
  15337. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15338. then
  15339. # We have reworked collect2
  15340. hardcode_direct_GCJ=yes
  15341. else
  15342. # We have old collect2
  15343. hardcode_direct_GCJ=unsupported
  15344. # It fails to find uninstalled libraries when the uninstalled
  15345. # path is not listed in the libpath. Setting hardcode_minus_L
  15346. # to unsupported forces relinking
  15347. hardcode_minus_L_GCJ=yes
  15348. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15349. hardcode_libdir_separator_GCJ=
  15350. fi
  15351. ;;
  15352. esac
  15353. shared_flag='-shared'
  15354. if test "$aix_use_runtimelinking" = yes; then
  15355. shared_flag="$shared_flag "'${wl}-G'
  15356. fi
  15357. else
  15358. # not using gcc
  15359. if test "$host_cpu" = ia64; then
  15360. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15361. # chokes on -Wl,-G. The following line is correct:
  15362. shared_flag='-G'
  15363. else
  15364. if test "$aix_use_runtimelinking" = yes; then
  15365. shared_flag='${wl}-G'
  15366. else
  15367. shared_flag='${wl}-bM:SRE'
  15368. fi
  15369. fi
  15370. fi
  15371. # It seems that -bexpall does not export symbols beginning with
  15372. # underscore (_), so it is better to generate a list of symbols to export.
  15373. always_export_symbols_GCJ=yes
  15374. if test "$aix_use_runtimelinking" = yes; then
  15375. # Warning - without using the other runtime loading flags (-brtl),
  15376. # -berok will link without error, but may produce a broken library.
  15377. allow_undefined_flag_GCJ='-berok'
  15378. # Determine the default libpath from the value encoded in an empty executable.
  15379. cat >conftest.$ac_ext <<_ACEOF
  15380. /* confdefs.h. */
  15381. _ACEOF
  15382. cat confdefs.h >>conftest.$ac_ext
  15383. cat >>conftest.$ac_ext <<_ACEOF
  15384. /* end confdefs.h. */
  15385. int
  15386. main ()
  15387. {
  15388. ;
  15389. return 0;
  15390. }
  15391. _ACEOF
  15392. rm -f conftest.$ac_objext conftest$ac_exeext
  15393. if { (ac_try="$ac_link"
  15394. case "(($ac_try" in
  15395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15396. *) ac_try_echo=$ac_try;;
  15397. esac
  15398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15399. (eval "$ac_link") 2>conftest.er1
  15400. ac_status=$?
  15401. grep -v '^ *+' conftest.er1 >conftest.err
  15402. rm -f conftest.er1
  15403. cat conftest.err >&5
  15404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15405. (exit $ac_status); } && {
  15406. test -z "$ac_c_werror_flag" ||
  15407. test ! -s conftest.err
  15408. } && test -s conftest$ac_exeext &&
  15409. $as_test_x conftest$ac_exeext; then
  15410. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15411. }'`
  15412. # Check for a 64-bit object if we didn't find anything.
  15413. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15414. }'`; fi
  15415. else
  15416. echo "$as_me: failed program was:" >&5
  15417. sed 's/^/| /' conftest.$ac_ext >&5
  15418. fi
  15419. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15420. conftest$ac_exeext conftest.$ac_ext
  15421. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15422. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15423. 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"
  15424. else
  15425. if test "$host_cpu" = ia64; then
  15426. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15427. allow_undefined_flag_GCJ="-z nodefs"
  15428. 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"
  15429. else
  15430. # Determine the default libpath from the value encoded in an empty executable.
  15431. cat >conftest.$ac_ext <<_ACEOF
  15432. /* confdefs.h. */
  15433. _ACEOF
  15434. cat confdefs.h >>conftest.$ac_ext
  15435. cat >>conftest.$ac_ext <<_ACEOF
  15436. /* end confdefs.h. */
  15437. int
  15438. main ()
  15439. {
  15440. ;
  15441. return 0;
  15442. }
  15443. _ACEOF
  15444. rm -f conftest.$ac_objext conftest$ac_exeext
  15445. if { (ac_try="$ac_link"
  15446. case "(($ac_try" in
  15447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15448. *) ac_try_echo=$ac_try;;
  15449. esac
  15450. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15451. (eval "$ac_link") 2>conftest.er1
  15452. ac_status=$?
  15453. grep -v '^ *+' conftest.er1 >conftest.err
  15454. rm -f conftest.er1
  15455. cat conftest.err >&5
  15456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15457. (exit $ac_status); } && {
  15458. test -z "$ac_c_werror_flag" ||
  15459. test ! -s conftest.err
  15460. } && test -s conftest$ac_exeext &&
  15461. $as_test_x conftest$ac_exeext; then
  15462. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15463. }'`
  15464. # Check for a 64-bit object if we didn't find anything.
  15465. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15466. }'`; fi
  15467. else
  15468. echo "$as_me: failed program was:" >&5
  15469. sed 's/^/| /' conftest.$ac_ext >&5
  15470. fi
  15471. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15472. conftest$ac_exeext conftest.$ac_ext
  15473. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15474. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15475. # Warning - without using the other run time loading flags,
  15476. # -berok will link without error, but may produce a broken library.
  15477. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15478. allow_undefined_flag_GCJ=' ${wl}-berok'
  15479. # Exported symbols can be pulled into shared objects from archives
  15480. whole_archive_flag_spec_GCJ='$convenience'
  15481. archive_cmds_need_lc_GCJ=yes
  15482. # This is similar to how AIX traditionally builds its shared libraries.
  15483. 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'
  15484. fi
  15485. fi
  15486. ;;
  15487. amigaos*)
  15488. 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)'
  15489. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15490. hardcode_minus_L_GCJ=yes
  15491. # see comment about different semantics on the GNU ld section
  15492. ld_shlibs_GCJ=no
  15493. ;;
  15494. bsdi[45]*)
  15495. export_dynamic_flag_spec_GCJ=-rdynamic
  15496. ;;
  15497. cygwin* | mingw* | pw32*)
  15498. # When not using gcc, we currently assume that we are using
  15499. # Microsoft Visual C++.
  15500. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15501. # no search path for DLLs.
  15502. hardcode_libdir_flag_spec_GCJ=' '
  15503. allow_undefined_flag_GCJ=unsupported
  15504. # Tell ltmain to make .lib files, not .a files.
  15505. libext=lib
  15506. # Tell ltmain to make .dll files, not .so files.
  15507. shrext_cmds=".dll"
  15508. # FIXME: Setting linknames here is a bad hack.
  15509. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15510. # The linker will automatically build a .lib file if we build a DLL.
  15511. old_archive_From_new_cmds_GCJ='true'
  15512. # FIXME: Should let the user specify the lib program.
  15513. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15514. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15515. enable_shared_with_static_runtimes_GCJ=yes
  15516. ;;
  15517. darwin* | rhapsody*)
  15518. case $host_os in
  15519. rhapsody* | darwin1.[012])
  15520. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15521. ;;
  15522. *) # Darwin 1.3 on
  15523. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15524. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15525. else
  15526. case ${MACOSX_DEPLOYMENT_TARGET} in
  15527. 10.[012])
  15528. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15529. ;;
  15530. 10.*)
  15531. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15532. ;;
  15533. esac
  15534. fi
  15535. ;;
  15536. esac
  15537. archive_cmds_need_lc_GCJ=no
  15538. hardcode_direct_GCJ=no
  15539. hardcode_automatic_GCJ=yes
  15540. hardcode_shlibpath_var_GCJ=unsupported
  15541. whole_archive_flag_spec_GCJ=''
  15542. link_all_deplibs_GCJ=yes
  15543. if test "$GCC" = yes ; then
  15544. output_verbose_link_cmd='echo'
  15545. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15546. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15547. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15548. 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}'
  15549. 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}'
  15550. else
  15551. case $cc_basename in
  15552. xlc*)
  15553. output_verbose_link_cmd='echo'
  15554. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15555. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15556. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15557. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15558. 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}'
  15559. ;;
  15560. *)
  15561. ld_shlibs_GCJ=no
  15562. ;;
  15563. esac
  15564. fi
  15565. ;;
  15566. dgux*)
  15567. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15568. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15569. hardcode_shlibpath_var_GCJ=no
  15570. ;;
  15571. freebsd1*)
  15572. ld_shlibs_GCJ=no
  15573. ;;
  15574. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15575. # support. Future versions do this automatically, but an explicit c++rt0.o
  15576. # does not break anything, and helps significantly (at the cost of a little
  15577. # extra space).
  15578. freebsd2.2*)
  15579. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15580. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15581. hardcode_direct_GCJ=yes
  15582. hardcode_shlibpath_var_GCJ=no
  15583. ;;
  15584. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15585. freebsd2*)
  15586. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15587. hardcode_direct_GCJ=yes
  15588. hardcode_minus_L_GCJ=yes
  15589. hardcode_shlibpath_var_GCJ=no
  15590. ;;
  15591. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15592. freebsd* | kfreebsd*-gnu | dragonfly*)
  15593. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15594. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15595. hardcode_direct_GCJ=yes
  15596. hardcode_shlibpath_var_GCJ=no
  15597. ;;
  15598. hpux9*)
  15599. if test "$GCC" = yes; then
  15600. 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'
  15601. else
  15602. 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'
  15603. fi
  15604. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15605. hardcode_libdir_separator_GCJ=:
  15606. hardcode_direct_GCJ=yes
  15607. # hardcode_minus_L: Not really in the search PATH,
  15608. # but as the default location of the library.
  15609. hardcode_minus_L_GCJ=yes
  15610. export_dynamic_flag_spec_GCJ='${wl}-E'
  15611. ;;
  15612. hpux10*)
  15613. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15614. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15615. else
  15616. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15617. fi
  15618. if test "$with_gnu_ld" = no; then
  15619. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15620. hardcode_libdir_separator_GCJ=:
  15621. hardcode_direct_GCJ=yes
  15622. export_dynamic_flag_spec_GCJ='${wl}-E'
  15623. # hardcode_minus_L: Not really in the search PATH,
  15624. # but as the default location of the library.
  15625. hardcode_minus_L_GCJ=yes
  15626. fi
  15627. ;;
  15628. hpux11*)
  15629. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15630. case $host_cpu in
  15631. hppa*64*)
  15632. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15633. ;;
  15634. ia64*)
  15635. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15636. ;;
  15637. *)
  15638. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15639. ;;
  15640. esac
  15641. else
  15642. case $host_cpu in
  15643. hppa*64*)
  15644. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15645. ;;
  15646. ia64*)
  15647. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15648. ;;
  15649. *)
  15650. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15651. ;;
  15652. esac
  15653. fi
  15654. if test "$with_gnu_ld" = no; then
  15655. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15656. hardcode_libdir_separator_GCJ=:
  15657. case $host_cpu in
  15658. hppa*64*|ia64*)
  15659. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15660. hardcode_direct_GCJ=no
  15661. hardcode_shlibpath_var_GCJ=no
  15662. ;;
  15663. *)
  15664. hardcode_direct_GCJ=yes
  15665. export_dynamic_flag_spec_GCJ='${wl}-E'
  15666. # hardcode_minus_L: Not really in the search PATH,
  15667. # but as the default location of the library.
  15668. hardcode_minus_L_GCJ=yes
  15669. ;;
  15670. esac
  15671. fi
  15672. ;;
  15673. irix5* | irix6* | nonstopux*)
  15674. if test "$GCC" = yes; then
  15675. 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'
  15676. else
  15677. 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'
  15678. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15679. fi
  15680. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15681. hardcode_libdir_separator_GCJ=:
  15682. link_all_deplibs_GCJ=yes
  15683. ;;
  15684. netbsd*)
  15685. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15686. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15687. else
  15688. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15689. fi
  15690. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15691. hardcode_direct_GCJ=yes
  15692. hardcode_shlibpath_var_GCJ=no
  15693. ;;
  15694. newsos6)
  15695. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15696. hardcode_direct_GCJ=yes
  15697. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15698. hardcode_libdir_separator_GCJ=:
  15699. hardcode_shlibpath_var_GCJ=no
  15700. ;;
  15701. openbsd*)
  15702. hardcode_direct_GCJ=yes
  15703. hardcode_shlibpath_var_GCJ=no
  15704. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15705. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15706. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15707. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15708. export_dynamic_flag_spec_GCJ='${wl}-E'
  15709. else
  15710. case $host_os in
  15711. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15712. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15713. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15714. ;;
  15715. *)
  15716. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15717. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15718. ;;
  15719. esac
  15720. fi
  15721. ;;
  15722. os2*)
  15723. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15724. hardcode_minus_L_GCJ=yes
  15725. allow_undefined_flag_GCJ=unsupported
  15726. 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'
  15727. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15728. ;;
  15729. osf3*)
  15730. if test "$GCC" = yes; then
  15731. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15732. 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'
  15733. else
  15734. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15735. 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'
  15736. fi
  15737. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15738. hardcode_libdir_separator_GCJ=:
  15739. ;;
  15740. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15741. if test "$GCC" = yes; then
  15742. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15743. 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'
  15744. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15745. else
  15746. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15747. 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'
  15748. 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~
  15749. $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'
  15750. # Both c and cxx compiler support -rpath directly
  15751. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15752. fi
  15753. hardcode_libdir_separator_GCJ=:
  15754. ;;
  15755. solaris*)
  15756. no_undefined_flag_GCJ=' -z text'
  15757. if test "$GCC" = yes; then
  15758. wlarc='${wl}'
  15759. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15760. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15761. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15762. else
  15763. wlarc=''
  15764. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15765. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15766. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15767. fi
  15768. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15769. hardcode_shlibpath_var_GCJ=no
  15770. case $host_os in
  15771. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15772. *)
  15773. # The compiler driver will combine linker options so we
  15774. # cannot just pass the convience library names through
  15775. # without $wl, iff we do not link with $LD.
  15776. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15777. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15778. case $wlarc in
  15779. '')
  15780. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15781. *)
  15782. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  15783. esac ;;
  15784. esac
  15785. link_all_deplibs_GCJ=yes
  15786. ;;
  15787. sunos4*)
  15788. if test "x$host_vendor" = xsequent; then
  15789. # Use $CC to link under sequent, because it throws in some extra .o
  15790. # files that make .init and .fini sections work.
  15791. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15792. else
  15793. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15794. fi
  15795. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15796. hardcode_direct_GCJ=yes
  15797. hardcode_minus_L_GCJ=yes
  15798. hardcode_shlibpath_var_GCJ=no
  15799. ;;
  15800. sysv4)
  15801. case $host_vendor in
  15802. sni)
  15803. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15804. hardcode_direct_GCJ=yes # is this really true???
  15805. ;;
  15806. siemens)
  15807. ## LD is ld it makes a PLAMLIB
  15808. ## CC just makes a GrossModule.
  15809. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15810. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15811. hardcode_direct_GCJ=no
  15812. ;;
  15813. motorola)
  15814. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15815. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15816. ;;
  15817. esac
  15818. runpath_var='LD_RUN_PATH'
  15819. hardcode_shlibpath_var_GCJ=no
  15820. ;;
  15821. sysv4.3*)
  15822. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15823. hardcode_shlibpath_var_GCJ=no
  15824. export_dynamic_flag_spec_GCJ='-Bexport'
  15825. ;;
  15826. sysv4*MP*)
  15827. if test -d /usr/nec; then
  15828. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15829. hardcode_shlibpath_var_GCJ=no
  15830. runpath_var=LD_RUN_PATH
  15831. hardcode_runpath_var=yes
  15832. ld_shlibs_GCJ=yes
  15833. fi
  15834. ;;
  15835. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15836. no_undefined_flag_GCJ='${wl}-z,text'
  15837. archive_cmds_need_lc_GCJ=no
  15838. hardcode_shlibpath_var_GCJ=no
  15839. runpath_var='LD_RUN_PATH'
  15840. if test "$GCC" = yes; then
  15841. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15842. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15843. else
  15844. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15845. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15846. fi
  15847. ;;
  15848. sysv5* | sco3.2v5* | sco5v6*)
  15849. # Note: We can NOT use -z defs as we might desire, because we do not
  15850. # link with -lc, and that would cause any symbols used from libc to
  15851. # always be unresolved, which means just about no library would
  15852. # ever link correctly. If we're not using GNU ld we use -z text
  15853. # though, which does catch some bad symbols but isn't as heavy-handed
  15854. # as -z defs.
  15855. no_undefined_flag_GCJ='${wl}-z,text'
  15856. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15857. archive_cmds_need_lc_GCJ=no
  15858. hardcode_shlibpath_var_GCJ=no
  15859. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15860. hardcode_libdir_separator_GCJ=':'
  15861. link_all_deplibs_GCJ=yes
  15862. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15863. runpath_var='LD_RUN_PATH'
  15864. if test "$GCC" = yes; then
  15865. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15866. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15867. else
  15868. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15869. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15870. fi
  15871. ;;
  15872. uts4*)
  15873. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15874. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15875. hardcode_shlibpath_var_GCJ=no
  15876. ;;
  15877. *)
  15878. ld_shlibs_GCJ=no
  15879. ;;
  15880. esac
  15881. fi
  15882. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15883. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  15884. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15885. #
  15886. # Do we need to explicitly link libc?
  15887. #
  15888. case "x$archive_cmds_need_lc_GCJ" in
  15889. x|xyes)
  15890. # Assume -lc should be added
  15891. archive_cmds_need_lc_GCJ=yes
  15892. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15893. case $archive_cmds_GCJ in
  15894. *'~'*)
  15895. # FIXME: we may have to deal with multi-command sequences.
  15896. ;;
  15897. '$CC '*)
  15898. # Test whether the compiler implicitly links with -lc since on some
  15899. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15900. # to ld, don't add -lc before -lgcc.
  15901. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15902. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  15903. $rm conftest*
  15904. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15905. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15906. (eval $ac_compile) 2>&5
  15907. ac_status=$?
  15908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15909. (exit $ac_status); } 2>conftest.err; then
  15910. soname=conftest
  15911. lib=conftest
  15912. libobjs=conftest.$ac_objext
  15913. deplibs=
  15914. wl=$lt_prog_compiler_wl_GCJ
  15915. pic_flag=$lt_prog_compiler_pic_GCJ
  15916. compiler_flags=-v
  15917. linker_flags=-v
  15918. verstring=
  15919. output_objdir=.
  15920. libname=conftest
  15921. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15922. allow_undefined_flag_GCJ=
  15923. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15924. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15925. ac_status=$?
  15926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15927. (exit $ac_status); }
  15928. then
  15929. archive_cmds_need_lc_GCJ=no
  15930. else
  15931. archive_cmds_need_lc_GCJ=yes
  15932. fi
  15933. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15934. else
  15935. cat conftest.err 1>&5
  15936. fi
  15937. $rm conftest*
  15938. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15939. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  15940. ;;
  15941. esac
  15942. fi
  15943. ;;
  15944. esac
  15945. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15946. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  15947. library_names_spec=
  15948. libname_spec='lib$name'
  15949. soname_spec=
  15950. shrext_cmds=".so"
  15951. postinstall_cmds=
  15952. postuninstall_cmds=
  15953. finish_cmds=
  15954. finish_eval=
  15955. shlibpath_var=
  15956. shlibpath_overrides_runpath=unknown
  15957. version_type=none
  15958. dynamic_linker="$host_os ld.so"
  15959. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15960. if test "$GCC" = yes; then
  15961. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15962. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15963. # if the path contains ";" then we assume it to be the separator
  15964. # otherwise default to the standard path separator (i.e. ":") - it is
  15965. # assumed that no part of a normal pathname contains ";" but that should
  15966. # okay in the real world where ";" in dirpaths is itself problematic.
  15967. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15968. else
  15969. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15970. fi
  15971. else
  15972. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15973. fi
  15974. need_lib_prefix=unknown
  15975. hardcode_into_libs=no
  15976. # when you set need_version to no, make sure it does not cause -set_version
  15977. # flags to be left without arguments
  15978. need_version=unknown
  15979. case $host_os in
  15980. aix3*)
  15981. version_type=linux
  15982. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15983. shlibpath_var=LIBPATH
  15984. # AIX 3 has no versioning support, so we append a major version to the name.
  15985. soname_spec='${libname}${release}${shared_ext}$major'
  15986. ;;
  15987. aix4* | aix5*)
  15988. version_type=linux
  15989. need_lib_prefix=no
  15990. need_version=no
  15991. hardcode_into_libs=yes
  15992. if test "$host_cpu" = ia64; then
  15993. # AIX 5 supports IA64
  15994. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15995. shlibpath_var=LD_LIBRARY_PATH
  15996. else
  15997. # With GCC up to 2.95.x, collect2 would create an import file
  15998. # for dependence libraries. The import file would start with
  15999. # the line `#! .'. This would cause the generated library to
  16000. # depend on `.', always an invalid library. This was fixed in
  16001. # development snapshots of GCC prior to 3.0.
  16002. case $host_os in
  16003. aix4 | aix4.[01] | aix4.[01].*)
  16004. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16005. echo ' yes '
  16006. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16007. :
  16008. else
  16009. can_build_shared=no
  16010. fi
  16011. ;;
  16012. esac
  16013. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16014. # soname into executable. Probably we can add versioning support to
  16015. # collect2, so additional links can be useful in future.
  16016. if test "$aix_use_runtimelinking" = yes; then
  16017. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16018. # instead of lib<name>.a to let people know that these are not
  16019. # typical AIX shared libraries.
  16020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16021. else
  16022. # We preserve .a as extension for shared libraries through AIX4.2
  16023. # and later when we are not doing run time linking.
  16024. library_names_spec='${libname}${release}.a $libname.a'
  16025. soname_spec='${libname}${release}${shared_ext}$major'
  16026. fi
  16027. shlibpath_var=LIBPATH
  16028. fi
  16029. ;;
  16030. amigaos*)
  16031. library_names_spec='$libname.ixlibrary $libname.a'
  16032. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16033. 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'
  16034. ;;
  16035. beos*)
  16036. library_names_spec='${libname}${shared_ext}'
  16037. dynamic_linker="$host_os ld.so"
  16038. shlibpath_var=LIBRARY_PATH
  16039. ;;
  16040. bsdi[45]*)
  16041. version_type=linux
  16042. need_version=no
  16043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16044. soname_spec='${libname}${release}${shared_ext}$major'
  16045. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16046. shlibpath_var=LD_LIBRARY_PATH
  16047. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16048. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16049. # the default ld.so.conf also contains /usr/contrib/lib and
  16050. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16051. # libtool to hard-code these into programs
  16052. ;;
  16053. cygwin* | mingw* | pw32*)
  16054. version_type=windows
  16055. shrext_cmds=".dll"
  16056. need_version=no
  16057. need_lib_prefix=no
  16058. case $GCC,$host_os in
  16059. yes,cygwin* | yes,mingw* | yes,pw32*)
  16060. library_names_spec='$libname.dll.a'
  16061. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16062. postinstall_cmds='base_file=`basename \${file}`~
  16063. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16064. dldir=$destdir/`dirname \$dlpath`~
  16065. test -d \$dldir || mkdir -p \$dldir~
  16066. $install_prog $dir/$dlname \$dldir/$dlname~
  16067. chmod a+x \$dldir/$dlname'
  16068. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16069. dlpath=$dir/\$dldll~
  16070. $rm \$dlpath'
  16071. shlibpath_overrides_runpath=yes
  16072. case $host_os in
  16073. cygwin*)
  16074. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16075. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16076. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16077. ;;
  16078. mingw*)
  16079. # MinGW DLLs use traditional 'lib' prefix
  16080. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16081. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16082. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16083. # It is most probably a Windows format PATH printed by
  16084. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16085. # path with ; separators, and with drive letters. We can handle the
  16086. # drive letters (cygwin fileutils understands them), so leave them,
  16087. # especially as we might pass files found there to a mingw objdump,
  16088. # which wouldn't understand a cygwinified path. Ahh.
  16089. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16090. else
  16091. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16092. fi
  16093. ;;
  16094. pw32*)
  16095. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16096. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16097. ;;
  16098. esac
  16099. ;;
  16100. *)
  16101. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16102. ;;
  16103. esac
  16104. dynamic_linker='Win32 ld.exe'
  16105. # FIXME: first we should search . and the directory the executable is in
  16106. shlibpath_var=PATH
  16107. ;;
  16108. darwin* | rhapsody*)
  16109. dynamic_linker="$host_os dyld"
  16110. version_type=darwin
  16111. need_lib_prefix=no
  16112. need_version=no
  16113. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16114. soname_spec='${libname}${release}${major}$shared_ext'
  16115. shlibpath_overrides_runpath=yes
  16116. shlibpath_var=DYLD_LIBRARY_PATH
  16117. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16118. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  16119. if test "$GCC" = yes; then
  16120. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  16121. else
  16122. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  16123. fi
  16124. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16125. ;;
  16126. dgux*)
  16127. version_type=linux
  16128. need_lib_prefix=no
  16129. need_version=no
  16130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16131. soname_spec='${libname}${release}${shared_ext}$major'
  16132. shlibpath_var=LD_LIBRARY_PATH
  16133. ;;
  16134. freebsd1*)
  16135. dynamic_linker=no
  16136. ;;
  16137. kfreebsd*-gnu)
  16138. version_type=linux
  16139. need_lib_prefix=no
  16140. need_version=no
  16141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16142. soname_spec='${libname}${release}${shared_ext}$major'
  16143. shlibpath_var=LD_LIBRARY_PATH
  16144. shlibpath_overrides_runpath=no
  16145. hardcode_into_libs=yes
  16146. dynamic_linker='GNU ld.so'
  16147. ;;
  16148. freebsd* | dragonfly*)
  16149. # DragonFly does not have aout. When/if they implement a new
  16150. # versioning mechanism, adjust this.
  16151. if test -x /usr/bin/objformat; then
  16152. objformat=`/usr/bin/objformat`
  16153. else
  16154. case $host_os in
  16155. freebsd[123]*) objformat=aout ;;
  16156. *) objformat=elf ;;
  16157. esac
  16158. fi
  16159. version_type=freebsd-$objformat
  16160. case $version_type in
  16161. freebsd-elf*)
  16162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16163. need_version=no
  16164. need_lib_prefix=no
  16165. ;;
  16166. freebsd-*)
  16167. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16168. need_version=yes
  16169. ;;
  16170. esac
  16171. shlibpath_var=LD_LIBRARY_PATH
  16172. case $host_os in
  16173. freebsd2*)
  16174. shlibpath_overrides_runpath=yes
  16175. ;;
  16176. freebsd3.[01]* | freebsdelf3.[01]*)
  16177. shlibpath_overrides_runpath=yes
  16178. hardcode_into_libs=yes
  16179. ;;
  16180. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16181. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16182. shlibpath_overrides_runpath=no
  16183. hardcode_into_libs=yes
  16184. ;;
  16185. freebsd*) # from 4.6 on
  16186. shlibpath_overrides_runpath=yes
  16187. hardcode_into_libs=yes
  16188. ;;
  16189. esac
  16190. ;;
  16191. gnu*)
  16192. version_type=linux
  16193. need_lib_prefix=no
  16194. need_version=no
  16195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16196. soname_spec='${libname}${release}${shared_ext}$major'
  16197. shlibpath_var=LD_LIBRARY_PATH
  16198. hardcode_into_libs=yes
  16199. ;;
  16200. hpux9* | hpux10* | hpux11*)
  16201. # Give a soname corresponding to the major version so that dld.sl refuses to
  16202. # link against other versions.
  16203. version_type=sunos
  16204. need_lib_prefix=no
  16205. need_version=no
  16206. case $host_cpu in
  16207. ia64*)
  16208. shrext_cmds='.so'
  16209. hardcode_into_libs=yes
  16210. dynamic_linker="$host_os dld.so"
  16211. shlibpath_var=LD_LIBRARY_PATH
  16212. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. if test "X$HPUX_IA64_MODE" = X32; then
  16216. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16217. else
  16218. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16219. fi
  16220. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16221. ;;
  16222. hppa*64*)
  16223. shrext_cmds='.sl'
  16224. hardcode_into_libs=yes
  16225. dynamic_linker="$host_os dld.sl"
  16226. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16227. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16229. soname_spec='${libname}${release}${shared_ext}$major'
  16230. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16231. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16232. ;;
  16233. *)
  16234. shrext_cmds='.sl'
  16235. dynamic_linker="$host_os dld.sl"
  16236. shlibpath_var=SHLIB_PATH
  16237. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16239. soname_spec='${libname}${release}${shared_ext}$major'
  16240. ;;
  16241. esac
  16242. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16243. postinstall_cmds='chmod 555 $lib'
  16244. ;;
  16245. interix3*)
  16246. version_type=linux
  16247. need_lib_prefix=no
  16248. need_version=no
  16249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16250. soname_spec='${libname}${release}${shared_ext}$major'
  16251. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16252. shlibpath_var=LD_LIBRARY_PATH
  16253. shlibpath_overrides_runpath=no
  16254. hardcode_into_libs=yes
  16255. ;;
  16256. irix5* | irix6* | nonstopux*)
  16257. case $host_os in
  16258. nonstopux*) version_type=nonstopux ;;
  16259. *)
  16260. if test "$lt_cv_prog_gnu_ld" = yes; then
  16261. version_type=linux
  16262. else
  16263. version_type=irix
  16264. fi ;;
  16265. esac
  16266. need_lib_prefix=no
  16267. need_version=no
  16268. soname_spec='${libname}${release}${shared_ext}$major'
  16269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16270. case $host_os in
  16271. irix5* | nonstopux*)
  16272. libsuff= shlibsuff=
  16273. ;;
  16274. *)
  16275. case $LD in # libtool.m4 will add one of these switches to LD
  16276. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16277. libsuff= shlibsuff= libmagic=32-bit;;
  16278. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16279. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16280. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16281. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16282. *) libsuff= shlibsuff= libmagic=never-match;;
  16283. esac
  16284. ;;
  16285. esac
  16286. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16287. shlibpath_overrides_runpath=no
  16288. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16289. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16290. hardcode_into_libs=yes
  16291. ;;
  16292. # No shared lib support for Linux oldld, aout, or coff.
  16293. linux*oldld* | linux*aout* | linux*coff*)
  16294. dynamic_linker=no
  16295. ;;
  16296. # This must be Linux ELF.
  16297. linux*)
  16298. version_type=linux
  16299. need_lib_prefix=no
  16300. need_version=no
  16301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16302. soname_spec='${libname}${release}${shared_ext}$major'
  16303. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16304. shlibpath_var=LD_LIBRARY_PATH
  16305. shlibpath_overrides_runpath=no
  16306. # This implies no fast_install, which is unacceptable.
  16307. # Some rework will be needed to allow for fast_install
  16308. # before this can be enabled.
  16309. hardcode_into_libs=yes
  16310. # Append ld.so.conf contents to the search path
  16311. if test -f /etc/ld.so.conf; then
  16312. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16313. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  16314. fi
  16315. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16316. # powerpc, because MkLinux only supported shared libraries with the
  16317. # GNU dynamic linker. Since this was broken with cross compilers,
  16318. # most powerpc-linux boxes support dynamic linking these days and
  16319. # people can always --disable-shared, the test was removed, and we
  16320. # assume the GNU/Linux dynamic linker is in use.
  16321. dynamic_linker='GNU/Linux ld.so'
  16322. ;;
  16323. knetbsd*-gnu)
  16324. version_type=linux
  16325. need_lib_prefix=no
  16326. need_version=no
  16327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16328. soname_spec='${libname}${release}${shared_ext}$major'
  16329. shlibpath_var=LD_LIBRARY_PATH
  16330. shlibpath_overrides_runpath=no
  16331. hardcode_into_libs=yes
  16332. dynamic_linker='GNU ld.so'
  16333. ;;
  16334. netbsd*)
  16335. version_type=sunos
  16336. need_lib_prefix=no
  16337. need_version=no
  16338. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16340. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16341. dynamic_linker='NetBSD (a.out) ld.so'
  16342. else
  16343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16344. soname_spec='${libname}${release}${shared_ext}$major'
  16345. dynamic_linker='NetBSD ld.elf_so'
  16346. fi
  16347. shlibpath_var=LD_LIBRARY_PATH
  16348. shlibpath_overrides_runpath=yes
  16349. hardcode_into_libs=yes
  16350. ;;
  16351. newsos6)
  16352. version_type=linux
  16353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16354. shlibpath_var=LD_LIBRARY_PATH
  16355. shlibpath_overrides_runpath=yes
  16356. ;;
  16357. nto-qnx*)
  16358. version_type=linux
  16359. need_lib_prefix=no
  16360. need_version=no
  16361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16362. soname_spec='${libname}${release}${shared_ext}$major'
  16363. shlibpath_var=LD_LIBRARY_PATH
  16364. shlibpath_overrides_runpath=yes
  16365. ;;
  16366. openbsd*)
  16367. version_type=sunos
  16368. sys_lib_dlsearch_path_spec="/usr/lib"
  16369. need_lib_prefix=no
  16370. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16371. case $host_os in
  16372. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16373. *) need_version=no ;;
  16374. esac
  16375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16376. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16377. shlibpath_var=LD_LIBRARY_PATH
  16378. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16379. case $host_os in
  16380. openbsd2.[89] | openbsd2.[89].*)
  16381. shlibpath_overrides_runpath=no
  16382. ;;
  16383. *)
  16384. shlibpath_overrides_runpath=yes
  16385. ;;
  16386. esac
  16387. else
  16388. shlibpath_overrides_runpath=yes
  16389. fi
  16390. ;;
  16391. os2*)
  16392. libname_spec='$name'
  16393. shrext_cmds=".dll"
  16394. need_lib_prefix=no
  16395. library_names_spec='$libname${shared_ext} $libname.a'
  16396. dynamic_linker='OS/2 ld.exe'
  16397. shlibpath_var=LIBPATH
  16398. ;;
  16399. osf3* | osf4* | osf5*)
  16400. version_type=osf
  16401. need_lib_prefix=no
  16402. need_version=no
  16403. soname_spec='${libname}${release}${shared_ext}$major'
  16404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16405. shlibpath_var=LD_LIBRARY_PATH
  16406. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16407. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16408. ;;
  16409. solaris*)
  16410. version_type=linux
  16411. need_lib_prefix=no
  16412. need_version=no
  16413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16414. soname_spec='${libname}${release}${shared_ext}$major'
  16415. shlibpath_var=LD_LIBRARY_PATH
  16416. shlibpath_overrides_runpath=yes
  16417. hardcode_into_libs=yes
  16418. # ldd complains unless libraries are executable
  16419. postinstall_cmds='chmod +x $lib'
  16420. ;;
  16421. sunos4*)
  16422. version_type=sunos
  16423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16424. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16425. shlibpath_var=LD_LIBRARY_PATH
  16426. shlibpath_overrides_runpath=yes
  16427. if test "$with_gnu_ld" = yes; then
  16428. need_lib_prefix=no
  16429. fi
  16430. need_version=yes
  16431. ;;
  16432. sysv4 | sysv4.3*)
  16433. version_type=linux
  16434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16435. soname_spec='${libname}${release}${shared_ext}$major'
  16436. shlibpath_var=LD_LIBRARY_PATH
  16437. case $host_vendor in
  16438. sni)
  16439. shlibpath_overrides_runpath=no
  16440. need_lib_prefix=no
  16441. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16442. runpath_var=LD_RUN_PATH
  16443. ;;
  16444. siemens)
  16445. need_lib_prefix=no
  16446. ;;
  16447. motorola)
  16448. need_lib_prefix=no
  16449. need_version=no
  16450. shlibpath_overrides_runpath=no
  16451. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16452. ;;
  16453. esac
  16454. ;;
  16455. sysv4*MP*)
  16456. if test -d /usr/nec ;then
  16457. version_type=linux
  16458. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16459. soname_spec='$libname${shared_ext}.$major'
  16460. shlibpath_var=LD_LIBRARY_PATH
  16461. fi
  16462. ;;
  16463. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16464. version_type=freebsd-elf
  16465. need_lib_prefix=no
  16466. need_version=no
  16467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16468. soname_spec='${libname}${release}${shared_ext}$major'
  16469. shlibpath_var=LD_LIBRARY_PATH
  16470. hardcode_into_libs=yes
  16471. if test "$with_gnu_ld" = yes; then
  16472. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16473. shlibpath_overrides_runpath=no
  16474. else
  16475. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16476. shlibpath_overrides_runpath=yes
  16477. case $host_os in
  16478. sco3.2v5*)
  16479. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16480. ;;
  16481. esac
  16482. fi
  16483. sys_lib_dlsearch_path_spec='/usr/lib'
  16484. ;;
  16485. uts4*)
  16486. version_type=linux
  16487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16488. soname_spec='${libname}${release}${shared_ext}$major'
  16489. shlibpath_var=LD_LIBRARY_PATH
  16490. ;;
  16491. *)
  16492. dynamic_linker=no
  16493. ;;
  16494. esac
  16495. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16496. echo "${ECHO_T}$dynamic_linker" >&6; }
  16497. test "$dynamic_linker" = no && can_build_shared=no
  16498. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16499. if test "$GCC" = yes; then
  16500. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16501. fi
  16502. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16503. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16504. hardcode_action_GCJ=
  16505. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16506. test -n "$runpath_var_GCJ" || \
  16507. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16508. # We can hardcode non-existant directories.
  16509. if test "$hardcode_direct_GCJ" != no &&
  16510. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16511. # have to relink, otherwise we might link with an installed library
  16512. # when we should be linking with a yet-to-be-installed one
  16513. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16514. test "$hardcode_minus_L_GCJ" != no; then
  16515. # Linking always hardcodes the temporary library directory.
  16516. hardcode_action_GCJ=relink
  16517. else
  16518. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16519. hardcode_action_GCJ=immediate
  16520. fi
  16521. else
  16522. # We cannot hardcode anything, or else we can only hardcode existing
  16523. # directories.
  16524. hardcode_action_GCJ=unsupported
  16525. fi
  16526. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16527. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16528. if test "$hardcode_action_GCJ" = relink; then
  16529. # Fast installation is not supported
  16530. enable_fast_install=no
  16531. elif test "$shlibpath_overrides_runpath" = yes ||
  16532. test "$enable_shared" = no; then
  16533. # Fast installation is not necessary
  16534. enable_fast_install=needless
  16535. fi
  16536. # The else clause should only fire when bootstrapping the
  16537. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16538. # with your package, and you will get complaints that there are
  16539. # no rules to generate ltmain.sh.
  16540. if test -f "$ltmain"; then
  16541. # See if we are running on zsh, and set the options which allow our commands through
  16542. # without removal of \ escapes.
  16543. if test -n "${ZSH_VERSION+set}" ; then
  16544. setopt NO_GLOB_SUBST
  16545. fi
  16546. # Now quote all the things that may contain metacharacters while being
  16547. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16548. # variables and quote the copies for generation of the libtool script.
  16549. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16550. SED SHELL STRIP \
  16551. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16552. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16553. deplibs_check_method reload_flag reload_cmds need_locks \
  16554. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16555. lt_cv_sys_global_symbol_to_c_name_address \
  16556. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16557. old_postinstall_cmds old_postuninstall_cmds \
  16558. compiler_GCJ \
  16559. CC_GCJ \
  16560. LD_GCJ \
  16561. lt_prog_compiler_wl_GCJ \
  16562. lt_prog_compiler_pic_GCJ \
  16563. lt_prog_compiler_static_GCJ \
  16564. lt_prog_compiler_no_builtin_flag_GCJ \
  16565. export_dynamic_flag_spec_GCJ \
  16566. thread_safe_flag_spec_GCJ \
  16567. whole_archive_flag_spec_GCJ \
  16568. enable_shared_with_static_runtimes_GCJ \
  16569. old_archive_cmds_GCJ \
  16570. old_archive_from_new_cmds_GCJ \
  16571. predep_objects_GCJ \
  16572. postdep_objects_GCJ \
  16573. predeps_GCJ \
  16574. postdeps_GCJ \
  16575. compiler_lib_search_path_GCJ \
  16576. archive_cmds_GCJ \
  16577. archive_expsym_cmds_GCJ \
  16578. postinstall_cmds_GCJ \
  16579. postuninstall_cmds_GCJ \
  16580. old_archive_from_expsyms_cmds_GCJ \
  16581. allow_undefined_flag_GCJ \
  16582. no_undefined_flag_GCJ \
  16583. export_symbols_cmds_GCJ \
  16584. hardcode_libdir_flag_spec_GCJ \
  16585. hardcode_libdir_flag_spec_ld_GCJ \
  16586. hardcode_libdir_separator_GCJ \
  16587. hardcode_automatic_GCJ \
  16588. module_cmds_GCJ \
  16589. module_expsym_cmds_GCJ \
  16590. lt_cv_prog_compiler_c_o_GCJ \
  16591. exclude_expsyms_GCJ \
  16592. include_expsyms_GCJ; do
  16593. case $var in
  16594. old_archive_cmds_GCJ | \
  16595. old_archive_from_new_cmds_GCJ | \
  16596. archive_cmds_GCJ | \
  16597. archive_expsym_cmds_GCJ | \
  16598. module_cmds_GCJ | \
  16599. module_expsym_cmds_GCJ | \
  16600. old_archive_from_expsyms_cmds_GCJ | \
  16601. export_symbols_cmds_GCJ | \
  16602. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16603. postinstall_cmds | postuninstall_cmds | \
  16604. old_postinstall_cmds | old_postuninstall_cmds | \
  16605. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16606. # Double-quote double-evaled strings.
  16607. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16608. ;;
  16609. *)
  16610. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16611. ;;
  16612. esac
  16613. done
  16614. case $lt_echo in
  16615. *'\$0 --fallback-echo"')
  16616. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16617. ;;
  16618. esac
  16619. cfgfile="$ofile"
  16620. cat <<__EOF__ >> "$cfgfile"
  16621. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16622. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16623. # Shell to use when invoking shell scripts.
  16624. SHELL=$lt_SHELL
  16625. # Whether or not to build shared libraries.
  16626. build_libtool_libs=$enable_shared
  16627. # Whether or not to build static libraries.
  16628. build_old_libs=$enable_static
  16629. # Whether or not to add -lc for building shared libraries.
  16630. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16631. # Whether or not to disallow shared libs when runtime libs are static
  16632. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16633. # Whether or not to optimize for fast installation.
  16634. fast_install=$enable_fast_install
  16635. # The host system.
  16636. host_alias=$host_alias
  16637. host=$host
  16638. host_os=$host_os
  16639. # The build system.
  16640. build_alias=$build_alias
  16641. build=$build
  16642. build_os=$build_os
  16643. # An echo program that does not interpret backslashes.
  16644. echo=$lt_echo
  16645. # The archiver.
  16646. AR=$lt_AR
  16647. AR_FLAGS=$lt_AR_FLAGS
  16648. # A C compiler.
  16649. LTCC=$lt_LTCC
  16650. # LTCC compiler flags.
  16651. LTCFLAGS=$lt_LTCFLAGS
  16652. # A language-specific compiler.
  16653. CC=$lt_compiler_GCJ
  16654. # Is the compiler the GNU C compiler?
  16655. with_gcc=$GCC_GCJ
  16656. # An ERE matcher.
  16657. EGREP=$lt_EGREP
  16658. # The linker used to build libraries.
  16659. LD=$lt_LD_GCJ
  16660. # Whether we need hard or soft links.
  16661. LN_S=$lt_LN_S
  16662. # A BSD-compatible nm program.
  16663. NM=$lt_NM
  16664. # A symbol stripping program
  16665. STRIP=$lt_STRIP
  16666. # Used to examine libraries when file_magic_cmd begins "file"
  16667. MAGIC_CMD=$MAGIC_CMD
  16668. # Used on cygwin: DLL creation program.
  16669. DLLTOOL="$DLLTOOL"
  16670. # Used on cygwin: object dumper.
  16671. OBJDUMP="$OBJDUMP"
  16672. # Used on cygwin: assembler.
  16673. AS="$AS"
  16674. # The name of the directory that contains temporary libtool files.
  16675. objdir=$objdir
  16676. # How to create reloadable object files.
  16677. reload_flag=$lt_reload_flag
  16678. reload_cmds=$lt_reload_cmds
  16679. # How to pass a linker flag through the compiler.
  16680. wl=$lt_lt_prog_compiler_wl_GCJ
  16681. # Object file suffix (normally "o").
  16682. objext="$ac_objext"
  16683. # Old archive suffix (normally "a").
  16684. libext="$libext"
  16685. # Shared library suffix (normally ".so").
  16686. shrext_cmds='$shrext_cmds'
  16687. # Executable file suffix (normally "").
  16688. exeext="$exeext"
  16689. # Additional compiler flags for building library objects.
  16690. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16691. pic_mode=$pic_mode
  16692. # What is the maximum length of a command?
  16693. max_cmd_len=$lt_cv_sys_max_cmd_len
  16694. # Does compiler simultaneously support -c and -o options?
  16695. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16696. # Must we lock files when doing compilation?
  16697. need_locks=$lt_need_locks
  16698. # Do we need the lib prefix for modules?
  16699. need_lib_prefix=$need_lib_prefix
  16700. # Do we need a version for libraries?
  16701. need_version=$need_version
  16702. # Whether dlopen is supported.
  16703. dlopen_support=$enable_dlopen
  16704. # Whether dlopen of programs is supported.
  16705. dlopen_self=$enable_dlopen_self
  16706. # Whether dlopen of statically linked programs is supported.
  16707. dlopen_self_static=$enable_dlopen_self_static
  16708. # Compiler flag to prevent dynamic linking.
  16709. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16710. # Compiler flag to turn off builtin functions.
  16711. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16712. # Compiler flag to allow reflexive dlopens.
  16713. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16714. # Compiler flag to generate shared objects directly from archives.
  16715. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16716. # Compiler flag to generate thread-safe objects.
  16717. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16718. # Library versioning type.
  16719. version_type=$version_type
  16720. # Format of library name prefix.
  16721. libname_spec=$lt_libname_spec
  16722. # List of archive names. First name is the real one, the rest are links.
  16723. # The last name is the one that the linker finds with -lNAME.
  16724. library_names_spec=$lt_library_names_spec
  16725. # The coded name of the library, if different from the real name.
  16726. soname_spec=$lt_soname_spec
  16727. # Commands used to build and install an old-style archive.
  16728. RANLIB=$lt_RANLIB
  16729. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16730. old_postinstall_cmds=$lt_old_postinstall_cmds
  16731. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16732. # Create an old-style archive from a shared archive.
  16733. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16734. # Create a temporary old-style archive to link instead of a shared archive.
  16735. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16736. # Commands used to build and install a shared archive.
  16737. archive_cmds=$lt_archive_cmds_GCJ
  16738. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16739. postinstall_cmds=$lt_postinstall_cmds
  16740. postuninstall_cmds=$lt_postuninstall_cmds
  16741. # Commands used to build a loadable module (assumed same as above if empty)
  16742. module_cmds=$lt_module_cmds_GCJ
  16743. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16744. # Commands to strip libraries.
  16745. old_striplib=$lt_old_striplib
  16746. striplib=$lt_striplib
  16747. # Dependencies to place before the objects being linked to create a
  16748. # shared library.
  16749. predep_objects=$lt_predep_objects_GCJ
  16750. # Dependencies to place after the objects being linked to create a
  16751. # shared library.
  16752. postdep_objects=$lt_postdep_objects_GCJ
  16753. # Dependencies to place before the objects being linked to create a
  16754. # shared library.
  16755. predeps=$lt_predeps_GCJ
  16756. # Dependencies to place after the objects being linked to create a
  16757. # shared library.
  16758. postdeps=$lt_postdeps_GCJ
  16759. # The library search path used internally by the compiler when linking
  16760. # a shared library.
  16761. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16762. # Method to check whether dependent libraries are shared objects.
  16763. deplibs_check_method=$lt_deplibs_check_method
  16764. # Command to use when deplibs_check_method == file_magic.
  16765. file_magic_cmd=$lt_file_magic_cmd
  16766. # Flag that allows shared libraries with undefined symbols to be built.
  16767. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16768. # Flag that forces no undefined symbols.
  16769. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16770. # Commands used to finish a libtool library installation in a directory.
  16771. finish_cmds=$lt_finish_cmds
  16772. # Same as above, but a single script fragment to be evaled but not shown.
  16773. finish_eval=$lt_finish_eval
  16774. # Take the output of nm and produce a listing of raw symbols and C names.
  16775. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16776. # Transform the output of nm in a proper C declaration
  16777. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16778. # Transform the output of nm in a C name address pair
  16779. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16780. # This is the shared library runtime path variable.
  16781. runpath_var=$runpath_var
  16782. # This is the shared library path variable.
  16783. shlibpath_var=$shlibpath_var
  16784. # Is shlibpath searched before the hard-coded library search path?
  16785. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16786. # How to hardcode a shared library path into an executable.
  16787. hardcode_action=$hardcode_action_GCJ
  16788. # Whether we should hardcode library paths into libraries.
  16789. hardcode_into_libs=$hardcode_into_libs
  16790. # Flag to hardcode \$libdir into a binary during linking.
  16791. # This must work even if \$libdir does not exist.
  16792. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16793. # If ld is used when linking, flag to hardcode \$libdir into
  16794. # a binary during linking. This must work even if \$libdir does
  16795. # not exist.
  16796. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16797. # Whether we need a single -rpath flag with a separated argument.
  16798. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16799. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16800. # resulting binary.
  16801. hardcode_direct=$hardcode_direct_GCJ
  16802. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16803. # resulting binary.
  16804. hardcode_minus_L=$hardcode_minus_L_GCJ
  16805. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16806. # the resulting binary.
  16807. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16808. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16809. # and all subsequent libraries and executables linked against it.
  16810. hardcode_automatic=$hardcode_automatic_GCJ
  16811. # Variables whose values should be saved in libtool wrapper scripts and
  16812. # restored at relink time.
  16813. variables_saved_for_relink="$variables_saved_for_relink"
  16814. # Whether libtool must link a program against all its dependency libraries.
  16815. link_all_deplibs=$link_all_deplibs_GCJ
  16816. # Compile-time system search path for libraries
  16817. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16818. # Run-time system search path for libraries
  16819. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16820. # Fix the shell variable \$srcfile for the compiler.
  16821. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16822. # Set to yes if exported symbols are required.
  16823. always_export_symbols=$always_export_symbols_GCJ
  16824. # The commands to list exported symbols.
  16825. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16826. # The commands to extract the exported symbol list from a shared archive.
  16827. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16828. # Symbols that should not be listed in the preloaded symbols.
  16829. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16830. # Symbols that must always be exported.
  16831. include_expsyms=$lt_include_expsyms_GCJ
  16832. # ### END LIBTOOL TAG CONFIG: $tagname
  16833. __EOF__
  16834. else
  16835. # If there is no Makefile yet, we rely on a make rule to execute
  16836. # `config.status --recheck' to rerun these tests and create the
  16837. # libtool script then.
  16838. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16839. if test -f "$ltmain_in"; then
  16840. test -f Makefile && make "$ltmain"
  16841. fi
  16842. fi
  16843. ac_ext=c
  16844. ac_cpp='$CPP $CPPFLAGS'
  16845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16848. CC="$lt_save_CC"
  16849. else
  16850. tagname=""
  16851. fi
  16852. ;;
  16853. RC)
  16854. # Source file extension for RC test sources.
  16855. ac_ext=rc
  16856. # Object file extension for compiled RC test sources.
  16857. objext=o
  16858. objext_RC=$objext
  16859. # Code to be used in simple compile tests
  16860. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16861. # Code to be used in simple link tests
  16862. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16863. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16864. # If no C compiler was specified, use CC.
  16865. LTCC=${LTCC-"$CC"}
  16866. # If no C compiler flags were specified, use CFLAGS.
  16867. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16868. # Allow CC to be a program name with arguments.
  16869. compiler=$CC
  16870. # save warnings/boilerplate of simple test code
  16871. ac_outfile=conftest.$ac_objext
  16872. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16873. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16874. _lt_compiler_boilerplate=`cat conftest.err`
  16875. $rm conftest*
  16876. ac_outfile=conftest.$ac_objext
  16877. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16878. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16879. _lt_linker_boilerplate=`cat conftest.err`
  16880. $rm conftest*
  16881. # Allow CC to be a program name with arguments.
  16882. lt_save_CC="$CC"
  16883. CC=${RC-"windres"}
  16884. compiler=$CC
  16885. compiler_RC=$CC
  16886. for cc_temp in $compiler""; do
  16887. case $cc_temp in
  16888. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16889. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16890. \-*) ;;
  16891. *) break;;
  16892. esac
  16893. done
  16894. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16895. lt_cv_prog_compiler_c_o_RC=yes
  16896. # The else clause should only fire when bootstrapping the
  16897. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16898. # with your package, and you will get complaints that there are
  16899. # no rules to generate ltmain.sh.
  16900. if test -f "$ltmain"; then
  16901. # See if we are running on zsh, and set the options which allow our commands through
  16902. # without removal of \ escapes.
  16903. if test -n "${ZSH_VERSION+set}" ; then
  16904. setopt NO_GLOB_SUBST
  16905. fi
  16906. # Now quote all the things that may contain metacharacters while being
  16907. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16908. # variables and quote the copies for generation of the libtool script.
  16909. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16910. SED SHELL STRIP \
  16911. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16912. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16913. deplibs_check_method reload_flag reload_cmds need_locks \
  16914. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16915. lt_cv_sys_global_symbol_to_c_name_address \
  16916. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16917. old_postinstall_cmds old_postuninstall_cmds \
  16918. compiler_RC \
  16919. CC_RC \
  16920. LD_RC \
  16921. lt_prog_compiler_wl_RC \
  16922. lt_prog_compiler_pic_RC \
  16923. lt_prog_compiler_static_RC \
  16924. lt_prog_compiler_no_builtin_flag_RC \
  16925. export_dynamic_flag_spec_RC \
  16926. thread_safe_flag_spec_RC \
  16927. whole_archive_flag_spec_RC \
  16928. enable_shared_with_static_runtimes_RC \
  16929. old_archive_cmds_RC \
  16930. old_archive_from_new_cmds_RC \
  16931. predep_objects_RC \
  16932. postdep_objects_RC \
  16933. predeps_RC \
  16934. postdeps_RC \
  16935. compiler_lib_search_path_RC \
  16936. archive_cmds_RC \
  16937. archive_expsym_cmds_RC \
  16938. postinstall_cmds_RC \
  16939. postuninstall_cmds_RC \
  16940. old_archive_from_expsyms_cmds_RC \
  16941. allow_undefined_flag_RC \
  16942. no_undefined_flag_RC \
  16943. export_symbols_cmds_RC \
  16944. hardcode_libdir_flag_spec_RC \
  16945. hardcode_libdir_flag_spec_ld_RC \
  16946. hardcode_libdir_separator_RC \
  16947. hardcode_automatic_RC \
  16948. module_cmds_RC \
  16949. module_expsym_cmds_RC \
  16950. lt_cv_prog_compiler_c_o_RC \
  16951. exclude_expsyms_RC \
  16952. include_expsyms_RC; do
  16953. case $var in
  16954. old_archive_cmds_RC | \
  16955. old_archive_from_new_cmds_RC | \
  16956. archive_cmds_RC | \
  16957. archive_expsym_cmds_RC | \
  16958. module_cmds_RC | \
  16959. module_expsym_cmds_RC | \
  16960. old_archive_from_expsyms_cmds_RC | \
  16961. export_symbols_cmds_RC | \
  16962. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16963. postinstall_cmds | postuninstall_cmds | \
  16964. old_postinstall_cmds | old_postuninstall_cmds | \
  16965. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16966. # Double-quote double-evaled strings.
  16967. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16968. ;;
  16969. *)
  16970. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16971. ;;
  16972. esac
  16973. done
  16974. case $lt_echo in
  16975. *'\$0 --fallback-echo"')
  16976. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16977. ;;
  16978. esac
  16979. cfgfile="$ofile"
  16980. cat <<__EOF__ >> "$cfgfile"
  16981. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16982. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16983. # Shell to use when invoking shell scripts.
  16984. SHELL=$lt_SHELL
  16985. # Whether or not to build shared libraries.
  16986. build_libtool_libs=$enable_shared
  16987. # Whether or not to build static libraries.
  16988. build_old_libs=$enable_static
  16989. # Whether or not to add -lc for building shared libraries.
  16990. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16991. # Whether or not to disallow shared libs when runtime libs are static
  16992. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16993. # Whether or not to optimize for fast installation.
  16994. fast_install=$enable_fast_install
  16995. # The host system.
  16996. host_alias=$host_alias
  16997. host=$host
  16998. host_os=$host_os
  16999. # The build system.
  17000. build_alias=$build_alias
  17001. build=$build
  17002. build_os=$build_os
  17003. # An echo program that does not interpret backslashes.
  17004. echo=$lt_echo
  17005. # The archiver.
  17006. AR=$lt_AR
  17007. AR_FLAGS=$lt_AR_FLAGS
  17008. # A C compiler.
  17009. LTCC=$lt_LTCC
  17010. # LTCC compiler flags.
  17011. LTCFLAGS=$lt_LTCFLAGS
  17012. # A language-specific compiler.
  17013. CC=$lt_compiler_RC
  17014. # Is the compiler the GNU C compiler?
  17015. with_gcc=$GCC_RC
  17016. # An ERE matcher.
  17017. EGREP=$lt_EGREP
  17018. # The linker used to build libraries.
  17019. LD=$lt_LD_RC
  17020. # Whether we need hard or soft links.
  17021. LN_S=$lt_LN_S
  17022. # A BSD-compatible nm program.
  17023. NM=$lt_NM
  17024. # A symbol stripping program
  17025. STRIP=$lt_STRIP
  17026. # Used to examine libraries when file_magic_cmd begins "file"
  17027. MAGIC_CMD=$MAGIC_CMD
  17028. # Used on cygwin: DLL creation program.
  17029. DLLTOOL="$DLLTOOL"
  17030. # Used on cygwin: object dumper.
  17031. OBJDUMP="$OBJDUMP"
  17032. # Used on cygwin: assembler.
  17033. AS="$AS"
  17034. # The name of the directory that contains temporary libtool files.
  17035. objdir=$objdir
  17036. # How to create reloadable object files.
  17037. reload_flag=$lt_reload_flag
  17038. reload_cmds=$lt_reload_cmds
  17039. # How to pass a linker flag through the compiler.
  17040. wl=$lt_lt_prog_compiler_wl_RC
  17041. # Object file suffix (normally "o").
  17042. objext="$ac_objext"
  17043. # Old archive suffix (normally "a").
  17044. libext="$libext"
  17045. # Shared library suffix (normally ".so").
  17046. shrext_cmds='$shrext_cmds'
  17047. # Executable file suffix (normally "").
  17048. exeext="$exeext"
  17049. # Additional compiler flags for building library objects.
  17050. pic_flag=$lt_lt_prog_compiler_pic_RC
  17051. pic_mode=$pic_mode
  17052. # What is the maximum length of a command?
  17053. max_cmd_len=$lt_cv_sys_max_cmd_len
  17054. # Does compiler simultaneously support -c and -o options?
  17055. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17056. # Must we lock files when doing compilation?
  17057. need_locks=$lt_need_locks
  17058. # Do we need the lib prefix for modules?
  17059. need_lib_prefix=$need_lib_prefix
  17060. # Do we need a version for libraries?
  17061. need_version=$need_version
  17062. # Whether dlopen is supported.
  17063. dlopen_support=$enable_dlopen
  17064. # Whether dlopen of programs is supported.
  17065. dlopen_self=$enable_dlopen_self
  17066. # Whether dlopen of statically linked programs is supported.
  17067. dlopen_self_static=$enable_dlopen_self_static
  17068. # Compiler flag to prevent dynamic linking.
  17069. link_static_flag=$lt_lt_prog_compiler_static_RC
  17070. # Compiler flag to turn off builtin functions.
  17071. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17072. # Compiler flag to allow reflexive dlopens.
  17073. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17074. # Compiler flag to generate shared objects directly from archives.
  17075. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17076. # Compiler flag to generate thread-safe objects.
  17077. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17078. # Library versioning type.
  17079. version_type=$version_type
  17080. # Format of library name prefix.
  17081. libname_spec=$lt_libname_spec
  17082. # List of archive names. First name is the real one, the rest are links.
  17083. # The last name is the one that the linker finds with -lNAME.
  17084. library_names_spec=$lt_library_names_spec
  17085. # The coded name of the library, if different from the real name.
  17086. soname_spec=$lt_soname_spec
  17087. # Commands used to build and install an old-style archive.
  17088. RANLIB=$lt_RANLIB
  17089. old_archive_cmds=$lt_old_archive_cmds_RC
  17090. old_postinstall_cmds=$lt_old_postinstall_cmds
  17091. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17092. # Create an old-style archive from a shared archive.
  17093. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17094. # Create a temporary old-style archive to link instead of a shared archive.
  17095. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17096. # Commands used to build and install a shared archive.
  17097. archive_cmds=$lt_archive_cmds_RC
  17098. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17099. postinstall_cmds=$lt_postinstall_cmds
  17100. postuninstall_cmds=$lt_postuninstall_cmds
  17101. # Commands used to build a loadable module (assumed same as above if empty)
  17102. module_cmds=$lt_module_cmds_RC
  17103. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17104. # Commands to strip libraries.
  17105. old_striplib=$lt_old_striplib
  17106. striplib=$lt_striplib
  17107. # Dependencies to place before the objects being linked to create a
  17108. # shared library.
  17109. predep_objects=$lt_predep_objects_RC
  17110. # Dependencies to place after the objects being linked to create a
  17111. # shared library.
  17112. postdep_objects=$lt_postdep_objects_RC
  17113. # Dependencies to place before the objects being linked to create a
  17114. # shared library.
  17115. predeps=$lt_predeps_RC
  17116. # Dependencies to place after the objects being linked to create a
  17117. # shared library.
  17118. postdeps=$lt_postdeps_RC
  17119. # The library search path used internally by the compiler when linking
  17120. # a shared library.
  17121. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17122. # Method to check whether dependent libraries are shared objects.
  17123. deplibs_check_method=$lt_deplibs_check_method
  17124. # Command to use when deplibs_check_method == file_magic.
  17125. file_magic_cmd=$lt_file_magic_cmd
  17126. # Flag that allows shared libraries with undefined symbols to be built.
  17127. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17128. # Flag that forces no undefined symbols.
  17129. no_undefined_flag=$lt_no_undefined_flag_RC
  17130. # Commands used to finish a libtool library installation in a directory.
  17131. finish_cmds=$lt_finish_cmds
  17132. # Same as above, but a single script fragment to be evaled but not shown.
  17133. finish_eval=$lt_finish_eval
  17134. # Take the output of nm and produce a listing of raw symbols and C names.
  17135. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17136. # Transform the output of nm in a proper C declaration
  17137. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17138. # Transform the output of nm in a C name address pair
  17139. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17140. # This is the shared library runtime path variable.
  17141. runpath_var=$runpath_var
  17142. # This is the shared library path variable.
  17143. shlibpath_var=$shlibpath_var
  17144. # Is shlibpath searched before the hard-coded library search path?
  17145. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17146. # How to hardcode a shared library path into an executable.
  17147. hardcode_action=$hardcode_action_RC
  17148. # Whether we should hardcode library paths into libraries.
  17149. hardcode_into_libs=$hardcode_into_libs
  17150. # Flag to hardcode \$libdir into a binary during linking.
  17151. # This must work even if \$libdir does not exist.
  17152. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17153. # If ld is used when linking, flag to hardcode \$libdir into
  17154. # a binary during linking. This must work even if \$libdir does
  17155. # not exist.
  17156. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17157. # Whether we need a single -rpath flag with a separated argument.
  17158. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17159. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17160. # resulting binary.
  17161. hardcode_direct=$hardcode_direct_RC
  17162. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17163. # resulting binary.
  17164. hardcode_minus_L=$hardcode_minus_L_RC
  17165. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17166. # the resulting binary.
  17167. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17168. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17169. # and all subsequent libraries and executables linked against it.
  17170. hardcode_automatic=$hardcode_automatic_RC
  17171. # Variables whose values should be saved in libtool wrapper scripts and
  17172. # restored at relink time.
  17173. variables_saved_for_relink="$variables_saved_for_relink"
  17174. # Whether libtool must link a program against all its dependency libraries.
  17175. link_all_deplibs=$link_all_deplibs_RC
  17176. # Compile-time system search path for libraries
  17177. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17178. # Run-time system search path for libraries
  17179. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17180. # Fix the shell variable \$srcfile for the compiler.
  17181. fix_srcfile_path="$fix_srcfile_path_RC"
  17182. # Set to yes if exported symbols are required.
  17183. always_export_symbols=$always_export_symbols_RC
  17184. # The commands to list exported symbols.
  17185. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17186. # The commands to extract the exported symbol list from a shared archive.
  17187. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17188. # Symbols that should not be listed in the preloaded symbols.
  17189. exclude_expsyms=$lt_exclude_expsyms_RC
  17190. # Symbols that must always be exported.
  17191. include_expsyms=$lt_include_expsyms_RC
  17192. # ### END LIBTOOL TAG CONFIG: $tagname
  17193. __EOF__
  17194. else
  17195. # If there is no Makefile yet, we rely on a make rule to execute
  17196. # `config.status --recheck' to rerun these tests and create the
  17197. # libtool script then.
  17198. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17199. if test -f "$ltmain_in"; then
  17200. test -f Makefile && make "$ltmain"
  17201. fi
  17202. fi
  17203. ac_ext=c
  17204. ac_cpp='$CPP $CPPFLAGS'
  17205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17208. CC="$lt_save_CC"
  17209. ;;
  17210. *)
  17211. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17212. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17213. { (exit 1); exit 1; }; }
  17214. ;;
  17215. esac
  17216. # Append the new tag name to the list of available tags.
  17217. if test -n "$tagname" ; then
  17218. available_tags="$available_tags $tagname"
  17219. fi
  17220. fi
  17221. done
  17222. IFS="$lt_save_ifs"
  17223. # Now substitute the updated list of available tags.
  17224. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17225. mv "${ofile}T" "$ofile"
  17226. chmod +x "$ofile"
  17227. else
  17228. rm -f "${ofile}T"
  17229. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17230. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17231. { (exit 1); exit 1; }; }
  17232. fi
  17233. fi
  17234. # This can be used to rebuild libtool when needed
  17235. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17236. # Always use our own libtool.
  17237. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17238. # Prevent multiple expansion
  17239. ac_ext=c
  17240. ac_cpp='$CPP $CPPFLAGS'
  17241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17244. if test -n "$ac_tool_prefix"; then
  17245. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17246. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17247. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17249. if test "${ac_cv_prog_CC+set}" = set; then
  17250. echo $ECHO_N "(cached) $ECHO_C" >&6
  17251. else
  17252. if test -n "$CC"; then
  17253. ac_cv_prog_CC="$CC" # Let the user override the test.
  17254. else
  17255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17256. for as_dir in $PATH
  17257. do
  17258. IFS=$as_save_IFS
  17259. test -z "$as_dir" && as_dir=.
  17260. for ac_exec_ext in '' $ac_executable_extensions; do
  17261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17262. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17264. break 2
  17265. fi
  17266. done
  17267. done
  17268. IFS=$as_save_IFS
  17269. fi
  17270. fi
  17271. CC=$ac_cv_prog_CC
  17272. if test -n "$CC"; then
  17273. { echo "$as_me:$LINENO: result: $CC" >&5
  17274. echo "${ECHO_T}$CC" >&6; }
  17275. else
  17276. { echo "$as_me:$LINENO: result: no" >&5
  17277. echo "${ECHO_T}no" >&6; }
  17278. fi
  17279. fi
  17280. if test -z "$ac_cv_prog_CC"; then
  17281. ac_ct_CC=$CC
  17282. # Extract the first word of "gcc", so it can be a program name with args.
  17283. set dummy gcc; ac_word=$2
  17284. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17285. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17286. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17287. echo $ECHO_N "(cached) $ECHO_C" >&6
  17288. else
  17289. if test -n "$ac_ct_CC"; then
  17290. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17291. else
  17292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17293. for as_dir in $PATH
  17294. do
  17295. IFS=$as_save_IFS
  17296. test -z "$as_dir" && as_dir=.
  17297. for ac_exec_ext in '' $ac_executable_extensions; do
  17298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17299. ac_cv_prog_ac_ct_CC="gcc"
  17300. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17301. break 2
  17302. fi
  17303. done
  17304. done
  17305. IFS=$as_save_IFS
  17306. fi
  17307. fi
  17308. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17309. if test -n "$ac_ct_CC"; then
  17310. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17311. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17312. else
  17313. { echo "$as_me:$LINENO: result: no" >&5
  17314. echo "${ECHO_T}no" >&6; }
  17315. fi
  17316. if test "x$ac_ct_CC" = x; then
  17317. CC=""
  17318. else
  17319. case $cross_compiling:$ac_tool_warned in
  17320. yes:)
  17321. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17322. whose name does not start with the host triplet. If you think this
  17323. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17324. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17325. whose name does not start with the host triplet. If you think this
  17326. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17327. ac_tool_warned=yes ;;
  17328. esac
  17329. CC=$ac_ct_CC
  17330. fi
  17331. else
  17332. CC="$ac_cv_prog_CC"
  17333. fi
  17334. if test -z "$CC"; then
  17335. if test -n "$ac_tool_prefix"; then
  17336. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17337. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17338. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17340. if test "${ac_cv_prog_CC+set}" = set; then
  17341. echo $ECHO_N "(cached) $ECHO_C" >&6
  17342. else
  17343. if test -n "$CC"; then
  17344. ac_cv_prog_CC="$CC" # Let the user override the test.
  17345. else
  17346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17347. for as_dir in $PATH
  17348. do
  17349. IFS=$as_save_IFS
  17350. test -z "$as_dir" && as_dir=.
  17351. for ac_exec_ext in '' $ac_executable_extensions; do
  17352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17353. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17354. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17355. break 2
  17356. fi
  17357. done
  17358. done
  17359. IFS=$as_save_IFS
  17360. fi
  17361. fi
  17362. CC=$ac_cv_prog_CC
  17363. if test -n "$CC"; then
  17364. { echo "$as_me:$LINENO: result: $CC" >&5
  17365. echo "${ECHO_T}$CC" >&6; }
  17366. else
  17367. { echo "$as_me:$LINENO: result: no" >&5
  17368. echo "${ECHO_T}no" >&6; }
  17369. fi
  17370. fi
  17371. fi
  17372. if test -z "$CC"; then
  17373. # Extract the first word of "cc", so it can be a program name with args.
  17374. set dummy cc; ac_word=$2
  17375. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17376. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17377. if test "${ac_cv_prog_CC+set}" = set; then
  17378. echo $ECHO_N "(cached) $ECHO_C" >&6
  17379. else
  17380. if test -n "$CC"; then
  17381. ac_cv_prog_CC="$CC" # Let the user override the test.
  17382. else
  17383. ac_prog_rejected=no
  17384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17385. for as_dir in $PATH
  17386. do
  17387. IFS=$as_save_IFS
  17388. test -z "$as_dir" && as_dir=.
  17389. for ac_exec_ext in '' $ac_executable_extensions; do
  17390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17391. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17392. ac_prog_rejected=yes
  17393. continue
  17394. fi
  17395. ac_cv_prog_CC="cc"
  17396. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17397. break 2
  17398. fi
  17399. done
  17400. done
  17401. IFS=$as_save_IFS
  17402. if test $ac_prog_rejected = yes; then
  17403. # We found a bogon in the path, so make sure we never use it.
  17404. set dummy $ac_cv_prog_CC
  17405. shift
  17406. if test $# != 0; then
  17407. # We chose a different compiler from the bogus one.
  17408. # However, it has the same basename, so the bogon will be chosen
  17409. # first if we set CC to just the basename; use the full file name.
  17410. shift
  17411. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  17412. fi
  17413. fi
  17414. fi
  17415. fi
  17416. CC=$ac_cv_prog_CC
  17417. if test -n "$CC"; then
  17418. { echo "$as_me:$LINENO: result: $CC" >&5
  17419. echo "${ECHO_T}$CC" >&6; }
  17420. else
  17421. { echo "$as_me:$LINENO: result: no" >&5
  17422. echo "${ECHO_T}no" >&6; }
  17423. fi
  17424. fi
  17425. if test -z "$CC"; then
  17426. if test -n "$ac_tool_prefix"; then
  17427. for ac_prog in cl.exe
  17428. do
  17429. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17430. set dummy $ac_tool_prefix$ac_prog; 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_CC+set}" = set; then
  17434. echo $ECHO_N "(cached) $ECHO_C" >&6
  17435. else
  17436. if test -n "$CC"; then
  17437. ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
  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. CC=$ac_cv_prog_CC
  17456. if test -n "$CC"; then
  17457. { echo "$as_me:$LINENO: result: $CC" >&5
  17458. echo "${ECHO_T}$CC" >&6; }
  17459. else
  17460. { echo "$as_me:$LINENO: result: no" >&5
  17461. echo "${ECHO_T}no" >&6; }
  17462. fi
  17463. test -n "$CC" && break
  17464. done
  17465. fi
  17466. if test -z "$CC"; then
  17467. ac_ct_CC=$CC
  17468. for ac_prog in cl.exe
  17469. do
  17470. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17471. set dummy $ac_prog; ac_word=$2
  17472. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  17473. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17474. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17475. echo $ECHO_N "(cached) $ECHO_C" >&6
  17476. else
  17477. if test -n "$ac_ct_CC"; then
  17478. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17479. else
  17480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17481. for as_dir in $PATH
  17482. do
  17483. IFS=$as_save_IFS
  17484. test -z "$as_dir" && as_dir=.
  17485. for ac_exec_ext in '' $ac_executable_extensions; do
  17486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17487. ac_cv_prog_ac_ct_CC="$ac_prog"
  17488. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17489. break 2
  17490. fi
  17491. done
  17492. done
  17493. IFS=$as_save_IFS
  17494. fi
  17495. fi
  17496. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17497. if test -n "$ac_ct_CC"; then
  17498. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17499. echo "${ECHO_T}$ac_ct_CC" >&6; }
  17500. else
  17501. { echo "$as_me:$LINENO: result: no" >&5
  17502. echo "${ECHO_T}no" >&6; }
  17503. fi
  17504. test -n "$ac_ct_CC" && break
  17505. done
  17506. if test "x$ac_ct_CC" = x; then
  17507. CC=""
  17508. else
  17509. case $cross_compiling:$ac_tool_warned in
  17510. yes:)
  17511. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  17512. whose name does not start with the host triplet. If you think this
  17513. configuration is useful to you, please write to autoconf@gnu.org." >&5
  17514. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  17515. whose name does not start with the host triplet. If you think this
  17516. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  17517. ac_tool_warned=yes ;;
  17518. esac
  17519. CC=$ac_ct_CC
  17520. fi
  17521. fi
  17522. fi
  17523. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17524. See \`config.log' for more details." >&5
  17525. echo "$as_me: error: no acceptable C compiler found in \$PATH
  17526. See \`config.log' for more details." >&2;}
  17527. { (exit 1); exit 1; }; }
  17528. # Provide some information about the compiler.
  17529. echo "$as_me:$LINENO: checking for C compiler version" >&5
  17530. ac_compiler=`set X $ac_compile; echo $2`
  17531. { (ac_try="$ac_compiler --version >&5"
  17532. case "(($ac_try" in
  17533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17534. *) ac_try_echo=$ac_try;;
  17535. esac
  17536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17537. (eval "$ac_compiler --version >&5") 2>&5
  17538. ac_status=$?
  17539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17540. (exit $ac_status); }
  17541. { (ac_try="$ac_compiler -v >&5"
  17542. case "(($ac_try" in
  17543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17544. *) ac_try_echo=$ac_try;;
  17545. esac
  17546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17547. (eval "$ac_compiler -v >&5") 2>&5
  17548. ac_status=$?
  17549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17550. (exit $ac_status); }
  17551. { (ac_try="$ac_compiler -V >&5"
  17552. case "(($ac_try" in
  17553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17554. *) ac_try_echo=$ac_try;;
  17555. esac
  17556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17557. (eval "$ac_compiler -V >&5") 2>&5
  17558. ac_status=$?
  17559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17560. (exit $ac_status); }
  17561. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  17562. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  17563. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  17564. echo $ECHO_N "(cached) $ECHO_C" >&6
  17565. else
  17566. cat >conftest.$ac_ext <<_ACEOF
  17567. /* confdefs.h. */
  17568. _ACEOF
  17569. cat confdefs.h >>conftest.$ac_ext
  17570. cat >>conftest.$ac_ext <<_ACEOF
  17571. /* end confdefs.h. */
  17572. int
  17573. main ()
  17574. {
  17575. #ifndef __GNUC__
  17576. choke me
  17577. #endif
  17578. ;
  17579. return 0;
  17580. }
  17581. _ACEOF
  17582. rm -f conftest.$ac_objext
  17583. if { (ac_try="$ac_compile"
  17584. case "(($ac_try" in
  17585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17586. *) ac_try_echo=$ac_try;;
  17587. esac
  17588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17589. (eval "$ac_compile") 2>conftest.er1
  17590. ac_status=$?
  17591. grep -v '^ *+' conftest.er1 >conftest.err
  17592. rm -f conftest.er1
  17593. cat conftest.err >&5
  17594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17595. (exit $ac_status); } && {
  17596. test -z "$ac_c_werror_flag" ||
  17597. test ! -s conftest.err
  17598. } && test -s conftest.$ac_objext; then
  17599. ac_compiler_gnu=yes
  17600. else
  17601. echo "$as_me: failed program was:" >&5
  17602. sed 's/^/| /' conftest.$ac_ext >&5
  17603. ac_compiler_gnu=no
  17604. fi
  17605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17606. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  17607. fi
  17608. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  17609. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  17610. GCC=`test $ac_compiler_gnu = yes && echo yes`
  17611. ac_test_CFLAGS=${CFLAGS+set}
  17612. ac_save_CFLAGS=$CFLAGS
  17613. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  17614. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  17615. if test "${ac_cv_prog_cc_g+set}" = set; then
  17616. echo $ECHO_N "(cached) $ECHO_C" >&6
  17617. else
  17618. ac_save_c_werror_flag=$ac_c_werror_flag
  17619. ac_c_werror_flag=yes
  17620. ac_cv_prog_cc_g=no
  17621. CFLAGS="-g"
  17622. cat >conftest.$ac_ext <<_ACEOF
  17623. /* confdefs.h. */
  17624. _ACEOF
  17625. cat confdefs.h >>conftest.$ac_ext
  17626. cat >>conftest.$ac_ext <<_ACEOF
  17627. /* end confdefs.h. */
  17628. int
  17629. main ()
  17630. {
  17631. ;
  17632. return 0;
  17633. }
  17634. _ACEOF
  17635. rm -f conftest.$ac_objext
  17636. if { (ac_try="$ac_compile"
  17637. case "(($ac_try" in
  17638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17639. *) ac_try_echo=$ac_try;;
  17640. esac
  17641. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17642. (eval "$ac_compile") 2>conftest.er1
  17643. ac_status=$?
  17644. grep -v '^ *+' conftest.er1 >conftest.err
  17645. rm -f conftest.er1
  17646. cat conftest.err >&5
  17647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17648. (exit $ac_status); } && {
  17649. test -z "$ac_c_werror_flag" ||
  17650. test ! -s conftest.err
  17651. } && test -s conftest.$ac_objext; then
  17652. ac_cv_prog_cc_g=yes
  17653. else
  17654. echo "$as_me: failed program was:" >&5
  17655. sed 's/^/| /' conftest.$ac_ext >&5
  17656. CFLAGS=""
  17657. cat >conftest.$ac_ext <<_ACEOF
  17658. /* confdefs.h. */
  17659. _ACEOF
  17660. cat confdefs.h >>conftest.$ac_ext
  17661. cat >>conftest.$ac_ext <<_ACEOF
  17662. /* end confdefs.h. */
  17663. int
  17664. main ()
  17665. {
  17666. ;
  17667. return 0;
  17668. }
  17669. _ACEOF
  17670. rm -f conftest.$ac_objext
  17671. if { (ac_try="$ac_compile"
  17672. case "(($ac_try" in
  17673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17674. *) ac_try_echo=$ac_try;;
  17675. esac
  17676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17677. (eval "$ac_compile") 2>conftest.er1
  17678. ac_status=$?
  17679. grep -v '^ *+' conftest.er1 >conftest.err
  17680. rm -f conftest.er1
  17681. cat conftest.err >&5
  17682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17683. (exit $ac_status); } && {
  17684. test -z "$ac_c_werror_flag" ||
  17685. test ! -s conftest.err
  17686. } && test -s conftest.$ac_objext; then
  17687. :
  17688. else
  17689. echo "$as_me: failed program was:" >&5
  17690. sed 's/^/| /' conftest.$ac_ext >&5
  17691. ac_c_werror_flag=$ac_save_c_werror_flag
  17692. CFLAGS="-g"
  17693. cat >conftest.$ac_ext <<_ACEOF
  17694. /* confdefs.h. */
  17695. _ACEOF
  17696. cat confdefs.h >>conftest.$ac_ext
  17697. cat >>conftest.$ac_ext <<_ACEOF
  17698. /* end confdefs.h. */
  17699. int
  17700. main ()
  17701. {
  17702. ;
  17703. return 0;
  17704. }
  17705. _ACEOF
  17706. rm -f conftest.$ac_objext
  17707. if { (ac_try="$ac_compile"
  17708. case "(($ac_try" in
  17709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17710. *) ac_try_echo=$ac_try;;
  17711. esac
  17712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17713. (eval "$ac_compile") 2>conftest.er1
  17714. ac_status=$?
  17715. grep -v '^ *+' conftest.er1 >conftest.err
  17716. rm -f conftest.er1
  17717. cat conftest.err >&5
  17718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17719. (exit $ac_status); } && {
  17720. test -z "$ac_c_werror_flag" ||
  17721. test ! -s conftest.err
  17722. } && test -s conftest.$ac_objext; then
  17723. ac_cv_prog_cc_g=yes
  17724. else
  17725. echo "$as_me: failed program was:" >&5
  17726. sed 's/^/| /' conftest.$ac_ext >&5
  17727. fi
  17728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17729. fi
  17730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17731. fi
  17732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17733. ac_c_werror_flag=$ac_save_c_werror_flag
  17734. fi
  17735. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  17736. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  17737. if test "$ac_test_CFLAGS" = set; then
  17738. CFLAGS=$ac_save_CFLAGS
  17739. elif test $ac_cv_prog_cc_g = yes; then
  17740. if test "$GCC" = yes; then
  17741. CFLAGS="-g -O2"
  17742. else
  17743. CFLAGS="-g"
  17744. fi
  17745. else
  17746. if test "$GCC" = yes; then
  17747. CFLAGS="-O2"
  17748. else
  17749. CFLAGS=
  17750. fi
  17751. fi
  17752. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  17753. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  17754. if test "${ac_cv_prog_cc_c89+set}" = set; then
  17755. echo $ECHO_N "(cached) $ECHO_C" >&6
  17756. else
  17757. ac_cv_prog_cc_c89=no
  17758. ac_save_CC=$CC
  17759. cat >conftest.$ac_ext <<_ACEOF
  17760. /* confdefs.h. */
  17761. _ACEOF
  17762. cat confdefs.h >>conftest.$ac_ext
  17763. cat >>conftest.$ac_ext <<_ACEOF
  17764. /* end confdefs.h. */
  17765. #include <stdarg.h>
  17766. #include <stdio.h>
  17767. #include <sys/types.h>
  17768. #include <sys/stat.h>
  17769. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  17770. struct buf { int x; };
  17771. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  17772. static char *e (p, i)
  17773. char **p;
  17774. int i;
  17775. {
  17776. return p[i];
  17777. }
  17778. static char *f (char * (*g) (char **, int), char **p, ...)
  17779. {
  17780. char *s;
  17781. va_list v;
  17782. va_start (v,p);
  17783. s = g (p, va_arg (v,int));
  17784. va_end (v);
  17785. return s;
  17786. }
  17787. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  17788. function prototypes and stuff, but not '\xHH' hex character constants.
  17789. These don't provoke an error unfortunately, instead are silently treated
  17790. as 'x'. The following induces an error, until -std is added to get
  17791. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  17792. array size at least. It's necessary to write '\x00'==0 to get something
  17793. that's true only with -std. */
  17794. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  17795. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  17796. inside strings and character constants. */
  17797. #define FOO(x) 'x'
  17798. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  17799. int test (int i, double x);
  17800. struct s1 {int (*f) (int a);};
  17801. struct s2 {int (*f) (double a);};
  17802. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  17803. int argc;
  17804. char **argv;
  17805. int
  17806. main ()
  17807. {
  17808. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  17809. ;
  17810. return 0;
  17811. }
  17812. _ACEOF
  17813. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  17814. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  17815. do
  17816. CC="$ac_save_CC $ac_arg"
  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. ac_cv_prog_cc_c89=$ac_arg
  17835. else
  17836. echo "$as_me: failed program was:" >&5
  17837. sed 's/^/| /' conftest.$ac_ext >&5
  17838. fi
  17839. rm -f core conftest.err conftest.$ac_objext
  17840. test "x$ac_cv_prog_cc_c89" != "xno" && break
  17841. done
  17842. rm -f conftest.$ac_ext
  17843. CC=$ac_save_CC
  17844. fi
  17845. # AC_CACHE_VAL
  17846. case "x$ac_cv_prog_cc_c89" in
  17847. x)
  17848. { echo "$as_me:$LINENO: result: none needed" >&5
  17849. echo "${ECHO_T}none needed" >&6; } ;;
  17850. xno)
  17851. { echo "$as_me:$LINENO: result: unsupported" >&5
  17852. echo "${ECHO_T}unsupported" >&6; } ;;
  17853. *)
  17854. CC="$CC $ac_cv_prog_cc_c89"
  17855. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  17856. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  17857. esac
  17858. ac_ext=c
  17859. ac_cpp='$CPP $CPPFLAGS'
  17860. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17861. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17862. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17863. depcc="$CC" am_compiler_list=
  17864. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  17865. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  17866. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  17867. echo $ECHO_N "(cached) $ECHO_C" >&6
  17868. else
  17869. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  17870. # We make a subdir and do the tests there. Otherwise we can end up
  17871. # making bogus files that we don't know about and never remove. For
  17872. # instance it was reported that on HP-UX the gcc test will end up
  17873. # making a dummy file named `D' -- because `-MD' means `put the output
  17874. # in D'.
  17875. mkdir conftest.dir
  17876. # Copy depcomp to subdir because otherwise we won't find it if we're
  17877. # using a relative directory.
  17878. cp "$am_depcomp" conftest.dir
  17879. cd conftest.dir
  17880. # We will build objects and dependencies in a subdirectory because
  17881. # it helps to detect inapplicable dependency modes. For instance
  17882. # both Tru64's cc and ICC support -MD to output dependencies as a
  17883. # side effect of compilation, but ICC will put the dependencies in
  17884. # the current directory while Tru64 will put them in the object
  17885. # directory.
  17886. mkdir sub
  17887. am_cv_CC_dependencies_compiler_type=none
  17888. if test "$am_compiler_list" = ""; then
  17889. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  17890. fi
  17891. for depmode in $am_compiler_list; do
  17892. # Setup a source with many dependencies, because some compilers
  17893. # like to wrap large dependency lists on column 80 (with \), and
  17894. # we should not choose a depcomp mode which is confused by this.
  17895. #
  17896. # We need to recreate these files for each test, as the compiler may
  17897. # overwrite some of them when testing with obscure command lines.
  17898. # This happens at least with the AIX C compiler.
  17899. : > sub/conftest.c
  17900. for i in 1 2 3 4 5 6; do
  17901. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  17902. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  17903. # Solaris 8's {/usr,}/bin/sh.
  17904. touch sub/conftst$i.h
  17905. done
  17906. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  17907. case $depmode in
  17908. nosideeffect)
  17909. # after this tag, mechanisms are not by side-effect, so they'll
  17910. # only be used when explicitly requested
  17911. if test "x$enable_dependency_tracking" = xyes; then
  17912. continue
  17913. else
  17914. break
  17915. fi
  17916. ;;
  17917. none) break ;;
  17918. esac
  17919. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  17920. # mode. It turns out that the SunPro C++ compiler does not properly
  17921. # handle `-M -o', and we need to detect this.
  17922. if depmode=$depmode \
  17923. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  17924. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  17925. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  17926. >/dev/null 2>conftest.err &&
  17927. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  17928. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  17929. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  17930. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  17931. # icc doesn't choke on unknown options, it will just issue warnings
  17932. # or remarks (even with -Werror). So we grep stderr for any message
  17933. # that says an option was ignored or not supported.
  17934. # When given -MP, icc 7.0 and 7.1 complain thusly:
  17935. # icc: Command line warning: ignoring option '-M'; no argument required
  17936. # The diagnosis changed in icc 8.0:
  17937. # icc: Command line remark: option '-MP' not supported
  17938. if (grep 'ignoring option' conftest.err ||
  17939. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  17940. am_cv_CC_dependencies_compiler_type=$depmode
  17941. break
  17942. fi
  17943. fi
  17944. done
  17945. cd ..
  17946. rm -rf conftest.dir
  17947. else
  17948. am_cv_CC_dependencies_compiler_type=none
  17949. fi
  17950. fi
  17951. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  17952. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  17953. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  17954. if
  17955. test "x$enable_dependency_tracking" != xno \
  17956. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  17957. am__fastdepCC_TRUE=
  17958. am__fastdepCC_FALSE='#'
  17959. else
  17960. am__fastdepCC_TRUE='#'
  17961. am__fastdepCC_FALSE=
  17962. fi
  17963. case $ac_cv_prog_cc_stdc in
  17964. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  17965. *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  17966. echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
  17967. if test "${ac_cv_prog_cc_c99+set}" = set; then
  17968. echo $ECHO_N "(cached) $ECHO_C" >&6
  17969. else
  17970. ac_cv_prog_cc_c99=no
  17971. ac_save_CC=$CC
  17972. cat >conftest.$ac_ext <<_ACEOF
  17973. /* confdefs.h. */
  17974. _ACEOF
  17975. cat confdefs.h >>conftest.$ac_ext
  17976. cat >>conftest.$ac_ext <<_ACEOF
  17977. /* end confdefs.h. */
  17978. #include <stdarg.h>
  17979. #include <stdbool.h>
  17980. #include <stdlib.h>
  17981. #include <wchar.h>
  17982. #include <stdio.h>
  17983. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  17984. #define debug(...) fprintf (stderr, __VA_ARGS__)
  17985. #define showlist(...) puts (#__VA_ARGS__)
  17986. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  17987. static void
  17988. test_varargs_macros (void)
  17989. {
  17990. int x = 1234;
  17991. int y = 5678;
  17992. debug ("Flag");
  17993. debug ("X = %d\n", x);
  17994. showlist (The first, second, and third items.);
  17995. report (x>y, "x is %d but y is %d", x, y);
  17996. }
  17997. // Check long long types.
  17998. #define BIG64 18446744073709551615ull
  17999. #define BIG32 4294967295ul
  18000. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  18001. #if !BIG_OK
  18002. your preprocessor is broken;
  18003. #endif
  18004. #if BIG_OK
  18005. #else
  18006. your preprocessor is broken;
  18007. #endif
  18008. static long long int bignum = -9223372036854775807LL;
  18009. static unsigned long long int ubignum = BIG64;
  18010. struct incomplete_array
  18011. {
  18012. int datasize;
  18013. double data[];
  18014. };
  18015. struct named_init {
  18016. int number;
  18017. const wchar_t *name;
  18018. double average;
  18019. };
  18020. typedef const char *ccp;
  18021. static inline int
  18022. test_restrict (ccp restrict text)
  18023. {
  18024. // See if C++-style comments work.
  18025. // Iterate through items via the restricted pointer.
  18026. // Also check for declarations in for loops.
  18027. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  18028. continue;
  18029. return 0;
  18030. }
  18031. // Check varargs and va_copy.
  18032. static void
  18033. test_varargs (const char *format, ...)
  18034. {
  18035. va_list args;
  18036. va_start (args, format);
  18037. va_list args_copy;
  18038. va_copy (args_copy, args);
  18039. const char *str;
  18040. int number;
  18041. float fnumber;
  18042. while (*format)
  18043. {
  18044. switch (*format++)
  18045. {
  18046. case 's': // string
  18047. str = va_arg (args_copy, const char *);
  18048. break;
  18049. case 'd': // int
  18050. number = va_arg (args_copy, int);
  18051. break;
  18052. case 'f': // float
  18053. fnumber = va_arg (args_copy, double);
  18054. break;
  18055. default:
  18056. break;
  18057. }
  18058. }
  18059. va_end (args_copy);
  18060. va_end (args);
  18061. }
  18062. int
  18063. main ()
  18064. {
  18065. // Check bool.
  18066. _Bool success = false;
  18067. // Check restrict.
  18068. if (test_restrict ("String literal") == 0)
  18069. success = true;
  18070. char *restrict newvar = "Another string";
  18071. // Check varargs.
  18072. test_varargs ("s, d' f .", "string", 65, 34.234);
  18073. test_varargs_macros ();
  18074. // Check flexible array members.
  18075. struct incomplete_array *ia =
  18076. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  18077. ia->datasize = 10;
  18078. for (int i = 0; i < ia->datasize; ++i)
  18079. ia->data[i] = i * 1.234;
  18080. // Check named initializers.
  18081. struct named_init ni = {
  18082. .number = 34,
  18083. .name = L"Test wide string",
  18084. .average = 543.34343,
  18085. };
  18086. ni.number = 58;
  18087. int dynamic_array[ni.number];
  18088. dynamic_array[ni.number - 1] = 543;
  18089. // work around unused variable warnings
  18090. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  18091. || dynamic_array[ni.number - 1] != 543);
  18092. ;
  18093. return 0;
  18094. }
  18095. _ACEOF
  18096. for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
  18097. do
  18098. CC="$ac_save_CC $ac_arg"
  18099. rm -f conftest.$ac_objext
  18100. if { (ac_try="$ac_compile"
  18101. case "(($ac_try" in
  18102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18103. *) ac_try_echo=$ac_try;;
  18104. esac
  18105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18106. (eval "$ac_compile") 2>conftest.er1
  18107. ac_status=$?
  18108. grep -v '^ *+' conftest.er1 >conftest.err
  18109. rm -f conftest.er1
  18110. cat conftest.err >&5
  18111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18112. (exit $ac_status); } && {
  18113. test -z "$ac_c_werror_flag" ||
  18114. test ! -s conftest.err
  18115. } && test -s conftest.$ac_objext; then
  18116. ac_cv_prog_cc_c99=$ac_arg
  18117. else
  18118. echo "$as_me: failed program was:" >&5
  18119. sed 's/^/| /' conftest.$ac_ext >&5
  18120. fi
  18121. rm -f core conftest.err conftest.$ac_objext
  18122. test "x$ac_cv_prog_cc_c99" != "xno" && break
  18123. done
  18124. rm -f conftest.$ac_ext
  18125. CC=$ac_save_CC
  18126. fi
  18127. # AC_CACHE_VAL
  18128. case "x$ac_cv_prog_cc_c99" in
  18129. x)
  18130. { echo "$as_me:$LINENO: result: none needed" >&5
  18131. echo "${ECHO_T}none needed" >&6; } ;;
  18132. xno)
  18133. { echo "$as_me:$LINENO: result: unsupported" >&5
  18134. echo "${ECHO_T}unsupported" >&6; } ;;
  18135. *)
  18136. CC="$CC $ac_cv_prog_cc_c99"
  18137. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  18138. echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
  18139. esac
  18140. if test "x$ac_cv_prog_cc_c99" != xno; then
  18141. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  18142. else
  18143. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  18144. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  18145. if test "${ac_cv_prog_cc_c89+set}" = set; then
  18146. echo $ECHO_N "(cached) $ECHO_C" >&6
  18147. else
  18148. ac_cv_prog_cc_c89=no
  18149. ac_save_CC=$CC
  18150. cat >conftest.$ac_ext <<_ACEOF
  18151. /* confdefs.h. */
  18152. _ACEOF
  18153. cat confdefs.h >>conftest.$ac_ext
  18154. cat >>conftest.$ac_ext <<_ACEOF
  18155. /* end confdefs.h. */
  18156. #include <stdarg.h>
  18157. #include <stdio.h>
  18158. #include <sys/types.h>
  18159. #include <sys/stat.h>
  18160. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  18161. struct buf { int x; };
  18162. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  18163. static char *e (p, i)
  18164. char **p;
  18165. int i;
  18166. {
  18167. return p[i];
  18168. }
  18169. static char *f (char * (*g) (char **, int), char **p, ...)
  18170. {
  18171. char *s;
  18172. va_list v;
  18173. va_start (v,p);
  18174. s = g (p, va_arg (v,int));
  18175. va_end (v);
  18176. return s;
  18177. }
  18178. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18179. function prototypes and stuff, but not '\xHH' hex character constants.
  18180. These don't provoke an error unfortunately, instead are silently treated
  18181. as 'x'. The following induces an error, until -std is added to get
  18182. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18183. array size at least. It's necessary to write '\x00'==0 to get something
  18184. that's true only with -std. */
  18185. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18186. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18187. inside strings and character constants. */
  18188. #define FOO(x) 'x'
  18189. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18190. int test (int i, double x);
  18191. struct s1 {int (*f) (int a);};
  18192. struct s2 {int (*f) (double a);};
  18193. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  18194. int argc;
  18195. char **argv;
  18196. int
  18197. main ()
  18198. {
  18199. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  18200. ;
  18201. return 0;
  18202. }
  18203. _ACEOF
  18204. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18205. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18206. do
  18207. CC="$ac_save_CC $ac_arg"
  18208. rm -f conftest.$ac_objext
  18209. if { (ac_try="$ac_compile"
  18210. case "(($ac_try" in
  18211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18212. *) ac_try_echo=$ac_try;;
  18213. esac
  18214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18215. (eval "$ac_compile") 2>conftest.er1
  18216. ac_status=$?
  18217. grep -v '^ *+' conftest.er1 >conftest.err
  18218. rm -f conftest.er1
  18219. cat conftest.err >&5
  18220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18221. (exit $ac_status); } && {
  18222. test -z "$ac_c_werror_flag" ||
  18223. test ! -s conftest.err
  18224. } && test -s conftest.$ac_objext; then
  18225. ac_cv_prog_cc_c89=$ac_arg
  18226. else
  18227. echo "$as_me: failed program was:" >&5
  18228. sed 's/^/| /' conftest.$ac_ext >&5
  18229. fi
  18230. rm -f core conftest.err conftest.$ac_objext
  18231. test "x$ac_cv_prog_cc_c89" != "xno" && break
  18232. done
  18233. rm -f conftest.$ac_ext
  18234. CC=$ac_save_CC
  18235. fi
  18236. # AC_CACHE_VAL
  18237. case "x$ac_cv_prog_cc_c89" in
  18238. x)
  18239. { echo "$as_me:$LINENO: result: none needed" >&5
  18240. echo "${ECHO_T}none needed" >&6; } ;;
  18241. xno)
  18242. { echo "$as_me:$LINENO: result: unsupported" >&5
  18243. echo "${ECHO_T}unsupported" >&6; } ;;
  18244. *)
  18245. CC="$CC $ac_cv_prog_cc_c89"
  18246. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  18247. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  18248. esac
  18249. if test "x$ac_cv_prog_cc_c89" != xno; then
  18250. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  18251. else
  18252. ac_cv_prog_cc_stdc=no
  18253. fi
  18254. fi
  18255. ;;
  18256. esac
  18257. { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  18258. echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
  18259. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18260. echo $ECHO_N "(cached) $ECHO_C" >&6
  18261. fi
  18262. case $ac_cv_prog_cc_stdc in
  18263. no) { echo "$as_me:$LINENO: result: unsupported" >&5
  18264. echo "${ECHO_T}unsupported" >&6; } ;;
  18265. '') { echo "$as_me:$LINENO: result: none needed" >&5
  18266. echo "${ECHO_T}none needed" >&6; } ;;
  18267. *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18268. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
  18269. esac
  18270. ac_ext=cpp
  18271. ac_cpp='$CXXCPP $CPPFLAGS'
  18272. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18273. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18274. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18275. if test -z "$CXX"; then
  18276. if test -n "$CCC"; then
  18277. CXX=$CCC
  18278. else
  18279. if test -n "$ac_tool_prefix"; then
  18280. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18281. do
  18282. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  18283. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  18284. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18285. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18286. if test "${ac_cv_prog_CXX+set}" = set; then
  18287. echo $ECHO_N "(cached) $ECHO_C" >&6
  18288. else
  18289. if test -n "$CXX"; then
  18290. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  18291. else
  18292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18293. for as_dir in $PATH
  18294. do
  18295. IFS=$as_save_IFS
  18296. test -z "$as_dir" && as_dir=.
  18297. for ac_exec_ext in '' $ac_executable_extensions; do
  18298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18299. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  18300. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18301. break 2
  18302. fi
  18303. done
  18304. done
  18305. IFS=$as_save_IFS
  18306. fi
  18307. fi
  18308. CXX=$ac_cv_prog_CXX
  18309. if test -n "$CXX"; then
  18310. { echo "$as_me:$LINENO: result: $CXX" >&5
  18311. echo "${ECHO_T}$CXX" >&6; }
  18312. else
  18313. { echo "$as_me:$LINENO: result: no" >&5
  18314. echo "${ECHO_T}no" >&6; }
  18315. fi
  18316. test -n "$CXX" && break
  18317. done
  18318. fi
  18319. if test -z "$CXX"; then
  18320. ac_ct_CXX=$CXX
  18321. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  18322. do
  18323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18324. set dummy $ac_prog; ac_word=$2
  18325. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18326. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18327. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  18328. echo $ECHO_N "(cached) $ECHO_C" >&6
  18329. else
  18330. if test -n "$ac_ct_CXX"; then
  18331. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  18332. else
  18333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18334. for as_dir in $PATH
  18335. do
  18336. IFS=$as_save_IFS
  18337. test -z "$as_dir" && as_dir=.
  18338. for ac_exec_ext in '' $ac_executable_extensions; do
  18339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18340. ac_cv_prog_ac_ct_CXX="$ac_prog"
  18341. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18342. break 2
  18343. fi
  18344. done
  18345. done
  18346. IFS=$as_save_IFS
  18347. fi
  18348. fi
  18349. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  18350. if test -n "$ac_ct_CXX"; then
  18351. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  18352. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  18353. else
  18354. { echo "$as_me:$LINENO: result: no" >&5
  18355. echo "${ECHO_T}no" >&6; }
  18356. fi
  18357. test -n "$ac_ct_CXX" && break
  18358. done
  18359. if test "x$ac_ct_CXX" = x; then
  18360. CXX="g++"
  18361. else
  18362. case $cross_compiling:$ac_tool_warned in
  18363. yes:)
  18364. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18365. whose name does not start with the host triplet. If you think this
  18366. configuration is useful to you, please write to autoconf@gnu.org." >&5
  18367. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18368. whose name does not start with the host triplet. If you think this
  18369. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18370. ac_tool_warned=yes ;;
  18371. esac
  18372. CXX=$ac_ct_CXX
  18373. fi
  18374. fi
  18375. fi
  18376. fi
  18377. # Provide some information about the compiler.
  18378. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  18379. ac_compiler=`set X $ac_compile; echo $2`
  18380. { (ac_try="$ac_compiler --version >&5"
  18381. case "(($ac_try" in
  18382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18383. *) ac_try_echo=$ac_try;;
  18384. esac
  18385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18386. (eval "$ac_compiler --version >&5") 2>&5
  18387. ac_status=$?
  18388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18389. (exit $ac_status); }
  18390. { (ac_try="$ac_compiler -v >&5"
  18391. case "(($ac_try" in
  18392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18393. *) ac_try_echo=$ac_try;;
  18394. esac
  18395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18396. (eval "$ac_compiler -v >&5") 2>&5
  18397. ac_status=$?
  18398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18399. (exit $ac_status); }
  18400. { (ac_try="$ac_compiler -V >&5"
  18401. case "(($ac_try" in
  18402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18403. *) ac_try_echo=$ac_try;;
  18404. esac
  18405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18406. (eval "$ac_compiler -V >&5") 2>&5
  18407. ac_status=$?
  18408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18409. (exit $ac_status); }
  18410. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  18411. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  18412. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  18413. echo $ECHO_N "(cached) $ECHO_C" >&6
  18414. else
  18415. cat >conftest.$ac_ext <<_ACEOF
  18416. /* confdefs.h. */
  18417. _ACEOF
  18418. cat confdefs.h >>conftest.$ac_ext
  18419. cat >>conftest.$ac_ext <<_ACEOF
  18420. /* end confdefs.h. */
  18421. int
  18422. main ()
  18423. {
  18424. #ifndef __GNUC__
  18425. choke me
  18426. #endif
  18427. ;
  18428. return 0;
  18429. }
  18430. _ACEOF
  18431. rm -f conftest.$ac_objext
  18432. if { (ac_try="$ac_compile"
  18433. case "(($ac_try" in
  18434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18435. *) ac_try_echo=$ac_try;;
  18436. esac
  18437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18438. (eval "$ac_compile") 2>conftest.er1
  18439. ac_status=$?
  18440. grep -v '^ *+' conftest.er1 >conftest.err
  18441. rm -f conftest.er1
  18442. cat conftest.err >&5
  18443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18444. (exit $ac_status); } && {
  18445. test -z "$ac_cxx_werror_flag" ||
  18446. test ! -s conftest.err
  18447. } && test -s conftest.$ac_objext; then
  18448. ac_compiler_gnu=yes
  18449. else
  18450. echo "$as_me: failed program was:" >&5
  18451. sed 's/^/| /' conftest.$ac_ext >&5
  18452. ac_compiler_gnu=no
  18453. fi
  18454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18455. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  18456. fi
  18457. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  18458. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  18459. GXX=`test $ac_compiler_gnu = yes && echo yes`
  18460. ac_test_CXXFLAGS=${CXXFLAGS+set}
  18461. ac_save_CXXFLAGS=$CXXFLAGS
  18462. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  18463. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  18464. if test "${ac_cv_prog_cxx_g+set}" = set; then
  18465. echo $ECHO_N "(cached) $ECHO_C" >&6
  18466. else
  18467. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  18468. ac_cxx_werror_flag=yes
  18469. ac_cv_prog_cxx_g=no
  18470. CXXFLAGS="-g"
  18471. cat >conftest.$ac_ext <<_ACEOF
  18472. /* confdefs.h. */
  18473. _ACEOF
  18474. cat confdefs.h >>conftest.$ac_ext
  18475. cat >>conftest.$ac_ext <<_ACEOF
  18476. /* end confdefs.h. */
  18477. int
  18478. main ()
  18479. {
  18480. ;
  18481. return 0;
  18482. }
  18483. _ACEOF
  18484. rm -f conftest.$ac_objext
  18485. if { (ac_try="$ac_compile"
  18486. case "(($ac_try" in
  18487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18488. *) ac_try_echo=$ac_try;;
  18489. esac
  18490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18491. (eval "$ac_compile") 2>conftest.er1
  18492. ac_status=$?
  18493. grep -v '^ *+' conftest.er1 >conftest.err
  18494. rm -f conftest.er1
  18495. cat conftest.err >&5
  18496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18497. (exit $ac_status); } && {
  18498. test -z "$ac_cxx_werror_flag" ||
  18499. test ! -s conftest.err
  18500. } && test -s conftest.$ac_objext; then
  18501. ac_cv_prog_cxx_g=yes
  18502. else
  18503. echo "$as_me: failed program was:" >&5
  18504. sed 's/^/| /' conftest.$ac_ext >&5
  18505. CXXFLAGS=""
  18506. cat >conftest.$ac_ext <<_ACEOF
  18507. /* confdefs.h. */
  18508. _ACEOF
  18509. cat confdefs.h >>conftest.$ac_ext
  18510. cat >>conftest.$ac_ext <<_ACEOF
  18511. /* end confdefs.h. */
  18512. int
  18513. main ()
  18514. {
  18515. ;
  18516. return 0;
  18517. }
  18518. _ACEOF
  18519. rm -f conftest.$ac_objext
  18520. if { (ac_try="$ac_compile"
  18521. case "(($ac_try" in
  18522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18523. *) ac_try_echo=$ac_try;;
  18524. esac
  18525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18526. (eval "$ac_compile") 2>conftest.er1
  18527. ac_status=$?
  18528. grep -v '^ *+' conftest.er1 >conftest.err
  18529. rm -f conftest.er1
  18530. cat conftest.err >&5
  18531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18532. (exit $ac_status); } && {
  18533. test -z "$ac_cxx_werror_flag" ||
  18534. test ! -s conftest.err
  18535. } && test -s conftest.$ac_objext; then
  18536. :
  18537. else
  18538. echo "$as_me: failed program was:" >&5
  18539. sed 's/^/| /' conftest.$ac_ext >&5
  18540. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18541. CXXFLAGS="-g"
  18542. cat >conftest.$ac_ext <<_ACEOF
  18543. /* confdefs.h. */
  18544. _ACEOF
  18545. cat confdefs.h >>conftest.$ac_ext
  18546. cat >>conftest.$ac_ext <<_ACEOF
  18547. /* end confdefs.h. */
  18548. int
  18549. main ()
  18550. {
  18551. ;
  18552. return 0;
  18553. }
  18554. _ACEOF
  18555. rm -f conftest.$ac_objext
  18556. if { (ac_try="$ac_compile"
  18557. case "(($ac_try" in
  18558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18559. *) ac_try_echo=$ac_try;;
  18560. esac
  18561. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18562. (eval "$ac_compile") 2>conftest.er1
  18563. ac_status=$?
  18564. grep -v '^ *+' conftest.er1 >conftest.err
  18565. rm -f conftest.er1
  18566. cat conftest.err >&5
  18567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18568. (exit $ac_status); } && {
  18569. test -z "$ac_cxx_werror_flag" ||
  18570. test ! -s conftest.err
  18571. } && test -s conftest.$ac_objext; then
  18572. ac_cv_prog_cxx_g=yes
  18573. else
  18574. echo "$as_me: failed program was:" >&5
  18575. sed 's/^/| /' conftest.$ac_ext >&5
  18576. fi
  18577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18578. fi
  18579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18580. fi
  18581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18582. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  18583. fi
  18584. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  18585. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  18586. if test "$ac_test_CXXFLAGS" = set; then
  18587. CXXFLAGS=$ac_save_CXXFLAGS
  18588. elif test $ac_cv_prog_cxx_g = yes; then
  18589. if test "$GXX" = yes; then
  18590. CXXFLAGS="-g -O2"
  18591. else
  18592. CXXFLAGS="-g"
  18593. fi
  18594. else
  18595. if test "$GXX" = yes; then
  18596. CXXFLAGS="-O2"
  18597. else
  18598. CXXFLAGS=
  18599. fi
  18600. fi
  18601. ac_ext=c
  18602. ac_cpp='$CPP $CPPFLAGS'
  18603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18606. depcc="$CXX" am_compiler_list=
  18607. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18608. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  18609. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  18610. echo $ECHO_N "(cached) $ECHO_C" >&6
  18611. else
  18612. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18613. # We make a subdir and do the tests there. Otherwise we can end up
  18614. # making bogus files that we don't know about and never remove. For
  18615. # instance it was reported that on HP-UX the gcc test will end up
  18616. # making a dummy file named `D' -- because `-MD' means `put the output
  18617. # in D'.
  18618. mkdir conftest.dir
  18619. # Copy depcomp to subdir because otherwise we won't find it if we're
  18620. # using a relative directory.
  18621. cp "$am_depcomp" conftest.dir
  18622. cd conftest.dir
  18623. # We will build objects and dependencies in a subdirectory because
  18624. # it helps to detect inapplicable dependency modes. For instance
  18625. # both Tru64's cc and ICC support -MD to output dependencies as a
  18626. # side effect of compilation, but ICC will put the dependencies in
  18627. # the current directory while Tru64 will put them in the object
  18628. # directory.
  18629. mkdir sub
  18630. am_cv_CXX_dependencies_compiler_type=none
  18631. if test "$am_compiler_list" = ""; then
  18632. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18633. fi
  18634. for depmode in $am_compiler_list; do
  18635. # Setup a source with many dependencies, because some compilers
  18636. # like to wrap large dependency lists on column 80 (with \), and
  18637. # we should not choose a depcomp mode which is confused by this.
  18638. #
  18639. # We need to recreate these files for each test, as the compiler may
  18640. # overwrite some of them when testing with obscure command lines.
  18641. # This happens at least with the AIX C compiler.
  18642. : > sub/conftest.c
  18643. for i in 1 2 3 4 5 6; do
  18644. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  18645. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  18646. # Solaris 8's {/usr,}/bin/sh.
  18647. touch sub/conftst$i.h
  18648. done
  18649. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18650. case $depmode in
  18651. nosideeffect)
  18652. # after this tag, mechanisms are not by side-effect, so they'll
  18653. # only be used when explicitly requested
  18654. if test "x$enable_dependency_tracking" = xyes; then
  18655. continue
  18656. else
  18657. break
  18658. fi
  18659. ;;
  18660. none) break ;;
  18661. esac
  18662. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18663. # mode. It turns out that the SunPro C++ compiler does not properly
  18664. # handle `-M -o', and we need to detect this.
  18665. if depmode=$depmode \
  18666. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18667. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18668. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18669. >/dev/null 2>conftest.err &&
  18670. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18671. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18672. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18673. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18674. # icc doesn't choke on unknown options, it will just issue warnings
  18675. # or remarks (even with -Werror). So we grep stderr for any message
  18676. # that says an option was ignored or not supported.
  18677. # When given -MP, icc 7.0 and 7.1 complain thusly:
  18678. # icc: Command line warning: ignoring option '-M'; no argument required
  18679. # The diagnosis changed in icc 8.0:
  18680. # icc: Command line remark: option '-MP' not supported
  18681. if (grep 'ignoring option' conftest.err ||
  18682. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  18683. am_cv_CXX_dependencies_compiler_type=$depmode
  18684. break
  18685. fi
  18686. fi
  18687. done
  18688. cd ..
  18689. rm -rf conftest.dir
  18690. else
  18691. am_cv_CXX_dependencies_compiler_type=none
  18692. fi
  18693. fi
  18694. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  18695. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  18696. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  18697. if
  18698. test "x$enable_dependency_tracking" != xno \
  18699. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  18700. am__fastdepCXX_TRUE=
  18701. am__fastdepCXX_FALSE='#'
  18702. else
  18703. am__fastdepCXX_TRUE='#'
  18704. am__fastdepCXX_FALSE=
  18705. fi
  18706. ac_ext=c
  18707. ac_cpp='$CPP $CPPFLAGS'
  18708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18711. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  18712. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  18713. # On Suns, sometimes $CPP names a directory.
  18714. if test -n "$CPP" && test -d "$CPP"; then
  18715. CPP=
  18716. fi
  18717. if test -z "$CPP"; then
  18718. if test "${ac_cv_prog_CPP+set}" = set; then
  18719. echo $ECHO_N "(cached) $ECHO_C" >&6
  18720. else
  18721. # Double quotes because CPP needs to be expanded
  18722. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  18723. do
  18724. ac_preproc_ok=false
  18725. for ac_c_preproc_warn_flag in '' yes
  18726. do
  18727. # Use a header file that comes with gcc, so configuring glibc
  18728. # with a fresh cross-compiler works.
  18729. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18730. # <limits.h> exists even on freestanding compilers.
  18731. # On the NeXT, cc -E runs the code through the compiler's parser,
  18732. # not just through cpp. "Syntax error" is here to catch this case.
  18733. cat >conftest.$ac_ext <<_ACEOF
  18734. /* confdefs.h. */
  18735. _ACEOF
  18736. cat confdefs.h >>conftest.$ac_ext
  18737. cat >>conftest.$ac_ext <<_ACEOF
  18738. /* end confdefs.h. */
  18739. #ifdef __STDC__
  18740. # include <limits.h>
  18741. #else
  18742. # include <assert.h>
  18743. #endif
  18744. Syntax error
  18745. _ACEOF
  18746. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18747. case "(($ac_try" in
  18748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18749. *) ac_try_echo=$ac_try;;
  18750. esac
  18751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18752. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18753. ac_status=$?
  18754. grep -v '^ *+' conftest.er1 >conftest.err
  18755. rm -f conftest.er1
  18756. cat conftest.err >&5
  18757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18758. (exit $ac_status); } >/dev/null && {
  18759. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18760. test ! -s conftest.err
  18761. }; then
  18762. :
  18763. else
  18764. echo "$as_me: failed program was:" >&5
  18765. sed 's/^/| /' conftest.$ac_ext >&5
  18766. # Broken: fails on valid input.
  18767. continue
  18768. fi
  18769. rm -f conftest.err conftest.$ac_ext
  18770. # OK, works on sane cases. Now check whether nonexistent headers
  18771. # can be detected and how.
  18772. cat >conftest.$ac_ext <<_ACEOF
  18773. /* confdefs.h. */
  18774. _ACEOF
  18775. cat confdefs.h >>conftest.$ac_ext
  18776. cat >>conftest.$ac_ext <<_ACEOF
  18777. /* end confdefs.h. */
  18778. #include <ac_nonexistent.h>
  18779. _ACEOF
  18780. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18781. case "(($ac_try" in
  18782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18783. *) ac_try_echo=$ac_try;;
  18784. esac
  18785. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18786. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18787. ac_status=$?
  18788. grep -v '^ *+' conftest.er1 >conftest.err
  18789. rm -f conftest.er1
  18790. cat conftest.err >&5
  18791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18792. (exit $ac_status); } >/dev/null && {
  18793. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18794. test ! -s conftest.err
  18795. }; then
  18796. # Broken: success on invalid input.
  18797. continue
  18798. else
  18799. echo "$as_me: failed program was:" >&5
  18800. sed 's/^/| /' conftest.$ac_ext >&5
  18801. # Passes both tests.
  18802. ac_preproc_ok=:
  18803. break
  18804. fi
  18805. rm -f conftest.err conftest.$ac_ext
  18806. done
  18807. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18808. rm -f conftest.err conftest.$ac_ext
  18809. if $ac_preproc_ok; then
  18810. break
  18811. fi
  18812. done
  18813. ac_cv_prog_CPP=$CPP
  18814. fi
  18815. CPP=$ac_cv_prog_CPP
  18816. else
  18817. ac_cv_prog_CPP=$CPP
  18818. fi
  18819. { echo "$as_me:$LINENO: result: $CPP" >&5
  18820. echo "${ECHO_T}$CPP" >&6; }
  18821. ac_preproc_ok=false
  18822. for ac_c_preproc_warn_flag in '' yes
  18823. do
  18824. # Use a header file that comes with gcc, so configuring glibc
  18825. # with a fresh cross-compiler works.
  18826. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18827. # <limits.h> exists even on freestanding compilers.
  18828. # On the NeXT, cc -E runs the code through the compiler's parser,
  18829. # not just through cpp. "Syntax error" is here to catch this case.
  18830. cat >conftest.$ac_ext <<_ACEOF
  18831. /* confdefs.h. */
  18832. _ACEOF
  18833. cat confdefs.h >>conftest.$ac_ext
  18834. cat >>conftest.$ac_ext <<_ACEOF
  18835. /* end confdefs.h. */
  18836. #ifdef __STDC__
  18837. # include <limits.h>
  18838. #else
  18839. # include <assert.h>
  18840. #endif
  18841. Syntax error
  18842. _ACEOF
  18843. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18844. case "(($ac_try" in
  18845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18846. *) ac_try_echo=$ac_try;;
  18847. esac
  18848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18849. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18850. ac_status=$?
  18851. grep -v '^ *+' conftest.er1 >conftest.err
  18852. rm -f conftest.er1
  18853. cat conftest.err >&5
  18854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18855. (exit $ac_status); } >/dev/null && {
  18856. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18857. test ! -s conftest.err
  18858. }; then
  18859. :
  18860. else
  18861. echo "$as_me: failed program was:" >&5
  18862. sed 's/^/| /' conftest.$ac_ext >&5
  18863. # Broken: fails on valid input.
  18864. continue
  18865. fi
  18866. rm -f conftest.err conftest.$ac_ext
  18867. # OK, works on sane cases. Now check whether nonexistent headers
  18868. # can be detected and how.
  18869. cat >conftest.$ac_ext <<_ACEOF
  18870. /* confdefs.h. */
  18871. _ACEOF
  18872. cat confdefs.h >>conftest.$ac_ext
  18873. cat >>conftest.$ac_ext <<_ACEOF
  18874. /* end confdefs.h. */
  18875. #include <ac_nonexistent.h>
  18876. _ACEOF
  18877. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18878. case "(($ac_try" in
  18879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18880. *) ac_try_echo=$ac_try;;
  18881. esac
  18882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18883. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18884. ac_status=$?
  18885. grep -v '^ *+' conftest.er1 >conftest.err
  18886. rm -f conftest.er1
  18887. cat conftest.err >&5
  18888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18889. (exit $ac_status); } >/dev/null && {
  18890. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18891. test ! -s conftest.err
  18892. }; then
  18893. # Broken: success on invalid input.
  18894. continue
  18895. else
  18896. echo "$as_me: failed program was:" >&5
  18897. sed 's/^/| /' conftest.$ac_ext >&5
  18898. # Passes both tests.
  18899. ac_preproc_ok=:
  18900. break
  18901. fi
  18902. rm -f conftest.err conftest.$ac_ext
  18903. done
  18904. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  18905. rm -f conftest.err conftest.$ac_ext
  18906. if $ac_preproc_ok; then
  18907. :
  18908. else
  18909. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  18910. See \`config.log' for more details." >&5
  18911. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  18912. See \`config.log' for more details." >&2;}
  18913. { (exit 1); exit 1; }; }
  18914. fi
  18915. ac_ext=c
  18916. ac_cpp='$CPP $CPPFLAGS'
  18917. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18918. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18919. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18920. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  18921. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  18922. LN_S=$as_ln_s
  18923. if test "$LN_S" = "ln -s"; then
  18924. { echo "$as_me:$LINENO: result: yes" >&5
  18925. echo "${ECHO_T}yes" >&6; }
  18926. else
  18927. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  18928. echo "${ECHO_T}no, using $LN_S" >&6; }
  18929. fi
  18930. if test -n "$ac_tool_prefix"; then
  18931. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  18932. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  18933. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18934. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18935. if test "${ac_cv_prog_RANLIB+set}" = set; then
  18936. echo $ECHO_N "(cached) $ECHO_C" >&6
  18937. else
  18938. if test -n "$RANLIB"; then
  18939. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  18940. else
  18941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18942. for as_dir in $PATH
  18943. do
  18944. IFS=$as_save_IFS
  18945. test -z "$as_dir" && as_dir=.
  18946. for ac_exec_ext in '' $ac_executable_extensions; do
  18947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18948. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  18949. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18950. break 2
  18951. fi
  18952. done
  18953. done
  18954. IFS=$as_save_IFS
  18955. fi
  18956. fi
  18957. RANLIB=$ac_cv_prog_RANLIB
  18958. if test -n "$RANLIB"; then
  18959. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  18960. echo "${ECHO_T}$RANLIB" >&6; }
  18961. else
  18962. { echo "$as_me:$LINENO: result: no" >&5
  18963. echo "${ECHO_T}no" >&6; }
  18964. fi
  18965. fi
  18966. if test -z "$ac_cv_prog_RANLIB"; then
  18967. ac_ct_RANLIB=$RANLIB
  18968. # Extract the first word of "ranlib", so it can be a program name with args.
  18969. set dummy ranlib; ac_word=$2
  18970. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  18971. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18972. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  18973. echo $ECHO_N "(cached) $ECHO_C" >&6
  18974. else
  18975. if test -n "$ac_ct_RANLIB"; then
  18976. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  18977. else
  18978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18979. for as_dir in $PATH
  18980. do
  18981. IFS=$as_save_IFS
  18982. test -z "$as_dir" && as_dir=.
  18983. for ac_exec_ext in '' $ac_executable_extensions; do
  18984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18985. ac_cv_prog_ac_ct_RANLIB="ranlib"
  18986. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18987. break 2
  18988. fi
  18989. done
  18990. done
  18991. IFS=$as_save_IFS
  18992. fi
  18993. fi
  18994. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  18995. if test -n "$ac_ct_RANLIB"; then
  18996. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  18997. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  18998. else
  18999. { echo "$as_me:$LINENO: result: no" >&5
  19000. echo "${ECHO_T}no" >&6; }
  19001. fi
  19002. if test "x$ac_ct_RANLIB" = x; then
  19003. RANLIB=":"
  19004. else
  19005. case $cross_compiling:$ac_tool_warned in
  19006. yes:)
  19007. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  19008. whose name does not start with the host triplet. If you think this
  19009. configuration is useful to you, please write to autoconf@gnu.org." >&5
  19010. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  19011. whose name does not start with the host triplet. If you think this
  19012. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  19013. ac_tool_warned=yes ;;
  19014. esac
  19015. RANLIB=$ac_ct_RANLIB
  19016. fi
  19017. else
  19018. RANLIB="$ac_cv_prog_RANLIB"
  19019. fi
  19020. for ac_prog in gawk mawk nawk awk
  19021. do
  19022. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19023. set dummy $ac_prog; ac_word=$2
  19024. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19025. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19026. if test "${ac_cv_prog_AWK+set}" = set; then
  19027. echo $ECHO_N "(cached) $ECHO_C" >&6
  19028. else
  19029. if test -n "$AWK"; then
  19030. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19031. else
  19032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19033. for as_dir in $PATH
  19034. do
  19035. IFS=$as_save_IFS
  19036. test -z "$as_dir" && as_dir=.
  19037. for ac_exec_ext in '' $ac_executable_extensions; do
  19038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19039. ac_cv_prog_AWK="$ac_prog"
  19040. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19041. break 2
  19042. fi
  19043. done
  19044. done
  19045. IFS=$as_save_IFS
  19046. fi
  19047. fi
  19048. AWK=$ac_cv_prog_AWK
  19049. if test -n "$AWK"; then
  19050. { echo "$as_me:$LINENO: result: $AWK" >&5
  19051. echo "${ECHO_T}$AWK" >&6; }
  19052. else
  19053. { echo "$as_me:$LINENO: result: no" >&5
  19054. echo "${ECHO_T}no" >&6; }
  19055. fi
  19056. test -n "$AWK" && break
  19057. done
  19058. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  19059. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  19060. if test "${ac_cv_path_SED+set}" = set; then
  19061. echo $ECHO_N "(cached) $ECHO_C" >&6
  19062. else
  19063. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  19064. for ac_i in 1 2 3 4 5 6 7; do
  19065. ac_script="$ac_script$as_nl$ac_script"
  19066. done
  19067. echo "$ac_script" | sed 99q >conftest.sed
  19068. $as_unset ac_script || ac_script=
  19069. # Extract the first word of "sed gsed" to use in msg output
  19070. if test -z "$SED"; then
  19071. set dummy sed gsed; ac_prog_name=$2
  19072. if test "${ac_cv_path_SED+set}" = set; then
  19073. echo $ECHO_N "(cached) $ECHO_C" >&6
  19074. else
  19075. ac_path_SED_found=false
  19076. # Loop through the user's path and test for each of PROGNAME-LIST
  19077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19078. for as_dir in $PATH
  19079. do
  19080. IFS=$as_save_IFS
  19081. test -z "$as_dir" && as_dir=.
  19082. for ac_prog in sed gsed; do
  19083. for ac_exec_ext in '' $ac_executable_extensions; do
  19084. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  19085. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  19086. # Check for GNU ac_path_SED and select it if it is found.
  19087. # Check for GNU $ac_path_SED
  19088. case `"$ac_path_SED" --version 2>&1` in
  19089. *GNU*)
  19090. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  19091. *)
  19092. ac_count=0
  19093. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  19094. while :
  19095. do
  19096. cat "conftest.in" "conftest.in" >"conftest.tmp"
  19097. mv "conftest.tmp" "conftest.in"
  19098. cp "conftest.in" "conftest.nl"
  19099. echo '' >> "conftest.nl"
  19100. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19101. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19102. ac_count=`expr $ac_count + 1`
  19103. if test $ac_count -gt ${ac_path_SED_max-0}; then
  19104. # Best one so far, save it but keep looking for a better one
  19105. ac_cv_path_SED="$ac_path_SED"
  19106. ac_path_SED_max=$ac_count
  19107. fi
  19108. # 10*(2^10) chars as input seems more than enough
  19109. test $ac_count -gt 10 && break
  19110. done
  19111. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19112. esac
  19113. $ac_path_SED_found && break 3
  19114. done
  19115. done
  19116. done
  19117. IFS=$as_save_IFS
  19118. fi
  19119. SED="$ac_cv_path_SED"
  19120. if test -z "$SED"; then
  19121. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  19122. echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  19123. { (exit 1); exit 1; }; }
  19124. fi
  19125. else
  19126. ac_cv_path_SED=$SED
  19127. fi
  19128. fi
  19129. { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  19130. echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  19131. SED="$ac_cv_path_SED"
  19132. rm -f conftest.sed
  19133. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19134. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  19135. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19136. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  19137. echo $ECHO_N "(cached) $ECHO_C" >&6
  19138. else
  19139. cat >conftest.make <<\_ACEOF
  19140. SHELL = /bin/sh
  19141. all:
  19142. @echo '@@@%%%=$(MAKE)=@@@%%%'
  19143. _ACEOF
  19144. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19145. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19146. *@@@%%%=?*=@@@%%%*)
  19147. eval ac_cv_prog_make_${ac_make}_set=yes;;
  19148. *)
  19149. eval ac_cv_prog_make_${ac_make}_set=no;;
  19150. esac
  19151. rm -f conftest.make
  19152. fi
  19153. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19154. { echo "$as_me:$LINENO: result: yes" >&5
  19155. echo "${ECHO_T}yes" >&6; }
  19156. SET_MAKE=
  19157. else
  19158. { echo "$as_me:$LINENO: result: no" >&5
  19159. echo "${ECHO_T}no" >&6; }
  19160. SET_MAKE="MAKE=${MAKE-make}"
  19161. fi
  19162. # Extract the first word of "printf", so it can be a program name with args.
  19163. set dummy printf; ac_word=$2
  19164. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19166. if test "${ac_cv_path_PRINTF+set}" = set; then
  19167. echo $ECHO_N "(cached) $ECHO_C" >&6
  19168. else
  19169. case $PRINTF in
  19170. [\\/]* | ?:[\\/]*)
  19171. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  19172. ;;
  19173. *)
  19174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19175. for as_dir in $PATH
  19176. do
  19177. IFS=$as_save_IFS
  19178. test -z "$as_dir" && as_dir=.
  19179. for ac_exec_ext in '' $ac_executable_extensions; do
  19180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19181. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  19182. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19183. break 2
  19184. fi
  19185. done
  19186. done
  19187. IFS=$as_save_IFS
  19188. ;;
  19189. esac
  19190. fi
  19191. PRINTF=$ac_cv_path_PRINTF
  19192. if test -n "$PRINTF"; then
  19193. { echo "$as_me:$LINENO: result: $PRINTF" >&5
  19194. echo "${ECHO_T}$PRINTF" >&6; }
  19195. else
  19196. { echo "$as_me:$LINENO: result: no" >&5
  19197. echo "${ECHO_T}no" >&6; }
  19198. fi
  19199. # Extract the first word of "autogen", so it can be a program name with args.
  19200. set dummy autogen; ac_word=$2
  19201. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  19202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  19203. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  19204. echo $ECHO_N "(cached) $ECHO_C" >&6
  19205. else
  19206. case $AUTOGEN in
  19207. [\\/]* | ?:[\\/]*)
  19208. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  19209. ;;
  19210. *)
  19211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19212. for as_dir in $PATH
  19213. do
  19214. IFS=$as_save_IFS
  19215. test -z "$as_dir" && as_dir=.
  19216. for ac_exec_ext in '' $ac_executable_extensions; do
  19217. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19218. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  19219. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19220. break 2
  19221. fi
  19222. done
  19223. done
  19224. IFS=$as_save_IFS
  19225. ;;
  19226. esac
  19227. fi
  19228. AUTOGEN=$ac_cv_path_AUTOGEN
  19229. if test -n "$AUTOGEN"; then
  19230. { echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  19231. echo "${ECHO_T}$AUTOGEN" >&6; }
  19232. else
  19233. { echo "$as_me:$LINENO: result: no" >&5
  19234. echo "${ECHO_T}no" >&6; }
  19235. fi
  19236. if test -n "${AUTOGEN}" ; then
  19237. { echo "$as_me:$LINENO: checking for autogen version >= 5.9" >&5
  19238. echo $ECHO_N "checking for autogen version >= 5.9... $ECHO_C" >&6; }
  19239. AUTOGEN_VERSION=`${AUTOGEN} -v | ${SED} 's|.*\([0-9\.]\{3,\}\)$|\1|'`
  19240. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.[0-9]|\1|'`
  19241. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${SED} 's|^\([0-9]\)\.\([0-9]\)|\2|'`
  19242. if test ${AUTOGEN_MAJOR} -le 5 && test ${AUTOGEN_MINOR} -lt 9 || test ${AUTOGEN_MAJOR} -lt 5 ; then
  19243. { echo "$as_me:$LINENO: result: no" >&5
  19244. echo "${ECHO_T}no" >&6; }
  19245. { echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&5
  19246. echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9)" >&2;}
  19247. else
  19248. { echo "$as_me:$LINENO: result: yes" >&5
  19249. echo "${ECHO_T}yes" >&6; }
  19250. fi
  19251. else
  19252. { echo "$as_me:$LINENO: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&5
  19253. echo "$as_me: WARNING: Please install autogen >= 5.9 if you are building from SVN" >&2;}
  19254. fi
  19255. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19256. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  19257. if test "${ac_cv_header_stdc+set}" = set; then
  19258. echo $ECHO_N "(cached) $ECHO_C" >&6
  19259. else
  19260. cat >conftest.$ac_ext <<_ACEOF
  19261. /* confdefs.h. */
  19262. _ACEOF
  19263. cat confdefs.h >>conftest.$ac_ext
  19264. cat >>conftest.$ac_ext <<_ACEOF
  19265. /* end confdefs.h. */
  19266. #include <stdlib.h>
  19267. #include <stdarg.h>
  19268. #include <string.h>
  19269. #include <float.h>
  19270. int
  19271. main ()
  19272. {
  19273. ;
  19274. return 0;
  19275. }
  19276. _ACEOF
  19277. rm -f conftest.$ac_objext
  19278. if { (ac_try="$ac_compile"
  19279. case "(($ac_try" in
  19280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19281. *) ac_try_echo=$ac_try;;
  19282. esac
  19283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19284. (eval "$ac_compile") 2>conftest.er1
  19285. ac_status=$?
  19286. grep -v '^ *+' conftest.er1 >conftest.err
  19287. rm -f conftest.er1
  19288. cat conftest.err >&5
  19289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19290. (exit $ac_status); } && {
  19291. test -z "$ac_c_werror_flag" ||
  19292. test ! -s conftest.err
  19293. } && test -s conftest.$ac_objext; then
  19294. ac_cv_header_stdc=yes
  19295. else
  19296. echo "$as_me: failed program was:" >&5
  19297. sed 's/^/| /' conftest.$ac_ext >&5
  19298. ac_cv_header_stdc=no
  19299. fi
  19300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19301. if test $ac_cv_header_stdc = yes; then
  19302. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19303. cat >conftest.$ac_ext <<_ACEOF
  19304. /* confdefs.h. */
  19305. _ACEOF
  19306. cat confdefs.h >>conftest.$ac_ext
  19307. cat >>conftest.$ac_ext <<_ACEOF
  19308. /* end confdefs.h. */
  19309. #include <string.h>
  19310. _ACEOF
  19311. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19312. $EGREP "memchr" >/dev/null 2>&1; then
  19313. :
  19314. else
  19315. ac_cv_header_stdc=no
  19316. fi
  19317. rm -f conftest*
  19318. fi
  19319. if test $ac_cv_header_stdc = yes; then
  19320. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19321. cat >conftest.$ac_ext <<_ACEOF
  19322. /* confdefs.h. */
  19323. _ACEOF
  19324. cat confdefs.h >>conftest.$ac_ext
  19325. cat >>conftest.$ac_ext <<_ACEOF
  19326. /* end confdefs.h. */
  19327. #include <stdlib.h>
  19328. _ACEOF
  19329. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19330. $EGREP "free" >/dev/null 2>&1; then
  19331. :
  19332. else
  19333. ac_cv_header_stdc=no
  19334. fi
  19335. rm -f conftest*
  19336. fi
  19337. if test $ac_cv_header_stdc = yes; then
  19338. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19339. if test "$cross_compiling" = yes; then
  19340. :
  19341. else
  19342. cat >conftest.$ac_ext <<_ACEOF
  19343. /* confdefs.h. */
  19344. _ACEOF
  19345. cat confdefs.h >>conftest.$ac_ext
  19346. cat >>conftest.$ac_ext <<_ACEOF
  19347. /* end confdefs.h. */
  19348. #include <ctype.h>
  19349. #include <stdlib.h>
  19350. #if ((' ' & 0x0FF) == 0x020)
  19351. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19352. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19353. #else
  19354. # define ISLOWER(c) \
  19355. (('a' <= (c) && (c) <= 'i') \
  19356. || ('j' <= (c) && (c) <= 'r') \
  19357. || ('s' <= (c) && (c) <= 'z'))
  19358. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19359. #endif
  19360. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19361. int
  19362. main ()
  19363. {
  19364. int i;
  19365. for (i = 0; i < 256; i++)
  19366. if (XOR (islower (i), ISLOWER (i))
  19367. || toupper (i) != TOUPPER (i))
  19368. return 2;
  19369. return 0;
  19370. }
  19371. _ACEOF
  19372. rm -f conftest$ac_exeext
  19373. if { (ac_try="$ac_link"
  19374. case "(($ac_try" in
  19375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19376. *) ac_try_echo=$ac_try;;
  19377. esac
  19378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19379. (eval "$ac_link") 2>&5
  19380. ac_status=$?
  19381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19382. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19383. { (case "(($ac_try" in
  19384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19385. *) ac_try_echo=$ac_try;;
  19386. esac
  19387. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19388. (eval "$ac_try") 2>&5
  19389. ac_status=$?
  19390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19391. (exit $ac_status); }; }; then
  19392. :
  19393. else
  19394. echo "$as_me: program exited with status $ac_status" >&5
  19395. echo "$as_me: failed program was:" >&5
  19396. sed 's/^/| /' conftest.$ac_ext >&5
  19397. ( exit $ac_status )
  19398. ac_cv_header_stdc=no
  19399. fi
  19400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19401. fi
  19402. fi
  19403. fi
  19404. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  19405. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  19406. if test $ac_cv_header_stdc = yes; then
  19407. cat >>confdefs.h <<\_ACEOF
  19408. #define STDC_HEADERS 1
  19409. _ACEOF
  19410. fi
  19411. { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  19412. echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
  19413. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  19414. echo $ECHO_N "(cached) $ECHO_C" >&6
  19415. else
  19416. cat >conftest.$ac_ext <<_ACEOF
  19417. /* confdefs.h. */
  19418. _ACEOF
  19419. cat confdefs.h >>conftest.$ac_ext
  19420. cat >>conftest.$ac_ext <<_ACEOF
  19421. /* end confdefs.h. */
  19422. #include <sys/types.h>
  19423. int
  19424. main ()
  19425. {
  19426. return makedev(0, 0);
  19427. ;
  19428. return 0;
  19429. }
  19430. _ACEOF
  19431. rm -f conftest.$ac_objext conftest$ac_exeext
  19432. if { (ac_try="$ac_link"
  19433. case "(($ac_try" in
  19434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19435. *) ac_try_echo=$ac_try;;
  19436. esac
  19437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19438. (eval "$ac_link") 2>conftest.er1
  19439. ac_status=$?
  19440. grep -v '^ *+' conftest.er1 >conftest.err
  19441. rm -f conftest.er1
  19442. cat conftest.err >&5
  19443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19444. (exit $ac_status); } && {
  19445. test -z "$ac_c_werror_flag" ||
  19446. test ! -s conftest.err
  19447. } && test -s conftest$ac_exeext &&
  19448. $as_test_x conftest$ac_exeext; then
  19449. ac_cv_header_sys_types_h_makedev=yes
  19450. else
  19451. echo "$as_me: failed program was:" >&5
  19452. sed 's/^/| /' conftest.$ac_ext >&5
  19453. ac_cv_header_sys_types_h_makedev=no
  19454. fi
  19455. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19456. conftest$ac_exeext conftest.$ac_ext
  19457. fi
  19458. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  19459. echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
  19460. if test $ac_cv_header_sys_types_h_makedev = no; then
  19461. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19462. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19463. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19464. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19465. echo $ECHO_N "(cached) $ECHO_C" >&6
  19466. fi
  19467. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19468. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19469. else
  19470. # Is the header compilable?
  19471. { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  19472. echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
  19473. cat >conftest.$ac_ext <<_ACEOF
  19474. /* confdefs.h. */
  19475. _ACEOF
  19476. cat confdefs.h >>conftest.$ac_ext
  19477. cat >>conftest.$ac_ext <<_ACEOF
  19478. /* end confdefs.h. */
  19479. $ac_includes_default
  19480. #include <sys/mkdev.h>
  19481. _ACEOF
  19482. rm -f conftest.$ac_objext
  19483. if { (ac_try="$ac_compile"
  19484. case "(($ac_try" in
  19485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19486. *) ac_try_echo=$ac_try;;
  19487. esac
  19488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19489. (eval "$ac_compile") 2>conftest.er1
  19490. ac_status=$?
  19491. grep -v '^ *+' conftest.er1 >conftest.err
  19492. rm -f conftest.er1
  19493. cat conftest.err >&5
  19494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19495. (exit $ac_status); } && {
  19496. test -z "$ac_c_werror_flag" ||
  19497. test ! -s conftest.err
  19498. } && test -s conftest.$ac_objext; then
  19499. ac_header_compiler=yes
  19500. else
  19501. echo "$as_me: failed program was:" >&5
  19502. sed 's/^/| /' conftest.$ac_ext >&5
  19503. ac_header_compiler=no
  19504. fi
  19505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19506. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19507. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19508. # Is the header present?
  19509. { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  19510. echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
  19511. cat >conftest.$ac_ext <<_ACEOF
  19512. /* confdefs.h. */
  19513. _ACEOF
  19514. cat confdefs.h >>conftest.$ac_ext
  19515. cat >>conftest.$ac_ext <<_ACEOF
  19516. /* end confdefs.h. */
  19517. #include <sys/mkdev.h>
  19518. _ACEOF
  19519. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19520. case "(($ac_try" in
  19521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19522. *) ac_try_echo=$ac_try;;
  19523. esac
  19524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19525. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19526. ac_status=$?
  19527. grep -v '^ *+' conftest.er1 >conftest.err
  19528. rm -f conftest.er1
  19529. cat conftest.err >&5
  19530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19531. (exit $ac_status); } >/dev/null && {
  19532. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19533. test ! -s conftest.err
  19534. }; then
  19535. ac_header_preproc=yes
  19536. else
  19537. echo "$as_me: failed program was:" >&5
  19538. sed 's/^/| /' conftest.$ac_ext >&5
  19539. ac_header_preproc=no
  19540. fi
  19541. rm -f conftest.err conftest.$ac_ext
  19542. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19543. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19544. # So? What about this header?
  19545. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19546. yes:no: )
  19547. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19548. echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19549. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  19550. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  19551. ac_header_preproc=yes
  19552. ;;
  19553. no:yes:* )
  19554. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  19555. echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  19556. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  19557. echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  19558. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  19559. echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  19560. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  19561. echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19562. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  19563. echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  19564. { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  19565. echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  19566. ;;
  19567. esac
  19568. { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  19569. echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
  19570. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  19571. echo $ECHO_N "(cached) $ECHO_C" >&6
  19572. else
  19573. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  19574. fi
  19575. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  19576. echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
  19577. fi
  19578. if test $ac_cv_header_sys_mkdev_h = yes; then
  19579. cat >>confdefs.h <<\_ACEOF
  19580. #define MAJOR_IN_MKDEV 1
  19581. _ACEOF
  19582. fi
  19583. if test $ac_cv_header_sys_mkdev_h = no; then
  19584. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19585. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19586. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19587. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19588. echo $ECHO_N "(cached) $ECHO_C" >&6
  19589. fi
  19590. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19591. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19592. else
  19593. # Is the header compilable?
  19594. { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  19595. echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
  19596. cat >conftest.$ac_ext <<_ACEOF
  19597. /* confdefs.h. */
  19598. _ACEOF
  19599. cat confdefs.h >>conftest.$ac_ext
  19600. cat >>conftest.$ac_ext <<_ACEOF
  19601. /* end confdefs.h. */
  19602. $ac_includes_default
  19603. #include <sys/sysmacros.h>
  19604. _ACEOF
  19605. rm -f conftest.$ac_objext
  19606. if { (ac_try="$ac_compile"
  19607. case "(($ac_try" in
  19608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19609. *) ac_try_echo=$ac_try;;
  19610. esac
  19611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19612. (eval "$ac_compile") 2>conftest.er1
  19613. ac_status=$?
  19614. grep -v '^ *+' conftest.er1 >conftest.err
  19615. rm -f conftest.er1
  19616. cat conftest.err >&5
  19617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19618. (exit $ac_status); } && {
  19619. test -z "$ac_c_werror_flag" ||
  19620. test ! -s conftest.err
  19621. } && test -s conftest.$ac_objext; then
  19622. ac_header_compiler=yes
  19623. else
  19624. echo "$as_me: failed program was:" >&5
  19625. sed 's/^/| /' conftest.$ac_ext >&5
  19626. ac_header_compiler=no
  19627. fi
  19628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19629. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19630. echo "${ECHO_T}$ac_header_compiler" >&6; }
  19631. # Is the header present?
  19632. { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  19633. echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
  19634. cat >conftest.$ac_ext <<_ACEOF
  19635. /* confdefs.h. */
  19636. _ACEOF
  19637. cat confdefs.h >>conftest.$ac_ext
  19638. cat >>conftest.$ac_ext <<_ACEOF
  19639. /* end confdefs.h. */
  19640. #include <sys/sysmacros.h>
  19641. _ACEOF
  19642. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19643. case "(($ac_try" in
  19644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19645. *) ac_try_echo=$ac_try;;
  19646. esac
  19647. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19648. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19649. ac_status=$?
  19650. grep -v '^ *+' conftest.er1 >conftest.err
  19651. rm -f conftest.er1
  19652. cat conftest.err >&5
  19653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19654. (exit $ac_status); } >/dev/null && {
  19655. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19656. test ! -s conftest.err
  19657. }; then
  19658. ac_header_preproc=yes
  19659. else
  19660. echo "$as_me: failed program was:" >&5
  19661. sed 's/^/| /' conftest.$ac_ext >&5
  19662. ac_header_preproc=no
  19663. fi
  19664. rm -f conftest.err conftest.$ac_ext
  19665. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19666. echo "${ECHO_T}$ac_header_preproc" >&6; }
  19667. # So? What about this header?
  19668. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19669. yes:no: )
  19670. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19671. echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19672. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  19673. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  19674. ac_header_preproc=yes
  19675. ;;
  19676. no:yes:* )
  19677. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  19678. echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  19679. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  19680. echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  19681. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  19682. echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  19683. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  19684. echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19685. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  19686. echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  19687. { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  19688. echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  19689. ;;
  19690. esac
  19691. { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  19692. echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
  19693. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  19694. echo $ECHO_N "(cached) $ECHO_C" >&6
  19695. else
  19696. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  19697. fi
  19698. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  19699. echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
  19700. fi
  19701. if test $ac_cv_header_sys_sysmacros_h = yes; then
  19702. cat >>confdefs.h <<\_ACEOF
  19703. #define MAJOR_IN_SYSMACROS 1
  19704. _ACEOF
  19705. fi
  19706. fi
  19707. fi
  19708. { echo "$as_me:$LINENO: checking for size_t" >&5
  19709. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  19710. if test "${ac_cv_type_size_t+set}" = set; then
  19711. echo $ECHO_N "(cached) $ECHO_C" >&6
  19712. else
  19713. cat >conftest.$ac_ext <<_ACEOF
  19714. /* confdefs.h. */
  19715. _ACEOF
  19716. cat confdefs.h >>conftest.$ac_ext
  19717. cat >>conftest.$ac_ext <<_ACEOF
  19718. /* end confdefs.h. */
  19719. $ac_includes_default
  19720. typedef size_t ac__type_new_;
  19721. int
  19722. main ()
  19723. {
  19724. if ((ac__type_new_ *) 0)
  19725. return 0;
  19726. if (sizeof (ac__type_new_))
  19727. return 0;
  19728. ;
  19729. return 0;
  19730. }
  19731. _ACEOF
  19732. rm -f conftest.$ac_objext
  19733. if { (ac_try="$ac_compile"
  19734. case "(($ac_try" in
  19735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19736. *) ac_try_echo=$ac_try;;
  19737. esac
  19738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19739. (eval "$ac_compile") 2>conftest.er1
  19740. ac_status=$?
  19741. grep -v '^ *+' conftest.er1 >conftest.err
  19742. rm -f conftest.er1
  19743. cat conftest.err >&5
  19744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19745. (exit $ac_status); } && {
  19746. test -z "$ac_c_werror_flag" ||
  19747. test ! -s conftest.err
  19748. } && test -s conftest.$ac_objext; then
  19749. ac_cv_type_size_t=yes
  19750. else
  19751. echo "$as_me: failed program was:" >&5
  19752. sed 's/^/| /' conftest.$ac_ext >&5
  19753. ac_cv_type_size_t=no
  19754. fi
  19755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19756. fi
  19757. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19758. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  19759. if test $ac_cv_type_size_t = yes; then
  19760. :
  19761. else
  19762. cat >>confdefs.h <<_ACEOF
  19763. #define size_t unsigned int
  19764. _ACEOF
  19765. fi
  19766. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19767. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  19768. if test "${ac_cv_header_time+set}" = set; then
  19769. echo $ECHO_N "(cached) $ECHO_C" >&6
  19770. else
  19771. cat >conftest.$ac_ext <<_ACEOF
  19772. /* confdefs.h. */
  19773. _ACEOF
  19774. cat confdefs.h >>conftest.$ac_ext
  19775. cat >>conftest.$ac_ext <<_ACEOF
  19776. /* end confdefs.h. */
  19777. #include <sys/types.h>
  19778. #include <sys/time.h>
  19779. #include <time.h>
  19780. int
  19781. main ()
  19782. {
  19783. if ((struct tm *) 0)
  19784. return 0;
  19785. ;
  19786. return 0;
  19787. }
  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_cv_header_time=yes
  19807. else
  19808. echo "$as_me: failed program was:" >&5
  19809. sed 's/^/| /' conftest.$ac_ext >&5
  19810. ac_cv_header_time=no
  19811. fi
  19812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19813. fi
  19814. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19815. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  19816. if test $ac_cv_header_time = yes; then
  19817. cat >>confdefs.h <<\_ACEOF
  19818. #define TIME_WITH_SYS_TIME 1
  19819. _ACEOF
  19820. fi
  19821. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  19822. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  19823. if test "${ac_cv_c_const+set}" = set; then
  19824. echo $ECHO_N "(cached) $ECHO_C" >&6
  19825. else
  19826. cat >conftest.$ac_ext <<_ACEOF
  19827. /* confdefs.h. */
  19828. _ACEOF
  19829. cat confdefs.h >>conftest.$ac_ext
  19830. cat >>conftest.$ac_ext <<_ACEOF
  19831. /* end confdefs.h. */
  19832. int
  19833. main ()
  19834. {
  19835. /* FIXME: Include the comments suggested by Paul. */
  19836. #ifndef __cplusplus
  19837. /* Ultrix mips cc rejects this. */
  19838. typedef int charset[2];
  19839. const charset cs;
  19840. /* SunOS 4.1.1 cc rejects this. */
  19841. char const *const *pcpcc;
  19842. char **ppc;
  19843. /* NEC SVR4.0.2 mips cc rejects this. */
  19844. struct point {int x, y;};
  19845. static struct point const zero = {0,0};
  19846. /* AIX XL C 1.02.0.0 rejects this.
  19847. It does not let you subtract one const X* pointer from another in
  19848. an arm of an if-expression whose if-part is not a constant
  19849. expression */
  19850. const char *g = "string";
  19851. pcpcc = &g + (g ? g-g : 0);
  19852. /* HPUX 7.0 cc rejects these. */
  19853. ++pcpcc;
  19854. ppc = (char**) pcpcc;
  19855. pcpcc = (char const *const *) ppc;
  19856. { /* SCO 3.2v4 cc rejects this. */
  19857. char *t;
  19858. char const *s = 0 ? (char *) 0 : (char const *) 0;
  19859. *t++ = 0;
  19860. if (s) return 0;
  19861. }
  19862. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19863. int x[] = {25, 17};
  19864. const int *foo = &x[0];
  19865. ++foo;
  19866. }
  19867. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19868. typedef const int *iptr;
  19869. iptr p = 0;
  19870. ++p;
  19871. }
  19872. { /* AIX XL C 1.02.0.0 rejects this saying
  19873. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19874. struct s { int j; const int *ap[3]; };
  19875. struct s *b; b->j = 5;
  19876. }
  19877. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19878. const int foo = 10;
  19879. if (!foo) return 0;
  19880. }
  19881. return !cs[0] && !zero.x;
  19882. #endif
  19883. ;
  19884. return 0;
  19885. }
  19886. _ACEOF
  19887. rm -f conftest.$ac_objext
  19888. if { (ac_try="$ac_compile"
  19889. case "(($ac_try" in
  19890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19891. *) ac_try_echo=$ac_try;;
  19892. esac
  19893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19894. (eval "$ac_compile") 2>conftest.er1
  19895. ac_status=$?
  19896. grep -v '^ *+' conftest.er1 >conftest.err
  19897. rm -f conftest.er1
  19898. cat conftest.err >&5
  19899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19900. (exit $ac_status); } && {
  19901. test -z "$ac_c_werror_flag" ||
  19902. test ! -s conftest.err
  19903. } && test -s conftest.$ac_objext; then
  19904. ac_cv_c_const=yes
  19905. else
  19906. echo "$as_me: failed program was:" >&5
  19907. sed 's/^/| /' conftest.$ac_ext >&5
  19908. ac_cv_c_const=no
  19909. fi
  19910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19911. fi
  19912. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  19913. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  19914. if test $ac_cv_c_const = no; then
  19915. cat >>confdefs.h <<\_ACEOF
  19916. #define const
  19917. _ACEOF
  19918. fi
  19919. { echo "$as_me:$LINENO: checking for inline" >&5
  19920. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  19921. if test "${ac_cv_c_inline+set}" = set; then
  19922. echo $ECHO_N "(cached) $ECHO_C" >&6
  19923. else
  19924. ac_cv_c_inline=no
  19925. for ac_kw in inline __inline__ __inline; do
  19926. cat >conftest.$ac_ext <<_ACEOF
  19927. /* confdefs.h. */
  19928. _ACEOF
  19929. cat confdefs.h >>conftest.$ac_ext
  19930. cat >>conftest.$ac_ext <<_ACEOF
  19931. /* end confdefs.h. */
  19932. #ifndef __cplusplus
  19933. typedef int foo_t;
  19934. static $ac_kw foo_t static_foo () {return 0; }
  19935. $ac_kw foo_t foo () {return 0; }
  19936. #endif
  19937. _ACEOF
  19938. rm -f conftest.$ac_objext
  19939. if { (ac_try="$ac_compile"
  19940. case "(($ac_try" in
  19941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19942. *) ac_try_echo=$ac_try;;
  19943. esac
  19944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19945. (eval "$ac_compile") 2>conftest.er1
  19946. ac_status=$?
  19947. grep -v '^ *+' conftest.er1 >conftest.err
  19948. rm -f conftest.er1
  19949. cat conftest.err >&5
  19950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19951. (exit $ac_status); } && {
  19952. test -z "$ac_c_werror_flag" ||
  19953. test ! -s conftest.err
  19954. } && test -s conftest.$ac_objext; then
  19955. ac_cv_c_inline=$ac_kw
  19956. else
  19957. echo "$as_me: failed program was:" >&5
  19958. sed 's/^/| /' conftest.$ac_ext >&5
  19959. fi
  19960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19961. test "$ac_cv_c_inline" != no && break
  19962. done
  19963. fi
  19964. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  19965. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  19966. case $ac_cv_c_inline in
  19967. inline | yes) ;;
  19968. *)
  19969. case $ac_cv_c_inline in
  19970. no) ac_val=;;
  19971. *) ac_val=$ac_cv_c_inline;;
  19972. esac
  19973. cat >>confdefs.h <<_ACEOF
  19974. #ifndef __cplusplus
  19975. #define inline $ac_val
  19976. #endif
  19977. _ACEOF
  19978. ;;
  19979. esac
  19980. # Check whether --enable-largefile was given.
  19981. if test "${enable_largefile+set}" = set; then
  19982. enableval=$enable_largefile;
  19983. fi
  19984. if test "$enable_largefile" != no; then
  19985. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  19986. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  19987. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  19988. echo $ECHO_N "(cached) $ECHO_C" >&6
  19989. else
  19990. ac_cv_sys_largefile_CC=no
  19991. if test "$GCC" != yes; then
  19992. ac_save_CC=$CC
  19993. while :; do
  19994. # IRIX 6.2 and later do not support large files by default,
  19995. # so use the C compiler's -n32 option if that helps.
  19996. cat >conftest.$ac_ext <<_ACEOF
  19997. /* confdefs.h. */
  19998. _ACEOF
  19999. cat confdefs.h >>conftest.$ac_ext
  20000. cat >>conftest.$ac_ext <<_ACEOF
  20001. /* end confdefs.h. */
  20002. #include <sys/types.h>
  20003. /* Check that off_t can represent 2**63 - 1 correctly.
  20004. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20005. since some C++ compilers masquerading as C compilers
  20006. incorrectly reject 9223372036854775807. */
  20007. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20008. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20009. && LARGE_OFF_T % 2147483647 == 1)
  20010. ? 1 : -1];
  20011. int
  20012. main ()
  20013. {
  20014. ;
  20015. return 0;
  20016. }
  20017. _ACEOF
  20018. rm -f conftest.$ac_objext
  20019. if { (ac_try="$ac_compile"
  20020. case "(($ac_try" in
  20021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20022. *) ac_try_echo=$ac_try;;
  20023. esac
  20024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20025. (eval "$ac_compile") 2>conftest.er1
  20026. ac_status=$?
  20027. grep -v '^ *+' conftest.er1 >conftest.err
  20028. rm -f conftest.er1
  20029. cat conftest.err >&5
  20030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20031. (exit $ac_status); } && {
  20032. test -z "$ac_c_werror_flag" ||
  20033. test ! -s conftest.err
  20034. } && test -s conftest.$ac_objext; then
  20035. break
  20036. else
  20037. echo "$as_me: failed program was:" >&5
  20038. sed 's/^/| /' conftest.$ac_ext >&5
  20039. fi
  20040. rm -f core conftest.err conftest.$ac_objext
  20041. CC="$CC -n32"
  20042. rm -f conftest.$ac_objext
  20043. if { (ac_try="$ac_compile"
  20044. case "(($ac_try" in
  20045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20046. *) ac_try_echo=$ac_try;;
  20047. esac
  20048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20049. (eval "$ac_compile") 2>conftest.er1
  20050. ac_status=$?
  20051. grep -v '^ *+' conftest.er1 >conftest.err
  20052. rm -f conftest.er1
  20053. cat conftest.err >&5
  20054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20055. (exit $ac_status); } && {
  20056. test -z "$ac_c_werror_flag" ||
  20057. test ! -s conftest.err
  20058. } && test -s conftest.$ac_objext; then
  20059. ac_cv_sys_largefile_CC=' -n32'; break
  20060. else
  20061. echo "$as_me: failed program was:" >&5
  20062. sed 's/^/| /' conftest.$ac_ext >&5
  20063. fi
  20064. rm -f core conftest.err conftest.$ac_objext
  20065. break
  20066. done
  20067. CC=$ac_save_CC
  20068. rm -f conftest.$ac_ext
  20069. fi
  20070. fi
  20071. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  20072. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  20073. if test "$ac_cv_sys_largefile_CC" != no; then
  20074. CC=$CC$ac_cv_sys_largefile_CC
  20075. fi
  20076. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  20077. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  20078. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  20079. echo $ECHO_N "(cached) $ECHO_C" >&6
  20080. else
  20081. while :; do
  20082. cat >conftest.$ac_ext <<_ACEOF
  20083. /* confdefs.h. */
  20084. _ACEOF
  20085. cat confdefs.h >>conftest.$ac_ext
  20086. cat >>conftest.$ac_ext <<_ACEOF
  20087. /* end confdefs.h. */
  20088. #include <sys/types.h>
  20089. /* Check that off_t can represent 2**63 - 1 correctly.
  20090. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20091. since some C++ compilers masquerading as C compilers
  20092. incorrectly reject 9223372036854775807. */
  20093. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20094. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20095. && LARGE_OFF_T % 2147483647 == 1)
  20096. ? 1 : -1];
  20097. int
  20098. main ()
  20099. {
  20100. ;
  20101. return 0;
  20102. }
  20103. _ACEOF
  20104. rm -f conftest.$ac_objext
  20105. if { (ac_try="$ac_compile"
  20106. case "(($ac_try" in
  20107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20108. *) ac_try_echo=$ac_try;;
  20109. esac
  20110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20111. (eval "$ac_compile") 2>conftest.er1
  20112. ac_status=$?
  20113. grep -v '^ *+' conftest.er1 >conftest.err
  20114. rm -f conftest.er1
  20115. cat conftest.err >&5
  20116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20117. (exit $ac_status); } && {
  20118. test -z "$ac_c_werror_flag" ||
  20119. test ! -s conftest.err
  20120. } && test -s conftest.$ac_objext; then
  20121. ac_cv_sys_file_offset_bits=no; break
  20122. else
  20123. echo "$as_me: failed program was:" >&5
  20124. sed 's/^/| /' conftest.$ac_ext >&5
  20125. fi
  20126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20127. cat >conftest.$ac_ext <<_ACEOF
  20128. /* confdefs.h. */
  20129. _ACEOF
  20130. cat confdefs.h >>conftest.$ac_ext
  20131. cat >>conftest.$ac_ext <<_ACEOF
  20132. /* end confdefs.h. */
  20133. #define _FILE_OFFSET_BITS 64
  20134. #include <sys/types.h>
  20135. /* Check that off_t can represent 2**63 - 1 correctly.
  20136. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20137. since some C++ compilers masquerading as C compilers
  20138. incorrectly reject 9223372036854775807. */
  20139. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20140. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20141. && LARGE_OFF_T % 2147483647 == 1)
  20142. ? 1 : -1];
  20143. int
  20144. main ()
  20145. {
  20146. ;
  20147. return 0;
  20148. }
  20149. _ACEOF
  20150. rm -f conftest.$ac_objext
  20151. if { (ac_try="$ac_compile"
  20152. case "(($ac_try" in
  20153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20154. *) ac_try_echo=$ac_try;;
  20155. esac
  20156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20157. (eval "$ac_compile") 2>conftest.er1
  20158. ac_status=$?
  20159. grep -v '^ *+' conftest.er1 >conftest.err
  20160. rm -f conftest.er1
  20161. cat conftest.err >&5
  20162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20163. (exit $ac_status); } && {
  20164. test -z "$ac_c_werror_flag" ||
  20165. test ! -s conftest.err
  20166. } && test -s conftest.$ac_objext; then
  20167. ac_cv_sys_file_offset_bits=64; break
  20168. else
  20169. echo "$as_me: failed program was:" >&5
  20170. sed 's/^/| /' conftest.$ac_ext >&5
  20171. fi
  20172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20173. ac_cv_sys_file_offset_bits=unknown
  20174. break
  20175. done
  20176. fi
  20177. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  20178. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  20179. case $ac_cv_sys_file_offset_bits in #(
  20180. no | unknown) ;;
  20181. *)
  20182. cat >>confdefs.h <<_ACEOF
  20183. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  20184. _ACEOF
  20185. ;;
  20186. esac
  20187. rm -f conftest*
  20188. if test $ac_cv_sys_file_offset_bits = unknown; then
  20189. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  20190. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  20191. if test "${ac_cv_sys_large_files+set}" = set; then
  20192. echo $ECHO_N "(cached) $ECHO_C" >&6
  20193. else
  20194. while :; do
  20195. cat >conftest.$ac_ext <<_ACEOF
  20196. /* confdefs.h. */
  20197. _ACEOF
  20198. cat confdefs.h >>conftest.$ac_ext
  20199. cat >>conftest.$ac_ext <<_ACEOF
  20200. /* end confdefs.h. */
  20201. #include <sys/types.h>
  20202. /* Check that off_t can represent 2**63 - 1 correctly.
  20203. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20204. since some C++ compilers masquerading as C compilers
  20205. incorrectly reject 9223372036854775807. */
  20206. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20207. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20208. && LARGE_OFF_T % 2147483647 == 1)
  20209. ? 1 : -1];
  20210. int
  20211. main ()
  20212. {
  20213. ;
  20214. return 0;
  20215. }
  20216. _ACEOF
  20217. rm -f conftest.$ac_objext
  20218. if { (ac_try="$ac_compile"
  20219. case "(($ac_try" in
  20220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20221. *) ac_try_echo=$ac_try;;
  20222. esac
  20223. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20224. (eval "$ac_compile") 2>conftest.er1
  20225. ac_status=$?
  20226. grep -v '^ *+' conftest.er1 >conftest.err
  20227. rm -f conftest.er1
  20228. cat conftest.err >&5
  20229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20230. (exit $ac_status); } && {
  20231. test -z "$ac_c_werror_flag" ||
  20232. test ! -s conftest.err
  20233. } && test -s conftest.$ac_objext; then
  20234. ac_cv_sys_large_files=no; break
  20235. else
  20236. echo "$as_me: failed program was:" >&5
  20237. sed 's/^/| /' conftest.$ac_ext >&5
  20238. fi
  20239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20240. cat >conftest.$ac_ext <<_ACEOF
  20241. /* confdefs.h. */
  20242. _ACEOF
  20243. cat confdefs.h >>conftest.$ac_ext
  20244. cat >>conftest.$ac_ext <<_ACEOF
  20245. /* end confdefs.h. */
  20246. #define _LARGE_FILES 1
  20247. #include <sys/types.h>
  20248. /* Check that off_t can represent 2**63 - 1 correctly.
  20249. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  20250. since some C++ compilers masquerading as C compilers
  20251. incorrectly reject 9223372036854775807. */
  20252. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  20253. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  20254. && LARGE_OFF_T % 2147483647 == 1)
  20255. ? 1 : -1];
  20256. int
  20257. main ()
  20258. {
  20259. ;
  20260. return 0;
  20261. }
  20262. _ACEOF
  20263. rm -f conftest.$ac_objext
  20264. if { (ac_try="$ac_compile"
  20265. case "(($ac_try" in
  20266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20267. *) ac_try_echo=$ac_try;;
  20268. esac
  20269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20270. (eval "$ac_compile") 2>conftest.er1
  20271. ac_status=$?
  20272. grep -v '^ *+' conftest.er1 >conftest.err
  20273. rm -f conftest.er1
  20274. cat conftest.err >&5
  20275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20276. (exit $ac_status); } && {
  20277. test -z "$ac_c_werror_flag" ||
  20278. test ! -s conftest.err
  20279. } && test -s conftest.$ac_objext; then
  20280. ac_cv_sys_large_files=1; break
  20281. else
  20282. echo "$as_me: failed program was:" >&5
  20283. sed 's/^/| /' conftest.$ac_ext >&5
  20284. fi
  20285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20286. ac_cv_sys_large_files=unknown
  20287. break
  20288. done
  20289. fi
  20290. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  20291. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  20292. case $ac_cv_sys_large_files in #(
  20293. no | unknown) ;;
  20294. *)
  20295. cat >>confdefs.h <<_ACEOF
  20296. #define _LARGE_FILES $ac_cv_sys_large_files
  20297. _ACEOF
  20298. ;;
  20299. esac
  20300. rm -f conftest*
  20301. fi
  20302. fi
  20303. { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  20304. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
  20305. if test "${ac_cv_sys_largefile_source+set}" = set; then
  20306. echo $ECHO_N "(cached) $ECHO_C" >&6
  20307. else
  20308. while :; do
  20309. cat >conftest.$ac_ext <<_ACEOF
  20310. /* confdefs.h. */
  20311. _ACEOF
  20312. cat confdefs.h >>conftest.$ac_ext
  20313. cat >>conftest.$ac_ext <<_ACEOF
  20314. /* end confdefs.h. */
  20315. #include <stdio.h>
  20316. int
  20317. main ()
  20318. {
  20319. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20320. ;
  20321. return 0;
  20322. }
  20323. _ACEOF
  20324. rm -f conftest.$ac_objext conftest$ac_exeext
  20325. if { (ac_try="$ac_link"
  20326. case "(($ac_try" in
  20327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20328. *) ac_try_echo=$ac_try;;
  20329. esac
  20330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20331. (eval "$ac_link") 2>conftest.er1
  20332. ac_status=$?
  20333. grep -v '^ *+' conftest.er1 >conftest.err
  20334. rm -f conftest.er1
  20335. cat conftest.err >&5
  20336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20337. (exit $ac_status); } && {
  20338. test -z "$ac_c_werror_flag" ||
  20339. test ! -s conftest.err
  20340. } && test -s conftest$ac_exeext &&
  20341. $as_test_x conftest$ac_exeext; then
  20342. ac_cv_sys_largefile_source=no; break
  20343. else
  20344. echo "$as_me: failed program was:" >&5
  20345. sed 's/^/| /' conftest.$ac_ext >&5
  20346. fi
  20347. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20348. conftest$ac_exeext conftest.$ac_ext
  20349. cat >conftest.$ac_ext <<_ACEOF
  20350. /* confdefs.h. */
  20351. _ACEOF
  20352. cat confdefs.h >>conftest.$ac_ext
  20353. cat >>conftest.$ac_ext <<_ACEOF
  20354. /* end confdefs.h. */
  20355. #define _LARGEFILE_SOURCE 1
  20356. #include <stdio.h>
  20357. int
  20358. main ()
  20359. {
  20360. return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
  20361. ;
  20362. return 0;
  20363. }
  20364. _ACEOF
  20365. rm -f conftest.$ac_objext conftest$ac_exeext
  20366. if { (ac_try="$ac_link"
  20367. case "(($ac_try" in
  20368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20369. *) ac_try_echo=$ac_try;;
  20370. esac
  20371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20372. (eval "$ac_link") 2>conftest.er1
  20373. ac_status=$?
  20374. grep -v '^ *+' conftest.er1 >conftest.err
  20375. rm -f conftest.er1
  20376. cat conftest.err >&5
  20377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20378. (exit $ac_status); } && {
  20379. test -z "$ac_c_werror_flag" ||
  20380. test ! -s conftest.err
  20381. } && test -s conftest$ac_exeext &&
  20382. $as_test_x conftest$ac_exeext; then
  20383. ac_cv_sys_largefile_source=1; break
  20384. else
  20385. echo "$as_me: failed program was:" >&5
  20386. sed 's/^/| /' conftest.$ac_ext >&5
  20387. fi
  20388. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20389. conftest$ac_exeext conftest.$ac_ext
  20390. ac_cv_sys_largefile_source=unknown
  20391. break
  20392. done
  20393. fi
  20394. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  20395. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
  20396. case $ac_cv_sys_largefile_source in #(
  20397. no | unknown) ;;
  20398. *)
  20399. cat >>confdefs.h <<_ACEOF
  20400. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  20401. _ACEOF
  20402. ;;
  20403. esac
  20404. rm -f conftest*
  20405. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  20406. # in glibc 2.1.3, but that breaks too many other things.
  20407. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  20408. if test $ac_cv_sys_largefile_source != unknown; then
  20409. cat >>confdefs.h <<\_ACEOF
  20410. #define HAVE_FSEEKO 1
  20411. _ACEOF
  20412. fi
  20413. { echo "$as_me:$LINENO: checking for u_int8_t" >&5
  20414. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6; }
  20415. if test "${ac_cv_type_u_int8_t+set}" = set; then
  20416. echo $ECHO_N "(cached) $ECHO_C" >&6
  20417. else
  20418. cat >conftest.$ac_ext <<_ACEOF
  20419. /* confdefs.h. */
  20420. _ACEOF
  20421. cat confdefs.h >>conftest.$ac_ext
  20422. cat >>conftest.$ac_ext <<_ACEOF
  20423. /* end confdefs.h. */
  20424. $ac_includes_default
  20425. typedef u_int8_t ac__type_new_;
  20426. int
  20427. main ()
  20428. {
  20429. if ((ac__type_new_ *) 0)
  20430. return 0;
  20431. if (sizeof (ac__type_new_))
  20432. return 0;
  20433. ;
  20434. return 0;
  20435. }
  20436. _ACEOF
  20437. rm -f conftest.$ac_objext
  20438. if { (ac_try="$ac_compile"
  20439. case "(($ac_try" in
  20440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20441. *) ac_try_echo=$ac_try;;
  20442. esac
  20443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20444. (eval "$ac_compile") 2>conftest.er1
  20445. ac_status=$?
  20446. grep -v '^ *+' conftest.er1 >conftest.err
  20447. rm -f conftest.er1
  20448. cat conftest.err >&5
  20449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20450. (exit $ac_status); } && {
  20451. test -z "$ac_c_werror_flag" ||
  20452. test ! -s conftest.err
  20453. } && test -s conftest.$ac_objext; then
  20454. ac_cv_type_u_int8_t=yes
  20455. else
  20456. echo "$as_me: failed program was:" >&5
  20457. sed 's/^/| /' conftest.$ac_ext >&5
  20458. ac_cv_type_u_int8_t=no
  20459. fi
  20460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20461. fi
  20462. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  20463. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6; }
  20464. if test $ac_cv_type_u_int8_t = yes; then
  20465. :
  20466. else
  20467. cat >>confdefs.h <<_ACEOF
  20468. #define u_int8_t uint8_t
  20469. _ACEOF
  20470. fi
  20471. { echo "$as_me:$LINENO: checking for u_int16_t" >&5
  20472. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
  20473. if test "${ac_cv_type_u_int16_t+set}" = set; then
  20474. echo $ECHO_N "(cached) $ECHO_C" >&6
  20475. else
  20476. cat >conftest.$ac_ext <<_ACEOF
  20477. /* confdefs.h. */
  20478. _ACEOF
  20479. cat confdefs.h >>conftest.$ac_ext
  20480. cat >>conftest.$ac_ext <<_ACEOF
  20481. /* end confdefs.h. */
  20482. $ac_includes_default
  20483. typedef u_int16_t ac__type_new_;
  20484. int
  20485. main ()
  20486. {
  20487. if ((ac__type_new_ *) 0)
  20488. return 0;
  20489. if (sizeof (ac__type_new_))
  20490. return 0;
  20491. ;
  20492. return 0;
  20493. }
  20494. _ACEOF
  20495. rm -f conftest.$ac_objext
  20496. if { (ac_try="$ac_compile"
  20497. case "(($ac_try" in
  20498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20499. *) ac_try_echo=$ac_try;;
  20500. esac
  20501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20502. (eval "$ac_compile") 2>conftest.er1
  20503. ac_status=$?
  20504. grep -v '^ *+' conftest.er1 >conftest.err
  20505. rm -f conftest.er1
  20506. cat conftest.err >&5
  20507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20508. (exit $ac_status); } && {
  20509. test -z "$ac_c_werror_flag" ||
  20510. test ! -s conftest.err
  20511. } && test -s conftest.$ac_objext; then
  20512. ac_cv_type_u_int16_t=yes
  20513. else
  20514. echo "$as_me: failed program was:" >&5
  20515. sed 's/^/| /' conftest.$ac_ext >&5
  20516. ac_cv_type_u_int16_t=no
  20517. fi
  20518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20519. fi
  20520. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  20521. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
  20522. if test $ac_cv_type_u_int16_t = yes; then
  20523. :
  20524. else
  20525. cat >>confdefs.h <<_ACEOF
  20526. #define u_int16_t uint16_t
  20527. _ACEOF
  20528. fi
  20529. { echo "$as_me:$LINENO: checking for u_int32_t" >&5
  20530. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
  20531. if test "${ac_cv_type_u_int32_t+set}" = set; then
  20532. echo $ECHO_N "(cached) $ECHO_C" >&6
  20533. else
  20534. cat >conftest.$ac_ext <<_ACEOF
  20535. /* confdefs.h. */
  20536. _ACEOF
  20537. cat confdefs.h >>conftest.$ac_ext
  20538. cat >>conftest.$ac_ext <<_ACEOF
  20539. /* end confdefs.h. */
  20540. $ac_includes_default
  20541. typedef u_int32_t ac__type_new_;
  20542. int
  20543. main ()
  20544. {
  20545. if ((ac__type_new_ *) 0)
  20546. return 0;
  20547. if (sizeof (ac__type_new_))
  20548. return 0;
  20549. ;
  20550. return 0;
  20551. }
  20552. _ACEOF
  20553. rm -f conftest.$ac_objext
  20554. if { (ac_try="$ac_compile"
  20555. case "(($ac_try" in
  20556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20557. *) ac_try_echo=$ac_try;;
  20558. esac
  20559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20560. (eval "$ac_compile") 2>conftest.er1
  20561. ac_status=$?
  20562. grep -v '^ *+' conftest.er1 >conftest.err
  20563. rm -f conftest.er1
  20564. cat conftest.err >&5
  20565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20566. (exit $ac_status); } && {
  20567. test -z "$ac_c_werror_flag" ||
  20568. test ! -s conftest.err
  20569. } && test -s conftest.$ac_objext; then
  20570. ac_cv_type_u_int32_t=yes
  20571. else
  20572. echo "$as_me: failed program was:" >&5
  20573. sed 's/^/| /' conftest.$ac_ext >&5
  20574. ac_cv_type_u_int32_t=no
  20575. fi
  20576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20577. fi
  20578. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  20579. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
  20580. if test $ac_cv_type_u_int32_t = yes; then
  20581. :
  20582. else
  20583. cat >>confdefs.h <<_ACEOF
  20584. #define u_int32_t uint32_t
  20585. _ACEOF
  20586. fi
  20587. { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  20588. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
  20589. if test "${ac_cv_type_u_int64_t+set}" = set; then
  20590. echo $ECHO_N "(cached) $ECHO_C" >&6
  20591. else
  20592. cat >conftest.$ac_ext <<_ACEOF
  20593. /* confdefs.h. */
  20594. _ACEOF
  20595. cat confdefs.h >>conftest.$ac_ext
  20596. cat >>conftest.$ac_ext <<_ACEOF
  20597. /* end confdefs.h. */
  20598. $ac_includes_default
  20599. typedef u_int64_t ac__type_new_;
  20600. int
  20601. main ()
  20602. {
  20603. if ((ac__type_new_ *) 0)
  20604. return 0;
  20605. if (sizeof (ac__type_new_))
  20606. return 0;
  20607. ;
  20608. return 0;
  20609. }
  20610. _ACEOF
  20611. rm -f conftest.$ac_objext
  20612. if { (ac_try="$ac_compile"
  20613. case "(($ac_try" in
  20614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20615. *) ac_try_echo=$ac_try;;
  20616. esac
  20617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20618. (eval "$ac_compile") 2>conftest.er1
  20619. ac_status=$?
  20620. grep -v '^ *+' conftest.er1 >conftest.err
  20621. rm -f conftest.er1
  20622. cat conftest.err >&5
  20623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20624. (exit $ac_status); } && {
  20625. test -z "$ac_c_werror_flag" ||
  20626. test ! -s conftest.err
  20627. } && test -s conftest.$ac_objext; then
  20628. ac_cv_type_u_int64_t=yes
  20629. else
  20630. echo "$as_me: failed program was:" >&5
  20631. sed 's/^/| /' conftest.$ac_ext >&5
  20632. ac_cv_type_u_int64_t=no
  20633. fi
  20634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20635. fi
  20636. { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  20637. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
  20638. if test $ac_cv_type_u_int64_t = yes; then
  20639. :
  20640. else
  20641. cat >>confdefs.h <<_ACEOF
  20642. #define u_int64_t uint64_t
  20643. _ACEOF
  20644. fi
  20645. { echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  20646. echo $ECHO_N "checking for $CC -Wextra support... $ECHO_C" >&6; }
  20647. OLD_CFLAGS=$CFLAGS
  20648. CFLAGS="$CFLAGS -Wextra"
  20649. wextra=""
  20650. cat >conftest.$ac_ext <<_ACEOF
  20651. #include <stdlib.h>
  20652. int main(int argc, char *argv) { return(0); }
  20653. _ACEOF
  20654. rm -f conftest.$ac_objext
  20655. if { (ac_try="$ac_compile"
  20656. case "(($ac_try" in
  20657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20658. *) ac_try_echo=$ac_try;;
  20659. esac
  20660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20661. (eval "$ac_compile") 2>conftest.er1
  20662. ac_status=$?
  20663. grep -v '^ *+' conftest.er1 >conftest.err
  20664. rm -f conftest.er1
  20665. cat conftest.err >&5
  20666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20667. (exit $ac_status); } && {
  20668. test -z "$ac_c_werror_flag" ||
  20669. test ! -s conftest.err
  20670. } && test -s conftest.$ac_objext; then
  20671. { echo "$as_me:$LINENO: result: yes" >&5
  20672. echo "${ECHO_T}yes" >&6; }
  20673. wextra="-Wextra"
  20674. else
  20675. echo "$as_me: failed program was:" >&5
  20676. sed 's/^/| /' conftest.$ac_ext >&5
  20677. { echo "$as_me:$LINENO: result: no" >&5
  20678. echo "${ECHO_T}no" >&6; }
  20679. fi
  20680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20681. CFLAGS="$OLD_CFLAGS $wextra"
  20682. { echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  20683. echo $ECHO_N "checking for $CC -Wno-variadic-macros support... $ECHO_C" >&6; }
  20684. OLD_CFLAGS=$CFLAGS
  20685. CFLAGS="$CFLAGS -Wno-variadic-macros"
  20686. wno_variadic_macros=""
  20687. cat >conftest.$ac_ext <<_ACEOF
  20688. #include <stdlib.h>
  20689. int main(int argc, char *argv) { return(0); }
  20690. _ACEOF
  20691. rm -f conftest.$ac_objext
  20692. if { (ac_try="$ac_compile"
  20693. case "(($ac_try" in
  20694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20695. *) ac_try_echo=$ac_try;;
  20696. esac
  20697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20698. (eval "$ac_compile") 2>conftest.er1
  20699. ac_status=$?
  20700. grep -v '^ *+' conftest.er1 >conftest.err
  20701. rm -f conftest.er1
  20702. cat conftest.err >&5
  20703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20704. (exit $ac_status); } && {
  20705. test -z "$ac_c_werror_flag" ||
  20706. test ! -s conftest.err
  20707. } && test -s conftest.$ac_objext; then
  20708. { echo "$as_me:$LINENO: result: yes" >&5
  20709. echo "${ECHO_T}yes" >&6; }
  20710. wno_variadic_macros="-Wno-variadic-macros"
  20711. else
  20712. echo "$as_me: failed program was:" >&5
  20713. sed 's/^/| /' conftest.$ac_ext >&5
  20714. { echo "$as_me:$LINENO: result: no" >&5
  20715. echo "${ECHO_T}no" >&6; }
  20716. fi
  20717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20718. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  20719. { echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  20720. echo $ECHO_N "checking for $CC -Wfatal-errors support... $ECHO_C" >&6; }
  20721. OLD_CFLAGS=$CFLAGS
  20722. CFLAGS="$CFLAGS -Wfatal-errors"
  20723. wfatal_errors=""
  20724. cat >conftest.$ac_ext <<_ACEOF
  20725. #include <stdlib.h>
  20726. int main(int argc, char *argv) { return(0); }
  20727. _ACEOF
  20728. rm -f conftest.$ac_objext
  20729. if { (ac_try="$ac_compile"
  20730. case "(($ac_try" in
  20731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20732. *) ac_try_echo=$ac_try;;
  20733. esac
  20734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20735. (eval "$ac_compile") 2>conftest.er1
  20736. ac_status=$?
  20737. grep -v '^ *+' conftest.er1 >conftest.err
  20738. rm -f conftest.er1
  20739. cat conftest.err >&5
  20740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20741. (exit $ac_status); } && {
  20742. test -z "$ac_c_werror_flag" ||
  20743. test ! -s conftest.err
  20744. } && test -s conftest.$ac_objext; then
  20745. { echo "$as_me:$LINENO: result: yes" >&5
  20746. echo "${ECHO_T}yes" >&6; }
  20747. wfatal_errors="-Wfatal-errors"
  20748. else
  20749. echo "$as_me: failed program was:" >&5
  20750. sed 's/^/| /' conftest.$ac_ext >&5
  20751. { echo "$as_me:$LINENO: result: no" >&5
  20752. echo "${ECHO_T}no" >&6; }
  20753. fi
  20754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20755. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  20756. 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
  20757. do
  20758. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20759. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20760. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20761. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20762. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20763. echo $ECHO_N "(cached) $ECHO_C" >&6
  20764. fi
  20765. ac_res=`eval echo '${'$as_ac_Header'}'`
  20766. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20767. echo "${ECHO_T}$ac_res" >&6; }
  20768. else
  20769. # Is the header compilable?
  20770. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20771. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  20772. cat >conftest.$ac_ext <<_ACEOF
  20773. /* confdefs.h. */
  20774. _ACEOF
  20775. cat confdefs.h >>conftest.$ac_ext
  20776. cat >>conftest.$ac_ext <<_ACEOF
  20777. /* end confdefs.h. */
  20778. $ac_includes_default
  20779. #include <$ac_header>
  20780. _ACEOF
  20781. rm -f conftest.$ac_objext
  20782. if { (ac_try="$ac_compile"
  20783. case "(($ac_try" in
  20784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20785. *) ac_try_echo=$ac_try;;
  20786. esac
  20787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20788. (eval "$ac_compile") 2>conftest.er1
  20789. ac_status=$?
  20790. grep -v '^ *+' conftest.er1 >conftest.err
  20791. rm -f conftest.er1
  20792. cat conftest.err >&5
  20793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20794. (exit $ac_status); } && {
  20795. test -z "$ac_c_werror_flag" ||
  20796. test ! -s conftest.err
  20797. } && test -s conftest.$ac_objext; then
  20798. ac_header_compiler=yes
  20799. else
  20800. echo "$as_me: failed program was:" >&5
  20801. sed 's/^/| /' conftest.$ac_ext >&5
  20802. ac_header_compiler=no
  20803. fi
  20804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20805. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20806. echo "${ECHO_T}$ac_header_compiler" >&6; }
  20807. # Is the header present?
  20808. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20809. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  20810. cat >conftest.$ac_ext <<_ACEOF
  20811. /* confdefs.h. */
  20812. _ACEOF
  20813. cat confdefs.h >>conftest.$ac_ext
  20814. cat >>conftest.$ac_ext <<_ACEOF
  20815. /* end confdefs.h. */
  20816. #include <$ac_header>
  20817. _ACEOF
  20818. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20819. case "(($ac_try" in
  20820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20821. *) ac_try_echo=$ac_try;;
  20822. esac
  20823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20824. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20825. ac_status=$?
  20826. grep -v '^ *+' conftest.er1 >conftest.err
  20827. rm -f conftest.er1
  20828. cat conftest.err >&5
  20829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20830. (exit $ac_status); } >/dev/null && {
  20831. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20832. test ! -s conftest.err
  20833. }; then
  20834. ac_header_preproc=yes
  20835. else
  20836. echo "$as_me: failed program was:" >&5
  20837. sed 's/^/| /' conftest.$ac_ext >&5
  20838. ac_header_preproc=no
  20839. fi
  20840. rm -f conftest.err conftest.$ac_ext
  20841. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20842. echo "${ECHO_T}$ac_header_preproc" >&6; }
  20843. # So? What about this header?
  20844. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20845. yes:no: )
  20846. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20847. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20848. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20849. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20850. ac_header_preproc=yes
  20851. ;;
  20852. no:yes:* )
  20853. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20854. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20855. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20856. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20857. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20858. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20859. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20860. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20861. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20862. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20863. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20864. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20865. ;;
  20866. esac
  20867. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20868. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20869. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20870. echo $ECHO_N "(cached) $ECHO_C" >&6
  20871. else
  20872. eval "$as_ac_Header=\$ac_header_preproc"
  20873. fi
  20874. ac_res=`eval echo '${'$as_ac_Header'}'`
  20875. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20876. echo "${ECHO_T}$ac_res" >&6; }
  20877. fi
  20878. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20879. cat >>confdefs.h <<_ACEOF
  20880. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20881. _ACEOF
  20882. fi
  20883. done
  20884. for ac_header in sys/sysctl.h net/route.h
  20885. do
  20886. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20887. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  20888. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  20889. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20890. echo $ECHO_N "(cached) $ECHO_C" >&6
  20891. else
  20892. cat >conftest.$ac_ext <<_ACEOF
  20893. /* confdefs.h. */
  20894. _ACEOF
  20895. cat confdefs.h >>conftest.$ac_ext
  20896. cat >>conftest.$ac_ext <<_ACEOF
  20897. /* end confdefs.h. */
  20898. #if HAVE_SYS_PARAM_H
  20899. #include <sys/param.h>
  20900. #endif
  20901. #if HAVE_SYS_TYPES_H
  20902. #include <sys/types.h>
  20903. #endif
  20904. #if HAVE_SYS_SOCKET_H
  20905. #include <sys/socket.h>
  20906. #endif
  20907. #include <$ac_header>
  20908. _ACEOF
  20909. rm -f conftest.$ac_objext
  20910. if { (ac_try="$ac_compile"
  20911. case "(($ac_try" in
  20912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20913. *) ac_try_echo=$ac_try;;
  20914. esac
  20915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20916. (eval "$ac_compile") 2>conftest.er1
  20917. ac_status=$?
  20918. grep -v '^ *+' conftest.er1 >conftest.err
  20919. rm -f conftest.er1
  20920. cat conftest.err >&5
  20921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20922. (exit $ac_status); } && {
  20923. test -z "$ac_c_werror_flag" ||
  20924. test ! -s conftest.err
  20925. } && test -s conftest.$ac_objext; then
  20926. eval "$as_ac_Header=yes"
  20927. else
  20928. echo "$as_me: failed program was:" >&5
  20929. sed 's/^/| /' conftest.$ac_ext >&5
  20930. eval "$as_ac_Header=no"
  20931. fi
  20932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20933. fi
  20934. ac_res=`eval echo '${'$as_ac_Header'}'`
  20935. { echo "$as_me:$LINENO: result: $ac_res" >&5
  20936. echo "${ECHO_T}$ac_res" >&6; }
  20937. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20938. cat >>confdefs.h <<_ACEOF
  20939. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20940. _ACEOF
  20941. fi
  20942. done
  20943. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  20944. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  20945. if test "${ac_cv_lib_socket_socket+set}" = set; then
  20946. echo $ECHO_N "(cached) $ECHO_C" >&6
  20947. else
  20948. ac_check_lib_save_LIBS=$LIBS
  20949. LIBS="-lsocket $LIBS"
  20950. cat >conftest.$ac_ext <<_ACEOF
  20951. /* confdefs.h. */
  20952. _ACEOF
  20953. cat confdefs.h >>conftest.$ac_ext
  20954. cat >>conftest.$ac_ext <<_ACEOF
  20955. /* end confdefs.h. */
  20956. /* Override any GCC internal prototype to avoid an error.
  20957. Use char because int might match the return type of a GCC
  20958. builtin and then its argument prototype would still apply. */
  20959. #ifdef __cplusplus
  20960. extern "C"
  20961. #endif
  20962. char socket ();
  20963. int
  20964. main ()
  20965. {
  20966. return socket ();
  20967. ;
  20968. return 0;
  20969. }
  20970. _ACEOF
  20971. rm -f conftest.$ac_objext conftest$ac_exeext
  20972. if { (ac_try="$ac_link"
  20973. case "(($ac_try" in
  20974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20975. *) ac_try_echo=$ac_try;;
  20976. esac
  20977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20978. (eval "$ac_link") 2>conftest.er1
  20979. ac_status=$?
  20980. grep -v '^ *+' conftest.er1 >conftest.err
  20981. rm -f conftest.er1
  20982. cat conftest.err >&5
  20983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20984. (exit $ac_status); } && {
  20985. test -z "$ac_c_werror_flag" ||
  20986. test ! -s conftest.err
  20987. } && test -s conftest$ac_exeext &&
  20988. $as_test_x conftest$ac_exeext; then
  20989. ac_cv_lib_socket_socket=yes
  20990. else
  20991. echo "$as_me: failed program was:" >&5
  20992. sed 's/^/| /' conftest.$ac_ext >&5
  20993. ac_cv_lib_socket_socket=no
  20994. fi
  20995. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20996. conftest$ac_exeext conftest.$ac_ext
  20997. LIBS=$ac_check_lib_save_LIBS
  20998. fi
  20999. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  21000. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  21001. if test $ac_cv_lib_socket_socket = yes; then
  21002. cat >>confdefs.h <<_ACEOF
  21003. #define HAVE_LIBSOCKET 1
  21004. _ACEOF
  21005. LIBS="-lsocket $LIBS"
  21006. fi
  21007. { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  21008. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
  21009. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  21010. echo $ECHO_N "(cached) $ECHO_C" >&6
  21011. else
  21012. ac_check_lib_save_LIBS=$LIBS
  21013. LIBS="-lnsl $LIBS"
  21014. cat >conftest.$ac_ext <<_ACEOF
  21015. /* confdefs.h. */
  21016. _ACEOF
  21017. cat confdefs.h >>conftest.$ac_ext
  21018. cat >>conftest.$ac_ext <<_ACEOF
  21019. /* end confdefs.h. */
  21020. /* Override any GCC internal prototype to avoid an error.
  21021. Use char because int might match the return type of a GCC
  21022. builtin and then its argument prototype would still apply. */
  21023. #ifdef __cplusplus
  21024. extern "C"
  21025. #endif
  21026. char gethostbyname ();
  21027. int
  21028. main ()
  21029. {
  21030. return gethostbyname ();
  21031. ;
  21032. return 0;
  21033. }
  21034. _ACEOF
  21035. rm -f conftest.$ac_objext conftest$ac_exeext
  21036. if { (ac_try="$ac_link"
  21037. case "(($ac_try" in
  21038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21039. *) ac_try_echo=$ac_try;;
  21040. esac
  21041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21042. (eval "$ac_link") 2>conftest.er1
  21043. ac_status=$?
  21044. grep -v '^ *+' conftest.er1 >conftest.err
  21045. rm -f conftest.er1
  21046. cat conftest.err >&5
  21047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21048. (exit $ac_status); } && {
  21049. test -z "$ac_c_werror_flag" ||
  21050. test ! -s conftest.err
  21051. } && test -s conftest$ac_exeext &&
  21052. $as_test_x conftest$ac_exeext; then
  21053. ac_cv_lib_nsl_gethostbyname=yes
  21054. else
  21055. echo "$as_me: failed program was:" >&5
  21056. sed 's/^/| /' conftest.$ac_ext >&5
  21057. ac_cv_lib_nsl_gethostbyname=no
  21058. fi
  21059. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21060. conftest$ac_exeext conftest.$ac_ext
  21061. LIBS=$ac_check_lib_save_LIBS
  21062. fi
  21063. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  21064. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
  21065. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  21066. cat >>confdefs.h <<_ACEOF
  21067. #define HAVE_LIBNSL 1
  21068. _ACEOF
  21069. LIBS="-lnsl $LIBS"
  21070. fi
  21071. { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  21072. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
  21073. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  21074. echo $ECHO_N "(cached) $ECHO_C" >&6
  21075. else
  21076. ac_check_lib_save_LIBS=$LIBS
  21077. LIBS="-lrt $LIBS"
  21078. cat >conftest.$ac_ext <<_ACEOF
  21079. /* confdefs.h. */
  21080. _ACEOF
  21081. cat confdefs.h >>conftest.$ac_ext
  21082. cat >>conftest.$ac_ext <<_ACEOF
  21083. /* end confdefs.h. */
  21084. /* Override any GCC internal prototype to avoid an error.
  21085. Use char because int might match the return type of a GCC
  21086. builtin and then its argument prototype would still apply. */
  21087. #ifdef __cplusplus
  21088. extern "C"
  21089. #endif
  21090. char nanosleep ();
  21091. int
  21092. main ()
  21093. {
  21094. return nanosleep ();
  21095. ;
  21096. return 0;
  21097. }
  21098. _ACEOF
  21099. rm -f conftest.$ac_objext conftest$ac_exeext
  21100. if { (ac_try="$ac_link"
  21101. case "(($ac_try" in
  21102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21103. *) ac_try_echo=$ac_try;;
  21104. esac
  21105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21106. (eval "$ac_link") 2>conftest.er1
  21107. ac_status=$?
  21108. grep -v '^ *+' conftest.er1 >conftest.err
  21109. rm -f conftest.er1
  21110. cat conftest.err >&5
  21111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21112. (exit $ac_status); } && {
  21113. test -z "$ac_c_werror_flag" ||
  21114. test ! -s conftest.err
  21115. } && test -s conftest$ac_exeext &&
  21116. $as_test_x conftest$ac_exeext; then
  21117. ac_cv_lib_rt_nanosleep=yes
  21118. else
  21119. echo "$as_me: failed program was:" >&5
  21120. sed 's/^/| /' conftest.$ac_ext >&5
  21121. ac_cv_lib_rt_nanosleep=no
  21122. fi
  21123. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21124. conftest$ac_exeext conftest.$ac_ext
  21125. LIBS=$ac_check_lib_save_LIBS
  21126. fi
  21127. { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  21128. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
  21129. if test $ac_cv_lib_rt_nanosleep = yes; then
  21130. cat >>confdefs.h <<_ACEOF
  21131. #define HAVE_LIBRT 1
  21132. _ACEOF
  21133. LIBS="-lrt $LIBS"
  21134. fi
  21135. for ac_header in stdlib.h
  21136. do
  21137. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21138. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21139. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21140. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21141. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21142. echo $ECHO_N "(cached) $ECHO_C" >&6
  21143. fi
  21144. ac_res=`eval echo '${'$as_ac_Header'}'`
  21145. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21146. echo "${ECHO_T}$ac_res" >&6; }
  21147. else
  21148. # Is the header compilable?
  21149. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21150. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  21151. cat >conftest.$ac_ext <<_ACEOF
  21152. /* confdefs.h. */
  21153. _ACEOF
  21154. cat confdefs.h >>conftest.$ac_ext
  21155. cat >>conftest.$ac_ext <<_ACEOF
  21156. /* end confdefs.h. */
  21157. $ac_includes_default
  21158. #include <$ac_header>
  21159. _ACEOF
  21160. rm -f conftest.$ac_objext
  21161. if { (ac_try="$ac_compile"
  21162. case "(($ac_try" in
  21163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21164. *) ac_try_echo=$ac_try;;
  21165. esac
  21166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21167. (eval "$ac_compile") 2>conftest.er1
  21168. ac_status=$?
  21169. grep -v '^ *+' conftest.er1 >conftest.err
  21170. rm -f conftest.er1
  21171. cat conftest.err >&5
  21172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21173. (exit $ac_status); } && {
  21174. test -z "$ac_c_werror_flag" ||
  21175. test ! -s conftest.err
  21176. } && test -s conftest.$ac_objext; then
  21177. ac_header_compiler=yes
  21178. else
  21179. echo "$as_me: failed program was:" >&5
  21180. sed 's/^/| /' conftest.$ac_ext >&5
  21181. ac_header_compiler=no
  21182. fi
  21183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21184. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21185. echo "${ECHO_T}$ac_header_compiler" >&6; }
  21186. # Is the header present?
  21187. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21188. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  21189. cat >conftest.$ac_ext <<_ACEOF
  21190. /* confdefs.h. */
  21191. _ACEOF
  21192. cat confdefs.h >>conftest.$ac_ext
  21193. cat >>conftest.$ac_ext <<_ACEOF
  21194. /* end confdefs.h. */
  21195. #include <$ac_header>
  21196. _ACEOF
  21197. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21198. case "(($ac_try" in
  21199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21200. *) ac_try_echo=$ac_try;;
  21201. esac
  21202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21203. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21204. ac_status=$?
  21205. grep -v '^ *+' conftest.er1 >conftest.err
  21206. rm -f conftest.er1
  21207. cat conftest.err >&5
  21208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21209. (exit $ac_status); } >/dev/null && {
  21210. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21211. test ! -s conftest.err
  21212. }; then
  21213. ac_header_preproc=yes
  21214. else
  21215. echo "$as_me: failed program was:" >&5
  21216. sed 's/^/| /' conftest.$ac_ext >&5
  21217. ac_header_preproc=no
  21218. fi
  21219. rm -f conftest.err conftest.$ac_ext
  21220. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21221. echo "${ECHO_T}$ac_header_preproc" >&6; }
  21222. # So? What about this header?
  21223. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21224. yes:no: )
  21225. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21226. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21227. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21228. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21229. ac_header_preproc=yes
  21230. ;;
  21231. no:yes:* )
  21232. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21233. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21234. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21235. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21236. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21237. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21238. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21239. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21240. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21241. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21242. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21243. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21244. ;;
  21245. esac
  21246. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  21247. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  21248. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21249. echo $ECHO_N "(cached) $ECHO_C" >&6
  21250. else
  21251. eval "$as_ac_Header=\$ac_header_preproc"
  21252. fi
  21253. ac_res=`eval echo '${'$as_ac_Header'}'`
  21254. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21255. echo "${ECHO_T}$ac_res" >&6; }
  21256. fi
  21257. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  21258. cat >>confdefs.h <<_ACEOF
  21259. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21260. _ACEOF
  21261. fi
  21262. done
  21263. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  21264. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  21265. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  21266. echo $ECHO_N "(cached) $ECHO_C" >&6
  21267. else
  21268. if test "$cross_compiling" = yes; then
  21269. ac_cv_func_malloc_0_nonnull=no
  21270. else
  21271. cat >conftest.$ac_ext <<_ACEOF
  21272. /* confdefs.h. */
  21273. _ACEOF
  21274. cat confdefs.h >>conftest.$ac_ext
  21275. cat >>conftest.$ac_ext <<_ACEOF
  21276. /* end confdefs.h. */
  21277. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  21278. # include <stdlib.h>
  21279. #else
  21280. char *malloc ();
  21281. #endif
  21282. int
  21283. main ()
  21284. {
  21285. return ! malloc (0);
  21286. ;
  21287. return 0;
  21288. }
  21289. _ACEOF
  21290. rm -f conftest$ac_exeext
  21291. if { (ac_try="$ac_link"
  21292. case "(($ac_try" in
  21293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21294. *) ac_try_echo=$ac_try;;
  21295. esac
  21296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21297. (eval "$ac_link") 2>&5
  21298. ac_status=$?
  21299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21300. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21301. { (case "(($ac_try" in
  21302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21303. *) ac_try_echo=$ac_try;;
  21304. esac
  21305. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21306. (eval "$ac_try") 2>&5
  21307. ac_status=$?
  21308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21309. (exit $ac_status); }; }; then
  21310. ac_cv_func_malloc_0_nonnull=yes
  21311. else
  21312. echo "$as_me: program exited with status $ac_status" >&5
  21313. echo "$as_me: failed program was:" >&5
  21314. sed 's/^/| /' conftest.$ac_ext >&5
  21315. ( exit $ac_status )
  21316. ac_cv_func_malloc_0_nonnull=no
  21317. fi
  21318. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21319. fi
  21320. fi
  21321. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  21322. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  21323. if test $ac_cv_func_malloc_0_nonnull = yes; then
  21324. cat >>confdefs.h <<\_ACEOF
  21325. #define HAVE_MALLOC 1
  21326. _ACEOF
  21327. else
  21328. cat >>confdefs.h <<\_ACEOF
  21329. #define HAVE_MALLOC 0
  21330. _ACEOF
  21331. case " $LIBOBJS " in
  21332. *" malloc.$ac_objext "* ) ;;
  21333. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  21334. ;;
  21335. esac
  21336. cat >>confdefs.h <<\_ACEOF
  21337. #define malloc rpl_malloc
  21338. _ACEOF
  21339. fi
  21340. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  21341. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  21342. if test "${ac_cv_func_memcmp_working+set}" = set; then
  21343. echo $ECHO_N "(cached) $ECHO_C" >&6
  21344. else
  21345. if test "$cross_compiling" = yes; then
  21346. ac_cv_func_memcmp_working=no
  21347. else
  21348. cat >conftest.$ac_ext <<_ACEOF
  21349. /* confdefs.h. */
  21350. _ACEOF
  21351. cat confdefs.h >>conftest.$ac_ext
  21352. cat >>conftest.$ac_ext <<_ACEOF
  21353. /* end confdefs.h. */
  21354. $ac_includes_default
  21355. int
  21356. main ()
  21357. {
  21358. /* Some versions of memcmp are not 8-bit clean. */
  21359. char c0 = '\100', c1 = '\200', c2 = '\201';
  21360. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  21361. return 1;
  21362. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  21363. or more and with at least one buffer not starting on a 4-byte boundary.
  21364. William Lewis provided this test program. */
  21365. {
  21366. char foo[21];
  21367. char bar[21];
  21368. int i;
  21369. for (i = 0; i < 4; i++)
  21370. {
  21371. char *a = foo + i;
  21372. char *b = bar + i;
  21373. strcpy (a, "--------01111111");
  21374. strcpy (b, "--------10000000");
  21375. if (memcmp (a, b, 16) >= 0)
  21376. return 1;
  21377. }
  21378. return 0;
  21379. }
  21380. ;
  21381. return 0;
  21382. }
  21383. _ACEOF
  21384. rm -f conftest$ac_exeext
  21385. if { (ac_try="$ac_link"
  21386. case "(($ac_try" in
  21387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21388. *) ac_try_echo=$ac_try;;
  21389. esac
  21390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21391. (eval "$ac_link") 2>&5
  21392. ac_status=$?
  21393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21394. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21395. { (case "(($ac_try" in
  21396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21397. *) ac_try_echo=$ac_try;;
  21398. esac
  21399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21400. (eval "$ac_try") 2>&5
  21401. ac_status=$?
  21402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21403. (exit $ac_status); }; }; then
  21404. ac_cv_func_memcmp_working=yes
  21405. else
  21406. echo "$as_me: program exited with status $ac_status" >&5
  21407. echo "$as_me: failed program was:" >&5
  21408. sed 's/^/| /' conftest.$ac_ext >&5
  21409. ( exit $ac_status )
  21410. ac_cv_func_memcmp_working=no
  21411. fi
  21412. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21413. fi
  21414. fi
  21415. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  21416. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  21417. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  21418. *" memcmp.$ac_objext "* ) ;;
  21419. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  21420. ;;
  21421. esac
  21422. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  21423. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  21424. if test "${ac_cv_type_signal+set}" = set; then
  21425. echo $ECHO_N "(cached) $ECHO_C" >&6
  21426. else
  21427. cat >conftest.$ac_ext <<_ACEOF
  21428. /* confdefs.h. */
  21429. _ACEOF
  21430. cat confdefs.h >>conftest.$ac_ext
  21431. cat >>conftest.$ac_ext <<_ACEOF
  21432. /* end confdefs.h. */
  21433. #include <sys/types.h>
  21434. #include <signal.h>
  21435. int
  21436. main ()
  21437. {
  21438. return *(signal (0, 0)) (0) == 1;
  21439. ;
  21440. return 0;
  21441. }
  21442. _ACEOF
  21443. rm -f conftest.$ac_objext
  21444. if { (ac_try="$ac_compile"
  21445. case "(($ac_try" in
  21446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21447. *) ac_try_echo=$ac_try;;
  21448. esac
  21449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21450. (eval "$ac_compile") 2>conftest.er1
  21451. ac_status=$?
  21452. grep -v '^ *+' conftest.er1 >conftest.err
  21453. rm -f conftest.er1
  21454. cat conftest.err >&5
  21455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21456. (exit $ac_status); } && {
  21457. test -z "$ac_c_werror_flag" ||
  21458. test ! -s conftest.err
  21459. } && test -s conftest.$ac_objext; then
  21460. ac_cv_type_signal=int
  21461. else
  21462. echo "$as_me: failed program was:" >&5
  21463. sed 's/^/| /' conftest.$ac_ext >&5
  21464. ac_cv_type_signal=void
  21465. fi
  21466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21467. fi
  21468. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  21469. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  21470. cat >>confdefs.h <<_ACEOF
  21471. #define RETSIGTYPE $ac_cv_type_signal
  21472. _ACEOF
  21473. for ac_func in vprintf
  21474. do
  21475. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21476. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21477. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21478. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21479. echo $ECHO_N "(cached) $ECHO_C" >&6
  21480. else
  21481. cat >conftest.$ac_ext <<_ACEOF
  21482. /* confdefs.h. */
  21483. _ACEOF
  21484. cat confdefs.h >>conftest.$ac_ext
  21485. cat >>conftest.$ac_ext <<_ACEOF
  21486. /* end confdefs.h. */
  21487. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21488. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21489. #define $ac_func innocuous_$ac_func
  21490. /* System header to define __stub macros and hopefully few prototypes,
  21491. which can conflict with char $ac_func (); below.
  21492. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21493. <limits.h> exists even on freestanding compilers. */
  21494. #ifdef __STDC__
  21495. # include <limits.h>
  21496. #else
  21497. # include <assert.h>
  21498. #endif
  21499. #undef $ac_func
  21500. /* Override any GCC internal prototype to avoid an error.
  21501. Use char because int might match the return type of a GCC
  21502. builtin and then its argument prototype would still apply. */
  21503. #ifdef __cplusplus
  21504. extern "C"
  21505. #endif
  21506. char $ac_func ();
  21507. /* The GNU C library defines this for functions which it implements
  21508. to always fail with ENOSYS. Some functions are actually named
  21509. something starting with __ and the normal name is an alias. */
  21510. #if defined __stub_$ac_func || defined __stub___$ac_func
  21511. choke me
  21512. #endif
  21513. int
  21514. main ()
  21515. {
  21516. return $ac_func ();
  21517. ;
  21518. return 0;
  21519. }
  21520. _ACEOF
  21521. rm -f conftest.$ac_objext conftest$ac_exeext
  21522. if { (ac_try="$ac_link"
  21523. case "(($ac_try" in
  21524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21525. *) ac_try_echo=$ac_try;;
  21526. esac
  21527. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21528. (eval "$ac_link") 2>conftest.er1
  21529. ac_status=$?
  21530. grep -v '^ *+' conftest.er1 >conftest.err
  21531. rm -f conftest.er1
  21532. cat conftest.err >&5
  21533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21534. (exit $ac_status); } && {
  21535. test -z "$ac_c_werror_flag" ||
  21536. test ! -s conftest.err
  21537. } && test -s conftest$ac_exeext &&
  21538. $as_test_x conftest$ac_exeext; then
  21539. eval "$as_ac_var=yes"
  21540. else
  21541. echo "$as_me: failed program was:" >&5
  21542. sed 's/^/| /' conftest.$ac_ext >&5
  21543. eval "$as_ac_var=no"
  21544. fi
  21545. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21546. conftest$ac_exeext conftest.$ac_ext
  21547. fi
  21548. ac_res=`eval echo '${'$as_ac_var'}'`
  21549. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21550. echo "${ECHO_T}$ac_res" >&6; }
  21551. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21552. cat >>confdefs.h <<_ACEOF
  21553. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21554. _ACEOF
  21555. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  21556. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  21557. if test "${ac_cv_func__doprnt+set}" = set; then
  21558. echo $ECHO_N "(cached) $ECHO_C" >&6
  21559. else
  21560. cat >conftest.$ac_ext <<_ACEOF
  21561. /* confdefs.h. */
  21562. _ACEOF
  21563. cat confdefs.h >>conftest.$ac_ext
  21564. cat >>conftest.$ac_ext <<_ACEOF
  21565. /* end confdefs.h. */
  21566. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21567. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21568. #define _doprnt innocuous__doprnt
  21569. /* System header to define __stub macros and hopefully few prototypes,
  21570. which can conflict with char _doprnt (); below.
  21571. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21572. <limits.h> exists even on freestanding compilers. */
  21573. #ifdef __STDC__
  21574. # include <limits.h>
  21575. #else
  21576. # include <assert.h>
  21577. #endif
  21578. #undef _doprnt
  21579. /* Override any GCC internal prototype to avoid an error.
  21580. Use char because int might match the return type of a GCC
  21581. builtin and then its argument prototype would still apply. */
  21582. #ifdef __cplusplus
  21583. extern "C"
  21584. #endif
  21585. char _doprnt ();
  21586. /* The GNU C library defines this for functions which it implements
  21587. to always fail with ENOSYS. Some functions are actually named
  21588. something starting with __ and the normal name is an alias. */
  21589. #if defined __stub__doprnt || defined __stub____doprnt
  21590. choke me
  21591. #endif
  21592. int
  21593. main ()
  21594. {
  21595. return _doprnt ();
  21596. ;
  21597. return 0;
  21598. }
  21599. _ACEOF
  21600. rm -f conftest.$ac_objext conftest$ac_exeext
  21601. if { (ac_try="$ac_link"
  21602. case "(($ac_try" in
  21603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21604. *) ac_try_echo=$ac_try;;
  21605. esac
  21606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21607. (eval "$ac_link") 2>conftest.er1
  21608. ac_status=$?
  21609. grep -v '^ *+' conftest.er1 >conftest.err
  21610. rm -f conftest.er1
  21611. cat conftest.err >&5
  21612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21613. (exit $ac_status); } && {
  21614. test -z "$ac_c_werror_flag" ||
  21615. test ! -s conftest.err
  21616. } && test -s conftest$ac_exeext &&
  21617. $as_test_x conftest$ac_exeext; then
  21618. ac_cv_func__doprnt=yes
  21619. else
  21620. echo "$as_me: failed program was:" >&5
  21621. sed 's/^/| /' conftest.$ac_ext >&5
  21622. ac_cv_func__doprnt=no
  21623. fi
  21624. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21625. conftest$ac_exeext conftest.$ac_ext
  21626. fi
  21627. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21628. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  21629. if test $ac_cv_func__doprnt = yes; then
  21630. cat >>confdefs.h <<\_ACEOF
  21631. #define HAVE_DOPRNT 1
  21632. _ACEOF
  21633. fi
  21634. fi
  21635. done
  21636. { echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  21637. echo $ECHO_N "checking for struct timeval.tv_sec... $ECHO_C" >&6; }
  21638. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  21639. echo $ECHO_N "(cached) $ECHO_C" >&6
  21640. else
  21641. cat >conftest.$ac_ext <<_ACEOF
  21642. /* confdefs.h. */
  21643. _ACEOF
  21644. cat confdefs.h >>conftest.$ac_ext
  21645. cat >>conftest.$ac_ext <<_ACEOF
  21646. /* end confdefs.h. */
  21647. $ac_includes_default
  21648. int
  21649. main ()
  21650. {
  21651. static struct timeval ac_aggr;
  21652. if (ac_aggr.tv_sec)
  21653. return 0;
  21654. ;
  21655. return 0;
  21656. }
  21657. _ACEOF
  21658. rm -f conftest.$ac_objext
  21659. if { (ac_try="$ac_compile"
  21660. case "(($ac_try" in
  21661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21662. *) ac_try_echo=$ac_try;;
  21663. esac
  21664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21665. (eval "$ac_compile") 2>conftest.er1
  21666. ac_status=$?
  21667. grep -v '^ *+' conftest.er1 >conftest.err
  21668. rm -f conftest.er1
  21669. cat conftest.err >&5
  21670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21671. (exit $ac_status); } && {
  21672. test -z "$ac_c_werror_flag" ||
  21673. test ! -s conftest.err
  21674. } && test -s conftest.$ac_objext; then
  21675. ac_cv_member_struct_timeval_tv_sec=yes
  21676. else
  21677. echo "$as_me: failed program was:" >&5
  21678. sed 's/^/| /' conftest.$ac_ext >&5
  21679. cat >conftest.$ac_ext <<_ACEOF
  21680. /* confdefs.h. */
  21681. _ACEOF
  21682. cat confdefs.h >>conftest.$ac_ext
  21683. cat >>conftest.$ac_ext <<_ACEOF
  21684. /* end confdefs.h. */
  21685. $ac_includes_default
  21686. int
  21687. main ()
  21688. {
  21689. static struct timeval ac_aggr;
  21690. if (sizeof ac_aggr.tv_sec)
  21691. return 0;
  21692. ;
  21693. return 0;
  21694. }
  21695. _ACEOF
  21696. rm -f conftest.$ac_objext
  21697. if { (ac_try="$ac_compile"
  21698. case "(($ac_try" in
  21699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21700. *) ac_try_echo=$ac_try;;
  21701. esac
  21702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21703. (eval "$ac_compile") 2>conftest.er1
  21704. ac_status=$?
  21705. grep -v '^ *+' conftest.er1 >conftest.err
  21706. rm -f conftest.er1
  21707. cat conftest.err >&5
  21708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21709. (exit $ac_status); } && {
  21710. test -z "$ac_c_werror_flag" ||
  21711. test ! -s conftest.err
  21712. } && test -s conftest.$ac_objext; then
  21713. ac_cv_member_struct_timeval_tv_sec=yes
  21714. else
  21715. echo "$as_me: failed program was:" >&5
  21716. sed 's/^/| /' conftest.$ac_ext >&5
  21717. ac_cv_member_struct_timeval_tv_sec=no
  21718. fi
  21719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21720. fi
  21721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21722. fi
  21723. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  21724. echo "${ECHO_T}$ac_cv_member_struct_timeval_tv_sec" >&6; }
  21725. if test $ac_cv_member_struct_timeval_tv_sec = yes; then
  21726. cat >>confdefs.h <<_ACEOF
  21727. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  21728. _ACEOF
  21729. fi
  21730. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf
  21731. do
  21732. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21733. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21734. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21735. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21736. echo $ECHO_N "(cached) $ECHO_C" >&6
  21737. else
  21738. cat >conftest.$ac_ext <<_ACEOF
  21739. /* confdefs.h. */
  21740. _ACEOF
  21741. cat confdefs.h >>conftest.$ac_ext
  21742. cat >>conftest.$ac_ext <<_ACEOF
  21743. /* end confdefs.h. */
  21744. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21745. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21746. #define $ac_func innocuous_$ac_func
  21747. /* System header to define __stub macros and hopefully few prototypes,
  21748. which can conflict with char $ac_func (); below.
  21749. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21750. <limits.h> exists even on freestanding compilers. */
  21751. #ifdef __STDC__
  21752. # include <limits.h>
  21753. #else
  21754. # include <assert.h>
  21755. #endif
  21756. #undef $ac_func
  21757. /* Override any GCC internal prototype to avoid an error.
  21758. Use char because int might match the return type of a GCC
  21759. builtin and then its argument prototype would still apply. */
  21760. #ifdef __cplusplus
  21761. extern "C"
  21762. #endif
  21763. char $ac_func ();
  21764. /* The GNU C library defines this for functions which it implements
  21765. to always fail with ENOSYS. Some functions are actually named
  21766. something starting with __ and the normal name is an alias. */
  21767. #if defined __stub_$ac_func || defined __stub___$ac_func
  21768. choke me
  21769. #endif
  21770. int
  21771. main ()
  21772. {
  21773. return $ac_func ();
  21774. ;
  21775. return 0;
  21776. }
  21777. _ACEOF
  21778. rm -f conftest.$ac_objext conftest$ac_exeext
  21779. if { (ac_try="$ac_link"
  21780. case "(($ac_try" in
  21781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21782. *) ac_try_echo=$ac_try;;
  21783. esac
  21784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21785. (eval "$ac_link") 2>conftest.er1
  21786. ac_status=$?
  21787. grep -v '^ *+' conftest.er1 >conftest.err
  21788. rm -f conftest.er1
  21789. cat conftest.err >&5
  21790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21791. (exit $ac_status); } && {
  21792. test -z "$ac_c_werror_flag" ||
  21793. test ! -s conftest.err
  21794. } && test -s conftest$ac_exeext &&
  21795. $as_test_x conftest$ac_exeext; then
  21796. eval "$as_ac_var=yes"
  21797. else
  21798. echo "$as_me: failed program was:" >&5
  21799. sed 's/^/| /' conftest.$ac_ext >&5
  21800. eval "$as_ac_var=no"
  21801. fi
  21802. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21803. conftest$ac_exeext conftest.$ac_ext
  21804. fi
  21805. ac_res=`eval echo '${'$as_ac_var'}'`
  21806. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21807. echo "${ECHO_T}$ac_res" >&6; }
  21808. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21809. cat >>confdefs.h <<_ACEOF
  21810. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21811. _ACEOF
  21812. fi
  21813. done
  21814. for ac_func in strlcpy
  21815. do
  21816. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21817. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  21818. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  21819. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21820. echo $ECHO_N "(cached) $ECHO_C" >&6
  21821. else
  21822. cat >conftest.$ac_ext <<_ACEOF
  21823. /* confdefs.h. */
  21824. _ACEOF
  21825. cat confdefs.h >>conftest.$ac_ext
  21826. cat >>conftest.$ac_ext <<_ACEOF
  21827. /* end confdefs.h. */
  21828. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21829. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21830. #define $ac_func innocuous_$ac_func
  21831. /* System header to define __stub macros and hopefully few prototypes,
  21832. which can conflict with char $ac_func (); below.
  21833. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21834. <limits.h> exists even on freestanding compilers. */
  21835. #ifdef __STDC__
  21836. # include <limits.h>
  21837. #else
  21838. # include <assert.h>
  21839. #endif
  21840. #undef $ac_func
  21841. /* Override any GCC internal prototype to avoid an error.
  21842. Use char because int might match the return type of a GCC
  21843. builtin and then its argument prototype would still apply. */
  21844. #ifdef __cplusplus
  21845. extern "C"
  21846. #endif
  21847. char $ac_func ();
  21848. /* The GNU C library defines this for functions which it implements
  21849. to always fail with ENOSYS. Some functions are actually named
  21850. something starting with __ and the normal name is an alias. */
  21851. #if defined __stub_$ac_func || defined __stub___$ac_func
  21852. choke me
  21853. #endif
  21854. int
  21855. main ()
  21856. {
  21857. return $ac_func ();
  21858. ;
  21859. return 0;
  21860. }
  21861. _ACEOF
  21862. rm -f conftest.$ac_objext conftest$ac_exeext
  21863. if { (ac_try="$ac_link"
  21864. case "(($ac_try" in
  21865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21866. *) ac_try_echo=$ac_try;;
  21867. esac
  21868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21869. (eval "$ac_link") 2>conftest.er1
  21870. ac_status=$?
  21871. grep -v '^ *+' conftest.er1 >conftest.err
  21872. rm -f conftest.er1
  21873. cat conftest.err >&5
  21874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21875. (exit $ac_status); } && {
  21876. test -z "$ac_c_werror_flag" ||
  21877. test ! -s conftest.err
  21878. } && test -s conftest$ac_exeext &&
  21879. $as_test_x conftest$ac_exeext; then
  21880. eval "$as_ac_var=yes"
  21881. else
  21882. echo "$as_me: failed program was:" >&5
  21883. sed 's/^/| /' conftest.$ac_ext >&5
  21884. eval "$as_ac_var=no"
  21885. fi
  21886. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21887. conftest$ac_exeext conftest.$ac_ext
  21888. fi
  21889. ac_res=`eval echo '${'$as_ac_var'}'`
  21890. { echo "$as_me:$LINENO: result: $ac_res" >&5
  21891. echo "${ECHO_T}$ac_res" >&6; }
  21892. if test `eval echo '${'$as_ac_var'}'` = yes; then
  21893. cat >>confdefs.h <<_ACEOF
  21894. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21895. _ACEOF
  21896. have_strlcpy=true
  21897. else
  21898. have_strlcpy=false
  21899. fi
  21900. done
  21901. if test x$have_strlcpy = xtrue; then
  21902. SYSTEM_STRLCPY_TRUE=
  21903. SYSTEM_STRLCPY_FALSE='#'
  21904. else
  21905. SYSTEM_STRLCPY_TRUE='#'
  21906. SYSTEM_STRLCPY_FALSE=
  21907. fi
  21908. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  21909. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  21910. if test "${ac_cv_c_bigendian+set}" = set; then
  21911. echo $ECHO_N "(cached) $ECHO_C" >&6
  21912. else
  21913. # See if sys/param.h defines the BYTE_ORDER macro.
  21914. cat >conftest.$ac_ext <<_ACEOF
  21915. /* confdefs.h. */
  21916. _ACEOF
  21917. cat confdefs.h >>conftest.$ac_ext
  21918. cat >>conftest.$ac_ext <<_ACEOF
  21919. /* end confdefs.h. */
  21920. #include <sys/types.h>
  21921. #include <sys/param.h>
  21922. int
  21923. main ()
  21924. {
  21925. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  21926. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  21927. bogus endian macros
  21928. #endif
  21929. ;
  21930. return 0;
  21931. }
  21932. _ACEOF
  21933. rm -f conftest.$ac_objext
  21934. if { (ac_try="$ac_compile"
  21935. case "(($ac_try" in
  21936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21937. *) ac_try_echo=$ac_try;;
  21938. esac
  21939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21940. (eval "$ac_compile") 2>conftest.er1
  21941. ac_status=$?
  21942. grep -v '^ *+' conftest.er1 >conftest.err
  21943. rm -f conftest.er1
  21944. cat conftest.err >&5
  21945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21946. (exit $ac_status); } && {
  21947. test -z "$ac_c_werror_flag" ||
  21948. test ! -s conftest.err
  21949. } && test -s conftest.$ac_objext; then
  21950. # It does; now see whether it defined to BIG_ENDIAN or not.
  21951. cat >conftest.$ac_ext <<_ACEOF
  21952. /* confdefs.h. */
  21953. _ACEOF
  21954. cat confdefs.h >>conftest.$ac_ext
  21955. cat >>conftest.$ac_ext <<_ACEOF
  21956. /* end confdefs.h. */
  21957. #include <sys/types.h>
  21958. #include <sys/param.h>
  21959. int
  21960. main ()
  21961. {
  21962. #if BYTE_ORDER != BIG_ENDIAN
  21963. not big endian
  21964. #endif
  21965. ;
  21966. return 0;
  21967. }
  21968. _ACEOF
  21969. rm -f conftest.$ac_objext
  21970. if { (ac_try="$ac_compile"
  21971. case "(($ac_try" in
  21972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21973. *) ac_try_echo=$ac_try;;
  21974. esac
  21975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21976. (eval "$ac_compile") 2>conftest.er1
  21977. ac_status=$?
  21978. grep -v '^ *+' conftest.er1 >conftest.err
  21979. rm -f conftest.er1
  21980. cat conftest.err >&5
  21981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21982. (exit $ac_status); } && {
  21983. test -z "$ac_c_werror_flag" ||
  21984. test ! -s conftest.err
  21985. } && test -s conftest.$ac_objext; then
  21986. ac_cv_c_bigendian=yes
  21987. else
  21988. echo "$as_me: failed program was:" >&5
  21989. sed 's/^/| /' conftest.$ac_ext >&5
  21990. ac_cv_c_bigendian=no
  21991. fi
  21992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21993. else
  21994. echo "$as_me: failed program was:" >&5
  21995. sed 's/^/| /' conftest.$ac_ext >&5
  21996. # It does not; compile a test program.
  21997. if test "$cross_compiling" = yes; then
  21998. # try to guess the endianness by grepping values into an object file
  21999. ac_cv_c_bigendian=unknown
  22000. cat >conftest.$ac_ext <<_ACEOF
  22001. /* confdefs.h. */
  22002. _ACEOF
  22003. cat confdefs.h >>conftest.$ac_ext
  22004. cat >>conftest.$ac_ext <<_ACEOF
  22005. /* end confdefs.h. */
  22006. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  22007. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  22008. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  22009. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  22010. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  22011. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  22012. int
  22013. main ()
  22014. {
  22015. _ascii (); _ebcdic ();
  22016. ;
  22017. return 0;
  22018. }
  22019. _ACEOF
  22020. rm -f conftest.$ac_objext
  22021. if { (ac_try="$ac_compile"
  22022. case "(($ac_try" in
  22023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22024. *) ac_try_echo=$ac_try;;
  22025. esac
  22026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22027. (eval "$ac_compile") 2>conftest.er1
  22028. ac_status=$?
  22029. grep -v '^ *+' conftest.er1 >conftest.err
  22030. rm -f conftest.er1
  22031. cat conftest.err >&5
  22032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22033. (exit $ac_status); } && {
  22034. test -z "$ac_c_werror_flag" ||
  22035. test ! -s conftest.err
  22036. } && test -s conftest.$ac_objext; then
  22037. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  22038. ac_cv_c_bigendian=yes
  22039. fi
  22040. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  22041. if test "$ac_cv_c_bigendian" = unknown; then
  22042. ac_cv_c_bigendian=no
  22043. else
  22044. # finding both strings is unlikely to happen, but who knows?
  22045. ac_cv_c_bigendian=unknown
  22046. fi
  22047. fi
  22048. else
  22049. echo "$as_me: failed program was:" >&5
  22050. sed 's/^/| /' conftest.$ac_ext >&5
  22051. fi
  22052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22053. else
  22054. cat >conftest.$ac_ext <<_ACEOF
  22055. /* confdefs.h. */
  22056. _ACEOF
  22057. cat confdefs.h >>conftest.$ac_ext
  22058. cat >>conftest.$ac_ext <<_ACEOF
  22059. /* end confdefs.h. */
  22060. $ac_includes_default
  22061. int
  22062. main ()
  22063. {
  22064. /* Are we little or big endian? From Harbison&Steele. */
  22065. union
  22066. {
  22067. long int l;
  22068. char c[sizeof (long int)];
  22069. } u;
  22070. u.l = 1;
  22071. return u.c[sizeof (long int) - 1] == 1;
  22072. ;
  22073. return 0;
  22074. }
  22075. _ACEOF
  22076. rm -f conftest$ac_exeext
  22077. if { (ac_try="$ac_link"
  22078. case "(($ac_try" in
  22079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22080. *) ac_try_echo=$ac_try;;
  22081. esac
  22082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22083. (eval "$ac_link") 2>&5
  22084. ac_status=$?
  22085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22086. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22087. { (case "(($ac_try" in
  22088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22089. *) ac_try_echo=$ac_try;;
  22090. esac
  22091. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22092. (eval "$ac_try") 2>&5
  22093. ac_status=$?
  22094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22095. (exit $ac_status); }; }; then
  22096. ac_cv_c_bigendian=no
  22097. else
  22098. echo "$as_me: program exited with status $ac_status" >&5
  22099. echo "$as_me: failed program was:" >&5
  22100. sed 's/^/| /' conftest.$ac_ext >&5
  22101. ( exit $ac_status )
  22102. ac_cv_c_bigendian=yes
  22103. fi
  22104. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22105. fi
  22106. fi
  22107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22108. fi
  22109. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  22110. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  22111. case $ac_cv_c_bigendian in
  22112. yes)
  22113. cat >>confdefs.h <<\_ACEOF
  22114. #define WORDS_BIGENDIAN 1
  22115. _ACEOF
  22116. ;;
  22117. no)
  22118. ;;
  22119. *)
  22120. { { echo "$as_me:$LINENO: error: unknown endianness
  22121. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  22122. echo "$as_me: error: unknown endianness
  22123. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  22124. { (exit 1); exit 1; }; } ;;
  22125. esac
  22126. if test x$ac_cv_c_bigendian = xyes ; then
  22127. WORDS_BIGENDIAN_TRUE=
  22128. WORDS_BIGENDIAN_FALSE='#'
  22129. else
  22130. WORDS_BIGENDIAN_TRUE='#'
  22131. WORDS_BIGENDIAN_FALSE=
  22132. fi
  22133. debug=no
  22134. # Check whether --enable-debug was given.
  22135. if test "${enable_debug+set}" = set; then
  22136. enableval=$enable_debug; if test x$enableval = xyes; then
  22137. debug=yes
  22138. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  22139. # We may also want to add:
  22140. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  22141. cat >>confdefs.h <<\_ACEOF
  22142. #define DEBUG 1
  22143. _ACEOF
  22144. fi
  22145. fi
  22146. # Check whether --enable-pedantic was given.
  22147. if test "${enable_pedantic+set}" = set; then
  22148. enableval=$enable_pedantic; if test x$enableval = xyes; then
  22149. CFLAGS="$CFLAGS -pedantic"
  22150. fi
  22151. fi
  22152. # Check whether --enable-efence was given.
  22153. if test "${enable_efence+set}" = set; then
  22154. enableval=$enable_efence; if test x$enableval = xyes; then
  22155. CFLAGS="$CFLAGS -lefence"
  22156. cat >>confdefs.h <<\_ACEOF
  22157. #define EFENCE 1
  22158. _ACEOF
  22159. fi
  22160. fi
  22161. # Check whether --enable-gprof was given.
  22162. if test "${enable_gprof+set}" = set; then
  22163. enableval=$enable_gprof; if test x$enableval = xyes; then
  22164. if test $debug = yes; then
  22165. CFLAGS="$CFLAGS -pg"
  22166. else
  22167. # GPROF requires gdb
  22168. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  22169. fi
  22170. cat >>confdefs.h <<\_ACEOF
  22171. #define GPROF 1
  22172. _ACEOF
  22173. fi
  22174. fi
  22175. # Check whether --enable-64bits was given.
  22176. if test "${enable_64bits+set}" = set; then
  22177. enableval=$enable_64bits; if test x$enableval = xyes; then
  22178. cat >>confdefs.h <<\_ACEOF
  22179. #define ENABLE_64BITS 1
  22180. _ACEOF
  22181. { echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  22182. echo "$as_me: Using u_int64_t for packet counters" >&6;}
  22183. else
  22184. { echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  22185. echo "$as_me: Using u_int32_t for packet counters" >&6;}
  22186. fi
  22187. fi
  22188. # Check whether --enable-force-bpf was given.
  22189. if test "${enable_force_bpf+set}" = set; then
  22190. enableval=$enable_force_bpf;
  22191. cat >>confdefs.h <<\_ACEOF
  22192. #define FORCE_INJECT_BPF 1
  22193. _ACEOF
  22194. fi
  22195. # Check whether --enable-force-pf was given.
  22196. if test "${enable_force_pf+set}" = set; then
  22197. enableval=$enable_force_pf;
  22198. cat >>confdefs.h <<\_ACEOF
  22199. #define FORCE_INJECT_PF 1
  22200. _ACEOF
  22201. fi
  22202. # Check whether --enable-force-libnet was given.
  22203. if test "${enable_force_libnet+set}" = set; then
  22204. enableval=$enable_force_libnet;
  22205. cat >>confdefs.h <<\_ACEOF
  22206. #define FORCE_INJECT_LIBNET 1
  22207. _ACEOF
  22208. fi
  22209. # Check whether --enable-force-inject was given.
  22210. if test "${enable_force_inject+set}" = set; then
  22211. enableval=$enable_force_inject;
  22212. cat >>confdefs.h <<\_ACEOF
  22213. #define FORCE_INJECT_PCAP_INJECT 1
  22214. _ACEOF
  22215. fi
  22216. # Check whether --enable-force-sendpacket was given.
  22217. if test "${enable_force_sendpacket+set}" = set; then
  22218. enableval=$enable_force_sendpacket;
  22219. cat >>confdefs.h <<\_ACEOF
  22220. #define FORCE_INJECT_PCAP_SENDPACKET 1
  22221. _ACEOF
  22222. fi
  22223. tcpreplay_edit=no
  22224. # Check whether --enable-tcpreplay-edit was given.
  22225. if test "${enable_tcpreplay_edit+set}" = set; then
  22226. enableval=$enable_tcpreplay_edit;
  22227. cat >>confdefs.h <<\_ACEOF
  22228. #define TCPREPLAY_EDIT 1
  22229. _ACEOF
  22230. tcpreplay_edit=yes
  22231. fi
  22232. if test x$tcpreplay_edit = xyes; then
  22233. ENABLE_TCPREPLAY_EDIT_TRUE=
  22234. ENABLE_TCPREPLAY_EDIT_FALSE='#'
  22235. else
  22236. ENABLE_TCPREPLAY_EDIT_TRUE='#'
  22237. ENABLE_TCPREPLAY_EDIT_FALSE=
  22238. fi
  22239. dynamic_link=no
  22240. # Check whether --enable-dynamic-link was given.
  22241. if test "${enable_dynamic_link+set}" = set; then
  22242. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  22243. cat >>confdefs.h <<\_ACEOF
  22244. #define ENABLE_DYNAMIC_LINK 1
  22245. _ACEOF
  22246. dynamic_link=yes
  22247. fi
  22248. fi
  22249. { echo "$as_me:$LINENO: checking for inet_aton" >&5
  22250. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
  22251. if test "${ac_cv_func_inet_aton+set}" = set; then
  22252. echo $ECHO_N "(cached) $ECHO_C" >&6
  22253. else
  22254. cat >conftest.$ac_ext <<_ACEOF
  22255. /* confdefs.h. */
  22256. _ACEOF
  22257. cat confdefs.h >>conftest.$ac_ext
  22258. cat >>conftest.$ac_ext <<_ACEOF
  22259. /* end confdefs.h. */
  22260. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  22261. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22262. #define inet_aton innocuous_inet_aton
  22263. /* System header to define __stub macros and hopefully few prototypes,
  22264. which can conflict with char inet_aton (); below.
  22265. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22266. <limits.h> exists even on freestanding compilers. */
  22267. #ifdef __STDC__
  22268. # include <limits.h>
  22269. #else
  22270. # include <assert.h>
  22271. #endif
  22272. #undef inet_aton
  22273. /* Override any GCC internal prototype to avoid an error.
  22274. Use char because int might match the return type of a GCC
  22275. builtin and then its argument prototype would still apply. */
  22276. #ifdef __cplusplus
  22277. extern "C"
  22278. #endif
  22279. char inet_aton ();
  22280. /* The GNU C library defines this for functions which it implements
  22281. to always fail with ENOSYS. Some functions are actually named
  22282. something starting with __ and the normal name is an alias. */
  22283. #if defined __stub_inet_aton || defined __stub___inet_aton
  22284. choke me
  22285. #endif
  22286. int
  22287. main ()
  22288. {
  22289. return inet_aton ();
  22290. ;
  22291. return 0;
  22292. }
  22293. _ACEOF
  22294. rm -f conftest.$ac_objext conftest$ac_exeext
  22295. if { (ac_try="$ac_link"
  22296. case "(($ac_try" in
  22297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22298. *) ac_try_echo=$ac_try;;
  22299. esac
  22300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22301. (eval "$ac_link") 2>conftest.er1
  22302. ac_status=$?
  22303. grep -v '^ *+' conftest.er1 >conftest.err
  22304. rm -f conftest.er1
  22305. cat conftest.err >&5
  22306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22307. (exit $ac_status); } && {
  22308. test -z "$ac_c_werror_flag" ||
  22309. test ! -s conftest.err
  22310. } && test -s conftest$ac_exeext &&
  22311. $as_test_x conftest$ac_exeext; then
  22312. ac_cv_func_inet_aton=yes
  22313. else
  22314. echo "$as_me: failed program was:" >&5
  22315. sed 's/^/| /' conftest.$ac_ext >&5
  22316. ac_cv_func_inet_aton=no
  22317. fi
  22318. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22319. conftest$ac_exeext conftest.$ac_ext
  22320. fi
  22321. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  22322. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
  22323. if test $ac_cv_func_inet_aton = yes; then
  22324. cat >>confdefs.h <<\_ACEOF
  22325. #define HAVE_INET_ATON 1
  22326. _ACEOF
  22327. inet_aton=yes
  22328. else
  22329. inet_aton=no
  22330. fi
  22331. { echo "$as_me:$LINENO: checking for inet_pton" >&5
  22332. echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
  22333. if test "${ac_cv_func_inet_pton+set}" = set; then
  22334. echo $ECHO_N "(cached) $ECHO_C" >&6
  22335. else
  22336. cat >conftest.$ac_ext <<_ACEOF
  22337. /* confdefs.h. */
  22338. _ACEOF
  22339. cat confdefs.h >>conftest.$ac_ext
  22340. cat >>conftest.$ac_ext <<_ACEOF
  22341. /* end confdefs.h. */
  22342. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  22343. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22344. #define inet_pton innocuous_inet_pton
  22345. /* System header to define __stub macros and hopefully few prototypes,
  22346. which can conflict with char inet_pton (); below.
  22347. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22348. <limits.h> exists even on freestanding compilers. */
  22349. #ifdef __STDC__
  22350. # include <limits.h>
  22351. #else
  22352. # include <assert.h>
  22353. #endif
  22354. #undef inet_pton
  22355. /* Override any GCC internal prototype to avoid an error.
  22356. Use char because int might match the return type of a GCC
  22357. builtin and then its argument prototype would still apply. */
  22358. #ifdef __cplusplus
  22359. extern "C"
  22360. #endif
  22361. char inet_pton ();
  22362. /* The GNU C library defines this for functions which it implements
  22363. to always fail with ENOSYS. Some functions are actually named
  22364. something starting with __ and the normal name is an alias. */
  22365. #if defined __stub_inet_pton || defined __stub___inet_pton
  22366. choke me
  22367. #endif
  22368. int
  22369. main ()
  22370. {
  22371. return inet_pton ();
  22372. ;
  22373. return 0;
  22374. }
  22375. _ACEOF
  22376. rm -f conftest.$ac_objext conftest$ac_exeext
  22377. if { (ac_try="$ac_link"
  22378. case "(($ac_try" in
  22379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22380. *) ac_try_echo=$ac_try;;
  22381. esac
  22382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22383. (eval "$ac_link") 2>conftest.er1
  22384. ac_status=$?
  22385. grep -v '^ *+' conftest.er1 >conftest.err
  22386. rm -f conftest.er1
  22387. cat conftest.err >&5
  22388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22389. (exit $ac_status); } && {
  22390. test -z "$ac_c_werror_flag" ||
  22391. test ! -s conftest.err
  22392. } && test -s conftest$ac_exeext &&
  22393. $as_test_x conftest$ac_exeext; then
  22394. ac_cv_func_inet_pton=yes
  22395. else
  22396. echo "$as_me: failed program was:" >&5
  22397. sed 's/^/| /' conftest.$ac_ext >&5
  22398. ac_cv_func_inet_pton=no
  22399. fi
  22400. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22401. conftest$ac_exeext conftest.$ac_ext
  22402. fi
  22403. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  22404. echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
  22405. if test $ac_cv_func_inet_pton = yes; then
  22406. cat >>confdefs.h <<\_ACEOF
  22407. #define HAVE_INET_PTON 1
  22408. _ACEOF
  22409. inet_pton=yes
  22410. else
  22411. inet_pton=no
  22412. fi
  22413. { echo "$as_me:$LINENO: checking for inet_ntop" >&5
  22414. echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6; }
  22415. if test "${ac_cv_func_inet_ntop+set}" = set; then
  22416. echo $ECHO_N "(cached) $ECHO_C" >&6
  22417. else
  22418. cat >conftest.$ac_ext <<_ACEOF
  22419. /* confdefs.h. */
  22420. _ACEOF
  22421. cat confdefs.h >>conftest.$ac_ext
  22422. cat >>conftest.$ac_ext <<_ACEOF
  22423. /* end confdefs.h. */
  22424. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  22425. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22426. #define inet_ntop innocuous_inet_ntop
  22427. /* System header to define __stub macros and hopefully few prototypes,
  22428. which can conflict with char inet_ntop (); below.
  22429. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22430. <limits.h> exists even on freestanding compilers. */
  22431. #ifdef __STDC__
  22432. # include <limits.h>
  22433. #else
  22434. # include <assert.h>
  22435. #endif
  22436. #undef inet_ntop
  22437. /* Override any GCC internal prototype to avoid an error.
  22438. Use char because int might match the return type of a GCC
  22439. builtin and then its argument prototype would still apply. */
  22440. #ifdef __cplusplus
  22441. extern "C"
  22442. #endif
  22443. char inet_ntop ();
  22444. /* The GNU C library defines this for functions which it implements
  22445. to always fail with ENOSYS. Some functions are actually named
  22446. something starting with __ and the normal name is an alias. */
  22447. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  22448. choke me
  22449. #endif
  22450. int
  22451. main ()
  22452. {
  22453. return inet_ntop ();
  22454. ;
  22455. return 0;
  22456. }
  22457. _ACEOF
  22458. rm -f conftest.$ac_objext conftest$ac_exeext
  22459. if { (ac_try="$ac_link"
  22460. case "(($ac_try" in
  22461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22462. *) ac_try_echo=$ac_try;;
  22463. esac
  22464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22465. (eval "$ac_link") 2>conftest.er1
  22466. ac_status=$?
  22467. grep -v '^ *+' conftest.er1 >conftest.err
  22468. rm -f conftest.er1
  22469. cat conftest.err >&5
  22470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22471. (exit $ac_status); } && {
  22472. test -z "$ac_c_werror_flag" ||
  22473. test ! -s conftest.err
  22474. } && test -s conftest$ac_exeext &&
  22475. $as_test_x conftest$ac_exeext; then
  22476. ac_cv_func_inet_ntop=yes
  22477. else
  22478. echo "$as_me: failed program was:" >&5
  22479. sed 's/^/| /' conftest.$ac_ext >&5
  22480. ac_cv_func_inet_ntop=no
  22481. fi
  22482. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22483. conftest$ac_exeext conftest.$ac_ext
  22484. fi
  22485. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  22486. echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6; }
  22487. if test $ac_cv_func_inet_ntop = yes; then
  22488. cat >>confdefs.h <<\_ACEOF
  22489. #define HAVE_INET_NTOP 1
  22490. _ACEOF
  22491. inet_ntop=yes
  22492. else
  22493. inet_ntop=no
  22494. fi
  22495. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  22496. { { echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  22497. echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  22498. { (exit 1); exit 1; }; }
  22499. fi
  22500. if test "$inet_aton" = "no" ; then
  22501. { { echo "$as_me:$LINENO: error: We need inet_aton" >&5
  22502. echo "$as_me: error: We need inet_aton" >&2;}
  22503. { (exit 1); exit 1; }; }
  22504. fi
  22505. { echo "$as_me:$LINENO: checking for inet_addr" >&5
  22506. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
  22507. if test "${ac_cv_func_inet_addr+set}" = set; then
  22508. echo $ECHO_N "(cached) $ECHO_C" >&6
  22509. else
  22510. cat >conftest.$ac_ext <<_ACEOF
  22511. /* confdefs.h. */
  22512. _ACEOF
  22513. cat confdefs.h >>conftest.$ac_ext
  22514. cat >>conftest.$ac_ext <<_ACEOF
  22515. /* end confdefs.h. */
  22516. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  22517. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22518. #define inet_addr innocuous_inet_addr
  22519. /* System header to define __stub macros and hopefully few prototypes,
  22520. which can conflict with char inet_addr (); below.
  22521. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22522. <limits.h> exists even on freestanding compilers. */
  22523. #ifdef __STDC__
  22524. # include <limits.h>
  22525. #else
  22526. # include <assert.h>
  22527. #endif
  22528. #undef inet_addr
  22529. /* Override any GCC internal prototype to avoid an error.
  22530. Use char because int might match the return type of a GCC
  22531. builtin and then its argument prototype would still apply. */
  22532. #ifdef __cplusplus
  22533. extern "C"
  22534. #endif
  22535. char inet_addr ();
  22536. /* The GNU C library defines this for functions which it implements
  22537. to always fail with ENOSYS. Some functions are actually named
  22538. something starting with __ and the normal name is an alias. */
  22539. #if defined __stub_inet_addr || defined __stub___inet_addr
  22540. choke me
  22541. #endif
  22542. int
  22543. main ()
  22544. {
  22545. return inet_addr ();
  22546. ;
  22547. return 0;
  22548. }
  22549. _ACEOF
  22550. rm -f conftest.$ac_objext conftest$ac_exeext
  22551. if { (ac_try="$ac_link"
  22552. case "(($ac_try" in
  22553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22554. *) ac_try_echo=$ac_try;;
  22555. esac
  22556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22557. (eval "$ac_link") 2>conftest.er1
  22558. ac_status=$?
  22559. grep -v '^ *+' conftest.er1 >conftest.err
  22560. rm -f conftest.er1
  22561. cat conftest.err >&5
  22562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22563. (exit $ac_status); } && {
  22564. test -z "$ac_c_werror_flag" ||
  22565. test ! -s conftest.err
  22566. } && test -s conftest$ac_exeext &&
  22567. $as_test_x conftest$ac_exeext; then
  22568. ac_cv_func_inet_addr=yes
  22569. else
  22570. echo "$as_me: failed program was:" >&5
  22571. sed 's/^/| /' conftest.$ac_ext >&5
  22572. ac_cv_func_inet_addr=no
  22573. fi
  22574. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22575. conftest$ac_exeext conftest.$ac_ext
  22576. fi
  22577. { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  22578. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
  22579. if test $ac_cv_func_inet_addr = yes; then
  22580. cat >>confdefs.h <<\_ACEOF
  22581. #define HAVE_INET_ADDR 1
  22582. _ACEOF
  22583. inet_addr=yes
  22584. else
  22585. inet_addr=no
  22586. fi
  22587. if test x$inet_addr = no ; then
  22588. { { echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  22589. echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  22590. { (exit 1); exit 1; }; }
  22591. fi
  22592. flowreplay=no
  22593. # Check whether --enable-flowreplay was given.
  22594. if test "${enable_flowreplay+set}" = set; then
  22595. enableval=$enable_flowreplay; if test x$enableval = xyes; then
  22596. flowreplay=yes
  22597. cat >>confdefs.h <<\_ACEOF
  22598. #define ENABLE_FLOWREPLAY 1
  22599. _ACEOF
  22600. fi
  22601. fi
  22602. if test x$flowreplay = xyes; then
  22603. ENABLE_FLOWREPLAY_TRUE=
  22604. ENABLE_FLOWREPLAY_FALSE='#'
  22605. else
  22606. ENABLE_FLOWREPLAY_TRUE='#'
  22607. ENABLE_FLOWREPLAY_FALSE=
  22608. fi
  22609. foundnet=no
  22610. trynetdir=no
  22611. have_libnet=no
  22612. use_libnet=no
  22613. # Check whether --enable-libnet was given.
  22614. if test "${enable_libnet+set}" = set; then
  22615. enableval=$enable_libnet; if test x$enableval = xyes; then
  22616. use_libnet=yes
  22617. { echo "$as_me:$LINENO: WARNING: Due to bugs in libnet, it is no longer officially supported" >&5
  22618. echo "$as_me: WARNING: Due to bugs in libnet, it is no longer officially supported" >&2;}
  22619. fi
  22620. fi
  22621. # Check whether --with-libnet was given.
  22622. if test "${with_libnet+set}" = set; then
  22623. withval=$with_libnet; trynetdir=$withval
  22624. fi
  22625. if test x$use_libnet = xyes ; then
  22626. { echo "$as_me:$LINENO: checking for libnet" >&5
  22627. echo $ECHO_N "checking for libnet... $ECHO_C" >&6; }
  22628. for testdir in $trynetdir /usr/local /opt/local /usr ; do
  22629. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  22630. LNETINC="${testdir}/include/libnet.h"
  22631. LNETINCDIR="${testdir}/include"
  22632. if test $dynamic_link = yes; then
  22633. if test -f "${testdir}/lib64/libnet.a" ; then
  22634. LNETLIB="-L${testdir}/lib64 -lnet"
  22635. elif test -f "${testdir}/lib/libnet.a" ; then
  22636. LNETLIB="-L${testdir}/lib -lnet"
  22637. else
  22638. { { echo "$as_me:$LINENO: error: Unable to find libnet in ${testdir}" >&5
  22639. echo "$as_me: error: Unable to find libnet in ${testdir}" >&2;}
  22640. { (exit 1); exit 1; }; }
  22641. fi
  22642. elif test -f "${testdir}/lib64/libnet.a" ; then
  22643. LNETLIB="${testdir}/lib64/libnet.a"
  22644. elif test -f "${testdir}/lib/libnet.a" ; then
  22645. LNETLIB="${testdir}/lib/libnet.a"
  22646. else
  22647. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  22648. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  22649. { (exit 1); exit 1; }; }
  22650. fi
  22651. foundnet=$testdir
  22652. fi
  22653. done
  22654. if test x$foundnet = xno ; then
  22655. { echo "$as_me:$LINENO: result: no" >&5
  22656. echo "${ECHO_T}no" >&6; }
  22657. else
  22658. { echo "$as_me:$LINENO: result: $foundnet" >&5
  22659. echo "${ECHO_T}$foundnet" >&6; }
  22660. have_libnet=yes
  22661. cat >>confdefs.h <<\_ACEOF
  22662. #define HAVE_LIBNET 1
  22663. _ACEOF
  22664. fi
  22665. fi
  22666. if test $foundnet != no ; then
  22667. OLDLIBS="$LIBS"
  22668. OLDCFLAGS="$CFLAGS"
  22669. LIBS="$LNETLIB"
  22670. CFLAGS="$CFLAGS -I$LNETINCDIR"
  22671. { echo "$as_me:$LINENO: checking for libnet version" >&5
  22672. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6; }
  22673. if test "$cross_compiling" = yes; then
  22674. libnet_ver_10=no
  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. #include <string.h>
  22683. #define LIBNET_LIL_ENDIAN 1
  22684. #include "$LNETINC"
  22685. #define LIB_TEST "1.0"
  22686. /*
  22687. * simple proggy to test the version of libnet
  22688. * returns zero if it's 1.0.x
  22689. * or one otherwise
  22690. */
  22691. int
  22692. main (int argc, char *argv[])
  22693. {
  22694. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22695. exit(0);
  22696. exit(1);
  22697. }
  22698. _ACEOF
  22699. rm -f conftest$ac_exeext
  22700. if { (ac_try="$ac_link"
  22701. case "(($ac_try" in
  22702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22703. *) ac_try_echo=$ac_try;;
  22704. esac
  22705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22706. (eval "$ac_link") 2>&5
  22707. ac_status=$?
  22708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22709. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22710. { (case "(($ac_try" in
  22711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22712. *) ac_try_echo=$ac_try;;
  22713. esac
  22714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22715. (eval "$ac_try") 2>&5
  22716. ac_status=$?
  22717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22718. (exit $ac_status); }; }; then
  22719. libnet_ver_10=yes
  22720. { echo "$as_me:$LINENO: result: 1.0.x" >&5
  22721. echo "${ECHO_T}1.0.x" >&6; }
  22722. else
  22723. echo "$as_me: program exited with status $ac_status" >&5
  22724. echo "$as_me: failed program was:" >&5
  22725. sed 's/^/| /' conftest.$ac_ext >&5
  22726. ( exit $ac_status )
  22727. libnet_ver_10=no
  22728. fi
  22729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22730. fi
  22731. if test "$cross_compiling" = yes; then
  22732. libnet_ver_11=no
  22733. else
  22734. cat >conftest.$ac_ext <<_ACEOF
  22735. /* confdefs.h. */
  22736. _ACEOF
  22737. cat confdefs.h >>conftest.$ac_ext
  22738. cat >>conftest.$ac_ext <<_ACEOF
  22739. /* end confdefs.h. */
  22740. #include <string.h>
  22741. #include "$LNETINC"
  22742. #define LIB_TEST "1.1"
  22743. /*
  22744. * simple proggy to test the version of libnet
  22745. * returns zero if it's 1.0.x
  22746. * or one otherwise
  22747. */
  22748. int
  22749. main (int argc, char *argv[])
  22750. {
  22751. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  22752. exit(0);
  22753. exit(1);
  22754. }
  22755. _ACEOF
  22756. rm -f conftest$ac_exeext
  22757. if { (ac_try="$ac_link"
  22758. case "(($ac_try" in
  22759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22760. *) ac_try_echo=$ac_try;;
  22761. esac
  22762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22763. (eval "$ac_link") 2>&5
  22764. ac_status=$?
  22765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22766. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22767. { (case "(($ac_try" in
  22768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22769. *) ac_try_echo=$ac_try;;
  22770. esac
  22771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22772. (eval "$ac_try") 2>&5
  22773. ac_status=$?
  22774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22775. (exit $ac_status); }; }; then
  22776. libnet_ver_11=yes
  22777. { echo "$as_me:$LINENO: result: 1.1.x" >&5
  22778. echo "${ECHO_T}1.1.x" >&6; }
  22779. else
  22780. echo "$as_me: program exited with status $ac_status" >&5
  22781. echo "$as_me: failed program was:" >&5
  22782. sed 's/^/| /' conftest.$ac_ext >&5
  22783. ( exit $ac_status )
  22784. libnet_ver_11=no
  22785. fi
  22786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22787. fi
  22788. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  22789. { echo "$as_me:$LINENO: result: unknown" >&5
  22790. echo "${ECHO_T}unknown" >&6; }
  22791. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  22792. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  22793. { (exit 1); exit 1; }; }
  22794. fi
  22795. if test $libnet_ver_10 = yes ; then
  22796. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  22797. Please upgrade to 1.1.0 or better" >&5
  22798. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  22799. Please upgrade to 1.1.0 or better" >&2;}
  22800. { (exit 1); exit 1; }; }
  22801. fi
  22802. LIBS="$OLDLIBS"
  22803. CFLAGS="$OLDCFLAGS"
  22804. fi
  22805. foundpcap=no
  22806. trypcapdir=/usr/local
  22807. { echo "$as_me:$LINENO: checking for libpcap" >&5
  22808. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6; }
  22809. # Check whether --with-libpcap was given.
  22810. if test "${with_libpcap+set}" = set; then
  22811. withval=$with_libpcap; trypcapdir=$withval
  22812. fi
  22813. for testdir in $trypcapdir /usr/local /opt/local /usr ; do
  22814. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  22815. LPCAPINC="${testdir}/include/pcap.h"
  22816. LPCAPINCDIR="${testdir}/include"
  22817. if test $dynamic_link = yes; then
  22818. if test -f "${testdir}/lib64/libpcap.a" ; then
  22819. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  22820. elif test -f "${testdir}/lib/libpcap.a" ; then
  22821. LPCAPLIB="-L${testdir}/lib -lpcap"
  22822. else
  22823. { { echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  22824. echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  22825. { (exit 1); exit 1; }; }
  22826. fi
  22827. elif test -f "${testdir}/lib64/libpcap.a" ; then
  22828. LPCAPLIB="${testdir}/lib64/libpcap.a"
  22829. elif test -f "${testdir}/lib/libpcap.a" ; then
  22830. LPCAPLIB="${testdir}/lib/libpcap.a"
  22831. elif test -f "${testdir}/lib/libwpcap.a" ; then
  22832. LPCAPLIB="${testdir}/lib/libwpcap.a"
  22833. cat >>confdefs.h <<\_ACEOF
  22834. #define HAVE_WINPCAP 1
  22835. _ACEOF
  22836. else
  22837. { { echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  22838. echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  22839. { (exit 1); exit 1; }; }
  22840. fi
  22841. foundpcap=$testdir
  22842. fi
  22843. done
  22844. if test $foundpcap = no ; then
  22845. { echo "$as_me:$LINENO: result: no" >&5
  22846. echo "${ECHO_T}no" >&6; }
  22847. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  22848. echo "$as_me: error: libpcap not found" >&2;}
  22849. { (exit 1); exit 1; }; }
  22850. else
  22851. { echo "$as_me:$LINENO: result: $foundpcap" >&5
  22852. echo "${ECHO_T}$foundpcap" >&6; }
  22853. fi
  22854. OLDLIBS="$LIBS"
  22855. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22856. LIBS="$LPCAPLIB"
  22857. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  22858. { echo "$as_me:$LINENO: checking for libpcap version" >&5
  22859. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6; }
  22860. if test "$cross_compiling" = yes; then
  22861. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  22862. See \`config.log' for more details." >&5
  22863. echo "$as_me: error: cannot run test program while cross compiling
  22864. See \`config.log' for more details." >&2;}
  22865. { (exit 1); exit 1; }; }
  22866. else
  22867. cat >conftest.$ac_ext <<_ACEOF
  22868. /* confdefs.h. */
  22869. _ACEOF
  22870. cat confdefs.h >>conftest.$ac_ext
  22871. cat >>conftest.$ac_ext <<_ACEOF
  22872. /* end confdefs.h. */
  22873. #include <string.h>
  22874. #include <stdlib.h>
  22875. #include <stdio.h>
  22876. #include "$LPCAPINC"
  22877. #define PCAP_TEST "0.8"
  22878. int
  22879. main ()
  22880. {
  22881. /*
  22882. * simple proggy to test the version of libpcap
  22883. * returns zero if version >= 0.8.0
  22884. * or one otherwise
  22885. */
  22886. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  22887. exit(0);
  22888. /* winpcap? */
  22889. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  22890. exit(0);
  22891. exit(1);
  22892. ;
  22893. return 0;
  22894. }
  22895. _ACEOF
  22896. rm -f conftest$ac_exeext
  22897. if { (ac_try="$ac_link"
  22898. case "(($ac_try" in
  22899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22900. *) ac_try_echo=$ac_try;;
  22901. esac
  22902. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22903. (eval "$ac_link") 2>&5
  22904. ac_status=$?
  22905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22906. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22907. { (case "(($ac_try" in
  22908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22909. *) ac_try_echo=$ac_try;;
  22910. esac
  22911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22912. (eval "$ac_try") 2>&5
  22913. ac_status=$?
  22914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22915. (exit $ac_status); }; }; then
  22916. libpcap_ver8=yes
  22917. else
  22918. echo "$as_me: program exited with status $ac_status" >&5
  22919. echo "$as_me: failed program was:" >&5
  22920. sed 's/^/| /' conftest.$ac_ext >&5
  22921. ( exit $ac_status )
  22922. libpcap_ver8=no
  22923. fi
  22924. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22925. fi
  22926. if test "$cross_compiling" = yes; then
  22927. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  22928. See \`config.log' for more details." >&5
  22929. echo "$as_me: error: cannot run test program while cross compiling
  22930. See \`config.log' for more details." >&2;}
  22931. { (exit 1); exit 1; }; }
  22932. else
  22933. cat >conftest.$ac_ext <<_ACEOF
  22934. /* confdefs.h. */
  22935. _ACEOF
  22936. cat confdefs.h >>conftest.$ac_ext
  22937. cat >>conftest.$ac_ext <<_ACEOF
  22938. /* end confdefs.h. */
  22939. #include <string.h>
  22940. #include <stdlib.h>
  22941. #include <stdio.h>
  22942. #include "$LPCAPINC"
  22943. #define PCAP_TEST "0.7.2"
  22944. extern const char pcap_version[]; /* double up since autoconf escapes things */
  22945. int
  22946. main ()
  22947. {
  22948. /*
  22949. * simple proggy to test the version of libpcap
  22950. * returns zero if version >= 0.7.2
  22951. * or one otherwise
  22952. */
  22953. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  22954. exit(0);
  22955. exit(1);
  22956. ;
  22957. return 0;
  22958. }
  22959. _ACEOF
  22960. rm -f conftest$ac_exeext
  22961. if { (ac_try="$ac_link"
  22962. case "(($ac_try" in
  22963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22964. *) ac_try_echo=$ac_try;;
  22965. esac
  22966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22967. (eval "$ac_link") 2>&5
  22968. ac_status=$?
  22969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22970. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22971. { (case "(($ac_try" in
  22972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22973. *) ac_try_echo=$ac_try;;
  22974. esac
  22975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22976. (eval "$ac_try") 2>&5
  22977. ac_status=$?
  22978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22979. (exit $ac_status); }; }; then
  22980. libpcap_ver7=yes
  22981. else
  22982. echo "$as_me: program exited with status $ac_status" >&5
  22983. echo "$as_me: failed program was:" >&5
  22984. sed 's/^/| /' conftest.$ac_ext >&5
  22985. ( exit $ac_status )
  22986. libpcap_ver7=no
  22987. fi
  22988. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22989. fi
  22990. if test $libpcap_ver8 = yes ; then
  22991. { echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  22992. echo "${ECHO_T}>= 0.8.0" >&6; }
  22993. elif test $libpcap_ver7 = yes ; then
  22994. { echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  22995. echo "${ECHO_T}>= 0.7.2" >&6; }
  22996. else
  22997. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  22998. Please upgrade to version 0.7.2 or better" >&5
  22999. echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  23000. Please upgrade to version 0.7.2 or better" >&2;}
  23001. { (exit 1); exit 1; }; }
  23002. fi
  23003. { echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  23004. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6; }
  23005. cat >conftest.$ac_ext <<_ACEOF
  23006. /* confdefs.h. */
  23007. _ACEOF
  23008. cat confdefs.h >>conftest.$ac_ext
  23009. cat >>conftest.$ac_ext <<_ACEOF
  23010. /* end confdefs.h. */
  23011. #include <stdio.h>
  23012. #include <stdlib.h>
  23013. #include <string.h>
  23014. #include "$LPCAPINC"
  23015. int
  23016. main ()
  23017. {
  23018. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  23019. exit(0);
  23020. exit(1);
  23021. ;
  23022. return 0;
  23023. }
  23024. _ACEOF
  23025. rm -f conftest.$ac_objext conftest$ac_exeext
  23026. if { (ac_try="$ac_link"
  23027. case "(($ac_try" in
  23028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23029. *) ac_try_echo=$ac_try;;
  23030. esac
  23031. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23032. (eval "$ac_link") 2>conftest.er1
  23033. ac_status=$?
  23034. grep -v '^ *+' conftest.er1 >conftest.err
  23035. rm -f conftest.er1
  23036. cat conftest.err >&5
  23037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23038. (exit $ac_status); } && {
  23039. test -z "$ac_c_werror_flag" ||
  23040. test ! -s conftest.err
  23041. } && test -s conftest$ac_exeext &&
  23042. $as_test_x conftest$ac_exeext; then
  23043. have_dlt_to_desc=yes
  23044. { echo "$as_me:$LINENO: result: yes" >&5
  23045. echo "${ECHO_T}yes" >&6; }
  23046. else
  23047. echo "$as_me: failed program was:" >&5
  23048. sed 's/^/| /' conftest.$ac_ext >&5
  23049. have_dlt_to_desc=no
  23050. { echo "$as_me:$LINENO: result: no" >&5
  23051. echo "${ECHO_T}no" >&6; }
  23052. fi
  23053. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23054. conftest$ac_exeext conftest.$ac_ext
  23055. if test $have_dlt_to_desc = yes ; then
  23056. cat >>confdefs.h <<\_ACEOF
  23057. #define HAVE_DLT_VAL_TO_DESC 1
  23058. _ACEOF
  23059. fi
  23060. { echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  23061. echo $ECHO_N "checking for pcap_dump_fopen... $ECHO_C" >&6; }
  23062. cat >conftest.$ac_ext <<_ACEOF
  23063. /* confdefs.h. */
  23064. _ACEOF
  23065. cat confdefs.h >>conftest.$ac_ext
  23066. cat >>conftest.$ac_ext <<_ACEOF
  23067. /* end confdefs.h. */
  23068. #include <stdio.h>
  23069. #include <stdlib.h>
  23070. #include <string.h>
  23071. #include "$LPCAPINC"
  23072. int
  23073. main ()
  23074. {
  23075. pcap_dumper_t *dump;
  23076. pcap_t *pcap;
  23077. FILE *foo;
  23078. dump = pcap_dump_fopen(pcap, foo);
  23079. ;
  23080. return 0;
  23081. }
  23082. _ACEOF
  23083. rm -f conftest.$ac_objext conftest$ac_exeext
  23084. if { (ac_try="$ac_link"
  23085. case "(($ac_try" in
  23086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23087. *) ac_try_echo=$ac_try;;
  23088. esac
  23089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23090. (eval "$ac_link") 2>conftest.er1
  23091. ac_status=$?
  23092. grep -v '^ *+' conftest.er1 >conftest.err
  23093. rm -f conftest.er1
  23094. cat conftest.err >&5
  23095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23096. (exit $ac_status); } && {
  23097. test -z "$ac_c_werror_flag" ||
  23098. test ! -s conftest.err
  23099. } && test -s conftest$ac_exeext &&
  23100. $as_test_x conftest$ac_exeext; then
  23101. have_pcap_dump_fopen=yes
  23102. { echo "$as_me:$LINENO: result: yes" >&5
  23103. echo "${ECHO_T}yes" >&6; }
  23104. else
  23105. echo "$as_me: failed program was:" >&5
  23106. sed 's/^/| /' conftest.$ac_ext >&5
  23107. have_pcap_dump_fopen=no
  23108. { echo "$as_me:$LINENO: result: no" >&5
  23109. echo "${ECHO_T}no" >&6; }
  23110. fi
  23111. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23112. conftest$ac_exeext conftest.$ac_ext
  23113. if test $have_pcap_dump_fopen = yes ; then
  23114. cat >>confdefs.h <<\_ACEOF
  23115. #define HAVE_PCAP_DUMP_FOPEN 1
  23116. _ACEOF
  23117. else
  23118. { echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  23119. echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  23120. fi
  23121. have_pcap_inject=no
  23122. { echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  23123. echo $ECHO_N "checking for pcap_inject sending support... $ECHO_C" >&6; }
  23124. cat >conftest.$ac_ext <<_ACEOF
  23125. /* confdefs.h. */
  23126. _ACEOF
  23127. cat confdefs.h >>conftest.$ac_ext
  23128. cat >>conftest.$ac_ext <<_ACEOF
  23129. /* end confdefs.h. */
  23130. #include <stdio.h>
  23131. #include <stdlib.h>
  23132. #include <string.h>
  23133. #include "$LPCAPINC"
  23134. int
  23135. main ()
  23136. {
  23137. pcap_t *pcap;
  23138. char *buf;
  23139. pcap_inject(pcap, (void *)buf, 0);
  23140. ;
  23141. return 0;
  23142. }
  23143. _ACEOF
  23144. rm -f conftest.$ac_objext
  23145. if { (ac_try="$ac_compile"
  23146. case "(($ac_try" in
  23147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23148. *) ac_try_echo=$ac_try;;
  23149. esac
  23150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23151. (eval "$ac_compile") 2>conftest.er1
  23152. ac_status=$?
  23153. grep -v '^ *+' conftest.er1 >conftest.err
  23154. rm -f conftest.er1
  23155. cat conftest.err >&5
  23156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23157. (exit $ac_status); } && {
  23158. test -z "$ac_c_werror_flag" ||
  23159. test ! -s conftest.err
  23160. } && test -s conftest.$ac_objext; then
  23161. cat >>confdefs.h <<\_ACEOF
  23162. #define HAVE_PCAP_INJECT 1
  23163. _ACEOF
  23164. { echo "$as_me:$LINENO: result: yes" >&5
  23165. echo "${ECHO_T}yes" >&6; }
  23166. have_pcap_inject=yes
  23167. else
  23168. echo "$as_me: failed program was:" >&5
  23169. sed 's/^/| /' conftest.$ac_ext >&5
  23170. { echo "$as_me:$LINENO: result: no" >&5
  23171. echo "${ECHO_T}no" >&6; }
  23172. fi
  23173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23174. have_pcap_version=no
  23175. { echo "$as_me:$LINENO: checking for pcap_version" >&5
  23176. echo $ECHO_N "checking for pcap_version... $ECHO_C" >&6; }
  23177. cat >conftest.$ac_ext <<_ACEOF
  23178. /* confdefs.h. */
  23179. _ACEOF
  23180. cat confdefs.h >>conftest.$ac_ext
  23181. cat >>conftest.$ac_ext <<_ACEOF
  23182. /* end confdefs.h. */
  23183. #include <stdio.h>
  23184. #include <stdlib.h>
  23185. #include <string.h>
  23186. #include "$LPCAPINC"
  23187. extern char pcap_version[];
  23188. int
  23189. main ()
  23190. {
  23191. printf("%s", pcap_version);
  23192. ;
  23193. return 0;
  23194. }
  23195. _ACEOF
  23196. rm -f conftest.$ac_objext
  23197. if { (ac_try="$ac_compile"
  23198. case "(($ac_try" in
  23199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23200. *) ac_try_echo=$ac_try;;
  23201. esac
  23202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23203. (eval "$ac_compile") 2>conftest.er1
  23204. ac_status=$?
  23205. grep -v '^ *+' conftest.er1 >conftest.err
  23206. rm -f conftest.er1
  23207. cat conftest.err >&5
  23208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23209. (exit $ac_status); } && {
  23210. test -z "$ac_c_werror_flag" ||
  23211. test ! -s conftest.err
  23212. } && test -s conftest.$ac_objext; then
  23213. cat >>confdefs.h <<\_ACEOF
  23214. #define HAVE_PCAP_VERSION 1
  23215. _ACEOF
  23216. { echo "$as_me:$LINENO: result: yes" >&5
  23217. echo "${ECHO_T}yes" >&6; }
  23218. else
  23219. echo "$as_me: failed program was:" >&5
  23220. sed 's/^/| /' conftest.$ac_ext >&5
  23221. { echo "$as_me:$LINENO: result: no" >&5
  23222. echo "${ECHO_T}no" >&6; }
  23223. fi
  23224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23225. have_pcap_sendpacket=no
  23226. { echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  23227. echo $ECHO_N "checking for pcap_sendpacket sending support... $ECHO_C" >&6; }
  23228. cat >conftest.$ac_ext <<_ACEOF
  23229. /* confdefs.h. */
  23230. _ACEOF
  23231. cat confdefs.h >>conftest.$ac_ext
  23232. cat >>conftest.$ac_ext <<_ACEOF
  23233. /* end confdefs.h. */
  23234. #include <stdio.h>
  23235. #include <stdlib.h>
  23236. #include <string.h>
  23237. #include "$LPCAPINC"
  23238. int
  23239. main ()
  23240. {
  23241. pcap_t *pcap;
  23242. u_char *buf;
  23243. pcap_sendpacket(pcap, buf, 0);
  23244. ;
  23245. return 0;
  23246. }
  23247. _ACEOF
  23248. rm -f conftest.$ac_objext
  23249. if { (ac_try="$ac_compile"
  23250. case "(($ac_try" in
  23251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23252. *) ac_try_echo=$ac_try;;
  23253. esac
  23254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23255. (eval "$ac_compile") 2>conftest.er1
  23256. ac_status=$?
  23257. grep -v '^ *+' conftest.er1 >conftest.err
  23258. rm -f conftest.er1
  23259. cat conftest.err >&5
  23260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23261. (exit $ac_status); } && {
  23262. test -z "$ac_c_werror_flag" ||
  23263. test ! -s conftest.err
  23264. } && test -s conftest.$ac_objext; then
  23265. cat >>confdefs.h <<\_ACEOF
  23266. #define HAVE_PCAP_SENDPACKET 1
  23267. _ACEOF
  23268. { echo "$as_me:$LINENO: result: yes" >&5
  23269. echo "${ECHO_T}yes" >&6; }
  23270. have_pcap_sendpacket=yes
  23271. else
  23272. echo "$as_me: failed program was:" >&5
  23273. sed 's/^/| /' conftest.$ac_ext >&5
  23274. { echo "$as_me:$LINENO: result: no" >&5
  23275. echo "${ECHO_T}no" >&6; }
  23276. fi
  23277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23278. have_pf=no
  23279. { echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  23280. echo $ECHO_N "checking for PF_PACKET socket sending support... $ECHO_C" >&6; }
  23281. cat >conftest.$ac_ext <<_ACEOF
  23282. /* confdefs.h. */
  23283. _ACEOF
  23284. cat confdefs.h >>conftest.$ac_ext
  23285. cat >>conftest.$ac_ext <<_ACEOF
  23286. /* end confdefs.h. */
  23287. #include <sys/socket.h>
  23288. #include <netpacket/packet.h>
  23289. #include <net/ethernet.h> /* the L2 protocols */
  23290. #include <netinet/in.h> /* htons */
  23291. int
  23292. main ()
  23293. {
  23294. int pf_socket;
  23295. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  23296. ;
  23297. return 0;
  23298. }
  23299. _ACEOF
  23300. rm -f conftest.$ac_objext
  23301. if { (ac_try="$ac_compile"
  23302. case "(($ac_try" in
  23303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23304. *) ac_try_echo=$ac_try;;
  23305. esac
  23306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23307. (eval "$ac_compile") 2>conftest.er1
  23308. ac_status=$?
  23309. grep -v '^ *+' conftest.er1 >conftest.err
  23310. rm -f conftest.er1
  23311. cat conftest.err >&5
  23312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23313. (exit $ac_status); } && {
  23314. test -z "$ac_c_werror_flag" ||
  23315. test ! -s conftest.err
  23316. } && test -s conftest.$ac_objext; then
  23317. cat >>confdefs.h <<\_ACEOF
  23318. #define HAVE_PF_PACKET 1
  23319. _ACEOF
  23320. { echo "$as_me:$LINENO: result: yes" >&5
  23321. echo "${ECHO_T}yes" >&6; }
  23322. have_pf=yes
  23323. else
  23324. echo "$as_me: failed program was:" >&5
  23325. sed 's/^/| /' conftest.$ac_ext >&5
  23326. { echo "$as_me:$LINENO: result: no" >&5
  23327. echo "${ECHO_T}no" >&6; }
  23328. fi
  23329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23330. have_bpf=no
  23331. { echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  23332. echo $ECHO_N "checking for BPF device sending support... $ECHO_C" >&6; }
  23333. if test "$cross_compiling" = yes; then
  23334. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  23335. See \`config.log' for more details." >&5
  23336. echo "$as_me: error: cannot run test program while cross compiling
  23337. See \`config.log' for more details." >&2;}
  23338. { (exit 1); exit 1; }; }
  23339. else
  23340. cat >conftest.$ac_ext <<_ACEOF
  23341. /* confdefs.h. */
  23342. _ACEOF
  23343. cat confdefs.h >>conftest.$ac_ext
  23344. cat >>conftest.$ac_ext <<_ACEOF
  23345. /* end confdefs.h. */
  23346. #include <stdio.h>
  23347. #include <stdlib.h>
  23348. #include <net/bpf.h>
  23349. #include <sys/types.h>
  23350. #include <sys/socket.h>
  23351. #include <fcntl.h>
  23352. #include <sys/time.h>
  23353. #include <sys/ioctl.h>
  23354. #include <net/bpf.h>
  23355. #include <errno.h>
  23356. int
  23357. main(int argc, char *argv[]) {
  23358. int fd;
  23359. fd = open("/dev/bpf0", O_RDONLY, 0);
  23360. /* if we opened it, we're good */
  23361. if (fd > 1)
  23362. exit(0);
  23363. /* if we got EBUSY or permission denied it exists, so we're good */
  23364. if (fd < 0 && (errno == EBUSY || errno == 13))
  23365. exit(0);
  23366. /* else suck, no good */
  23367. exit(-1);
  23368. }
  23369. _ACEOF
  23370. rm -f conftest$ac_exeext
  23371. if { (ac_try="$ac_link"
  23372. case "(($ac_try" in
  23373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23374. *) ac_try_echo=$ac_try;;
  23375. esac
  23376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23377. (eval "$ac_link") 2>&5
  23378. ac_status=$?
  23379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23380. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23381. { (case "(($ac_try" in
  23382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23383. *) ac_try_echo=$ac_try;;
  23384. esac
  23385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23386. (eval "$ac_try") 2>&5
  23387. ac_status=$?
  23388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23389. (exit $ac_status); }; }; then
  23390. cat >>confdefs.h <<\_ACEOF
  23391. #define HAVE_BPF 1
  23392. _ACEOF
  23393. { echo "$as_me:$LINENO: result: yes" >&5
  23394. echo "${ECHO_T}yes" >&6; }
  23395. have_bpf=yes
  23396. else
  23397. echo "$as_me: program exited with status $ac_status" >&5
  23398. echo "$as_me: failed program was:" >&5
  23399. sed 's/^/| /' conftest.$ac_ext >&5
  23400. ( exit $ac_status )
  23401. { echo "$as_me:$LINENO: result: no" >&5
  23402. echo "${ECHO_T}no" >&6; }
  23403. fi
  23404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23405. fi
  23406. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  23407. -a $have_libnet = no -a $have_pf = no ; then
  23408. { { echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&5
  23409. echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libnet" >&2;}
  23410. { (exit 1); exit 1; }; }
  23411. fi
  23412. enable_tcpbridge=yes
  23413. if test $have_bpf = no -a $have_libnet = no -a $have_pf = no ; then
  23414. { echo "$as_me:$LINENO: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&5
  23415. echo "$as_me: tcpbridge support disabled without BPF, Libnet or Linux PF_PACKET" >&6;}
  23416. enable_tcpbridge=no
  23417. fi
  23418. # ADT: Commented for now
  23419. # AM_CONDITIONAL(ENABLE_TCPBRIDGE, [test $enable_tcpbridge = yes])
  23420. { echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  23421. echo $ECHO_N "checking for DLT_LINUX_SLL in libpcap... $ECHO_C" >&6; }
  23422. cat >conftest.$ac_ext <<_ACEOF
  23423. /* confdefs.h. */
  23424. _ACEOF
  23425. cat confdefs.h >>conftest.$ac_ext
  23426. cat >>conftest.$ac_ext <<_ACEOF
  23427. /* end confdefs.h. */
  23428. #include "$LPCAPINC"
  23429. int
  23430. main ()
  23431. {
  23432. int foo;
  23433. foo = DLT_LINUX_SLL
  23434. ;
  23435. return 0;
  23436. }
  23437. _ACEOF
  23438. rm -f conftest.$ac_objext
  23439. if { (ac_try="$ac_compile"
  23440. case "(($ac_try" in
  23441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23442. *) ac_try_echo=$ac_try;;
  23443. esac
  23444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23445. (eval "$ac_compile") 2>conftest.er1
  23446. ac_status=$?
  23447. grep -v '^ *+' conftest.er1 >conftest.err
  23448. rm -f conftest.er1
  23449. cat conftest.err >&5
  23450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23451. (exit $ac_status); } && {
  23452. test -z "$ac_c_werror_flag" ||
  23453. test ! -s conftest.err
  23454. } && test -s conftest.$ac_objext; then
  23455. cat >>confdefs.h <<\_ACEOF
  23456. #define HAVE_DLT_LINUX_SLL 1
  23457. _ACEOF
  23458. { echo "$as_me:$LINENO: result: yes" >&5
  23459. echo "${ECHO_T}yes" >&6; }
  23460. else
  23461. echo "$as_me: failed program was:" >&5
  23462. sed 's/^/| /' conftest.$ac_ext >&5
  23463. { echo "$as_me:$LINENO: result: no" >&5
  23464. echo "${ECHO_T}no" >&6; }
  23465. fi
  23466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23467. { echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  23468. echo $ECHO_N "checking for DLT_C_HDLC in libpcap... $ECHO_C" >&6; }
  23469. cat >conftest.$ac_ext <<_ACEOF
  23470. /* confdefs.h. */
  23471. _ACEOF
  23472. cat confdefs.h >>conftest.$ac_ext
  23473. cat >>conftest.$ac_ext <<_ACEOF
  23474. /* end confdefs.h. */
  23475. #include "$LPCAPINC"
  23476. int
  23477. main ()
  23478. {
  23479. int foo;
  23480. foo = DLT_C_HDLC
  23481. ;
  23482. return 0;
  23483. }
  23484. _ACEOF
  23485. rm -f conftest.$ac_objext
  23486. if { (ac_try="$ac_compile"
  23487. case "(($ac_try" in
  23488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23489. *) ac_try_echo=$ac_try;;
  23490. esac
  23491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23492. (eval "$ac_compile") 2>conftest.er1
  23493. ac_status=$?
  23494. grep -v '^ *+' conftest.er1 >conftest.err
  23495. rm -f conftest.er1
  23496. cat conftest.err >&5
  23497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23498. (exit $ac_status); } && {
  23499. test -z "$ac_c_werror_flag" ||
  23500. test ! -s conftest.err
  23501. } && test -s conftest.$ac_objext; then
  23502. cat >>confdefs.h <<\_ACEOF
  23503. #define HAVE_DLT_C_HDLC 1
  23504. _ACEOF
  23505. { echo "$as_me:$LINENO: result: yes" >&5
  23506. echo "${ECHO_T}yes" >&6; }
  23507. else
  23508. echo "$as_me: failed program was:" >&5
  23509. sed 's/^/| /' conftest.$ac_ext >&5
  23510. { echo "$as_me:$LINENO: result: no" >&5
  23511. echo "${ECHO_T}no" >&6; }
  23512. fi
  23513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23514. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  23515. { echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  23516. echo $ECHO_N "checking for $PCAP_BPF_H_FILE... $ECHO_C" >&6; }
  23517. cat >conftest.$ac_ext <<_ACEOF
  23518. /* confdefs.h. */
  23519. _ACEOF
  23520. cat confdefs.h >>conftest.$ac_ext
  23521. cat >>conftest.$ac_ext <<_ACEOF
  23522. /* end confdefs.h. */
  23523. #include <sys/types.h>
  23524. #include <sys/time.h>
  23525. #include "$PCAP_BPF_H_FILE"
  23526. int
  23527. main ()
  23528. {
  23529. int foo;
  23530. foo = BPF_MAJOR_VERSION;
  23531. ;
  23532. return 0;
  23533. }
  23534. _ACEOF
  23535. rm -f conftest.$ac_objext
  23536. if { (ac_try="$ac_compile"
  23537. case "(($ac_try" in
  23538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23539. *) ac_try_echo=$ac_try;;
  23540. esac
  23541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23542. (eval "$ac_compile") 2>conftest.er1
  23543. ac_status=$?
  23544. grep -v '^ *+' conftest.er1 >conftest.err
  23545. rm -f conftest.er1
  23546. cat conftest.err >&5
  23547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23548. (exit $ac_status); } && {
  23549. test -z "$ac_c_werror_flag" ||
  23550. test ! -s conftest.err
  23551. } && test -s conftest.$ac_objext; then
  23552. cat >>confdefs.h <<\_ACEOF
  23553. #define INCLUDE_PCAP_BPF_HEADER 1
  23554. _ACEOF
  23555. { echo "$as_me:$LINENO: result: yes" >&5
  23556. echo "${ECHO_T}yes" >&6; }
  23557. else
  23558. echo "$as_me: failed program was:" >&5
  23559. sed 's/^/| /' conftest.$ac_ext >&5
  23560. { echo "$as_me:$LINENO: result: no" >&5
  23561. echo "${ECHO_T}no" >&6; }
  23562. fi
  23563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23564. foundbpfheader=no
  23565. { echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  23566. echo $ECHO_N "checking for libpcap bpf header... $ECHO_C" >&6; }
  23567. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  23568. if test -f "${testfile}" -a $foundbpfheader = no ; then
  23569. cat >conftest.$ac_ext <<_ACEOF
  23570. /* confdefs.h. */
  23571. _ACEOF
  23572. cat confdefs.h >>conftest.$ac_ext
  23573. cat >>conftest.$ac_ext <<_ACEOF
  23574. /* end confdefs.h. */
  23575. #include <sys/types.h>
  23576. #include <sys/time.h>
  23577. #include "$testfile"
  23578. int
  23579. main ()
  23580. {
  23581. int foo;
  23582. foo = BPF_MAJOR_VERSION;
  23583. ;
  23584. return 0;
  23585. }
  23586. _ACEOF
  23587. rm -f conftest.$ac_objext
  23588. if { (ac_try="$ac_compile"
  23589. case "(($ac_try" in
  23590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23591. *) ac_try_echo=$ac_try;;
  23592. esac
  23593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23594. (eval "$ac_compile") 2>conftest.er1
  23595. ac_status=$?
  23596. grep -v '^ *+' conftest.er1 >conftest.err
  23597. rm -f conftest.er1
  23598. cat conftest.err >&5
  23599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23600. (exit $ac_status); } && {
  23601. test -z "$ac_c_werror_flag" ||
  23602. test ! -s conftest.err
  23603. } && test -s conftest.$ac_objext; then
  23604. foundbpfheader=yes
  23605. PCAP_BPF_H_FILE=$testfile
  23606. cat >>confdefs.h <<\_ACEOF
  23607. #define INCLUDE_PCAP_BPF_HEADER 1
  23608. _ACEOF
  23609. { echo "$as_me:$LINENO: result: $testfile" >&5
  23610. echo "${ECHO_T}$testfile" >&6; }
  23611. else
  23612. echo "$as_me: failed program was:" >&5
  23613. sed 's/^/| /' conftest.$ac_ext >&5
  23614. { echo "$as_me:$LINENO: result: no" >&5
  23615. echo "${ECHO_T}no" >&6; }
  23616. fi
  23617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23618. fi
  23619. done
  23620. LIBS="$OLDLIBS"
  23621. CFLAGS="$OLDCFLAGS"
  23622. pcapnav_ver=no
  23623. pcncfg=no
  23624. # Check whether --with-pcapnav-config was given.
  23625. if test "${with_pcapnav_config+set}" = set; then
  23626. withval=$with_pcapnav_config; { echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  23627. echo $ECHO_N "checking for pcapnav-config... $ECHO_C" >&6; }
  23628. if test -x $withval ; then
  23629. pcncfg=$withval
  23630. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23631. echo "${ECHO_T}$pcncfg" >&6; }
  23632. elif test x$withval = xno ; then
  23633. { echo "$as_me:$LINENO: result: no" >&5
  23634. echo "${ECHO_T}no" >&6; }
  23635. else
  23636. { echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  23637. echo "${ECHO_T}Can't find pcapnav-config: disabling offset jump feature" >&6; }
  23638. fi
  23639. else
  23640. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  23641. set dummy pcapnav-config; ac_word=$2
  23642. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23643. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23644. if test "${ac_cv_path_pcncfg+set}" = set; then
  23645. echo $ECHO_N "(cached) $ECHO_C" >&6
  23646. else
  23647. case $pcncfg in
  23648. [\\/]* | ?:[\\/]*)
  23649. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  23650. ;;
  23651. *)
  23652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23653. for as_dir in $PATH
  23654. do
  23655. IFS=$as_save_IFS
  23656. test -z "$as_dir" && as_dir=.
  23657. for ac_exec_ext in '' $ac_executable_extensions; do
  23658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23659. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  23660. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23661. break 2
  23662. fi
  23663. done
  23664. done
  23665. IFS=$as_save_IFS
  23666. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  23667. ;;
  23668. esac
  23669. fi
  23670. pcncfg=$ac_cv_path_pcncfg
  23671. if test -n "$pcncfg"; then
  23672. { echo "$as_me:$LINENO: result: $pcncfg" >&5
  23673. echo "${ECHO_T}$pcncfg" >&6; }
  23674. else
  23675. { echo "$as_me:$LINENO: result: no" >&5
  23676. echo "${ECHO_T}no" >&6; }
  23677. fi
  23678. fi
  23679. if test $pcncfg != no ; then
  23680. LNAVLIB=`$pcncfg --libs`
  23681. LNAV_CFLAGS=`$pcncfg --cflags`
  23682. PCAPNAV_VERSION=`$pcncfg --version`
  23683. cat >>confdefs.h <<_ACEOF
  23684. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  23685. _ACEOF
  23686. { echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  23687. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6; }
  23688. if test "$cross_compiling" = yes; then
  23689. libpcapnav_ver=no
  23690. else
  23691. cat >conftest.$ac_ext <<_ACEOF
  23692. /* confdefs.h. */
  23693. _ACEOF
  23694. cat confdefs.h >>conftest.$ac_ext
  23695. cat >>conftest.$ac_ext <<_ACEOF
  23696. /* end confdefs.h. */
  23697. #include <string.h>
  23698. #define PCAPNAV_TEST "0.4"
  23699. /*
  23700. * simple proggy to test the version of libpcapnav
  23701. * returns zero if version >= 0.4
  23702. * or one otherwise
  23703. */
  23704. int
  23705. main (int argc, char *argv[])
  23706. {
  23707. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  23708. exit(0);
  23709. exit(1);
  23710. }
  23711. _ACEOF
  23712. rm -f conftest$ac_exeext
  23713. if { (ac_try="$ac_link"
  23714. case "(($ac_try" in
  23715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23716. *) ac_try_echo=$ac_try;;
  23717. esac
  23718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23719. (eval "$ac_link") 2>&5
  23720. ac_status=$?
  23721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23722. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23723. { (case "(($ac_try" in
  23724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23725. *) ac_try_echo=$ac_try;;
  23726. esac
  23727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23728. (eval "$ac_try") 2>&5
  23729. ac_status=$?
  23730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23731. (exit $ac_status); }; }; then
  23732. libpcapnav_ver=yes
  23733. { echo "$as_me:$LINENO: result: >= 0.4" >&5
  23734. echo "${ECHO_T}>= 0.4" >&6; }
  23735. else
  23736. echo "$as_me: program exited with status $ac_status" >&5
  23737. echo "$as_me: failed program was:" >&5
  23738. sed 's/^/| /' conftest.$ac_ext >&5
  23739. ( exit $ac_status )
  23740. libpcapnav_ver=no
  23741. { echo "$as_me:$LINENO: result: < 0.4" >&5
  23742. echo "${ECHO_T}< 0.4" >&6; }
  23743. fi
  23744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23745. fi
  23746. if test x$libpcapnav_ver = xno ; then
  23747. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  23748. Please upgrade to version 0.4 or better.
  23749. Disabling offset jump feature." >&5
  23750. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  23751. Please upgrade to version 0.4 or better.
  23752. Disabling offset jump feature." >&2;}
  23753. else
  23754. cat >>confdefs.h <<\_ACEOF
  23755. #define HAVE_PCAPNAV 1
  23756. _ACEOF
  23757. fi
  23758. fi # checking pcapnav version
  23759. { echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  23760. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6; }
  23761. if test "${unaligned_fail+set}" = set; then
  23762. echo $ECHO_N "(cached) $ECHO_C" >&6
  23763. else
  23764. case "$host_cpu" in
  23765. # XXX: should also check that they don't do weird things (like on arm)
  23766. alpha*|arm*|hp*|mips*|sparc*|ia64)
  23767. unaligned_fail=yes
  23768. ;;
  23769. *)
  23770. cat >conftest.c <<EOF
  23771. #include <sys/types.h>
  23772. #include <sys/wait.h>
  23773. #include <stdio.h>
  23774. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  23775. main() {
  23776. unsigned int i;
  23777. pid_t pid;
  23778. int status;
  23779. /* avoid "core dumped" message */
  23780. pid = fork();
  23781. if (pid < 0)
  23782. exit(2);
  23783. if (pid > 0) {
  23784. /* parent */
  23785. pid = waitpid(pid, &status, 0);
  23786. if (pid < 0)
  23787. exit(3);
  23788. exit(!WIFEXITED(status));
  23789. }
  23790. /* child */
  23791. i = *(unsigned int *)&a[1];
  23792. printf("%d\n", i);
  23793. exit(0);
  23794. }
  23795. EOF
  23796. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  23797. conftest.c $LIBS >/dev/null 2>&1
  23798. if test ! -x conftest ; then
  23799. unaligned_fail=yes
  23800. else
  23801. ./conftest >conftest.out
  23802. if test ! -s conftest.out ; then
  23803. unaligned_fail=yes
  23804. else
  23805. unaligned_fail=no
  23806. fi
  23807. fi
  23808. rm -f conftest* core core.conftest
  23809. ;;
  23810. esac
  23811. fi
  23812. { echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  23813. echo "${ECHO_T}$unaligned_fail" >&6; }
  23814. if test $unaligned_fail = yes ; then
  23815. cat >>confdefs.h <<\_ACEOF
  23816. #define FORCE_ALIGN 1
  23817. _ACEOF
  23818. fi
  23819. td=no
  23820. # Check whether --with-tcpdump was given.
  23821. if test "${with_tcpdump+set}" = set; then
  23822. withval=$with_tcpdump; if test -x $withval ; then
  23823. td=$withval
  23824. { echo "$as_me:$LINENO: result: Using tcpdump in $td" >&5
  23825. echo "${ECHO_T}Using tcpdump in $td" >&6; }
  23826. else
  23827. { echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  23828. echo "${ECHO_T}Error: $withval does not exist or is not executable" >&6; }
  23829. fi
  23830. else
  23831. # Extract the first word of "tcpdump", so it can be a program name with args.
  23832. set dummy tcpdump; ac_word=$2
  23833. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  23834. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  23835. if test "${ac_cv_path_td+set}" = set; then
  23836. echo $ECHO_N "(cached) $ECHO_C" >&6
  23837. else
  23838. case $td in
  23839. [\\/]* | ?:[\\/]*)
  23840. ac_cv_path_td="$td" # Let the user override the test with a path.
  23841. ;;
  23842. *)
  23843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23844. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  23845. for as_dir in $as_dummy
  23846. do
  23847. IFS=$as_save_IFS
  23848. test -z "$as_dir" && as_dir=.
  23849. for ac_exec_ext in '' $ac_executable_extensions; do
  23850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23851. ac_cv_path_td="$as_dir/$ac_word$ac_exec_ext"
  23852. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23853. break 2
  23854. fi
  23855. done
  23856. done
  23857. IFS=$as_save_IFS
  23858. test -z "$ac_cv_path_td" && ac_cv_path_td=""no""
  23859. ;;
  23860. esac
  23861. fi
  23862. td=$ac_cv_path_td
  23863. if test -n "$td"; then
  23864. { echo "$as_me:$LINENO: result: $td" >&5
  23865. echo "${ECHO_T}$td" >&6; }
  23866. else
  23867. { echo "$as_me:$LINENO: result: no" >&5
  23868. echo "${ECHO_T}no" >&6; }
  23869. fi
  23870. fi
  23871. if test "$td" = "no"; then
  23872. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23873. Disabling --verbose" >&5
  23874. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  23875. Disabling --verbose" >&2;}
  23876. else
  23877. cat >>confdefs.h <<\_ACEOF
  23878. #define HAVE_TCPDUMP 1
  23879. _ACEOF
  23880. cat >>confdefs.h <<_ACEOF
  23881. #define TCPDUMP_BINARY "$td"
  23882. _ACEOF
  23883. fi
  23884. if test "$td" != "no" -a x$have_pcap_dump_fopen = xyes; then
  23885. ENABLE_TCPDUMP_TRUE=
  23886. ENABLE_TCPDUMP_FALSE='#'
  23887. else
  23888. ENABLE_TCPDUMP_TRUE='#'
  23889. ENABLE_TCPDUMP_FALSE=
  23890. fi
  23891. if test x$td != xno -a x$have_pcap_dump_fopen = xyes ; then
  23892. cat >>confdefs.h <<\_ACEOF
  23893. #define ENABLE_VERBOSE 1
  23894. _ACEOF
  23895. else
  23896. { echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  23897. echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  23898. fi
  23899. { echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  23900. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6; }
  23901. if test "$host" != "$build" ; then
  23902. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  23903. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  23904. fi
  23905. # Check whether --with-testnic was given.
  23906. if test "${with_testnic+set}" = set; then
  23907. withval=$with_testnic; nic1=$withval
  23908. nic2=$withval
  23909. { echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  23910. echo "${ECHO_T}Using --with-testnic=$withval" >&6; }
  23911. else
  23912. disable_pcap_findalldevs=no
  23913. case $host in
  23914. *-*-linux*)
  23915. nic1=eth0
  23916. nic2=eth0
  23917. { echo "$as_me:$LINENO: result: Linux" >&5
  23918. echo "${ECHO_T}Linux" >&6; }
  23919. ;;
  23920. *-*-solaris*)
  23921. nic1=hme0
  23922. nic2=hme0
  23923. { echo "$as_me:$LINENO: result: Solaris" >&5
  23924. echo "${ECHO_T}Solaris" >&6; }
  23925. ;;
  23926. *-*-sunos*)
  23927. nic1=hme0
  23928. nic2=hme0
  23929. { echo "$as_me:$LINENO: result: SunOS" >&5
  23930. echo "${ECHO_T}SunOS" >&6; }
  23931. ;;
  23932. *-apple-darwin*)
  23933. nic1=en0
  23934. nic2=en0
  23935. disable_pcap_findalldevs=yes
  23936. { echo "$as_me:$LINENO: result: Apple OS X" >&5
  23937. echo "${ECHO_T}Apple OS X" >&6; }
  23938. ;;
  23939. *-*-openbsd*)
  23940. nic1=xl0
  23941. nic2=xl0
  23942. { echo "$as_me:$LINENO: result: OpenBSD" >&5
  23943. echo "${ECHO_T}OpenBSD" >&6; }
  23944. ;;
  23945. *-*-cygwin)
  23946. { echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  23947. echo "${ECHO_T}Win32/Cygwin" >&6; }
  23948. nic1=%0
  23949. nic2=%0
  23950. ;;
  23951. *)
  23952. { echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  23953. echo "${ECHO_T}$host is unknown! Using first non-loopback interface" >&6; }
  23954. nic1=%0
  23955. nic2=%0
  23956. ;;
  23957. esac
  23958. fi
  23959. # Check whether --with-testnic2 was given.
  23960. if test "${with_testnic2+set}" = set; then
  23961. withval=$with_testnic2; nic2=$withval
  23962. fi
  23963. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  23964. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  23965. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  23966. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  23967. { echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  23968. echo $ECHO_N "checking if it's ok to use pcap_findalldevs()... $ECHO_C" >&6; }
  23969. if test x$disable_pcap_findalldevs = xno ; then
  23970. cat >>confdefs.h <<\_ACEOF
  23971. #define ENABLE_PCAP_FINDALLDEVS 1
  23972. _ACEOF
  23973. { echo "$as_me:$LINENO: result: yes" >&5
  23974. echo "${ECHO_T}yes" >&6; }
  23975. else
  23976. { echo "$as_me:$LINENO: result: no" >&5
  23977. echo "${ECHO_T}no" >&6; }
  23978. fi
  23979. NEED_LIBOPTS_DIR=''
  23980. LIBOPTS_DIR=libopts
  23981. # Check whether --enable-local-libopts was given.
  23982. if test "${enable_local_libopts+set}" = set; then
  23983. enableval=$enable_local_libopts;
  23984. if test x$enableval = xyes ; then
  23985. { echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  23986. echo "$as_me: Using supplied libopts tearoff" >&6;}
  23987. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  23988. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  23989. NEED_LIBOPTS_DIR=true
  23990. fi
  23991. fi
  23992. # Check whether --enable-libopts-install was given.
  23993. if test "${enable_libopts_install+set}" = set; then
  23994. enableval=$enable_libopts_install;
  23995. fi
  23996. if test "X${enable_libopts_install}" != Xno; then
  23997. INSTALL_LIBOPTS_TRUE=
  23998. INSTALL_LIBOPTS_FALSE='#'
  23999. else
  24000. INSTALL_LIBOPTS_TRUE='#'
  24001. INSTALL_LIBOPTS_FALSE=
  24002. fi
  24003. if test -z "${NEED_LIBOPTS_DIR}" ; then
  24004. { echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  24005. echo $ECHO_N "checking whether autoopts-config can be found... $ECHO_C" >&6; }
  24006. # Check whether --with-autoopts-config was given.
  24007. if test "${with_autoopts_config+set}" = set; then
  24008. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  24009. else
  24010. { echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  24011. echo $ECHO_N "checking whether autoopts-config is specified... $ECHO_C" >&6; }
  24012. if test "${lo_cv_with_autoopts_config+set}" = set; then
  24013. echo $ECHO_N "(cached) $ECHO_C" >&6
  24014. else
  24015. if autoopts-config --help 2>/dev/null 1>&2
  24016. then lo_cv_with_autoopts_config=autoopts-config
  24017. elif libopts-config --help 2>/dev/null 1>&2
  24018. then lo_cv_with_autoopts_config=libopts-config
  24019. else lo_cv_with_autoopts_config=no ; fi
  24020. fi
  24021. { echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  24022. echo "${ECHO_T}$lo_cv_with_autoopts_config" >&6; }
  24023. fi
  24024. # end of AC_ARG_WITH
  24025. if test "${lo_cv_test_autoopts+set}" = set; then
  24026. echo $ECHO_N "(cached) $ECHO_C" >&6
  24027. else
  24028. if test -z "${lo_cv_with_autoopts_config}" \
  24029. -o X"${lo_cv_with_autoopts_config}" = Xno
  24030. then
  24031. if autoopts-config --help 2>/dev/null 1>&2
  24032. then lo_cv_with_autoopts_config=autoopts-config
  24033. elif libopts-config --help 2>/dev/null 1>&2
  24034. then lo_cv_with_autoopts_config=libopts-config
  24035. else lo_cv_with_autoopts_config=false ; fi
  24036. fi
  24037. lo_cv_test_autoopts=`
  24038. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  24039. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  24040. then lo_cv_test_autoopts=no ; fi
  24041. fi
  24042. # end of CACHE_VAL
  24043. { echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  24044. echo "${ECHO_T}${lo_cv_test_autoopts}" >&6; }
  24045. if test "X${lo_cv_test_autoopts}" != Xno
  24046. then
  24047. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  24048. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  24049. else
  24050. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  24051. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  24052. NEED_LIBOPTS_DIR=true
  24053. fi
  24054. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  24055. if test -n "${NEED_LIBOPTS_DIR}"; then
  24056. NEED_LIBOPTS_TRUE=
  24057. NEED_LIBOPTS_FALSE='#'
  24058. else
  24059. NEED_LIBOPTS_TRUE='#'
  24060. NEED_LIBOPTS_FALSE=
  24061. fi
  24062. LIBOPTS_DIR=libopts
  24063. ac_config_files="$ac_config_files libopts/Makefile"
  24064. if test -n "${NEED_LIBOPTS_DIR}" ; then
  24065. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24066. # =================
  24067. # AC_HEADER_STDC
  24068. # =================
  24069. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24070. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  24071. if test "${ac_cv_header_stdc+set}" = set; then
  24072. echo $ECHO_N "(cached) $ECHO_C" >&6
  24073. else
  24074. cat >conftest.$ac_ext <<_ACEOF
  24075. /* confdefs.h. */
  24076. _ACEOF
  24077. cat confdefs.h >>conftest.$ac_ext
  24078. cat >>conftest.$ac_ext <<_ACEOF
  24079. /* end confdefs.h. */
  24080. #include <stdlib.h>
  24081. #include <stdarg.h>
  24082. #include <string.h>
  24083. #include <float.h>
  24084. int
  24085. main ()
  24086. {
  24087. ;
  24088. return 0;
  24089. }
  24090. _ACEOF
  24091. rm -f conftest.$ac_objext
  24092. if { (ac_try="$ac_compile"
  24093. case "(($ac_try" in
  24094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24095. *) ac_try_echo=$ac_try;;
  24096. esac
  24097. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24098. (eval "$ac_compile") 2>conftest.er1
  24099. ac_status=$?
  24100. grep -v '^ *+' conftest.er1 >conftest.err
  24101. rm -f conftest.er1
  24102. cat conftest.err >&5
  24103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24104. (exit $ac_status); } && {
  24105. test -z "$ac_c_werror_flag" ||
  24106. test ! -s conftest.err
  24107. } && test -s conftest.$ac_objext; then
  24108. ac_cv_header_stdc=yes
  24109. else
  24110. echo "$as_me: failed program was:" >&5
  24111. sed 's/^/| /' conftest.$ac_ext >&5
  24112. ac_cv_header_stdc=no
  24113. fi
  24114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24115. if test $ac_cv_header_stdc = yes; then
  24116. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24117. cat >conftest.$ac_ext <<_ACEOF
  24118. /* confdefs.h. */
  24119. _ACEOF
  24120. cat confdefs.h >>conftest.$ac_ext
  24121. cat >>conftest.$ac_ext <<_ACEOF
  24122. /* end confdefs.h. */
  24123. #include <string.h>
  24124. _ACEOF
  24125. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24126. $EGREP "memchr" >/dev/null 2>&1; then
  24127. :
  24128. else
  24129. ac_cv_header_stdc=no
  24130. fi
  24131. rm -f conftest*
  24132. fi
  24133. if test $ac_cv_header_stdc = yes; then
  24134. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24135. cat >conftest.$ac_ext <<_ACEOF
  24136. /* confdefs.h. */
  24137. _ACEOF
  24138. cat confdefs.h >>conftest.$ac_ext
  24139. cat >>conftest.$ac_ext <<_ACEOF
  24140. /* end confdefs.h. */
  24141. #include <stdlib.h>
  24142. _ACEOF
  24143. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24144. $EGREP "free" >/dev/null 2>&1; then
  24145. :
  24146. else
  24147. ac_cv_header_stdc=no
  24148. fi
  24149. rm -f conftest*
  24150. fi
  24151. if test $ac_cv_header_stdc = yes; then
  24152. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24153. if test "$cross_compiling" = yes; then
  24154. :
  24155. else
  24156. cat >conftest.$ac_ext <<_ACEOF
  24157. /* confdefs.h. */
  24158. _ACEOF
  24159. cat confdefs.h >>conftest.$ac_ext
  24160. cat >>conftest.$ac_ext <<_ACEOF
  24161. /* end confdefs.h. */
  24162. #include <ctype.h>
  24163. #include <stdlib.h>
  24164. #if ((' ' & 0x0FF) == 0x020)
  24165. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24166. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24167. #else
  24168. # define ISLOWER(c) \
  24169. (('a' <= (c) && (c) <= 'i') \
  24170. || ('j' <= (c) && (c) <= 'r') \
  24171. || ('s' <= (c) && (c) <= 'z'))
  24172. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24173. #endif
  24174. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24175. int
  24176. main ()
  24177. {
  24178. int i;
  24179. for (i = 0; i < 256; i++)
  24180. if (XOR (islower (i), ISLOWER (i))
  24181. || toupper (i) != TOUPPER (i))
  24182. return 2;
  24183. return 0;
  24184. }
  24185. _ACEOF
  24186. rm -f conftest$ac_exeext
  24187. if { (ac_try="$ac_link"
  24188. case "(($ac_try" in
  24189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24190. *) ac_try_echo=$ac_try;;
  24191. esac
  24192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24193. (eval "$ac_link") 2>&5
  24194. ac_status=$?
  24195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24196. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24197. { (case "(($ac_try" in
  24198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24199. *) ac_try_echo=$ac_try;;
  24200. esac
  24201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24202. (eval "$ac_try") 2>&5
  24203. ac_status=$?
  24204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24205. (exit $ac_status); }; }; then
  24206. :
  24207. else
  24208. echo "$as_me: program exited with status $ac_status" >&5
  24209. echo "$as_me: failed program was:" >&5
  24210. sed 's/^/| /' conftest.$ac_ext >&5
  24211. ( exit $ac_status )
  24212. ac_cv_header_stdc=no
  24213. fi
  24214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24215. fi
  24216. fi
  24217. fi
  24218. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24219. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  24220. if test $ac_cv_header_stdc = yes; then
  24221. cat >>confdefs.h <<\_ACEOF
  24222. #define STDC_HEADERS 1
  24223. _ACEOF
  24224. fi
  24225. # =================
  24226. # AC_HEADER_DIRENT
  24227. # =================
  24228. ac_header_dirent=no
  24229. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24230. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24231. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24232. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  24233. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24234. echo $ECHO_N "(cached) $ECHO_C" >&6
  24235. else
  24236. cat >conftest.$ac_ext <<_ACEOF
  24237. /* confdefs.h. */
  24238. _ACEOF
  24239. cat confdefs.h >>conftest.$ac_ext
  24240. cat >>conftest.$ac_ext <<_ACEOF
  24241. /* end confdefs.h. */
  24242. #include <sys/types.h>
  24243. #include <$ac_hdr>
  24244. int
  24245. main ()
  24246. {
  24247. if ((DIR *) 0)
  24248. return 0;
  24249. ;
  24250. return 0;
  24251. }
  24252. _ACEOF
  24253. rm -f conftest.$ac_objext
  24254. if { (ac_try="$ac_compile"
  24255. case "(($ac_try" in
  24256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24257. *) ac_try_echo=$ac_try;;
  24258. esac
  24259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24260. (eval "$ac_compile") 2>conftest.er1
  24261. ac_status=$?
  24262. grep -v '^ *+' conftest.er1 >conftest.err
  24263. rm -f conftest.er1
  24264. cat conftest.err >&5
  24265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24266. (exit $ac_status); } && {
  24267. test -z "$ac_c_werror_flag" ||
  24268. test ! -s conftest.err
  24269. } && test -s conftest.$ac_objext; then
  24270. eval "$as_ac_Header=yes"
  24271. else
  24272. echo "$as_me: failed program was:" >&5
  24273. sed 's/^/| /' conftest.$ac_ext >&5
  24274. eval "$as_ac_Header=no"
  24275. fi
  24276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24277. fi
  24278. ac_res=`eval echo '${'$as_ac_Header'}'`
  24279. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24280. echo "${ECHO_T}$ac_res" >&6; }
  24281. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24282. cat >>confdefs.h <<_ACEOF
  24283. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24284. _ACEOF
  24285. ac_header_dirent=$ac_hdr; break
  24286. fi
  24287. done
  24288. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24289. if test $ac_header_dirent = dirent.h; then
  24290. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24291. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24292. if test "${ac_cv_search_opendir+set}" = set; then
  24293. echo $ECHO_N "(cached) $ECHO_C" >&6
  24294. else
  24295. ac_func_search_save_LIBS=$LIBS
  24296. cat >conftest.$ac_ext <<_ACEOF
  24297. /* confdefs.h. */
  24298. _ACEOF
  24299. cat confdefs.h >>conftest.$ac_ext
  24300. cat >>conftest.$ac_ext <<_ACEOF
  24301. /* end confdefs.h. */
  24302. /* Override any GCC internal prototype to avoid an error.
  24303. Use char because int might match the return type of a GCC
  24304. builtin and then its argument prototype would still apply. */
  24305. #ifdef __cplusplus
  24306. extern "C"
  24307. #endif
  24308. char opendir ();
  24309. int
  24310. main ()
  24311. {
  24312. return opendir ();
  24313. ;
  24314. return 0;
  24315. }
  24316. _ACEOF
  24317. for ac_lib in '' dir; do
  24318. if test -z "$ac_lib"; then
  24319. ac_res="none required"
  24320. else
  24321. ac_res=-l$ac_lib
  24322. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24323. fi
  24324. rm -f conftest.$ac_objext conftest$ac_exeext
  24325. if { (ac_try="$ac_link"
  24326. case "(($ac_try" in
  24327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24328. *) ac_try_echo=$ac_try;;
  24329. esac
  24330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24331. (eval "$ac_link") 2>conftest.er1
  24332. ac_status=$?
  24333. grep -v '^ *+' conftest.er1 >conftest.err
  24334. rm -f conftest.er1
  24335. cat conftest.err >&5
  24336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24337. (exit $ac_status); } && {
  24338. test -z "$ac_c_werror_flag" ||
  24339. test ! -s conftest.err
  24340. } && test -s conftest$ac_exeext &&
  24341. $as_test_x conftest$ac_exeext; then
  24342. ac_cv_search_opendir=$ac_res
  24343. else
  24344. echo "$as_me: failed program was:" >&5
  24345. sed 's/^/| /' conftest.$ac_ext >&5
  24346. fi
  24347. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24348. conftest$ac_exeext
  24349. if test "${ac_cv_search_opendir+set}" = set; then
  24350. break
  24351. fi
  24352. done
  24353. if test "${ac_cv_search_opendir+set}" = set; then
  24354. :
  24355. else
  24356. ac_cv_search_opendir=no
  24357. fi
  24358. rm conftest.$ac_ext
  24359. LIBS=$ac_func_search_save_LIBS
  24360. fi
  24361. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24362. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24363. ac_res=$ac_cv_search_opendir
  24364. if test "$ac_res" != no; then
  24365. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24366. fi
  24367. else
  24368. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24369. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  24370. if test "${ac_cv_search_opendir+set}" = set; then
  24371. echo $ECHO_N "(cached) $ECHO_C" >&6
  24372. else
  24373. ac_func_search_save_LIBS=$LIBS
  24374. cat >conftest.$ac_ext <<_ACEOF
  24375. /* confdefs.h. */
  24376. _ACEOF
  24377. cat confdefs.h >>conftest.$ac_ext
  24378. cat >>conftest.$ac_ext <<_ACEOF
  24379. /* end confdefs.h. */
  24380. /* Override any GCC internal prototype to avoid an error.
  24381. Use char because int might match the return type of a GCC
  24382. builtin and then its argument prototype would still apply. */
  24383. #ifdef __cplusplus
  24384. extern "C"
  24385. #endif
  24386. char opendir ();
  24387. int
  24388. main ()
  24389. {
  24390. return opendir ();
  24391. ;
  24392. return 0;
  24393. }
  24394. _ACEOF
  24395. for ac_lib in '' x; do
  24396. if test -z "$ac_lib"; then
  24397. ac_res="none required"
  24398. else
  24399. ac_res=-l$ac_lib
  24400. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24401. fi
  24402. rm -f conftest.$ac_objext conftest$ac_exeext
  24403. if { (ac_try="$ac_link"
  24404. case "(($ac_try" in
  24405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24406. *) ac_try_echo=$ac_try;;
  24407. esac
  24408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24409. (eval "$ac_link") 2>conftest.er1
  24410. ac_status=$?
  24411. grep -v '^ *+' conftest.er1 >conftest.err
  24412. rm -f conftest.er1
  24413. cat conftest.err >&5
  24414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24415. (exit $ac_status); } && {
  24416. test -z "$ac_c_werror_flag" ||
  24417. test ! -s conftest.err
  24418. } && test -s conftest$ac_exeext &&
  24419. $as_test_x conftest$ac_exeext; then
  24420. ac_cv_search_opendir=$ac_res
  24421. else
  24422. echo "$as_me: failed program was:" >&5
  24423. sed 's/^/| /' conftest.$ac_ext >&5
  24424. fi
  24425. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24426. conftest$ac_exeext
  24427. if test "${ac_cv_search_opendir+set}" = set; then
  24428. break
  24429. fi
  24430. done
  24431. if test "${ac_cv_search_opendir+set}" = set; then
  24432. :
  24433. else
  24434. ac_cv_search_opendir=no
  24435. fi
  24436. rm conftest.$ac_ext
  24437. LIBS=$ac_func_search_save_LIBS
  24438. fi
  24439. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24440. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  24441. ac_res=$ac_cv_search_opendir
  24442. if test "$ac_res" != no; then
  24443. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24444. fi
  24445. fi
  24446. # =================
  24447. # AC_CHECK_HEADERS
  24448. # =================
  24449. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24450. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24451. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  24452. utime.h
  24453. do
  24454. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24455. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24456. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24458. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24459. echo $ECHO_N "(cached) $ECHO_C" >&6
  24460. fi
  24461. ac_res=`eval echo '${'$as_ac_Header'}'`
  24462. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24463. echo "${ECHO_T}$ac_res" >&6; }
  24464. else
  24465. # Is the header compilable?
  24466. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24467. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24468. cat >conftest.$ac_ext <<_ACEOF
  24469. /* confdefs.h. */
  24470. _ACEOF
  24471. cat confdefs.h >>conftest.$ac_ext
  24472. cat >>conftest.$ac_ext <<_ACEOF
  24473. /* end confdefs.h. */
  24474. $ac_includes_default
  24475. #include <$ac_header>
  24476. _ACEOF
  24477. rm -f conftest.$ac_objext
  24478. if { (ac_try="$ac_compile"
  24479. case "(($ac_try" in
  24480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24481. *) ac_try_echo=$ac_try;;
  24482. esac
  24483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24484. (eval "$ac_compile") 2>conftest.er1
  24485. ac_status=$?
  24486. grep -v '^ *+' conftest.er1 >conftest.err
  24487. rm -f conftest.er1
  24488. cat conftest.err >&5
  24489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24490. (exit $ac_status); } && {
  24491. test -z "$ac_c_werror_flag" ||
  24492. test ! -s conftest.err
  24493. } && test -s conftest.$ac_objext; then
  24494. ac_header_compiler=yes
  24495. else
  24496. echo "$as_me: failed program was:" >&5
  24497. sed 's/^/| /' conftest.$ac_ext >&5
  24498. ac_header_compiler=no
  24499. fi
  24500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24501. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24502. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24503. # Is the header present?
  24504. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24505. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24506. cat >conftest.$ac_ext <<_ACEOF
  24507. /* confdefs.h. */
  24508. _ACEOF
  24509. cat confdefs.h >>conftest.$ac_ext
  24510. cat >>conftest.$ac_ext <<_ACEOF
  24511. /* end confdefs.h. */
  24512. #include <$ac_header>
  24513. _ACEOF
  24514. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24515. case "(($ac_try" in
  24516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24517. *) ac_try_echo=$ac_try;;
  24518. esac
  24519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24520. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24521. ac_status=$?
  24522. grep -v '^ *+' conftest.er1 >conftest.err
  24523. rm -f conftest.er1
  24524. cat conftest.err >&5
  24525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24526. (exit $ac_status); } >/dev/null && {
  24527. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24528. test ! -s conftest.err
  24529. }; then
  24530. ac_header_preproc=yes
  24531. else
  24532. echo "$as_me: failed program was:" >&5
  24533. sed 's/^/| /' conftest.$ac_ext >&5
  24534. ac_header_preproc=no
  24535. fi
  24536. rm -f conftest.err conftest.$ac_ext
  24537. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24538. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24539. # So? What about this header?
  24540. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24541. yes:no: )
  24542. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24543. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24544. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24545. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24546. ac_header_preproc=yes
  24547. ;;
  24548. no:yes:* )
  24549. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24550. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24551. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24552. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24553. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24554. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24555. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24556. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24557. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24558. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24559. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24560. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24561. ;;
  24562. esac
  24563. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24564. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24565. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24566. echo $ECHO_N "(cached) $ECHO_C" >&6
  24567. else
  24568. eval "$as_ac_Header=\$ac_header_preproc"
  24569. fi
  24570. ac_res=`eval echo '${'$as_ac_Header'}'`
  24571. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24572. echo "${ECHO_T}$ac_res" >&6; }
  24573. fi
  24574. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24575. cat >>confdefs.h <<_ACEOF
  24576. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24577. _ACEOF
  24578. fi
  24579. done
  24580. # --------------------------------------------
  24581. # Verify certain entries from AC_CHECK_HEADERS
  24582. # --------------------------------------------
  24583. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  24584. string errno stdlib memory setjmp
  24585. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  24586. test "${as_ac_var}" = set || \
  24587. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  24588. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  24589. { (exit 1); exit 1; }; }
  24590. done
  24591. # ================================================
  24592. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  24593. # if varargs.h is present define HAVE_VARARGS_H.
  24594. # ================================================
  24595. for ac_header in stdarg.h varargs.h
  24596. do
  24597. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24598. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24599. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24600. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24601. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24602. echo $ECHO_N "(cached) $ECHO_C" >&6
  24603. fi
  24604. ac_res=`eval echo '${'$as_ac_Header'}'`
  24605. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24606. echo "${ECHO_T}$ac_res" >&6; }
  24607. else
  24608. # Is the header compilable?
  24609. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24610. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24611. cat >conftest.$ac_ext <<_ACEOF
  24612. /* confdefs.h. */
  24613. _ACEOF
  24614. cat confdefs.h >>conftest.$ac_ext
  24615. cat >>conftest.$ac_ext <<_ACEOF
  24616. /* end confdefs.h. */
  24617. $ac_includes_default
  24618. #include <$ac_header>
  24619. _ACEOF
  24620. rm -f conftest.$ac_objext
  24621. if { (ac_try="$ac_compile"
  24622. case "(($ac_try" in
  24623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24624. *) ac_try_echo=$ac_try;;
  24625. esac
  24626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24627. (eval "$ac_compile") 2>conftest.er1
  24628. ac_status=$?
  24629. grep -v '^ *+' conftest.er1 >conftest.err
  24630. rm -f conftest.er1
  24631. cat conftest.err >&5
  24632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24633. (exit $ac_status); } && {
  24634. test -z "$ac_c_werror_flag" ||
  24635. test ! -s conftest.err
  24636. } && test -s conftest.$ac_objext; then
  24637. ac_header_compiler=yes
  24638. else
  24639. echo "$as_me: failed program was:" >&5
  24640. sed 's/^/| /' conftest.$ac_ext >&5
  24641. ac_header_compiler=no
  24642. fi
  24643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24644. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24645. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24646. # Is the header present?
  24647. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24648. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24649. cat >conftest.$ac_ext <<_ACEOF
  24650. /* confdefs.h. */
  24651. _ACEOF
  24652. cat confdefs.h >>conftest.$ac_ext
  24653. cat >>conftest.$ac_ext <<_ACEOF
  24654. /* end confdefs.h. */
  24655. #include <$ac_header>
  24656. _ACEOF
  24657. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24658. case "(($ac_try" in
  24659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24660. *) ac_try_echo=$ac_try;;
  24661. esac
  24662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24663. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24664. ac_status=$?
  24665. grep -v '^ *+' conftest.er1 >conftest.err
  24666. rm -f conftest.er1
  24667. cat conftest.err >&5
  24668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24669. (exit $ac_status); } >/dev/null && {
  24670. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24671. test ! -s conftest.err
  24672. }; then
  24673. ac_header_preproc=yes
  24674. else
  24675. echo "$as_me: failed program was:" >&5
  24676. sed 's/^/| /' conftest.$ac_ext >&5
  24677. ac_header_preproc=no
  24678. fi
  24679. rm -f conftest.err conftest.$ac_ext
  24680. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24681. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24682. # So? What about this header?
  24683. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24684. yes:no: )
  24685. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24686. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24687. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24688. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24689. ac_header_preproc=yes
  24690. ;;
  24691. no:yes:* )
  24692. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24693. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24694. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24695. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24696. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24697. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24698. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24699. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24700. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24701. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24702. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24703. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24704. ;;
  24705. esac
  24706. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24707. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24708. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24709. echo $ECHO_N "(cached) $ECHO_C" >&6
  24710. else
  24711. eval "$as_ac_Header=\$ac_header_preproc"
  24712. fi
  24713. ac_res=`eval echo '${'$as_ac_Header'}'`
  24714. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24715. echo "${ECHO_T}$ac_res" >&6; }
  24716. fi
  24717. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24718. cat >>confdefs.h <<_ACEOF
  24719. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24720. _ACEOF
  24721. break
  24722. fi
  24723. done
  24724. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24725. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  24726. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  24727. { (exit 1); exit 1; }; }
  24728. fi
  24729. # ================================================
  24730. # Similarly for the string.h and strings.h headers
  24731. # ================================================
  24732. for ac_header in string.h strings.h
  24733. do
  24734. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24735. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24736. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24737. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24738. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24739. echo $ECHO_N "(cached) $ECHO_C" >&6
  24740. fi
  24741. ac_res=`eval echo '${'$as_ac_Header'}'`
  24742. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24743. echo "${ECHO_T}$ac_res" >&6; }
  24744. else
  24745. # Is the header compilable?
  24746. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24747. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24748. cat >conftest.$ac_ext <<_ACEOF
  24749. /* confdefs.h. */
  24750. _ACEOF
  24751. cat confdefs.h >>conftest.$ac_ext
  24752. cat >>conftest.$ac_ext <<_ACEOF
  24753. /* end confdefs.h. */
  24754. $ac_includes_default
  24755. #include <$ac_header>
  24756. _ACEOF
  24757. rm -f conftest.$ac_objext
  24758. if { (ac_try="$ac_compile"
  24759. case "(($ac_try" in
  24760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24761. *) ac_try_echo=$ac_try;;
  24762. esac
  24763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24764. (eval "$ac_compile") 2>conftest.er1
  24765. ac_status=$?
  24766. grep -v '^ *+' conftest.er1 >conftest.err
  24767. rm -f conftest.er1
  24768. cat conftest.err >&5
  24769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24770. (exit $ac_status); } && {
  24771. test -z "$ac_c_werror_flag" ||
  24772. test ! -s conftest.err
  24773. } && test -s conftest.$ac_objext; then
  24774. ac_header_compiler=yes
  24775. else
  24776. echo "$as_me: failed program was:" >&5
  24777. sed 's/^/| /' conftest.$ac_ext >&5
  24778. ac_header_compiler=no
  24779. fi
  24780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24781. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24782. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24783. # Is the header present?
  24784. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24785. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24786. cat >conftest.$ac_ext <<_ACEOF
  24787. /* confdefs.h. */
  24788. _ACEOF
  24789. cat confdefs.h >>conftest.$ac_ext
  24790. cat >>conftest.$ac_ext <<_ACEOF
  24791. /* end confdefs.h. */
  24792. #include <$ac_header>
  24793. _ACEOF
  24794. if { (ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 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); } >/dev/null && {
  24807. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24808. test ! -s conftest.err
  24809. }; then
  24810. ac_header_preproc=yes
  24811. else
  24812. echo "$as_me: failed program was:" >&5
  24813. sed 's/^/| /' conftest.$ac_ext >&5
  24814. ac_header_preproc=no
  24815. fi
  24816. rm -f conftest.err conftest.$ac_ext
  24817. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24818. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24819. # So? What about this header?
  24820. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24821. yes:no: )
  24822. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24823. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24824. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24825. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24826. ac_header_preproc=yes
  24827. ;;
  24828. no:yes:* )
  24829. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24830. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24831. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24832. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24833. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24834. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24835. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24836. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24837. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24838. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24839. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24840. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24841. ;;
  24842. esac
  24843. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24844. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24845. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24846. echo $ECHO_N "(cached) $ECHO_C" >&6
  24847. else
  24848. eval "$as_ac_Header=\$ac_header_preproc"
  24849. fi
  24850. ac_res=`eval echo '${'$as_ac_Header'}'`
  24851. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24852. echo "${ECHO_T}$ac_res" >&6; }
  24853. fi
  24854. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24855. cat >>confdefs.h <<_ACEOF
  24856. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24857. _ACEOF
  24858. break
  24859. fi
  24860. done
  24861. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24862. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  24863. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  24864. { (exit 1); exit 1; }; }
  24865. fi
  24866. # =====================
  24867. # ...and limits headers
  24868. # =====================
  24869. for ac_header in limits.h sys/limits.h values.h
  24870. do
  24871. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24872. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24873. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24874. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24875. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24876. echo $ECHO_N "(cached) $ECHO_C" >&6
  24877. fi
  24878. ac_res=`eval echo '${'$as_ac_Header'}'`
  24879. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24880. echo "${ECHO_T}$ac_res" >&6; }
  24881. else
  24882. # Is the header compilable?
  24883. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24884. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  24885. cat >conftest.$ac_ext <<_ACEOF
  24886. /* confdefs.h. */
  24887. _ACEOF
  24888. cat confdefs.h >>conftest.$ac_ext
  24889. cat >>conftest.$ac_ext <<_ACEOF
  24890. /* end confdefs.h. */
  24891. $ac_includes_default
  24892. #include <$ac_header>
  24893. _ACEOF
  24894. rm -f conftest.$ac_objext
  24895. if { (ac_try="$ac_compile"
  24896. case "(($ac_try" in
  24897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24898. *) ac_try_echo=$ac_try;;
  24899. esac
  24900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24901. (eval "$ac_compile") 2>conftest.er1
  24902. ac_status=$?
  24903. grep -v '^ *+' conftest.er1 >conftest.err
  24904. rm -f conftest.er1
  24905. cat conftest.err >&5
  24906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24907. (exit $ac_status); } && {
  24908. test -z "$ac_c_werror_flag" ||
  24909. test ! -s conftest.err
  24910. } && test -s conftest.$ac_objext; then
  24911. ac_header_compiler=yes
  24912. else
  24913. echo "$as_me: failed program was:" >&5
  24914. sed 's/^/| /' conftest.$ac_ext >&5
  24915. ac_header_compiler=no
  24916. fi
  24917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24918. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24919. echo "${ECHO_T}$ac_header_compiler" >&6; }
  24920. # Is the header present?
  24921. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24922. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  24923. cat >conftest.$ac_ext <<_ACEOF
  24924. /* confdefs.h. */
  24925. _ACEOF
  24926. cat confdefs.h >>conftest.$ac_ext
  24927. cat >>conftest.$ac_ext <<_ACEOF
  24928. /* end confdefs.h. */
  24929. #include <$ac_header>
  24930. _ACEOF
  24931. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24932. case "(($ac_try" in
  24933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24934. *) ac_try_echo=$ac_try;;
  24935. esac
  24936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24937. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24938. ac_status=$?
  24939. grep -v '^ *+' conftest.er1 >conftest.err
  24940. rm -f conftest.er1
  24941. cat conftest.err >&5
  24942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24943. (exit $ac_status); } >/dev/null && {
  24944. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24945. test ! -s conftest.err
  24946. }; then
  24947. ac_header_preproc=yes
  24948. else
  24949. echo "$as_me: failed program was:" >&5
  24950. sed 's/^/| /' conftest.$ac_ext >&5
  24951. ac_header_preproc=no
  24952. fi
  24953. rm -f conftest.err conftest.$ac_ext
  24954. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24955. echo "${ECHO_T}$ac_header_preproc" >&6; }
  24956. # So? What about this header?
  24957. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24958. yes:no: )
  24959. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24960. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24961. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24962. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24963. ac_header_preproc=yes
  24964. ;;
  24965. no:yes:* )
  24966. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24967. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24968. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24969. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24970. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24971. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24972. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24973. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24974. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24975. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24976. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24977. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24978. ;;
  24979. esac
  24980. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  24981. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  24982. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24983. echo $ECHO_N "(cached) $ECHO_C" >&6
  24984. else
  24985. eval "$as_ac_Header=\$ac_header_preproc"
  24986. fi
  24987. ac_res=`eval echo '${'$as_ac_Header'}'`
  24988. { echo "$as_me:$LINENO: result: $ac_res" >&5
  24989. echo "${ECHO_T}$ac_res" >&6; }
  24990. fi
  24991. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  24992. cat >>confdefs.h <<_ACEOF
  24993. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24994. _ACEOF
  24995. break
  24996. fi
  24997. done
  24998. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  24999. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  25000. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  25001. { (exit 1); exit 1; }; }
  25002. fi
  25003. # ========================
  25004. # ...and int types headers
  25005. # ========================
  25006. for ac_header in stdint.h inttypes.h
  25007. do
  25008. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25009. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25010. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25011. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25012. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25013. echo $ECHO_N "(cached) $ECHO_C" >&6
  25014. fi
  25015. ac_res=`eval echo '${'$as_ac_Header'}'`
  25016. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25017. echo "${ECHO_T}$ac_res" >&6; }
  25018. else
  25019. # Is the header compilable?
  25020. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25021. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  25022. cat >conftest.$ac_ext <<_ACEOF
  25023. /* confdefs.h. */
  25024. _ACEOF
  25025. cat confdefs.h >>conftest.$ac_ext
  25026. cat >>conftest.$ac_ext <<_ACEOF
  25027. /* end confdefs.h. */
  25028. $ac_includes_default
  25029. #include <$ac_header>
  25030. _ACEOF
  25031. rm -f conftest.$ac_objext
  25032. if { (ac_try="$ac_compile"
  25033. case "(($ac_try" in
  25034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25035. *) ac_try_echo=$ac_try;;
  25036. esac
  25037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25038. (eval "$ac_compile") 2>conftest.er1
  25039. ac_status=$?
  25040. grep -v '^ *+' conftest.er1 >conftest.err
  25041. rm -f conftest.er1
  25042. cat conftest.err >&5
  25043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25044. (exit $ac_status); } && {
  25045. test -z "$ac_c_werror_flag" ||
  25046. test ! -s conftest.err
  25047. } && test -s conftest.$ac_objext; then
  25048. ac_header_compiler=yes
  25049. else
  25050. echo "$as_me: failed program was:" >&5
  25051. sed 's/^/| /' conftest.$ac_ext >&5
  25052. ac_header_compiler=no
  25053. fi
  25054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25055. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25056. echo "${ECHO_T}$ac_header_compiler" >&6; }
  25057. # Is the header present?
  25058. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25059. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  25060. cat >conftest.$ac_ext <<_ACEOF
  25061. /* confdefs.h. */
  25062. _ACEOF
  25063. cat confdefs.h >>conftest.$ac_ext
  25064. cat >>conftest.$ac_ext <<_ACEOF
  25065. /* end confdefs.h. */
  25066. #include <$ac_header>
  25067. _ACEOF
  25068. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25069. case "(($ac_try" in
  25070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25071. *) ac_try_echo=$ac_try;;
  25072. esac
  25073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25074. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25075. ac_status=$?
  25076. grep -v '^ *+' conftest.er1 >conftest.err
  25077. rm -f conftest.er1
  25078. cat conftest.err >&5
  25079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25080. (exit $ac_status); } >/dev/null && {
  25081. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25082. test ! -s conftest.err
  25083. }; then
  25084. ac_header_preproc=yes
  25085. else
  25086. echo "$as_me: failed program was:" >&5
  25087. sed 's/^/| /' conftest.$ac_ext >&5
  25088. ac_header_preproc=no
  25089. fi
  25090. rm -f conftest.err conftest.$ac_ext
  25091. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25092. echo "${ECHO_T}$ac_header_preproc" >&6; }
  25093. # So? What about this header?
  25094. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25095. yes:no: )
  25096. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25097. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25098. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25099. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25100. ac_header_preproc=yes
  25101. ;;
  25102. no:yes:* )
  25103. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25104. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25105. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25106. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25107. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25108. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25109. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25110. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25111. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25112. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25113. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25114. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25115. ;;
  25116. esac
  25117. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  25118. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  25119. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25120. echo $ECHO_N "(cached) $ECHO_C" >&6
  25121. else
  25122. eval "$as_ac_Header=\$ac_header_preproc"
  25123. fi
  25124. ac_res=`eval echo '${'$as_ac_Header'}'`
  25125. { echo "$as_me:$LINENO: result: $ac_res" >&5
  25126. echo "${ECHO_T}$ac_res" >&6; }
  25127. fi
  25128. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  25129. cat >>confdefs.h <<_ACEOF
  25130. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25131. _ACEOF
  25132. break
  25133. fi
  25134. done
  25135. { echo "$as_me:$LINENO: checking for int8_t" >&5
  25136. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  25137. if test "${ac_cv_type_int8_t+set}" = set; then
  25138. echo $ECHO_N "(cached) $ECHO_C" >&6
  25139. else
  25140. cat >conftest.$ac_ext <<_ACEOF
  25141. /* confdefs.h. */
  25142. _ACEOF
  25143. cat confdefs.h >>conftest.$ac_ext
  25144. cat >>conftest.$ac_ext <<_ACEOF
  25145. /* end confdefs.h. */
  25146. $ac_includes_default
  25147. typedef int8_t ac__type_new_;
  25148. int
  25149. main ()
  25150. {
  25151. if ((ac__type_new_ *) 0)
  25152. return 0;
  25153. if (sizeof (ac__type_new_))
  25154. return 0;
  25155. ;
  25156. return 0;
  25157. }
  25158. _ACEOF
  25159. rm -f conftest.$ac_objext
  25160. if { (ac_try="$ac_compile"
  25161. case "(($ac_try" in
  25162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25163. *) ac_try_echo=$ac_try;;
  25164. esac
  25165. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25166. (eval "$ac_compile") 2>conftest.er1
  25167. ac_status=$?
  25168. grep -v '^ *+' conftest.er1 >conftest.err
  25169. rm -f conftest.er1
  25170. cat conftest.err >&5
  25171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25172. (exit $ac_status); } && {
  25173. test -z "$ac_c_werror_flag" ||
  25174. test ! -s conftest.err
  25175. } && test -s conftest.$ac_objext; then
  25176. ac_cv_type_int8_t=yes
  25177. else
  25178. echo "$as_me: failed program was:" >&5
  25179. sed 's/^/| /' conftest.$ac_ext >&5
  25180. ac_cv_type_int8_t=no
  25181. fi
  25182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25183. fi
  25184. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  25185. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  25186. if test $ac_cv_type_int8_t = yes; then
  25187. cat >>confdefs.h <<_ACEOF
  25188. #define HAVE_INT8_T 1
  25189. _ACEOF
  25190. fi
  25191. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  25192. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  25193. if test "${ac_cv_type_uint8_t+set}" = set; then
  25194. echo $ECHO_N "(cached) $ECHO_C" >&6
  25195. else
  25196. cat >conftest.$ac_ext <<_ACEOF
  25197. /* confdefs.h. */
  25198. _ACEOF
  25199. cat confdefs.h >>conftest.$ac_ext
  25200. cat >>conftest.$ac_ext <<_ACEOF
  25201. /* end confdefs.h. */
  25202. $ac_includes_default
  25203. typedef uint8_t ac__type_new_;
  25204. int
  25205. main ()
  25206. {
  25207. if ((ac__type_new_ *) 0)
  25208. return 0;
  25209. if (sizeof (ac__type_new_))
  25210. return 0;
  25211. ;
  25212. return 0;
  25213. }
  25214. _ACEOF
  25215. rm -f conftest.$ac_objext
  25216. if { (ac_try="$ac_compile"
  25217. case "(($ac_try" in
  25218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25219. *) ac_try_echo=$ac_try;;
  25220. esac
  25221. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25222. (eval "$ac_compile") 2>conftest.er1
  25223. ac_status=$?
  25224. grep -v '^ *+' conftest.er1 >conftest.err
  25225. rm -f conftest.er1
  25226. cat conftest.err >&5
  25227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25228. (exit $ac_status); } && {
  25229. test -z "$ac_c_werror_flag" ||
  25230. test ! -s conftest.err
  25231. } && test -s conftest.$ac_objext; then
  25232. ac_cv_type_uint8_t=yes
  25233. else
  25234. echo "$as_me: failed program was:" >&5
  25235. sed 's/^/| /' conftest.$ac_ext >&5
  25236. ac_cv_type_uint8_t=no
  25237. fi
  25238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25239. fi
  25240. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  25241. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  25242. if test $ac_cv_type_uint8_t = yes; then
  25243. cat >>confdefs.h <<_ACEOF
  25244. #define HAVE_UINT8_T 1
  25245. _ACEOF
  25246. fi
  25247. { echo "$as_me:$LINENO: checking for int16_t" >&5
  25248. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  25249. if test "${ac_cv_type_int16_t+set}" = set; then
  25250. echo $ECHO_N "(cached) $ECHO_C" >&6
  25251. else
  25252. cat >conftest.$ac_ext <<_ACEOF
  25253. /* confdefs.h. */
  25254. _ACEOF
  25255. cat confdefs.h >>conftest.$ac_ext
  25256. cat >>conftest.$ac_ext <<_ACEOF
  25257. /* end confdefs.h. */
  25258. $ac_includes_default
  25259. typedef int16_t ac__type_new_;
  25260. int
  25261. main ()
  25262. {
  25263. if ((ac__type_new_ *) 0)
  25264. return 0;
  25265. if (sizeof (ac__type_new_))
  25266. return 0;
  25267. ;
  25268. return 0;
  25269. }
  25270. _ACEOF
  25271. rm -f conftest.$ac_objext
  25272. if { (ac_try="$ac_compile"
  25273. case "(($ac_try" in
  25274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25275. *) ac_try_echo=$ac_try;;
  25276. esac
  25277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25278. (eval "$ac_compile") 2>conftest.er1
  25279. ac_status=$?
  25280. grep -v '^ *+' conftest.er1 >conftest.err
  25281. rm -f conftest.er1
  25282. cat conftest.err >&5
  25283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25284. (exit $ac_status); } && {
  25285. test -z "$ac_c_werror_flag" ||
  25286. test ! -s conftest.err
  25287. } && test -s conftest.$ac_objext; then
  25288. ac_cv_type_int16_t=yes
  25289. else
  25290. echo "$as_me: failed program was:" >&5
  25291. sed 's/^/| /' conftest.$ac_ext >&5
  25292. ac_cv_type_int16_t=no
  25293. fi
  25294. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25295. fi
  25296. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  25297. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  25298. if test $ac_cv_type_int16_t = yes; then
  25299. cat >>confdefs.h <<_ACEOF
  25300. #define HAVE_INT16_T 1
  25301. _ACEOF
  25302. fi
  25303. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  25304. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  25305. if test "${ac_cv_type_uint16_t+set}" = set; then
  25306. echo $ECHO_N "(cached) $ECHO_C" >&6
  25307. else
  25308. cat >conftest.$ac_ext <<_ACEOF
  25309. /* confdefs.h. */
  25310. _ACEOF
  25311. cat confdefs.h >>conftest.$ac_ext
  25312. cat >>conftest.$ac_ext <<_ACEOF
  25313. /* end confdefs.h. */
  25314. $ac_includes_default
  25315. typedef uint16_t ac__type_new_;
  25316. int
  25317. main ()
  25318. {
  25319. if ((ac__type_new_ *) 0)
  25320. return 0;
  25321. if (sizeof (ac__type_new_))
  25322. return 0;
  25323. ;
  25324. return 0;
  25325. }
  25326. _ACEOF
  25327. rm -f conftest.$ac_objext
  25328. if { (ac_try="$ac_compile"
  25329. case "(($ac_try" in
  25330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25331. *) ac_try_echo=$ac_try;;
  25332. esac
  25333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25334. (eval "$ac_compile") 2>conftest.er1
  25335. ac_status=$?
  25336. grep -v '^ *+' conftest.er1 >conftest.err
  25337. rm -f conftest.er1
  25338. cat conftest.err >&5
  25339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25340. (exit $ac_status); } && {
  25341. test -z "$ac_c_werror_flag" ||
  25342. test ! -s conftest.err
  25343. } && test -s conftest.$ac_objext; then
  25344. ac_cv_type_uint16_t=yes
  25345. else
  25346. echo "$as_me: failed program was:" >&5
  25347. sed 's/^/| /' conftest.$ac_ext >&5
  25348. ac_cv_type_uint16_t=no
  25349. fi
  25350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25351. fi
  25352. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  25353. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  25354. if test $ac_cv_type_uint16_t = yes; then
  25355. cat >>confdefs.h <<_ACEOF
  25356. #define HAVE_UINT16_T 1
  25357. _ACEOF
  25358. fi
  25359. { echo "$as_me:$LINENO: checking for int32_t" >&5
  25360. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  25361. if test "${ac_cv_type_int32_t+set}" = set; then
  25362. echo $ECHO_N "(cached) $ECHO_C" >&6
  25363. else
  25364. cat >conftest.$ac_ext <<_ACEOF
  25365. /* confdefs.h. */
  25366. _ACEOF
  25367. cat confdefs.h >>conftest.$ac_ext
  25368. cat >>conftest.$ac_ext <<_ACEOF
  25369. /* end confdefs.h. */
  25370. $ac_includes_default
  25371. typedef int32_t ac__type_new_;
  25372. int
  25373. main ()
  25374. {
  25375. if ((ac__type_new_ *) 0)
  25376. return 0;
  25377. if (sizeof (ac__type_new_))
  25378. return 0;
  25379. ;
  25380. return 0;
  25381. }
  25382. _ACEOF
  25383. rm -f conftest.$ac_objext
  25384. if { (ac_try="$ac_compile"
  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_compile") 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); } && {
  25397. test -z "$ac_c_werror_flag" ||
  25398. test ! -s conftest.err
  25399. } && test -s conftest.$ac_objext; then
  25400. ac_cv_type_int32_t=yes
  25401. else
  25402. echo "$as_me: failed program was:" >&5
  25403. sed 's/^/| /' conftest.$ac_ext >&5
  25404. ac_cv_type_int32_t=no
  25405. fi
  25406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25407. fi
  25408. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  25409. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  25410. if test $ac_cv_type_int32_t = yes; then
  25411. cat >>confdefs.h <<_ACEOF
  25412. #define HAVE_INT32_T 1
  25413. _ACEOF
  25414. fi
  25415. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  25416. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  25417. if test "${ac_cv_type_uint32_t+set}" = set; then
  25418. echo $ECHO_N "(cached) $ECHO_C" >&6
  25419. else
  25420. cat >conftest.$ac_ext <<_ACEOF
  25421. /* confdefs.h. */
  25422. _ACEOF
  25423. cat confdefs.h >>conftest.$ac_ext
  25424. cat >>conftest.$ac_ext <<_ACEOF
  25425. /* end confdefs.h. */
  25426. $ac_includes_default
  25427. typedef uint32_t ac__type_new_;
  25428. int
  25429. main ()
  25430. {
  25431. if ((ac__type_new_ *) 0)
  25432. return 0;
  25433. if (sizeof (ac__type_new_))
  25434. return 0;
  25435. ;
  25436. return 0;
  25437. }
  25438. _ACEOF
  25439. rm -f conftest.$ac_objext
  25440. if { (ac_try="$ac_compile"
  25441. case "(($ac_try" in
  25442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25443. *) ac_try_echo=$ac_try;;
  25444. esac
  25445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25446. (eval "$ac_compile") 2>conftest.er1
  25447. ac_status=$?
  25448. grep -v '^ *+' conftest.er1 >conftest.err
  25449. rm -f conftest.er1
  25450. cat conftest.err >&5
  25451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25452. (exit $ac_status); } && {
  25453. test -z "$ac_c_werror_flag" ||
  25454. test ! -s conftest.err
  25455. } && test -s conftest.$ac_objext; then
  25456. ac_cv_type_uint32_t=yes
  25457. else
  25458. echo "$as_me: failed program was:" >&5
  25459. sed 's/^/| /' conftest.$ac_ext >&5
  25460. ac_cv_type_uint32_t=no
  25461. fi
  25462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25463. fi
  25464. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  25465. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  25466. if test $ac_cv_type_uint32_t = yes; then
  25467. cat >>confdefs.h <<_ACEOF
  25468. #define HAVE_UINT32_T 1
  25469. _ACEOF
  25470. fi
  25471. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  25472. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  25473. if test "${ac_cv_type_intptr_t+set}" = set; then
  25474. echo $ECHO_N "(cached) $ECHO_C" >&6
  25475. else
  25476. cat >conftest.$ac_ext <<_ACEOF
  25477. /* confdefs.h. */
  25478. _ACEOF
  25479. cat confdefs.h >>conftest.$ac_ext
  25480. cat >>conftest.$ac_ext <<_ACEOF
  25481. /* end confdefs.h. */
  25482. $ac_includes_default
  25483. typedef intptr_t ac__type_new_;
  25484. int
  25485. main ()
  25486. {
  25487. if ((ac__type_new_ *) 0)
  25488. return 0;
  25489. if (sizeof (ac__type_new_))
  25490. return 0;
  25491. ;
  25492. return 0;
  25493. }
  25494. _ACEOF
  25495. rm -f conftest.$ac_objext
  25496. if { (ac_try="$ac_compile"
  25497. case "(($ac_try" in
  25498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25499. *) ac_try_echo=$ac_try;;
  25500. esac
  25501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25502. (eval "$ac_compile") 2>conftest.er1
  25503. ac_status=$?
  25504. grep -v '^ *+' conftest.er1 >conftest.err
  25505. rm -f conftest.er1
  25506. cat conftest.err >&5
  25507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25508. (exit $ac_status); } && {
  25509. test -z "$ac_c_werror_flag" ||
  25510. test ! -s conftest.err
  25511. } && test -s conftest.$ac_objext; then
  25512. ac_cv_type_intptr_t=yes
  25513. else
  25514. echo "$as_me: failed program was:" >&5
  25515. sed 's/^/| /' conftest.$ac_ext >&5
  25516. ac_cv_type_intptr_t=no
  25517. fi
  25518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25519. fi
  25520. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  25521. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  25522. if test $ac_cv_type_intptr_t = yes; then
  25523. cat >>confdefs.h <<_ACEOF
  25524. #define HAVE_INTPTR_T 1
  25525. _ACEOF
  25526. fi
  25527. { echo "$as_me:$LINENO: checking for uint_t" >&5
  25528. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  25529. if test "${ac_cv_type_uint_t+set}" = set; then
  25530. echo $ECHO_N "(cached) $ECHO_C" >&6
  25531. else
  25532. cat >conftest.$ac_ext <<_ACEOF
  25533. /* confdefs.h. */
  25534. _ACEOF
  25535. cat confdefs.h >>conftest.$ac_ext
  25536. cat >>conftest.$ac_ext <<_ACEOF
  25537. /* end confdefs.h. */
  25538. $ac_includes_default
  25539. typedef uint_t ac__type_new_;
  25540. int
  25541. main ()
  25542. {
  25543. if ((ac__type_new_ *) 0)
  25544. return 0;
  25545. if (sizeof (ac__type_new_))
  25546. return 0;
  25547. ;
  25548. return 0;
  25549. }
  25550. _ACEOF
  25551. rm -f conftest.$ac_objext
  25552. if { (ac_try="$ac_compile"
  25553. case "(($ac_try" in
  25554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25555. *) ac_try_echo=$ac_try;;
  25556. esac
  25557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25558. (eval "$ac_compile") 2>conftest.er1
  25559. ac_status=$?
  25560. grep -v '^ *+' conftest.er1 >conftest.err
  25561. rm -f conftest.er1
  25562. cat conftest.err >&5
  25563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25564. (exit $ac_status); } && {
  25565. test -z "$ac_c_werror_flag" ||
  25566. test ! -s conftest.err
  25567. } && test -s conftest.$ac_objext; then
  25568. ac_cv_type_uint_t=yes
  25569. else
  25570. echo "$as_me: failed program was:" >&5
  25571. sed 's/^/| /' conftest.$ac_ext >&5
  25572. ac_cv_type_uint_t=no
  25573. fi
  25574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25575. fi
  25576. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  25577. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  25578. if test $ac_cv_type_uint_t = yes; then
  25579. cat >>confdefs.h <<_ACEOF
  25580. #define HAVE_UINT_T 1
  25581. _ACEOF
  25582. fi
  25583. # ====================
  25584. # uintptr type & sizes
  25585. # ====================
  25586. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  25587. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  25588. if test "${ac_cv_type_uintptr_t+set}" = set; then
  25589. echo $ECHO_N "(cached) $ECHO_C" >&6
  25590. else
  25591. cat >conftest.$ac_ext <<_ACEOF
  25592. /* confdefs.h. */
  25593. _ACEOF
  25594. cat confdefs.h >>conftest.$ac_ext
  25595. cat >>conftest.$ac_ext <<_ACEOF
  25596. /* end confdefs.h. */
  25597. $ac_includes_default
  25598. typedef uintptr_t ac__type_new_;
  25599. int
  25600. main ()
  25601. {
  25602. if ((ac__type_new_ *) 0)
  25603. return 0;
  25604. if (sizeof (ac__type_new_))
  25605. return 0;
  25606. ;
  25607. return 0;
  25608. }
  25609. _ACEOF
  25610. rm -f conftest.$ac_objext
  25611. if { (ac_try="$ac_compile"
  25612. case "(($ac_try" in
  25613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25614. *) ac_try_echo=$ac_try;;
  25615. esac
  25616. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25617. (eval "$ac_compile") 2>conftest.er1
  25618. ac_status=$?
  25619. grep -v '^ *+' conftest.er1 >conftest.err
  25620. rm -f conftest.er1
  25621. cat conftest.err >&5
  25622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25623. (exit $ac_status); } && {
  25624. test -z "$ac_c_werror_flag" ||
  25625. test ! -s conftest.err
  25626. } && test -s conftest.$ac_objext; then
  25627. ac_cv_type_uintptr_t=yes
  25628. else
  25629. echo "$as_me: failed program was:" >&5
  25630. sed 's/^/| /' conftest.$ac_ext >&5
  25631. ac_cv_type_uintptr_t=no
  25632. fi
  25633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25634. fi
  25635. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  25636. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  25637. if test $ac_cv_type_uintptr_t = yes; then
  25638. cat >>confdefs.h <<_ACEOF
  25639. #define HAVE_UINTPTR_T 1
  25640. _ACEOF
  25641. else
  25642. cat >>confdefs.h <<\_ACEOF
  25643. #define uintptr_t unsigned long
  25644. _ACEOF
  25645. fi
  25646. { echo "$as_me:$LINENO: checking for char*" >&5
  25647. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  25648. if test "${ac_cv_type_charp+set}" = set; then
  25649. echo $ECHO_N "(cached) $ECHO_C" >&6
  25650. else
  25651. cat >conftest.$ac_ext <<_ACEOF
  25652. /* confdefs.h. */
  25653. _ACEOF
  25654. cat confdefs.h >>conftest.$ac_ext
  25655. cat >>conftest.$ac_ext <<_ACEOF
  25656. /* end confdefs.h. */
  25657. $ac_includes_default
  25658. typedef char* ac__type_new_;
  25659. int
  25660. main ()
  25661. {
  25662. if ((ac__type_new_ *) 0)
  25663. return 0;
  25664. if (sizeof (ac__type_new_))
  25665. return 0;
  25666. ;
  25667. return 0;
  25668. }
  25669. _ACEOF
  25670. rm -f conftest.$ac_objext
  25671. if { (ac_try="$ac_compile"
  25672. case "(($ac_try" in
  25673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25674. *) ac_try_echo=$ac_try;;
  25675. esac
  25676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25677. (eval "$ac_compile") 2>conftest.er1
  25678. ac_status=$?
  25679. grep -v '^ *+' conftest.er1 >conftest.err
  25680. rm -f conftest.er1
  25681. cat conftest.err >&5
  25682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25683. (exit $ac_status); } && {
  25684. test -z "$ac_c_werror_flag" ||
  25685. test ! -s conftest.err
  25686. } && test -s conftest.$ac_objext; then
  25687. ac_cv_type_charp=yes
  25688. else
  25689. echo "$as_me: failed program was:" >&5
  25690. sed 's/^/| /' conftest.$ac_ext >&5
  25691. ac_cv_type_charp=no
  25692. fi
  25693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25694. fi
  25695. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  25696. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  25697. # The cast to long int works around a bug in the HP C Compiler
  25698. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25699. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25700. # This bug is HP SR number 8606223364.
  25701. { echo "$as_me:$LINENO: checking size of char*" >&5
  25702. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  25703. if test "${ac_cv_sizeof_charp+set}" = set; then
  25704. echo $ECHO_N "(cached) $ECHO_C" >&6
  25705. else
  25706. if test "$cross_compiling" = yes; then
  25707. # Depending upon the size, compute the lo and hi bounds.
  25708. cat >conftest.$ac_ext <<_ACEOF
  25709. /* confdefs.h. */
  25710. _ACEOF
  25711. cat confdefs.h >>conftest.$ac_ext
  25712. cat >>conftest.$ac_ext <<_ACEOF
  25713. /* end confdefs.h. */
  25714. $ac_includes_default
  25715. typedef char* ac__type_sizeof_;
  25716. int
  25717. main ()
  25718. {
  25719. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  25720. test_array [0] = 0
  25721. ;
  25722. return 0;
  25723. }
  25724. _ACEOF
  25725. rm -f conftest.$ac_objext
  25726. if { (ac_try="$ac_compile"
  25727. case "(($ac_try" in
  25728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25729. *) ac_try_echo=$ac_try;;
  25730. esac
  25731. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25732. (eval "$ac_compile") 2>conftest.er1
  25733. ac_status=$?
  25734. grep -v '^ *+' conftest.er1 >conftest.err
  25735. rm -f conftest.er1
  25736. cat conftest.err >&5
  25737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25738. (exit $ac_status); } && {
  25739. test -z "$ac_c_werror_flag" ||
  25740. test ! -s conftest.err
  25741. } && test -s conftest.$ac_objext; then
  25742. ac_lo=0 ac_mid=0
  25743. while :; do
  25744. cat >conftest.$ac_ext <<_ACEOF
  25745. /* confdefs.h. */
  25746. _ACEOF
  25747. cat confdefs.h >>conftest.$ac_ext
  25748. cat >>conftest.$ac_ext <<_ACEOF
  25749. /* end confdefs.h. */
  25750. $ac_includes_default
  25751. typedef char* ac__type_sizeof_;
  25752. int
  25753. main ()
  25754. {
  25755. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  25756. test_array [0] = 0
  25757. ;
  25758. return 0;
  25759. }
  25760. _ACEOF
  25761. rm -f conftest.$ac_objext
  25762. if { (ac_try="$ac_compile"
  25763. case "(($ac_try" in
  25764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25765. *) ac_try_echo=$ac_try;;
  25766. esac
  25767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25768. (eval "$ac_compile") 2>conftest.er1
  25769. ac_status=$?
  25770. grep -v '^ *+' conftest.er1 >conftest.err
  25771. rm -f conftest.er1
  25772. cat conftest.err >&5
  25773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25774. (exit $ac_status); } && {
  25775. test -z "$ac_c_werror_flag" ||
  25776. test ! -s conftest.err
  25777. } && test -s conftest.$ac_objext; then
  25778. ac_hi=$ac_mid; break
  25779. else
  25780. echo "$as_me: failed program was:" >&5
  25781. sed 's/^/| /' conftest.$ac_ext >&5
  25782. ac_lo=`expr $ac_mid + 1`
  25783. if test $ac_lo -le $ac_mid; then
  25784. ac_lo= ac_hi=
  25785. break
  25786. fi
  25787. ac_mid=`expr 2 '*' $ac_mid + 1`
  25788. fi
  25789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25790. done
  25791. else
  25792. echo "$as_me: failed program was:" >&5
  25793. sed 's/^/| /' conftest.$ac_ext >&5
  25794. cat >conftest.$ac_ext <<_ACEOF
  25795. /* confdefs.h. */
  25796. _ACEOF
  25797. cat confdefs.h >>conftest.$ac_ext
  25798. cat >>conftest.$ac_ext <<_ACEOF
  25799. /* end confdefs.h. */
  25800. $ac_includes_default
  25801. typedef char* ac__type_sizeof_;
  25802. int
  25803. main ()
  25804. {
  25805. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  25806. test_array [0] = 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_hi=-1 ac_mid=-1
  25829. while :; do
  25830. cat >conftest.$ac_ext <<_ACEOF
  25831. /* confdefs.h. */
  25832. _ACEOF
  25833. cat confdefs.h >>conftest.$ac_ext
  25834. cat >>conftest.$ac_ext <<_ACEOF
  25835. /* end confdefs.h. */
  25836. $ac_includes_default
  25837. typedef char* ac__type_sizeof_;
  25838. int
  25839. main ()
  25840. {
  25841. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  25842. test_array [0] = 0
  25843. ;
  25844. return 0;
  25845. }
  25846. _ACEOF
  25847. rm -f conftest.$ac_objext
  25848. if { (ac_try="$ac_compile"
  25849. case "(($ac_try" in
  25850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25851. *) ac_try_echo=$ac_try;;
  25852. esac
  25853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25854. (eval "$ac_compile") 2>conftest.er1
  25855. ac_status=$?
  25856. grep -v '^ *+' conftest.er1 >conftest.err
  25857. rm -f conftest.er1
  25858. cat conftest.err >&5
  25859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25860. (exit $ac_status); } && {
  25861. test -z "$ac_c_werror_flag" ||
  25862. test ! -s conftest.err
  25863. } && test -s conftest.$ac_objext; then
  25864. ac_lo=$ac_mid; break
  25865. else
  25866. echo "$as_me: failed program was:" >&5
  25867. sed 's/^/| /' conftest.$ac_ext >&5
  25868. ac_hi=`expr '(' $ac_mid ')' - 1`
  25869. if test $ac_mid -le $ac_hi; then
  25870. ac_lo= ac_hi=
  25871. break
  25872. fi
  25873. ac_mid=`expr 2 '*' $ac_mid`
  25874. fi
  25875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25876. done
  25877. else
  25878. echo "$as_me: failed program was:" >&5
  25879. sed 's/^/| /' conftest.$ac_ext >&5
  25880. ac_lo= ac_hi=
  25881. fi
  25882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25883. fi
  25884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25885. # Binary search between lo and hi bounds.
  25886. while test "x$ac_lo" != "x$ac_hi"; do
  25887. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  25888. cat >conftest.$ac_ext <<_ACEOF
  25889. /* confdefs.h. */
  25890. _ACEOF
  25891. cat confdefs.h >>conftest.$ac_ext
  25892. cat >>conftest.$ac_ext <<_ACEOF
  25893. /* end confdefs.h. */
  25894. $ac_includes_default
  25895. typedef char* ac__type_sizeof_;
  25896. int
  25897. main ()
  25898. {
  25899. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  25900. test_array [0] = 0
  25901. ;
  25902. return 0;
  25903. }
  25904. _ACEOF
  25905. rm -f conftest.$ac_objext
  25906. if { (ac_try="$ac_compile"
  25907. case "(($ac_try" in
  25908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25909. *) ac_try_echo=$ac_try;;
  25910. esac
  25911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25912. (eval "$ac_compile") 2>conftest.er1
  25913. ac_status=$?
  25914. grep -v '^ *+' conftest.er1 >conftest.err
  25915. rm -f conftest.er1
  25916. cat conftest.err >&5
  25917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25918. (exit $ac_status); } && {
  25919. test -z "$ac_c_werror_flag" ||
  25920. test ! -s conftest.err
  25921. } && test -s conftest.$ac_objext; then
  25922. ac_hi=$ac_mid
  25923. else
  25924. echo "$as_me: failed program was:" >&5
  25925. sed 's/^/| /' conftest.$ac_ext >&5
  25926. ac_lo=`expr '(' $ac_mid ')' + 1`
  25927. fi
  25928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25929. done
  25930. case $ac_lo in
  25931. ?*) ac_cv_sizeof_charp=$ac_lo;;
  25932. '') if test "$ac_cv_type_charp" = yes; then
  25933. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  25934. See \`config.log' for more details." >&5
  25935. echo "$as_me: error: cannot compute sizeof (char*)
  25936. See \`config.log' for more details." >&2;}
  25937. { (exit 77); exit 77; }; }
  25938. else
  25939. ac_cv_sizeof_charp=0
  25940. fi ;;
  25941. esac
  25942. else
  25943. cat >conftest.$ac_ext <<_ACEOF
  25944. /* confdefs.h. */
  25945. _ACEOF
  25946. cat confdefs.h >>conftest.$ac_ext
  25947. cat >>conftest.$ac_ext <<_ACEOF
  25948. /* end confdefs.h. */
  25949. $ac_includes_default
  25950. typedef char* ac__type_sizeof_;
  25951. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  25952. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  25953. #include <stdio.h>
  25954. #include <stdlib.h>
  25955. int
  25956. main ()
  25957. {
  25958. FILE *f = fopen ("conftest.val", "w");
  25959. if (! f)
  25960. return 1;
  25961. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  25962. {
  25963. long int i = longval ();
  25964. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  25965. return 1;
  25966. fprintf (f, "%ld\n", i);
  25967. }
  25968. else
  25969. {
  25970. unsigned long int i = ulongval ();
  25971. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  25972. return 1;
  25973. fprintf (f, "%lu\n", i);
  25974. }
  25975. return ferror (f) || fclose (f) != 0;
  25976. ;
  25977. return 0;
  25978. }
  25979. _ACEOF
  25980. rm -f conftest$ac_exeext
  25981. if { (ac_try="$ac_link"
  25982. case "(($ac_try" in
  25983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25984. *) ac_try_echo=$ac_try;;
  25985. esac
  25986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25987. (eval "$ac_link") 2>&5
  25988. ac_status=$?
  25989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25990. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  25991. { (case "(($ac_try" in
  25992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25993. *) ac_try_echo=$ac_try;;
  25994. esac
  25995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25996. (eval "$ac_try") 2>&5
  25997. ac_status=$?
  25998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25999. (exit $ac_status); }; }; then
  26000. ac_cv_sizeof_charp=`cat conftest.val`
  26001. else
  26002. echo "$as_me: program exited with status $ac_status" >&5
  26003. echo "$as_me: failed program was:" >&5
  26004. sed 's/^/| /' conftest.$ac_ext >&5
  26005. ( exit $ac_status )
  26006. if test "$ac_cv_type_charp" = yes; then
  26007. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  26008. See \`config.log' for more details." >&5
  26009. echo "$as_me: error: cannot compute sizeof (char*)
  26010. See \`config.log' for more details." >&2;}
  26011. { (exit 77); exit 77; }; }
  26012. else
  26013. ac_cv_sizeof_charp=0
  26014. fi
  26015. fi
  26016. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26017. fi
  26018. rm -f conftest.val
  26019. fi
  26020. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  26021. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  26022. cat >>confdefs.h <<_ACEOF
  26023. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  26024. _ACEOF
  26025. { echo "$as_me:$LINENO: checking for int" >&5
  26026. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  26027. if test "${ac_cv_type_int+set}" = set; then
  26028. echo $ECHO_N "(cached) $ECHO_C" >&6
  26029. else
  26030. cat >conftest.$ac_ext <<_ACEOF
  26031. /* confdefs.h. */
  26032. _ACEOF
  26033. cat confdefs.h >>conftest.$ac_ext
  26034. cat >>conftest.$ac_ext <<_ACEOF
  26035. /* end confdefs.h. */
  26036. $ac_includes_default
  26037. typedef int ac__type_new_;
  26038. int
  26039. main ()
  26040. {
  26041. if ((ac__type_new_ *) 0)
  26042. return 0;
  26043. if (sizeof (ac__type_new_))
  26044. return 0;
  26045. ;
  26046. return 0;
  26047. }
  26048. _ACEOF
  26049. rm -f conftest.$ac_objext
  26050. if { (ac_try="$ac_compile"
  26051. case "(($ac_try" in
  26052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26053. *) ac_try_echo=$ac_try;;
  26054. esac
  26055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26056. (eval "$ac_compile") 2>conftest.er1
  26057. ac_status=$?
  26058. grep -v '^ *+' conftest.er1 >conftest.err
  26059. rm -f conftest.er1
  26060. cat conftest.err >&5
  26061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26062. (exit $ac_status); } && {
  26063. test -z "$ac_c_werror_flag" ||
  26064. test ! -s conftest.err
  26065. } && test -s conftest.$ac_objext; then
  26066. ac_cv_type_int=yes
  26067. else
  26068. echo "$as_me: failed program was:" >&5
  26069. sed 's/^/| /' conftest.$ac_ext >&5
  26070. ac_cv_type_int=no
  26071. fi
  26072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26073. fi
  26074. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  26075. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  26076. # The cast to long int works around a bug in the HP C Compiler
  26077. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26078. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26079. # This bug is HP SR number 8606223364.
  26080. { echo "$as_me:$LINENO: checking size of int" >&5
  26081. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  26082. if test "${ac_cv_sizeof_int+set}" = set; then
  26083. echo $ECHO_N "(cached) $ECHO_C" >&6
  26084. else
  26085. if test "$cross_compiling" = yes; then
  26086. # Depending upon the size, compute the lo and hi bounds.
  26087. cat >conftest.$ac_ext <<_ACEOF
  26088. /* confdefs.h. */
  26089. _ACEOF
  26090. cat confdefs.h >>conftest.$ac_ext
  26091. cat >>conftest.$ac_ext <<_ACEOF
  26092. /* end confdefs.h. */
  26093. $ac_includes_default
  26094. typedef int ac__type_sizeof_;
  26095. int
  26096. main ()
  26097. {
  26098. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26099. test_array [0] = 0
  26100. ;
  26101. return 0;
  26102. }
  26103. _ACEOF
  26104. rm -f conftest.$ac_objext
  26105. if { (ac_try="$ac_compile"
  26106. case "(($ac_try" in
  26107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26108. *) ac_try_echo=$ac_try;;
  26109. esac
  26110. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26111. (eval "$ac_compile") 2>conftest.er1
  26112. ac_status=$?
  26113. grep -v '^ *+' conftest.er1 >conftest.err
  26114. rm -f conftest.er1
  26115. cat conftest.err >&5
  26116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26117. (exit $ac_status); } && {
  26118. test -z "$ac_c_werror_flag" ||
  26119. test ! -s conftest.err
  26120. } && test -s conftest.$ac_objext; then
  26121. ac_lo=0 ac_mid=0
  26122. while :; do
  26123. cat >conftest.$ac_ext <<_ACEOF
  26124. /* confdefs.h. */
  26125. _ACEOF
  26126. cat confdefs.h >>conftest.$ac_ext
  26127. cat >>conftest.$ac_ext <<_ACEOF
  26128. /* end confdefs.h. */
  26129. $ac_includes_default
  26130. typedef int ac__type_sizeof_;
  26131. int
  26132. main ()
  26133. {
  26134. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26135. test_array [0] = 0
  26136. ;
  26137. return 0;
  26138. }
  26139. _ACEOF
  26140. rm -f conftest.$ac_objext
  26141. if { (ac_try="$ac_compile"
  26142. case "(($ac_try" in
  26143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26144. *) ac_try_echo=$ac_try;;
  26145. esac
  26146. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26147. (eval "$ac_compile") 2>conftest.er1
  26148. ac_status=$?
  26149. grep -v '^ *+' conftest.er1 >conftest.err
  26150. rm -f conftest.er1
  26151. cat conftest.err >&5
  26152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26153. (exit $ac_status); } && {
  26154. test -z "$ac_c_werror_flag" ||
  26155. test ! -s conftest.err
  26156. } && test -s conftest.$ac_objext; then
  26157. ac_hi=$ac_mid; break
  26158. else
  26159. echo "$as_me: failed program was:" >&5
  26160. sed 's/^/| /' conftest.$ac_ext >&5
  26161. ac_lo=`expr $ac_mid + 1`
  26162. if test $ac_lo -le $ac_mid; then
  26163. ac_lo= ac_hi=
  26164. break
  26165. fi
  26166. ac_mid=`expr 2 '*' $ac_mid + 1`
  26167. fi
  26168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26169. done
  26170. else
  26171. echo "$as_me: failed program was:" >&5
  26172. sed 's/^/| /' conftest.$ac_ext >&5
  26173. cat >conftest.$ac_ext <<_ACEOF
  26174. /* confdefs.h. */
  26175. _ACEOF
  26176. cat confdefs.h >>conftest.$ac_ext
  26177. cat >>conftest.$ac_ext <<_ACEOF
  26178. /* end confdefs.h. */
  26179. $ac_includes_default
  26180. typedef int ac__type_sizeof_;
  26181. int
  26182. main ()
  26183. {
  26184. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26185. test_array [0] = 0
  26186. ;
  26187. return 0;
  26188. }
  26189. _ACEOF
  26190. rm -f conftest.$ac_objext
  26191. if { (ac_try="$ac_compile"
  26192. case "(($ac_try" in
  26193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26194. *) ac_try_echo=$ac_try;;
  26195. esac
  26196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26197. (eval "$ac_compile") 2>conftest.er1
  26198. ac_status=$?
  26199. grep -v '^ *+' conftest.er1 >conftest.err
  26200. rm -f conftest.er1
  26201. cat conftest.err >&5
  26202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26203. (exit $ac_status); } && {
  26204. test -z "$ac_c_werror_flag" ||
  26205. test ! -s conftest.err
  26206. } && test -s conftest.$ac_objext; then
  26207. ac_hi=-1 ac_mid=-1
  26208. while :; do
  26209. cat >conftest.$ac_ext <<_ACEOF
  26210. /* confdefs.h. */
  26211. _ACEOF
  26212. cat confdefs.h >>conftest.$ac_ext
  26213. cat >>conftest.$ac_ext <<_ACEOF
  26214. /* end confdefs.h. */
  26215. $ac_includes_default
  26216. typedef int ac__type_sizeof_;
  26217. int
  26218. main ()
  26219. {
  26220. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26221. test_array [0] = 0
  26222. ;
  26223. return 0;
  26224. }
  26225. _ACEOF
  26226. rm -f conftest.$ac_objext
  26227. if { (ac_try="$ac_compile"
  26228. case "(($ac_try" in
  26229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26230. *) ac_try_echo=$ac_try;;
  26231. esac
  26232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26233. (eval "$ac_compile") 2>conftest.er1
  26234. ac_status=$?
  26235. grep -v '^ *+' conftest.er1 >conftest.err
  26236. rm -f conftest.er1
  26237. cat conftest.err >&5
  26238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26239. (exit $ac_status); } && {
  26240. test -z "$ac_c_werror_flag" ||
  26241. test ! -s conftest.err
  26242. } && test -s conftest.$ac_objext; then
  26243. ac_lo=$ac_mid; break
  26244. else
  26245. echo "$as_me: failed program was:" >&5
  26246. sed 's/^/| /' conftest.$ac_ext >&5
  26247. ac_hi=`expr '(' $ac_mid ')' - 1`
  26248. if test $ac_mid -le $ac_hi; then
  26249. ac_lo= ac_hi=
  26250. break
  26251. fi
  26252. ac_mid=`expr 2 '*' $ac_mid`
  26253. fi
  26254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26255. done
  26256. else
  26257. echo "$as_me: failed program was:" >&5
  26258. sed 's/^/| /' conftest.$ac_ext >&5
  26259. ac_lo= ac_hi=
  26260. fi
  26261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26262. fi
  26263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26264. # Binary search between lo and hi bounds.
  26265. while test "x$ac_lo" != "x$ac_hi"; do
  26266. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26267. cat >conftest.$ac_ext <<_ACEOF
  26268. /* confdefs.h. */
  26269. _ACEOF
  26270. cat confdefs.h >>conftest.$ac_ext
  26271. cat >>conftest.$ac_ext <<_ACEOF
  26272. /* end confdefs.h. */
  26273. $ac_includes_default
  26274. typedef int ac__type_sizeof_;
  26275. int
  26276. main ()
  26277. {
  26278. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26279. test_array [0] = 0
  26280. ;
  26281. return 0;
  26282. }
  26283. _ACEOF
  26284. rm -f conftest.$ac_objext
  26285. if { (ac_try="$ac_compile"
  26286. case "(($ac_try" in
  26287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26288. *) ac_try_echo=$ac_try;;
  26289. esac
  26290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26291. (eval "$ac_compile") 2>conftest.er1
  26292. ac_status=$?
  26293. grep -v '^ *+' conftest.er1 >conftest.err
  26294. rm -f conftest.er1
  26295. cat conftest.err >&5
  26296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26297. (exit $ac_status); } && {
  26298. test -z "$ac_c_werror_flag" ||
  26299. test ! -s conftest.err
  26300. } && test -s conftest.$ac_objext; then
  26301. ac_hi=$ac_mid
  26302. else
  26303. echo "$as_me: failed program was:" >&5
  26304. sed 's/^/| /' conftest.$ac_ext >&5
  26305. ac_lo=`expr '(' $ac_mid ')' + 1`
  26306. fi
  26307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26308. done
  26309. case $ac_lo in
  26310. ?*) ac_cv_sizeof_int=$ac_lo;;
  26311. '') if test "$ac_cv_type_int" = yes; then
  26312. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26313. See \`config.log' for more details." >&5
  26314. echo "$as_me: error: cannot compute sizeof (int)
  26315. See \`config.log' for more details." >&2;}
  26316. { (exit 77); exit 77; }; }
  26317. else
  26318. ac_cv_sizeof_int=0
  26319. fi ;;
  26320. esac
  26321. else
  26322. cat >conftest.$ac_ext <<_ACEOF
  26323. /* confdefs.h. */
  26324. _ACEOF
  26325. cat confdefs.h >>conftest.$ac_ext
  26326. cat >>conftest.$ac_ext <<_ACEOF
  26327. /* end confdefs.h. */
  26328. $ac_includes_default
  26329. typedef int ac__type_sizeof_;
  26330. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26331. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26332. #include <stdio.h>
  26333. #include <stdlib.h>
  26334. int
  26335. main ()
  26336. {
  26337. FILE *f = fopen ("conftest.val", "w");
  26338. if (! f)
  26339. return 1;
  26340. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26341. {
  26342. long int i = longval ();
  26343. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26344. return 1;
  26345. fprintf (f, "%ld\n", i);
  26346. }
  26347. else
  26348. {
  26349. unsigned long int i = ulongval ();
  26350. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26351. return 1;
  26352. fprintf (f, "%lu\n", i);
  26353. }
  26354. return ferror (f) || fclose (f) != 0;
  26355. ;
  26356. return 0;
  26357. }
  26358. _ACEOF
  26359. rm -f conftest$ac_exeext
  26360. if { (ac_try="$ac_link"
  26361. case "(($ac_try" in
  26362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26363. *) ac_try_echo=$ac_try;;
  26364. esac
  26365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26366. (eval "$ac_link") 2>&5
  26367. ac_status=$?
  26368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26369. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26370. { (case "(($ac_try" in
  26371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26372. *) ac_try_echo=$ac_try;;
  26373. esac
  26374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26375. (eval "$ac_try") 2>&5
  26376. ac_status=$?
  26377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26378. (exit $ac_status); }; }; then
  26379. ac_cv_sizeof_int=`cat conftest.val`
  26380. else
  26381. echo "$as_me: program exited with status $ac_status" >&5
  26382. echo "$as_me: failed program was:" >&5
  26383. sed 's/^/| /' conftest.$ac_ext >&5
  26384. ( exit $ac_status )
  26385. if test "$ac_cv_type_int" = yes; then
  26386. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  26387. See \`config.log' for more details." >&5
  26388. echo "$as_me: error: cannot compute sizeof (int)
  26389. See \`config.log' for more details." >&2;}
  26390. { (exit 77); exit 77; }; }
  26391. else
  26392. ac_cv_sizeof_int=0
  26393. fi
  26394. fi
  26395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26396. fi
  26397. rm -f conftest.val
  26398. fi
  26399. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  26400. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  26401. cat >>confdefs.h <<_ACEOF
  26402. #define SIZEOF_INT $ac_cv_sizeof_int
  26403. _ACEOF
  26404. { echo "$as_me:$LINENO: checking for long" >&5
  26405. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  26406. if test "${ac_cv_type_long+set}" = set; then
  26407. echo $ECHO_N "(cached) $ECHO_C" >&6
  26408. else
  26409. cat >conftest.$ac_ext <<_ACEOF
  26410. /* confdefs.h. */
  26411. _ACEOF
  26412. cat confdefs.h >>conftest.$ac_ext
  26413. cat >>conftest.$ac_ext <<_ACEOF
  26414. /* end confdefs.h. */
  26415. $ac_includes_default
  26416. typedef long ac__type_new_;
  26417. int
  26418. main ()
  26419. {
  26420. if ((ac__type_new_ *) 0)
  26421. return 0;
  26422. if (sizeof (ac__type_new_))
  26423. return 0;
  26424. ;
  26425. return 0;
  26426. }
  26427. _ACEOF
  26428. rm -f conftest.$ac_objext
  26429. if { (ac_try="$ac_compile"
  26430. case "(($ac_try" in
  26431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26432. *) ac_try_echo=$ac_try;;
  26433. esac
  26434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26435. (eval "$ac_compile") 2>conftest.er1
  26436. ac_status=$?
  26437. grep -v '^ *+' conftest.er1 >conftest.err
  26438. rm -f conftest.er1
  26439. cat conftest.err >&5
  26440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26441. (exit $ac_status); } && {
  26442. test -z "$ac_c_werror_flag" ||
  26443. test ! -s conftest.err
  26444. } && test -s conftest.$ac_objext; then
  26445. ac_cv_type_long=yes
  26446. else
  26447. echo "$as_me: failed program was:" >&5
  26448. sed 's/^/| /' conftest.$ac_ext >&5
  26449. ac_cv_type_long=no
  26450. fi
  26451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26452. fi
  26453. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  26454. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  26455. # The cast to long int works around a bug in the HP C Compiler
  26456. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26457. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26458. # This bug is HP SR number 8606223364.
  26459. { echo "$as_me:$LINENO: checking size of long" >&5
  26460. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  26461. if test "${ac_cv_sizeof_long+set}" = set; then
  26462. echo $ECHO_N "(cached) $ECHO_C" >&6
  26463. else
  26464. if test "$cross_compiling" = yes; then
  26465. # Depending upon the size, compute the lo and hi bounds.
  26466. cat >conftest.$ac_ext <<_ACEOF
  26467. /* confdefs.h. */
  26468. _ACEOF
  26469. cat confdefs.h >>conftest.$ac_ext
  26470. cat >>conftest.$ac_ext <<_ACEOF
  26471. /* end confdefs.h. */
  26472. $ac_includes_default
  26473. typedef long ac__type_sizeof_;
  26474. int
  26475. main ()
  26476. {
  26477. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26478. test_array [0] = 0
  26479. ;
  26480. return 0;
  26481. }
  26482. _ACEOF
  26483. rm -f conftest.$ac_objext
  26484. if { (ac_try="$ac_compile"
  26485. case "(($ac_try" in
  26486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26487. *) ac_try_echo=$ac_try;;
  26488. esac
  26489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26490. (eval "$ac_compile") 2>conftest.er1
  26491. ac_status=$?
  26492. grep -v '^ *+' conftest.er1 >conftest.err
  26493. rm -f conftest.er1
  26494. cat conftest.err >&5
  26495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26496. (exit $ac_status); } && {
  26497. test -z "$ac_c_werror_flag" ||
  26498. test ! -s conftest.err
  26499. } && test -s conftest.$ac_objext; then
  26500. ac_lo=0 ac_mid=0
  26501. while :; do
  26502. cat >conftest.$ac_ext <<_ACEOF
  26503. /* confdefs.h. */
  26504. _ACEOF
  26505. cat confdefs.h >>conftest.$ac_ext
  26506. cat >>conftest.$ac_ext <<_ACEOF
  26507. /* end confdefs.h. */
  26508. $ac_includes_default
  26509. typedef long ac__type_sizeof_;
  26510. int
  26511. main ()
  26512. {
  26513. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26514. test_array [0] = 0
  26515. ;
  26516. return 0;
  26517. }
  26518. _ACEOF
  26519. rm -f conftest.$ac_objext
  26520. if { (ac_try="$ac_compile"
  26521. case "(($ac_try" in
  26522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26523. *) ac_try_echo=$ac_try;;
  26524. esac
  26525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26526. (eval "$ac_compile") 2>conftest.er1
  26527. ac_status=$?
  26528. grep -v '^ *+' conftest.er1 >conftest.err
  26529. rm -f conftest.er1
  26530. cat conftest.err >&5
  26531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26532. (exit $ac_status); } && {
  26533. test -z "$ac_c_werror_flag" ||
  26534. test ! -s conftest.err
  26535. } && test -s conftest.$ac_objext; then
  26536. ac_hi=$ac_mid; break
  26537. else
  26538. echo "$as_me: failed program was:" >&5
  26539. sed 's/^/| /' conftest.$ac_ext >&5
  26540. ac_lo=`expr $ac_mid + 1`
  26541. if test $ac_lo -le $ac_mid; then
  26542. ac_lo= ac_hi=
  26543. break
  26544. fi
  26545. ac_mid=`expr 2 '*' $ac_mid + 1`
  26546. fi
  26547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26548. done
  26549. else
  26550. echo "$as_me: failed program was:" >&5
  26551. sed 's/^/| /' conftest.$ac_ext >&5
  26552. cat >conftest.$ac_ext <<_ACEOF
  26553. /* confdefs.h. */
  26554. _ACEOF
  26555. cat confdefs.h >>conftest.$ac_ext
  26556. cat >>conftest.$ac_ext <<_ACEOF
  26557. /* end confdefs.h. */
  26558. $ac_includes_default
  26559. typedef long ac__type_sizeof_;
  26560. int
  26561. main ()
  26562. {
  26563. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26564. test_array [0] = 0
  26565. ;
  26566. return 0;
  26567. }
  26568. _ACEOF
  26569. rm -f conftest.$ac_objext
  26570. if { (ac_try="$ac_compile"
  26571. case "(($ac_try" in
  26572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26573. *) ac_try_echo=$ac_try;;
  26574. esac
  26575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26576. (eval "$ac_compile") 2>conftest.er1
  26577. ac_status=$?
  26578. grep -v '^ *+' conftest.er1 >conftest.err
  26579. rm -f conftest.er1
  26580. cat conftest.err >&5
  26581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26582. (exit $ac_status); } && {
  26583. test -z "$ac_c_werror_flag" ||
  26584. test ! -s conftest.err
  26585. } && test -s conftest.$ac_objext; then
  26586. ac_hi=-1 ac_mid=-1
  26587. while :; do
  26588. cat >conftest.$ac_ext <<_ACEOF
  26589. /* confdefs.h. */
  26590. _ACEOF
  26591. cat confdefs.h >>conftest.$ac_ext
  26592. cat >>conftest.$ac_ext <<_ACEOF
  26593. /* end confdefs.h. */
  26594. $ac_includes_default
  26595. typedef long ac__type_sizeof_;
  26596. int
  26597. main ()
  26598. {
  26599. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26600. test_array [0] = 0
  26601. ;
  26602. return 0;
  26603. }
  26604. _ACEOF
  26605. rm -f conftest.$ac_objext
  26606. if { (ac_try="$ac_compile"
  26607. case "(($ac_try" in
  26608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26609. *) ac_try_echo=$ac_try;;
  26610. esac
  26611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26612. (eval "$ac_compile") 2>conftest.er1
  26613. ac_status=$?
  26614. grep -v '^ *+' conftest.er1 >conftest.err
  26615. rm -f conftest.er1
  26616. cat conftest.err >&5
  26617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26618. (exit $ac_status); } && {
  26619. test -z "$ac_c_werror_flag" ||
  26620. test ! -s conftest.err
  26621. } && test -s conftest.$ac_objext; then
  26622. ac_lo=$ac_mid; break
  26623. else
  26624. echo "$as_me: failed program was:" >&5
  26625. sed 's/^/| /' conftest.$ac_ext >&5
  26626. ac_hi=`expr '(' $ac_mid ')' - 1`
  26627. if test $ac_mid -le $ac_hi; then
  26628. ac_lo= ac_hi=
  26629. break
  26630. fi
  26631. ac_mid=`expr 2 '*' $ac_mid`
  26632. fi
  26633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26634. done
  26635. else
  26636. echo "$as_me: failed program was:" >&5
  26637. sed 's/^/| /' conftest.$ac_ext >&5
  26638. ac_lo= ac_hi=
  26639. fi
  26640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26641. fi
  26642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26643. # Binary search between lo and hi bounds.
  26644. while test "x$ac_lo" != "x$ac_hi"; do
  26645. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  26646. cat >conftest.$ac_ext <<_ACEOF
  26647. /* confdefs.h. */
  26648. _ACEOF
  26649. cat confdefs.h >>conftest.$ac_ext
  26650. cat >>conftest.$ac_ext <<_ACEOF
  26651. /* end confdefs.h. */
  26652. $ac_includes_default
  26653. typedef long ac__type_sizeof_;
  26654. int
  26655. main ()
  26656. {
  26657. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26658. test_array [0] = 0
  26659. ;
  26660. return 0;
  26661. }
  26662. _ACEOF
  26663. rm -f conftest.$ac_objext
  26664. if { (ac_try="$ac_compile"
  26665. case "(($ac_try" in
  26666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26667. *) ac_try_echo=$ac_try;;
  26668. esac
  26669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26670. (eval "$ac_compile") 2>conftest.er1
  26671. ac_status=$?
  26672. grep -v '^ *+' conftest.er1 >conftest.err
  26673. rm -f conftest.er1
  26674. cat conftest.err >&5
  26675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26676. (exit $ac_status); } && {
  26677. test -z "$ac_c_werror_flag" ||
  26678. test ! -s conftest.err
  26679. } && test -s conftest.$ac_objext; then
  26680. ac_hi=$ac_mid
  26681. else
  26682. echo "$as_me: failed program was:" >&5
  26683. sed 's/^/| /' conftest.$ac_ext >&5
  26684. ac_lo=`expr '(' $ac_mid ')' + 1`
  26685. fi
  26686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26687. done
  26688. case $ac_lo in
  26689. ?*) ac_cv_sizeof_long=$ac_lo;;
  26690. '') if test "$ac_cv_type_long" = yes; then
  26691. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26692. See \`config.log' for more details." >&5
  26693. echo "$as_me: error: cannot compute sizeof (long)
  26694. See \`config.log' for more details." >&2;}
  26695. { (exit 77); exit 77; }; }
  26696. else
  26697. ac_cv_sizeof_long=0
  26698. fi ;;
  26699. esac
  26700. else
  26701. cat >conftest.$ac_ext <<_ACEOF
  26702. /* confdefs.h. */
  26703. _ACEOF
  26704. cat confdefs.h >>conftest.$ac_ext
  26705. cat >>conftest.$ac_ext <<_ACEOF
  26706. /* end confdefs.h. */
  26707. $ac_includes_default
  26708. typedef long ac__type_sizeof_;
  26709. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26710. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  26711. #include <stdio.h>
  26712. #include <stdlib.h>
  26713. int
  26714. main ()
  26715. {
  26716. FILE *f = fopen ("conftest.val", "w");
  26717. if (! f)
  26718. return 1;
  26719. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  26720. {
  26721. long int i = longval ();
  26722. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26723. return 1;
  26724. fprintf (f, "%ld\n", i);
  26725. }
  26726. else
  26727. {
  26728. unsigned long int i = ulongval ();
  26729. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  26730. return 1;
  26731. fprintf (f, "%lu\n", i);
  26732. }
  26733. return ferror (f) || fclose (f) != 0;
  26734. ;
  26735. return 0;
  26736. }
  26737. _ACEOF
  26738. rm -f conftest$ac_exeext
  26739. if { (ac_try="$ac_link"
  26740. case "(($ac_try" in
  26741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26742. *) ac_try_echo=$ac_try;;
  26743. esac
  26744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26745. (eval "$ac_link") 2>&5
  26746. ac_status=$?
  26747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26748. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  26749. { (case "(($ac_try" in
  26750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26751. *) ac_try_echo=$ac_try;;
  26752. esac
  26753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26754. (eval "$ac_try") 2>&5
  26755. ac_status=$?
  26756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26757. (exit $ac_status); }; }; then
  26758. ac_cv_sizeof_long=`cat conftest.val`
  26759. else
  26760. echo "$as_me: program exited with status $ac_status" >&5
  26761. echo "$as_me: failed program was:" >&5
  26762. sed 's/^/| /' conftest.$ac_ext >&5
  26763. ( exit $ac_status )
  26764. if test "$ac_cv_type_long" = yes; then
  26765. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  26766. See \`config.log' for more details." >&5
  26767. echo "$as_me: error: cannot compute sizeof (long)
  26768. See \`config.log' for more details." >&2;}
  26769. { (exit 77); exit 77; }; }
  26770. else
  26771. ac_cv_sizeof_long=0
  26772. fi
  26773. fi
  26774. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  26775. fi
  26776. rm -f conftest.val
  26777. fi
  26778. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  26779. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  26780. cat >>confdefs.h <<_ACEOF
  26781. #define SIZEOF_LONG $ac_cv_sizeof_long
  26782. _ACEOF
  26783. { echo "$as_me:$LINENO: checking for short" >&5
  26784. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  26785. if test "${ac_cv_type_short+set}" = set; then
  26786. echo $ECHO_N "(cached) $ECHO_C" >&6
  26787. else
  26788. cat >conftest.$ac_ext <<_ACEOF
  26789. /* confdefs.h. */
  26790. _ACEOF
  26791. cat confdefs.h >>conftest.$ac_ext
  26792. cat >>conftest.$ac_ext <<_ACEOF
  26793. /* end confdefs.h. */
  26794. $ac_includes_default
  26795. typedef short ac__type_new_;
  26796. int
  26797. main ()
  26798. {
  26799. if ((ac__type_new_ *) 0)
  26800. return 0;
  26801. if (sizeof (ac__type_new_))
  26802. return 0;
  26803. ;
  26804. return 0;
  26805. }
  26806. _ACEOF
  26807. rm -f conftest.$ac_objext
  26808. if { (ac_try="$ac_compile"
  26809. case "(($ac_try" in
  26810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26811. *) ac_try_echo=$ac_try;;
  26812. esac
  26813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26814. (eval "$ac_compile") 2>conftest.er1
  26815. ac_status=$?
  26816. grep -v '^ *+' conftest.er1 >conftest.err
  26817. rm -f conftest.er1
  26818. cat conftest.err >&5
  26819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26820. (exit $ac_status); } && {
  26821. test -z "$ac_c_werror_flag" ||
  26822. test ! -s conftest.err
  26823. } && test -s conftest.$ac_objext; then
  26824. ac_cv_type_short=yes
  26825. else
  26826. echo "$as_me: failed program was:" >&5
  26827. sed 's/^/| /' conftest.$ac_ext >&5
  26828. ac_cv_type_short=no
  26829. fi
  26830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26831. fi
  26832. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  26833. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  26834. # The cast to long int works around a bug in the HP C Compiler
  26835. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26836. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26837. # This bug is HP SR number 8606223364.
  26838. { echo "$as_me:$LINENO: checking size of short" >&5
  26839. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  26840. if test "${ac_cv_sizeof_short+set}" = set; then
  26841. echo $ECHO_N "(cached) $ECHO_C" >&6
  26842. else
  26843. if test "$cross_compiling" = yes; then
  26844. # Depending upon the size, compute the lo and hi bounds.
  26845. cat >conftest.$ac_ext <<_ACEOF
  26846. /* confdefs.h. */
  26847. _ACEOF
  26848. cat confdefs.h >>conftest.$ac_ext
  26849. cat >>conftest.$ac_ext <<_ACEOF
  26850. /* end confdefs.h. */
  26851. $ac_includes_default
  26852. typedef short ac__type_sizeof_;
  26853. int
  26854. main ()
  26855. {
  26856. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  26857. test_array [0] = 0
  26858. ;
  26859. return 0;
  26860. }
  26861. _ACEOF
  26862. rm -f conftest.$ac_objext
  26863. if { (ac_try="$ac_compile"
  26864. case "(($ac_try" in
  26865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26866. *) ac_try_echo=$ac_try;;
  26867. esac
  26868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26869. (eval "$ac_compile") 2>conftest.er1
  26870. ac_status=$?
  26871. grep -v '^ *+' conftest.er1 >conftest.err
  26872. rm -f conftest.er1
  26873. cat conftest.err >&5
  26874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26875. (exit $ac_status); } && {
  26876. test -z "$ac_c_werror_flag" ||
  26877. test ! -s conftest.err
  26878. } && test -s conftest.$ac_objext; then
  26879. ac_lo=0 ac_mid=0
  26880. while :; do
  26881. cat >conftest.$ac_ext <<_ACEOF
  26882. /* confdefs.h. */
  26883. _ACEOF
  26884. cat confdefs.h >>conftest.$ac_ext
  26885. cat >>conftest.$ac_ext <<_ACEOF
  26886. /* end confdefs.h. */
  26887. $ac_includes_default
  26888. typedef short ac__type_sizeof_;
  26889. int
  26890. main ()
  26891. {
  26892. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  26893. test_array [0] = 0
  26894. ;
  26895. return 0;
  26896. }
  26897. _ACEOF
  26898. rm -f conftest.$ac_objext
  26899. if { (ac_try="$ac_compile"
  26900. case "(($ac_try" in
  26901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26902. *) ac_try_echo=$ac_try;;
  26903. esac
  26904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26905. (eval "$ac_compile") 2>conftest.er1
  26906. ac_status=$?
  26907. grep -v '^ *+' conftest.er1 >conftest.err
  26908. rm -f conftest.er1
  26909. cat conftest.err >&5
  26910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26911. (exit $ac_status); } && {
  26912. test -z "$ac_c_werror_flag" ||
  26913. test ! -s conftest.err
  26914. } && test -s conftest.$ac_objext; then
  26915. ac_hi=$ac_mid; break
  26916. else
  26917. echo "$as_me: failed program was:" >&5
  26918. sed 's/^/| /' conftest.$ac_ext >&5
  26919. ac_lo=`expr $ac_mid + 1`
  26920. if test $ac_lo -le $ac_mid; then
  26921. ac_lo= ac_hi=
  26922. break
  26923. fi
  26924. ac_mid=`expr 2 '*' $ac_mid + 1`
  26925. fi
  26926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26927. done
  26928. else
  26929. echo "$as_me: failed program was:" >&5
  26930. sed 's/^/| /' conftest.$ac_ext >&5
  26931. cat >conftest.$ac_ext <<_ACEOF
  26932. /* confdefs.h. */
  26933. _ACEOF
  26934. cat confdefs.h >>conftest.$ac_ext
  26935. cat >>conftest.$ac_ext <<_ACEOF
  26936. /* end confdefs.h. */
  26937. $ac_includes_default
  26938. typedef short ac__type_sizeof_;
  26939. int
  26940. main ()
  26941. {
  26942. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  26943. test_array [0] = 0
  26944. ;
  26945. return 0;
  26946. }
  26947. _ACEOF
  26948. rm -f conftest.$ac_objext
  26949. if { (ac_try="$ac_compile"
  26950. case "(($ac_try" in
  26951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26952. *) ac_try_echo=$ac_try;;
  26953. esac
  26954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26955. (eval "$ac_compile") 2>conftest.er1
  26956. ac_status=$?
  26957. grep -v '^ *+' conftest.er1 >conftest.err
  26958. rm -f conftest.er1
  26959. cat conftest.err >&5
  26960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26961. (exit $ac_status); } && {
  26962. test -z "$ac_c_werror_flag" ||
  26963. test ! -s conftest.err
  26964. } && test -s conftest.$ac_objext; then
  26965. ac_hi=-1 ac_mid=-1
  26966. while :; do
  26967. cat >conftest.$ac_ext <<_ACEOF
  26968. /* confdefs.h. */
  26969. _ACEOF
  26970. cat confdefs.h >>conftest.$ac_ext
  26971. cat >>conftest.$ac_ext <<_ACEOF
  26972. /* end confdefs.h. */
  26973. $ac_includes_default
  26974. typedef short ac__type_sizeof_;
  26975. int
  26976. main ()
  26977. {
  26978. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  26979. test_array [0] = 0
  26980. ;
  26981. return 0;
  26982. }
  26983. _ACEOF
  26984. rm -f conftest.$ac_objext
  26985. if { (ac_try="$ac_compile"
  26986. case "(($ac_try" in
  26987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26988. *) ac_try_echo=$ac_try;;
  26989. esac
  26990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  26991. (eval "$ac_compile") 2>conftest.er1
  26992. ac_status=$?
  26993. grep -v '^ *+' conftest.er1 >conftest.err
  26994. rm -f conftest.er1
  26995. cat conftest.err >&5
  26996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26997. (exit $ac_status); } && {
  26998. test -z "$ac_c_werror_flag" ||
  26999. test ! -s conftest.err
  27000. } && test -s conftest.$ac_objext; then
  27001. ac_lo=$ac_mid; break
  27002. else
  27003. echo "$as_me: failed program was:" >&5
  27004. sed 's/^/| /' conftest.$ac_ext >&5
  27005. ac_hi=`expr '(' $ac_mid ')' - 1`
  27006. if test $ac_mid -le $ac_hi; then
  27007. ac_lo= ac_hi=
  27008. break
  27009. fi
  27010. ac_mid=`expr 2 '*' $ac_mid`
  27011. fi
  27012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27013. done
  27014. else
  27015. echo "$as_me: failed program was:" >&5
  27016. sed 's/^/| /' conftest.$ac_ext >&5
  27017. ac_lo= ac_hi=
  27018. fi
  27019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27020. fi
  27021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27022. # Binary search between lo and hi bounds.
  27023. while test "x$ac_lo" != "x$ac_hi"; do
  27024. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27025. cat >conftest.$ac_ext <<_ACEOF
  27026. /* confdefs.h. */
  27027. _ACEOF
  27028. cat confdefs.h >>conftest.$ac_ext
  27029. cat >>conftest.$ac_ext <<_ACEOF
  27030. /* end confdefs.h. */
  27031. $ac_includes_default
  27032. typedef short ac__type_sizeof_;
  27033. int
  27034. main ()
  27035. {
  27036. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  27037. test_array [0] = 0
  27038. ;
  27039. return 0;
  27040. }
  27041. _ACEOF
  27042. rm -f conftest.$ac_objext
  27043. if { (ac_try="$ac_compile"
  27044. case "(($ac_try" in
  27045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27046. *) ac_try_echo=$ac_try;;
  27047. esac
  27048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27049. (eval "$ac_compile") 2>conftest.er1
  27050. ac_status=$?
  27051. grep -v '^ *+' conftest.er1 >conftest.err
  27052. rm -f conftest.er1
  27053. cat conftest.err >&5
  27054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27055. (exit $ac_status); } && {
  27056. test -z "$ac_c_werror_flag" ||
  27057. test ! -s conftest.err
  27058. } && test -s conftest.$ac_objext; then
  27059. ac_hi=$ac_mid
  27060. else
  27061. echo "$as_me: failed program was:" >&5
  27062. sed 's/^/| /' conftest.$ac_ext >&5
  27063. ac_lo=`expr '(' $ac_mid ')' + 1`
  27064. fi
  27065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27066. done
  27067. case $ac_lo in
  27068. ?*) ac_cv_sizeof_short=$ac_lo;;
  27069. '') if test "$ac_cv_type_short" = yes; then
  27070. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27071. See \`config.log' for more details." >&5
  27072. echo "$as_me: error: cannot compute sizeof (short)
  27073. See \`config.log' for more details." >&2;}
  27074. { (exit 77); exit 77; }; }
  27075. else
  27076. ac_cv_sizeof_short=0
  27077. fi ;;
  27078. esac
  27079. else
  27080. cat >conftest.$ac_ext <<_ACEOF
  27081. /* confdefs.h. */
  27082. _ACEOF
  27083. cat confdefs.h >>conftest.$ac_ext
  27084. cat >>conftest.$ac_ext <<_ACEOF
  27085. /* end confdefs.h. */
  27086. $ac_includes_default
  27087. typedef short ac__type_sizeof_;
  27088. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27089. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  27090. #include <stdio.h>
  27091. #include <stdlib.h>
  27092. int
  27093. main ()
  27094. {
  27095. FILE *f = fopen ("conftest.val", "w");
  27096. if (! f)
  27097. return 1;
  27098. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  27099. {
  27100. long int i = longval ();
  27101. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27102. return 1;
  27103. fprintf (f, "%ld\n", i);
  27104. }
  27105. else
  27106. {
  27107. unsigned long int i = ulongval ();
  27108. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  27109. return 1;
  27110. fprintf (f, "%lu\n", i);
  27111. }
  27112. return ferror (f) || fclose (f) != 0;
  27113. ;
  27114. return 0;
  27115. }
  27116. _ACEOF
  27117. rm -f conftest$ac_exeext
  27118. if { (ac_try="$ac_link"
  27119. case "(($ac_try" in
  27120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27121. *) ac_try_echo=$ac_try;;
  27122. esac
  27123. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27124. (eval "$ac_link") 2>&5
  27125. ac_status=$?
  27126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27127. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27128. { (case "(($ac_try" in
  27129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27130. *) ac_try_echo=$ac_try;;
  27131. esac
  27132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27133. (eval "$ac_try") 2>&5
  27134. ac_status=$?
  27135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27136. (exit $ac_status); }; }; then
  27137. ac_cv_sizeof_short=`cat conftest.val`
  27138. else
  27139. echo "$as_me: program exited with status $ac_status" >&5
  27140. echo "$as_me: failed program was:" >&5
  27141. sed 's/^/| /' conftest.$ac_ext >&5
  27142. ( exit $ac_status )
  27143. if test "$ac_cv_type_short" = yes; then
  27144. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  27145. See \`config.log' for more details." >&5
  27146. echo "$as_me: error: cannot compute sizeof (short)
  27147. See \`config.log' for more details." >&2;}
  27148. { (exit 77); exit 77; }; }
  27149. else
  27150. ac_cv_sizeof_short=0
  27151. fi
  27152. fi
  27153. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27154. fi
  27155. rm -f conftest.val
  27156. fi
  27157. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  27158. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  27159. cat >>confdefs.h <<_ACEOF
  27160. #define SIZEOF_SHORT $ac_cv_sizeof_short
  27161. _ACEOF
  27162. # ----------------------------------------------------------------------
  27163. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  27164. # ----------------------------------------------------------------------
  27165. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  27166. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  27167. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  27168. echo $ECHO_N "(cached) $ECHO_C" >&6
  27169. else
  27170. ac_check_lib_save_LIBS=$LIBS
  27171. LIBS="-lgen $LIBS"
  27172. cat >conftest.$ac_ext <<_ACEOF
  27173. /* confdefs.h. */
  27174. _ACEOF
  27175. cat confdefs.h >>conftest.$ac_ext
  27176. cat >>conftest.$ac_ext <<_ACEOF
  27177. /* end confdefs.h. */
  27178. /* Override any GCC internal prototype to avoid an error.
  27179. Use char because int might match the return type of a GCC
  27180. builtin and then its argument prototype would still apply. */
  27181. #ifdef __cplusplus
  27182. extern "C"
  27183. #endif
  27184. char pathfind ();
  27185. int
  27186. main ()
  27187. {
  27188. return pathfind ();
  27189. ;
  27190. return 0;
  27191. }
  27192. _ACEOF
  27193. rm -f conftest.$ac_objext conftest$ac_exeext
  27194. if { (ac_try="$ac_link"
  27195. case "(($ac_try" in
  27196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27197. *) ac_try_echo=$ac_try;;
  27198. esac
  27199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27200. (eval "$ac_link") 2>conftest.er1
  27201. ac_status=$?
  27202. grep -v '^ *+' conftest.er1 >conftest.err
  27203. rm -f conftest.er1
  27204. cat conftest.err >&5
  27205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27206. (exit $ac_status); } && {
  27207. test -z "$ac_c_werror_flag" ||
  27208. test ! -s conftest.err
  27209. } && test -s conftest$ac_exeext &&
  27210. $as_test_x conftest$ac_exeext; then
  27211. ac_cv_lib_gen_pathfind=yes
  27212. else
  27213. echo "$as_me: failed program was:" >&5
  27214. sed 's/^/| /' conftest.$ac_ext >&5
  27215. ac_cv_lib_gen_pathfind=no
  27216. fi
  27217. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27218. conftest$ac_exeext conftest.$ac_ext
  27219. LIBS=$ac_check_lib_save_LIBS
  27220. fi
  27221. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  27222. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  27223. if test $ac_cv_lib_gen_pathfind = yes; then
  27224. cat >>confdefs.h <<_ACEOF
  27225. #define HAVE_LIBGEN 1
  27226. _ACEOF
  27227. LIBS="-lgen $LIBS"
  27228. fi
  27229. for ac_func in vprintf
  27230. do
  27231. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27232. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27233. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27234. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27235. echo $ECHO_N "(cached) $ECHO_C" >&6
  27236. else
  27237. cat >conftest.$ac_ext <<_ACEOF
  27238. /* confdefs.h. */
  27239. _ACEOF
  27240. cat confdefs.h >>conftest.$ac_ext
  27241. cat >>conftest.$ac_ext <<_ACEOF
  27242. /* end confdefs.h. */
  27243. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27244. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27245. #define $ac_func innocuous_$ac_func
  27246. /* System header to define __stub macros and hopefully few prototypes,
  27247. which can conflict with char $ac_func (); below.
  27248. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27249. <limits.h> exists even on freestanding compilers. */
  27250. #ifdef __STDC__
  27251. # include <limits.h>
  27252. #else
  27253. # include <assert.h>
  27254. #endif
  27255. #undef $ac_func
  27256. /* Override any GCC internal prototype to avoid an error.
  27257. Use char because int might match the return type of a GCC
  27258. builtin and then its argument prototype would still apply. */
  27259. #ifdef __cplusplus
  27260. extern "C"
  27261. #endif
  27262. char $ac_func ();
  27263. /* The GNU C library defines this for functions which it implements
  27264. to always fail with ENOSYS. Some functions are actually named
  27265. something starting with __ and the normal name is an alias. */
  27266. #if defined __stub_$ac_func || defined __stub___$ac_func
  27267. choke me
  27268. #endif
  27269. int
  27270. main ()
  27271. {
  27272. return $ac_func ();
  27273. ;
  27274. return 0;
  27275. }
  27276. _ACEOF
  27277. rm -f conftest.$ac_objext conftest$ac_exeext
  27278. if { (ac_try="$ac_link"
  27279. case "(($ac_try" in
  27280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27281. *) ac_try_echo=$ac_try;;
  27282. esac
  27283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27284. (eval "$ac_link") 2>conftest.er1
  27285. ac_status=$?
  27286. grep -v '^ *+' conftest.er1 >conftest.err
  27287. rm -f conftest.er1
  27288. cat conftest.err >&5
  27289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27290. (exit $ac_status); } && {
  27291. test -z "$ac_c_werror_flag" ||
  27292. test ! -s conftest.err
  27293. } && test -s conftest$ac_exeext &&
  27294. $as_test_x conftest$ac_exeext; then
  27295. eval "$as_ac_var=yes"
  27296. else
  27297. echo "$as_me: failed program was:" >&5
  27298. sed 's/^/| /' conftest.$ac_ext >&5
  27299. eval "$as_ac_var=no"
  27300. fi
  27301. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27302. conftest$ac_exeext conftest.$ac_ext
  27303. fi
  27304. ac_res=`eval echo '${'$as_ac_var'}'`
  27305. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27306. echo "${ECHO_T}$ac_res" >&6; }
  27307. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27308. cat >>confdefs.h <<_ACEOF
  27309. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27310. _ACEOF
  27311. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  27312. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  27313. if test "${ac_cv_func__doprnt+set}" = set; then
  27314. echo $ECHO_N "(cached) $ECHO_C" >&6
  27315. else
  27316. cat >conftest.$ac_ext <<_ACEOF
  27317. /* confdefs.h. */
  27318. _ACEOF
  27319. cat confdefs.h >>conftest.$ac_ext
  27320. cat >>conftest.$ac_ext <<_ACEOF
  27321. /* end confdefs.h. */
  27322. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  27323. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27324. #define _doprnt innocuous__doprnt
  27325. /* System header to define __stub macros and hopefully few prototypes,
  27326. which can conflict with char _doprnt (); below.
  27327. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27328. <limits.h> exists even on freestanding compilers. */
  27329. #ifdef __STDC__
  27330. # include <limits.h>
  27331. #else
  27332. # include <assert.h>
  27333. #endif
  27334. #undef _doprnt
  27335. /* Override any GCC internal prototype to avoid an error.
  27336. Use char because int might match the return type of a GCC
  27337. builtin and then its argument prototype would still apply. */
  27338. #ifdef __cplusplus
  27339. extern "C"
  27340. #endif
  27341. char _doprnt ();
  27342. /* The GNU C library defines this for functions which it implements
  27343. to always fail with ENOSYS. Some functions are actually named
  27344. something starting with __ and the normal name is an alias. */
  27345. #if defined __stub__doprnt || defined __stub____doprnt
  27346. choke me
  27347. #endif
  27348. int
  27349. main ()
  27350. {
  27351. return _doprnt ();
  27352. ;
  27353. return 0;
  27354. }
  27355. _ACEOF
  27356. rm -f conftest.$ac_objext conftest$ac_exeext
  27357. if { (ac_try="$ac_link"
  27358. case "(($ac_try" in
  27359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27360. *) ac_try_echo=$ac_try;;
  27361. esac
  27362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27363. (eval "$ac_link") 2>conftest.er1
  27364. ac_status=$?
  27365. grep -v '^ *+' conftest.er1 >conftest.err
  27366. rm -f conftest.er1
  27367. cat conftest.err >&5
  27368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27369. (exit $ac_status); } && {
  27370. test -z "$ac_c_werror_flag" ||
  27371. test ! -s conftest.err
  27372. } && test -s conftest$ac_exeext &&
  27373. $as_test_x conftest$ac_exeext; then
  27374. ac_cv_func__doprnt=yes
  27375. else
  27376. echo "$as_me: failed program was:" >&5
  27377. sed 's/^/| /' conftest.$ac_ext >&5
  27378. ac_cv_func__doprnt=no
  27379. fi
  27380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27381. conftest$ac_exeext conftest.$ac_ext
  27382. fi
  27383. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  27384. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  27385. if test $ac_cv_func__doprnt = yes; then
  27386. cat >>confdefs.h <<\_ACEOF
  27387. #define HAVE_DOPRNT 1
  27388. _ACEOF
  27389. fi
  27390. fi
  27391. done
  27392. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  27393. do
  27394. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27395. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  27396. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  27397. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  27398. echo $ECHO_N "(cached) $ECHO_C" >&6
  27399. else
  27400. cat >conftest.$ac_ext <<_ACEOF
  27401. /* confdefs.h. */
  27402. _ACEOF
  27403. cat confdefs.h >>conftest.$ac_ext
  27404. cat >>conftest.$ac_ext <<_ACEOF
  27405. /* end confdefs.h. */
  27406. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  27407. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  27408. #define $ac_func innocuous_$ac_func
  27409. /* System header to define __stub macros and hopefully few prototypes,
  27410. which can conflict with char $ac_func (); below.
  27411. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  27412. <limits.h> exists even on freestanding compilers. */
  27413. #ifdef __STDC__
  27414. # include <limits.h>
  27415. #else
  27416. # include <assert.h>
  27417. #endif
  27418. #undef $ac_func
  27419. /* Override any GCC internal prototype to avoid an error.
  27420. Use char because int might match the return type of a GCC
  27421. builtin and then its argument prototype would still apply. */
  27422. #ifdef __cplusplus
  27423. extern "C"
  27424. #endif
  27425. char $ac_func ();
  27426. /* The GNU C library defines this for functions which it implements
  27427. to always fail with ENOSYS. Some functions are actually named
  27428. something starting with __ and the normal name is an alias. */
  27429. #if defined __stub_$ac_func || defined __stub___$ac_func
  27430. choke me
  27431. #endif
  27432. int
  27433. main ()
  27434. {
  27435. return $ac_func ();
  27436. ;
  27437. return 0;
  27438. }
  27439. _ACEOF
  27440. rm -f conftest.$ac_objext conftest$ac_exeext
  27441. if { (ac_try="$ac_link"
  27442. case "(($ac_try" in
  27443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27444. *) ac_try_echo=$ac_try;;
  27445. esac
  27446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27447. (eval "$ac_link") 2>conftest.er1
  27448. ac_status=$?
  27449. grep -v '^ *+' conftest.er1 >conftest.err
  27450. rm -f conftest.er1
  27451. cat conftest.err >&5
  27452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27453. (exit $ac_status); } && {
  27454. test -z "$ac_c_werror_flag" ||
  27455. test ! -s conftest.err
  27456. } && test -s conftest$ac_exeext &&
  27457. $as_test_x conftest$ac_exeext; then
  27458. eval "$as_ac_var=yes"
  27459. else
  27460. echo "$as_me: failed program was:" >&5
  27461. sed 's/^/| /' conftest.$ac_ext >&5
  27462. eval "$as_ac_var=no"
  27463. fi
  27464. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  27465. conftest$ac_exeext conftest.$ac_ext
  27466. fi
  27467. ac_res=`eval echo '${'$as_ac_var'}'`
  27468. { echo "$as_me:$LINENO: result: $ac_res" >&5
  27469. echo "${ECHO_T}$ac_res" >&6; }
  27470. if test `eval echo '${'$as_ac_var'}'` = yes; then
  27471. cat >>confdefs.h <<_ACEOF
  27472. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27473. _ACEOF
  27474. fi
  27475. done
  27476. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  27477. fi
  27478. # Check to see if a reg expr header is specified.
  27479. # Check whether --with-regex-header was given.
  27480. if test "${with_regex_header+set}" = set; then
  27481. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  27482. else
  27483. { echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  27484. echo $ECHO_N "checking whether a reg expr header is specified... $ECHO_C" >&6; }
  27485. if test "${libopts_cv_with_regex_header+set}" = set; then
  27486. echo $ECHO_N "(cached) $ECHO_C" >&6
  27487. else
  27488. libopts_cv_with_regex_header=no
  27489. fi
  27490. { echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  27491. echo "${ECHO_T}$libopts_cv_with_regex_header" >&6; }
  27492. fi
  27493. # end of AC_ARG_WITH
  27494. if test "X${libopts_cv_with_regex_header}" != Xno
  27495. then
  27496. cat >>confdefs.h <<_ACEOF
  27497. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  27498. _ACEOF
  27499. else
  27500. cat >>confdefs.h <<\_ACEOF
  27501. #define REGEX_HEADER <regex.h>
  27502. _ACEOF
  27503. fi
  27504. # Check to see if a working libregex can be found.
  27505. # Check whether --with-libregex was given.
  27506. if test "${with_libregex+set}" = set; then
  27507. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  27508. else
  27509. { echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  27510. echo $ECHO_N "checking whether with-libregex was specified... $ECHO_C" >&6; }
  27511. if test "${libopts_cv_with_libregex_root+set}" = set; then
  27512. echo $ECHO_N "(cached) $ECHO_C" >&6
  27513. else
  27514. libopts_cv_with_libregex_root=no
  27515. fi
  27516. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  27517. echo "${ECHO_T}$libopts_cv_with_libregex_root" >&6; }
  27518. fi
  27519. # end of AC_ARG_WITH libregex
  27520. if test "${with_libguile+set}" = set && \
  27521. test "${withval}" = no
  27522. then ## disabled by request
  27523. libopts_cv_with_libregex_root=no
  27524. libopts_cv_with_libregex_cflags=no
  27525. libopts_cv_with_libregex_libs=no
  27526. else
  27527. # Check whether --with-libregex-cflags was given.
  27528. if test "${with_libregex_cflags+set}" = set; then
  27529. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  27530. else
  27531. { echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  27532. echo $ECHO_N "checking whether with-libregex-cflags was specified... $ECHO_C" >&6; }
  27533. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  27534. echo $ECHO_N "(cached) $ECHO_C" >&6
  27535. else
  27536. libopts_cv_with_libregex_cflags=no
  27537. fi
  27538. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  27539. echo "${ECHO_T}$libopts_cv_with_libregex_cflags" >&6; }
  27540. fi
  27541. # end of AC_ARG_WITH libregex-cflags
  27542. # Check whether --with-libregex-libs was given.
  27543. if test "${with_libregex_libs+set}" = set; then
  27544. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  27545. else
  27546. { echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  27547. echo $ECHO_N "checking whether with-libregex-libs was specified... $ECHO_C" >&6; }
  27548. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  27549. echo $ECHO_N "(cached) $ECHO_C" >&6
  27550. else
  27551. libopts_cv_with_libregex_libs=no
  27552. fi
  27553. { echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  27554. echo "${ECHO_T}$libopts_cv_with_libregex_libs" >&6; }
  27555. fi
  27556. # end of AC_ARG_WITH libregex-libs
  27557. case "X${libopts_cv_with_libregex_cflags}" in
  27558. Xyes|Xno|X )
  27559. case "X${libopts_cv_with_libregex_root}" in
  27560. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  27561. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  27562. esac
  27563. esac
  27564. case "X${libopts_cv_with_libregex_libs}" in
  27565. Xyes|Xno|X )
  27566. case "X${libopts_cv_with_libregex_root}" in
  27567. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  27568. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  27569. esac
  27570. esac
  27571. libopts_save_CPPFLAGS="${CPPFLAGS}"
  27572. libopts_save_LIBS="${LIBS}"
  27573. fi ## disabled by request
  27574. case "X${libopts_cv_with_libregex_cflags}" in
  27575. Xyes|Xno|X )
  27576. libopts_cv_with_libregex_cflags="" ;;
  27577. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  27578. esac
  27579. case "X${libopts_cv_with_libregex_libs}" in
  27580. Xyes|Xno|X )
  27581. libopts_cv_with_libregex_libs="" ;;
  27582. * )
  27583. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  27584. esac
  27585. LIBREGEX_CFLAGS=""
  27586. LIBREGEX_LIBS=""
  27587. { echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  27588. echo $ECHO_N "checking whether libregex functions properly... $ECHO_C" >&6; }
  27589. if test "${libopts_cv_with_libregex+set}" = set; then
  27590. echo $ECHO_N "(cached) $ECHO_C" >&6
  27591. else
  27592. if test "$cross_compiling" = yes; then
  27593. libopts_cv_with_libregex=no
  27594. else
  27595. cat >conftest.$ac_ext <<_ACEOF
  27596. /* confdefs.h. */
  27597. _ACEOF
  27598. cat confdefs.h >>conftest.$ac_ext
  27599. cat >>conftest.$ac_ext <<_ACEOF
  27600. /* end confdefs.h. */
  27601. #include <stdio.h>
  27602. #include <stdlib.h>
  27603. #include <sys/types.h>
  27604. #include REGEX_HEADER
  27605. static regex_t re;
  27606. void comp_re( char const* pzPat ) {
  27607. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  27608. if (res == 0) return;
  27609. exit( res ); }
  27610. int main() {
  27611. regmatch_t m[2];
  27612. comp_re( "^.*\$" );
  27613. comp_re( "()|no.*" );
  27614. comp_re( "." );
  27615. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  27616. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  27617. fputs( "error: regex -->.<-- did not match\n", stderr );
  27618. return 1;
  27619. }
  27620. return 0; }
  27621. _ACEOF
  27622. rm -f conftest$ac_exeext
  27623. if { (ac_try="$ac_link"
  27624. case "(($ac_try" in
  27625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27626. *) ac_try_echo=$ac_try;;
  27627. esac
  27628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27629. (eval "$ac_link") 2>&5
  27630. ac_status=$?
  27631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27632. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27633. { (case "(($ac_try" in
  27634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27635. *) ac_try_echo=$ac_try;;
  27636. esac
  27637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27638. (eval "$ac_try") 2>&5
  27639. ac_status=$?
  27640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27641. (exit $ac_status); }; }; then
  27642. libopts_cv_with_libregex=yes
  27643. else
  27644. echo "$as_me: program exited with status $ac_status" >&5
  27645. echo "$as_me: failed program was:" >&5
  27646. sed 's/^/| /' conftest.$ac_ext >&5
  27647. ( exit $ac_status )
  27648. libopts_cv_with_libregex=no
  27649. fi
  27650. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27651. fi
  27652. # end of AC_TRY_RUN
  27653. fi
  27654. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  27655. { echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  27656. echo "${ECHO_T}${libopts_cv_with_libregex}" >&6; }
  27657. if test "X${libopts_cv_with_libregex}" != Xno
  27658. then
  27659. cat >>confdefs.h <<\_ACEOF
  27660. #define WITH_LIBREGEX 1
  27661. _ACEOF
  27662. else
  27663. CPPFLAGS="${libopts_save_CPPFLAGS}"
  27664. LIBS="${libopts_save_LIBS}"
  27665. fi
  27666. # Check to see if pathfind(3) works.
  27667. { echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  27668. echo $ECHO_N "checking whether pathfind(3) works... $ECHO_C" >&6; }
  27669. if test "${libopts_cv_run_pathfind+set}" = set; then
  27670. echo $ECHO_N "(cached) $ECHO_C" >&6
  27671. else
  27672. if test "$cross_compiling" = yes; then
  27673. libopts_cv_run_pathfind=no
  27674. else
  27675. cat >conftest.$ac_ext <<_ACEOF
  27676. /* confdefs.h. */
  27677. _ACEOF
  27678. cat confdefs.h >>conftest.$ac_ext
  27679. cat >>conftest.$ac_ext <<_ACEOF
  27680. /* end confdefs.h. */
  27681. #include <string.h>
  27682. #include <stdlib.h>
  27683. int main (int argc, char** argv) {
  27684. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  27685. return (pz == 0) ? 1 : 0;
  27686. }
  27687. _ACEOF
  27688. rm -f conftest$ac_exeext
  27689. if { (ac_try="$ac_link"
  27690. case "(($ac_try" in
  27691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27692. *) ac_try_echo=$ac_try;;
  27693. esac
  27694. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27695. (eval "$ac_link") 2>&5
  27696. ac_status=$?
  27697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27698. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27699. { (case "(($ac_try" in
  27700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27701. *) ac_try_echo=$ac_try;;
  27702. esac
  27703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27704. (eval "$ac_try") 2>&5
  27705. ac_status=$?
  27706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27707. (exit $ac_status); }; }; then
  27708. libopts_cv_run_pathfind=yes
  27709. else
  27710. echo "$as_me: program exited with status $ac_status" >&5
  27711. echo "$as_me: failed program was:" >&5
  27712. sed 's/^/| /' conftest.$ac_ext >&5
  27713. ( exit $ac_status )
  27714. libopts_cv_run_pathfind=no
  27715. fi
  27716. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27717. fi
  27718. # end of TRY_RUN
  27719. fi
  27720. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  27721. { echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  27722. echo "${ECHO_T}${libopts_cv_run_pathfind}" >&6; }
  27723. if test "X${libopts_cv_run_pathfind}" != Xno
  27724. then
  27725. cat >>confdefs.h <<\_ACEOF
  27726. #define HAVE_PATHFIND 1
  27727. _ACEOF
  27728. fi
  27729. # Check to see if /dev/zero is readable device.
  27730. { echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  27731. echo $ECHO_N "checking whether /dev/zero is readable device... $ECHO_C" >&6; }
  27732. if test "${libopts_cv_test_dev_zero+set}" = set; then
  27733. echo $ECHO_N "(cached) $ECHO_C" >&6
  27734. else
  27735. libopts_cv_test_dev_zero=`exec 2> /dev/null
  27736. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  27737. test -z "${dzero}" && exit 1
  27738. echo ${dzero}`
  27739. if test $? -ne 0
  27740. then libopts_cv_test_dev_zero=no
  27741. elif test -z "$libopts_cv_test_dev_zero"
  27742. then libopts_cv_test_dev_zero=no
  27743. fi
  27744. fi
  27745. # end of CACHE_VAL of libopts_cv_test_dev_zero
  27746. { echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  27747. echo "${ECHO_T}${libopts_cv_test_dev_zero}" >&6; }
  27748. if test "X${libopts_cv_test_dev_zero}" != Xno
  27749. then
  27750. cat >>confdefs.h <<\_ACEOF
  27751. #define HAVE_DEV_ZERO 1
  27752. _ACEOF
  27753. fi
  27754. # Check to see if we have a functional realpath(3C).
  27755. { echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  27756. echo $ECHO_N "checking whether we have a functional realpath(3C)... $ECHO_C" >&6; }
  27757. if test "${libopts_cv_run_realpath+set}" = set; then
  27758. echo $ECHO_N "(cached) $ECHO_C" >&6
  27759. else
  27760. if test "$cross_compiling" = yes; then
  27761. libopts_cv_run_realpath=no
  27762. else
  27763. cat >conftest.$ac_ext <<_ACEOF
  27764. /* confdefs.h. */
  27765. _ACEOF
  27766. cat confdefs.h >>conftest.$ac_ext
  27767. cat >>conftest.$ac_ext <<_ACEOF
  27768. /* end confdefs.h. */
  27769. #include <limits.h>
  27770. #include <stdlib.h>
  27771. int main (int argc, char** argv) {
  27772. #ifndef PATH_MAX
  27773. choke me!!
  27774. #else
  27775. char zPath[PATH_MAX+1];
  27776. #endif
  27777. char *pz = realpath(argv[0], zPath);
  27778. return (pz == zPath) ? 0 : 1;
  27779. }
  27780. _ACEOF
  27781. rm -f conftest$ac_exeext
  27782. if { (ac_try="$ac_link"
  27783. case "(($ac_try" in
  27784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27785. *) ac_try_echo=$ac_try;;
  27786. esac
  27787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27788. (eval "$ac_link") 2>&5
  27789. ac_status=$?
  27790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27791. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27792. { (case "(($ac_try" in
  27793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27794. *) ac_try_echo=$ac_try;;
  27795. esac
  27796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27797. (eval "$ac_try") 2>&5
  27798. ac_status=$?
  27799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27800. (exit $ac_status); }; }; then
  27801. libopts_cv_run_realpath=yes
  27802. else
  27803. echo "$as_me: program exited with status $ac_status" >&5
  27804. echo "$as_me: failed program was:" >&5
  27805. sed 's/^/| /' conftest.$ac_ext >&5
  27806. ( exit $ac_status )
  27807. libopts_cv_run_realpath=no
  27808. fi
  27809. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27810. fi
  27811. # end of TRY_RUN
  27812. fi
  27813. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  27814. { echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  27815. echo "${ECHO_T}${libopts_cv_run_realpath}" >&6; }
  27816. if test "X${libopts_cv_run_realpath}" != Xno
  27817. then
  27818. cat >>confdefs.h <<\_ACEOF
  27819. #define HAVE_REALPATH 1
  27820. _ACEOF
  27821. fi
  27822. # Check to see if strftime() works.
  27823. { echo "$as_me:$LINENO: checking whether strftime() works" >&5
  27824. echo $ECHO_N "checking whether strftime() works... $ECHO_C" >&6; }
  27825. if test "${libopts_cv_run_strftime+set}" = set; then
  27826. echo $ECHO_N "(cached) $ECHO_C" >&6
  27827. else
  27828. if test "$cross_compiling" = yes; then
  27829. libopts_cv_run_strftime=no
  27830. else
  27831. cat >conftest.$ac_ext <<_ACEOF
  27832. /* confdefs.h. */
  27833. _ACEOF
  27834. cat confdefs.h >>conftest.$ac_ext
  27835. cat >>conftest.$ac_ext <<_ACEOF
  27836. /* end confdefs.h. */
  27837. #include <time.h>
  27838. #include <string.h>
  27839. char t_buf[ 64 ];
  27840. int main() {
  27841. static char const z[] = "Thursday Aug 28 240";
  27842. struct tm tm;
  27843. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  27844. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  27845. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  27846. tm.tm_mday = 28; /* day of the month [1, 31] */
  27847. tm.tm_mon = 7; /* months since January [0, 11] */
  27848. tm.tm_year = 86; /* years since 1900 */
  27849. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  27850. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  27851. tm.tm_isdst = 1; /* flag for daylight savings time */
  27852. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  27853. return (strcmp( t_buf, z ) != 0); }
  27854. _ACEOF
  27855. rm -f conftest$ac_exeext
  27856. if { (ac_try="$ac_link"
  27857. case "(($ac_try" in
  27858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27859. *) ac_try_echo=$ac_try;;
  27860. esac
  27861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27862. (eval "$ac_link") 2>&5
  27863. ac_status=$?
  27864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27865. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27866. { (case "(($ac_try" in
  27867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27868. *) ac_try_echo=$ac_try;;
  27869. esac
  27870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27871. (eval "$ac_try") 2>&5
  27872. ac_status=$?
  27873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27874. (exit $ac_status); }; }; then
  27875. libopts_cv_run_strftime=yes
  27876. else
  27877. echo "$as_me: program exited with status $ac_status" >&5
  27878. echo "$as_me: failed program was:" >&5
  27879. sed 's/^/| /' conftest.$ac_ext >&5
  27880. ( exit $ac_status )
  27881. libopts_cv_run_strftime=no
  27882. fi
  27883. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27884. fi
  27885. # end of TRY_RUN
  27886. fi
  27887. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  27888. { echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  27889. echo "${ECHO_T}${libopts_cv_run_strftime}" >&6; }
  27890. if test "X${libopts_cv_run_strftime}" != Xno
  27891. then
  27892. cat >>confdefs.h <<\_ACEOF
  27893. #define HAVE_STRFTIME 1
  27894. _ACEOF
  27895. fi
  27896. # Check to see if fopen accepts "b" mode.
  27897. { echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  27898. echo $ECHO_N "checking whether fopen accepts \"b\" mode... $ECHO_C" >&6; }
  27899. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  27900. echo $ECHO_N "(cached) $ECHO_C" >&6
  27901. else
  27902. if test "$cross_compiling" = yes; then
  27903. libopts_cv_run_fopen_binary=no
  27904. else
  27905. cat >conftest.$ac_ext <<_ACEOF
  27906. /* confdefs.h. */
  27907. _ACEOF
  27908. cat confdefs.h >>conftest.$ac_ext
  27909. cat >>conftest.$ac_ext <<_ACEOF
  27910. /* end confdefs.h. */
  27911. #include <stdio.h>
  27912. int main (int argc, char** argv) {
  27913. FILE* fp = fopen("conftest.$ac_ext", "rb");
  27914. return (fp == NULL) ? 1 : fclose(fp); }
  27915. _ACEOF
  27916. rm -f conftest$ac_exeext
  27917. if { (ac_try="$ac_link"
  27918. case "(($ac_try" in
  27919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27920. *) ac_try_echo=$ac_try;;
  27921. esac
  27922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27923. (eval "$ac_link") 2>&5
  27924. ac_status=$?
  27925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27926. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27927. { (case "(($ac_try" in
  27928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27929. *) ac_try_echo=$ac_try;;
  27930. esac
  27931. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27932. (eval "$ac_try") 2>&5
  27933. ac_status=$?
  27934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27935. (exit $ac_status); }; }; then
  27936. libopts_cv_run_fopen_binary=yes
  27937. else
  27938. echo "$as_me: program exited with status $ac_status" >&5
  27939. echo "$as_me: failed program was:" >&5
  27940. sed 's/^/| /' conftest.$ac_ext >&5
  27941. ( exit $ac_status )
  27942. libopts_cv_run_fopen_binary=no
  27943. fi
  27944. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27945. fi
  27946. # end of TRY_RUN
  27947. fi
  27948. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  27949. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  27950. echo "${ECHO_T}${libopts_cv_run_fopen_binary}" >&6; }
  27951. if test "X${libopts_cv_run_fopen_binary}" != Xno
  27952. then
  27953. cat >>confdefs.h <<\_ACEOF
  27954. #define FOPEN_BINARY_FLAG "b"
  27955. _ACEOF
  27956. else
  27957. cat >>confdefs.h <<\_ACEOF
  27958. #define FOPEN_BINARY_FLAG ""
  27959. _ACEOF
  27960. fi
  27961. # Check to see if fopen accepts "t" mode.
  27962. { echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  27963. echo $ECHO_N "checking whether fopen accepts \"t\" mode... $ECHO_C" >&6; }
  27964. if test "${libopts_cv_run_fopen_text+set}" = set; then
  27965. echo $ECHO_N "(cached) $ECHO_C" >&6
  27966. else
  27967. if test "$cross_compiling" = yes; then
  27968. libopts_cv_run_fopen_text=no
  27969. else
  27970. cat >conftest.$ac_ext <<_ACEOF
  27971. /* confdefs.h. */
  27972. _ACEOF
  27973. cat confdefs.h >>conftest.$ac_ext
  27974. cat >>conftest.$ac_ext <<_ACEOF
  27975. /* end confdefs.h. */
  27976. #include <stdio.h>
  27977. int main (int argc, char** argv) {
  27978. FILE* fp = fopen("conftest.$ac_ext", "rt");
  27979. return (fp == NULL) ? 1 : fclose(fp); }
  27980. _ACEOF
  27981. rm -f conftest$ac_exeext
  27982. if { (ac_try="$ac_link"
  27983. case "(($ac_try" in
  27984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27985. *) ac_try_echo=$ac_try;;
  27986. esac
  27987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27988. (eval "$ac_link") 2>&5
  27989. ac_status=$?
  27990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27991. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27992. { (case "(($ac_try" in
  27993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27994. *) ac_try_echo=$ac_try;;
  27995. esac
  27996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  27997. (eval "$ac_try") 2>&5
  27998. ac_status=$?
  27999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28000. (exit $ac_status); }; }; then
  28001. libopts_cv_run_fopen_text=yes
  28002. else
  28003. echo "$as_me: program exited with status $ac_status" >&5
  28004. echo "$as_me: failed program was:" >&5
  28005. sed 's/^/| /' conftest.$ac_ext >&5
  28006. ( exit $ac_status )
  28007. libopts_cv_run_fopen_text=no
  28008. fi
  28009. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28010. fi
  28011. # end of TRY_RUN
  28012. fi
  28013. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  28014. { echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  28015. echo "${ECHO_T}${libopts_cv_run_fopen_text}" >&6; }
  28016. if test "X${libopts_cv_run_fopen_text}" != Xno
  28017. then
  28018. cat >>confdefs.h <<\_ACEOF
  28019. #define FOPEN_TEXT_FLAG "t"
  28020. _ACEOF
  28021. else
  28022. cat >>confdefs.h <<\_ACEOF
  28023. #define FOPEN_TEXT_FLAG ""
  28024. _ACEOF
  28025. fi
  28026. else
  28027. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  28028. # =================
  28029. # AC_HEADER_STDC
  28030. # =================
  28031. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  28032. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  28033. if test "${ac_cv_header_stdc+set}" = set; then
  28034. echo $ECHO_N "(cached) $ECHO_C" >&6
  28035. else
  28036. cat >conftest.$ac_ext <<_ACEOF
  28037. /* confdefs.h. */
  28038. _ACEOF
  28039. cat confdefs.h >>conftest.$ac_ext
  28040. cat >>conftest.$ac_ext <<_ACEOF
  28041. /* end confdefs.h. */
  28042. #include <stdlib.h>
  28043. #include <stdarg.h>
  28044. #include <string.h>
  28045. #include <float.h>
  28046. int
  28047. main ()
  28048. {
  28049. ;
  28050. return 0;
  28051. }
  28052. _ACEOF
  28053. rm -f conftest.$ac_objext
  28054. if { (ac_try="$ac_compile"
  28055. case "(($ac_try" in
  28056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28057. *) ac_try_echo=$ac_try;;
  28058. esac
  28059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28060. (eval "$ac_compile") 2>conftest.er1
  28061. ac_status=$?
  28062. grep -v '^ *+' conftest.er1 >conftest.err
  28063. rm -f conftest.er1
  28064. cat conftest.err >&5
  28065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28066. (exit $ac_status); } && {
  28067. test -z "$ac_c_werror_flag" ||
  28068. test ! -s conftest.err
  28069. } && test -s conftest.$ac_objext; then
  28070. ac_cv_header_stdc=yes
  28071. else
  28072. echo "$as_me: failed program was:" >&5
  28073. sed 's/^/| /' conftest.$ac_ext >&5
  28074. ac_cv_header_stdc=no
  28075. fi
  28076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28077. if test $ac_cv_header_stdc = yes; then
  28078. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  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 <string.h>
  28086. _ACEOF
  28087. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28088. $EGREP "memchr" >/dev/null 2>&1; then
  28089. :
  28090. else
  28091. ac_cv_header_stdc=no
  28092. fi
  28093. rm -f conftest*
  28094. fi
  28095. if test $ac_cv_header_stdc = yes; then
  28096. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  28097. cat >conftest.$ac_ext <<_ACEOF
  28098. /* confdefs.h. */
  28099. _ACEOF
  28100. cat confdefs.h >>conftest.$ac_ext
  28101. cat >>conftest.$ac_ext <<_ACEOF
  28102. /* end confdefs.h. */
  28103. #include <stdlib.h>
  28104. _ACEOF
  28105. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28106. $EGREP "free" >/dev/null 2>&1; then
  28107. :
  28108. else
  28109. ac_cv_header_stdc=no
  28110. fi
  28111. rm -f conftest*
  28112. fi
  28113. if test $ac_cv_header_stdc = yes; then
  28114. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  28115. if test "$cross_compiling" = yes; then
  28116. :
  28117. else
  28118. cat >conftest.$ac_ext <<_ACEOF
  28119. /* confdefs.h. */
  28120. _ACEOF
  28121. cat confdefs.h >>conftest.$ac_ext
  28122. cat >>conftest.$ac_ext <<_ACEOF
  28123. /* end confdefs.h. */
  28124. #include <ctype.h>
  28125. #include <stdlib.h>
  28126. #if ((' ' & 0x0FF) == 0x020)
  28127. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  28128. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  28129. #else
  28130. # define ISLOWER(c) \
  28131. (('a' <= (c) && (c) <= 'i') \
  28132. || ('j' <= (c) && (c) <= 'r') \
  28133. || ('s' <= (c) && (c) <= 'z'))
  28134. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  28135. #endif
  28136. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  28137. int
  28138. main ()
  28139. {
  28140. int i;
  28141. for (i = 0; i < 256; i++)
  28142. if (XOR (islower (i), ISLOWER (i))
  28143. || toupper (i) != TOUPPER (i))
  28144. return 2;
  28145. return 0;
  28146. }
  28147. _ACEOF
  28148. rm -f conftest$ac_exeext
  28149. if { (ac_try="$ac_link"
  28150. case "(($ac_try" in
  28151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28152. *) ac_try_echo=$ac_try;;
  28153. esac
  28154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28155. (eval "$ac_link") 2>&5
  28156. ac_status=$?
  28157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28158. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28159. { (case "(($ac_try" in
  28160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28161. *) ac_try_echo=$ac_try;;
  28162. esac
  28163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28164. (eval "$ac_try") 2>&5
  28165. ac_status=$?
  28166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28167. (exit $ac_status); }; }; then
  28168. :
  28169. else
  28170. echo "$as_me: program exited with status $ac_status" >&5
  28171. echo "$as_me: failed program was:" >&5
  28172. sed 's/^/| /' conftest.$ac_ext >&5
  28173. ( exit $ac_status )
  28174. ac_cv_header_stdc=no
  28175. fi
  28176. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28177. fi
  28178. fi
  28179. fi
  28180. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  28181. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  28182. if test $ac_cv_header_stdc = yes; then
  28183. cat >>confdefs.h <<\_ACEOF
  28184. #define STDC_HEADERS 1
  28185. _ACEOF
  28186. fi
  28187. # =================
  28188. # AC_HEADER_DIRENT
  28189. # =================
  28190. ac_header_dirent=no
  28191. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  28192. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  28193. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  28194. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  28195. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28196. echo $ECHO_N "(cached) $ECHO_C" >&6
  28197. else
  28198. cat >conftest.$ac_ext <<_ACEOF
  28199. /* confdefs.h. */
  28200. _ACEOF
  28201. cat confdefs.h >>conftest.$ac_ext
  28202. cat >>conftest.$ac_ext <<_ACEOF
  28203. /* end confdefs.h. */
  28204. #include <sys/types.h>
  28205. #include <$ac_hdr>
  28206. int
  28207. main ()
  28208. {
  28209. if ((DIR *) 0)
  28210. return 0;
  28211. ;
  28212. return 0;
  28213. }
  28214. _ACEOF
  28215. rm -f conftest.$ac_objext
  28216. if { (ac_try="$ac_compile"
  28217. case "(($ac_try" in
  28218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28219. *) ac_try_echo=$ac_try;;
  28220. esac
  28221. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28222. (eval "$ac_compile") 2>conftest.er1
  28223. ac_status=$?
  28224. grep -v '^ *+' conftest.er1 >conftest.err
  28225. rm -f conftest.er1
  28226. cat conftest.err >&5
  28227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28228. (exit $ac_status); } && {
  28229. test -z "$ac_c_werror_flag" ||
  28230. test ! -s conftest.err
  28231. } && test -s conftest.$ac_objext; then
  28232. eval "$as_ac_Header=yes"
  28233. else
  28234. echo "$as_me: failed program was:" >&5
  28235. sed 's/^/| /' conftest.$ac_ext >&5
  28236. eval "$as_ac_Header=no"
  28237. fi
  28238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28239. fi
  28240. ac_res=`eval echo '${'$as_ac_Header'}'`
  28241. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28242. echo "${ECHO_T}$ac_res" >&6; }
  28243. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28244. cat >>confdefs.h <<_ACEOF
  28245. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  28246. _ACEOF
  28247. ac_header_dirent=$ac_hdr; break
  28248. fi
  28249. done
  28250. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  28251. if test $ac_header_dirent = dirent.h; then
  28252. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28253. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28254. if test "${ac_cv_search_opendir+set}" = set; then
  28255. echo $ECHO_N "(cached) $ECHO_C" >&6
  28256. else
  28257. ac_func_search_save_LIBS=$LIBS
  28258. cat >conftest.$ac_ext <<_ACEOF
  28259. /* confdefs.h. */
  28260. _ACEOF
  28261. cat confdefs.h >>conftest.$ac_ext
  28262. cat >>conftest.$ac_ext <<_ACEOF
  28263. /* end confdefs.h. */
  28264. /* Override any GCC internal prototype to avoid an error.
  28265. Use char because int might match the return type of a GCC
  28266. builtin and then its argument prototype would still apply. */
  28267. #ifdef __cplusplus
  28268. extern "C"
  28269. #endif
  28270. char opendir ();
  28271. int
  28272. main ()
  28273. {
  28274. return opendir ();
  28275. ;
  28276. return 0;
  28277. }
  28278. _ACEOF
  28279. for ac_lib in '' dir; do
  28280. if test -z "$ac_lib"; then
  28281. ac_res="none required"
  28282. else
  28283. ac_res=-l$ac_lib
  28284. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28285. fi
  28286. rm -f conftest.$ac_objext conftest$ac_exeext
  28287. if { (ac_try="$ac_link"
  28288. case "(($ac_try" in
  28289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28290. *) ac_try_echo=$ac_try;;
  28291. esac
  28292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28293. (eval "$ac_link") 2>conftest.er1
  28294. ac_status=$?
  28295. grep -v '^ *+' conftest.er1 >conftest.err
  28296. rm -f conftest.er1
  28297. cat conftest.err >&5
  28298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28299. (exit $ac_status); } && {
  28300. test -z "$ac_c_werror_flag" ||
  28301. test ! -s conftest.err
  28302. } && test -s conftest$ac_exeext &&
  28303. $as_test_x conftest$ac_exeext; then
  28304. ac_cv_search_opendir=$ac_res
  28305. else
  28306. echo "$as_me: failed program was:" >&5
  28307. sed 's/^/| /' conftest.$ac_ext >&5
  28308. fi
  28309. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28310. conftest$ac_exeext
  28311. if test "${ac_cv_search_opendir+set}" = set; then
  28312. break
  28313. fi
  28314. done
  28315. if test "${ac_cv_search_opendir+set}" = set; then
  28316. :
  28317. else
  28318. ac_cv_search_opendir=no
  28319. fi
  28320. rm conftest.$ac_ext
  28321. LIBS=$ac_func_search_save_LIBS
  28322. fi
  28323. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28324. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28325. ac_res=$ac_cv_search_opendir
  28326. if test "$ac_res" != no; then
  28327. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28328. fi
  28329. else
  28330. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  28331. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  28332. if test "${ac_cv_search_opendir+set}" = set; then
  28333. echo $ECHO_N "(cached) $ECHO_C" >&6
  28334. else
  28335. ac_func_search_save_LIBS=$LIBS
  28336. cat >conftest.$ac_ext <<_ACEOF
  28337. /* confdefs.h. */
  28338. _ACEOF
  28339. cat confdefs.h >>conftest.$ac_ext
  28340. cat >>conftest.$ac_ext <<_ACEOF
  28341. /* end confdefs.h. */
  28342. /* Override any GCC internal prototype to avoid an error.
  28343. Use char because int might match the return type of a GCC
  28344. builtin and then its argument prototype would still apply. */
  28345. #ifdef __cplusplus
  28346. extern "C"
  28347. #endif
  28348. char opendir ();
  28349. int
  28350. main ()
  28351. {
  28352. return opendir ();
  28353. ;
  28354. return 0;
  28355. }
  28356. _ACEOF
  28357. for ac_lib in '' x; do
  28358. if test -z "$ac_lib"; then
  28359. ac_res="none required"
  28360. else
  28361. ac_res=-l$ac_lib
  28362. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  28363. fi
  28364. rm -f conftest.$ac_objext conftest$ac_exeext
  28365. if { (ac_try="$ac_link"
  28366. case "(($ac_try" in
  28367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28368. *) ac_try_echo=$ac_try;;
  28369. esac
  28370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28371. (eval "$ac_link") 2>conftest.er1
  28372. ac_status=$?
  28373. grep -v '^ *+' conftest.er1 >conftest.err
  28374. rm -f conftest.er1
  28375. cat conftest.err >&5
  28376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28377. (exit $ac_status); } && {
  28378. test -z "$ac_c_werror_flag" ||
  28379. test ! -s conftest.err
  28380. } && test -s conftest$ac_exeext &&
  28381. $as_test_x conftest$ac_exeext; then
  28382. ac_cv_search_opendir=$ac_res
  28383. else
  28384. echo "$as_me: failed program was:" >&5
  28385. sed 's/^/| /' conftest.$ac_ext >&5
  28386. fi
  28387. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28388. conftest$ac_exeext
  28389. if test "${ac_cv_search_opendir+set}" = set; then
  28390. break
  28391. fi
  28392. done
  28393. if test "${ac_cv_search_opendir+set}" = set; then
  28394. :
  28395. else
  28396. ac_cv_search_opendir=no
  28397. fi
  28398. rm conftest.$ac_ext
  28399. LIBS=$ac_func_search_save_LIBS
  28400. fi
  28401. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  28402. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  28403. ac_res=$ac_cv_search_opendir
  28404. if test "$ac_res" != no; then
  28405. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  28406. fi
  28407. fi
  28408. # =================
  28409. # AC_CHECK_HEADERS
  28410. # =================
  28411. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  28412. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  28413. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  28414. utime.h
  28415. do
  28416. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28417. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28418. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28419. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28420. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28421. echo $ECHO_N "(cached) $ECHO_C" >&6
  28422. fi
  28423. ac_res=`eval echo '${'$as_ac_Header'}'`
  28424. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28425. echo "${ECHO_T}$ac_res" >&6; }
  28426. else
  28427. # Is the header compilable?
  28428. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28429. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28430. cat >conftest.$ac_ext <<_ACEOF
  28431. /* confdefs.h. */
  28432. _ACEOF
  28433. cat confdefs.h >>conftest.$ac_ext
  28434. cat >>conftest.$ac_ext <<_ACEOF
  28435. /* end confdefs.h. */
  28436. $ac_includes_default
  28437. #include <$ac_header>
  28438. _ACEOF
  28439. rm -f conftest.$ac_objext
  28440. if { (ac_try="$ac_compile"
  28441. case "(($ac_try" in
  28442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28443. *) ac_try_echo=$ac_try;;
  28444. esac
  28445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28446. (eval "$ac_compile") 2>conftest.er1
  28447. ac_status=$?
  28448. grep -v '^ *+' conftest.er1 >conftest.err
  28449. rm -f conftest.er1
  28450. cat conftest.err >&5
  28451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28452. (exit $ac_status); } && {
  28453. test -z "$ac_c_werror_flag" ||
  28454. test ! -s conftest.err
  28455. } && test -s conftest.$ac_objext; then
  28456. ac_header_compiler=yes
  28457. else
  28458. echo "$as_me: failed program was:" >&5
  28459. sed 's/^/| /' conftest.$ac_ext >&5
  28460. ac_header_compiler=no
  28461. fi
  28462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28463. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28464. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28465. # Is the header present?
  28466. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28467. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28468. cat >conftest.$ac_ext <<_ACEOF
  28469. /* confdefs.h. */
  28470. _ACEOF
  28471. cat confdefs.h >>conftest.$ac_ext
  28472. cat >>conftest.$ac_ext <<_ACEOF
  28473. /* end confdefs.h. */
  28474. #include <$ac_header>
  28475. _ACEOF
  28476. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28477. case "(($ac_try" in
  28478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28479. *) ac_try_echo=$ac_try;;
  28480. esac
  28481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28482. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28483. ac_status=$?
  28484. grep -v '^ *+' conftest.er1 >conftest.err
  28485. rm -f conftest.er1
  28486. cat conftest.err >&5
  28487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28488. (exit $ac_status); } >/dev/null && {
  28489. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28490. test ! -s conftest.err
  28491. }; then
  28492. ac_header_preproc=yes
  28493. else
  28494. echo "$as_me: failed program was:" >&5
  28495. sed 's/^/| /' conftest.$ac_ext >&5
  28496. ac_header_preproc=no
  28497. fi
  28498. rm -f conftest.err conftest.$ac_ext
  28499. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28500. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28501. # So? What about this header?
  28502. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28503. yes:no: )
  28504. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28505. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28506. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28507. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28508. ac_header_preproc=yes
  28509. ;;
  28510. no:yes:* )
  28511. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28512. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28513. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28514. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28515. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28516. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28517. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28518. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28519. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28520. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28521. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28522. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28523. ;;
  28524. esac
  28525. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28526. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28527. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28528. echo $ECHO_N "(cached) $ECHO_C" >&6
  28529. else
  28530. eval "$as_ac_Header=\$ac_header_preproc"
  28531. fi
  28532. ac_res=`eval echo '${'$as_ac_Header'}'`
  28533. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28534. echo "${ECHO_T}$ac_res" >&6; }
  28535. fi
  28536. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28537. cat >>confdefs.h <<_ACEOF
  28538. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28539. _ACEOF
  28540. fi
  28541. done
  28542. # --------------------------------------------
  28543. # Verify certain entries from AC_CHECK_HEADERS
  28544. # --------------------------------------------
  28545. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  28546. string errno stdlib memory setjmp
  28547. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  28548. test "${as_ac_var}" = set || \
  28549. { { echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  28550. echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  28551. { (exit 1); exit 1; }; }
  28552. done
  28553. # ================================================
  28554. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  28555. # if varargs.h is present define HAVE_VARARGS_H.
  28556. # ================================================
  28557. for ac_header in stdarg.h varargs.h
  28558. do
  28559. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28560. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28561. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28562. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28563. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28564. echo $ECHO_N "(cached) $ECHO_C" >&6
  28565. fi
  28566. ac_res=`eval echo '${'$as_ac_Header'}'`
  28567. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28568. echo "${ECHO_T}$ac_res" >&6; }
  28569. else
  28570. # Is the header compilable?
  28571. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28572. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28573. cat >conftest.$ac_ext <<_ACEOF
  28574. /* confdefs.h. */
  28575. _ACEOF
  28576. cat confdefs.h >>conftest.$ac_ext
  28577. cat >>conftest.$ac_ext <<_ACEOF
  28578. /* end confdefs.h. */
  28579. $ac_includes_default
  28580. #include <$ac_header>
  28581. _ACEOF
  28582. rm -f conftest.$ac_objext
  28583. if { (ac_try="$ac_compile"
  28584. case "(($ac_try" in
  28585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28586. *) ac_try_echo=$ac_try;;
  28587. esac
  28588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28589. (eval "$ac_compile") 2>conftest.er1
  28590. ac_status=$?
  28591. grep -v '^ *+' conftest.er1 >conftest.err
  28592. rm -f conftest.er1
  28593. cat conftest.err >&5
  28594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28595. (exit $ac_status); } && {
  28596. test -z "$ac_c_werror_flag" ||
  28597. test ! -s conftest.err
  28598. } && test -s conftest.$ac_objext; then
  28599. ac_header_compiler=yes
  28600. else
  28601. echo "$as_me: failed program was:" >&5
  28602. sed 's/^/| /' conftest.$ac_ext >&5
  28603. ac_header_compiler=no
  28604. fi
  28605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28606. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28607. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28608. # Is the header present?
  28609. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28610. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28611. cat >conftest.$ac_ext <<_ACEOF
  28612. /* confdefs.h. */
  28613. _ACEOF
  28614. cat confdefs.h >>conftest.$ac_ext
  28615. cat >>conftest.$ac_ext <<_ACEOF
  28616. /* end confdefs.h. */
  28617. #include <$ac_header>
  28618. _ACEOF
  28619. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28620. case "(($ac_try" in
  28621. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28622. *) ac_try_echo=$ac_try;;
  28623. esac
  28624. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28625. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28626. ac_status=$?
  28627. grep -v '^ *+' conftest.er1 >conftest.err
  28628. rm -f conftest.er1
  28629. cat conftest.err >&5
  28630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28631. (exit $ac_status); } >/dev/null && {
  28632. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28633. test ! -s conftest.err
  28634. }; then
  28635. ac_header_preproc=yes
  28636. else
  28637. echo "$as_me: failed program was:" >&5
  28638. sed 's/^/| /' conftest.$ac_ext >&5
  28639. ac_header_preproc=no
  28640. fi
  28641. rm -f conftest.err conftest.$ac_ext
  28642. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28643. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28644. # So? What about this header?
  28645. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28646. yes:no: )
  28647. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28648. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28649. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28650. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28651. ac_header_preproc=yes
  28652. ;;
  28653. no:yes:* )
  28654. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28655. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28656. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28657. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28658. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28659. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28660. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28661. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28662. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28663. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28664. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28665. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28666. ;;
  28667. esac
  28668. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28669. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28670. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28671. echo $ECHO_N "(cached) $ECHO_C" >&6
  28672. else
  28673. eval "$as_ac_Header=\$ac_header_preproc"
  28674. fi
  28675. ac_res=`eval echo '${'$as_ac_Header'}'`
  28676. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28677. echo "${ECHO_T}$ac_res" >&6; }
  28678. fi
  28679. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28680. cat >>confdefs.h <<_ACEOF
  28681. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28682. _ACEOF
  28683. break
  28684. fi
  28685. done
  28686. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28687. { { echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  28688. echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  28689. { (exit 1); exit 1; }; }
  28690. fi
  28691. # ================================================
  28692. # Similarly for the string.h and strings.h headers
  28693. # ================================================
  28694. for ac_header in string.h strings.h
  28695. do
  28696. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28697. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28698. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28699. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28700. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28701. echo $ECHO_N "(cached) $ECHO_C" >&6
  28702. fi
  28703. ac_res=`eval echo '${'$as_ac_Header'}'`
  28704. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28705. echo "${ECHO_T}$ac_res" >&6; }
  28706. else
  28707. # Is the header compilable?
  28708. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28709. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28710. cat >conftest.$ac_ext <<_ACEOF
  28711. /* confdefs.h. */
  28712. _ACEOF
  28713. cat confdefs.h >>conftest.$ac_ext
  28714. cat >>conftest.$ac_ext <<_ACEOF
  28715. /* end confdefs.h. */
  28716. $ac_includes_default
  28717. #include <$ac_header>
  28718. _ACEOF
  28719. rm -f conftest.$ac_objext
  28720. if { (ac_try="$ac_compile"
  28721. case "(($ac_try" in
  28722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28723. *) ac_try_echo=$ac_try;;
  28724. esac
  28725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28726. (eval "$ac_compile") 2>conftest.er1
  28727. ac_status=$?
  28728. grep -v '^ *+' conftest.er1 >conftest.err
  28729. rm -f conftest.er1
  28730. cat conftest.err >&5
  28731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28732. (exit $ac_status); } && {
  28733. test -z "$ac_c_werror_flag" ||
  28734. test ! -s conftest.err
  28735. } && test -s conftest.$ac_objext; then
  28736. ac_header_compiler=yes
  28737. else
  28738. echo "$as_me: failed program was:" >&5
  28739. sed 's/^/| /' conftest.$ac_ext >&5
  28740. ac_header_compiler=no
  28741. fi
  28742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28743. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28744. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28745. # Is the header present?
  28746. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28747. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28748. cat >conftest.$ac_ext <<_ACEOF
  28749. /* confdefs.h. */
  28750. _ACEOF
  28751. cat confdefs.h >>conftest.$ac_ext
  28752. cat >>conftest.$ac_ext <<_ACEOF
  28753. /* end confdefs.h. */
  28754. #include <$ac_header>
  28755. _ACEOF
  28756. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28757. case "(($ac_try" in
  28758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28759. *) ac_try_echo=$ac_try;;
  28760. esac
  28761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28762. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28763. ac_status=$?
  28764. grep -v '^ *+' conftest.er1 >conftest.err
  28765. rm -f conftest.er1
  28766. cat conftest.err >&5
  28767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28768. (exit $ac_status); } >/dev/null && {
  28769. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28770. test ! -s conftest.err
  28771. }; then
  28772. ac_header_preproc=yes
  28773. else
  28774. echo "$as_me: failed program was:" >&5
  28775. sed 's/^/| /' conftest.$ac_ext >&5
  28776. ac_header_preproc=no
  28777. fi
  28778. rm -f conftest.err conftest.$ac_ext
  28779. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28780. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28781. # So? What about this header?
  28782. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28783. yes:no: )
  28784. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28785. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28786. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28787. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28788. ac_header_preproc=yes
  28789. ;;
  28790. no:yes:* )
  28791. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28792. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28793. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28794. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28795. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28796. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28797. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28798. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28799. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28800. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28801. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28802. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28803. ;;
  28804. esac
  28805. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28806. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28807. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28808. echo $ECHO_N "(cached) $ECHO_C" >&6
  28809. else
  28810. eval "$as_ac_Header=\$ac_header_preproc"
  28811. fi
  28812. ac_res=`eval echo '${'$as_ac_Header'}'`
  28813. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28814. echo "${ECHO_T}$ac_res" >&6; }
  28815. fi
  28816. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28817. cat >>confdefs.h <<_ACEOF
  28818. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28819. _ACEOF
  28820. break
  28821. fi
  28822. done
  28823. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28824. { { echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  28825. echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  28826. { (exit 1); exit 1; }; }
  28827. fi
  28828. # =====================
  28829. # ...and limits headers
  28830. # =====================
  28831. for ac_header in limits.h sys/limits.h values.h
  28832. do
  28833. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28834. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28835. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28836. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28837. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28838. echo $ECHO_N "(cached) $ECHO_C" >&6
  28839. fi
  28840. ac_res=`eval echo '${'$as_ac_Header'}'`
  28841. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28842. echo "${ECHO_T}$ac_res" >&6; }
  28843. else
  28844. # Is the header compilable?
  28845. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28846. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28847. cat >conftest.$ac_ext <<_ACEOF
  28848. /* confdefs.h. */
  28849. _ACEOF
  28850. cat confdefs.h >>conftest.$ac_ext
  28851. cat >>conftest.$ac_ext <<_ACEOF
  28852. /* end confdefs.h. */
  28853. $ac_includes_default
  28854. #include <$ac_header>
  28855. _ACEOF
  28856. rm -f conftest.$ac_objext
  28857. if { (ac_try="$ac_compile"
  28858. case "(($ac_try" in
  28859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28860. *) ac_try_echo=$ac_try;;
  28861. esac
  28862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28863. (eval "$ac_compile") 2>conftest.er1
  28864. ac_status=$?
  28865. grep -v '^ *+' conftest.er1 >conftest.err
  28866. rm -f conftest.er1
  28867. cat conftest.err >&5
  28868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28869. (exit $ac_status); } && {
  28870. test -z "$ac_c_werror_flag" ||
  28871. test ! -s conftest.err
  28872. } && test -s conftest.$ac_objext; then
  28873. ac_header_compiler=yes
  28874. else
  28875. echo "$as_me: failed program was:" >&5
  28876. sed 's/^/| /' conftest.$ac_ext >&5
  28877. ac_header_compiler=no
  28878. fi
  28879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28880. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  28881. echo "${ECHO_T}$ac_header_compiler" >&6; }
  28882. # Is the header present?
  28883. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  28884. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  28885. cat >conftest.$ac_ext <<_ACEOF
  28886. /* confdefs.h. */
  28887. _ACEOF
  28888. cat confdefs.h >>conftest.$ac_ext
  28889. cat >>conftest.$ac_ext <<_ACEOF
  28890. /* end confdefs.h. */
  28891. #include <$ac_header>
  28892. _ACEOF
  28893. if { (ac_try="$ac_cpp conftest.$ac_ext"
  28894. case "(($ac_try" in
  28895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28896. *) ac_try_echo=$ac_try;;
  28897. esac
  28898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28899. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  28900. ac_status=$?
  28901. grep -v '^ *+' conftest.er1 >conftest.err
  28902. rm -f conftest.er1
  28903. cat conftest.err >&5
  28904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28905. (exit $ac_status); } >/dev/null && {
  28906. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  28907. test ! -s conftest.err
  28908. }; then
  28909. ac_header_preproc=yes
  28910. else
  28911. echo "$as_me: failed program was:" >&5
  28912. sed 's/^/| /' conftest.$ac_ext >&5
  28913. ac_header_preproc=no
  28914. fi
  28915. rm -f conftest.err conftest.$ac_ext
  28916. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  28917. echo "${ECHO_T}$ac_header_preproc" >&6; }
  28918. # So? What about this header?
  28919. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  28920. yes:no: )
  28921. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  28922. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  28923. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  28924. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  28925. ac_header_preproc=yes
  28926. ;;
  28927. no:yes:* )
  28928. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  28929. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  28930. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  28931. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  28932. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  28933. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  28934. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  28935. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  28936. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  28937. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  28938. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  28939. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  28940. ;;
  28941. esac
  28942. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28943. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28944. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28945. echo $ECHO_N "(cached) $ECHO_C" >&6
  28946. else
  28947. eval "$as_ac_Header=\$ac_header_preproc"
  28948. fi
  28949. ac_res=`eval echo '${'$as_ac_Header'}'`
  28950. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28951. echo "${ECHO_T}$ac_res" >&6; }
  28952. fi
  28953. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  28954. cat >>confdefs.h <<_ACEOF
  28955. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28956. _ACEOF
  28957. break
  28958. fi
  28959. done
  28960. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  28961. { { echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  28962. echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  28963. { (exit 1); exit 1; }; }
  28964. fi
  28965. # ========================
  28966. # ...and int types headers
  28967. # ========================
  28968. for ac_header in stdint.h inttypes.h
  28969. do
  28970. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28971. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28972. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  28973. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  28974. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  28975. echo $ECHO_N "(cached) $ECHO_C" >&6
  28976. fi
  28977. ac_res=`eval echo '${'$as_ac_Header'}'`
  28978. { echo "$as_me:$LINENO: result: $ac_res" >&5
  28979. echo "${ECHO_T}$ac_res" >&6; }
  28980. else
  28981. # Is the header compilable?
  28982. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  28983. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  28984. cat >conftest.$ac_ext <<_ACEOF
  28985. /* confdefs.h. */
  28986. _ACEOF
  28987. cat confdefs.h >>conftest.$ac_ext
  28988. cat >>conftest.$ac_ext <<_ACEOF
  28989. /* end confdefs.h. */
  28990. $ac_includes_default
  28991. #include <$ac_header>
  28992. _ACEOF
  28993. rm -f conftest.$ac_objext
  28994. if { (ac_try="$ac_compile"
  28995. case "(($ac_try" in
  28996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28997. *) ac_try_echo=$ac_try;;
  28998. esac
  28999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29000. (eval "$ac_compile") 2>conftest.er1
  29001. ac_status=$?
  29002. grep -v '^ *+' conftest.er1 >conftest.err
  29003. rm -f conftest.er1
  29004. cat conftest.err >&5
  29005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29006. (exit $ac_status); } && {
  29007. test -z "$ac_c_werror_flag" ||
  29008. test ! -s conftest.err
  29009. } && test -s conftest.$ac_objext; then
  29010. ac_header_compiler=yes
  29011. else
  29012. echo "$as_me: failed program was:" >&5
  29013. sed 's/^/| /' conftest.$ac_ext >&5
  29014. ac_header_compiler=no
  29015. fi
  29016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29017. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  29018. echo "${ECHO_T}$ac_header_compiler" >&6; }
  29019. # Is the header present?
  29020. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  29021. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  29022. cat >conftest.$ac_ext <<_ACEOF
  29023. /* confdefs.h. */
  29024. _ACEOF
  29025. cat confdefs.h >>conftest.$ac_ext
  29026. cat >>conftest.$ac_ext <<_ACEOF
  29027. /* end confdefs.h. */
  29028. #include <$ac_header>
  29029. _ACEOF
  29030. if { (ac_try="$ac_cpp conftest.$ac_ext"
  29031. case "(($ac_try" in
  29032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29033. *) ac_try_echo=$ac_try;;
  29034. esac
  29035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29036. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  29037. ac_status=$?
  29038. grep -v '^ *+' conftest.er1 >conftest.err
  29039. rm -f conftest.er1
  29040. cat conftest.err >&5
  29041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29042. (exit $ac_status); } >/dev/null && {
  29043. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  29044. test ! -s conftest.err
  29045. }; then
  29046. ac_header_preproc=yes
  29047. else
  29048. echo "$as_me: failed program was:" >&5
  29049. sed 's/^/| /' conftest.$ac_ext >&5
  29050. ac_header_preproc=no
  29051. fi
  29052. rm -f conftest.err conftest.$ac_ext
  29053. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  29054. echo "${ECHO_T}$ac_header_preproc" >&6; }
  29055. # So? What about this header?
  29056. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  29057. yes:no: )
  29058. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  29059. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  29060. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  29061. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  29062. ac_header_preproc=yes
  29063. ;;
  29064. no:yes:* )
  29065. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  29066. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  29067. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  29068. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  29069. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  29070. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  29071. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  29072. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  29073. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  29074. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  29075. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  29076. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  29077. ;;
  29078. esac
  29079. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  29080. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  29081. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  29082. echo $ECHO_N "(cached) $ECHO_C" >&6
  29083. else
  29084. eval "$as_ac_Header=\$ac_header_preproc"
  29085. fi
  29086. ac_res=`eval echo '${'$as_ac_Header'}'`
  29087. { echo "$as_me:$LINENO: result: $ac_res" >&5
  29088. echo "${ECHO_T}$ac_res" >&6; }
  29089. fi
  29090. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  29091. cat >>confdefs.h <<_ACEOF
  29092. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29093. _ACEOF
  29094. break
  29095. fi
  29096. done
  29097. { echo "$as_me:$LINENO: checking for int8_t" >&5
  29098. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  29099. if test "${ac_cv_type_int8_t+set}" = set; then
  29100. echo $ECHO_N "(cached) $ECHO_C" >&6
  29101. else
  29102. cat >conftest.$ac_ext <<_ACEOF
  29103. /* confdefs.h. */
  29104. _ACEOF
  29105. cat confdefs.h >>conftest.$ac_ext
  29106. cat >>conftest.$ac_ext <<_ACEOF
  29107. /* end confdefs.h. */
  29108. $ac_includes_default
  29109. typedef int8_t ac__type_new_;
  29110. int
  29111. main ()
  29112. {
  29113. if ((ac__type_new_ *) 0)
  29114. return 0;
  29115. if (sizeof (ac__type_new_))
  29116. return 0;
  29117. ;
  29118. return 0;
  29119. }
  29120. _ACEOF
  29121. rm -f conftest.$ac_objext
  29122. if { (ac_try="$ac_compile"
  29123. case "(($ac_try" in
  29124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29125. *) ac_try_echo=$ac_try;;
  29126. esac
  29127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29128. (eval "$ac_compile") 2>conftest.er1
  29129. ac_status=$?
  29130. grep -v '^ *+' conftest.er1 >conftest.err
  29131. rm -f conftest.er1
  29132. cat conftest.err >&5
  29133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29134. (exit $ac_status); } && {
  29135. test -z "$ac_c_werror_flag" ||
  29136. test ! -s conftest.err
  29137. } && test -s conftest.$ac_objext; then
  29138. ac_cv_type_int8_t=yes
  29139. else
  29140. echo "$as_me: failed program was:" >&5
  29141. sed 's/^/| /' conftest.$ac_ext >&5
  29142. ac_cv_type_int8_t=no
  29143. fi
  29144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29145. fi
  29146. { echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  29147. echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
  29148. if test $ac_cv_type_int8_t = yes; then
  29149. cat >>confdefs.h <<_ACEOF
  29150. #define HAVE_INT8_T 1
  29151. _ACEOF
  29152. fi
  29153. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  29154. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  29155. if test "${ac_cv_type_uint8_t+set}" = set; then
  29156. echo $ECHO_N "(cached) $ECHO_C" >&6
  29157. else
  29158. cat >conftest.$ac_ext <<_ACEOF
  29159. /* confdefs.h. */
  29160. _ACEOF
  29161. cat confdefs.h >>conftest.$ac_ext
  29162. cat >>conftest.$ac_ext <<_ACEOF
  29163. /* end confdefs.h. */
  29164. $ac_includes_default
  29165. typedef uint8_t ac__type_new_;
  29166. int
  29167. main ()
  29168. {
  29169. if ((ac__type_new_ *) 0)
  29170. return 0;
  29171. if (sizeof (ac__type_new_))
  29172. return 0;
  29173. ;
  29174. return 0;
  29175. }
  29176. _ACEOF
  29177. rm -f conftest.$ac_objext
  29178. if { (ac_try="$ac_compile"
  29179. case "(($ac_try" in
  29180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29181. *) ac_try_echo=$ac_try;;
  29182. esac
  29183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29184. (eval "$ac_compile") 2>conftest.er1
  29185. ac_status=$?
  29186. grep -v '^ *+' conftest.er1 >conftest.err
  29187. rm -f conftest.er1
  29188. cat conftest.err >&5
  29189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29190. (exit $ac_status); } && {
  29191. test -z "$ac_c_werror_flag" ||
  29192. test ! -s conftest.err
  29193. } && test -s conftest.$ac_objext; then
  29194. ac_cv_type_uint8_t=yes
  29195. else
  29196. echo "$as_me: failed program was:" >&5
  29197. sed 's/^/| /' conftest.$ac_ext >&5
  29198. ac_cv_type_uint8_t=no
  29199. fi
  29200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29201. fi
  29202. { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  29203. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
  29204. if test $ac_cv_type_uint8_t = yes; then
  29205. cat >>confdefs.h <<_ACEOF
  29206. #define HAVE_UINT8_T 1
  29207. _ACEOF
  29208. fi
  29209. { echo "$as_me:$LINENO: checking for int16_t" >&5
  29210. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  29211. if test "${ac_cv_type_int16_t+set}" = set; then
  29212. echo $ECHO_N "(cached) $ECHO_C" >&6
  29213. else
  29214. cat >conftest.$ac_ext <<_ACEOF
  29215. /* confdefs.h. */
  29216. _ACEOF
  29217. cat confdefs.h >>conftest.$ac_ext
  29218. cat >>conftest.$ac_ext <<_ACEOF
  29219. /* end confdefs.h. */
  29220. $ac_includes_default
  29221. typedef int16_t ac__type_new_;
  29222. int
  29223. main ()
  29224. {
  29225. if ((ac__type_new_ *) 0)
  29226. return 0;
  29227. if (sizeof (ac__type_new_))
  29228. return 0;
  29229. ;
  29230. return 0;
  29231. }
  29232. _ACEOF
  29233. rm -f conftest.$ac_objext
  29234. if { (ac_try="$ac_compile"
  29235. case "(($ac_try" in
  29236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29237. *) ac_try_echo=$ac_try;;
  29238. esac
  29239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29240. (eval "$ac_compile") 2>conftest.er1
  29241. ac_status=$?
  29242. grep -v '^ *+' conftest.er1 >conftest.err
  29243. rm -f conftest.er1
  29244. cat conftest.err >&5
  29245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29246. (exit $ac_status); } && {
  29247. test -z "$ac_c_werror_flag" ||
  29248. test ! -s conftest.err
  29249. } && test -s conftest.$ac_objext; then
  29250. ac_cv_type_int16_t=yes
  29251. else
  29252. echo "$as_me: failed program was:" >&5
  29253. sed 's/^/| /' conftest.$ac_ext >&5
  29254. ac_cv_type_int16_t=no
  29255. fi
  29256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29257. fi
  29258. { echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  29259. echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
  29260. if test $ac_cv_type_int16_t = yes; then
  29261. cat >>confdefs.h <<_ACEOF
  29262. #define HAVE_INT16_T 1
  29263. _ACEOF
  29264. fi
  29265. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  29266. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  29267. if test "${ac_cv_type_uint16_t+set}" = set; then
  29268. echo $ECHO_N "(cached) $ECHO_C" >&6
  29269. else
  29270. cat >conftest.$ac_ext <<_ACEOF
  29271. /* confdefs.h. */
  29272. _ACEOF
  29273. cat confdefs.h >>conftest.$ac_ext
  29274. cat >>conftest.$ac_ext <<_ACEOF
  29275. /* end confdefs.h. */
  29276. $ac_includes_default
  29277. typedef uint16_t ac__type_new_;
  29278. int
  29279. main ()
  29280. {
  29281. if ((ac__type_new_ *) 0)
  29282. return 0;
  29283. if (sizeof (ac__type_new_))
  29284. return 0;
  29285. ;
  29286. return 0;
  29287. }
  29288. _ACEOF
  29289. rm -f conftest.$ac_objext
  29290. if { (ac_try="$ac_compile"
  29291. case "(($ac_try" in
  29292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29293. *) ac_try_echo=$ac_try;;
  29294. esac
  29295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29296. (eval "$ac_compile") 2>conftest.er1
  29297. ac_status=$?
  29298. grep -v '^ *+' conftest.er1 >conftest.err
  29299. rm -f conftest.er1
  29300. cat conftest.err >&5
  29301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29302. (exit $ac_status); } && {
  29303. test -z "$ac_c_werror_flag" ||
  29304. test ! -s conftest.err
  29305. } && test -s conftest.$ac_objext; then
  29306. ac_cv_type_uint16_t=yes
  29307. else
  29308. echo "$as_me: failed program was:" >&5
  29309. sed 's/^/| /' conftest.$ac_ext >&5
  29310. ac_cv_type_uint16_t=no
  29311. fi
  29312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29313. fi
  29314. { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  29315. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
  29316. if test $ac_cv_type_uint16_t = yes; then
  29317. cat >>confdefs.h <<_ACEOF
  29318. #define HAVE_UINT16_T 1
  29319. _ACEOF
  29320. fi
  29321. { echo "$as_me:$LINENO: checking for int32_t" >&5
  29322. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  29323. if test "${ac_cv_type_int32_t+set}" = set; then
  29324. echo $ECHO_N "(cached) $ECHO_C" >&6
  29325. else
  29326. cat >conftest.$ac_ext <<_ACEOF
  29327. /* confdefs.h. */
  29328. _ACEOF
  29329. cat confdefs.h >>conftest.$ac_ext
  29330. cat >>conftest.$ac_ext <<_ACEOF
  29331. /* end confdefs.h. */
  29332. $ac_includes_default
  29333. typedef int32_t ac__type_new_;
  29334. int
  29335. main ()
  29336. {
  29337. if ((ac__type_new_ *) 0)
  29338. return 0;
  29339. if (sizeof (ac__type_new_))
  29340. return 0;
  29341. ;
  29342. return 0;
  29343. }
  29344. _ACEOF
  29345. rm -f conftest.$ac_objext
  29346. if { (ac_try="$ac_compile"
  29347. case "(($ac_try" in
  29348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29349. *) ac_try_echo=$ac_try;;
  29350. esac
  29351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29352. (eval "$ac_compile") 2>conftest.er1
  29353. ac_status=$?
  29354. grep -v '^ *+' conftest.er1 >conftest.err
  29355. rm -f conftest.er1
  29356. cat conftest.err >&5
  29357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29358. (exit $ac_status); } && {
  29359. test -z "$ac_c_werror_flag" ||
  29360. test ! -s conftest.err
  29361. } && test -s conftest.$ac_objext; then
  29362. ac_cv_type_int32_t=yes
  29363. else
  29364. echo "$as_me: failed program was:" >&5
  29365. sed 's/^/| /' conftest.$ac_ext >&5
  29366. ac_cv_type_int32_t=no
  29367. fi
  29368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29369. fi
  29370. { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  29371. echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
  29372. if test $ac_cv_type_int32_t = yes; then
  29373. cat >>confdefs.h <<_ACEOF
  29374. #define HAVE_INT32_T 1
  29375. _ACEOF
  29376. fi
  29377. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  29378. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  29379. if test "${ac_cv_type_uint32_t+set}" = set; then
  29380. echo $ECHO_N "(cached) $ECHO_C" >&6
  29381. else
  29382. cat >conftest.$ac_ext <<_ACEOF
  29383. /* confdefs.h. */
  29384. _ACEOF
  29385. cat confdefs.h >>conftest.$ac_ext
  29386. cat >>conftest.$ac_ext <<_ACEOF
  29387. /* end confdefs.h. */
  29388. $ac_includes_default
  29389. typedef uint32_t ac__type_new_;
  29390. int
  29391. main ()
  29392. {
  29393. if ((ac__type_new_ *) 0)
  29394. return 0;
  29395. if (sizeof (ac__type_new_))
  29396. return 0;
  29397. ;
  29398. return 0;
  29399. }
  29400. _ACEOF
  29401. rm -f conftest.$ac_objext
  29402. if { (ac_try="$ac_compile"
  29403. case "(($ac_try" in
  29404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29405. *) ac_try_echo=$ac_try;;
  29406. esac
  29407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29408. (eval "$ac_compile") 2>conftest.er1
  29409. ac_status=$?
  29410. grep -v '^ *+' conftest.er1 >conftest.err
  29411. rm -f conftest.er1
  29412. cat conftest.err >&5
  29413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29414. (exit $ac_status); } && {
  29415. test -z "$ac_c_werror_flag" ||
  29416. test ! -s conftest.err
  29417. } && test -s conftest.$ac_objext; then
  29418. ac_cv_type_uint32_t=yes
  29419. else
  29420. echo "$as_me: failed program was:" >&5
  29421. sed 's/^/| /' conftest.$ac_ext >&5
  29422. ac_cv_type_uint32_t=no
  29423. fi
  29424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29425. fi
  29426. { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  29427. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
  29428. if test $ac_cv_type_uint32_t = yes; then
  29429. cat >>confdefs.h <<_ACEOF
  29430. #define HAVE_UINT32_T 1
  29431. _ACEOF
  29432. fi
  29433. { echo "$as_me:$LINENO: checking for intptr_t" >&5
  29434. echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
  29435. if test "${ac_cv_type_intptr_t+set}" = set; then
  29436. echo $ECHO_N "(cached) $ECHO_C" >&6
  29437. else
  29438. cat >conftest.$ac_ext <<_ACEOF
  29439. /* confdefs.h. */
  29440. _ACEOF
  29441. cat confdefs.h >>conftest.$ac_ext
  29442. cat >>conftest.$ac_ext <<_ACEOF
  29443. /* end confdefs.h. */
  29444. $ac_includes_default
  29445. typedef intptr_t ac__type_new_;
  29446. int
  29447. main ()
  29448. {
  29449. if ((ac__type_new_ *) 0)
  29450. return 0;
  29451. if (sizeof (ac__type_new_))
  29452. return 0;
  29453. ;
  29454. return 0;
  29455. }
  29456. _ACEOF
  29457. rm -f conftest.$ac_objext
  29458. if { (ac_try="$ac_compile"
  29459. case "(($ac_try" in
  29460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29461. *) ac_try_echo=$ac_try;;
  29462. esac
  29463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29464. (eval "$ac_compile") 2>conftest.er1
  29465. ac_status=$?
  29466. grep -v '^ *+' conftest.er1 >conftest.err
  29467. rm -f conftest.er1
  29468. cat conftest.err >&5
  29469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29470. (exit $ac_status); } && {
  29471. test -z "$ac_c_werror_flag" ||
  29472. test ! -s conftest.err
  29473. } && test -s conftest.$ac_objext; then
  29474. ac_cv_type_intptr_t=yes
  29475. else
  29476. echo "$as_me: failed program was:" >&5
  29477. sed 's/^/| /' conftest.$ac_ext >&5
  29478. ac_cv_type_intptr_t=no
  29479. fi
  29480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29481. fi
  29482. { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  29483. echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
  29484. if test $ac_cv_type_intptr_t = yes; then
  29485. cat >>confdefs.h <<_ACEOF
  29486. #define HAVE_INTPTR_T 1
  29487. _ACEOF
  29488. fi
  29489. { echo "$as_me:$LINENO: checking for uint_t" >&5
  29490. echo $ECHO_N "checking for uint_t... $ECHO_C" >&6; }
  29491. if test "${ac_cv_type_uint_t+set}" = set; then
  29492. echo $ECHO_N "(cached) $ECHO_C" >&6
  29493. else
  29494. cat >conftest.$ac_ext <<_ACEOF
  29495. /* confdefs.h. */
  29496. _ACEOF
  29497. cat confdefs.h >>conftest.$ac_ext
  29498. cat >>conftest.$ac_ext <<_ACEOF
  29499. /* end confdefs.h. */
  29500. $ac_includes_default
  29501. typedef uint_t ac__type_new_;
  29502. int
  29503. main ()
  29504. {
  29505. if ((ac__type_new_ *) 0)
  29506. return 0;
  29507. if (sizeof (ac__type_new_))
  29508. return 0;
  29509. ;
  29510. return 0;
  29511. }
  29512. _ACEOF
  29513. rm -f conftest.$ac_objext
  29514. if { (ac_try="$ac_compile"
  29515. case "(($ac_try" in
  29516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29517. *) ac_try_echo=$ac_try;;
  29518. esac
  29519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29520. (eval "$ac_compile") 2>conftest.er1
  29521. ac_status=$?
  29522. grep -v '^ *+' conftest.er1 >conftest.err
  29523. rm -f conftest.er1
  29524. cat conftest.err >&5
  29525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29526. (exit $ac_status); } && {
  29527. test -z "$ac_c_werror_flag" ||
  29528. test ! -s conftest.err
  29529. } && test -s conftest.$ac_objext; then
  29530. ac_cv_type_uint_t=yes
  29531. else
  29532. echo "$as_me: failed program was:" >&5
  29533. sed 's/^/| /' conftest.$ac_ext >&5
  29534. ac_cv_type_uint_t=no
  29535. fi
  29536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29537. fi
  29538. { echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  29539. echo "${ECHO_T}$ac_cv_type_uint_t" >&6; }
  29540. if test $ac_cv_type_uint_t = yes; then
  29541. cat >>confdefs.h <<_ACEOF
  29542. #define HAVE_UINT_T 1
  29543. _ACEOF
  29544. fi
  29545. # ====================
  29546. # uintptr type & sizes
  29547. # ====================
  29548. { echo "$as_me:$LINENO: checking for uintptr_t" >&5
  29549. echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
  29550. if test "${ac_cv_type_uintptr_t+set}" = set; then
  29551. echo $ECHO_N "(cached) $ECHO_C" >&6
  29552. else
  29553. cat >conftest.$ac_ext <<_ACEOF
  29554. /* confdefs.h. */
  29555. _ACEOF
  29556. cat confdefs.h >>conftest.$ac_ext
  29557. cat >>conftest.$ac_ext <<_ACEOF
  29558. /* end confdefs.h. */
  29559. $ac_includes_default
  29560. typedef uintptr_t ac__type_new_;
  29561. int
  29562. main ()
  29563. {
  29564. if ((ac__type_new_ *) 0)
  29565. return 0;
  29566. if (sizeof (ac__type_new_))
  29567. return 0;
  29568. ;
  29569. return 0;
  29570. }
  29571. _ACEOF
  29572. rm -f conftest.$ac_objext
  29573. if { (ac_try="$ac_compile"
  29574. case "(($ac_try" in
  29575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29576. *) ac_try_echo=$ac_try;;
  29577. esac
  29578. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29579. (eval "$ac_compile") 2>conftest.er1
  29580. ac_status=$?
  29581. grep -v '^ *+' conftest.er1 >conftest.err
  29582. rm -f conftest.er1
  29583. cat conftest.err >&5
  29584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29585. (exit $ac_status); } && {
  29586. test -z "$ac_c_werror_flag" ||
  29587. test ! -s conftest.err
  29588. } && test -s conftest.$ac_objext; then
  29589. ac_cv_type_uintptr_t=yes
  29590. else
  29591. echo "$as_me: failed program was:" >&5
  29592. sed 's/^/| /' conftest.$ac_ext >&5
  29593. ac_cv_type_uintptr_t=no
  29594. fi
  29595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29596. fi
  29597. { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  29598. echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
  29599. if test $ac_cv_type_uintptr_t = yes; then
  29600. cat >>confdefs.h <<_ACEOF
  29601. #define HAVE_UINTPTR_T 1
  29602. _ACEOF
  29603. else
  29604. cat >>confdefs.h <<\_ACEOF
  29605. #define uintptr_t unsigned long
  29606. _ACEOF
  29607. fi
  29608. { echo "$as_me:$LINENO: checking for char*" >&5
  29609. echo $ECHO_N "checking for char*... $ECHO_C" >&6; }
  29610. if test "${ac_cv_type_charp+set}" = set; then
  29611. echo $ECHO_N "(cached) $ECHO_C" >&6
  29612. else
  29613. cat >conftest.$ac_ext <<_ACEOF
  29614. /* confdefs.h. */
  29615. _ACEOF
  29616. cat confdefs.h >>conftest.$ac_ext
  29617. cat >>conftest.$ac_ext <<_ACEOF
  29618. /* end confdefs.h. */
  29619. $ac_includes_default
  29620. typedef char* ac__type_new_;
  29621. int
  29622. main ()
  29623. {
  29624. if ((ac__type_new_ *) 0)
  29625. return 0;
  29626. if (sizeof (ac__type_new_))
  29627. return 0;
  29628. ;
  29629. return 0;
  29630. }
  29631. _ACEOF
  29632. rm -f conftest.$ac_objext
  29633. if { (ac_try="$ac_compile"
  29634. case "(($ac_try" in
  29635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29636. *) ac_try_echo=$ac_try;;
  29637. esac
  29638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29639. (eval "$ac_compile") 2>conftest.er1
  29640. ac_status=$?
  29641. grep -v '^ *+' conftest.er1 >conftest.err
  29642. rm -f conftest.er1
  29643. cat conftest.err >&5
  29644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29645. (exit $ac_status); } && {
  29646. test -z "$ac_c_werror_flag" ||
  29647. test ! -s conftest.err
  29648. } && test -s conftest.$ac_objext; then
  29649. ac_cv_type_charp=yes
  29650. else
  29651. echo "$as_me: failed program was:" >&5
  29652. sed 's/^/| /' conftest.$ac_ext >&5
  29653. ac_cv_type_charp=no
  29654. fi
  29655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29656. fi
  29657. { echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
  29658. echo "${ECHO_T}$ac_cv_type_charp" >&6; }
  29659. # The cast to long int works around a bug in the HP C Compiler
  29660. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  29661. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  29662. # This bug is HP SR number 8606223364.
  29663. { echo "$as_me:$LINENO: checking size of char*" >&5
  29664. echo $ECHO_N "checking size of char*... $ECHO_C" >&6; }
  29665. if test "${ac_cv_sizeof_charp+set}" = set; then
  29666. echo $ECHO_N "(cached) $ECHO_C" >&6
  29667. else
  29668. if test "$cross_compiling" = yes; then
  29669. # Depending upon the size, compute the lo and hi bounds.
  29670. cat >conftest.$ac_ext <<_ACEOF
  29671. /* confdefs.h. */
  29672. _ACEOF
  29673. cat confdefs.h >>conftest.$ac_ext
  29674. cat >>conftest.$ac_ext <<_ACEOF
  29675. /* end confdefs.h. */
  29676. $ac_includes_default
  29677. typedef char* ac__type_sizeof_;
  29678. int
  29679. main ()
  29680. {
  29681. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  29682. test_array [0] = 0
  29683. ;
  29684. return 0;
  29685. }
  29686. _ACEOF
  29687. rm -f conftest.$ac_objext
  29688. if { (ac_try="$ac_compile"
  29689. case "(($ac_try" in
  29690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29691. *) ac_try_echo=$ac_try;;
  29692. esac
  29693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29694. (eval "$ac_compile") 2>conftest.er1
  29695. ac_status=$?
  29696. grep -v '^ *+' conftest.er1 >conftest.err
  29697. rm -f conftest.er1
  29698. cat conftest.err >&5
  29699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29700. (exit $ac_status); } && {
  29701. test -z "$ac_c_werror_flag" ||
  29702. test ! -s conftest.err
  29703. } && test -s conftest.$ac_objext; then
  29704. ac_lo=0 ac_mid=0
  29705. while :; do
  29706. cat >conftest.$ac_ext <<_ACEOF
  29707. /* confdefs.h. */
  29708. _ACEOF
  29709. cat confdefs.h >>conftest.$ac_ext
  29710. cat >>conftest.$ac_ext <<_ACEOF
  29711. /* end confdefs.h. */
  29712. $ac_includes_default
  29713. typedef char* ac__type_sizeof_;
  29714. int
  29715. main ()
  29716. {
  29717. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  29718. test_array [0] = 0
  29719. ;
  29720. return 0;
  29721. }
  29722. _ACEOF
  29723. rm -f conftest.$ac_objext
  29724. if { (ac_try="$ac_compile"
  29725. case "(($ac_try" in
  29726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29727. *) ac_try_echo=$ac_try;;
  29728. esac
  29729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29730. (eval "$ac_compile") 2>conftest.er1
  29731. ac_status=$?
  29732. grep -v '^ *+' conftest.er1 >conftest.err
  29733. rm -f conftest.er1
  29734. cat conftest.err >&5
  29735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29736. (exit $ac_status); } && {
  29737. test -z "$ac_c_werror_flag" ||
  29738. test ! -s conftest.err
  29739. } && test -s conftest.$ac_objext; then
  29740. ac_hi=$ac_mid; break
  29741. else
  29742. echo "$as_me: failed program was:" >&5
  29743. sed 's/^/| /' conftest.$ac_ext >&5
  29744. ac_lo=`expr $ac_mid + 1`
  29745. if test $ac_lo -le $ac_mid; then
  29746. ac_lo= ac_hi=
  29747. break
  29748. fi
  29749. ac_mid=`expr 2 '*' $ac_mid + 1`
  29750. fi
  29751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29752. done
  29753. else
  29754. echo "$as_me: failed program was:" >&5
  29755. sed 's/^/| /' conftest.$ac_ext >&5
  29756. cat >conftest.$ac_ext <<_ACEOF
  29757. /* confdefs.h. */
  29758. _ACEOF
  29759. cat confdefs.h >>conftest.$ac_ext
  29760. cat >>conftest.$ac_ext <<_ACEOF
  29761. /* end confdefs.h. */
  29762. $ac_includes_default
  29763. typedef char* ac__type_sizeof_;
  29764. int
  29765. main ()
  29766. {
  29767. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  29768. test_array [0] = 0
  29769. ;
  29770. return 0;
  29771. }
  29772. _ACEOF
  29773. rm -f conftest.$ac_objext
  29774. if { (ac_try="$ac_compile"
  29775. case "(($ac_try" in
  29776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29777. *) ac_try_echo=$ac_try;;
  29778. esac
  29779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29780. (eval "$ac_compile") 2>conftest.er1
  29781. ac_status=$?
  29782. grep -v '^ *+' conftest.er1 >conftest.err
  29783. rm -f conftest.er1
  29784. cat conftest.err >&5
  29785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29786. (exit $ac_status); } && {
  29787. test -z "$ac_c_werror_flag" ||
  29788. test ! -s conftest.err
  29789. } && test -s conftest.$ac_objext; then
  29790. ac_hi=-1 ac_mid=-1
  29791. while :; do
  29792. cat >conftest.$ac_ext <<_ACEOF
  29793. /* confdefs.h. */
  29794. _ACEOF
  29795. cat confdefs.h >>conftest.$ac_ext
  29796. cat >>conftest.$ac_ext <<_ACEOF
  29797. /* end confdefs.h. */
  29798. $ac_includes_default
  29799. typedef char* ac__type_sizeof_;
  29800. int
  29801. main ()
  29802. {
  29803. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  29804. test_array [0] = 0
  29805. ;
  29806. return 0;
  29807. }
  29808. _ACEOF
  29809. rm -f conftest.$ac_objext
  29810. if { (ac_try="$ac_compile"
  29811. case "(($ac_try" in
  29812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29813. *) ac_try_echo=$ac_try;;
  29814. esac
  29815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29816. (eval "$ac_compile") 2>conftest.er1
  29817. ac_status=$?
  29818. grep -v '^ *+' conftest.er1 >conftest.err
  29819. rm -f conftest.er1
  29820. cat conftest.err >&5
  29821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29822. (exit $ac_status); } && {
  29823. test -z "$ac_c_werror_flag" ||
  29824. test ! -s conftest.err
  29825. } && test -s conftest.$ac_objext; then
  29826. ac_lo=$ac_mid; break
  29827. else
  29828. echo "$as_me: failed program was:" >&5
  29829. sed 's/^/| /' conftest.$ac_ext >&5
  29830. ac_hi=`expr '(' $ac_mid ')' - 1`
  29831. if test $ac_mid -le $ac_hi; then
  29832. ac_lo= ac_hi=
  29833. break
  29834. fi
  29835. ac_mid=`expr 2 '*' $ac_mid`
  29836. fi
  29837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29838. done
  29839. else
  29840. echo "$as_me: failed program was:" >&5
  29841. sed 's/^/| /' conftest.$ac_ext >&5
  29842. ac_lo= ac_hi=
  29843. fi
  29844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29845. fi
  29846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29847. # Binary search between lo and hi bounds.
  29848. while test "x$ac_lo" != "x$ac_hi"; do
  29849. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  29850. cat >conftest.$ac_ext <<_ACEOF
  29851. /* confdefs.h. */
  29852. _ACEOF
  29853. cat confdefs.h >>conftest.$ac_ext
  29854. cat >>conftest.$ac_ext <<_ACEOF
  29855. /* end confdefs.h. */
  29856. $ac_includes_default
  29857. typedef char* ac__type_sizeof_;
  29858. int
  29859. main ()
  29860. {
  29861. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  29862. test_array [0] = 0
  29863. ;
  29864. return 0;
  29865. }
  29866. _ACEOF
  29867. rm -f conftest.$ac_objext
  29868. if { (ac_try="$ac_compile"
  29869. case "(($ac_try" in
  29870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29871. *) ac_try_echo=$ac_try;;
  29872. esac
  29873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29874. (eval "$ac_compile") 2>conftest.er1
  29875. ac_status=$?
  29876. grep -v '^ *+' conftest.er1 >conftest.err
  29877. rm -f conftest.er1
  29878. cat conftest.err >&5
  29879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29880. (exit $ac_status); } && {
  29881. test -z "$ac_c_werror_flag" ||
  29882. test ! -s conftest.err
  29883. } && test -s conftest.$ac_objext; then
  29884. ac_hi=$ac_mid
  29885. else
  29886. echo "$as_me: failed program was:" >&5
  29887. sed 's/^/| /' conftest.$ac_ext >&5
  29888. ac_lo=`expr '(' $ac_mid ')' + 1`
  29889. fi
  29890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29891. done
  29892. case $ac_lo in
  29893. ?*) ac_cv_sizeof_charp=$ac_lo;;
  29894. '') if test "$ac_cv_type_charp" = yes; then
  29895. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  29896. See \`config.log' for more details." >&5
  29897. echo "$as_me: error: cannot compute sizeof (char*)
  29898. See \`config.log' for more details." >&2;}
  29899. { (exit 77); exit 77; }; }
  29900. else
  29901. ac_cv_sizeof_charp=0
  29902. fi ;;
  29903. esac
  29904. else
  29905. cat >conftest.$ac_ext <<_ACEOF
  29906. /* confdefs.h. */
  29907. _ACEOF
  29908. cat confdefs.h >>conftest.$ac_ext
  29909. cat >>conftest.$ac_ext <<_ACEOF
  29910. /* end confdefs.h. */
  29911. $ac_includes_default
  29912. typedef char* ac__type_sizeof_;
  29913. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  29914. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  29915. #include <stdio.h>
  29916. #include <stdlib.h>
  29917. int
  29918. main ()
  29919. {
  29920. FILE *f = fopen ("conftest.val", "w");
  29921. if (! f)
  29922. return 1;
  29923. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  29924. {
  29925. long int i = longval ();
  29926. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  29927. return 1;
  29928. fprintf (f, "%ld\n", i);
  29929. }
  29930. else
  29931. {
  29932. unsigned long int i = ulongval ();
  29933. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  29934. return 1;
  29935. fprintf (f, "%lu\n", i);
  29936. }
  29937. return ferror (f) || fclose (f) != 0;
  29938. ;
  29939. return 0;
  29940. }
  29941. _ACEOF
  29942. rm -f conftest$ac_exeext
  29943. if { (ac_try="$ac_link"
  29944. case "(($ac_try" in
  29945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29946. *) ac_try_echo=$ac_try;;
  29947. esac
  29948. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29949. (eval "$ac_link") 2>&5
  29950. ac_status=$?
  29951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29952. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  29953. { (case "(($ac_try" in
  29954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  29955. *) ac_try_echo=$ac_try;;
  29956. esac
  29957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  29958. (eval "$ac_try") 2>&5
  29959. ac_status=$?
  29960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29961. (exit $ac_status); }; }; then
  29962. ac_cv_sizeof_charp=`cat conftest.val`
  29963. else
  29964. echo "$as_me: program exited with status $ac_status" >&5
  29965. echo "$as_me: failed program was:" >&5
  29966. sed 's/^/| /' conftest.$ac_ext >&5
  29967. ( exit $ac_status )
  29968. if test "$ac_cv_type_charp" = yes; then
  29969. { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  29970. See \`config.log' for more details." >&5
  29971. echo "$as_me: error: cannot compute sizeof (char*)
  29972. See \`config.log' for more details." >&2;}
  29973. { (exit 77); exit 77; }; }
  29974. else
  29975. ac_cv_sizeof_charp=0
  29976. fi
  29977. fi
  29978. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  29979. fi
  29980. rm -f conftest.val
  29981. fi
  29982. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  29983. echo "${ECHO_T}$ac_cv_sizeof_charp" >&6; }
  29984. cat >>confdefs.h <<_ACEOF
  29985. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  29986. _ACEOF
  29987. { echo "$as_me:$LINENO: checking for int" >&5
  29988. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  29989. if test "${ac_cv_type_int+set}" = set; then
  29990. echo $ECHO_N "(cached) $ECHO_C" >&6
  29991. else
  29992. cat >conftest.$ac_ext <<_ACEOF
  29993. /* confdefs.h. */
  29994. _ACEOF
  29995. cat confdefs.h >>conftest.$ac_ext
  29996. cat >>conftest.$ac_ext <<_ACEOF
  29997. /* end confdefs.h. */
  29998. $ac_includes_default
  29999. typedef int ac__type_new_;
  30000. int
  30001. main ()
  30002. {
  30003. if ((ac__type_new_ *) 0)
  30004. return 0;
  30005. if (sizeof (ac__type_new_))
  30006. return 0;
  30007. ;
  30008. return 0;
  30009. }
  30010. _ACEOF
  30011. rm -f conftest.$ac_objext
  30012. if { (ac_try="$ac_compile"
  30013. case "(($ac_try" in
  30014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30015. *) ac_try_echo=$ac_try;;
  30016. esac
  30017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30018. (eval "$ac_compile") 2>conftest.er1
  30019. ac_status=$?
  30020. grep -v '^ *+' conftest.er1 >conftest.err
  30021. rm -f conftest.er1
  30022. cat conftest.err >&5
  30023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30024. (exit $ac_status); } && {
  30025. test -z "$ac_c_werror_flag" ||
  30026. test ! -s conftest.err
  30027. } && test -s conftest.$ac_objext; then
  30028. ac_cv_type_int=yes
  30029. else
  30030. echo "$as_me: failed program was:" >&5
  30031. sed 's/^/| /' conftest.$ac_ext >&5
  30032. ac_cv_type_int=no
  30033. fi
  30034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30035. fi
  30036. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  30037. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  30038. # The cast to long int works around a bug in the HP C Compiler
  30039. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30040. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30041. # This bug is HP SR number 8606223364.
  30042. { echo "$as_me:$LINENO: checking size of int" >&5
  30043. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  30044. if test "${ac_cv_sizeof_int+set}" = set; then
  30045. echo $ECHO_N "(cached) $ECHO_C" >&6
  30046. else
  30047. if test "$cross_compiling" = yes; then
  30048. # Depending upon the size, compute the lo and hi bounds.
  30049. cat >conftest.$ac_ext <<_ACEOF
  30050. /* confdefs.h. */
  30051. _ACEOF
  30052. cat confdefs.h >>conftest.$ac_ext
  30053. cat >>conftest.$ac_ext <<_ACEOF
  30054. /* end confdefs.h. */
  30055. $ac_includes_default
  30056. typedef int ac__type_sizeof_;
  30057. int
  30058. main ()
  30059. {
  30060. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30061. test_array [0] = 0
  30062. ;
  30063. return 0;
  30064. }
  30065. _ACEOF
  30066. rm -f conftest.$ac_objext
  30067. if { (ac_try="$ac_compile"
  30068. case "(($ac_try" in
  30069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30070. *) ac_try_echo=$ac_try;;
  30071. esac
  30072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30073. (eval "$ac_compile") 2>conftest.er1
  30074. ac_status=$?
  30075. grep -v '^ *+' conftest.er1 >conftest.err
  30076. rm -f conftest.er1
  30077. cat conftest.err >&5
  30078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30079. (exit $ac_status); } && {
  30080. test -z "$ac_c_werror_flag" ||
  30081. test ! -s conftest.err
  30082. } && test -s conftest.$ac_objext; then
  30083. ac_lo=0 ac_mid=0
  30084. while :; do
  30085. cat >conftest.$ac_ext <<_ACEOF
  30086. /* confdefs.h. */
  30087. _ACEOF
  30088. cat confdefs.h >>conftest.$ac_ext
  30089. cat >>conftest.$ac_ext <<_ACEOF
  30090. /* end confdefs.h. */
  30091. $ac_includes_default
  30092. typedef int ac__type_sizeof_;
  30093. int
  30094. main ()
  30095. {
  30096. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30097. test_array [0] = 0
  30098. ;
  30099. return 0;
  30100. }
  30101. _ACEOF
  30102. rm -f conftest.$ac_objext
  30103. if { (ac_try="$ac_compile"
  30104. case "(($ac_try" in
  30105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30106. *) ac_try_echo=$ac_try;;
  30107. esac
  30108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30109. (eval "$ac_compile") 2>conftest.er1
  30110. ac_status=$?
  30111. grep -v '^ *+' conftest.er1 >conftest.err
  30112. rm -f conftest.er1
  30113. cat conftest.err >&5
  30114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30115. (exit $ac_status); } && {
  30116. test -z "$ac_c_werror_flag" ||
  30117. test ! -s conftest.err
  30118. } && test -s conftest.$ac_objext; then
  30119. ac_hi=$ac_mid; break
  30120. else
  30121. echo "$as_me: failed program was:" >&5
  30122. sed 's/^/| /' conftest.$ac_ext >&5
  30123. ac_lo=`expr $ac_mid + 1`
  30124. if test $ac_lo -le $ac_mid; then
  30125. ac_lo= ac_hi=
  30126. break
  30127. fi
  30128. ac_mid=`expr 2 '*' $ac_mid + 1`
  30129. fi
  30130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30131. done
  30132. else
  30133. echo "$as_me: failed program was:" >&5
  30134. sed 's/^/| /' conftest.$ac_ext >&5
  30135. cat >conftest.$ac_ext <<_ACEOF
  30136. /* confdefs.h. */
  30137. _ACEOF
  30138. cat confdefs.h >>conftest.$ac_ext
  30139. cat >>conftest.$ac_ext <<_ACEOF
  30140. /* end confdefs.h. */
  30141. $ac_includes_default
  30142. typedef int ac__type_sizeof_;
  30143. int
  30144. main ()
  30145. {
  30146. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30147. test_array [0] = 0
  30148. ;
  30149. return 0;
  30150. }
  30151. _ACEOF
  30152. rm -f conftest.$ac_objext
  30153. if { (ac_try="$ac_compile"
  30154. case "(($ac_try" in
  30155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30156. *) ac_try_echo=$ac_try;;
  30157. esac
  30158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30159. (eval "$ac_compile") 2>conftest.er1
  30160. ac_status=$?
  30161. grep -v '^ *+' conftest.er1 >conftest.err
  30162. rm -f conftest.er1
  30163. cat conftest.err >&5
  30164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30165. (exit $ac_status); } && {
  30166. test -z "$ac_c_werror_flag" ||
  30167. test ! -s conftest.err
  30168. } && test -s conftest.$ac_objext; then
  30169. ac_hi=-1 ac_mid=-1
  30170. while :; do
  30171. cat >conftest.$ac_ext <<_ACEOF
  30172. /* confdefs.h. */
  30173. _ACEOF
  30174. cat confdefs.h >>conftest.$ac_ext
  30175. cat >>conftest.$ac_ext <<_ACEOF
  30176. /* end confdefs.h. */
  30177. $ac_includes_default
  30178. typedef int ac__type_sizeof_;
  30179. int
  30180. main ()
  30181. {
  30182. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30183. test_array [0] = 0
  30184. ;
  30185. return 0;
  30186. }
  30187. _ACEOF
  30188. rm -f conftest.$ac_objext
  30189. if { (ac_try="$ac_compile"
  30190. case "(($ac_try" in
  30191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30192. *) ac_try_echo=$ac_try;;
  30193. esac
  30194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30195. (eval "$ac_compile") 2>conftest.er1
  30196. ac_status=$?
  30197. grep -v '^ *+' conftest.er1 >conftest.err
  30198. rm -f conftest.er1
  30199. cat conftest.err >&5
  30200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30201. (exit $ac_status); } && {
  30202. test -z "$ac_c_werror_flag" ||
  30203. test ! -s conftest.err
  30204. } && test -s conftest.$ac_objext; then
  30205. ac_lo=$ac_mid; break
  30206. else
  30207. echo "$as_me: failed program was:" >&5
  30208. sed 's/^/| /' conftest.$ac_ext >&5
  30209. ac_hi=`expr '(' $ac_mid ')' - 1`
  30210. if test $ac_mid -le $ac_hi; then
  30211. ac_lo= ac_hi=
  30212. break
  30213. fi
  30214. ac_mid=`expr 2 '*' $ac_mid`
  30215. fi
  30216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30217. done
  30218. else
  30219. echo "$as_me: failed program was:" >&5
  30220. sed 's/^/| /' conftest.$ac_ext >&5
  30221. ac_lo= ac_hi=
  30222. fi
  30223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30224. fi
  30225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30226. # Binary search between lo and hi bounds.
  30227. while test "x$ac_lo" != "x$ac_hi"; do
  30228. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30229. cat >conftest.$ac_ext <<_ACEOF
  30230. /* confdefs.h. */
  30231. _ACEOF
  30232. cat confdefs.h >>conftest.$ac_ext
  30233. cat >>conftest.$ac_ext <<_ACEOF
  30234. /* end confdefs.h. */
  30235. $ac_includes_default
  30236. typedef int ac__type_sizeof_;
  30237. int
  30238. main ()
  30239. {
  30240. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30241. test_array [0] = 0
  30242. ;
  30243. return 0;
  30244. }
  30245. _ACEOF
  30246. rm -f conftest.$ac_objext
  30247. if { (ac_try="$ac_compile"
  30248. case "(($ac_try" in
  30249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30250. *) ac_try_echo=$ac_try;;
  30251. esac
  30252. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30253. (eval "$ac_compile") 2>conftest.er1
  30254. ac_status=$?
  30255. grep -v '^ *+' conftest.er1 >conftest.err
  30256. rm -f conftest.er1
  30257. cat conftest.err >&5
  30258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30259. (exit $ac_status); } && {
  30260. test -z "$ac_c_werror_flag" ||
  30261. test ! -s conftest.err
  30262. } && test -s conftest.$ac_objext; then
  30263. ac_hi=$ac_mid
  30264. else
  30265. echo "$as_me: failed program was:" >&5
  30266. sed 's/^/| /' conftest.$ac_ext >&5
  30267. ac_lo=`expr '(' $ac_mid ')' + 1`
  30268. fi
  30269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30270. done
  30271. case $ac_lo in
  30272. ?*) ac_cv_sizeof_int=$ac_lo;;
  30273. '') if test "$ac_cv_type_int" = yes; then
  30274. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30275. See \`config.log' for more details." >&5
  30276. echo "$as_me: error: cannot compute sizeof (int)
  30277. See \`config.log' for more details." >&2;}
  30278. { (exit 77); exit 77; }; }
  30279. else
  30280. ac_cv_sizeof_int=0
  30281. fi ;;
  30282. esac
  30283. else
  30284. cat >conftest.$ac_ext <<_ACEOF
  30285. /* confdefs.h. */
  30286. _ACEOF
  30287. cat confdefs.h >>conftest.$ac_ext
  30288. cat >>conftest.$ac_ext <<_ACEOF
  30289. /* end confdefs.h. */
  30290. $ac_includes_default
  30291. typedef int ac__type_sizeof_;
  30292. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30293. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30294. #include <stdio.h>
  30295. #include <stdlib.h>
  30296. int
  30297. main ()
  30298. {
  30299. FILE *f = fopen ("conftest.val", "w");
  30300. if (! f)
  30301. return 1;
  30302. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30303. {
  30304. long int i = longval ();
  30305. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30306. return 1;
  30307. fprintf (f, "%ld\n", i);
  30308. }
  30309. else
  30310. {
  30311. unsigned long int i = ulongval ();
  30312. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30313. return 1;
  30314. fprintf (f, "%lu\n", i);
  30315. }
  30316. return ferror (f) || fclose (f) != 0;
  30317. ;
  30318. return 0;
  30319. }
  30320. _ACEOF
  30321. rm -f conftest$ac_exeext
  30322. if { (ac_try="$ac_link"
  30323. case "(($ac_try" in
  30324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30325. *) ac_try_echo=$ac_try;;
  30326. esac
  30327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30328. (eval "$ac_link") 2>&5
  30329. ac_status=$?
  30330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30331. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30332. { (case "(($ac_try" in
  30333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30334. *) ac_try_echo=$ac_try;;
  30335. esac
  30336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30337. (eval "$ac_try") 2>&5
  30338. ac_status=$?
  30339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30340. (exit $ac_status); }; }; then
  30341. ac_cv_sizeof_int=`cat conftest.val`
  30342. else
  30343. echo "$as_me: program exited with status $ac_status" >&5
  30344. echo "$as_me: failed program was:" >&5
  30345. sed 's/^/| /' conftest.$ac_ext >&5
  30346. ( exit $ac_status )
  30347. if test "$ac_cv_type_int" = yes; then
  30348. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  30349. See \`config.log' for more details." >&5
  30350. echo "$as_me: error: cannot compute sizeof (int)
  30351. See \`config.log' for more details." >&2;}
  30352. { (exit 77); exit 77; }; }
  30353. else
  30354. ac_cv_sizeof_int=0
  30355. fi
  30356. fi
  30357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30358. fi
  30359. rm -f conftest.val
  30360. fi
  30361. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  30362. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  30363. cat >>confdefs.h <<_ACEOF
  30364. #define SIZEOF_INT $ac_cv_sizeof_int
  30365. _ACEOF
  30366. { echo "$as_me:$LINENO: checking for long" >&5
  30367. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  30368. if test "${ac_cv_type_long+set}" = set; then
  30369. echo $ECHO_N "(cached) $ECHO_C" >&6
  30370. else
  30371. cat >conftest.$ac_ext <<_ACEOF
  30372. /* confdefs.h. */
  30373. _ACEOF
  30374. cat confdefs.h >>conftest.$ac_ext
  30375. cat >>conftest.$ac_ext <<_ACEOF
  30376. /* end confdefs.h. */
  30377. $ac_includes_default
  30378. typedef long ac__type_new_;
  30379. int
  30380. main ()
  30381. {
  30382. if ((ac__type_new_ *) 0)
  30383. return 0;
  30384. if (sizeof (ac__type_new_))
  30385. return 0;
  30386. ;
  30387. return 0;
  30388. }
  30389. _ACEOF
  30390. rm -f conftest.$ac_objext
  30391. if { (ac_try="$ac_compile"
  30392. case "(($ac_try" in
  30393. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30394. *) ac_try_echo=$ac_try;;
  30395. esac
  30396. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30397. (eval "$ac_compile") 2>conftest.er1
  30398. ac_status=$?
  30399. grep -v '^ *+' conftest.er1 >conftest.err
  30400. rm -f conftest.er1
  30401. cat conftest.err >&5
  30402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30403. (exit $ac_status); } && {
  30404. test -z "$ac_c_werror_flag" ||
  30405. test ! -s conftest.err
  30406. } && test -s conftest.$ac_objext; then
  30407. ac_cv_type_long=yes
  30408. else
  30409. echo "$as_me: failed program was:" >&5
  30410. sed 's/^/| /' conftest.$ac_ext >&5
  30411. ac_cv_type_long=no
  30412. fi
  30413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30414. fi
  30415. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  30416. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  30417. # The cast to long int works around a bug in the HP C Compiler
  30418. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30419. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30420. # This bug is HP SR number 8606223364.
  30421. { echo "$as_me:$LINENO: checking size of long" >&5
  30422. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  30423. if test "${ac_cv_sizeof_long+set}" = set; then
  30424. echo $ECHO_N "(cached) $ECHO_C" >&6
  30425. else
  30426. if test "$cross_compiling" = yes; then
  30427. # Depending upon the size, compute the lo and hi bounds.
  30428. cat >conftest.$ac_ext <<_ACEOF
  30429. /* confdefs.h. */
  30430. _ACEOF
  30431. cat confdefs.h >>conftest.$ac_ext
  30432. cat >>conftest.$ac_ext <<_ACEOF
  30433. /* end confdefs.h. */
  30434. $ac_includes_default
  30435. typedef long ac__type_sizeof_;
  30436. int
  30437. main ()
  30438. {
  30439. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30440. test_array [0] = 0
  30441. ;
  30442. return 0;
  30443. }
  30444. _ACEOF
  30445. rm -f conftest.$ac_objext
  30446. if { (ac_try="$ac_compile"
  30447. case "(($ac_try" in
  30448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30449. *) ac_try_echo=$ac_try;;
  30450. esac
  30451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30452. (eval "$ac_compile") 2>conftest.er1
  30453. ac_status=$?
  30454. grep -v '^ *+' conftest.er1 >conftest.err
  30455. rm -f conftest.er1
  30456. cat conftest.err >&5
  30457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30458. (exit $ac_status); } && {
  30459. test -z "$ac_c_werror_flag" ||
  30460. test ! -s conftest.err
  30461. } && test -s conftest.$ac_objext; then
  30462. ac_lo=0 ac_mid=0
  30463. while :; do
  30464. cat >conftest.$ac_ext <<_ACEOF
  30465. /* confdefs.h. */
  30466. _ACEOF
  30467. cat confdefs.h >>conftest.$ac_ext
  30468. cat >>conftest.$ac_ext <<_ACEOF
  30469. /* end confdefs.h. */
  30470. $ac_includes_default
  30471. typedef long ac__type_sizeof_;
  30472. int
  30473. main ()
  30474. {
  30475. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30476. test_array [0] = 0
  30477. ;
  30478. return 0;
  30479. }
  30480. _ACEOF
  30481. rm -f conftest.$ac_objext
  30482. if { (ac_try="$ac_compile"
  30483. case "(($ac_try" in
  30484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30485. *) ac_try_echo=$ac_try;;
  30486. esac
  30487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30488. (eval "$ac_compile") 2>conftest.er1
  30489. ac_status=$?
  30490. grep -v '^ *+' conftest.er1 >conftest.err
  30491. rm -f conftest.er1
  30492. cat conftest.err >&5
  30493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30494. (exit $ac_status); } && {
  30495. test -z "$ac_c_werror_flag" ||
  30496. test ! -s conftest.err
  30497. } && test -s conftest.$ac_objext; then
  30498. ac_hi=$ac_mid; break
  30499. else
  30500. echo "$as_me: failed program was:" >&5
  30501. sed 's/^/| /' conftest.$ac_ext >&5
  30502. ac_lo=`expr $ac_mid + 1`
  30503. if test $ac_lo -le $ac_mid; then
  30504. ac_lo= ac_hi=
  30505. break
  30506. fi
  30507. ac_mid=`expr 2 '*' $ac_mid + 1`
  30508. fi
  30509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30510. done
  30511. else
  30512. echo "$as_me: failed program was:" >&5
  30513. sed 's/^/| /' conftest.$ac_ext >&5
  30514. cat >conftest.$ac_ext <<_ACEOF
  30515. /* confdefs.h. */
  30516. _ACEOF
  30517. cat confdefs.h >>conftest.$ac_ext
  30518. cat >>conftest.$ac_ext <<_ACEOF
  30519. /* end confdefs.h. */
  30520. $ac_includes_default
  30521. typedef long ac__type_sizeof_;
  30522. int
  30523. main ()
  30524. {
  30525. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30526. test_array [0] = 0
  30527. ;
  30528. return 0;
  30529. }
  30530. _ACEOF
  30531. rm -f conftest.$ac_objext
  30532. if { (ac_try="$ac_compile"
  30533. case "(($ac_try" in
  30534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30535. *) ac_try_echo=$ac_try;;
  30536. esac
  30537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30538. (eval "$ac_compile") 2>conftest.er1
  30539. ac_status=$?
  30540. grep -v '^ *+' conftest.er1 >conftest.err
  30541. rm -f conftest.er1
  30542. cat conftest.err >&5
  30543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30544. (exit $ac_status); } && {
  30545. test -z "$ac_c_werror_flag" ||
  30546. test ! -s conftest.err
  30547. } && test -s conftest.$ac_objext; then
  30548. ac_hi=-1 ac_mid=-1
  30549. while :; do
  30550. cat >conftest.$ac_ext <<_ACEOF
  30551. /* confdefs.h. */
  30552. _ACEOF
  30553. cat confdefs.h >>conftest.$ac_ext
  30554. cat >>conftest.$ac_ext <<_ACEOF
  30555. /* end confdefs.h. */
  30556. $ac_includes_default
  30557. typedef long ac__type_sizeof_;
  30558. int
  30559. main ()
  30560. {
  30561. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30562. test_array [0] = 0
  30563. ;
  30564. return 0;
  30565. }
  30566. _ACEOF
  30567. rm -f conftest.$ac_objext
  30568. if { (ac_try="$ac_compile"
  30569. case "(($ac_try" in
  30570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30571. *) ac_try_echo=$ac_try;;
  30572. esac
  30573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30574. (eval "$ac_compile") 2>conftest.er1
  30575. ac_status=$?
  30576. grep -v '^ *+' conftest.er1 >conftest.err
  30577. rm -f conftest.er1
  30578. cat conftest.err >&5
  30579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30580. (exit $ac_status); } && {
  30581. test -z "$ac_c_werror_flag" ||
  30582. test ! -s conftest.err
  30583. } && test -s conftest.$ac_objext; then
  30584. ac_lo=$ac_mid; break
  30585. else
  30586. echo "$as_me: failed program was:" >&5
  30587. sed 's/^/| /' conftest.$ac_ext >&5
  30588. ac_hi=`expr '(' $ac_mid ')' - 1`
  30589. if test $ac_mid -le $ac_hi; then
  30590. ac_lo= ac_hi=
  30591. break
  30592. fi
  30593. ac_mid=`expr 2 '*' $ac_mid`
  30594. fi
  30595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30596. done
  30597. else
  30598. echo "$as_me: failed program was:" >&5
  30599. sed 's/^/| /' conftest.$ac_ext >&5
  30600. ac_lo= ac_hi=
  30601. fi
  30602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30603. fi
  30604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30605. # Binary search between lo and hi bounds.
  30606. while test "x$ac_lo" != "x$ac_hi"; do
  30607. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30608. cat >conftest.$ac_ext <<_ACEOF
  30609. /* confdefs.h. */
  30610. _ACEOF
  30611. cat confdefs.h >>conftest.$ac_ext
  30612. cat >>conftest.$ac_ext <<_ACEOF
  30613. /* end confdefs.h. */
  30614. $ac_includes_default
  30615. typedef long ac__type_sizeof_;
  30616. int
  30617. main ()
  30618. {
  30619. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30620. test_array [0] = 0
  30621. ;
  30622. return 0;
  30623. }
  30624. _ACEOF
  30625. rm -f conftest.$ac_objext
  30626. if { (ac_try="$ac_compile"
  30627. case "(($ac_try" in
  30628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30629. *) ac_try_echo=$ac_try;;
  30630. esac
  30631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30632. (eval "$ac_compile") 2>conftest.er1
  30633. ac_status=$?
  30634. grep -v '^ *+' conftest.er1 >conftest.err
  30635. rm -f conftest.er1
  30636. cat conftest.err >&5
  30637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30638. (exit $ac_status); } && {
  30639. test -z "$ac_c_werror_flag" ||
  30640. test ! -s conftest.err
  30641. } && test -s conftest.$ac_objext; then
  30642. ac_hi=$ac_mid
  30643. else
  30644. echo "$as_me: failed program was:" >&5
  30645. sed 's/^/| /' conftest.$ac_ext >&5
  30646. ac_lo=`expr '(' $ac_mid ')' + 1`
  30647. fi
  30648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30649. done
  30650. case $ac_lo in
  30651. ?*) ac_cv_sizeof_long=$ac_lo;;
  30652. '') if test "$ac_cv_type_long" = yes; then
  30653. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30654. See \`config.log' for more details." >&5
  30655. echo "$as_me: error: cannot compute sizeof (long)
  30656. See \`config.log' for more details." >&2;}
  30657. { (exit 77); exit 77; }; }
  30658. else
  30659. ac_cv_sizeof_long=0
  30660. fi ;;
  30661. esac
  30662. else
  30663. cat >conftest.$ac_ext <<_ACEOF
  30664. /* confdefs.h. */
  30665. _ACEOF
  30666. cat confdefs.h >>conftest.$ac_ext
  30667. cat >>conftest.$ac_ext <<_ACEOF
  30668. /* end confdefs.h. */
  30669. $ac_includes_default
  30670. typedef long ac__type_sizeof_;
  30671. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30672. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  30673. #include <stdio.h>
  30674. #include <stdlib.h>
  30675. int
  30676. main ()
  30677. {
  30678. FILE *f = fopen ("conftest.val", "w");
  30679. if (! f)
  30680. return 1;
  30681. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  30682. {
  30683. long int i = longval ();
  30684. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30685. return 1;
  30686. fprintf (f, "%ld\n", i);
  30687. }
  30688. else
  30689. {
  30690. unsigned long int i = ulongval ();
  30691. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  30692. return 1;
  30693. fprintf (f, "%lu\n", i);
  30694. }
  30695. return ferror (f) || fclose (f) != 0;
  30696. ;
  30697. return 0;
  30698. }
  30699. _ACEOF
  30700. rm -f conftest$ac_exeext
  30701. if { (ac_try="$ac_link"
  30702. case "(($ac_try" in
  30703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30704. *) ac_try_echo=$ac_try;;
  30705. esac
  30706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30707. (eval "$ac_link") 2>&5
  30708. ac_status=$?
  30709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30710. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  30711. { (case "(($ac_try" in
  30712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30713. *) ac_try_echo=$ac_try;;
  30714. esac
  30715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30716. (eval "$ac_try") 2>&5
  30717. ac_status=$?
  30718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30719. (exit $ac_status); }; }; then
  30720. ac_cv_sizeof_long=`cat conftest.val`
  30721. else
  30722. echo "$as_me: program exited with status $ac_status" >&5
  30723. echo "$as_me: failed program was:" >&5
  30724. sed 's/^/| /' conftest.$ac_ext >&5
  30725. ( exit $ac_status )
  30726. if test "$ac_cv_type_long" = yes; then
  30727. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  30728. See \`config.log' for more details." >&5
  30729. echo "$as_me: error: cannot compute sizeof (long)
  30730. See \`config.log' for more details." >&2;}
  30731. { (exit 77); exit 77; }; }
  30732. else
  30733. ac_cv_sizeof_long=0
  30734. fi
  30735. fi
  30736. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  30737. fi
  30738. rm -f conftest.val
  30739. fi
  30740. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  30741. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  30742. cat >>confdefs.h <<_ACEOF
  30743. #define SIZEOF_LONG $ac_cv_sizeof_long
  30744. _ACEOF
  30745. { echo "$as_me:$LINENO: checking for short" >&5
  30746. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  30747. if test "${ac_cv_type_short+set}" = set; then
  30748. echo $ECHO_N "(cached) $ECHO_C" >&6
  30749. else
  30750. cat >conftest.$ac_ext <<_ACEOF
  30751. /* confdefs.h. */
  30752. _ACEOF
  30753. cat confdefs.h >>conftest.$ac_ext
  30754. cat >>conftest.$ac_ext <<_ACEOF
  30755. /* end confdefs.h. */
  30756. $ac_includes_default
  30757. typedef short ac__type_new_;
  30758. int
  30759. main ()
  30760. {
  30761. if ((ac__type_new_ *) 0)
  30762. return 0;
  30763. if (sizeof (ac__type_new_))
  30764. return 0;
  30765. ;
  30766. return 0;
  30767. }
  30768. _ACEOF
  30769. rm -f conftest.$ac_objext
  30770. if { (ac_try="$ac_compile"
  30771. case "(($ac_try" in
  30772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30773. *) ac_try_echo=$ac_try;;
  30774. esac
  30775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30776. (eval "$ac_compile") 2>conftest.er1
  30777. ac_status=$?
  30778. grep -v '^ *+' conftest.er1 >conftest.err
  30779. rm -f conftest.er1
  30780. cat conftest.err >&5
  30781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30782. (exit $ac_status); } && {
  30783. test -z "$ac_c_werror_flag" ||
  30784. test ! -s conftest.err
  30785. } && test -s conftest.$ac_objext; then
  30786. ac_cv_type_short=yes
  30787. else
  30788. echo "$as_me: failed program was:" >&5
  30789. sed 's/^/| /' conftest.$ac_ext >&5
  30790. ac_cv_type_short=no
  30791. fi
  30792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30793. fi
  30794. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  30795. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  30796. # The cast to long int works around a bug in the HP C Compiler
  30797. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  30798. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  30799. # This bug is HP SR number 8606223364.
  30800. { echo "$as_me:$LINENO: checking size of short" >&5
  30801. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  30802. if test "${ac_cv_sizeof_short+set}" = set; then
  30803. echo $ECHO_N "(cached) $ECHO_C" >&6
  30804. else
  30805. if test "$cross_compiling" = yes; then
  30806. # Depending upon the size, compute the lo and hi bounds.
  30807. cat >conftest.$ac_ext <<_ACEOF
  30808. /* confdefs.h. */
  30809. _ACEOF
  30810. cat confdefs.h >>conftest.$ac_ext
  30811. cat >>conftest.$ac_ext <<_ACEOF
  30812. /* end confdefs.h. */
  30813. $ac_includes_default
  30814. typedef short ac__type_sizeof_;
  30815. int
  30816. main ()
  30817. {
  30818. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  30819. test_array [0] = 0
  30820. ;
  30821. return 0;
  30822. }
  30823. _ACEOF
  30824. rm -f conftest.$ac_objext
  30825. if { (ac_try="$ac_compile"
  30826. case "(($ac_try" in
  30827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30828. *) ac_try_echo=$ac_try;;
  30829. esac
  30830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30831. (eval "$ac_compile") 2>conftest.er1
  30832. ac_status=$?
  30833. grep -v '^ *+' conftest.er1 >conftest.err
  30834. rm -f conftest.er1
  30835. cat conftest.err >&5
  30836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30837. (exit $ac_status); } && {
  30838. test -z "$ac_c_werror_flag" ||
  30839. test ! -s conftest.err
  30840. } && test -s conftest.$ac_objext; then
  30841. ac_lo=0 ac_mid=0
  30842. while :; do
  30843. cat >conftest.$ac_ext <<_ACEOF
  30844. /* confdefs.h. */
  30845. _ACEOF
  30846. cat confdefs.h >>conftest.$ac_ext
  30847. cat >>conftest.$ac_ext <<_ACEOF
  30848. /* end confdefs.h. */
  30849. $ac_includes_default
  30850. typedef short ac__type_sizeof_;
  30851. int
  30852. main ()
  30853. {
  30854. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30855. test_array [0] = 0
  30856. ;
  30857. return 0;
  30858. }
  30859. _ACEOF
  30860. rm -f conftest.$ac_objext
  30861. if { (ac_try="$ac_compile"
  30862. case "(($ac_try" in
  30863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30864. *) ac_try_echo=$ac_try;;
  30865. esac
  30866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30867. (eval "$ac_compile") 2>conftest.er1
  30868. ac_status=$?
  30869. grep -v '^ *+' conftest.er1 >conftest.err
  30870. rm -f conftest.er1
  30871. cat conftest.err >&5
  30872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30873. (exit $ac_status); } && {
  30874. test -z "$ac_c_werror_flag" ||
  30875. test ! -s conftest.err
  30876. } && test -s conftest.$ac_objext; then
  30877. ac_hi=$ac_mid; break
  30878. else
  30879. echo "$as_me: failed program was:" >&5
  30880. sed 's/^/| /' conftest.$ac_ext >&5
  30881. ac_lo=`expr $ac_mid + 1`
  30882. if test $ac_lo -le $ac_mid; then
  30883. ac_lo= ac_hi=
  30884. break
  30885. fi
  30886. ac_mid=`expr 2 '*' $ac_mid + 1`
  30887. fi
  30888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30889. done
  30890. else
  30891. echo "$as_me: failed program was:" >&5
  30892. sed 's/^/| /' conftest.$ac_ext >&5
  30893. cat >conftest.$ac_ext <<_ACEOF
  30894. /* confdefs.h. */
  30895. _ACEOF
  30896. cat confdefs.h >>conftest.$ac_ext
  30897. cat >>conftest.$ac_ext <<_ACEOF
  30898. /* end confdefs.h. */
  30899. $ac_includes_default
  30900. typedef short ac__type_sizeof_;
  30901. int
  30902. main ()
  30903. {
  30904. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  30905. test_array [0] = 0
  30906. ;
  30907. return 0;
  30908. }
  30909. _ACEOF
  30910. rm -f conftest.$ac_objext
  30911. if { (ac_try="$ac_compile"
  30912. case "(($ac_try" in
  30913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30914. *) ac_try_echo=$ac_try;;
  30915. esac
  30916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30917. (eval "$ac_compile") 2>conftest.er1
  30918. ac_status=$?
  30919. grep -v '^ *+' conftest.er1 >conftest.err
  30920. rm -f conftest.er1
  30921. cat conftest.err >&5
  30922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30923. (exit $ac_status); } && {
  30924. test -z "$ac_c_werror_flag" ||
  30925. test ! -s conftest.err
  30926. } && test -s conftest.$ac_objext; then
  30927. ac_hi=-1 ac_mid=-1
  30928. while :; do
  30929. cat >conftest.$ac_ext <<_ACEOF
  30930. /* confdefs.h. */
  30931. _ACEOF
  30932. cat confdefs.h >>conftest.$ac_ext
  30933. cat >>conftest.$ac_ext <<_ACEOF
  30934. /* end confdefs.h. */
  30935. $ac_includes_default
  30936. typedef short ac__type_sizeof_;
  30937. int
  30938. main ()
  30939. {
  30940. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  30941. test_array [0] = 0
  30942. ;
  30943. return 0;
  30944. }
  30945. _ACEOF
  30946. rm -f conftest.$ac_objext
  30947. if { (ac_try="$ac_compile"
  30948. case "(($ac_try" in
  30949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30950. *) ac_try_echo=$ac_try;;
  30951. esac
  30952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30953. (eval "$ac_compile") 2>conftest.er1
  30954. ac_status=$?
  30955. grep -v '^ *+' conftest.er1 >conftest.err
  30956. rm -f conftest.er1
  30957. cat conftest.err >&5
  30958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30959. (exit $ac_status); } && {
  30960. test -z "$ac_c_werror_flag" ||
  30961. test ! -s conftest.err
  30962. } && test -s conftest.$ac_objext; then
  30963. ac_lo=$ac_mid; break
  30964. else
  30965. echo "$as_me: failed program was:" >&5
  30966. sed 's/^/| /' conftest.$ac_ext >&5
  30967. ac_hi=`expr '(' $ac_mid ')' - 1`
  30968. if test $ac_mid -le $ac_hi; then
  30969. ac_lo= ac_hi=
  30970. break
  30971. fi
  30972. ac_mid=`expr 2 '*' $ac_mid`
  30973. fi
  30974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30975. done
  30976. else
  30977. echo "$as_me: failed program was:" >&5
  30978. sed 's/^/| /' conftest.$ac_ext >&5
  30979. ac_lo= ac_hi=
  30980. fi
  30981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30982. fi
  30983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30984. # Binary search between lo and hi bounds.
  30985. while test "x$ac_lo" != "x$ac_hi"; do
  30986. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  30987. cat >conftest.$ac_ext <<_ACEOF
  30988. /* confdefs.h. */
  30989. _ACEOF
  30990. cat confdefs.h >>conftest.$ac_ext
  30991. cat >>conftest.$ac_ext <<_ACEOF
  30992. /* end confdefs.h. */
  30993. $ac_includes_default
  30994. typedef short ac__type_sizeof_;
  30995. int
  30996. main ()
  30997. {
  30998. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  30999. test_array [0] = 0
  31000. ;
  31001. return 0;
  31002. }
  31003. _ACEOF
  31004. rm -f conftest.$ac_objext
  31005. if { (ac_try="$ac_compile"
  31006. case "(($ac_try" in
  31007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31008. *) ac_try_echo=$ac_try;;
  31009. esac
  31010. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31011. (eval "$ac_compile") 2>conftest.er1
  31012. ac_status=$?
  31013. grep -v '^ *+' conftest.er1 >conftest.err
  31014. rm -f conftest.er1
  31015. cat conftest.err >&5
  31016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31017. (exit $ac_status); } && {
  31018. test -z "$ac_c_werror_flag" ||
  31019. test ! -s conftest.err
  31020. } && test -s conftest.$ac_objext; then
  31021. ac_hi=$ac_mid
  31022. else
  31023. echo "$as_me: failed program was:" >&5
  31024. sed 's/^/| /' conftest.$ac_ext >&5
  31025. ac_lo=`expr '(' $ac_mid ')' + 1`
  31026. fi
  31027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31028. done
  31029. case $ac_lo in
  31030. ?*) ac_cv_sizeof_short=$ac_lo;;
  31031. '') if test "$ac_cv_type_short" = yes; then
  31032. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31033. See \`config.log' for more details." >&5
  31034. echo "$as_me: error: cannot compute sizeof (short)
  31035. See \`config.log' for more details." >&2;}
  31036. { (exit 77); exit 77; }; }
  31037. else
  31038. ac_cv_sizeof_short=0
  31039. fi ;;
  31040. esac
  31041. else
  31042. cat >conftest.$ac_ext <<_ACEOF
  31043. /* confdefs.h. */
  31044. _ACEOF
  31045. cat confdefs.h >>conftest.$ac_ext
  31046. cat >>conftest.$ac_ext <<_ACEOF
  31047. /* end confdefs.h. */
  31048. $ac_includes_default
  31049. typedef short ac__type_sizeof_;
  31050. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31051. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  31052. #include <stdio.h>
  31053. #include <stdlib.h>
  31054. int
  31055. main ()
  31056. {
  31057. FILE *f = fopen ("conftest.val", "w");
  31058. if (! f)
  31059. return 1;
  31060. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  31061. {
  31062. long int i = longval ();
  31063. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31064. return 1;
  31065. fprintf (f, "%ld\n", i);
  31066. }
  31067. else
  31068. {
  31069. unsigned long int i = ulongval ();
  31070. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  31071. return 1;
  31072. fprintf (f, "%lu\n", i);
  31073. }
  31074. return ferror (f) || fclose (f) != 0;
  31075. ;
  31076. return 0;
  31077. }
  31078. _ACEOF
  31079. rm -f conftest$ac_exeext
  31080. if { (ac_try="$ac_link"
  31081. case "(($ac_try" in
  31082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31083. *) ac_try_echo=$ac_try;;
  31084. esac
  31085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31086. (eval "$ac_link") 2>&5
  31087. ac_status=$?
  31088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31089. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  31090. { (case "(($ac_try" in
  31091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31092. *) ac_try_echo=$ac_try;;
  31093. esac
  31094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31095. (eval "$ac_try") 2>&5
  31096. ac_status=$?
  31097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31098. (exit $ac_status); }; }; then
  31099. ac_cv_sizeof_short=`cat conftest.val`
  31100. else
  31101. echo "$as_me: program exited with status $ac_status" >&5
  31102. echo "$as_me: failed program was:" >&5
  31103. sed 's/^/| /' conftest.$ac_ext >&5
  31104. ( exit $ac_status )
  31105. if test "$ac_cv_type_short" = yes; then
  31106. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  31107. See \`config.log' for more details." >&5
  31108. echo "$as_me: error: cannot compute sizeof (short)
  31109. See \`config.log' for more details." >&2;}
  31110. { (exit 77); exit 77; }; }
  31111. else
  31112. ac_cv_sizeof_short=0
  31113. fi
  31114. fi
  31115. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  31116. fi
  31117. rm -f conftest.val
  31118. fi
  31119. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  31120. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  31121. cat >>confdefs.h <<_ACEOF
  31122. #define SIZEOF_SHORT $ac_cv_sizeof_short
  31123. _ACEOF
  31124. # ----------------------------------------------------------------------
  31125. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  31126. # ----------------------------------------------------------------------
  31127. { echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  31128. echo $ECHO_N "checking for pathfind in -lgen... $ECHO_C" >&6; }
  31129. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  31130. echo $ECHO_N "(cached) $ECHO_C" >&6
  31131. else
  31132. ac_check_lib_save_LIBS=$LIBS
  31133. LIBS="-lgen $LIBS"
  31134. cat >conftest.$ac_ext <<_ACEOF
  31135. /* confdefs.h. */
  31136. _ACEOF
  31137. cat confdefs.h >>conftest.$ac_ext
  31138. cat >>conftest.$ac_ext <<_ACEOF
  31139. /* end confdefs.h. */
  31140. /* Override any GCC internal prototype to avoid an error.
  31141. Use char because int might match the return type of a GCC
  31142. builtin and then its argument prototype would still apply. */
  31143. #ifdef __cplusplus
  31144. extern "C"
  31145. #endif
  31146. char pathfind ();
  31147. int
  31148. main ()
  31149. {
  31150. return pathfind ();
  31151. ;
  31152. return 0;
  31153. }
  31154. _ACEOF
  31155. rm -f conftest.$ac_objext conftest$ac_exeext
  31156. if { (ac_try="$ac_link"
  31157. case "(($ac_try" in
  31158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31159. *) ac_try_echo=$ac_try;;
  31160. esac
  31161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31162. (eval "$ac_link") 2>conftest.er1
  31163. ac_status=$?
  31164. grep -v '^ *+' conftest.er1 >conftest.err
  31165. rm -f conftest.er1
  31166. cat conftest.err >&5
  31167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31168. (exit $ac_status); } && {
  31169. test -z "$ac_c_werror_flag" ||
  31170. test ! -s conftest.err
  31171. } && test -s conftest$ac_exeext &&
  31172. $as_test_x conftest$ac_exeext; then
  31173. ac_cv_lib_gen_pathfind=yes
  31174. else
  31175. echo "$as_me: failed program was:" >&5
  31176. sed 's/^/| /' conftest.$ac_ext >&5
  31177. ac_cv_lib_gen_pathfind=no
  31178. fi
  31179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31180. conftest$ac_exeext conftest.$ac_ext
  31181. LIBS=$ac_check_lib_save_LIBS
  31182. fi
  31183. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  31184. echo "${ECHO_T}$ac_cv_lib_gen_pathfind" >&6; }
  31185. if test $ac_cv_lib_gen_pathfind = yes; then
  31186. cat >>confdefs.h <<_ACEOF
  31187. #define HAVE_LIBGEN 1
  31188. _ACEOF
  31189. LIBS="-lgen $LIBS"
  31190. fi
  31191. for ac_func in vprintf
  31192. do
  31193. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31194. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31195. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31196. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31197. echo $ECHO_N "(cached) $ECHO_C" >&6
  31198. else
  31199. cat >conftest.$ac_ext <<_ACEOF
  31200. /* confdefs.h. */
  31201. _ACEOF
  31202. cat confdefs.h >>conftest.$ac_ext
  31203. cat >>conftest.$ac_ext <<_ACEOF
  31204. /* end confdefs.h. */
  31205. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31206. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31207. #define $ac_func innocuous_$ac_func
  31208. /* System header to define __stub macros and hopefully few prototypes,
  31209. which can conflict with char $ac_func (); below.
  31210. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31211. <limits.h> exists even on freestanding compilers. */
  31212. #ifdef __STDC__
  31213. # include <limits.h>
  31214. #else
  31215. # include <assert.h>
  31216. #endif
  31217. #undef $ac_func
  31218. /* Override any GCC internal prototype to avoid an error.
  31219. Use char because int might match the return type of a GCC
  31220. builtin and then its argument prototype would still apply. */
  31221. #ifdef __cplusplus
  31222. extern "C"
  31223. #endif
  31224. char $ac_func ();
  31225. /* The GNU C library defines this for functions which it implements
  31226. to always fail with ENOSYS. Some functions are actually named
  31227. something starting with __ and the normal name is an alias. */
  31228. #if defined __stub_$ac_func || defined __stub___$ac_func
  31229. choke me
  31230. #endif
  31231. int
  31232. main ()
  31233. {
  31234. return $ac_func ();
  31235. ;
  31236. return 0;
  31237. }
  31238. _ACEOF
  31239. rm -f conftest.$ac_objext conftest$ac_exeext
  31240. if { (ac_try="$ac_link"
  31241. case "(($ac_try" in
  31242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31243. *) ac_try_echo=$ac_try;;
  31244. esac
  31245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31246. (eval "$ac_link") 2>conftest.er1
  31247. ac_status=$?
  31248. grep -v '^ *+' conftest.er1 >conftest.err
  31249. rm -f conftest.er1
  31250. cat conftest.err >&5
  31251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31252. (exit $ac_status); } && {
  31253. test -z "$ac_c_werror_flag" ||
  31254. test ! -s conftest.err
  31255. } && test -s conftest$ac_exeext &&
  31256. $as_test_x conftest$ac_exeext; then
  31257. eval "$as_ac_var=yes"
  31258. else
  31259. echo "$as_me: failed program was:" >&5
  31260. sed 's/^/| /' conftest.$ac_ext >&5
  31261. eval "$as_ac_var=no"
  31262. fi
  31263. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31264. conftest$ac_exeext conftest.$ac_ext
  31265. fi
  31266. ac_res=`eval echo '${'$as_ac_var'}'`
  31267. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31268. echo "${ECHO_T}$ac_res" >&6; }
  31269. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31270. cat >>confdefs.h <<_ACEOF
  31271. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31272. _ACEOF
  31273. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  31274. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  31275. if test "${ac_cv_func__doprnt+set}" = set; then
  31276. echo $ECHO_N "(cached) $ECHO_C" >&6
  31277. else
  31278. cat >conftest.$ac_ext <<_ACEOF
  31279. /* confdefs.h. */
  31280. _ACEOF
  31281. cat confdefs.h >>conftest.$ac_ext
  31282. cat >>conftest.$ac_ext <<_ACEOF
  31283. /* end confdefs.h. */
  31284. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  31285. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31286. #define _doprnt innocuous__doprnt
  31287. /* System header to define __stub macros and hopefully few prototypes,
  31288. which can conflict with char _doprnt (); below.
  31289. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31290. <limits.h> exists even on freestanding compilers. */
  31291. #ifdef __STDC__
  31292. # include <limits.h>
  31293. #else
  31294. # include <assert.h>
  31295. #endif
  31296. #undef _doprnt
  31297. /* Override any GCC internal prototype to avoid an error.
  31298. Use char because int might match the return type of a GCC
  31299. builtin and then its argument prototype would still apply. */
  31300. #ifdef __cplusplus
  31301. extern "C"
  31302. #endif
  31303. char _doprnt ();
  31304. /* The GNU C library defines this for functions which it implements
  31305. to always fail with ENOSYS. Some functions are actually named
  31306. something starting with __ and the normal name is an alias. */
  31307. #if defined __stub__doprnt || defined __stub____doprnt
  31308. choke me
  31309. #endif
  31310. int
  31311. main ()
  31312. {
  31313. return _doprnt ();
  31314. ;
  31315. return 0;
  31316. }
  31317. _ACEOF
  31318. rm -f conftest.$ac_objext conftest$ac_exeext
  31319. if { (ac_try="$ac_link"
  31320. case "(($ac_try" in
  31321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31322. *) ac_try_echo=$ac_try;;
  31323. esac
  31324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31325. (eval "$ac_link") 2>conftest.er1
  31326. ac_status=$?
  31327. grep -v '^ *+' conftest.er1 >conftest.err
  31328. rm -f conftest.er1
  31329. cat conftest.err >&5
  31330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31331. (exit $ac_status); } && {
  31332. test -z "$ac_c_werror_flag" ||
  31333. test ! -s conftest.err
  31334. } && test -s conftest$ac_exeext &&
  31335. $as_test_x conftest$ac_exeext; then
  31336. ac_cv_func__doprnt=yes
  31337. else
  31338. echo "$as_me: failed program was:" >&5
  31339. sed 's/^/| /' conftest.$ac_ext >&5
  31340. ac_cv_func__doprnt=no
  31341. fi
  31342. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31343. conftest$ac_exeext conftest.$ac_ext
  31344. fi
  31345. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  31346. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  31347. if test $ac_cv_func__doprnt = yes; then
  31348. cat >>confdefs.h <<\_ACEOF
  31349. #define HAVE_DOPRNT 1
  31350. _ACEOF
  31351. fi
  31352. fi
  31353. done
  31354. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  31355. do
  31356. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31357. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  31358. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  31359. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  31360. echo $ECHO_N "(cached) $ECHO_C" >&6
  31361. else
  31362. cat >conftest.$ac_ext <<_ACEOF
  31363. /* confdefs.h. */
  31364. _ACEOF
  31365. cat confdefs.h >>conftest.$ac_ext
  31366. cat >>conftest.$ac_ext <<_ACEOF
  31367. /* end confdefs.h. */
  31368. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  31369. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31370. #define $ac_func innocuous_$ac_func
  31371. /* System header to define __stub macros and hopefully few prototypes,
  31372. which can conflict with char $ac_func (); below.
  31373. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31374. <limits.h> exists even on freestanding compilers. */
  31375. #ifdef __STDC__
  31376. # include <limits.h>
  31377. #else
  31378. # include <assert.h>
  31379. #endif
  31380. #undef $ac_func
  31381. /* Override any GCC internal prototype to avoid an error.
  31382. Use char because int might match the return type of a GCC
  31383. builtin and then its argument prototype would still apply. */
  31384. #ifdef __cplusplus
  31385. extern "C"
  31386. #endif
  31387. char $ac_func ();
  31388. /* The GNU C library defines this for functions which it implements
  31389. to always fail with ENOSYS. Some functions are actually named
  31390. something starting with __ and the normal name is an alias. */
  31391. #if defined __stub_$ac_func || defined __stub___$ac_func
  31392. choke me
  31393. #endif
  31394. int
  31395. main ()
  31396. {
  31397. return $ac_func ();
  31398. ;
  31399. return 0;
  31400. }
  31401. _ACEOF
  31402. rm -f conftest.$ac_objext conftest$ac_exeext
  31403. if { (ac_try="$ac_link"
  31404. case "(($ac_try" in
  31405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  31406. *) ac_try_echo=$ac_try;;
  31407. esac
  31408. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  31409. (eval "$ac_link") 2>conftest.er1
  31410. ac_status=$?
  31411. grep -v '^ *+' conftest.er1 >conftest.err
  31412. rm -f conftest.er1
  31413. cat conftest.err >&5
  31414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31415. (exit $ac_status); } && {
  31416. test -z "$ac_c_werror_flag" ||
  31417. test ! -s conftest.err
  31418. } && test -s conftest$ac_exeext &&
  31419. $as_test_x conftest$ac_exeext; then
  31420. eval "$as_ac_var=yes"
  31421. else
  31422. echo "$as_me: failed program was:" >&5
  31423. sed 's/^/| /' conftest.$ac_ext >&5
  31424. eval "$as_ac_var=no"
  31425. fi
  31426. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  31427. conftest$ac_exeext conftest.$ac_ext
  31428. fi
  31429. ac_res=`eval echo '${'$as_ac_var'}'`
  31430. { echo "$as_me:$LINENO: result: $ac_res" >&5
  31431. echo "${ECHO_T}$ac_res" >&6; }
  31432. if test `eval echo '${'$as_ac_var'}'` = yes; then
  31433. cat >>confdefs.h <<_ACEOF
  31434. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31435. _ACEOF
  31436. fi
  31437. done
  31438. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  31439. fi
  31440. fi
  31441. # end of AC_DEFUN of LIBOPTS_CHECK
  31442. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/flow/Makefile src/defines.h test/Makefile test/config scripts/Makefile tcpreplay.spec"
  31443. cat >confcache <<\_ACEOF
  31444. # This file is a shell script that caches the results of configure
  31445. # tests run on this system so they can be shared between configure
  31446. # scripts and configure runs, see configure's option --config-cache.
  31447. # It is not useful on other systems. If it contains results you don't
  31448. # want to keep, you may remove or edit it.
  31449. #
  31450. # config.status only pays attention to the cache file if you give it
  31451. # the --recheck option to rerun configure.
  31452. #
  31453. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  31454. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  31455. # following values.
  31456. _ACEOF
  31457. # The following way of writing the cache mishandles newlines in values,
  31458. # but we know of no workaround that is simple, portable, and efficient.
  31459. # So, we kill variables containing newlines.
  31460. # Ultrix sh set writes to stderr and can't be redirected directly,
  31461. # and sets the high bit in the cache file unless we assign to the vars.
  31462. (
  31463. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31464. eval ac_val=\$$ac_var
  31465. case $ac_val in #(
  31466. *${as_nl}*)
  31467. case $ac_var in #(
  31468. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  31469. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  31470. esac
  31471. case $ac_var in #(
  31472. _ | IFS | as_nl) ;; #(
  31473. *) $as_unset $ac_var ;;
  31474. esac ;;
  31475. esac
  31476. done
  31477. (set) 2>&1 |
  31478. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31479. *${as_nl}ac_space=\ *)
  31480. # `set' does not quote correctly, so add quotes (double-quote
  31481. # substitution turns \\\\ into \\, and sed turns \\ into \).
  31482. sed -n \
  31483. "s/'/'\\\\''/g;
  31484. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31485. ;; #(
  31486. *)
  31487. # `set' quotes correctly as required by POSIX, so do not add quotes.
  31488. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31489. ;;
  31490. esac |
  31491. sort
  31492. ) |
  31493. sed '
  31494. /^ac_cv_env_/b end
  31495. t clear
  31496. :clear
  31497. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31498. t end
  31499. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31500. :end' >>confcache
  31501. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31502. if test -w "$cache_file"; then
  31503. test "x$cache_file" != "x/dev/null" &&
  31504. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  31505. echo "$as_me: updating cache $cache_file" >&6;}
  31506. cat confcache >$cache_file
  31507. else
  31508. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  31509. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31510. fi
  31511. fi
  31512. rm -f confcache
  31513. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  31514. # Let make expand exec_prefix.
  31515. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  31516. DEFS=-DHAVE_CONFIG_H
  31517. ac_libobjs=
  31518. ac_ltlibobjs=
  31519. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  31520. # 1. Remove the extension, and $U if already installed.
  31521. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  31522. ac_i=`echo "$ac_i" | sed "$ac_script"`
  31523. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  31524. # will be set to the directory where LIBOBJS objects are built.
  31525. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  31526. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  31527. done
  31528. LIBOBJS=$ac_libobjs
  31529. LTLIBOBJS=$ac_ltlibobjs
  31530. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  31531. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  31532. Usually this means the macro was only invoked conditionally." >&5
  31533. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  31534. Usually this means the macro was only invoked conditionally." >&2;}
  31535. { (exit 1); exit 1; }; }
  31536. fi
  31537. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  31538. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  31539. Usually this means the macro was only invoked conditionally." >&5
  31540. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  31541. Usually this means the macro was only invoked conditionally." >&2;}
  31542. { (exit 1); exit 1; }; }
  31543. fi
  31544. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31545. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31546. Usually this means the macro was only invoked conditionally." >&5
  31547. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31548. Usually this means the macro was only invoked conditionally." >&2;}
  31549. { (exit 1); exit 1; }; }
  31550. fi
  31551. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31552. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31553. Usually this means the macro was only invoked conditionally." >&5
  31554. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31555. Usually this means the macro was only invoked conditionally." >&2;}
  31556. { (exit 1); exit 1; }; }
  31557. fi
  31558. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  31559. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  31560. Usually this means the macro was only invoked conditionally." >&5
  31561. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  31562. Usually this means the macro was only invoked conditionally." >&2;}
  31563. { (exit 1); exit 1; }; }
  31564. fi
  31565. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  31566. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  31567. Usually this means the macro was only invoked conditionally." >&5
  31568. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  31569. Usually this means the macro was only invoked conditionally." >&2;}
  31570. { (exit 1); exit 1; }; }
  31571. fi
  31572. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  31573. { { echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31574. Usually this means the macro was only invoked conditionally." >&5
  31575. echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  31576. Usually this means the macro was only invoked conditionally." >&2;}
  31577. { (exit 1); exit 1; }; }
  31578. fi
  31579. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  31580. { { echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31581. Usually this means the macro was only invoked conditionally." >&5
  31582. echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  31583. Usually this means the macro was only invoked conditionally." >&2;}
  31584. { (exit 1); exit 1; }; }
  31585. fi
  31586. if test -z "${ENABLE_TCPREPLAY_EDIT_TRUE}" && test -z "${ENABLE_TCPREPLAY_EDIT_FALSE}"; then
  31587. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31588. Usually this means the macro was only invoked conditionally." >&5
  31589. echo "$as_me: error: conditional \"ENABLE_TCPREPLAY_EDIT\" was never defined.
  31590. Usually this means the macro was only invoked conditionally." >&2;}
  31591. { (exit 1); exit 1; }; }
  31592. fi
  31593. if test -z "${ENABLE_FLOWREPLAY_TRUE}" && test -z "${ENABLE_FLOWREPLAY_FALSE}"; then
  31594. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31595. Usually this means the macro was only invoked conditionally." >&5
  31596. echo "$as_me: error: conditional \"ENABLE_FLOWREPLAY\" was never defined.
  31597. Usually this means the macro was only invoked conditionally." >&2;}
  31598. { (exit 1); exit 1; }; }
  31599. fi
  31600. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  31601. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31602. Usually this means the macro was only invoked conditionally." >&5
  31603. echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  31604. Usually this means the macro was only invoked conditionally." >&2;}
  31605. { (exit 1); exit 1; }; }
  31606. fi
  31607. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  31608. { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31609. Usually this means the macro was only invoked conditionally." >&5
  31610. echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  31611. Usually this means the macro was only invoked conditionally." >&2;}
  31612. { (exit 1); exit 1; }; }
  31613. fi
  31614. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  31615. { { echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  31616. Usually this means the macro was only invoked conditionally." >&5
  31617. echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  31618. Usually this means the macro was only invoked conditionally." >&2;}
  31619. { (exit 1); exit 1; }; }
  31620. fi
  31621. : ${CONFIG_STATUS=./config.status}
  31622. ac_clean_files_save=$ac_clean_files
  31623. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  31624. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  31625. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  31626. cat >$CONFIG_STATUS <<_ACEOF
  31627. #! $SHELL
  31628. # Generated by $as_me.
  31629. # Run this file to recreate the current configuration.
  31630. # Compiler output produced by configure, useful for debugging
  31631. # configure, is in config.log if it exists.
  31632. debug=false
  31633. ac_cs_recheck=false
  31634. ac_cs_silent=false
  31635. SHELL=\${CONFIG_SHELL-$SHELL}
  31636. _ACEOF
  31637. cat >>$CONFIG_STATUS <<\_ACEOF
  31638. ## --------------------- ##
  31639. ## M4sh Initialization. ##
  31640. ## --------------------- ##
  31641. # Be more Bourne compatible
  31642. DUALCASE=1; export DUALCASE # for MKS sh
  31643. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  31644. emulate sh
  31645. NULLCMD=:
  31646. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  31647. # is contrary to our usage. Disable this feature.
  31648. alias -g '${1+"$@"}'='"$@"'
  31649. setopt NO_GLOB_SUBST
  31650. else
  31651. case `(set -o) 2>/dev/null` in
  31652. *posix*) set -o posix ;;
  31653. esac
  31654. fi
  31655. # PATH needs CR
  31656. # Avoid depending upon Character Ranges.
  31657. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31658. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31659. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31660. as_cr_digits='0123456789'
  31661. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31662. # The user is always right.
  31663. if test "${PATH_SEPARATOR+set}" != set; then
  31664. echo "#! /bin/sh" >conf$$.sh
  31665. echo "exit 0" >>conf$$.sh
  31666. chmod +x conf$$.sh
  31667. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  31668. PATH_SEPARATOR=';'
  31669. else
  31670. PATH_SEPARATOR=:
  31671. fi
  31672. rm -f conf$$.sh
  31673. fi
  31674. # Support unset when possible.
  31675. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  31676. as_unset=unset
  31677. else
  31678. as_unset=false
  31679. fi
  31680. # IFS
  31681. # We need space, tab and new line, in precisely that order. Quoting is
  31682. # there to prevent editors from complaining about space-tab.
  31683. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  31684. # splitting by setting IFS to empty value.)
  31685. as_nl='
  31686. '
  31687. IFS=" "" $as_nl"
  31688. # Find who we are. Look in the path if we contain no directory separator.
  31689. case $0 in
  31690. *[\\/]* ) as_myself=$0 ;;
  31691. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31692. for as_dir in $PATH
  31693. do
  31694. IFS=$as_save_IFS
  31695. test -z "$as_dir" && as_dir=.
  31696. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  31697. done
  31698. IFS=$as_save_IFS
  31699. ;;
  31700. esac
  31701. # We did not find ourselves, most probably we were run as `sh COMMAND'
  31702. # in which case we are not to be found in the path.
  31703. if test "x$as_myself" = x; then
  31704. as_myself=$0
  31705. fi
  31706. if test ! -f "$as_myself"; then
  31707. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  31708. { (exit 1); exit 1; }
  31709. fi
  31710. # Work around bugs in pre-3.0 UWIN ksh.
  31711. for as_var in ENV MAIL MAILPATH
  31712. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  31713. done
  31714. PS1='$ '
  31715. PS2='> '
  31716. PS4='+ '
  31717. # NLS nuisances.
  31718. for as_var in \
  31719. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  31720. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  31721. LC_TELEPHONE LC_TIME
  31722. do
  31723. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  31724. eval $as_var=C; export $as_var
  31725. else
  31726. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  31727. fi
  31728. done
  31729. # Required to use basename.
  31730. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31731. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31732. as_expr=expr
  31733. else
  31734. as_expr=false
  31735. fi
  31736. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  31737. as_basename=basename
  31738. else
  31739. as_basename=false
  31740. fi
  31741. # Name of the executable.
  31742. as_me=`$as_basename -- "$0" ||
  31743. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  31744. X"$0" : 'X\(//\)$' \| \
  31745. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  31746. echo X/"$0" |
  31747. sed '/^.*\/\([^/][^/]*\)\/*$/{
  31748. s//\1/
  31749. q
  31750. }
  31751. /^X\/\(\/\/\)$/{
  31752. s//\1/
  31753. q
  31754. }
  31755. /^X\/\(\/\).*/{
  31756. s//\1/
  31757. q
  31758. }
  31759. s/.*/./; q'`
  31760. # CDPATH.
  31761. $as_unset CDPATH
  31762. as_lineno_1=$LINENO
  31763. as_lineno_2=$LINENO
  31764. test "x$as_lineno_1" != "x$as_lineno_2" &&
  31765. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  31766. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  31767. # uniformly replaced by the line number. The first 'sed' inserts a
  31768. # line-number line after each line using $LINENO; the second 'sed'
  31769. # does the real work. The second script uses 'N' to pair each
  31770. # line-number line with the line containing $LINENO, and appends
  31771. # trailing '-' during substitution so that $LINENO is not a special
  31772. # case at line end.
  31773. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  31774. # scripts with optimization help from Paolo Bonzini. Blame Lee
  31775. # E. McMahon (1931-1989) for sed's syntax. :-)
  31776. sed -n '
  31777. p
  31778. /[$]LINENO/=
  31779. ' <$as_myself |
  31780. sed '
  31781. s/[$]LINENO.*/&-/
  31782. t lineno
  31783. b
  31784. :lineno
  31785. N
  31786. :loop
  31787. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  31788. t loop
  31789. s/-\n.*//
  31790. ' >$as_me.lineno &&
  31791. chmod +x "$as_me.lineno" ||
  31792. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  31793. { (exit 1); exit 1; }; }
  31794. # Don't try to exec as it changes $[0], causing all sort of problems
  31795. # (the dirname of $[0] is not the place where we might find the
  31796. # original and so on. Autoconf is especially sensitive to this).
  31797. . "./$as_me.lineno"
  31798. # Exit status is that of the last command.
  31799. exit
  31800. }
  31801. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  31802. as_dirname=dirname
  31803. else
  31804. as_dirname=false
  31805. fi
  31806. ECHO_C= ECHO_N= ECHO_T=
  31807. case `echo -n x` in
  31808. -n*)
  31809. case `echo 'x\c'` in
  31810. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  31811. *) ECHO_C='\c';;
  31812. esac;;
  31813. *)
  31814. ECHO_N='-n';;
  31815. esac
  31816. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31817. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31818. as_expr=expr
  31819. else
  31820. as_expr=false
  31821. fi
  31822. rm -f conf$$ conf$$.exe conf$$.file
  31823. if test -d conf$$.dir; then
  31824. rm -f conf$$.dir/conf$$.file
  31825. else
  31826. rm -f conf$$.dir
  31827. mkdir conf$$.dir
  31828. fi
  31829. echo >conf$$.file
  31830. if ln -s conf$$.file conf$$ 2>/dev/null; then
  31831. as_ln_s='ln -s'
  31832. # ... but there are two gotchas:
  31833. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  31834. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  31835. # In both cases, we have to default to `cp -p'.
  31836. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  31837. as_ln_s='cp -p'
  31838. elif ln conf$$.file conf$$ 2>/dev/null; then
  31839. as_ln_s=ln
  31840. else
  31841. as_ln_s='cp -p'
  31842. fi
  31843. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  31844. rmdir conf$$.dir 2>/dev/null
  31845. if mkdir -p . 2>/dev/null; then
  31846. as_mkdir_p=:
  31847. else
  31848. test -d ./-p && rmdir ./-p
  31849. as_mkdir_p=false
  31850. fi
  31851. if test -x / >/dev/null 2>&1; then
  31852. as_test_x='test -x'
  31853. else
  31854. if ls -dL / >/dev/null 2>&1; then
  31855. as_ls_L_option=L
  31856. else
  31857. as_ls_L_option=
  31858. fi
  31859. as_test_x='
  31860. eval sh -c '\''
  31861. if test -d "$1"; then
  31862. test -d "$1/.";
  31863. else
  31864. case $1 in
  31865. -*)set "./$1";;
  31866. esac;
  31867. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  31868. ???[sx]*):;;*)false;;esac;fi
  31869. '\'' sh
  31870. '
  31871. fi
  31872. as_executable_p=$as_test_x
  31873. # Sed expression to map a string onto a valid CPP name.
  31874. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  31875. # Sed expression to map a string onto a valid variable name.
  31876. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  31877. exec 6>&1
  31878. # Save the log message, to keep $[0] and so on meaningful, and to
  31879. # report actual input values of CONFIG_FILES etc. instead of their
  31880. # values after options handling.
  31881. ac_log="
  31882. This file was extended by $as_me, which was
  31883. generated by GNU Autoconf 2.61. Invocation command line was
  31884. CONFIG_FILES = $CONFIG_FILES
  31885. CONFIG_HEADERS = $CONFIG_HEADERS
  31886. CONFIG_LINKS = $CONFIG_LINKS
  31887. CONFIG_COMMANDS = $CONFIG_COMMANDS
  31888. $ $0 $@
  31889. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  31890. "
  31891. _ACEOF
  31892. cat >>$CONFIG_STATUS <<_ACEOF
  31893. # Files that config.status was made for.
  31894. config_files="$ac_config_files"
  31895. config_headers="$ac_config_headers"
  31896. config_commands="$ac_config_commands"
  31897. _ACEOF
  31898. cat >>$CONFIG_STATUS <<\_ACEOF
  31899. ac_cs_usage="\
  31900. \`$as_me' instantiates files from templates according to the
  31901. current configuration.
  31902. Usage: $0 [OPTIONS] [FILE]...
  31903. -h, --help print this help, then exit
  31904. -V, --version print version number and configuration settings, then exit
  31905. -q, --quiet do not print progress messages
  31906. -d, --debug don't remove temporary files
  31907. --recheck update $as_me by reconfiguring in the same conditions
  31908. --file=FILE[:TEMPLATE]
  31909. instantiate the configuration file FILE
  31910. --header=FILE[:TEMPLATE]
  31911. instantiate the configuration header FILE
  31912. Configuration files:
  31913. $config_files
  31914. Configuration headers:
  31915. $config_headers
  31916. Configuration commands:
  31917. $config_commands
  31918. Report bugs to <bug-autoconf@gnu.org>."
  31919. _ACEOF
  31920. cat >>$CONFIG_STATUS <<_ACEOF
  31921. ac_cs_version="\\
  31922. config.status
  31923. configured by $0, generated by GNU Autoconf 2.61,
  31924. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  31925. Copyright (C) 2006 Free Software Foundation, Inc.
  31926. This config.status script is free software; the Free Software Foundation
  31927. gives unlimited permission to copy, distribute and modify it."
  31928. ac_pwd='$ac_pwd'
  31929. srcdir='$srcdir'
  31930. INSTALL='$INSTALL'
  31931. MKDIR_P='$MKDIR_P'
  31932. _ACEOF
  31933. cat >>$CONFIG_STATUS <<\_ACEOF
  31934. # If no file are specified by the user, then we need to provide default
  31935. # value. By we need to know if files were specified by the user.
  31936. ac_need_defaults=:
  31937. while test $# != 0
  31938. do
  31939. case $1 in
  31940. --*=*)
  31941. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  31942. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  31943. ac_shift=:
  31944. ;;
  31945. *)
  31946. ac_option=$1
  31947. ac_optarg=$2
  31948. ac_shift=shift
  31949. ;;
  31950. esac
  31951. case $ac_option in
  31952. # Handling of the options.
  31953. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  31954. ac_cs_recheck=: ;;
  31955. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  31956. echo "$ac_cs_version"; exit ;;
  31957. --debug | --debu | --deb | --de | --d | -d )
  31958. debug=: ;;
  31959. --file | --fil | --fi | --f )
  31960. $ac_shift
  31961. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  31962. ac_need_defaults=false;;
  31963. --header | --heade | --head | --hea )
  31964. $ac_shift
  31965. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  31966. ac_need_defaults=false;;
  31967. --he | --h)
  31968. # Conflict between --help and --header
  31969. { echo "$as_me: error: ambiguous option: $1
  31970. Try \`$0 --help' for more information." >&2
  31971. { (exit 1); exit 1; }; };;
  31972. --help | --hel | -h )
  31973. echo "$ac_cs_usage"; exit ;;
  31974. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  31975. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  31976. ac_cs_silent=: ;;
  31977. # This is an error.
  31978. -*) { echo "$as_me: error: unrecognized option: $1
  31979. Try \`$0 --help' for more information." >&2
  31980. { (exit 1); exit 1; }; } ;;
  31981. *) ac_config_targets="$ac_config_targets $1"
  31982. ac_need_defaults=false ;;
  31983. esac
  31984. shift
  31985. done
  31986. ac_configure_extra_args=
  31987. if $ac_cs_silent; then
  31988. exec 6>/dev/null
  31989. ac_configure_extra_args="$ac_configure_extra_args --silent"
  31990. fi
  31991. _ACEOF
  31992. cat >>$CONFIG_STATUS <<_ACEOF
  31993. if \$ac_cs_recheck; then
  31994. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  31995. CONFIG_SHELL=$SHELL
  31996. export CONFIG_SHELL
  31997. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  31998. fi
  31999. _ACEOF
  32000. cat >>$CONFIG_STATUS <<\_ACEOF
  32001. exec 5>>config.log
  32002. {
  32003. echo
  32004. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  32005. ## Running $as_me. ##
  32006. _ASBOX
  32007. echo "$ac_log"
  32008. } >&5
  32009. _ACEOF
  32010. cat >>$CONFIG_STATUS <<_ACEOF
  32011. #
  32012. # INIT-COMMANDS
  32013. #
  32014. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  32015. _ACEOF
  32016. cat >>$CONFIG_STATUS <<\_ACEOF
  32017. # Handling of arguments.
  32018. for ac_config_target in $ac_config_targets
  32019. do
  32020. case $ac_config_target in
  32021. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  32022. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  32023. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  32024. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  32025. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  32026. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  32027. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  32028. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  32029. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  32030. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  32031. "src/flow/Makefile") CONFIG_FILES="$CONFIG_FILES src/flow/Makefile" ;;
  32032. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  32033. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  32034. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  32035. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  32036. "tcpreplay.spec") CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  32037. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  32038. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  32039. { (exit 1); exit 1; }; };;
  32040. esac
  32041. done
  32042. # If the user did not use the arguments to specify the items to instantiate,
  32043. # then the envvar interface is used. Set only those that are not.
  32044. # We use the long form for the default assignment because of an extremely
  32045. # bizarre bug on SunOS 4.1.3.
  32046. if $ac_need_defaults; then
  32047. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  32048. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  32049. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  32050. fi
  32051. # Have a temporary directory for convenience. Make it in the build tree
  32052. # simply because there is no reason against having it here, and in addition,
  32053. # creating and moving files from /tmp can sometimes cause problems.
  32054. # Hook for its removal unless debugging.
  32055. # Note that there is a small window in which the directory will not be cleaned:
  32056. # after its creation but before its name has been assigned to `$tmp'.
  32057. $debug ||
  32058. {
  32059. tmp=
  32060. trap 'exit_status=$?
  32061. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  32062. ' 0
  32063. trap '{ (exit 1); exit 1; }' 1 2 13 15
  32064. }
  32065. # Create a (secure) tmp directory for tmp files.
  32066. {
  32067. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  32068. test -n "$tmp" && test -d "$tmp"
  32069. } ||
  32070. {
  32071. tmp=./conf$$-$RANDOM
  32072. (umask 077 && mkdir "$tmp")
  32073. } ||
  32074. {
  32075. echo "$me: cannot create a temporary directory in ." >&2
  32076. { (exit 1); exit 1; }
  32077. }
  32078. #
  32079. # Set up the sed scripts for CONFIG_FILES section.
  32080. #
  32081. # No need to generate the scripts if there are no CONFIG_FILES.
  32082. # This happens for instance when ./config.status config.h
  32083. if test -n "$CONFIG_FILES"; then
  32084. _ACEOF
  32085. ac_delim='%!_!# '
  32086. for ac_last_try in false false false false false :; do
  32087. cat >conf$$subs.sed <<_ACEOF
  32088. SHELL!$SHELL$ac_delim
  32089. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  32090. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  32091. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  32092. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  32093. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  32094. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  32095. exec_prefix!$exec_prefix$ac_delim
  32096. prefix!$prefix$ac_delim
  32097. program_transform_name!$program_transform_name$ac_delim
  32098. bindir!$bindir$ac_delim
  32099. sbindir!$sbindir$ac_delim
  32100. libexecdir!$libexecdir$ac_delim
  32101. datarootdir!$datarootdir$ac_delim
  32102. datadir!$datadir$ac_delim
  32103. sysconfdir!$sysconfdir$ac_delim
  32104. sharedstatedir!$sharedstatedir$ac_delim
  32105. localstatedir!$localstatedir$ac_delim
  32106. includedir!$includedir$ac_delim
  32107. oldincludedir!$oldincludedir$ac_delim
  32108. docdir!$docdir$ac_delim
  32109. infodir!$infodir$ac_delim
  32110. htmldir!$htmldir$ac_delim
  32111. dvidir!$dvidir$ac_delim
  32112. pdfdir!$pdfdir$ac_delim
  32113. psdir!$psdir$ac_delim
  32114. libdir!$libdir$ac_delim
  32115. localedir!$localedir$ac_delim
  32116. mandir!$mandir$ac_delim
  32117. DEFS!$DEFS$ac_delim
  32118. ECHO_C!$ECHO_C$ac_delim
  32119. ECHO_N!$ECHO_N$ac_delim
  32120. ECHO_T!$ECHO_T$ac_delim
  32121. LIBS!$LIBS$ac_delim
  32122. build_alias!$build_alias$ac_delim
  32123. host_alias!$host_alias$ac_delim
  32124. target_alias!$target_alias$ac_delim
  32125. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  32126. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  32127. MAINT!$MAINT$ac_delim
  32128. TCPREPLAY_VERSION!$TCPREPLAY_VERSION$ac_delim
  32129. TCPREPLAY_RELEASE!$TCPREPLAY_RELEASE$ac_delim
  32130. build!$build$ac_delim
  32131. build_cpu!$build_cpu$ac_delim
  32132. build_vendor!$build_vendor$ac_delim
  32133. build_os!$build_os$ac_delim
  32134. host!$host$ac_delim
  32135. host_cpu!$host_cpu$ac_delim
  32136. host_vendor!$host_vendor$ac_delim
  32137. host_os!$host_os$ac_delim
  32138. target!$target$ac_delim
  32139. target_cpu!$target_cpu$ac_delim
  32140. target_vendor!$target_vendor$ac_delim
  32141. target_os!$target_os$ac_delim
  32142. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  32143. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  32144. INSTALL_DATA!$INSTALL_DATA$ac_delim
  32145. am__isrc!$am__isrc$ac_delim
  32146. CYGPATH_W!$CYGPATH_W$ac_delim
  32147. PACKAGE!$PACKAGE$ac_delim
  32148. VERSION!$VERSION$ac_delim
  32149. ACLOCAL!$ACLOCAL$ac_delim
  32150. AUTOCONF!$AUTOCONF$ac_delim
  32151. AUTOMAKE!$AUTOMAKE$ac_delim
  32152. AUTOHEADER!$AUTOHEADER$ac_delim
  32153. MAKEINFO!$MAKEINFO$ac_delim
  32154. install_sh!$install_sh$ac_delim
  32155. STRIP!$STRIP$ac_delim
  32156. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  32157. mkdir_p!$mkdir_p$ac_delim
  32158. AWK!$AWK$ac_delim
  32159. SET_MAKE!$SET_MAKE$ac_delim
  32160. am__leading_dot!$am__leading_dot$ac_delim
  32161. AMTAR!$AMTAR$ac_delim
  32162. am__tar!$am__tar$ac_delim
  32163. am__untar!$am__untar$ac_delim
  32164. CC!$CC$ac_delim
  32165. CFLAGS!$CFLAGS$ac_delim
  32166. LDFLAGS!$LDFLAGS$ac_delim
  32167. CPPFLAGS!$CPPFLAGS$ac_delim
  32168. ac_ct_CC!$ac_ct_CC$ac_delim
  32169. EXEEXT!$EXEEXT$ac_delim
  32170. OBJEXT!$OBJEXT$ac_delim
  32171. DEPDIR!$DEPDIR$ac_delim
  32172. am__include!$am__include$ac_delim
  32173. am__quote!$am__quote$ac_delim
  32174. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  32175. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  32176. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  32177. CCDEPMODE!$CCDEPMODE$ac_delim
  32178. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  32179. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  32180. GREP!$GREP$ac_delim
  32181. EGREP!$EGREP$ac_delim
  32182. LN_S!$LN_S$ac_delim
  32183. ECHO!$ECHO$ac_delim
  32184. AR!$AR$ac_delim
  32185. _ACEOF
  32186. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  32187. break
  32188. elif $ac_last_try; then
  32189. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32190. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32191. { (exit 1); exit 1; }; }
  32192. else
  32193. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32194. fi
  32195. done
  32196. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32197. if test -n "$ac_eof"; then
  32198. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32199. ac_eof=`expr $ac_eof + 1`
  32200. fi
  32201. cat >>$CONFIG_STATUS <<_ACEOF
  32202. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  32203. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32204. _ACEOF
  32205. sed '
  32206. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32207. s/^/s,@/; s/!/@,|#_!!_#|/
  32208. :n
  32209. t n
  32210. s/'"$ac_delim"'$/,g/; t
  32211. s/$/\\/; p
  32212. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32213. ' >>$CONFIG_STATUS <conf$$subs.sed
  32214. rm -f conf$$subs.sed
  32215. cat >>$CONFIG_STATUS <<_ACEOF
  32216. CEOF$ac_eof
  32217. _ACEOF
  32218. ac_delim='%!_!# '
  32219. for ac_last_try in false false false false false :; do
  32220. cat >conf$$subs.sed <<_ACEOF
  32221. RANLIB!$RANLIB$ac_delim
  32222. CPP!$CPP$ac_delim
  32223. CXX!$CXX$ac_delim
  32224. CXXFLAGS!$CXXFLAGS$ac_delim
  32225. ac_ct_CXX!$ac_ct_CXX$ac_delim
  32226. CXXDEPMODE!$CXXDEPMODE$ac_delim
  32227. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  32228. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  32229. CXXCPP!$CXXCPP$ac_delim
  32230. F77!$F77$ac_delim
  32231. FFLAGS!$FFLAGS$ac_delim
  32232. ac_ct_F77!$ac_ct_F77$ac_delim
  32233. LIBTOOL!$LIBTOOL$ac_delim
  32234. SED!$SED$ac_delim
  32235. PRINTF!$PRINTF$ac_delim
  32236. AUTOGEN!$AUTOGEN$ac_delim
  32237. LIBOBJS!$LIBOBJS$ac_delim
  32238. SYSTEM_STRLCPY_TRUE!$SYSTEM_STRLCPY_TRUE$ac_delim
  32239. SYSTEM_STRLCPY_FALSE!$SYSTEM_STRLCPY_FALSE$ac_delim
  32240. WORDS_BIGENDIAN_TRUE!$WORDS_BIGENDIAN_TRUE$ac_delim
  32241. WORDS_BIGENDIAN_FALSE!$WORDS_BIGENDIAN_FALSE$ac_delim
  32242. debug_flag!$debug_flag$ac_delim
  32243. ENABLE_TCPREPLAY_EDIT_TRUE!$ENABLE_TCPREPLAY_EDIT_TRUE$ac_delim
  32244. ENABLE_TCPREPLAY_EDIT_FALSE!$ENABLE_TCPREPLAY_EDIT_FALSE$ac_delim
  32245. ENABLE_FLOWREPLAY_TRUE!$ENABLE_FLOWREPLAY_TRUE$ac_delim
  32246. ENABLE_FLOWREPLAY_FALSE!$ENABLE_FLOWREPLAY_FALSE$ac_delim
  32247. LNETINC!$LNETINC$ac_delim
  32248. LNETLIB!$LNETLIB$ac_delim
  32249. LPCAPINC!$LPCAPINC$ac_delim
  32250. LPCAPLIB!$LPCAPLIB$ac_delim
  32251. PCAP_BPF_H_FILE!$PCAP_BPF_H_FILE$ac_delim
  32252. pcncfg!$pcncfg$ac_delim
  32253. LNAVLIB!$LNAVLIB$ac_delim
  32254. LNAV_CFLAGS!$LNAV_CFLAGS$ac_delim
  32255. td!$td$ac_delim
  32256. ENABLE_TCPDUMP_TRUE!$ENABLE_TCPDUMP_TRUE$ac_delim
  32257. ENABLE_TCPDUMP_FALSE!$ENABLE_TCPDUMP_FALSE$ac_delim
  32258. nic1!$nic1$ac_delim
  32259. nic2!$nic2$ac_delim
  32260. LIBOPTS_DIR!$LIBOPTS_DIR$ac_delim
  32261. INSTALL_LIBOPTS_TRUE!$INSTALL_LIBOPTS_TRUE$ac_delim
  32262. INSTALL_LIBOPTS_FALSE!$INSTALL_LIBOPTS_FALSE$ac_delim
  32263. NEED_LIBOPTS_TRUE!$NEED_LIBOPTS_TRUE$ac_delim
  32264. NEED_LIBOPTS_FALSE!$NEED_LIBOPTS_FALSE$ac_delim
  32265. LIBOPTS_LDADD!$LIBOPTS_LDADD$ac_delim
  32266. LIBOPTS_CFLAGS!$LIBOPTS_CFLAGS$ac_delim
  32267. LTLIBOBJS!$LTLIBOBJS$ac_delim
  32268. _ACEOF
  32269. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
  32270. break
  32271. elif $ac_last_try; then
  32272. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  32273. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  32274. { (exit 1); exit 1; }; }
  32275. else
  32276. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  32277. fi
  32278. done
  32279. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  32280. if test -n "$ac_eof"; then
  32281. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  32282. ac_eof=`expr $ac_eof + 1`
  32283. fi
  32284. cat >>$CONFIG_STATUS <<_ACEOF
  32285. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  32286. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  32287. _ACEOF
  32288. sed '
  32289. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  32290. s/^/s,@/; s/!/@,|#_!!_#|/
  32291. :n
  32292. t n
  32293. s/'"$ac_delim"'$/,g/; t
  32294. s/$/\\/; p
  32295. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  32296. ' >>$CONFIG_STATUS <conf$$subs.sed
  32297. rm -f conf$$subs.sed
  32298. cat >>$CONFIG_STATUS <<_ACEOF
  32299. :end
  32300. s/|#_!!_#|//g
  32301. CEOF$ac_eof
  32302. _ACEOF
  32303. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  32304. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  32305. # trailing colons and then remove the whole line if VPATH becomes empty
  32306. # (actually we leave an empty line to preserve line numbers).
  32307. if test "x$srcdir" = x.; then
  32308. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  32309. s/:*\$(srcdir):*/:/
  32310. s/:*\${srcdir}:*/:/
  32311. s/:*@srcdir@:*/:/
  32312. s/^\([^=]*=[ ]*\):*/\1/
  32313. s/:*$//
  32314. s/^[^=]*=[ ]*$//
  32315. }'
  32316. fi
  32317. cat >>$CONFIG_STATUS <<\_ACEOF
  32318. fi # test -n "$CONFIG_FILES"
  32319. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  32320. do
  32321. case $ac_tag in
  32322. :[FHLC]) ac_mode=$ac_tag; continue;;
  32323. esac
  32324. case $ac_mode$ac_tag in
  32325. :[FHL]*:*);;
  32326. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  32327. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  32328. { (exit 1); exit 1; }; };;
  32329. :[FH]-) ac_tag=-:-;;
  32330. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  32331. esac
  32332. ac_save_IFS=$IFS
  32333. IFS=:
  32334. set x $ac_tag
  32335. IFS=$ac_save_IFS
  32336. shift
  32337. ac_file=$1
  32338. shift
  32339. case $ac_mode in
  32340. :L) ac_source=$1;;
  32341. :[FH])
  32342. ac_file_inputs=
  32343. for ac_f
  32344. do
  32345. case $ac_f in
  32346. -) ac_f="$tmp/stdin";;
  32347. *) # Look for the file first in the build tree, then in the source tree
  32348. # (if the path is not absolute). The absolute path cannot be DOS-style,
  32349. # because $ac_f cannot contain `:'.
  32350. test -f "$ac_f" ||
  32351. case $ac_f in
  32352. [\\/$]*) false;;
  32353. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  32354. esac ||
  32355. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  32356. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  32357. { (exit 1); exit 1; }; };;
  32358. esac
  32359. ac_file_inputs="$ac_file_inputs $ac_f"
  32360. done
  32361. # Let's still pretend it is `configure' which instantiates (i.e., don't
  32362. # use $as_me), people would be surprised to read:
  32363. # /* config.h. Generated by config.status. */
  32364. configure_input="Generated from "`IFS=:
  32365. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  32366. if test x"$ac_file" != x-; then
  32367. configure_input="$ac_file. $configure_input"
  32368. { echo "$as_me:$LINENO: creating $ac_file" >&5
  32369. echo "$as_me: creating $ac_file" >&6;}
  32370. fi
  32371. case $ac_tag in
  32372. *:-:* | *:-) cat >"$tmp/stdin";;
  32373. esac
  32374. ;;
  32375. esac
  32376. ac_dir=`$as_dirname -- "$ac_file" ||
  32377. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32378. X"$ac_file" : 'X\(//\)[^/]' \| \
  32379. X"$ac_file" : 'X\(//\)$' \| \
  32380. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  32381. echo X"$ac_file" |
  32382. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32383. s//\1/
  32384. q
  32385. }
  32386. /^X\(\/\/\)[^/].*/{
  32387. s//\1/
  32388. q
  32389. }
  32390. /^X\(\/\/\)$/{
  32391. s//\1/
  32392. q
  32393. }
  32394. /^X\(\/\).*/{
  32395. s//\1/
  32396. q
  32397. }
  32398. s/.*/./; q'`
  32399. { as_dir="$ac_dir"
  32400. case $as_dir in #(
  32401. -*) as_dir=./$as_dir;;
  32402. esac
  32403. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32404. as_dirs=
  32405. while :; do
  32406. case $as_dir in #(
  32407. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32408. *) as_qdir=$as_dir;;
  32409. esac
  32410. as_dirs="'$as_qdir' $as_dirs"
  32411. as_dir=`$as_dirname -- "$as_dir" ||
  32412. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32413. X"$as_dir" : 'X\(//\)[^/]' \| \
  32414. X"$as_dir" : 'X\(//\)$' \| \
  32415. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32416. echo X"$as_dir" |
  32417. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32418. s//\1/
  32419. q
  32420. }
  32421. /^X\(\/\/\)[^/].*/{
  32422. s//\1/
  32423. q
  32424. }
  32425. /^X\(\/\/\)$/{
  32426. s//\1/
  32427. q
  32428. }
  32429. /^X\(\/\).*/{
  32430. s//\1/
  32431. q
  32432. }
  32433. s/.*/./; q'`
  32434. test -d "$as_dir" && break
  32435. done
  32436. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32437. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32438. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32439. { (exit 1); exit 1; }; }; }
  32440. ac_builddir=.
  32441. case "$ac_dir" in
  32442. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32443. *)
  32444. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  32445. # A ".." for each directory in $ac_dir_suffix.
  32446. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  32447. case $ac_top_builddir_sub in
  32448. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  32449. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  32450. esac ;;
  32451. esac
  32452. ac_abs_top_builddir=$ac_pwd
  32453. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  32454. # for backward compatibility:
  32455. ac_top_builddir=$ac_top_build_prefix
  32456. case $srcdir in
  32457. .) # We are building in place.
  32458. ac_srcdir=.
  32459. ac_top_srcdir=$ac_top_builddir_sub
  32460. ac_abs_top_srcdir=$ac_pwd ;;
  32461. [\\/]* | ?:[\\/]* ) # Absolute name.
  32462. ac_srcdir=$srcdir$ac_dir_suffix;
  32463. ac_top_srcdir=$srcdir
  32464. ac_abs_top_srcdir=$srcdir ;;
  32465. *) # Relative name.
  32466. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  32467. ac_top_srcdir=$ac_top_build_prefix$srcdir
  32468. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  32469. esac
  32470. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  32471. case $ac_mode in
  32472. :F)
  32473. #
  32474. # CONFIG_FILE
  32475. #
  32476. case $INSTALL in
  32477. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  32478. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  32479. esac
  32480. ac_MKDIR_P=$MKDIR_P
  32481. case $MKDIR_P in
  32482. [\\/$]* | ?:[\\/]* ) ;;
  32483. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  32484. esac
  32485. _ACEOF
  32486. cat >>$CONFIG_STATUS <<\_ACEOF
  32487. # If the template does not know about datarootdir, expand it.
  32488. # FIXME: This hack should be removed a few years after 2.60.
  32489. ac_datarootdir_hack=; ac_datarootdir_seen=
  32490. case `sed -n '/datarootdir/ {
  32491. p
  32492. q
  32493. }
  32494. /@datadir@/p
  32495. /@docdir@/p
  32496. /@infodir@/p
  32497. /@localedir@/p
  32498. /@mandir@/p
  32499. ' $ac_file_inputs` in
  32500. *datarootdir*) ac_datarootdir_seen=yes;;
  32501. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  32502. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  32503. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  32504. _ACEOF
  32505. cat >>$CONFIG_STATUS <<_ACEOF
  32506. ac_datarootdir_hack='
  32507. s&@datadir@&$datadir&g
  32508. s&@docdir@&$docdir&g
  32509. s&@infodir@&$infodir&g
  32510. s&@localedir@&$localedir&g
  32511. s&@mandir@&$mandir&g
  32512. s&\\\${datarootdir}&$datarootdir&g' ;;
  32513. esac
  32514. _ACEOF
  32515. # Neutralize VPATH when `$srcdir' = `.'.
  32516. # Shell code in configure.ac might set extrasub.
  32517. # FIXME: do we really want to maintain this feature?
  32518. cat >>$CONFIG_STATUS <<_ACEOF
  32519. sed "$ac_vpsub
  32520. $extrasub
  32521. _ACEOF
  32522. cat >>$CONFIG_STATUS <<\_ACEOF
  32523. :t
  32524. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  32525. s&@configure_input@&$configure_input&;t t
  32526. s&@top_builddir@&$ac_top_builddir_sub&;t t
  32527. s&@srcdir@&$ac_srcdir&;t t
  32528. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  32529. s&@top_srcdir@&$ac_top_srcdir&;t t
  32530. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  32531. s&@builddir@&$ac_builddir&;t t
  32532. s&@abs_builddir@&$ac_abs_builddir&;t t
  32533. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  32534. s&@INSTALL@&$ac_INSTALL&;t t
  32535. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  32536. $ac_datarootdir_hack
  32537. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  32538. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  32539. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  32540. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  32541. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32542. which seems to be undefined. Please make sure it is defined." >&5
  32543. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  32544. which seems to be undefined. Please make sure it is defined." >&2;}
  32545. rm -f "$tmp/stdin"
  32546. case $ac_file in
  32547. -) cat "$tmp/out"; rm -f "$tmp/out";;
  32548. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  32549. esac
  32550. ;;
  32551. :H)
  32552. #
  32553. # CONFIG_HEADER
  32554. #
  32555. _ACEOF
  32556. # Transform confdefs.h into a sed script `conftest.defines', that
  32557. # substitutes the proper values into config.h.in to produce config.h.
  32558. rm -f conftest.defines conftest.tail
  32559. # First, append a space to every undef/define line, to ease matching.
  32560. echo 's/$/ /' >conftest.defines
  32561. # Then, protect against being on the right side of a sed subst, or in
  32562. # an unquoted here document, in config.status. If some macros were
  32563. # called several times there might be several #defines for the same
  32564. # symbol, which is useless. But do not sort them, since the last
  32565. # AC_DEFINE must be honored.
  32566. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  32567. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  32568. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  32569. # PARAMS is the parameter list in the macro definition--in most cases, it's
  32570. # just an empty string.
  32571. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  32572. ac_dB='\\)[ (].*,\\1define\\2'
  32573. ac_dC=' '
  32574. ac_dD=' ,'
  32575. uniq confdefs.h |
  32576. sed -n '
  32577. t rset
  32578. :rset
  32579. s/^[ ]*#[ ]*define[ ][ ]*//
  32580. t ok
  32581. d
  32582. :ok
  32583. s/[\\&,]/\\&/g
  32584. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  32585. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  32586. ' >>conftest.defines
  32587. # Remove the space that was appended to ease matching.
  32588. # Then replace #undef with comments. This is necessary, for
  32589. # example, in the case of _POSIX_SOURCE, which is predefined and required
  32590. # on some systems where configure will not decide to define it.
  32591. # (The regexp can be short, since the line contains either #define or #undef.)
  32592. echo 's/ $//
  32593. s,^[ #]*u.*,/* & */,' >>conftest.defines
  32594. # Break up conftest.defines:
  32595. ac_max_sed_lines=50
  32596. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  32597. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  32598. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  32599. # et cetera.
  32600. ac_in='$ac_file_inputs'
  32601. ac_out='"$tmp/out1"'
  32602. ac_nxt='"$tmp/out2"'
  32603. while :
  32604. do
  32605. # Write a here document:
  32606. cat >>$CONFIG_STATUS <<_ACEOF
  32607. # First, check the format of the line:
  32608. cat >"\$tmp/defines.sed" <<\\CEOF
  32609. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  32610. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  32611. b
  32612. :def
  32613. _ACEOF
  32614. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  32615. echo 'CEOF
  32616. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  32617. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  32618. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  32619. grep . conftest.tail >/dev/null || break
  32620. rm -f conftest.defines
  32621. mv conftest.tail conftest.defines
  32622. done
  32623. rm -f conftest.defines conftest.tail
  32624. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  32625. cat >>$CONFIG_STATUS <<\_ACEOF
  32626. if test x"$ac_file" != x-; then
  32627. echo "/* $configure_input */" >"$tmp/config.h"
  32628. cat "$ac_result" >>"$tmp/config.h"
  32629. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  32630. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  32631. echo "$as_me: $ac_file is unchanged" >&6;}
  32632. else
  32633. rm -f $ac_file
  32634. mv "$tmp/config.h" $ac_file
  32635. fi
  32636. else
  32637. echo "/* $configure_input */"
  32638. cat "$ac_result"
  32639. fi
  32640. rm -f "$tmp/out12"
  32641. # Compute $ac_file's index in $config_headers.
  32642. _am_stamp_count=1
  32643. for _am_header in $config_headers :; do
  32644. case $_am_header in
  32645. $ac_file | $ac_file:* )
  32646. break ;;
  32647. * )
  32648. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  32649. esac
  32650. done
  32651. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  32652. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32653. X$ac_file : 'X\(//\)[^/]' \| \
  32654. X$ac_file : 'X\(//\)$' \| \
  32655. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  32656. echo X$ac_file |
  32657. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32658. s//\1/
  32659. q
  32660. }
  32661. /^X\(\/\/\)[^/].*/{
  32662. s//\1/
  32663. q
  32664. }
  32665. /^X\(\/\/\)$/{
  32666. s//\1/
  32667. q
  32668. }
  32669. /^X\(\/\).*/{
  32670. s//\1/
  32671. q
  32672. }
  32673. s/.*/./; q'`/stamp-h$_am_stamp_count
  32674. ;;
  32675. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  32676. echo "$as_me: executing $ac_file commands" >&6;}
  32677. ;;
  32678. esac
  32679. case $ac_file$ac_mode in
  32680. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  32681. # Strip MF so we end up with the name of the file.
  32682. mf=`echo "$mf" | sed -e 's/:.*$//'`
  32683. # Check whether this is an Automake generated Makefile or not.
  32684. # We used to match only the files named `Makefile.in', but
  32685. # some people rename them; so instead we look at the file content.
  32686. # Grep'ing the first line is not enough: some people post-process
  32687. # each Makefile.in and add a new line on top of each file to say so.
  32688. # Grep'ing the whole file is not good either: AIX grep has a line
  32689. # limit of 2048, but all sed's we know have understand at least 4000.
  32690. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  32691. dirpart=`$as_dirname -- "$mf" ||
  32692. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32693. X"$mf" : 'X\(//\)[^/]' \| \
  32694. X"$mf" : 'X\(//\)$' \| \
  32695. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  32696. echo X"$mf" |
  32697. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32698. s//\1/
  32699. q
  32700. }
  32701. /^X\(\/\/\)[^/].*/{
  32702. s//\1/
  32703. q
  32704. }
  32705. /^X\(\/\/\)$/{
  32706. s//\1/
  32707. q
  32708. }
  32709. /^X\(\/\).*/{
  32710. s//\1/
  32711. q
  32712. }
  32713. s/.*/./; q'`
  32714. else
  32715. continue
  32716. fi
  32717. # Extract the definition of DEPDIR, am__include, and am__quote
  32718. # from the Makefile without running `make'.
  32719. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  32720. test -z "$DEPDIR" && continue
  32721. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  32722. test -z "am__include" && continue
  32723. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  32724. # When using ansi2knr, U may be empty or an underscore; expand it
  32725. U=`sed -n 's/^U = //p' < "$mf"`
  32726. # Find all dependency output files, they are included files with
  32727. # $(DEPDIR) in their names. We invoke sed twice because it is the
  32728. # simplest approach to changing $(DEPDIR) to its actual value in the
  32729. # expansion.
  32730. for file in `sed -n "
  32731. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  32732. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  32733. # Make sure the directory exists.
  32734. test -f "$dirpart/$file" && continue
  32735. fdir=`$as_dirname -- "$file" ||
  32736. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32737. X"$file" : 'X\(//\)[^/]' \| \
  32738. X"$file" : 'X\(//\)$' \| \
  32739. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  32740. echo X"$file" |
  32741. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32742. s//\1/
  32743. q
  32744. }
  32745. /^X\(\/\/\)[^/].*/{
  32746. s//\1/
  32747. q
  32748. }
  32749. /^X\(\/\/\)$/{
  32750. s//\1/
  32751. q
  32752. }
  32753. /^X\(\/\).*/{
  32754. s//\1/
  32755. q
  32756. }
  32757. s/.*/./; q'`
  32758. { as_dir=$dirpart/$fdir
  32759. case $as_dir in #(
  32760. -*) as_dir=./$as_dir;;
  32761. esac
  32762. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  32763. as_dirs=
  32764. while :; do
  32765. case $as_dir in #(
  32766. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  32767. *) as_qdir=$as_dir;;
  32768. esac
  32769. as_dirs="'$as_qdir' $as_dirs"
  32770. as_dir=`$as_dirname -- "$as_dir" ||
  32771. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32772. X"$as_dir" : 'X\(//\)[^/]' \| \
  32773. X"$as_dir" : 'X\(//\)$' \| \
  32774. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32775. echo X"$as_dir" |
  32776. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32777. s//\1/
  32778. q
  32779. }
  32780. /^X\(\/\/\)[^/].*/{
  32781. s//\1/
  32782. q
  32783. }
  32784. /^X\(\/\/\)$/{
  32785. s//\1/
  32786. q
  32787. }
  32788. /^X\(\/\).*/{
  32789. s//\1/
  32790. q
  32791. }
  32792. s/.*/./; q'`
  32793. test -d "$as_dir" && break
  32794. done
  32795. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32796. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  32797. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  32798. { (exit 1); exit 1; }; }; }
  32799. # echo "creating $dirpart/$file"
  32800. echo '# dummy' > "$dirpart/$file"
  32801. done
  32802. done
  32803. ;;
  32804. esac
  32805. done # for ac_tag
  32806. { (exit 0); exit 0; }
  32807. _ACEOF
  32808. chmod +x $CONFIG_STATUS
  32809. ac_clean_files=$ac_clean_files_save
  32810. # configure is writing to config.log, and then calls config.status.
  32811. # config.status does its own redirection, appending to config.log.
  32812. # Unfortunately, on DOS this fails, as config.log is still kept open
  32813. # by configure, so config.status won't be able to write to it; its
  32814. # output is simply discarded. So we exec the FD to /dev/null,
  32815. # effectively closing config.log, so it can be properly (re)opened and
  32816. # appended to by config.status. When coming back to configure, we
  32817. # need to make the FD available again.
  32818. if test "$no_create" != yes; then
  32819. ac_cs_success=:
  32820. ac_config_status_args=
  32821. test "$silent" = yes &&
  32822. ac_config_status_args="$ac_config_status_args --quiet"
  32823. exec 5>/dev/null
  32824. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  32825. exec 5>>config.log
  32826. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  32827. # would make configure fail if this is the last instruction.
  32828. $ac_cs_success || { (exit 1); exit 1; }
  32829. fi
  32830. case $host in
  32831. *-apple-darwin*)
  32832. { echo "$as_me:$LINENO: WARNING: OS X <= 10.4.9 has a serious problem. Please see: http://tcpreplay.synfin.net/trac/ticket/142" >&5
  32833. echo "$as_me: WARNING: OS X <= 10.4.9 has a serious problem. Please see: http://tcpreplay.synfin.net/trac/ticket/142" >&2;}
  32834. ;;
  32835. *-*-cygwin)
  32836. { echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!" >&5
  32837. echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental. Please report any bugs!" >&2;}
  32838. ;;
  32839. esac