configure 982 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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. # Pre-4.2 versions of Zsh do 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. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41. as_echo='printf %s\n'
  42. as_echo_n='printf %s'
  43. else
  44. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  45. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  46. as_echo_n='/usr/ucb/echo -n'
  47. else
  48. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  49. as_echo_n_body='eval
  50. arg=$1;
  51. case $arg in
  52. *"$as_nl"*)
  53. expr "X$arg" : "X\\(.*\\)$as_nl";
  54. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  55. esac;
  56. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  57. '
  58. export as_echo_n_body
  59. as_echo_n='sh -c $as_echo_n_body as_echo'
  60. fi
  61. export as_echo_body
  62. as_echo='sh -c $as_echo_body as_echo'
  63. fi
  64. # The user is always right.
  65. if test "${PATH_SEPARATOR+set}" != set; then
  66. PATH_SEPARATOR=:
  67. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  68. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  69. PATH_SEPARATOR=';'
  70. }
  71. fi
  72. # Support unset when possible.
  73. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  74. as_unset=unset
  75. else
  76. as_unset=false
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. { (exit 1); exit 1; }
  105. fi
  106. # Work around bugs in pre-3.0 UWIN ksh.
  107. for as_var in ENV MAIL MAILPATH
  108. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  109. done
  110. PS1='$ '
  111. PS2='> '
  112. PS4='+ '
  113. # NLS nuisances.
  114. LC_ALL=C
  115. export LC_ALL
  116. LANGUAGE=C
  117. export LANGUAGE
  118. # Required to use basename.
  119. if expr a : '\(a\)' >/dev/null 2>&1 &&
  120. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  121. as_expr=expr
  122. else
  123. as_expr=false
  124. fi
  125. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  126. as_basename=basename
  127. else
  128. as_basename=false
  129. fi
  130. # Name of the executable.
  131. as_me=`$as_basename -- "$0" ||
  132. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  133. X"$0" : 'X\(//\)$' \| \
  134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  135. $as_echo X/"$0" |
  136. sed '/^.*\/\([^/][^/]*\)\/*$/{
  137. s//\1/
  138. q
  139. }
  140. /^X\/\(\/\/\)$/{
  141. s//\1/
  142. q
  143. }
  144. /^X\/\(\/\).*/{
  145. s//\1/
  146. q
  147. }
  148. s/.*/./; q'`
  149. # CDPATH.
  150. $as_unset CDPATH
  151. if test "x$CONFIG_SHELL" = x; then
  152. if (eval ":") 2>/dev/null; then
  153. as_have_required=yes
  154. else
  155. as_have_required=no
  156. fi
  157. if test $as_have_required = yes && (eval ":
  158. (as_func_return () {
  159. (exit \$1)
  160. }
  161. as_func_success () {
  162. as_func_return 0
  163. }
  164. as_func_failure () {
  165. as_func_return 1
  166. }
  167. as_func_ret_success () {
  168. return 0
  169. }
  170. as_func_ret_failure () {
  171. return 1
  172. }
  173. exitcode=0
  174. if as_func_success; then
  175. :
  176. else
  177. exitcode=1
  178. echo as_func_success failed.
  179. fi
  180. if as_func_failure; then
  181. exitcode=1
  182. echo as_func_failure succeeded.
  183. fi
  184. if as_func_ret_success; then
  185. :
  186. else
  187. exitcode=1
  188. echo as_func_ret_success failed.
  189. fi
  190. if as_func_ret_failure; then
  191. exitcode=1
  192. echo as_func_ret_failure succeeded.
  193. fi
  194. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  195. :
  196. else
  197. exitcode=1
  198. echo positional parameters were not saved.
  199. fi
  200. test \$exitcode = 0) || { (exit 1); exit 1; }
  201. (
  202. as_lineno_1=\$LINENO
  203. as_lineno_2=\$LINENO
  204. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  205. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  206. ") 2> /dev/null; then
  207. :
  208. else
  209. as_candidate_shells=
  210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  211. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212. do
  213. IFS=$as_save_IFS
  214. test -z "$as_dir" && as_dir=.
  215. case $as_dir in
  216. /*)
  217. for as_base in sh bash ksh sh5; do
  218. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  219. done;;
  220. esac
  221. done
  222. IFS=$as_save_IFS
  223. for as_shell in $as_candidate_shells $SHELL; do
  224. # Try only shells that exist, to save several forks.
  225. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  226. { ("$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. # Pre-4.2 versions of Zsh do 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. _ASEOF
  241. }; then
  242. CONFIG_SHELL=$as_shell
  243. as_have_required=yes
  244. if { "$as_shell" 2> /dev/null <<\_ASEOF
  245. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  246. emulate sh
  247. NULLCMD=:
  248. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  249. # is contrary to our usage. Disable this feature.
  250. alias -g '${1+"$@"}'='"$@"'
  251. setopt NO_GLOB_SUBST
  252. else
  253. case `(set -o) 2>/dev/null` in
  254. *posix*) set -o posix ;;
  255. esac
  256. fi
  257. :
  258. (as_func_return () {
  259. (exit $1)
  260. }
  261. as_func_success () {
  262. as_func_return 0
  263. }
  264. as_func_failure () {
  265. as_func_return 1
  266. }
  267. as_func_ret_success () {
  268. return 0
  269. }
  270. as_func_ret_failure () {
  271. return 1
  272. }
  273. exitcode=0
  274. if as_func_success; then
  275. :
  276. else
  277. exitcode=1
  278. echo as_func_success failed.
  279. fi
  280. if as_func_failure; then
  281. exitcode=1
  282. echo as_func_failure succeeded.
  283. fi
  284. if as_func_ret_success; then
  285. :
  286. else
  287. exitcode=1
  288. echo as_func_ret_success failed.
  289. fi
  290. if as_func_ret_failure; then
  291. exitcode=1
  292. echo as_func_ret_failure succeeded.
  293. fi
  294. if ( set x; as_func_ret_success y && test x = "$1" ); then
  295. :
  296. else
  297. exitcode=1
  298. echo positional parameters were not saved.
  299. fi
  300. test $exitcode = 0) || { (exit 1); exit 1; }
  301. (
  302. as_lineno_1=$LINENO
  303. as_lineno_2=$LINENO
  304. test "x$as_lineno_1" != "x$as_lineno_2" &&
  305. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  306. _ASEOF
  307. }; then
  308. break
  309. fi
  310. fi
  311. done
  312. if test "x$CONFIG_SHELL" != x; then
  313. for as_var in BASH_ENV ENV
  314. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  315. done
  316. export CONFIG_SHELL
  317. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  318. fi
  319. if test $as_have_required = no; then
  320. echo This script requires a shell more modern than all the
  321. echo shells that I found on your system. Please install a
  322. echo modern shell, or manually run the script under such a
  323. echo shell if you do have one.
  324. { (exit 1); exit 1; }
  325. fi
  326. fi
  327. fi
  328. (eval "as_func_return () {
  329. (exit \$1)
  330. }
  331. as_func_success () {
  332. as_func_return 0
  333. }
  334. as_func_failure () {
  335. as_func_return 1
  336. }
  337. as_func_ret_success () {
  338. return 0
  339. }
  340. as_func_ret_failure () {
  341. return 1
  342. }
  343. exitcode=0
  344. if as_func_success; then
  345. :
  346. else
  347. exitcode=1
  348. echo as_func_success failed.
  349. fi
  350. if as_func_failure; then
  351. exitcode=1
  352. echo as_func_failure succeeded.
  353. fi
  354. if as_func_ret_success; then
  355. :
  356. else
  357. exitcode=1
  358. echo as_func_ret_success failed.
  359. fi
  360. if as_func_ret_failure; then
  361. exitcode=1
  362. echo as_func_ret_failure succeeded.
  363. fi
  364. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  365. :
  366. else
  367. exitcode=1
  368. echo positional parameters were not saved.
  369. fi
  370. test \$exitcode = 0") || {
  371. echo No shell found that supports shell functions.
  372. echo Please tell bug-autoconf@gnu.org about your system,
  373. echo including any error possibly output before this message.
  374. echo This can help us improve future autoconf versions.
  375. echo Configuration will now proceed without shell functions.
  376. }
  377. as_lineno_1=$LINENO
  378. as_lineno_2=$LINENO
  379. test "x$as_lineno_1" != "x$as_lineno_2" &&
  380. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  381. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  382. # uniformly replaced by the line number. The first 'sed' inserts a
  383. # line-number line after each line using $LINENO; the second 'sed'
  384. # does the real work. The second script uses 'N' to pair each
  385. # line-number line with the line containing $LINENO, and appends
  386. # trailing '-' during substitution so that $LINENO is not a special
  387. # case at line end.
  388. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  389. # scripts with optimization help from Paolo Bonzini. Blame Lee
  390. # E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  408. { (exit 1); exit 1; }; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  417. as_dirname=dirname
  418. else
  419. as_dirname=false
  420. fi
  421. ECHO_C= ECHO_N= ECHO_T=
  422. case `echo -n x` in
  423. -n*)
  424. case `echo 'x\c'` in
  425. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  426. *) ECHO_C='\c';;
  427. esac;;
  428. *)
  429. ECHO_N='-n';;
  430. esac
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433. as_expr=expr
  434. else
  435. as_expr=false
  436. fi
  437. rm -f conf$$ conf$$.exe conf$$.file
  438. if test -d conf$$.dir; then
  439. rm -f conf$$.dir/conf$$.file
  440. else
  441. rm -f conf$$.dir
  442. mkdir conf$$.dir 2>/dev/null
  443. fi
  444. if (echo >conf$$.file) 2>/dev/null; then
  445. if ln -s conf$$.file conf$$ 2>/dev/null; then
  446. as_ln_s='ln -s'
  447. # ... but there are two gotchas:
  448. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  449. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  450. # In both cases, we have to default to `cp -p'.
  451. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  452. as_ln_s='cp -p'
  453. elif ln conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s=ln
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. else
  459. as_ln_s='cp -p'
  460. fi
  461. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  462. rmdir conf$$.dir 2>/dev/null
  463. if mkdir -p . 2>/dev/null; then
  464. as_mkdir_p=:
  465. else
  466. test -d ./-p && rmdir ./-p
  467. as_mkdir_p=false
  468. fi
  469. if test -x / >/dev/null 2>&1; then
  470. as_test_x='test -x'
  471. else
  472. if ls -dL / >/dev/null 2>&1; then
  473. as_ls_L_option=L
  474. else
  475. as_ls_L_option=
  476. fi
  477. as_test_x='
  478. eval sh -c '\''
  479. if test -d "$1"; then
  480. test -d "$1/.";
  481. else
  482. case $1 in
  483. -*)set "./$1";;
  484. esac;
  485. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  486. ???[sx]*):;;*)false;;esac;fi
  487. '\'' sh
  488. '
  489. fi
  490. as_executable_p=$as_test_x
  491. # Sed expression to map a string onto a valid CPP name.
  492. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  493. # Sed expression to map a string onto a valid variable name.
  494. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  495. # Check that we are running under the correct shell.
  496. SHELL=${CONFIG_SHELL-/bin/sh}
  497. case X$lt_ECHO in
  498. X*--fallback-echo)
  499. # Remove one level of quotation (which was required for Make).
  500. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  501. ;;
  502. esac
  503. ECHO=${lt_ECHO-echo}
  504. if test "X$1" = X--no-reexec; then
  505. # Discard the --no-reexec flag, and continue.
  506. shift
  507. elif test "X$1" = X--fallback-echo; then
  508. # Avoid inline document here, it may be left over
  509. :
  510. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  511. # Yippee, $ECHO works!
  512. :
  513. else
  514. # Restart under the correct shell.
  515. exec $SHELL "$0" --no-reexec ${1+"$@"}
  516. fi
  517. if test "X$1" = X--fallback-echo; then
  518. # used as fallback echo
  519. shift
  520. cat <<_LT_EOF
  521. $*
  522. _LT_EOF
  523. exit 0
  524. fi
  525. # The HP-UX ksh and POSIX shell print the target directory to stdout
  526. # if CDPATH is set.
  527. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  528. if test -z "$lt_ECHO"; then
  529. if test "X${echo_test_string+set}" != Xset; then
  530. # find a string as large as possible, as long as the shell can cope with it
  531. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  532. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  533. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  534. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  535. then
  536. break
  537. fi
  538. done
  539. fi
  540. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  541. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  542. test "X$echo_testing_string" = "X$echo_test_string"; then
  543. :
  544. else
  545. # The Solaris, AIX, and Digital Unix default echo programs unquote
  546. # backslashes. This makes it impossible to quote backslashes using
  547. # echo "$something" | sed 's/\\/\\\\/g'
  548. #
  549. # So, first we look for a working echo in the user's PATH.
  550. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  551. for dir in $PATH /usr/ucb; do
  552. IFS="$lt_save_ifs"
  553. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  554. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. ECHO="$dir/echo"
  558. break
  559. fi
  560. done
  561. IFS="$lt_save_ifs"
  562. if test "X$ECHO" = Xecho; then
  563. # We didn't find a better echo, so look for alternatives.
  564. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  565. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  566. test "X$echo_testing_string" = "X$echo_test_string"; then
  567. # This shell has a builtin print -r that does the trick.
  568. ECHO='print -r'
  569. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  570. test "X$CONFIG_SHELL" != X/bin/ksh; then
  571. # If we have ksh, try running configure again with it.
  572. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  573. export ORIGINAL_CONFIG_SHELL
  574. CONFIG_SHELL=/bin/ksh
  575. export CONFIG_SHELL
  576. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  577. else
  578. # Try using printf.
  579. ECHO='printf %s\n'
  580. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  581. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  582. test "X$echo_testing_string" = "X$echo_test_string"; then
  583. # Cool, printf works
  584. :
  585. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  590. export CONFIG_SHELL
  591. SHELL="$CONFIG_SHELL"
  592. export SHELL
  593. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  594. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  595. test "X$echo_testing_string" = 'X\t' &&
  596. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  597. test "X$echo_testing_string" = "X$echo_test_string"; then
  598. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  599. else
  600. # maybe with a smaller string...
  601. prev=:
  602. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  603. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  604. then
  605. break
  606. fi
  607. prev="$cmd"
  608. done
  609. if test "$prev" != 'sed 50q "$0"'; then
  610. echo_test_string=`eval $prev`
  611. export echo_test_string
  612. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  613. else
  614. # Oops. We lost completely, so just stick with echo.
  615. ECHO=echo
  616. fi
  617. fi
  618. fi
  619. fi
  620. fi
  621. fi
  622. # Copy echo and quote the copy suitably for passing to libtool from
  623. # the Makefile, instead of quoting the original, which is used later.
  624. lt_ECHO=$ECHO
  625. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  626. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  627. fi
  628. exec 7<&0 </dev/null 6>&1
  629. # Name of the host.
  630. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  631. # so uname gets run too.
  632. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  633. #
  634. # Initializations.
  635. #
  636. ac_default_prefix=/usr/local
  637. ac_clean_files=
  638. ac_config_libobj_dir=.
  639. LIBOBJS=
  640. cross_compiling=no
  641. subdirs=
  642. MFLAGS=
  643. MAKEFLAGS=
  644. SHELL=${CONFIG_SHELL-/bin/sh}
  645. # Identity of this package.
  646. PACKAGE_NAME=
  647. PACKAGE_TARNAME=
  648. PACKAGE_VERSION=
  649. PACKAGE_STRING=
  650. PACKAGE_BUGREPORT=
  651. ac_unique_file="tcpreplay"
  652. ac_unique_file="src/tcpreplay.c"
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_subst_vars='LTLIBOBJS
  689. LIBOPTS_CFLAGS
  690. LIBOPTS_LDADD
  691. NEED_LIBOPTS_FALSE
  692. NEED_LIBOPTS_TRUE
  693. INSTALL_LIBOPTS_FALSE
  694. INSTALL_LIBOPTS_TRUE
  695. LIBOPTS_DIR
  696. nic2
  697. nic1
  698. ENABLE_OSX_FRAMEWORKS_FALSE
  699. ENABLE_OSX_FRAMEWORKS_TRUE
  700. ENABLE_TCPDUMP_FALSE
  701. ENABLE_TCPDUMP_TRUE
  702. tcpdump_path
  703. LNAV_CFLAGS
  704. LNAVLIB
  705. pcncfg
  706. PCAP_BPF_H_FILE
  707. COMPILE_FRAGROUTE_FALSE
  708. COMPILE_FRAGROUTE_TRUE
  709. LDNETLIB
  710. LDNETINC
  711. COMPILE_TCPBRIDGE_FALSE
  712. COMPILE_TCPBRIDGE_TRUE
  713. LPCAPLIB
  714. LPCAPINC
  715. DMALLOC_LIB
  716. debug_flag
  717. WORDS_BIGENDIAN_FALSE
  718. WORDS_BIGENDIAN_TRUE
  719. SYSTEM_STRLCPY_FALSE
  720. SYSTEM_STRLCPY_TRUE
  721. LIBOBJS
  722. GROFF
  723. AUTOGEN
  724. CUT
  725. ECHO
  726. PRINTF
  727. CXXCPP
  728. am__fastdepCXX_FALSE
  729. am__fastdepCXX_TRUE
  730. CXXDEPMODE
  731. ac_ct_CXX
  732. CXXFLAGS
  733. CXX
  734. CPP
  735. OTOOL64
  736. OTOOL
  737. LIPO
  738. NMEDIT
  739. DSYMUTIL
  740. lt_ECHO
  741. RANLIB
  742. AR
  743. OBJDUMP
  744. LN_S
  745. NM
  746. ac_ct_DUMPBIN
  747. DUMPBIN
  748. LD
  749. FGREP
  750. EGREP
  751. GREP
  752. SED
  753. am__fastdepCC_FALSE
  754. am__fastdepCC_TRUE
  755. CCDEPMODE
  756. AMDEPBACKSLASH
  757. AMDEP_FALSE
  758. AMDEP_TRUE
  759. am__quote
  760. am__include
  761. DEPDIR
  762. OBJEXT
  763. EXEEXT
  764. ac_ct_CC
  765. CPPFLAGS
  766. LDFLAGS
  767. CFLAGS
  768. CC
  769. LIBTOOL
  770. am__untar
  771. am__tar
  772. AMTAR
  773. am__leading_dot
  774. SET_MAKE
  775. AWK
  776. mkdir_p
  777. MKDIR_P
  778. INSTALL_STRIP_PROGRAM
  779. STRIP
  780. install_sh
  781. MAKEINFO
  782. AUTOHEADER
  783. AUTOMAKE
  784. AUTOCONF
  785. ACLOCAL
  786. VERSION
  787. PACKAGE
  788. CYGPATH_W
  789. am__isrc
  790. INSTALL_DATA
  791. INSTALL_SCRIPT
  792. INSTALL_PROGRAM
  793. target_os
  794. target_vendor
  795. target_cpu
  796. target
  797. host_os
  798. host_vendor
  799. host_cpu
  800. host
  801. build_os
  802. build_vendor
  803. build_cpu
  804. build
  805. TCPREPLAY_RELEASE
  806. TCPREPLAY_VERSION
  807. MAINT
  808. MAINTAINER_MODE_FALSE
  809. MAINTAINER_MODE_TRUE
  810. target_alias
  811. host_alias
  812. build_alias
  813. LIBS
  814. ECHO_T
  815. ECHO_N
  816. ECHO_C
  817. DEFS
  818. mandir
  819. localedir
  820. libdir
  821. psdir
  822. pdfdir
  823. dvidir
  824. htmldir
  825. infodir
  826. docdir
  827. oldincludedir
  828. includedir
  829. localstatedir
  830. sharedstatedir
  831. sysconfdir
  832. datadir
  833. datarootdir
  834. libexecdir
  835. sbindir
  836. bindir
  837. program_transform_name
  838. prefix
  839. exec_prefix
  840. PACKAGE_BUGREPORT
  841. PACKAGE_STRING
  842. PACKAGE_VERSION
  843. PACKAGE_TARNAME
  844. PACKAGE_NAME
  845. PATH_SEPARATOR
  846. SHELL'
  847. ac_subst_files=''
  848. ac_user_opts='
  849. enable_option_checking
  850. enable_maintainer_mode
  851. with_dmalloc
  852. enable_shared
  853. enable_static
  854. with_pic
  855. enable_fast_install
  856. enable_dependency_tracking
  857. with_gnu_ld
  858. enable_libtool_lock
  859. enable_largefile
  860. enable_debug
  861. enable_dmalloc
  862. enable_pedantic
  863. enable_efence
  864. enable_gprof
  865. enable_64bits
  866. enable_force_bpf
  867. enable_force_pf
  868. enable_force_libdnet
  869. enable_force_inject
  870. enable_force_sendpacket
  871. enable_dynamic_link
  872. with_libpcap
  873. with_libdnet
  874. with_pcapnav_config
  875. with_tcpdump
  876. with_testnic
  877. with_testnic2
  878. enable_local_libopts
  879. enable_libopts_install
  880. with_autoopts_config
  881. with_regex_header
  882. with_libregex
  883. with_libregex_cflags
  884. with_libregex_libs
  885. enable_optional_args
  886. '
  887. ac_precious_vars='build_alias
  888. host_alias
  889. target_alias
  890. CC
  891. CFLAGS
  892. LDFLAGS
  893. LIBS
  894. CPPFLAGS
  895. CPP
  896. CXX
  897. CXXFLAGS
  898. CCC
  899. CXXCPP'
  900. # Initialize some variables set by options.
  901. ac_init_help=
  902. ac_init_version=false
  903. ac_unrecognized_opts=
  904. ac_unrecognized_sep=
  905. # The variables have the same names as the options, with
  906. # dashes changed to underlines.
  907. cache_file=/dev/null
  908. exec_prefix=NONE
  909. no_create=
  910. no_recursion=
  911. prefix=NONE
  912. program_prefix=NONE
  913. program_suffix=NONE
  914. program_transform_name=s,x,x,
  915. silent=
  916. site=
  917. srcdir=
  918. verbose=
  919. x_includes=NONE
  920. x_libraries=NONE
  921. # Installation directory options.
  922. # These are left unexpanded so users can "make install exec_prefix=/foo"
  923. # and all the variables that are supposed to be based on exec_prefix
  924. # by default will actually change.
  925. # Use braces instead of parens because sh, perl, etc. also accept them.
  926. # (The list follows the same order as the GNU Coding Standards.)
  927. bindir='${exec_prefix}/bin'
  928. sbindir='${exec_prefix}/sbin'
  929. libexecdir='${exec_prefix}/libexec'
  930. datarootdir='${prefix}/share'
  931. datadir='${datarootdir}'
  932. sysconfdir='${prefix}/etc'
  933. sharedstatedir='${prefix}/com'
  934. localstatedir='${prefix}/var'
  935. includedir='${prefix}/include'
  936. oldincludedir='/usr/include'
  937. docdir='${datarootdir}/doc/${PACKAGE}'
  938. infodir='${datarootdir}/info'
  939. htmldir='${docdir}'
  940. dvidir='${docdir}'
  941. pdfdir='${docdir}'
  942. psdir='${docdir}'
  943. libdir='${exec_prefix}/lib'
  944. localedir='${datarootdir}/locale'
  945. mandir='${datarootdir}/man'
  946. ac_prev=
  947. ac_dashdash=
  948. for ac_option
  949. do
  950. # If the previous option needs an argument, assign it.
  951. if test -n "$ac_prev"; then
  952. eval $ac_prev=\$ac_option
  953. ac_prev=
  954. continue
  955. fi
  956. case $ac_option in
  957. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  958. *) ac_optarg=yes ;;
  959. esac
  960. # Accept the important Cygnus configure options, so we can diagnose typos.
  961. case $ac_dashdash$ac_option in
  962. --)
  963. ac_dashdash=yes ;;
  964. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  965. ac_prev=bindir ;;
  966. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  967. bindir=$ac_optarg ;;
  968. -build | --build | --buil | --bui | --bu)
  969. ac_prev=build_alias ;;
  970. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  971. build_alias=$ac_optarg ;;
  972. -cache-file | --cache-file | --cache-fil | --cache-fi \
  973. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  974. ac_prev=cache_file ;;
  975. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  976. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  977. cache_file=$ac_optarg ;;
  978. --config-cache | -C)
  979. cache_file=config.cache ;;
  980. -datadir | --datadir | --datadi | --datad)
  981. ac_prev=datadir ;;
  982. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  983. datadir=$ac_optarg ;;
  984. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  985. | --dataroo | --dataro | --datar)
  986. ac_prev=datarootdir ;;
  987. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  988. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  989. datarootdir=$ac_optarg ;;
  990. -disable-* | --disable-*)
  991. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  994. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  995. { (exit 1); exit 1; }; }
  996. ac_useropt_orig=$ac_useropt
  997. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  998. case $ac_user_opts in
  999. *"
  1000. "enable_$ac_useropt"
  1001. "*) ;;
  1002. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1003. ac_unrecognized_sep=', ';;
  1004. esac
  1005. eval enable_$ac_useropt=no ;;
  1006. -docdir | --docdir | --docdi | --doc | --do)
  1007. ac_prev=docdir ;;
  1008. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1009. docdir=$ac_optarg ;;
  1010. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1011. ac_prev=dvidir ;;
  1012. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1013. dvidir=$ac_optarg ;;
  1014. -enable-* | --enable-*)
  1015. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1016. # Reject names that are not valid shell variable names.
  1017. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1018. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1019. { (exit 1); exit 1; }; }
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "enable_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval enable_$ac_useropt=\$ac_optarg ;;
  1030. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1031. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1032. | --exec | --exe | --ex)
  1033. ac_prev=exec_prefix ;;
  1034. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1035. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1036. | --exec=* | --exe=* | --ex=*)
  1037. exec_prefix=$ac_optarg ;;
  1038. -gas | --gas | --ga | --g)
  1039. # Obsolete; use --with-gas.
  1040. with_gas=yes ;;
  1041. -help | --help | --hel | --he | -h)
  1042. ac_init_help=long ;;
  1043. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1044. ac_init_help=recursive ;;
  1045. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1046. ac_init_help=short ;;
  1047. -host | --host | --hos | --ho)
  1048. ac_prev=host_alias ;;
  1049. -host=* | --host=* | --hos=* | --ho=*)
  1050. host_alias=$ac_optarg ;;
  1051. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1052. ac_prev=htmldir ;;
  1053. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1054. | --ht=*)
  1055. htmldir=$ac_optarg ;;
  1056. -includedir | --includedir | --includedi | --included | --include \
  1057. | --includ | --inclu | --incl | --inc)
  1058. ac_prev=includedir ;;
  1059. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1060. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1061. includedir=$ac_optarg ;;
  1062. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1063. ac_prev=infodir ;;
  1064. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1065. infodir=$ac_optarg ;;
  1066. -libdir | --libdir | --libdi | --libd)
  1067. ac_prev=libdir ;;
  1068. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1069. libdir=$ac_optarg ;;
  1070. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1071. | --libexe | --libex | --libe)
  1072. ac_prev=libexecdir ;;
  1073. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1074. | --libexe=* | --libex=* | --libe=*)
  1075. libexecdir=$ac_optarg ;;
  1076. -localedir | --localedir | --localedi | --localed | --locale)
  1077. ac_prev=localedir ;;
  1078. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1079. localedir=$ac_optarg ;;
  1080. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1081. | --localstate | --localstat | --localsta | --localst | --locals)
  1082. ac_prev=localstatedir ;;
  1083. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1084. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1085. localstatedir=$ac_optarg ;;
  1086. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1087. ac_prev=mandir ;;
  1088. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1089. mandir=$ac_optarg ;;
  1090. -nfp | --nfp | --nf)
  1091. # Obsolete; use --without-fp.
  1092. with_fp=no ;;
  1093. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1094. | --no-cr | --no-c | -n)
  1095. no_create=yes ;;
  1096. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1097. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1098. no_recursion=yes ;;
  1099. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1100. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1101. | --oldin | --oldi | --old | --ol | --o)
  1102. ac_prev=oldincludedir ;;
  1103. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1104. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1105. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1106. oldincludedir=$ac_optarg ;;
  1107. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1108. ac_prev=prefix ;;
  1109. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1110. prefix=$ac_optarg ;;
  1111. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1112. | --program-pre | --program-pr | --program-p)
  1113. ac_prev=program_prefix ;;
  1114. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1115. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1116. program_prefix=$ac_optarg ;;
  1117. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1118. | --program-suf | --program-su | --program-s)
  1119. ac_prev=program_suffix ;;
  1120. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1121. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1122. program_suffix=$ac_optarg ;;
  1123. -program-transform-name | --program-transform-name \
  1124. | --program-transform-nam | --program-transform-na \
  1125. | --program-transform-n | --program-transform- \
  1126. | --program-transform | --program-transfor \
  1127. | --program-transfo | --program-transf \
  1128. | --program-trans | --program-tran \
  1129. | --progr-tra | --program-tr | --program-t)
  1130. ac_prev=program_transform_name ;;
  1131. -program-transform-name=* | --program-transform-name=* \
  1132. | --program-transform-nam=* | --program-transform-na=* \
  1133. | --program-transform-n=* | --program-transform-=* \
  1134. | --program-transform=* | --program-transfor=* \
  1135. | --program-transfo=* | --program-transf=* \
  1136. | --program-trans=* | --program-tran=* \
  1137. | --progr-tra=* | --program-tr=* | --program-t=*)
  1138. program_transform_name=$ac_optarg ;;
  1139. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1140. ac_prev=pdfdir ;;
  1141. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1142. pdfdir=$ac_optarg ;;
  1143. -psdir | --psdir | --psdi | --psd | --ps)
  1144. ac_prev=psdir ;;
  1145. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1146. psdir=$ac_optarg ;;
  1147. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1148. | -silent | --silent | --silen | --sile | --sil)
  1149. silent=yes ;;
  1150. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1151. ac_prev=sbindir ;;
  1152. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1153. | --sbi=* | --sb=*)
  1154. sbindir=$ac_optarg ;;
  1155. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1156. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1157. | --sharedst | --shareds | --shared | --share | --shar \
  1158. | --sha | --sh)
  1159. ac_prev=sharedstatedir ;;
  1160. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1161. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1162. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1163. | --sha=* | --sh=*)
  1164. sharedstatedir=$ac_optarg ;;
  1165. -site | --site | --sit)
  1166. ac_prev=site ;;
  1167. -site=* | --site=* | --sit=*)
  1168. site=$ac_optarg ;;
  1169. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1170. ac_prev=srcdir ;;
  1171. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1172. srcdir=$ac_optarg ;;
  1173. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1174. | --syscon | --sysco | --sysc | --sys | --sy)
  1175. ac_prev=sysconfdir ;;
  1176. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1177. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1178. sysconfdir=$ac_optarg ;;
  1179. -target | --target | --targe | --targ | --tar | --ta | --t)
  1180. ac_prev=target_alias ;;
  1181. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1182. target_alias=$ac_optarg ;;
  1183. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1184. verbose=yes ;;
  1185. -version | --version | --versio | --versi | --vers | -V)
  1186. ac_init_version=: ;;
  1187. -with-* | --with-*)
  1188. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1189. # Reject names that are not valid shell variable names.
  1190. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1191. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1192. { (exit 1); exit 1; }; }
  1193. ac_useropt_orig=$ac_useropt
  1194. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1195. case $ac_user_opts in
  1196. *"
  1197. "with_$ac_useropt"
  1198. "*) ;;
  1199. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1200. ac_unrecognized_sep=', ';;
  1201. esac
  1202. eval with_$ac_useropt=\$ac_optarg ;;
  1203. -without-* | --without-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1208. { (exit 1); exit 1; }; }
  1209. ac_useropt_orig=$ac_useropt
  1210. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1211. case $ac_user_opts in
  1212. *"
  1213. "with_$ac_useropt"
  1214. "*) ;;
  1215. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1216. ac_unrecognized_sep=', ';;
  1217. esac
  1218. eval with_$ac_useropt=no ;;
  1219. --x)
  1220. # Obsolete; use --with-x.
  1221. with_x=yes ;;
  1222. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1223. | --x-incl | --x-inc | --x-in | --x-i)
  1224. ac_prev=x_includes ;;
  1225. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1226. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1227. x_includes=$ac_optarg ;;
  1228. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1229. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1230. ac_prev=x_libraries ;;
  1231. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1232. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1233. x_libraries=$ac_optarg ;;
  1234. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1235. Try \`$0 --help' for more information." >&2
  1236. { (exit 1); exit 1; }; }
  1237. ;;
  1238. *=*)
  1239. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1240. # Reject names that are not valid shell variable names.
  1241. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1242. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1243. { (exit 1); exit 1; }; }
  1244. eval $ac_envvar=\$ac_optarg
  1245. export $ac_envvar ;;
  1246. *)
  1247. # FIXME: should be removed in autoconf 3.0.
  1248. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1249. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1250. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1251. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1252. ;;
  1253. esac
  1254. done
  1255. if test -n "$ac_prev"; then
  1256. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1257. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1258. { (exit 1); exit 1; }; }
  1259. fi
  1260. if test -n "$ac_unrecognized_opts"; then
  1261. case $enable_option_checking in
  1262. no) ;;
  1263. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1264. { (exit 1); exit 1; }; } ;;
  1265. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1266. esac
  1267. fi
  1268. # Check all directory arguments for consistency.
  1269. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1270. datadir sysconfdir sharedstatedir localstatedir includedir \
  1271. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1272. libdir localedir mandir
  1273. do
  1274. eval ac_val=\$$ac_var
  1275. # Remove trailing slashes.
  1276. case $ac_val in
  1277. */ )
  1278. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1279. eval $ac_var=\$ac_val;;
  1280. esac
  1281. # Be sure to have absolute directory names.
  1282. case $ac_val in
  1283. [\\/$]* | ?:[\\/]* ) continue;;
  1284. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1285. esac
  1286. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1287. { (exit 1); exit 1; }; }
  1288. done
  1289. # There might be people who depend on the old broken behavior: `$host'
  1290. # used to hold the argument of --host etc.
  1291. # FIXME: To remove some day.
  1292. build=$build_alias
  1293. host=$host_alias
  1294. target=$target_alias
  1295. # FIXME: To remove some day.
  1296. if test "x$host_alias" != x; then
  1297. if test "x$build_alias" = x; then
  1298. cross_compiling=maybe
  1299. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1300. If a cross compiler is detected then cross compile mode will be used." >&2
  1301. elif test "x$build_alias" != "x$host_alias"; then
  1302. cross_compiling=yes
  1303. fi
  1304. fi
  1305. ac_tool_prefix=
  1306. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1307. test "$silent" = yes && exec 6>/dev/null
  1308. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1309. ac_ls_di=`ls -di .` &&
  1310. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1311. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1312. { (exit 1); exit 1; }; }
  1313. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1314. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1315. { (exit 1); exit 1; }; }
  1316. # Find the source files, if location was not specified.
  1317. if test -z "$srcdir"; then
  1318. ac_srcdir_defaulted=yes
  1319. # Try the directory containing this script, then the parent directory.
  1320. ac_confdir=`$as_dirname -- "$as_myself" ||
  1321. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1322. X"$as_myself" : 'X\(//\)[^/]' \| \
  1323. X"$as_myself" : 'X\(//\)$' \| \
  1324. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1325. $as_echo X"$as_myself" |
  1326. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1327. s//\1/
  1328. q
  1329. }
  1330. /^X\(\/\/\)[^/].*/{
  1331. s//\1/
  1332. q
  1333. }
  1334. /^X\(\/\/\)$/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\).*/{
  1339. s//\1/
  1340. q
  1341. }
  1342. s/.*/./; q'`
  1343. srcdir=$ac_confdir
  1344. if test ! -r "$srcdir/$ac_unique_file"; then
  1345. srcdir=..
  1346. fi
  1347. else
  1348. ac_srcdir_defaulted=no
  1349. fi
  1350. if test ! -r "$srcdir/$ac_unique_file"; then
  1351. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1352. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1353. { (exit 1); exit 1; }; }
  1354. fi
  1355. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1356. ac_abs_confdir=`(
  1357. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1358. { (exit 1); exit 1; }; }
  1359. pwd)`
  1360. # When building in place, set srcdir=.
  1361. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1362. srcdir=.
  1363. fi
  1364. # Remove unnecessary trailing slashes from srcdir.
  1365. # Double slashes in file names in object file debugging info
  1366. # mess up M-x gdb in Emacs.
  1367. case $srcdir in
  1368. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1369. esac
  1370. for ac_var in $ac_precious_vars; do
  1371. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1372. eval ac_env_${ac_var}_value=\$${ac_var}
  1373. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1374. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1375. done
  1376. #
  1377. # Report the --help message.
  1378. #
  1379. if test "$ac_init_help" = "long"; then
  1380. # Omit some internal or obsolete options to make the list less imposing.
  1381. # This message is too long to be a string in the A/UX 3.1 sh.
  1382. cat <<_ACEOF
  1383. \`configure' configures this package to adapt to many kinds of systems.
  1384. Usage: $0 [OPTION]... [VAR=VALUE]...
  1385. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1386. VAR=VALUE. See below for descriptions of some of the useful variables.
  1387. Defaults for the options are specified in brackets.
  1388. Configuration:
  1389. -h, --help display this help and exit
  1390. --help=short display options specific to this package
  1391. --help=recursive display the short help of all the included packages
  1392. -V, --version display version information and exit
  1393. -q, --quiet, --silent do not print \`checking...' messages
  1394. --cache-file=FILE cache test results in FILE [disabled]
  1395. -C, --config-cache alias for \`--cache-file=config.cache'
  1396. -n, --no-create do not create output files
  1397. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1398. Installation directories:
  1399. --prefix=PREFIX install architecture-independent files in PREFIX
  1400. [$ac_default_prefix]
  1401. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1402. [PREFIX]
  1403. By default, \`make install' will install all the files in
  1404. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1405. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1406. for instance \`--prefix=\$HOME'.
  1407. For better control, use the options below.
  1408. Fine tuning of the installation directories:
  1409. --bindir=DIR user executables [EPREFIX/bin]
  1410. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1411. --libexecdir=DIR program executables [EPREFIX/libexec]
  1412. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1413. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1414. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1415. --libdir=DIR object code libraries [EPREFIX/lib]
  1416. --includedir=DIR C header files [PREFIX/include]
  1417. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1418. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1419. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1420. --infodir=DIR info documentation [DATAROOTDIR/info]
  1421. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1422. --mandir=DIR man documentation [DATAROOTDIR/man]
  1423. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1424. --htmldir=DIR html documentation [DOCDIR]
  1425. --dvidir=DIR dvi documentation [DOCDIR]
  1426. --pdfdir=DIR pdf documentation [DOCDIR]
  1427. --psdir=DIR ps documentation [DOCDIR]
  1428. _ACEOF
  1429. cat <<\_ACEOF
  1430. Program names:
  1431. --program-prefix=PREFIX prepend PREFIX to installed program names
  1432. --program-suffix=SUFFIX append SUFFIX to installed program names
  1433. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1434. System types:
  1435. --build=BUILD configure for building on BUILD [guessed]
  1436. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1437. --target=TARGET configure for building compilers for TARGET [HOST]
  1438. _ACEOF
  1439. fi
  1440. if test -n "$ac_init_help"; then
  1441. cat <<\_ACEOF
  1442. Optional Features:
  1443. --disable-option-checking ignore unrecognized --enable/--with options
  1444. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1445. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1446. --enable-maintainer-mode enable make rules and dependencies not useful
  1447. (and sometimes confusing) to the casual installer
  1448. --enable-shared[=PKGS] build shared libraries [default=yes]
  1449. --enable-static[=PKGS] build static libraries [default=yes]
  1450. --enable-fast-install[=PKGS]
  1451. optimize for fast installation [default=yes]
  1452. --disable-dependency-tracking speeds up one-time build
  1453. --enable-dependency-tracking do not reject slow dependency extractors
  1454. --disable-libtool-lock avoid locking (might break parallel builds)
  1455. --disable-largefile omit support for large files
  1456. --enable-debug Enable debugging code and support for the -d option
  1457. --enable-dmalloc Enable linking to dmalloc for better memory
  1458. debugging
  1459. --enable-pedantic Enable gcc's -pedantic option
  1460. --enable-efence Enable Electric Fence memory debugger
  1461. --enable-gprof Enable GNU Profiler
  1462. --disable-64bits Do not use 64bit packet counters
  1463. --enable-force-bpf Force using BPF for sending packets
  1464. --enable-force-pf Force using Linux's PF_PACKET for sending packets
  1465. --enable-force-libdnet Force using libdnet for sending packets
  1466. --enable-force-inject Force using libpcap's pcap_inject() for sending
  1467. packets
  1468. --enable-force-sendpacket
  1469. Force using libpcap's pcap_sendpacket() for sending
  1470. packets
  1471. --enable-dynamic-link Dynamically link libraries
  1472. --enable-local-libopts Force using the supplied libopts tearoff code
  1473. --disable-libopts-install
  1474. Do not install libopts with client installation
  1475. --disable-optional-args not wanting optional option args
  1476. Optional Packages:
  1477. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1478. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1479. --with-dmalloc use dmalloc, as in
  1480. http://www.dmalloc.com/dmalloc.tar.gz
  1481. --with-pic try to use only PIC/non-PIC objects [default=use
  1482. both]
  1483. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1484. --with-libpcap=DIR Use libpcap in DIR
  1485. --with-libdnet=DIR Use libdnet in DIR
  1486. --with-pcapnav-config=FILE
  1487. Use given pcapnav-config
  1488. --with-tcpdump=FILE Path to tcpdump binary
  1489. --with-testnic=NIC Select which network card to use for testing
  1490. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  1491. testing
  1492. --with-autoopts-config specify the config-info script
  1493. --with-regex-header a reg expr header is specified
  1494. --with-libregex libregex installation prefix
  1495. --with-libregex-cflags libregex compile flags
  1496. --with-libregex-libs libregex link command arguments
  1497. Some influential environment variables:
  1498. CC C compiler command
  1499. CFLAGS C compiler flags
  1500. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1501. nonstandard directory <lib dir>
  1502. LIBS libraries to pass to the linker, e.g. -l<library>
  1503. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1504. you have headers in a nonstandard directory <include dir>
  1505. CPP C preprocessor
  1506. CXX C++ compiler command
  1507. CXXFLAGS C++ compiler flags
  1508. CXXCPP C++ preprocessor
  1509. Use these variables to override the choices made by `configure' or to help
  1510. it to find libraries and programs with nonstandard names/locations.
  1511. _ACEOF
  1512. ac_status=$?
  1513. fi
  1514. if test "$ac_init_help" = "recursive"; then
  1515. # If there are subdirs, report their specific --help.
  1516. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1517. test -d "$ac_dir" ||
  1518. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1519. continue
  1520. ac_builddir=.
  1521. case "$ac_dir" in
  1522. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1523. *)
  1524. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1525. # A ".." for each directory in $ac_dir_suffix.
  1526. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1527. case $ac_top_builddir_sub in
  1528. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1529. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1530. esac ;;
  1531. esac
  1532. ac_abs_top_builddir=$ac_pwd
  1533. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1534. # for backward compatibility:
  1535. ac_top_builddir=$ac_top_build_prefix
  1536. case $srcdir in
  1537. .) # We are building in place.
  1538. ac_srcdir=.
  1539. ac_top_srcdir=$ac_top_builddir_sub
  1540. ac_abs_top_srcdir=$ac_pwd ;;
  1541. [\\/]* | ?:[\\/]* ) # Absolute name.
  1542. ac_srcdir=$srcdir$ac_dir_suffix;
  1543. ac_top_srcdir=$srcdir
  1544. ac_abs_top_srcdir=$srcdir ;;
  1545. *) # Relative name.
  1546. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1547. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1548. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1549. esac
  1550. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1551. cd "$ac_dir" || { ac_status=$?; continue; }
  1552. # Check for guested configure.
  1553. if test -f "$ac_srcdir/configure.gnu"; then
  1554. echo &&
  1555. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1556. elif test -f "$ac_srcdir/configure"; then
  1557. echo &&
  1558. $SHELL "$ac_srcdir/configure" --help=recursive
  1559. else
  1560. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1561. fi || ac_status=$?
  1562. cd "$ac_pwd" || { ac_status=$?; break; }
  1563. done
  1564. fi
  1565. test -n "$ac_init_help" && exit $ac_status
  1566. if $ac_init_version; then
  1567. cat <<\_ACEOF
  1568. configure
  1569. generated by GNU Autoconf 2.63
  1570. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1571. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1572. This configure script is free software; the Free Software Foundation
  1573. gives unlimited permission to copy, distribute and modify it.
  1574. _ACEOF
  1575. exit
  1576. fi
  1577. cat >config.log <<_ACEOF
  1578. This file contains any messages produced by compilers while
  1579. running configure, to aid debugging if configure makes a mistake.
  1580. It was created by $as_me, which was
  1581. generated by GNU Autoconf 2.63. Invocation command line was
  1582. $ $0 $@
  1583. _ACEOF
  1584. exec 5>>config.log
  1585. {
  1586. cat <<_ASUNAME
  1587. ## --------- ##
  1588. ## Platform. ##
  1589. ## --------- ##
  1590. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1591. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1592. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1593. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1594. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1595. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1596. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1597. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1598. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1599. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1600. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1601. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1602. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1603. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1604. _ASUNAME
  1605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1606. for as_dir in $PATH
  1607. do
  1608. IFS=$as_save_IFS
  1609. test -z "$as_dir" && as_dir=.
  1610. $as_echo "PATH: $as_dir"
  1611. done
  1612. IFS=$as_save_IFS
  1613. } >&5
  1614. cat >&5 <<_ACEOF
  1615. ## ----------- ##
  1616. ## Core tests. ##
  1617. ## ----------- ##
  1618. _ACEOF
  1619. # Keep a trace of the command line.
  1620. # Strip out --no-create and --no-recursion so they do not pile up.
  1621. # Strip out --silent because we don't want to record it for future runs.
  1622. # Also quote any args containing shell meta-characters.
  1623. # Make two passes to allow for proper duplicate-argument suppression.
  1624. ac_configure_args=
  1625. ac_configure_args0=
  1626. ac_configure_args1=
  1627. ac_must_keep_next=false
  1628. for ac_pass in 1 2
  1629. do
  1630. for ac_arg
  1631. do
  1632. case $ac_arg in
  1633. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1634. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1635. | -silent | --silent | --silen | --sile | --sil)
  1636. continue ;;
  1637. *\'*)
  1638. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1639. esac
  1640. case $ac_pass in
  1641. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1642. 2)
  1643. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1644. if test $ac_must_keep_next = true; then
  1645. ac_must_keep_next=false # Got value, back to normal.
  1646. else
  1647. case $ac_arg in
  1648. *=* | --config-cache | -C | -disable-* | --disable-* \
  1649. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1650. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1651. | -with-* | --with-* | -without-* | --without-* | --x)
  1652. case "$ac_configure_args0 " in
  1653. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1654. esac
  1655. ;;
  1656. -* ) ac_must_keep_next=true ;;
  1657. esac
  1658. fi
  1659. ac_configure_args="$ac_configure_args '$ac_arg'"
  1660. ;;
  1661. esac
  1662. done
  1663. done
  1664. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1665. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1666. # When interrupted or exit'd, cleanup temporary files, and complete
  1667. # config.log. We remove comments because anyway the quotes in there
  1668. # would cause problems or look ugly.
  1669. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1670. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1671. trap 'exit_status=$?
  1672. # Save into config.log some information that might help in debugging.
  1673. {
  1674. echo
  1675. cat <<\_ASBOX
  1676. ## ---------------- ##
  1677. ## Cache variables. ##
  1678. ## ---------------- ##
  1679. _ASBOX
  1680. echo
  1681. # The following way of writing the cache mishandles newlines in values,
  1682. (
  1683. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1684. eval ac_val=\$$ac_var
  1685. case $ac_val in #(
  1686. *${as_nl}*)
  1687. case $ac_var in #(
  1688. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1689. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1690. esac
  1691. case $ac_var in #(
  1692. _ | IFS | as_nl) ;; #(
  1693. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1694. *) $as_unset $ac_var ;;
  1695. esac ;;
  1696. esac
  1697. done
  1698. (set) 2>&1 |
  1699. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1700. *${as_nl}ac_space=\ *)
  1701. sed -n \
  1702. "s/'\''/'\''\\\\'\'''\''/g;
  1703. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1704. ;; #(
  1705. *)
  1706. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1707. ;;
  1708. esac |
  1709. sort
  1710. )
  1711. echo
  1712. cat <<\_ASBOX
  1713. ## ----------------- ##
  1714. ## Output variables. ##
  1715. ## ----------------- ##
  1716. _ASBOX
  1717. echo
  1718. for ac_var in $ac_subst_vars
  1719. do
  1720. eval ac_val=\$$ac_var
  1721. case $ac_val in
  1722. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1723. esac
  1724. $as_echo "$ac_var='\''$ac_val'\''"
  1725. done | sort
  1726. echo
  1727. if test -n "$ac_subst_files"; then
  1728. cat <<\_ASBOX
  1729. ## ------------------- ##
  1730. ## File substitutions. ##
  1731. ## ------------------- ##
  1732. _ASBOX
  1733. echo
  1734. for ac_var in $ac_subst_files
  1735. do
  1736. eval ac_val=\$$ac_var
  1737. case $ac_val in
  1738. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1739. esac
  1740. $as_echo "$ac_var='\''$ac_val'\''"
  1741. done | sort
  1742. echo
  1743. fi
  1744. if test -s confdefs.h; then
  1745. cat <<\_ASBOX
  1746. ## ----------- ##
  1747. ## confdefs.h. ##
  1748. ## ----------- ##
  1749. _ASBOX
  1750. echo
  1751. cat confdefs.h
  1752. echo
  1753. fi
  1754. test "$ac_signal" != 0 &&
  1755. $as_echo "$as_me: caught signal $ac_signal"
  1756. $as_echo "$as_me: exit $exit_status"
  1757. } >&5
  1758. rm -f core *.core core.conftest.* &&
  1759. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1760. exit $exit_status
  1761. ' 0
  1762. for ac_signal in 1 2 13 15; do
  1763. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1764. done
  1765. ac_signal=0
  1766. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1767. rm -f -r conftest* confdefs.h
  1768. # Predefined preprocessor variables.
  1769. cat >>confdefs.h <<_ACEOF
  1770. #define PACKAGE_NAME "$PACKAGE_NAME"
  1771. _ACEOF
  1772. cat >>confdefs.h <<_ACEOF
  1773. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1774. _ACEOF
  1775. cat >>confdefs.h <<_ACEOF
  1776. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1777. _ACEOF
  1778. cat >>confdefs.h <<_ACEOF
  1779. #define PACKAGE_STRING "$PACKAGE_STRING"
  1780. _ACEOF
  1781. cat >>confdefs.h <<_ACEOF
  1782. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1783. _ACEOF
  1784. # Let the site file select an alternate cache file if it wants to.
  1785. # Prefer an explicitly selected file to automatically selected ones.
  1786. ac_site_file1=NONE
  1787. ac_site_file2=NONE
  1788. if test -n "$CONFIG_SITE"; then
  1789. ac_site_file1=$CONFIG_SITE
  1790. elif test "x$prefix" != xNONE; then
  1791. ac_site_file1=$prefix/share/config.site
  1792. ac_site_file2=$prefix/etc/config.site
  1793. else
  1794. ac_site_file1=$ac_default_prefix/share/config.site
  1795. ac_site_file2=$ac_default_prefix/etc/config.site
  1796. fi
  1797. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1798. do
  1799. test "x$ac_site_file" = xNONE && continue
  1800. if test -r "$ac_site_file"; then
  1801. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1802. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1803. sed 's/^/| /' "$ac_site_file" >&5
  1804. . "$ac_site_file"
  1805. fi
  1806. done
  1807. if test -r "$cache_file"; then
  1808. # Some versions of bash will fail to source /dev/null (special
  1809. # files actually), so we avoid doing that.
  1810. if test -f "$cache_file"; then
  1811. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1812. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1813. case $cache_file in
  1814. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1815. *) . "./$cache_file";;
  1816. esac
  1817. fi
  1818. else
  1819. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1820. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1821. >$cache_file
  1822. fi
  1823. # Check that the precious variables saved in the cache have kept the same
  1824. # value.
  1825. ac_cache_corrupted=false
  1826. for ac_var in $ac_precious_vars; do
  1827. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1828. eval ac_new_set=\$ac_env_${ac_var}_set
  1829. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1830. eval ac_new_val=\$ac_env_${ac_var}_value
  1831. case $ac_old_set,$ac_new_set in
  1832. set,)
  1833. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1834. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1835. ac_cache_corrupted=: ;;
  1836. ,set)
  1837. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1838. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1839. ac_cache_corrupted=: ;;
  1840. ,);;
  1841. *)
  1842. if test "x$ac_old_val" != "x$ac_new_val"; then
  1843. # differences in whitespace do not lead to failure.
  1844. ac_old_val_w=`echo x $ac_old_val`
  1845. ac_new_val_w=`echo x $ac_new_val`
  1846. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1847. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1848. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1849. ac_cache_corrupted=:
  1850. else
  1851. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1852. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1853. eval $ac_var=\$ac_old_val
  1854. fi
  1855. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1856. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1857. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1858. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1859. fi;;
  1860. esac
  1861. # Pass precious variables to config.status.
  1862. if test "$ac_new_set" = set; then
  1863. case $ac_new_val in
  1864. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1865. *) ac_arg=$ac_var=$ac_new_val ;;
  1866. esac
  1867. case " $ac_configure_args " in
  1868. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1869. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1870. esac
  1871. fi
  1872. done
  1873. if $ac_cache_corrupted; then
  1874. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1875. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1876. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1877. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1878. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1879. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1880. { (exit 1); exit 1; }; }
  1881. fi
  1882. ac_ext=c
  1883. ac_cpp='$CPP $CPPFLAGS'
  1884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1887. ac_config_headers="$ac_config_headers src/config.h"
  1888. ac_aux_dir=
  1889. for ac_dir in config "$srcdir"/config; do
  1890. if test -f "$ac_dir/install-sh"; then
  1891. ac_aux_dir=$ac_dir
  1892. ac_install_sh="$ac_aux_dir/install-sh -c"
  1893. break
  1894. elif test -f "$ac_dir/install.sh"; then
  1895. ac_aux_dir=$ac_dir
  1896. ac_install_sh="$ac_aux_dir/install.sh -c"
  1897. break
  1898. elif test -f "$ac_dir/shtool"; then
  1899. ac_aux_dir=$ac_dir
  1900. ac_install_sh="$ac_aux_dir/shtool install -c"
  1901. break
  1902. fi
  1903. done
  1904. if test -z "$ac_aux_dir"; then
  1905. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
  1906. $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
  1907. { (exit 1); exit 1; }; }
  1908. fi
  1909. # These three variables are undocumented and unsupported,
  1910. # and are intended to be withdrawn in a future Autoconf release.
  1911. # They can cause serious problems if a builder's source tree is in a directory
  1912. # whose full name contains unusual characters.
  1913. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1914. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1915. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1916. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1917. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  1918. # Check whether --enable-maintainer-mode was given.
  1919. if test "${enable_maintainer_mode+set}" = set; then
  1920. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  1921. else
  1922. USE_MAINTAINER_MODE=no
  1923. fi
  1924. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1925. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  1926. if test $USE_MAINTAINER_MODE = yes; then
  1927. MAINTAINER_MODE_TRUE=
  1928. MAINTAINER_MODE_FALSE='#'
  1929. else
  1930. MAINTAINER_MODE_TRUE='#'
  1931. MAINTAINER_MODE_FALSE=
  1932. fi
  1933. MAINT=$MAINTAINER_MODE_TRUE
  1934. { $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  1935. $as_echo_n "checking if malloc debugging is wanted... " >&6; }
  1936. # Check whether --with-dmalloc was given.
  1937. if test "${with_dmalloc+set}" = set; then
  1938. withval=$with_dmalloc; if test "$withval" = yes; then
  1939. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1940. $as_echo "yes" >&6; }
  1941. cat >>confdefs.h <<\_ACEOF
  1942. #define WITH_DMALLOC 1
  1943. _ACEOF
  1944. LIBS="$LIBS -ldmalloc"
  1945. LDFLAGS="$LDFLAGS -g"
  1946. else
  1947. { $as_echo "$as_me:$LINENO: result: no" >&5
  1948. $as_echo "no" >&6; }
  1949. fi
  1950. else
  1951. { $as_echo "$as_me:$LINENO: result: no" >&5
  1952. $as_echo "no" >&6; }
  1953. fi
  1954. MAINTAINER_AUTOGEN_VERSION=5.9.7
  1955. MAJOR_VERSION=3
  1956. MINOR_VERSION=4
  1957. MICRO_VERSION=1
  1958. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1959. TCPREPLAY_RELEASE=1
  1960. cat >>confdefs.h <<\_ACEOF
  1961. #define PACKAGE tcpreplay
  1962. _ACEOF
  1963. cat >>confdefs.h <<_ACEOF
  1964. #define VERSION "$TCPREPLAY_VERSION"
  1965. _ACEOF
  1966. USER_CFLAGS=$CFLAGS
  1967. CFLAGS="${CFLAGS} -Wall -O3 -std=gnu99"
  1968. # Make sure we can run config.sub.
  1969. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1970. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1971. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1972. { (exit 1); exit 1; }; }
  1973. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1974. $as_echo_n "checking build system type... " >&6; }
  1975. if test "${ac_cv_build+set}" = set; then
  1976. $as_echo_n "(cached) " >&6
  1977. else
  1978. ac_build_alias=$build_alias
  1979. test "x$ac_build_alias" = x &&
  1980. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1981. test "x$ac_build_alias" = x &&
  1982. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1983. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1984. { (exit 1); exit 1; }; }
  1985. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1986. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1987. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1988. { (exit 1); exit 1; }; }
  1989. fi
  1990. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1991. $as_echo "$ac_cv_build" >&6; }
  1992. case $ac_cv_build in
  1993. *-*-*) ;;
  1994. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1995. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1996. { (exit 1); exit 1; }; };;
  1997. esac
  1998. build=$ac_cv_build
  1999. ac_save_IFS=$IFS; IFS='-'
  2000. set x $ac_cv_build
  2001. shift
  2002. build_cpu=$1
  2003. build_vendor=$2
  2004. shift; shift
  2005. # Remember, the first character of IFS is used to create $*,
  2006. # except with old shells:
  2007. build_os=$*
  2008. IFS=$ac_save_IFS
  2009. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2010. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2011. $as_echo_n "checking host system type... " >&6; }
  2012. if test "${ac_cv_host+set}" = set; then
  2013. $as_echo_n "(cached) " >&6
  2014. else
  2015. if test "x$host_alias" = x; then
  2016. ac_cv_host=$ac_cv_build
  2017. else
  2018. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2019. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2020. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2021. { (exit 1); exit 1; }; }
  2022. fi
  2023. fi
  2024. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2025. $as_echo "$ac_cv_host" >&6; }
  2026. case $ac_cv_host in
  2027. *-*-*) ;;
  2028. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2029. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2030. { (exit 1); exit 1; }; };;
  2031. esac
  2032. host=$ac_cv_host
  2033. ac_save_IFS=$IFS; IFS='-'
  2034. set x $ac_cv_host
  2035. shift
  2036. host_cpu=$1
  2037. host_vendor=$2
  2038. shift; shift
  2039. # Remember, the first character of IFS is used to create $*,
  2040. # except with old shells:
  2041. host_os=$*
  2042. IFS=$ac_save_IFS
  2043. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2044. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  2045. $as_echo_n "checking target system type... " >&6; }
  2046. if test "${ac_cv_target+set}" = set; then
  2047. $as_echo_n "(cached) " >&6
  2048. else
  2049. if test "x$target_alias" = x; then
  2050. ac_cv_target=$ac_cv_host
  2051. else
  2052. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2053. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  2054. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  2055. { (exit 1); exit 1; }; }
  2056. fi
  2057. fi
  2058. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  2059. $as_echo "$ac_cv_target" >&6; }
  2060. case $ac_cv_target in
  2061. *-*-*) ;;
  2062. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  2063. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  2064. { (exit 1); exit 1; }; };;
  2065. esac
  2066. target=$ac_cv_target
  2067. ac_save_IFS=$IFS; IFS='-'
  2068. set x $ac_cv_target
  2069. shift
  2070. target_cpu=$1
  2071. target_vendor=$2
  2072. shift; shift
  2073. # Remember, the first character of IFS is used to create $*,
  2074. # except with old shells:
  2075. target_os=$*
  2076. IFS=$ac_save_IFS
  2077. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2078. # The aliases save the names the user supplied, while $host etc.
  2079. # will get canonicalized.
  2080. test -n "$target_alias" &&
  2081. test "$program_prefix$program_suffix$program_transform_name" = \
  2082. NONENONEs,x,x, &&
  2083. program_prefix=${target_alias}-
  2084. have_cygwin=no
  2085. { $as_echo "$as_me:$LINENO: checking for cygwin development environment" >&5
  2086. $as_echo_n "checking for cygwin development environment... " >&6; }
  2087. if test `echo $target | grep -c cygwin` -gt 0 ; then
  2088. cat >>confdefs.h <<\_ACEOF
  2089. #define HAVE_WIN32 1
  2090. _ACEOF
  2091. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2092. $as_echo "yes" >&6; }
  2093. have_cygwin=yes
  2094. else
  2095. { $as_echo "$as_me:$LINENO: result: no" >&5
  2096. $as_echo "no" >&6; }
  2097. fi
  2098. am__api_version='1.10'
  2099. # Find a good install program. We prefer a C program (faster),
  2100. # so one script is as good as another. But avoid the broken or
  2101. # incompatible versions:
  2102. # SysV /etc/install, /usr/sbin/install
  2103. # SunOS /usr/etc/install
  2104. # IRIX /sbin/install
  2105. # AIX /bin/install
  2106. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2107. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2108. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2109. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2110. # OS/2's system install, which has a completely different semantic
  2111. # ./install, which can be erroneously created by make from ./install.sh.
  2112. # Reject install programs that cannot install multiple files.
  2113. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2114. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2115. if test -z "$INSTALL"; then
  2116. if test "${ac_cv_path_install+set}" = set; then
  2117. $as_echo_n "(cached) " >&6
  2118. else
  2119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2120. for as_dir in $PATH
  2121. do
  2122. IFS=$as_save_IFS
  2123. test -z "$as_dir" && as_dir=.
  2124. # Account for people who put trailing slashes in PATH elements.
  2125. case $as_dir/ in
  2126. ./ | .// | /cC/* | \
  2127. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2128. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2129. /usr/ucb/* ) ;;
  2130. *)
  2131. # OSF1 and SCO ODT 3.0 have their own names for install.
  2132. # Don't use installbsd from OSF since it installs stuff as root
  2133. # by default.
  2134. for ac_prog in ginstall scoinst install; do
  2135. for ac_exec_ext in '' $ac_executable_extensions; do
  2136. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2137. if test $ac_prog = install &&
  2138. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2139. # AIX install. It has an incompatible calling convention.
  2140. :
  2141. elif test $ac_prog = install &&
  2142. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2143. # program-specific install script used by HP pwplus--don't use.
  2144. :
  2145. else
  2146. rm -rf conftest.one conftest.two conftest.dir
  2147. echo one > conftest.one
  2148. echo two > conftest.two
  2149. mkdir conftest.dir
  2150. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2151. test -s conftest.one && test -s conftest.two &&
  2152. test -s conftest.dir/conftest.one &&
  2153. test -s conftest.dir/conftest.two
  2154. then
  2155. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2156. break 3
  2157. fi
  2158. fi
  2159. fi
  2160. done
  2161. done
  2162. ;;
  2163. esac
  2164. done
  2165. IFS=$as_save_IFS
  2166. rm -rf conftest.one conftest.two conftest.dir
  2167. fi
  2168. if test "${ac_cv_path_install+set}" = set; then
  2169. INSTALL=$ac_cv_path_install
  2170. else
  2171. # As a last resort, use the slow shell script. Don't cache a
  2172. # value for INSTALL within a source directory, because that will
  2173. # break other packages using the cache if that directory is
  2174. # removed, or if the value is a relative name.
  2175. INSTALL=$ac_install_sh
  2176. fi
  2177. fi
  2178. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2179. $as_echo "$INSTALL" >&6; }
  2180. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2181. # It thinks the first close brace ends the variable substitution.
  2182. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2183. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2184. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2185. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2186. $as_echo_n "checking whether build environment is sane... " >&6; }
  2187. # Just in case
  2188. sleep 1
  2189. echo timestamp > conftest.file
  2190. # Do `set' in a subshell so we don't clobber the current shell's
  2191. # arguments. Must try -L first in case configure is actually a
  2192. # symlink; some systems play weird games with the mod time of symlinks
  2193. # (eg FreeBSD returns the mod time of the symlink's containing
  2194. # directory).
  2195. if (
  2196. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2197. if test "$*" = "X"; then
  2198. # -L didn't work.
  2199. set X `ls -t $srcdir/configure conftest.file`
  2200. fi
  2201. rm -f conftest.file
  2202. if test "$*" != "X $srcdir/configure conftest.file" \
  2203. && test "$*" != "X conftest.file $srcdir/configure"; then
  2204. # If neither matched, then we have a broken ls. This can happen
  2205. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2206. # broken ls alias from the environment. This has actually
  2207. # happened. Such a system could not be considered "sane".
  2208. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2209. alias in your environment" >&5
  2210. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2211. alias in your environment" >&2;}
  2212. { (exit 1); exit 1; }; }
  2213. fi
  2214. test "$2" = conftest.file
  2215. )
  2216. then
  2217. # Ok.
  2218. :
  2219. else
  2220. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2221. Check your system clock" >&5
  2222. $as_echo "$as_me: error: newly created file is older than distributed files!
  2223. Check your system clock" >&2;}
  2224. { (exit 1); exit 1; }; }
  2225. fi
  2226. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2227. $as_echo "yes" >&6; }
  2228. test "$program_prefix" != NONE &&
  2229. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2230. # Use a double $ so make ignores it.
  2231. test "$program_suffix" != NONE &&
  2232. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2233. # Double any \ or $.
  2234. # By default was `s,x,x', remove it if useless.
  2235. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2236. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2237. # expand $ac_aux_dir to an absolute path
  2238. am_aux_dir=`cd $ac_aux_dir && pwd`
  2239. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2240. # Use eval to expand $SHELL
  2241. if eval "$MISSING --run true"; then
  2242. am_missing_run="$MISSING --run "
  2243. else
  2244. am_missing_run=
  2245. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2246. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2247. fi
  2248. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2249. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2250. if test -z "$MKDIR_P"; then
  2251. if test "${ac_cv_path_mkdir+set}" = set; then
  2252. $as_echo_n "(cached) " >&6
  2253. else
  2254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2255. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2256. do
  2257. IFS=$as_save_IFS
  2258. test -z "$as_dir" && as_dir=.
  2259. for ac_prog in mkdir gmkdir; do
  2260. for ac_exec_ext in '' $ac_executable_extensions; do
  2261. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2262. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2263. 'mkdir (GNU coreutils) '* | \
  2264. 'mkdir (coreutils) '* | \
  2265. 'mkdir (fileutils) '4.1*)
  2266. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2267. break 3;;
  2268. esac
  2269. done
  2270. done
  2271. done
  2272. IFS=$as_save_IFS
  2273. fi
  2274. if test "${ac_cv_path_mkdir+set}" = set; then
  2275. MKDIR_P="$ac_cv_path_mkdir -p"
  2276. else
  2277. # As a last resort, use the slow shell script. Don't cache a
  2278. # value for MKDIR_P within a source directory, because that will
  2279. # break other packages using the cache if that directory is
  2280. # removed, or if the value is a relative name.
  2281. test -d ./--version && rmdir ./--version
  2282. MKDIR_P="$ac_install_sh -d"
  2283. fi
  2284. fi
  2285. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2286. $as_echo "$MKDIR_P" >&6; }
  2287. mkdir_p="$MKDIR_P"
  2288. case $mkdir_p in
  2289. [\\/$]* | ?:[\\/]*) ;;
  2290. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2291. esac
  2292. for ac_prog in gawk mawk nawk awk
  2293. do
  2294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2295. set dummy $ac_prog; ac_word=$2
  2296. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2297. $as_echo_n "checking for $ac_word... " >&6; }
  2298. if test "${ac_cv_prog_AWK+set}" = set; then
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. if test -n "$AWK"; then
  2302. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2303. else
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. for ac_exec_ext in '' $ac_executable_extensions; do
  2310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2311. ac_cv_prog_AWK="$ac_prog"
  2312. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2313. break 2
  2314. fi
  2315. done
  2316. done
  2317. IFS=$as_save_IFS
  2318. fi
  2319. fi
  2320. AWK=$ac_cv_prog_AWK
  2321. if test -n "$AWK"; then
  2322. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2323. $as_echo "$AWK" >&6; }
  2324. else
  2325. { $as_echo "$as_me:$LINENO: result: no" >&5
  2326. $as_echo "no" >&6; }
  2327. fi
  2328. test -n "$AWK" && break
  2329. done
  2330. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2331. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2332. set x ${MAKE-make}
  2333. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2334. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2335. $as_echo_n "(cached) " >&6
  2336. else
  2337. cat >conftest.make <<\_ACEOF
  2338. SHELL = /bin/sh
  2339. all:
  2340. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2341. _ACEOF
  2342. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2343. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2344. *@@@%%%=?*=@@@%%%*)
  2345. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2346. *)
  2347. eval ac_cv_prog_make_${ac_make}_set=no;;
  2348. esac
  2349. rm -f conftest.make
  2350. fi
  2351. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2352. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2353. $as_echo "yes" >&6; }
  2354. SET_MAKE=
  2355. else
  2356. { $as_echo "$as_me:$LINENO: result: no" >&5
  2357. $as_echo "no" >&6; }
  2358. SET_MAKE="MAKE=${MAKE-make}"
  2359. fi
  2360. rm -rf .tst 2>/dev/null
  2361. mkdir .tst 2>/dev/null
  2362. if test -d .tst; then
  2363. am__leading_dot=.
  2364. else
  2365. am__leading_dot=_
  2366. fi
  2367. rmdir .tst 2>/dev/null
  2368. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2369. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2370. # is not polluted with repeated "-I."
  2371. am__isrc=' -I$(srcdir)'
  2372. # test to see if srcdir already configured
  2373. if test -f $srcdir/config.status; then
  2374. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2375. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2376. { (exit 1); exit 1; }; }
  2377. fi
  2378. fi
  2379. # test whether we have cygpath
  2380. if test -z "$CYGPATH_W"; then
  2381. if (cygpath --version) >/dev/null 2>/dev/null; then
  2382. CYGPATH_W='cygpath -w'
  2383. else
  2384. CYGPATH_W=echo
  2385. fi
  2386. fi
  2387. # Define the identity of the package.
  2388. PACKAGE=tcpreplay
  2389. VERSION=$TCPREPLAY_VERSION
  2390. # Some tools Automake needs.
  2391. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2392. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2393. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2394. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2395. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2396. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2397. # Installed binaries are usually stripped using `strip' when the user
  2398. # run `make install-strip'. However `strip' might not be the right
  2399. # tool to use in cross-compilation environments, therefore Automake
  2400. # will honor the `STRIP' environment variable to overrule this program.
  2401. if test "$cross_compiling" != no; then
  2402. if test -n "$ac_tool_prefix"; then
  2403. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2404. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2405. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2406. $as_echo_n "checking for $ac_word... " >&6; }
  2407. if test "${ac_cv_prog_STRIP+set}" = set; then
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. if test -n "$STRIP"; then
  2411. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2420. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2421. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. fi
  2429. STRIP=$ac_cv_prog_STRIP
  2430. if test -n "$STRIP"; then
  2431. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2432. $as_echo "$STRIP" >&6; }
  2433. else
  2434. { $as_echo "$as_me:$LINENO: result: no" >&5
  2435. $as_echo "no" >&6; }
  2436. fi
  2437. fi
  2438. if test -z "$ac_cv_prog_STRIP"; then
  2439. ac_ct_STRIP=$STRIP
  2440. # Extract the first word of "strip", so it can be a program name with args.
  2441. set dummy strip; ac_word=$2
  2442. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2443. $as_echo_n "checking for $ac_word... " >&6; }
  2444. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2445. $as_echo_n "(cached) " >&6
  2446. else
  2447. if test -n "$ac_ct_STRIP"; then
  2448. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2449. else
  2450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2451. for as_dir in $PATH
  2452. do
  2453. IFS=$as_save_IFS
  2454. test -z "$as_dir" && as_dir=.
  2455. for ac_exec_ext in '' $ac_executable_extensions; do
  2456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2457. ac_cv_prog_ac_ct_STRIP="strip"
  2458. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2459. break 2
  2460. fi
  2461. done
  2462. done
  2463. IFS=$as_save_IFS
  2464. fi
  2465. fi
  2466. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2467. if test -n "$ac_ct_STRIP"; then
  2468. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2469. $as_echo "$ac_ct_STRIP" >&6; }
  2470. else
  2471. { $as_echo "$as_me:$LINENO: result: no" >&5
  2472. $as_echo "no" >&6; }
  2473. fi
  2474. if test "x$ac_ct_STRIP" = x; then
  2475. STRIP=":"
  2476. else
  2477. case $cross_compiling:$ac_tool_warned in
  2478. yes:)
  2479. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2480. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2481. ac_tool_warned=yes ;;
  2482. esac
  2483. STRIP=$ac_ct_STRIP
  2484. fi
  2485. else
  2486. STRIP="$ac_cv_prog_STRIP"
  2487. fi
  2488. fi
  2489. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2490. # We need awk for the "check" target. The system "awk" is bad on
  2491. # some platforms.
  2492. # Always define AMTAR for backward compatibility.
  2493. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2494. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2495. # Find a good install program. We prefer a C program (faster),
  2496. # so one script is as good as another. But avoid the broken or
  2497. # incompatible versions:
  2498. # SysV /etc/install, /usr/sbin/install
  2499. # SunOS /usr/etc/install
  2500. # IRIX /sbin/install
  2501. # AIX /bin/install
  2502. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2503. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2504. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2505. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2506. # OS/2's system install, which has a completely different semantic
  2507. # ./install, which can be erroneously created by make from ./install.sh.
  2508. # Reject install programs that cannot install multiple files.
  2509. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2510. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2511. if test -z "$INSTALL"; then
  2512. if test "${ac_cv_path_install+set}" = set; then
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2516. for as_dir in $PATH
  2517. do
  2518. IFS=$as_save_IFS
  2519. test -z "$as_dir" && as_dir=.
  2520. # Account for people who put trailing slashes in PATH elements.
  2521. case $as_dir/ in
  2522. ./ | .// | /cC/* | \
  2523. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2524. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2525. /usr/ucb/* ) ;;
  2526. *)
  2527. # OSF1 and SCO ODT 3.0 have their own names for install.
  2528. # Don't use installbsd from OSF since it installs stuff as root
  2529. # by default.
  2530. for ac_prog in ginstall scoinst install; do
  2531. for ac_exec_ext in '' $ac_executable_extensions; do
  2532. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2533. if test $ac_prog = install &&
  2534. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2535. # AIX install. It has an incompatible calling convention.
  2536. :
  2537. elif test $ac_prog = install &&
  2538. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2539. # program-specific install script used by HP pwplus--don't use.
  2540. :
  2541. else
  2542. rm -rf conftest.one conftest.two conftest.dir
  2543. echo one > conftest.one
  2544. echo two > conftest.two
  2545. mkdir conftest.dir
  2546. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2547. test -s conftest.one && test -s conftest.two &&
  2548. test -s conftest.dir/conftest.one &&
  2549. test -s conftest.dir/conftest.two
  2550. then
  2551. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2552. break 3
  2553. fi
  2554. fi
  2555. fi
  2556. done
  2557. done
  2558. ;;
  2559. esac
  2560. done
  2561. IFS=$as_save_IFS
  2562. rm -rf conftest.one conftest.two conftest.dir
  2563. fi
  2564. if test "${ac_cv_path_install+set}" = set; then
  2565. INSTALL=$ac_cv_path_install
  2566. else
  2567. # As a last resort, use the slow shell script. Don't cache a
  2568. # value for INSTALL within a source directory, because that will
  2569. # break other packages using the cache if that directory is
  2570. # removed, or if the value is a relative name.
  2571. INSTALL=$ac_install_sh
  2572. fi
  2573. fi
  2574. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2575. $as_echo "$INSTALL" >&6; }
  2576. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2577. # It thinks the first close brace ends the variable substitution.
  2578. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2579. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2580. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2581. case `pwd` in
  2582. *\ * | *\ *)
  2583. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2584. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2585. esac
  2586. macro_version='2.2.6'
  2587. macro_revision='1.3012'
  2588. ltmain="$ac_aux_dir/ltmain.sh"
  2589. DEPDIR="${am__leading_dot}deps"
  2590. ac_config_commands="$ac_config_commands depfiles"
  2591. am_make=${MAKE-make}
  2592. cat > confinc << 'END'
  2593. am__doit:
  2594. @echo done
  2595. .PHONY: am__doit
  2596. END
  2597. # If we don't find an include directive, just comment out the code.
  2598. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2599. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2600. am__include="#"
  2601. am__quote=
  2602. _am_result=none
  2603. # First try GNU make style include.
  2604. echo "include confinc" > confmf
  2605. # We grep out `Entering directory' and `Leaving directory'
  2606. # messages which can occur if `w' ends up in MAKEFLAGS.
  2607. # In particular we don't look at `^make:' because GNU make might
  2608. # be invoked under some other name (usually "gmake"), in which
  2609. # case it prints its new name instead of `make'.
  2610. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2611. am__include=include
  2612. am__quote=
  2613. _am_result=GNU
  2614. fi
  2615. # Now try BSD make style include.
  2616. if test "$am__include" = "#"; then
  2617. echo '.include "confinc"' > confmf
  2618. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2619. am__include=.include
  2620. am__quote="\""
  2621. _am_result=BSD
  2622. fi
  2623. fi
  2624. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2625. $as_echo "$_am_result" >&6; }
  2626. rm -f confinc confmf
  2627. # Check whether --enable-dependency-tracking was given.
  2628. if test "${enable_dependency_tracking+set}" = set; then
  2629. enableval=$enable_dependency_tracking;
  2630. fi
  2631. if test "x$enable_dependency_tracking" != xno; then
  2632. am_depcomp="$ac_aux_dir/depcomp"
  2633. AMDEPBACKSLASH='\'
  2634. fi
  2635. if test "x$enable_dependency_tracking" != xno; then
  2636. AMDEP_TRUE=
  2637. AMDEP_FALSE='#'
  2638. else
  2639. AMDEP_TRUE='#'
  2640. AMDEP_FALSE=
  2641. fi
  2642. ac_ext=c
  2643. ac_cpp='$CPP $CPPFLAGS'
  2644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2647. if test -n "$ac_tool_prefix"; then
  2648. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2649. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2650. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2651. $as_echo_n "checking for $ac_word... " >&6; }
  2652. if test "${ac_cv_prog_CC+set}" = set; then
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. if test -n "$CC"; then
  2656. ac_cv_prog_CC="$CC" # Let the user override the test.
  2657. else
  2658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2659. for as_dir in $PATH
  2660. do
  2661. IFS=$as_save_IFS
  2662. test -z "$as_dir" && as_dir=.
  2663. for ac_exec_ext in '' $ac_executable_extensions; do
  2664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2665. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2666. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2667. break 2
  2668. fi
  2669. done
  2670. done
  2671. IFS=$as_save_IFS
  2672. fi
  2673. fi
  2674. CC=$ac_cv_prog_CC
  2675. if test -n "$CC"; then
  2676. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2677. $as_echo "$CC" >&6; }
  2678. else
  2679. { $as_echo "$as_me:$LINENO: result: no" >&5
  2680. $as_echo "no" >&6; }
  2681. fi
  2682. fi
  2683. if test -z "$ac_cv_prog_CC"; then
  2684. ac_ct_CC=$CC
  2685. # Extract the first word of "gcc", so it can be a program name with args.
  2686. set dummy gcc; ac_word=$2
  2687. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2688. $as_echo_n "checking for $ac_word... " >&6; }
  2689. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2690. $as_echo_n "(cached) " >&6
  2691. else
  2692. if test -n "$ac_ct_CC"; then
  2693. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2694. else
  2695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2696. for as_dir in $PATH
  2697. do
  2698. IFS=$as_save_IFS
  2699. test -z "$as_dir" && as_dir=.
  2700. for ac_exec_ext in '' $ac_executable_extensions; do
  2701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2702. ac_cv_prog_ac_ct_CC="gcc"
  2703. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2704. break 2
  2705. fi
  2706. done
  2707. done
  2708. IFS=$as_save_IFS
  2709. fi
  2710. fi
  2711. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2712. if test -n "$ac_ct_CC"; then
  2713. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2714. $as_echo "$ac_ct_CC" >&6; }
  2715. else
  2716. { $as_echo "$as_me:$LINENO: result: no" >&5
  2717. $as_echo "no" >&6; }
  2718. fi
  2719. if test "x$ac_ct_CC" = x; then
  2720. CC=""
  2721. else
  2722. case $cross_compiling:$ac_tool_warned in
  2723. yes:)
  2724. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2725. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2726. ac_tool_warned=yes ;;
  2727. esac
  2728. CC=$ac_ct_CC
  2729. fi
  2730. else
  2731. CC="$ac_cv_prog_CC"
  2732. fi
  2733. if test -z "$CC"; then
  2734. if test -n "$ac_tool_prefix"; then
  2735. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2736. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2737. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2738. $as_echo_n "checking for $ac_word... " >&6; }
  2739. if test "${ac_cv_prog_CC+set}" = set; then
  2740. $as_echo_n "(cached) " >&6
  2741. else
  2742. if test -n "$CC"; then
  2743. ac_cv_prog_CC="$CC" # Let the user override the test.
  2744. else
  2745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2746. for as_dir in $PATH
  2747. do
  2748. IFS=$as_save_IFS
  2749. test -z "$as_dir" && as_dir=.
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2752. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2753. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2754. break 2
  2755. fi
  2756. done
  2757. done
  2758. IFS=$as_save_IFS
  2759. fi
  2760. fi
  2761. CC=$ac_cv_prog_CC
  2762. if test -n "$CC"; then
  2763. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2764. $as_echo "$CC" >&6; }
  2765. else
  2766. { $as_echo "$as_me:$LINENO: result: no" >&5
  2767. $as_echo "no" >&6; }
  2768. fi
  2769. fi
  2770. fi
  2771. if test -z "$CC"; then
  2772. # Extract the first word of "cc", so it can be a program name with args.
  2773. set dummy cc; ac_word=$2
  2774. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2775. $as_echo_n "checking for $ac_word... " >&6; }
  2776. if test "${ac_cv_prog_CC+set}" = set; then
  2777. $as_echo_n "(cached) " >&6
  2778. else
  2779. if test -n "$CC"; then
  2780. ac_cv_prog_CC="$CC" # Let the user override the test.
  2781. else
  2782. ac_prog_rejected=no
  2783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2784. for as_dir in $PATH
  2785. do
  2786. IFS=$as_save_IFS
  2787. test -z "$as_dir" && as_dir=.
  2788. for ac_exec_ext in '' $ac_executable_extensions; do
  2789. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2790. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2791. ac_prog_rejected=yes
  2792. continue
  2793. fi
  2794. ac_cv_prog_CC="cc"
  2795. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2796. break 2
  2797. fi
  2798. done
  2799. done
  2800. IFS=$as_save_IFS
  2801. if test $ac_prog_rejected = yes; then
  2802. # We found a bogon in the path, so make sure we never use it.
  2803. set dummy $ac_cv_prog_CC
  2804. shift
  2805. if test $# != 0; then
  2806. # We chose a different compiler from the bogus one.
  2807. # However, it has the same basename, so the bogon will be chosen
  2808. # first if we set CC to just the basename; use the full file name.
  2809. shift
  2810. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2811. fi
  2812. fi
  2813. fi
  2814. fi
  2815. CC=$ac_cv_prog_CC
  2816. if test -n "$CC"; then
  2817. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2818. $as_echo "$CC" >&6; }
  2819. else
  2820. { $as_echo "$as_me:$LINENO: result: no" >&5
  2821. $as_echo "no" >&6; }
  2822. fi
  2823. fi
  2824. if test -z "$CC"; then
  2825. if test -n "$ac_tool_prefix"; then
  2826. for ac_prog in cl.exe
  2827. do
  2828. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2829. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2830. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2831. $as_echo_n "checking for $ac_word... " >&6; }
  2832. if test "${ac_cv_prog_CC+set}" = set; then
  2833. $as_echo_n "(cached) " >&6
  2834. else
  2835. if test -n "$CC"; then
  2836. ac_cv_prog_CC="$CC" # Let the user override the test.
  2837. else
  2838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2839. for as_dir in $PATH
  2840. do
  2841. IFS=$as_save_IFS
  2842. test -z "$as_dir" && as_dir=.
  2843. for ac_exec_ext in '' $ac_executable_extensions; do
  2844. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2845. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2846. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2847. break 2
  2848. fi
  2849. done
  2850. done
  2851. IFS=$as_save_IFS
  2852. fi
  2853. fi
  2854. CC=$ac_cv_prog_CC
  2855. if test -n "$CC"; then
  2856. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2857. $as_echo "$CC" >&6; }
  2858. else
  2859. { $as_echo "$as_me:$LINENO: result: no" >&5
  2860. $as_echo "no" >&6; }
  2861. fi
  2862. test -n "$CC" && break
  2863. done
  2864. fi
  2865. if test -z "$CC"; then
  2866. ac_ct_CC=$CC
  2867. for ac_prog in cl.exe
  2868. do
  2869. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2870. set dummy $ac_prog; ac_word=$2
  2871. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2872. $as_echo_n "checking for $ac_word... " >&6; }
  2873. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2874. $as_echo_n "(cached) " >&6
  2875. else
  2876. if test -n "$ac_ct_CC"; then
  2877. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2878. else
  2879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2880. for as_dir in $PATH
  2881. do
  2882. IFS=$as_save_IFS
  2883. test -z "$as_dir" && as_dir=.
  2884. for ac_exec_ext in '' $ac_executable_extensions; do
  2885. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2886. ac_cv_prog_ac_ct_CC="$ac_prog"
  2887. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2888. break 2
  2889. fi
  2890. done
  2891. done
  2892. IFS=$as_save_IFS
  2893. fi
  2894. fi
  2895. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2896. if test -n "$ac_ct_CC"; then
  2897. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2898. $as_echo "$ac_ct_CC" >&6; }
  2899. else
  2900. { $as_echo "$as_me:$LINENO: result: no" >&5
  2901. $as_echo "no" >&6; }
  2902. fi
  2903. test -n "$ac_ct_CC" && break
  2904. done
  2905. if test "x$ac_ct_CC" = x; then
  2906. CC=""
  2907. else
  2908. case $cross_compiling:$ac_tool_warned in
  2909. yes:)
  2910. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2911. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2912. ac_tool_warned=yes ;;
  2913. esac
  2914. CC=$ac_ct_CC
  2915. fi
  2916. fi
  2917. fi
  2918. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2919. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2920. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2921. See \`config.log' for more details." >&5
  2922. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2923. See \`config.log' for more details." >&2;}
  2924. { (exit 1); exit 1; }; }; }
  2925. # Provide some information about the compiler.
  2926. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2927. set X $ac_compile
  2928. ac_compiler=$2
  2929. { (ac_try="$ac_compiler --version >&5"
  2930. case "(($ac_try" in
  2931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2932. *) ac_try_echo=$ac_try;;
  2933. esac
  2934. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2935. $as_echo "$ac_try_echo") >&5
  2936. (eval "$ac_compiler --version >&5") 2>&5
  2937. ac_status=$?
  2938. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2939. (exit $ac_status); }
  2940. { (ac_try="$ac_compiler -v >&5"
  2941. case "(($ac_try" in
  2942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2943. *) ac_try_echo=$ac_try;;
  2944. esac
  2945. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2946. $as_echo "$ac_try_echo") >&5
  2947. (eval "$ac_compiler -v >&5") 2>&5
  2948. ac_status=$?
  2949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2950. (exit $ac_status); }
  2951. { (ac_try="$ac_compiler -V >&5"
  2952. case "(($ac_try" in
  2953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2954. *) ac_try_echo=$ac_try;;
  2955. esac
  2956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2957. $as_echo "$ac_try_echo") >&5
  2958. (eval "$ac_compiler -V >&5") 2>&5
  2959. ac_status=$?
  2960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2961. (exit $ac_status); }
  2962. cat >conftest.$ac_ext <<_ACEOF
  2963. /* confdefs.h. */
  2964. _ACEOF
  2965. cat confdefs.h >>conftest.$ac_ext
  2966. cat >>conftest.$ac_ext <<_ACEOF
  2967. /* end confdefs.h. */
  2968. int
  2969. main ()
  2970. {
  2971. ;
  2972. return 0;
  2973. }
  2974. _ACEOF
  2975. ac_clean_files_save=$ac_clean_files
  2976. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2977. # Try to create an executable without -o first, disregard a.out.
  2978. # It will help us diagnose broken compilers, and finding out an intuition
  2979. # of exeext.
  2980. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2981. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2982. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2983. # The possible output files:
  2984. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2985. ac_rmfiles=
  2986. for ac_file in $ac_files
  2987. do
  2988. case $ac_file in
  2989. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2990. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2991. esac
  2992. done
  2993. rm -f $ac_rmfiles
  2994. if { (ac_try="$ac_link_default"
  2995. case "(($ac_try" in
  2996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2997. *) ac_try_echo=$ac_try;;
  2998. esac
  2999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3000. $as_echo "$ac_try_echo") >&5
  3001. (eval "$ac_link_default") 2>&5
  3002. ac_status=$?
  3003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3004. (exit $ac_status); }; then
  3005. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3006. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3007. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3008. # so that the user can short-circuit this test for compilers unknown to
  3009. # Autoconf.
  3010. for ac_file in $ac_files ''
  3011. do
  3012. test -f "$ac_file" || continue
  3013. case $ac_file in
  3014. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3015. ;;
  3016. [ab].out )
  3017. # We found the default executable, but exeext='' is most
  3018. # certainly right.
  3019. break;;
  3020. *.* )
  3021. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3022. then :; else
  3023. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3024. fi
  3025. # We set ac_cv_exeext here because the later test for it is not
  3026. # safe: cross compilers may not add the suffix if given an `-o'
  3027. # argument, so we may need to know it at that point already.
  3028. # Even if this section looks crufty: it has the advantage of
  3029. # actually working.
  3030. break;;
  3031. * )
  3032. break;;
  3033. esac
  3034. done
  3035. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3036. else
  3037. ac_file=''
  3038. fi
  3039. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  3040. $as_echo "$ac_file" >&6; }
  3041. if test -z "$ac_file"; then
  3042. $as_echo "$as_me: failed program was:" >&5
  3043. sed 's/^/| /' conftest.$ac_ext >&5
  3044. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3045. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3046. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  3047. See \`config.log' for more details." >&5
  3048. $as_echo "$as_me: error: C compiler cannot create executables
  3049. See \`config.log' for more details." >&2;}
  3050. { (exit 77); exit 77; }; }; }
  3051. fi
  3052. ac_exeext=$ac_cv_exeext
  3053. # Check that the compiler produces executables we can run. If not, either
  3054. # the compiler is broken, or we cross compile.
  3055. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  3056. $as_echo_n "checking whether the C compiler works... " >&6; }
  3057. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  3058. # If not cross compiling, check that we can run a simple program.
  3059. if test "$cross_compiling" != yes; then
  3060. if { ac_try='./$ac_file'
  3061. { (case "(($ac_try" in
  3062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3063. *) ac_try_echo=$ac_try;;
  3064. esac
  3065. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3066. $as_echo "$ac_try_echo") >&5
  3067. (eval "$ac_try") 2>&5
  3068. ac_status=$?
  3069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3070. (exit $ac_status); }; }; then
  3071. cross_compiling=no
  3072. else
  3073. if test "$cross_compiling" = maybe; then
  3074. cross_compiling=yes
  3075. else
  3076. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  3079. If you meant to cross compile, use \`--host'.
  3080. See \`config.log' for more details." >&5
  3081. $as_echo "$as_me: error: cannot run C compiled programs.
  3082. If you meant to cross compile, use \`--host'.
  3083. See \`config.log' for more details." >&2;}
  3084. { (exit 1); exit 1; }; }; }
  3085. fi
  3086. fi
  3087. fi
  3088. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3089. $as_echo "yes" >&6; }
  3090. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3091. ac_clean_files=$ac_clean_files_save
  3092. # Check that the compiler produces executables we can run. If not, either
  3093. # the compiler is broken, or we cross compile.
  3094. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  3095. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3096. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  3097. $as_echo "$cross_compiling" >&6; }
  3098. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  3099. $as_echo_n "checking for suffix of executables... " >&6; }
  3100. if { (ac_try="$ac_link"
  3101. case "(($ac_try" in
  3102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3103. *) ac_try_echo=$ac_try;;
  3104. esac
  3105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3106. $as_echo "$ac_try_echo") >&5
  3107. (eval "$ac_link") 2>&5
  3108. ac_status=$?
  3109. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3110. (exit $ac_status); }; then
  3111. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3112. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3113. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3114. # `rm'.
  3115. for ac_file in conftest.exe conftest conftest.*; do
  3116. test -f "$ac_file" || continue
  3117. case $ac_file in
  3118. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3119. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3120. break;;
  3121. * ) break;;
  3122. esac
  3123. done
  3124. else
  3125. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3126. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3127. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  3128. See \`config.log' for more details." >&5
  3129. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  3130. See \`config.log' for more details." >&2;}
  3131. { (exit 1); exit 1; }; }; }
  3132. fi
  3133. rm -f conftest$ac_cv_exeext
  3134. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  3135. $as_echo "$ac_cv_exeext" >&6; }
  3136. rm -f conftest.$ac_ext
  3137. EXEEXT=$ac_cv_exeext
  3138. ac_exeext=$EXEEXT
  3139. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3140. $as_echo_n "checking for suffix of object files... " >&6; }
  3141. if test "${ac_cv_objext+set}" = set; then
  3142. $as_echo_n "(cached) " >&6
  3143. else
  3144. cat >conftest.$ac_ext <<_ACEOF
  3145. /* confdefs.h. */
  3146. _ACEOF
  3147. cat confdefs.h >>conftest.$ac_ext
  3148. cat >>conftest.$ac_ext <<_ACEOF
  3149. /* end confdefs.h. */
  3150. int
  3151. main ()
  3152. {
  3153. ;
  3154. return 0;
  3155. }
  3156. _ACEOF
  3157. rm -f conftest.o conftest.obj
  3158. if { (ac_try="$ac_compile"
  3159. case "(($ac_try" in
  3160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3161. *) ac_try_echo=$ac_try;;
  3162. esac
  3163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3164. $as_echo "$ac_try_echo") >&5
  3165. (eval "$ac_compile") 2>&5
  3166. ac_status=$?
  3167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3168. (exit $ac_status); }; then
  3169. for ac_file in conftest.o conftest.obj conftest.*; do
  3170. test -f "$ac_file" || continue;
  3171. case $ac_file in
  3172. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3173. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3174. break;;
  3175. esac
  3176. done
  3177. else
  3178. $as_echo "$as_me: failed program was:" >&5
  3179. sed 's/^/| /' conftest.$ac_ext >&5
  3180. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3182. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3183. See \`config.log' for more details." >&5
  3184. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3185. See \`config.log' for more details." >&2;}
  3186. { (exit 1); exit 1; }; }; }
  3187. fi
  3188. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3189. fi
  3190. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3191. $as_echo "$ac_cv_objext" >&6; }
  3192. OBJEXT=$ac_cv_objext
  3193. ac_objext=$OBJEXT
  3194. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3195. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3196. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3197. $as_echo_n "(cached) " >&6
  3198. else
  3199. cat >conftest.$ac_ext <<_ACEOF
  3200. /* confdefs.h. */
  3201. _ACEOF
  3202. cat confdefs.h >>conftest.$ac_ext
  3203. cat >>conftest.$ac_ext <<_ACEOF
  3204. /* end confdefs.h. */
  3205. int
  3206. main ()
  3207. {
  3208. #ifndef __GNUC__
  3209. choke me
  3210. #endif
  3211. ;
  3212. return 0;
  3213. }
  3214. _ACEOF
  3215. rm -f conftest.$ac_objext
  3216. if { (ac_try="$ac_compile"
  3217. case "(($ac_try" in
  3218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3219. *) ac_try_echo=$ac_try;;
  3220. esac
  3221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3222. $as_echo "$ac_try_echo") >&5
  3223. (eval "$ac_compile") 2>conftest.er1
  3224. ac_status=$?
  3225. grep -v '^ *+' conftest.er1 >conftest.err
  3226. rm -f conftest.er1
  3227. cat conftest.err >&5
  3228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3229. (exit $ac_status); } && {
  3230. test -z "$ac_c_werror_flag" ||
  3231. test ! -s conftest.err
  3232. } && test -s conftest.$ac_objext; then
  3233. ac_compiler_gnu=yes
  3234. else
  3235. $as_echo "$as_me: failed program was:" >&5
  3236. sed 's/^/| /' conftest.$ac_ext >&5
  3237. ac_compiler_gnu=no
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3241. fi
  3242. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3243. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3244. if test $ac_compiler_gnu = yes; then
  3245. GCC=yes
  3246. else
  3247. GCC=
  3248. fi
  3249. ac_test_CFLAGS=${CFLAGS+set}
  3250. ac_save_CFLAGS=$CFLAGS
  3251. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3252. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3253. if test "${ac_cv_prog_cc_g+set}" = set; then
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. ac_save_c_werror_flag=$ac_c_werror_flag
  3257. ac_c_werror_flag=yes
  3258. ac_cv_prog_cc_g=no
  3259. CFLAGS="-g"
  3260. cat >conftest.$ac_ext <<_ACEOF
  3261. /* confdefs.h. */
  3262. _ACEOF
  3263. cat confdefs.h >>conftest.$ac_ext
  3264. cat >>conftest.$ac_ext <<_ACEOF
  3265. /* end confdefs.h. */
  3266. int
  3267. main ()
  3268. {
  3269. ;
  3270. return 0;
  3271. }
  3272. _ACEOF
  3273. rm -f conftest.$ac_objext
  3274. if { (ac_try="$ac_compile"
  3275. case "(($ac_try" in
  3276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3277. *) ac_try_echo=$ac_try;;
  3278. esac
  3279. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3280. $as_echo "$ac_try_echo") >&5
  3281. (eval "$ac_compile") 2>conftest.er1
  3282. ac_status=$?
  3283. grep -v '^ *+' conftest.er1 >conftest.err
  3284. rm -f conftest.er1
  3285. cat conftest.err >&5
  3286. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3287. (exit $ac_status); } && {
  3288. test -z "$ac_c_werror_flag" ||
  3289. test ! -s conftest.err
  3290. } && test -s conftest.$ac_objext; then
  3291. ac_cv_prog_cc_g=yes
  3292. else
  3293. $as_echo "$as_me: failed program was:" >&5
  3294. sed 's/^/| /' conftest.$ac_ext >&5
  3295. CFLAGS=""
  3296. cat >conftest.$ac_ext <<_ACEOF
  3297. /* confdefs.h. */
  3298. _ACEOF
  3299. cat confdefs.h >>conftest.$ac_ext
  3300. cat >>conftest.$ac_ext <<_ACEOF
  3301. /* end confdefs.h. */
  3302. int
  3303. main ()
  3304. {
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. rm -f conftest.$ac_objext
  3310. if { (ac_try="$ac_compile"
  3311. case "(($ac_try" in
  3312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3313. *) ac_try_echo=$ac_try;;
  3314. esac
  3315. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3316. $as_echo "$ac_try_echo") >&5
  3317. (eval "$ac_compile") 2>conftest.er1
  3318. ac_status=$?
  3319. grep -v '^ *+' conftest.er1 >conftest.err
  3320. rm -f conftest.er1
  3321. cat conftest.err >&5
  3322. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. (exit $ac_status); } && {
  3324. test -z "$ac_c_werror_flag" ||
  3325. test ! -s conftest.err
  3326. } && test -s conftest.$ac_objext; then
  3327. :
  3328. else
  3329. $as_echo "$as_me: failed program was:" >&5
  3330. sed 's/^/| /' conftest.$ac_ext >&5
  3331. ac_c_werror_flag=$ac_save_c_werror_flag
  3332. CFLAGS="-g"
  3333. cat >conftest.$ac_ext <<_ACEOF
  3334. /* confdefs.h. */
  3335. _ACEOF
  3336. cat confdefs.h >>conftest.$ac_ext
  3337. cat >>conftest.$ac_ext <<_ACEOF
  3338. /* end confdefs.h. */
  3339. int
  3340. main ()
  3341. {
  3342. ;
  3343. return 0;
  3344. }
  3345. _ACEOF
  3346. rm -f conftest.$ac_objext
  3347. if { (ac_try="$ac_compile"
  3348. case "(($ac_try" in
  3349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3350. *) ac_try_echo=$ac_try;;
  3351. esac
  3352. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3353. $as_echo "$ac_try_echo") >&5
  3354. (eval "$ac_compile") 2>conftest.er1
  3355. ac_status=$?
  3356. grep -v '^ *+' conftest.er1 >conftest.err
  3357. rm -f conftest.er1
  3358. cat conftest.err >&5
  3359. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3360. (exit $ac_status); } && {
  3361. test -z "$ac_c_werror_flag" ||
  3362. test ! -s conftest.err
  3363. } && test -s conftest.$ac_objext; then
  3364. ac_cv_prog_cc_g=yes
  3365. else
  3366. $as_echo "$as_me: failed program was:" >&5
  3367. sed 's/^/| /' conftest.$ac_ext >&5
  3368. fi
  3369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3370. fi
  3371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3372. fi
  3373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3374. ac_c_werror_flag=$ac_save_c_werror_flag
  3375. fi
  3376. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3377. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3378. if test "$ac_test_CFLAGS" = set; then
  3379. CFLAGS=$ac_save_CFLAGS
  3380. elif test $ac_cv_prog_cc_g = yes; then
  3381. if test "$GCC" = yes; then
  3382. CFLAGS="-g -O2"
  3383. else
  3384. CFLAGS="-g"
  3385. fi
  3386. else
  3387. if test "$GCC" = yes; then
  3388. CFLAGS="-O2"
  3389. else
  3390. CFLAGS=
  3391. fi
  3392. fi
  3393. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3394. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3395. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. ac_cv_prog_cc_c89=no
  3399. ac_save_CC=$CC
  3400. cat >conftest.$ac_ext <<_ACEOF
  3401. /* confdefs.h. */
  3402. _ACEOF
  3403. cat confdefs.h >>conftest.$ac_ext
  3404. cat >>conftest.$ac_ext <<_ACEOF
  3405. /* end confdefs.h. */
  3406. #include <stdarg.h>
  3407. #include <stdio.h>
  3408. #include <sys/types.h>
  3409. #include <sys/stat.h>
  3410. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3411. struct buf { int x; };
  3412. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3413. static char *e (p, i)
  3414. char **p;
  3415. int i;
  3416. {
  3417. return p[i];
  3418. }
  3419. static char *f (char * (*g) (char **, int), char **p, ...)
  3420. {
  3421. char *s;
  3422. va_list v;
  3423. va_start (v,p);
  3424. s = g (p, va_arg (v,int));
  3425. va_end (v);
  3426. return s;
  3427. }
  3428. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3429. function prototypes and stuff, but not '\xHH' hex character constants.
  3430. These don't provoke an error unfortunately, instead are silently treated
  3431. as 'x'. The following induces an error, until -std is added to get
  3432. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3433. array size at least. It's necessary to write '\x00'==0 to get something
  3434. that's true only with -std. */
  3435. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3436. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3437. inside strings and character constants. */
  3438. #define FOO(x) 'x'
  3439. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3440. int test (int i, double x);
  3441. struct s1 {int (*f) (int a);};
  3442. struct s2 {int (*f) (double a);};
  3443. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3444. int argc;
  3445. char **argv;
  3446. int
  3447. main ()
  3448. {
  3449. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3450. ;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3455. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3456. do
  3457. CC="$ac_save_CC $ac_arg"
  3458. rm -f conftest.$ac_objext
  3459. if { (ac_try="$ac_compile"
  3460. case "(($ac_try" in
  3461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3462. *) ac_try_echo=$ac_try;;
  3463. esac
  3464. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3465. $as_echo "$ac_try_echo") >&5
  3466. (eval "$ac_compile") 2>conftest.er1
  3467. ac_status=$?
  3468. grep -v '^ *+' conftest.er1 >conftest.err
  3469. rm -f conftest.er1
  3470. cat conftest.err >&5
  3471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3472. (exit $ac_status); } && {
  3473. test -z "$ac_c_werror_flag" ||
  3474. test ! -s conftest.err
  3475. } && test -s conftest.$ac_objext; then
  3476. ac_cv_prog_cc_c89=$ac_arg
  3477. else
  3478. $as_echo "$as_me: failed program was:" >&5
  3479. sed 's/^/| /' conftest.$ac_ext >&5
  3480. fi
  3481. rm -f core conftest.err conftest.$ac_objext
  3482. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3483. done
  3484. rm -f conftest.$ac_ext
  3485. CC=$ac_save_CC
  3486. fi
  3487. # AC_CACHE_VAL
  3488. case "x$ac_cv_prog_cc_c89" in
  3489. x)
  3490. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3491. $as_echo "none needed" >&6; } ;;
  3492. xno)
  3493. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3494. $as_echo "unsupported" >&6; } ;;
  3495. *)
  3496. CC="$CC $ac_cv_prog_cc_c89"
  3497. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3498. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3499. esac
  3500. ac_ext=c
  3501. ac_cpp='$CPP $CPPFLAGS'
  3502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3505. depcc="$CC" am_compiler_list=
  3506. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3507. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3508. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3512. # We make a subdir and do the tests there. Otherwise we can end up
  3513. # making bogus files that we don't know about and never remove. For
  3514. # instance it was reported that on HP-UX the gcc test will end up
  3515. # making a dummy file named `D' -- because `-MD' means `put the output
  3516. # in D'.
  3517. mkdir conftest.dir
  3518. # Copy depcomp to subdir because otherwise we won't find it if we're
  3519. # using a relative directory.
  3520. cp "$am_depcomp" conftest.dir
  3521. cd conftest.dir
  3522. # We will build objects and dependencies in a subdirectory because
  3523. # it helps to detect inapplicable dependency modes. For instance
  3524. # both Tru64's cc and ICC support -MD to output dependencies as a
  3525. # side effect of compilation, but ICC will put the dependencies in
  3526. # the current directory while Tru64 will put them in the object
  3527. # directory.
  3528. mkdir sub
  3529. am_cv_CC_dependencies_compiler_type=none
  3530. if test "$am_compiler_list" = ""; then
  3531. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3532. fi
  3533. for depmode in $am_compiler_list; do
  3534. # Setup a source with many dependencies, because some compilers
  3535. # like to wrap large dependency lists on column 80 (with \), and
  3536. # we should not choose a depcomp mode which is confused by this.
  3537. #
  3538. # We need to recreate these files for each test, as the compiler may
  3539. # overwrite some of them when testing with obscure command lines.
  3540. # This happens at least with the AIX C compiler.
  3541. : > sub/conftest.c
  3542. for i in 1 2 3 4 5 6; do
  3543. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3544. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3545. # Solaris 8's {/usr,}/bin/sh.
  3546. touch sub/conftst$i.h
  3547. done
  3548. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3549. case $depmode in
  3550. nosideeffect)
  3551. # after this tag, mechanisms are not by side-effect, so they'll
  3552. # only be used when explicitly requested
  3553. if test "x$enable_dependency_tracking" = xyes; then
  3554. continue
  3555. else
  3556. break
  3557. fi
  3558. ;;
  3559. none) break ;;
  3560. esac
  3561. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3562. # mode. It turns out that the SunPro C++ compiler does not properly
  3563. # handle `-M -o', and we need to detect this.
  3564. if depmode=$depmode \
  3565. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3566. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3567. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3568. >/dev/null 2>conftest.err &&
  3569. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3570. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3571. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3572. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3573. # icc doesn't choke on unknown options, it will just issue warnings
  3574. # or remarks (even with -Werror). So we grep stderr for any message
  3575. # that says an option was ignored or not supported.
  3576. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3577. # icc: Command line warning: ignoring option '-M'; no argument required
  3578. # The diagnosis changed in icc 8.0:
  3579. # icc: Command line remark: option '-MP' not supported
  3580. if (grep 'ignoring option' conftest.err ||
  3581. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3582. am_cv_CC_dependencies_compiler_type=$depmode
  3583. break
  3584. fi
  3585. fi
  3586. done
  3587. cd ..
  3588. rm -rf conftest.dir
  3589. else
  3590. am_cv_CC_dependencies_compiler_type=none
  3591. fi
  3592. fi
  3593. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3594. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3595. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3596. if
  3597. test "x$enable_dependency_tracking" != xno \
  3598. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3599. am__fastdepCC_TRUE=
  3600. am__fastdepCC_FALSE='#'
  3601. else
  3602. am__fastdepCC_TRUE='#'
  3603. am__fastdepCC_FALSE=
  3604. fi
  3605. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3606. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3607. if test "${ac_cv_path_SED+set}" = set; then
  3608. $as_echo_n "(cached) " >&6
  3609. else
  3610. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3611. for ac_i in 1 2 3 4 5 6 7; do
  3612. ac_script="$ac_script$as_nl$ac_script"
  3613. done
  3614. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3615. $as_unset ac_script || ac_script=
  3616. if test -z "$SED"; then
  3617. ac_path_SED_found=false
  3618. # Loop through the user's path and test for each of PROGNAME-LIST
  3619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3620. for as_dir in $PATH
  3621. do
  3622. IFS=$as_save_IFS
  3623. test -z "$as_dir" && as_dir=.
  3624. for ac_prog in sed gsed; do
  3625. for ac_exec_ext in '' $ac_executable_extensions; do
  3626. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3627. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3628. # Check for GNU ac_path_SED and select it if it is found.
  3629. # Check for GNU $ac_path_SED
  3630. case `"$ac_path_SED" --version 2>&1` in
  3631. *GNU*)
  3632. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3633. *)
  3634. ac_count=0
  3635. $as_echo_n 0123456789 >"conftest.in"
  3636. while :
  3637. do
  3638. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3639. mv "conftest.tmp" "conftest.in"
  3640. cp "conftest.in" "conftest.nl"
  3641. $as_echo '' >> "conftest.nl"
  3642. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3643. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3644. ac_count=`expr $ac_count + 1`
  3645. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3646. # Best one so far, save it but keep looking for a better one
  3647. ac_cv_path_SED="$ac_path_SED"
  3648. ac_path_SED_max=$ac_count
  3649. fi
  3650. # 10*(2^10) chars as input seems more than enough
  3651. test $ac_count -gt 10 && break
  3652. done
  3653. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3654. esac
  3655. $ac_path_SED_found && break 3
  3656. done
  3657. done
  3658. done
  3659. IFS=$as_save_IFS
  3660. if test -z "$ac_cv_path_SED"; then
  3661. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  3662. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  3663. { (exit 1); exit 1; }; }
  3664. fi
  3665. else
  3666. ac_cv_path_SED=$SED
  3667. fi
  3668. fi
  3669. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  3670. $as_echo "$ac_cv_path_SED" >&6; }
  3671. SED="$ac_cv_path_SED"
  3672. rm -f conftest.sed
  3673. test -z "$SED" && SED=sed
  3674. Xsed="$SED -e 1s/^X//"
  3675. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3676. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3677. if test "${ac_cv_path_GREP+set}" = set; then
  3678. $as_echo_n "(cached) " >&6
  3679. else
  3680. if test -z "$GREP"; then
  3681. ac_path_GREP_found=false
  3682. # Loop through the user's path and test for each of PROGNAME-LIST
  3683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3684. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3685. do
  3686. IFS=$as_save_IFS
  3687. test -z "$as_dir" && as_dir=.
  3688. for ac_prog in grep ggrep; do
  3689. for ac_exec_ext in '' $ac_executable_extensions; do
  3690. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3691. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3692. # Check for GNU ac_path_GREP and select it if it is found.
  3693. # Check for GNU $ac_path_GREP
  3694. case `"$ac_path_GREP" --version 2>&1` in
  3695. *GNU*)
  3696. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3697. *)
  3698. ac_count=0
  3699. $as_echo_n 0123456789 >"conftest.in"
  3700. while :
  3701. do
  3702. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3703. mv "conftest.tmp" "conftest.in"
  3704. cp "conftest.in" "conftest.nl"
  3705. $as_echo 'GREP' >> "conftest.nl"
  3706. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3707. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3708. ac_count=`expr $ac_count + 1`
  3709. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3710. # Best one so far, save it but keep looking for a better one
  3711. ac_cv_path_GREP="$ac_path_GREP"
  3712. ac_path_GREP_max=$ac_count
  3713. fi
  3714. # 10*(2^10) chars as input seems more than enough
  3715. test $ac_count -gt 10 && break
  3716. done
  3717. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3718. esac
  3719. $ac_path_GREP_found && break 3
  3720. done
  3721. done
  3722. done
  3723. IFS=$as_save_IFS
  3724. if test -z "$ac_cv_path_GREP"; then
  3725. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3726. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3727. { (exit 1); exit 1; }; }
  3728. fi
  3729. else
  3730. ac_cv_path_GREP=$GREP
  3731. fi
  3732. fi
  3733. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3734. $as_echo "$ac_cv_path_GREP" >&6; }
  3735. GREP="$ac_cv_path_GREP"
  3736. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3737. $as_echo_n "checking for egrep... " >&6; }
  3738. if test "${ac_cv_path_EGREP+set}" = set; then
  3739. $as_echo_n "(cached) " >&6
  3740. else
  3741. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3742. then ac_cv_path_EGREP="$GREP -E"
  3743. else
  3744. if test -z "$EGREP"; then
  3745. ac_path_EGREP_found=false
  3746. # Loop through the user's path and test for each of PROGNAME-LIST
  3747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3748. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3749. do
  3750. IFS=$as_save_IFS
  3751. test -z "$as_dir" && as_dir=.
  3752. for ac_prog in egrep; do
  3753. for ac_exec_ext in '' $ac_executable_extensions; do
  3754. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3755. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3756. # Check for GNU ac_path_EGREP and select it if it is found.
  3757. # Check for GNU $ac_path_EGREP
  3758. case `"$ac_path_EGREP" --version 2>&1` in
  3759. *GNU*)
  3760. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3761. *)
  3762. ac_count=0
  3763. $as_echo_n 0123456789 >"conftest.in"
  3764. while :
  3765. do
  3766. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3767. mv "conftest.tmp" "conftest.in"
  3768. cp "conftest.in" "conftest.nl"
  3769. $as_echo 'EGREP' >> "conftest.nl"
  3770. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3771. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3772. ac_count=`expr $ac_count + 1`
  3773. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3774. # Best one so far, save it but keep looking for a better one
  3775. ac_cv_path_EGREP="$ac_path_EGREP"
  3776. ac_path_EGREP_max=$ac_count
  3777. fi
  3778. # 10*(2^10) chars as input seems more than enough
  3779. test $ac_count -gt 10 && break
  3780. done
  3781. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3782. esac
  3783. $ac_path_EGREP_found && break 3
  3784. done
  3785. done
  3786. done
  3787. IFS=$as_save_IFS
  3788. if test -z "$ac_cv_path_EGREP"; then
  3789. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3790. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3791. { (exit 1); exit 1; }; }
  3792. fi
  3793. else
  3794. ac_cv_path_EGREP=$EGREP
  3795. fi
  3796. fi
  3797. fi
  3798. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3799. $as_echo "$ac_cv_path_EGREP" >&6; }
  3800. EGREP="$ac_cv_path_EGREP"
  3801. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  3802. $as_echo_n "checking for fgrep... " >&6; }
  3803. if test "${ac_cv_path_FGREP+set}" = set; then
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3807. then ac_cv_path_FGREP="$GREP -F"
  3808. else
  3809. if test -z "$FGREP"; then
  3810. ac_path_FGREP_found=false
  3811. # Loop through the user's path and test for each of PROGNAME-LIST
  3812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3813. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3814. do
  3815. IFS=$as_save_IFS
  3816. test -z "$as_dir" && as_dir=.
  3817. for ac_prog in fgrep; do
  3818. for ac_exec_ext in '' $ac_executable_extensions; do
  3819. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3820. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  3821. # Check for GNU ac_path_FGREP and select it if it is found.
  3822. # Check for GNU $ac_path_FGREP
  3823. case `"$ac_path_FGREP" --version 2>&1` in
  3824. *GNU*)
  3825. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3826. *)
  3827. ac_count=0
  3828. $as_echo_n 0123456789 >"conftest.in"
  3829. while :
  3830. do
  3831. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3832. mv "conftest.tmp" "conftest.in"
  3833. cp "conftest.in" "conftest.nl"
  3834. $as_echo 'FGREP' >> "conftest.nl"
  3835. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3836. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3837. ac_count=`expr $ac_count + 1`
  3838. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3839. # Best one so far, save it but keep looking for a better one
  3840. ac_cv_path_FGREP="$ac_path_FGREP"
  3841. ac_path_FGREP_max=$ac_count
  3842. fi
  3843. # 10*(2^10) chars as input seems more than enough
  3844. test $ac_count -gt 10 && break
  3845. done
  3846. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3847. esac
  3848. $ac_path_FGREP_found && break 3
  3849. done
  3850. done
  3851. done
  3852. IFS=$as_save_IFS
  3853. if test -z "$ac_cv_path_FGREP"; then
  3854. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3855. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3856. { (exit 1); exit 1; }; }
  3857. fi
  3858. else
  3859. ac_cv_path_FGREP=$FGREP
  3860. fi
  3861. fi
  3862. fi
  3863. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  3864. $as_echo "$ac_cv_path_FGREP" >&6; }
  3865. FGREP="$ac_cv_path_FGREP"
  3866. test -z "$GREP" && GREP=grep
  3867. # Check whether --with-gnu-ld was given.
  3868. if test "${with_gnu_ld+set}" = set; then
  3869. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3870. else
  3871. with_gnu_ld=no
  3872. fi
  3873. ac_prog=ld
  3874. if test "$GCC" = yes; then
  3875. # Check if gcc -print-prog-name=ld gives a path.
  3876. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3877. $as_echo_n "checking for ld used by $CC... " >&6; }
  3878. case $host in
  3879. *-*-mingw*)
  3880. # gcc leaves a trailing carriage return which upsets mingw
  3881. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3882. *)
  3883. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3884. esac
  3885. case $ac_prog in
  3886. # Accept absolute paths.
  3887. [\\/]* | ?:[\\/]*)
  3888. re_direlt='/[^/][^/]*/\.\./'
  3889. # Canonicalize the pathname of ld
  3890. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3891. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3892. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3893. done
  3894. test -z "$LD" && LD="$ac_prog"
  3895. ;;
  3896. "")
  3897. # If it fails, then pretend we aren't using GCC.
  3898. ac_prog=ld
  3899. ;;
  3900. *)
  3901. # If it is relative, then search for the first ld in PATH.
  3902. with_gnu_ld=unknown
  3903. ;;
  3904. esac
  3905. elif test "$with_gnu_ld" = yes; then
  3906. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  3907. $as_echo_n "checking for GNU ld... " >&6; }
  3908. else
  3909. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3910. $as_echo_n "checking for non-GNU ld... " >&6; }
  3911. fi
  3912. if test "${lt_cv_path_LD+set}" = set; then
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if test -z "$LD"; then
  3916. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3917. for ac_dir in $PATH; do
  3918. IFS="$lt_save_ifs"
  3919. test -z "$ac_dir" && ac_dir=.
  3920. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3921. lt_cv_path_LD="$ac_dir/$ac_prog"
  3922. # Check to see if the program is GNU ld. I'd rather use --version,
  3923. # but apparently some variants of GNU ld only accept -v.
  3924. # Break only if it was the GNU/non-GNU ld that we prefer.
  3925. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3926. *GNU* | *'with BFD'*)
  3927. test "$with_gnu_ld" != no && break
  3928. ;;
  3929. *)
  3930. test "$with_gnu_ld" != yes && break
  3931. ;;
  3932. esac
  3933. fi
  3934. done
  3935. IFS="$lt_save_ifs"
  3936. else
  3937. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3938. fi
  3939. fi
  3940. LD="$lt_cv_path_LD"
  3941. if test -n "$LD"; then
  3942. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  3943. $as_echo "$LD" >&6; }
  3944. else
  3945. { $as_echo "$as_me:$LINENO: result: no" >&5
  3946. $as_echo "no" >&6; }
  3947. fi
  3948. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3949. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3950. { (exit 1); exit 1; }; }
  3951. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3952. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3953. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3954. $as_echo_n "(cached) " >&6
  3955. else
  3956. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3957. case `$LD -v 2>&1 </dev/null` in
  3958. *GNU* | *'with BFD'*)
  3959. lt_cv_prog_gnu_ld=yes
  3960. ;;
  3961. *)
  3962. lt_cv_prog_gnu_ld=no
  3963. ;;
  3964. esac
  3965. fi
  3966. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3967. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3968. with_gnu_ld=$lt_cv_prog_gnu_ld
  3969. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  3970. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3971. if test "${lt_cv_path_NM+set}" = set; then
  3972. $as_echo_n "(cached) " >&6
  3973. else
  3974. if test -n "$NM"; then
  3975. # Let the user override the test.
  3976. lt_cv_path_NM="$NM"
  3977. else
  3978. lt_nm_to_check="${ac_tool_prefix}nm"
  3979. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3980. lt_nm_to_check="$lt_nm_to_check nm"
  3981. fi
  3982. for lt_tmp_nm in $lt_nm_to_check; do
  3983. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3984. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3985. IFS="$lt_save_ifs"
  3986. test -z "$ac_dir" && ac_dir=.
  3987. tmp_nm="$ac_dir/$lt_tmp_nm"
  3988. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3989. # Check to see if the nm accepts a BSD-compat flag.
  3990. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3991. # nm: unknown option "B" ignored
  3992. # Tru64's nm complains that /dev/null is an invalid object file
  3993. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3994. */dev/null* | *'Invalid file or object type'*)
  3995. lt_cv_path_NM="$tmp_nm -B"
  3996. break
  3997. ;;
  3998. *)
  3999. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4000. */dev/null*)
  4001. lt_cv_path_NM="$tmp_nm -p"
  4002. break
  4003. ;;
  4004. *)
  4005. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4006. continue # so that we can try to find one that supports BSD flags
  4007. ;;
  4008. esac
  4009. ;;
  4010. esac
  4011. fi
  4012. done
  4013. IFS="$lt_save_ifs"
  4014. done
  4015. : ${lt_cv_path_NM=no}
  4016. fi
  4017. fi
  4018. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4019. $as_echo "$lt_cv_path_NM" >&6; }
  4020. if test "$lt_cv_path_NM" != "no"; then
  4021. NM="$lt_cv_path_NM"
  4022. else
  4023. # Didn't find any BSD compatible name lister, look for dumpbin.
  4024. if test -n "$ac_tool_prefix"; then
  4025. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4026. do
  4027. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4028. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4029. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4030. $as_echo_n "checking for $ac_word... " >&6; }
  4031. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4032. $as_echo_n "(cached) " >&6
  4033. else
  4034. if test -n "$DUMPBIN"; then
  4035. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4036. else
  4037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4038. for as_dir in $PATH
  4039. do
  4040. IFS=$as_save_IFS
  4041. test -z "$as_dir" && as_dir=.
  4042. for ac_exec_ext in '' $ac_executable_extensions; do
  4043. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4044. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4045. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4046. break 2
  4047. fi
  4048. done
  4049. done
  4050. IFS=$as_save_IFS
  4051. fi
  4052. fi
  4053. DUMPBIN=$ac_cv_prog_DUMPBIN
  4054. if test -n "$DUMPBIN"; then
  4055. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4056. $as_echo "$DUMPBIN" >&6; }
  4057. else
  4058. { $as_echo "$as_me:$LINENO: result: no" >&5
  4059. $as_echo "no" >&6; }
  4060. fi
  4061. test -n "$DUMPBIN" && break
  4062. done
  4063. fi
  4064. if test -z "$DUMPBIN"; then
  4065. ac_ct_DUMPBIN=$DUMPBIN
  4066. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4067. do
  4068. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4069. set dummy $ac_prog; ac_word=$2
  4070. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4071. $as_echo_n "checking for $ac_word... " >&6; }
  4072. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4073. $as_echo_n "(cached) " >&6
  4074. else
  4075. if test -n "$ac_ct_DUMPBIN"; then
  4076. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4077. else
  4078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4079. for as_dir in $PATH
  4080. do
  4081. IFS=$as_save_IFS
  4082. test -z "$as_dir" && as_dir=.
  4083. for ac_exec_ext in '' $ac_executable_extensions; do
  4084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4085. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4086. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4087. break 2
  4088. fi
  4089. done
  4090. done
  4091. IFS=$as_save_IFS
  4092. fi
  4093. fi
  4094. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4095. if test -n "$ac_ct_DUMPBIN"; then
  4096. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4097. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4098. else
  4099. { $as_echo "$as_me:$LINENO: result: no" >&5
  4100. $as_echo "no" >&6; }
  4101. fi
  4102. test -n "$ac_ct_DUMPBIN" && break
  4103. done
  4104. if test "x$ac_ct_DUMPBIN" = x; then
  4105. DUMPBIN=":"
  4106. else
  4107. case $cross_compiling:$ac_tool_warned in
  4108. yes:)
  4109. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4110. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4111. ac_tool_warned=yes ;;
  4112. esac
  4113. DUMPBIN=$ac_ct_DUMPBIN
  4114. fi
  4115. fi
  4116. if test "$DUMPBIN" != ":"; then
  4117. NM="$DUMPBIN"
  4118. fi
  4119. fi
  4120. test -z "$NM" && NM=nm
  4121. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4122. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4123. if test "${lt_cv_nm_interface+set}" = set; then
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. lt_cv_nm_interface="BSD nm"
  4127. echo "int some_variable = 0;" > conftest.$ac_ext
  4128. (eval echo "\"\$as_me:4657: $ac_compile\"" >&5)
  4129. (eval "$ac_compile" 2>conftest.err)
  4130. cat conftest.err >&5
  4131. (eval echo "\"\$as_me:4660: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4132. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4133. cat conftest.err >&5
  4134. (eval echo "\"\$as_me:4663: output\"" >&5)
  4135. cat conftest.out >&5
  4136. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4137. lt_cv_nm_interface="MS dumpbin"
  4138. fi
  4139. rm -f conftest*
  4140. fi
  4141. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4142. $as_echo "$lt_cv_nm_interface" >&6; }
  4143. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4144. $as_echo_n "checking whether ln -s works... " >&6; }
  4145. LN_S=$as_ln_s
  4146. if test "$LN_S" = "ln -s"; then
  4147. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4148. $as_echo "yes" >&6; }
  4149. else
  4150. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4151. $as_echo "no, using $LN_S" >&6; }
  4152. fi
  4153. # find the maximum length of command line arguments
  4154. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4155. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4156. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4157. $as_echo_n "(cached) " >&6
  4158. else
  4159. i=0
  4160. teststring="ABCD"
  4161. case $build_os in
  4162. msdosdjgpp*)
  4163. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4164. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4165. # during glob expansion). Even if it were fixed, the result of this
  4166. # check would be larger than it should be.
  4167. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4168. ;;
  4169. gnu*)
  4170. # Under GNU Hurd, this test is not required because there is
  4171. # no limit to the length of command line arguments.
  4172. # Libtool will interpret -1 as no limit whatsoever
  4173. lt_cv_sys_max_cmd_len=-1;
  4174. ;;
  4175. cygwin* | mingw* | cegcc*)
  4176. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4177. # about 5 minutes as the teststring grows exponentially.
  4178. # Worse, since 9x/ME are not pre-emptively multitasking,
  4179. # you end up with a "frozen" computer, even though with patience
  4180. # the test eventually succeeds (with a max line length of 256k).
  4181. # Instead, let's just punt: use the minimum linelength reported by
  4182. # all of the supported platforms: 8192 (on NT/2K/XP).
  4183. lt_cv_sys_max_cmd_len=8192;
  4184. ;;
  4185. amigaos*)
  4186. # On AmigaOS with pdksh, this test takes hours, literally.
  4187. # So we just punt and use a minimum line length of 8192.
  4188. lt_cv_sys_max_cmd_len=8192;
  4189. ;;
  4190. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4191. # This has been around since 386BSD, at least. Likely further.
  4192. if test -x /sbin/sysctl; then
  4193. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4194. elif test -x /usr/sbin/sysctl; then
  4195. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4196. else
  4197. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4198. fi
  4199. # And add a safety zone
  4200. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4201. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4202. ;;
  4203. interix*)
  4204. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4205. lt_cv_sys_max_cmd_len=196608
  4206. ;;
  4207. osf*)
  4208. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4209. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4210. # nice to cause kernel panics so lets avoid the loop below.
  4211. # First set a reasonable default.
  4212. lt_cv_sys_max_cmd_len=16384
  4213. #
  4214. if test -x /sbin/sysconfig; then
  4215. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4216. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4217. esac
  4218. fi
  4219. ;;
  4220. sco3.2v5*)
  4221. lt_cv_sys_max_cmd_len=102400
  4222. ;;
  4223. sysv5* | sco5v6* | sysv4.2uw2*)
  4224. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4225. if test -n "$kargmax"; then
  4226. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4227. else
  4228. lt_cv_sys_max_cmd_len=32768
  4229. fi
  4230. ;;
  4231. *)
  4232. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4233. if test -n "$lt_cv_sys_max_cmd_len"; then
  4234. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4235. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4236. else
  4237. # Make teststring a little bigger before we do anything with it.
  4238. # a 1K string should be a reasonable start.
  4239. for i in 1 2 3 4 5 6 7 8 ; do
  4240. teststring=$teststring$teststring
  4241. done
  4242. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4243. # If test is not a shell built-in, we'll probably end up computing a
  4244. # maximum length that is only half of the actual maximum length, but
  4245. # we can't tell.
  4246. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4247. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4248. test $i != 17 # 1/2 MB should be enough
  4249. do
  4250. i=`expr $i + 1`
  4251. teststring=$teststring$teststring
  4252. done
  4253. # Only check the string length outside the loop.
  4254. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4255. teststring=
  4256. # Add a significant safety factor because C++ compilers can tack on
  4257. # massive amounts of additional arguments before passing them to the
  4258. # linker. It appears as though 1/2 is a usable value.
  4259. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4260. fi
  4261. ;;
  4262. esac
  4263. fi
  4264. if test -n $lt_cv_sys_max_cmd_len ; then
  4265. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4266. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4267. else
  4268. { $as_echo "$as_me:$LINENO: result: none" >&5
  4269. $as_echo "none" >&6; }
  4270. fi
  4271. max_cmd_len=$lt_cv_sys_max_cmd_len
  4272. : ${CP="cp -f"}
  4273. : ${MV="mv -f"}
  4274. : ${RM="rm -f"}
  4275. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4276. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4277. # Try some XSI features
  4278. xsi_shell=no
  4279. ( _lt_dummy="a/b/c"
  4280. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4281. = c,a/b,, \
  4282. && eval 'test $(( 1 + 1 )) -eq 2 \
  4283. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4284. && xsi_shell=yes
  4285. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4286. $as_echo "$xsi_shell" >&6; }
  4287. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4288. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4289. lt_shell_append=no
  4290. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4291. >/dev/null 2>&1 \
  4292. && lt_shell_append=yes
  4293. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4294. $as_echo "$lt_shell_append" >&6; }
  4295. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4296. lt_unset=unset
  4297. else
  4298. lt_unset=false
  4299. fi
  4300. # test EBCDIC or ASCII
  4301. case `echo X|tr X '\101'` in
  4302. A) # ASCII based system
  4303. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4304. lt_SP2NL='tr \040 \012'
  4305. lt_NL2SP='tr \015\012 \040\040'
  4306. ;;
  4307. *) # EBCDIC based system
  4308. lt_SP2NL='tr \100 \n'
  4309. lt_NL2SP='tr \r\n \100\100'
  4310. ;;
  4311. esac
  4312. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4313. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4314. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4315. $as_echo_n "(cached) " >&6
  4316. else
  4317. lt_cv_ld_reload_flag='-r'
  4318. fi
  4319. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4320. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4321. reload_flag=$lt_cv_ld_reload_flag
  4322. case $reload_flag in
  4323. "" | " "*) ;;
  4324. *) reload_flag=" $reload_flag" ;;
  4325. esac
  4326. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4327. case $host_os in
  4328. darwin*)
  4329. if test "$GCC" = yes; then
  4330. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4331. else
  4332. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4333. fi
  4334. ;;
  4335. esac
  4336. if test -n "$ac_tool_prefix"; then
  4337. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4338. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4339. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4340. $as_echo_n "checking for $ac_word... " >&6; }
  4341. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4342. $as_echo_n "(cached) " >&6
  4343. else
  4344. if test -n "$OBJDUMP"; then
  4345. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4346. else
  4347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4348. for as_dir in $PATH
  4349. do
  4350. IFS=$as_save_IFS
  4351. test -z "$as_dir" && as_dir=.
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4354. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4355. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4356. break 2
  4357. fi
  4358. done
  4359. done
  4360. IFS=$as_save_IFS
  4361. fi
  4362. fi
  4363. OBJDUMP=$ac_cv_prog_OBJDUMP
  4364. if test -n "$OBJDUMP"; then
  4365. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4366. $as_echo "$OBJDUMP" >&6; }
  4367. else
  4368. { $as_echo "$as_me:$LINENO: result: no" >&5
  4369. $as_echo "no" >&6; }
  4370. fi
  4371. fi
  4372. if test -z "$ac_cv_prog_OBJDUMP"; then
  4373. ac_ct_OBJDUMP=$OBJDUMP
  4374. # Extract the first word of "objdump", so it can be a program name with args.
  4375. set dummy objdump; ac_word=$2
  4376. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4377. $as_echo_n "checking for $ac_word... " >&6; }
  4378. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4379. $as_echo_n "(cached) " >&6
  4380. else
  4381. if test -n "$ac_ct_OBJDUMP"; then
  4382. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4383. else
  4384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4385. for as_dir in $PATH
  4386. do
  4387. IFS=$as_save_IFS
  4388. test -z "$as_dir" && as_dir=.
  4389. for ac_exec_ext in '' $ac_executable_extensions; do
  4390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4391. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4392. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4393. break 2
  4394. fi
  4395. done
  4396. done
  4397. IFS=$as_save_IFS
  4398. fi
  4399. fi
  4400. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4401. if test -n "$ac_ct_OBJDUMP"; then
  4402. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4403. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4404. else
  4405. { $as_echo "$as_me:$LINENO: result: no" >&5
  4406. $as_echo "no" >&6; }
  4407. fi
  4408. if test "x$ac_ct_OBJDUMP" = x; then
  4409. OBJDUMP="false"
  4410. else
  4411. case $cross_compiling:$ac_tool_warned in
  4412. yes:)
  4413. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4415. ac_tool_warned=yes ;;
  4416. esac
  4417. OBJDUMP=$ac_ct_OBJDUMP
  4418. fi
  4419. else
  4420. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4421. fi
  4422. test -z "$OBJDUMP" && OBJDUMP=objdump
  4423. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4424. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4425. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4426. $as_echo_n "(cached) " >&6
  4427. else
  4428. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4429. lt_cv_file_magic_test_file=
  4430. lt_cv_deplibs_check_method='unknown'
  4431. # Need to set the preceding variable on all platforms that support
  4432. # interlibrary dependencies.
  4433. # 'none' -- dependencies not supported.
  4434. # `unknown' -- same as none, but documents that we really don't know.
  4435. # 'pass_all' -- all dependencies passed with no checks.
  4436. # 'test_compile' -- check by making test program.
  4437. # 'file_magic [[regex]]' -- check by looking for files in library path
  4438. # which responds to the $file_magic_cmd with a given extended regex.
  4439. # If you have `file' or equivalent on your system and you're not sure
  4440. # whether `pass_all' will *always* work, you probably want this one.
  4441. case $host_os in
  4442. aix[4-9]*)
  4443. lt_cv_deplibs_check_method=pass_all
  4444. ;;
  4445. beos*)
  4446. lt_cv_deplibs_check_method=pass_all
  4447. ;;
  4448. bsdi[45]*)
  4449. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4450. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4451. lt_cv_file_magic_test_file=/shlib/libc.so
  4452. ;;
  4453. cygwin*)
  4454. # func_win32_libid is a shell function defined in ltmain.sh
  4455. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4456. lt_cv_file_magic_cmd='func_win32_libid'
  4457. ;;
  4458. mingw* | pw32*)
  4459. # Base MSYS/MinGW do not provide the 'file' command needed by
  4460. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4461. # unless we find 'file', for example because we are cross-compiling.
  4462. if ( file / ) >/dev/null 2>&1; then
  4463. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4464. lt_cv_file_magic_cmd='func_win32_libid'
  4465. else
  4466. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4467. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4468. fi
  4469. ;;
  4470. cegcc)
  4471. # use the weaker test based on 'objdump'. See mingw*.
  4472. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4473. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4474. ;;
  4475. darwin* | rhapsody*)
  4476. lt_cv_deplibs_check_method=pass_all
  4477. ;;
  4478. freebsd* | dragonfly*)
  4479. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4480. case $host_cpu in
  4481. i*86 )
  4482. # Not sure whether the presence of OpenBSD here was a mistake.
  4483. # Let's accept both of them until this is cleared up.
  4484. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4485. lt_cv_file_magic_cmd=/usr/bin/file
  4486. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4487. ;;
  4488. esac
  4489. else
  4490. lt_cv_deplibs_check_method=pass_all
  4491. fi
  4492. ;;
  4493. gnu*)
  4494. lt_cv_deplibs_check_method=pass_all
  4495. ;;
  4496. hpux10.20* | hpux11*)
  4497. lt_cv_file_magic_cmd=/usr/bin/file
  4498. case $host_cpu in
  4499. ia64*)
  4500. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4501. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4502. ;;
  4503. hppa*64*)
  4504. 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]'
  4505. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4506. ;;
  4507. *)
  4508. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4509. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4510. ;;
  4511. esac
  4512. ;;
  4513. interix[3-9]*)
  4514. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4515. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4516. ;;
  4517. irix5* | irix6* | nonstopux*)
  4518. case $LD in
  4519. *-32|*"-32 ") libmagic=32-bit;;
  4520. *-n32|*"-n32 ") libmagic=N32;;
  4521. *-64|*"-64 ") libmagic=64-bit;;
  4522. *) libmagic=never-match;;
  4523. esac
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. # This must be Linux ELF.
  4527. linux* | k*bsd*-gnu)
  4528. lt_cv_deplibs_check_method=pass_all
  4529. ;;
  4530. netbsd*)
  4531. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4532. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4533. else
  4534. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4535. fi
  4536. ;;
  4537. newos6*)
  4538. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4539. lt_cv_file_magic_cmd=/usr/bin/file
  4540. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4541. ;;
  4542. *nto* | *qnx*)
  4543. lt_cv_deplibs_check_method=pass_all
  4544. ;;
  4545. openbsd*)
  4546. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4547. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4548. else
  4549. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4550. fi
  4551. ;;
  4552. osf3* | osf4* | osf5*)
  4553. lt_cv_deplibs_check_method=pass_all
  4554. ;;
  4555. rdos*)
  4556. lt_cv_deplibs_check_method=pass_all
  4557. ;;
  4558. solaris*)
  4559. lt_cv_deplibs_check_method=pass_all
  4560. ;;
  4561. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4562. lt_cv_deplibs_check_method=pass_all
  4563. ;;
  4564. sysv4 | sysv4.3*)
  4565. case $host_vendor in
  4566. motorola)
  4567. 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]'
  4568. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4569. ;;
  4570. ncr)
  4571. lt_cv_deplibs_check_method=pass_all
  4572. ;;
  4573. sequent)
  4574. lt_cv_file_magic_cmd='/bin/file'
  4575. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4576. ;;
  4577. sni)
  4578. lt_cv_file_magic_cmd='/bin/file'
  4579. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4580. lt_cv_file_magic_test_file=/lib/libc.so
  4581. ;;
  4582. siemens)
  4583. lt_cv_deplibs_check_method=pass_all
  4584. ;;
  4585. pc)
  4586. lt_cv_deplibs_check_method=pass_all
  4587. ;;
  4588. esac
  4589. ;;
  4590. tpf*)
  4591. lt_cv_deplibs_check_method=pass_all
  4592. ;;
  4593. esac
  4594. fi
  4595. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4596. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4597. file_magic_cmd=$lt_cv_file_magic_cmd
  4598. deplibs_check_method=$lt_cv_deplibs_check_method
  4599. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4600. if test -n "$ac_tool_prefix"; then
  4601. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4602. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4603. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4604. $as_echo_n "checking for $ac_word... " >&6; }
  4605. if test "${ac_cv_prog_AR+set}" = set; then
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. if test -n "$AR"; then
  4609. ac_cv_prog_AR="$AR" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. test -z "$as_dir" && as_dir=.
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4618. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4619. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4620. break 2
  4621. fi
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. fi
  4626. fi
  4627. AR=$ac_cv_prog_AR
  4628. if test -n "$AR"; then
  4629. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  4630. $as_echo "$AR" >&6; }
  4631. else
  4632. { $as_echo "$as_me:$LINENO: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. fi
  4636. if test -z "$ac_cv_prog_AR"; then
  4637. ac_ct_AR=$AR
  4638. # Extract the first word of "ar", so it can be a program name with args.
  4639. set dummy ar; ac_word=$2
  4640. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4641. $as_echo_n "checking for $ac_word... " >&6; }
  4642. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  4643. $as_echo_n "(cached) " >&6
  4644. else
  4645. if test -n "$ac_ct_AR"; then
  4646. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4647. else
  4648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4649. for as_dir in $PATH
  4650. do
  4651. IFS=$as_save_IFS
  4652. test -z "$as_dir" && as_dir=.
  4653. for ac_exec_ext in '' $ac_executable_extensions; do
  4654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4655. ac_cv_prog_ac_ct_AR="ar"
  4656. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4657. break 2
  4658. fi
  4659. done
  4660. done
  4661. IFS=$as_save_IFS
  4662. fi
  4663. fi
  4664. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4665. if test -n "$ac_ct_AR"; then
  4666. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  4667. $as_echo "$ac_ct_AR" >&6; }
  4668. else
  4669. { $as_echo "$as_me:$LINENO: result: no" >&5
  4670. $as_echo "no" >&6; }
  4671. fi
  4672. if test "x$ac_ct_AR" = x; then
  4673. AR="false"
  4674. else
  4675. case $cross_compiling:$ac_tool_warned in
  4676. yes:)
  4677. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4679. ac_tool_warned=yes ;;
  4680. esac
  4681. AR=$ac_ct_AR
  4682. fi
  4683. else
  4684. AR="$ac_cv_prog_AR"
  4685. fi
  4686. test -z "$AR" && AR=ar
  4687. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4688. if test -n "$ac_tool_prefix"; then
  4689. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4690. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4691. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4692. $as_echo_n "checking for $ac_word... " >&6; }
  4693. if test "${ac_cv_prog_STRIP+set}" = set; then
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. if test -n "$STRIP"; then
  4697. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4698. else
  4699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4700. for as_dir in $PATH
  4701. do
  4702. IFS=$as_save_IFS
  4703. test -z "$as_dir" && as_dir=.
  4704. for ac_exec_ext in '' $ac_executable_extensions; do
  4705. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4706. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4707. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4708. break 2
  4709. fi
  4710. done
  4711. done
  4712. IFS=$as_save_IFS
  4713. fi
  4714. fi
  4715. STRIP=$ac_cv_prog_STRIP
  4716. if test -n "$STRIP"; then
  4717. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  4718. $as_echo "$STRIP" >&6; }
  4719. else
  4720. { $as_echo "$as_me:$LINENO: result: no" >&5
  4721. $as_echo "no" >&6; }
  4722. fi
  4723. fi
  4724. if test -z "$ac_cv_prog_STRIP"; then
  4725. ac_ct_STRIP=$STRIP
  4726. # Extract the first word of "strip", so it can be a program name with args.
  4727. set dummy strip; ac_word=$2
  4728. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4729. $as_echo_n "checking for $ac_word... " >&6; }
  4730. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. if test -n "$ac_ct_STRIP"; then
  4734. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4735. else
  4736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4737. for as_dir in $PATH
  4738. do
  4739. IFS=$as_save_IFS
  4740. test -z "$as_dir" && as_dir=.
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4743. ac_cv_prog_ac_ct_STRIP="strip"
  4744. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4745. break 2
  4746. fi
  4747. done
  4748. done
  4749. IFS=$as_save_IFS
  4750. fi
  4751. fi
  4752. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4753. if test -n "$ac_ct_STRIP"; then
  4754. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  4755. $as_echo "$ac_ct_STRIP" >&6; }
  4756. else
  4757. { $as_echo "$as_me:$LINENO: result: no" >&5
  4758. $as_echo "no" >&6; }
  4759. fi
  4760. if test "x$ac_ct_STRIP" = x; then
  4761. STRIP=":"
  4762. else
  4763. case $cross_compiling:$ac_tool_warned in
  4764. yes:)
  4765. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4767. ac_tool_warned=yes ;;
  4768. esac
  4769. STRIP=$ac_ct_STRIP
  4770. fi
  4771. else
  4772. STRIP="$ac_cv_prog_STRIP"
  4773. fi
  4774. test -z "$STRIP" && STRIP=:
  4775. if test -n "$ac_tool_prefix"; then
  4776. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4777. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4778. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4779. $as_echo_n "checking for $ac_word... " >&6; }
  4780. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. if test -n "$RANLIB"; then
  4784. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4785. else
  4786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4787. for as_dir in $PATH
  4788. do
  4789. IFS=$as_save_IFS
  4790. test -z "$as_dir" && as_dir=.
  4791. for ac_exec_ext in '' $ac_executable_extensions; do
  4792. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4793. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4794. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4795. break 2
  4796. fi
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. fi
  4801. fi
  4802. RANLIB=$ac_cv_prog_RANLIB
  4803. if test -n "$RANLIB"; then
  4804. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4805. $as_echo "$RANLIB" >&6; }
  4806. else
  4807. { $as_echo "$as_me:$LINENO: result: no" >&5
  4808. $as_echo "no" >&6; }
  4809. fi
  4810. fi
  4811. if test -z "$ac_cv_prog_RANLIB"; then
  4812. ac_ct_RANLIB=$RANLIB
  4813. # Extract the first word of "ranlib", so it can be a program name with args.
  4814. set dummy ranlib; ac_word=$2
  4815. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4816. $as_echo_n "checking for $ac_word... " >&6; }
  4817. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. if test -n "$ac_ct_RANLIB"; then
  4821. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4822. else
  4823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4824. for as_dir in $PATH
  4825. do
  4826. IFS=$as_save_IFS
  4827. test -z "$as_dir" && as_dir=.
  4828. for ac_exec_ext in '' $ac_executable_extensions; do
  4829. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4830. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4831. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4832. break 2
  4833. fi
  4834. done
  4835. done
  4836. IFS=$as_save_IFS
  4837. fi
  4838. fi
  4839. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4840. if test -n "$ac_ct_RANLIB"; then
  4841. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4842. $as_echo "$ac_ct_RANLIB" >&6; }
  4843. else
  4844. { $as_echo "$as_me:$LINENO: result: no" >&5
  4845. $as_echo "no" >&6; }
  4846. fi
  4847. if test "x$ac_ct_RANLIB" = x; then
  4848. RANLIB=":"
  4849. else
  4850. case $cross_compiling:$ac_tool_warned in
  4851. yes:)
  4852. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4854. ac_tool_warned=yes ;;
  4855. esac
  4856. RANLIB=$ac_ct_RANLIB
  4857. fi
  4858. else
  4859. RANLIB="$ac_cv_prog_RANLIB"
  4860. fi
  4861. test -z "$RANLIB" && RANLIB=:
  4862. # Determine commands to create old-style static archives.
  4863. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4864. old_postinstall_cmds='chmod 644 $oldlib'
  4865. old_postuninstall_cmds=
  4866. if test -n "$RANLIB"; then
  4867. case $host_os in
  4868. openbsd*)
  4869. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  4870. ;;
  4871. *)
  4872. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  4873. ;;
  4874. esac
  4875. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  4876. fi
  4877. # If no C compiler was specified, use CC.
  4878. LTCC=${LTCC-"$CC"}
  4879. # If no C compiler flags were specified, use CFLAGS.
  4880. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4881. # Allow CC to be a program name with arguments.
  4882. compiler=$CC
  4883. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4884. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  4885. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4886. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. # These are sane defaults that work on at least a few old systems.
  4890. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4891. # Character class describing NM global symbol codes.
  4892. symcode='[BCDEGRST]'
  4893. # Regexp to match symbols that can be accessed directly from C.
  4894. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4895. # Define system-specific variables.
  4896. case $host_os in
  4897. aix*)
  4898. symcode='[BCDT]'
  4899. ;;
  4900. cygwin* | mingw* | pw32* | cegcc*)
  4901. symcode='[ABCDGISTW]'
  4902. ;;
  4903. hpux*)
  4904. if test "$host_cpu" = ia64; then
  4905. symcode='[ABCDEGRST]'
  4906. fi
  4907. ;;
  4908. irix* | nonstopux*)
  4909. symcode='[BCDEGRST]'
  4910. ;;
  4911. osf*)
  4912. symcode='[BCDEGQRST]'
  4913. ;;
  4914. solaris*)
  4915. symcode='[BDRT]'
  4916. ;;
  4917. sco3.2v5*)
  4918. symcode='[DT]'
  4919. ;;
  4920. sysv4.2uw2*)
  4921. symcode='[DT]'
  4922. ;;
  4923. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4924. symcode='[ABDT]'
  4925. ;;
  4926. sysv4)
  4927. symcode='[DFNSTU]'
  4928. ;;
  4929. esac
  4930. # If we're using GNU nm, then use its standard symbol codes.
  4931. case `$NM -V 2>&1` in
  4932. *GNU* | *'with BFD'*)
  4933. symcode='[ABCDGIRSTW]' ;;
  4934. esac
  4935. # Transform an extracted symbol line into a proper C declaration.
  4936. # Some systems (esp. on ia64) link data and code symbols differently,
  4937. # so use this general approach.
  4938. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4939. # Transform an extracted symbol line into symbol name and symbol address
  4940. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4941. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4942. # Handle CRLF in mingw tool chain
  4943. opt_cr=
  4944. case $build_os in
  4945. mingw*)
  4946. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4947. ;;
  4948. esac
  4949. # Try without a prefix underscore, then with it.
  4950. for ac_symprfx in "" "_"; do
  4951. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4952. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4953. # Write the raw and C identifiers.
  4954. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  4955. # Fake it for dumpbin and say T for any non-static function
  4956. # and D for any global variable.
  4957. # Also find C++ and __fastcall symbols from MSVC++,
  4958. # which start with @ or ?.
  4959. lt_cv_sys_global_symbol_pipe="$AWK '"\
  4960. " {last_section=section; section=\$ 3};"\
  4961. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  4962. " \$ 0!~/External *\|/{next};"\
  4963. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  4964. " {if(hide[section]) next};"\
  4965. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4966. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4967. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4968. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4969. " ' prfx=^$ac_symprfx"
  4970. else
  4971. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4972. fi
  4973. # Check to see that the pipe works correctly.
  4974. pipe_works=no
  4975. rm -f conftest*
  4976. cat > conftest.$ac_ext <<_LT_EOF
  4977. #ifdef __cplusplus
  4978. extern "C" {
  4979. #endif
  4980. char nm_test_var;
  4981. void nm_test_func(void);
  4982. void nm_test_func(void){}
  4983. #ifdef __cplusplus
  4984. }
  4985. #endif
  4986. int main(){nm_test_var='a';nm_test_func();return(0);}
  4987. _LT_EOF
  4988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4989. (eval $ac_compile) 2>&5
  4990. ac_status=$?
  4991. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4992. (exit $ac_status); }; then
  4993. # Now try to grab the symbols.
  4994. nlist=conftest.nm
  4995. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4996. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4997. ac_status=$?
  4998. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4999. (exit $ac_status); } && test -s "$nlist"; then
  5000. # Try sorting and uniquifying the output.
  5001. if sort "$nlist" | uniq > "$nlist"T; then
  5002. mv -f "$nlist"T "$nlist"
  5003. else
  5004. rm -f "$nlist"T
  5005. fi
  5006. # Make sure that we snagged all the symbols we need.
  5007. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5008. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5009. cat <<_LT_EOF > conftest.$ac_ext
  5010. #ifdef __cplusplus
  5011. extern "C" {
  5012. #endif
  5013. _LT_EOF
  5014. # Now generate the symbol file.
  5015. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5016. cat <<_LT_EOF >> conftest.$ac_ext
  5017. /* The mapping between symbol names and symbols. */
  5018. const struct {
  5019. const char *name;
  5020. void *address;
  5021. }
  5022. lt__PROGRAM__LTX_preloaded_symbols[] =
  5023. {
  5024. { "@PROGRAM@", (void *) 0 },
  5025. _LT_EOF
  5026. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5027. cat <<\_LT_EOF >> conftest.$ac_ext
  5028. {0, (void *) 0}
  5029. };
  5030. /* This works around a problem in FreeBSD linker */
  5031. #ifdef FREEBSD_WORKAROUND
  5032. static const void *lt_preloaded_setup() {
  5033. return lt__PROGRAM__LTX_preloaded_symbols;
  5034. }
  5035. #endif
  5036. #ifdef __cplusplus
  5037. }
  5038. #endif
  5039. _LT_EOF
  5040. # Now try linking the two files.
  5041. mv conftest.$ac_objext conftstm.$ac_objext
  5042. lt_save_LIBS="$LIBS"
  5043. lt_save_CFLAGS="$CFLAGS"
  5044. LIBS="conftstm.$ac_objext"
  5045. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5046. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5047. (eval $ac_link) 2>&5
  5048. ac_status=$?
  5049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5051. pipe_works=yes
  5052. fi
  5053. LIBS="$lt_save_LIBS"
  5054. CFLAGS="$lt_save_CFLAGS"
  5055. else
  5056. echo "cannot find nm_test_func in $nlist" >&5
  5057. fi
  5058. else
  5059. echo "cannot find nm_test_var in $nlist" >&5
  5060. fi
  5061. else
  5062. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5063. fi
  5064. else
  5065. echo "$progname: failed program was:" >&5
  5066. cat conftest.$ac_ext >&5
  5067. fi
  5068. rm -rf conftest* conftst*
  5069. # Do not use the global_symbol_pipe unless it works.
  5070. if test "$pipe_works" = yes; then
  5071. break
  5072. else
  5073. lt_cv_sys_global_symbol_pipe=
  5074. fi
  5075. done
  5076. fi
  5077. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5078. lt_cv_sys_global_symbol_to_cdecl=
  5079. fi
  5080. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5081. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5082. $as_echo "failed" >&6; }
  5083. else
  5084. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5085. $as_echo "ok" >&6; }
  5086. fi
  5087. # Check whether --enable-libtool-lock was given.
  5088. if test "${enable_libtool_lock+set}" = set; then
  5089. enableval=$enable_libtool_lock;
  5090. fi
  5091. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5092. # Some flags need to be propagated to the compiler or linker for good
  5093. # libtool support.
  5094. case $host in
  5095. ia64-*-hpux*)
  5096. # Find out which ABI we are using.
  5097. echo 'int i;' > conftest.$ac_ext
  5098. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5099. (eval $ac_compile) 2>&5
  5100. ac_status=$?
  5101. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5102. (exit $ac_status); }; then
  5103. case `/usr/bin/file conftest.$ac_objext` in
  5104. *ELF-32*)
  5105. HPUX_IA64_MODE="32"
  5106. ;;
  5107. *ELF-64*)
  5108. HPUX_IA64_MODE="64"
  5109. ;;
  5110. esac
  5111. fi
  5112. rm -rf conftest*
  5113. ;;
  5114. *-*-irix6*)
  5115. # Find out which ABI we are using.
  5116. echo '#line 5869 "configure"' > conftest.$ac_ext
  5117. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5118. (eval $ac_compile) 2>&5
  5119. ac_status=$?
  5120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5121. (exit $ac_status); }; then
  5122. if test "$lt_cv_prog_gnu_ld" = yes; then
  5123. case `/usr/bin/file conftest.$ac_objext` in
  5124. *32-bit*)
  5125. LD="${LD-ld} -melf32bsmip"
  5126. ;;
  5127. *N32*)
  5128. LD="${LD-ld} -melf32bmipn32"
  5129. ;;
  5130. *64-bit*)
  5131. LD="${LD-ld} -melf64bmip"
  5132. ;;
  5133. esac
  5134. else
  5135. case `/usr/bin/file conftest.$ac_objext` in
  5136. *32-bit*)
  5137. LD="${LD-ld} -32"
  5138. ;;
  5139. *N32*)
  5140. LD="${LD-ld} -n32"
  5141. ;;
  5142. *64-bit*)
  5143. LD="${LD-ld} -64"
  5144. ;;
  5145. esac
  5146. fi
  5147. fi
  5148. rm -rf conftest*
  5149. ;;
  5150. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5151. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5152. # Find out which ABI we are using.
  5153. echo 'int i;' > conftest.$ac_ext
  5154. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5155. (eval $ac_compile) 2>&5
  5156. ac_status=$?
  5157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5158. (exit $ac_status); }; then
  5159. case `/usr/bin/file conftest.o` in
  5160. *32-bit*)
  5161. case $host in
  5162. x86_64-*kfreebsd*-gnu)
  5163. LD="${LD-ld} -m elf_i386_fbsd"
  5164. ;;
  5165. x86_64-*linux*)
  5166. LD="${LD-ld} -m elf_i386"
  5167. ;;
  5168. ppc64-*linux*|powerpc64-*linux*)
  5169. LD="${LD-ld} -m elf32ppclinux"
  5170. ;;
  5171. s390x-*linux*)
  5172. LD="${LD-ld} -m elf_s390"
  5173. ;;
  5174. sparc64-*linux*)
  5175. LD="${LD-ld} -m elf32_sparc"
  5176. ;;
  5177. esac
  5178. ;;
  5179. *64-bit*)
  5180. case $host in
  5181. x86_64-*kfreebsd*-gnu)
  5182. LD="${LD-ld} -m elf_x86_64_fbsd"
  5183. ;;
  5184. x86_64-*linux*)
  5185. LD="${LD-ld} -m elf_x86_64"
  5186. ;;
  5187. ppc*-*linux*|powerpc*-*linux*)
  5188. LD="${LD-ld} -m elf64ppc"
  5189. ;;
  5190. s390*-*linux*|s390*-*tpf*)
  5191. LD="${LD-ld} -m elf64_s390"
  5192. ;;
  5193. sparc*-*linux*)
  5194. LD="${LD-ld} -m elf64_sparc"
  5195. ;;
  5196. esac
  5197. ;;
  5198. esac
  5199. fi
  5200. rm -rf conftest*
  5201. ;;
  5202. *-*-sco3.2v5*)
  5203. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5204. SAVE_CFLAGS="$CFLAGS"
  5205. CFLAGS="$CFLAGS -belf"
  5206. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5207. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5208. if test "${lt_cv_cc_needs_belf+set}" = set; then
  5209. $as_echo_n "(cached) " >&6
  5210. else
  5211. ac_ext=c
  5212. ac_cpp='$CPP $CPPFLAGS'
  5213. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5214. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5215. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5216. cat >conftest.$ac_ext <<_ACEOF
  5217. /* confdefs.h. */
  5218. _ACEOF
  5219. cat confdefs.h >>conftest.$ac_ext
  5220. cat >>conftest.$ac_ext <<_ACEOF
  5221. /* end confdefs.h. */
  5222. int
  5223. main ()
  5224. {
  5225. ;
  5226. return 0;
  5227. }
  5228. _ACEOF
  5229. rm -f conftest.$ac_objext conftest$ac_exeext
  5230. if { (ac_try="$ac_link"
  5231. case "(($ac_try" in
  5232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5233. *) ac_try_echo=$ac_try;;
  5234. esac
  5235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5236. $as_echo "$ac_try_echo") >&5
  5237. (eval "$ac_link") 2>conftest.er1
  5238. ac_status=$?
  5239. grep -v '^ *+' conftest.er1 >conftest.err
  5240. rm -f conftest.er1
  5241. cat conftest.err >&5
  5242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5243. (exit $ac_status); } && {
  5244. test -z "$ac_c_werror_flag" ||
  5245. test ! -s conftest.err
  5246. } && test -s conftest$ac_exeext && {
  5247. test "$cross_compiling" = yes ||
  5248. $as_test_x conftest$ac_exeext
  5249. }; then
  5250. lt_cv_cc_needs_belf=yes
  5251. else
  5252. $as_echo "$as_me: failed program was:" >&5
  5253. sed 's/^/| /' conftest.$ac_ext >&5
  5254. lt_cv_cc_needs_belf=no
  5255. fi
  5256. rm -rf conftest.dSYM
  5257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5258. conftest$ac_exeext conftest.$ac_ext
  5259. ac_ext=c
  5260. ac_cpp='$CPP $CPPFLAGS'
  5261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5264. fi
  5265. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5266. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5267. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5268. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5269. CFLAGS="$SAVE_CFLAGS"
  5270. fi
  5271. ;;
  5272. sparc*-*solaris*)
  5273. # Find out which ABI we are using.
  5274. echo 'int i;' > conftest.$ac_ext
  5275. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5276. (eval $ac_compile) 2>&5
  5277. ac_status=$?
  5278. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); }; then
  5280. case `/usr/bin/file conftest.o` in
  5281. *64-bit*)
  5282. case $lt_cv_prog_gnu_ld in
  5283. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5284. *)
  5285. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5286. LD="${LD-ld} -64"
  5287. fi
  5288. ;;
  5289. esac
  5290. ;;
  5291. esac
  5292. fi
  5293. rm -rf conftest*
  5294. ;;
  5295. esac
  5296. need_locks="$enable_libtool_lock"
  5297. case $host_os in
  5298. rhapsody* | darwin*)
  5299. if test -n "$ac_tool_prefix"; then
  5300. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5301. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5302. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5303. $as_echo_n "checking for $ac_word... " >&6; }
  5304. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  5305. $as_echo_n "(cached) " >&6
  5306. else
  5307. if test -n "$DSYMUTIL"; then
  5308. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5309. else
  5310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5311. for as_dir in $PATH
  5312. do
  5313. IFS=$as_save_IFS
  5314. test -z "$as_dir" && as_dir=.
  5315. for ac_exec_ext in '' $ac_executable_extensions; do
  5316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5317. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5318. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5319. break 2
  5320. fi
  5321. done
  5322. done
  5323. IFS=$as_save_IFS
  5324. fi
  5325. fi
  5326. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5327. if test -n "$DSYMUTIL"; then
  5328. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  5329. $as_echo "$DSYMUTIL" >&6; }
  5330. else
  5331. { $as_echo "$as_me:$LINENO: result: no" >&5
  5332. $as_echo "no" >&6; }
  5333. fi
  5334. fi
  5335. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5336. ac_ct_DSYMUTIL=$DSYMUTIL
  5337. # Extract the first word of "dsymutil", so it can be a program name with args.
  5338. set dummy dsymutil; ac_word=$2
  5339. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5340. $as_echo_n "checking for $ac_word... " >&6; }
  5341. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  5342. $as_echo_n "(cached) " >&6
  5343. else
  5344. if test -n "$ac_ct_DSYMUTIL"; then
  5345. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5346. else
  5347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5348. for as_dir in $PATH
  5349. do
  5350. IFS=$as_save_IFS
  5351. test -z "$as_dir" && as_dir=.
  5352. for ac_exec_ext in '' $ac_executable_extensions; do
  5353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5354. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5355. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5356. break 2
  5357. fi
  5358. done
  5359. done
  5360. IFS=$as_save_IFS
  5361. fi
  5362. fi
  5363. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5364. if test -n "$ac_ct_DSYMUTIL"; then
  5365. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  5366. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5367. else
  5368. { $as_echo "$as_me:$LINENO: result: no" >&5
  5369. $as_echo "no" >&6; }
  5370. fi
  5371. if test "x$ac_ct_DSYMUTIL" = x; then
  5372. DSYMUTIL=":"
  5373. else
  5374. case $cross_compiling:$ac_tool_warned in
  5375. yes:)
  5376. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5377. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5378. ac_tool_warned=yes ;;
  5379. esac
  5380. DSYMUTIL=$ac_ct_DSYMUTIL
  5381. fi
  5382. else
  5383. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5384. fi
  5385. if test -n "$ac_tool_prefix"; then
  5386. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5387. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5388. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5389. $as_echo_n "checking for $ac_word... " >&6; }
  5390. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. if test -n "$NMEDIT"; then
  5394. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5395. else
  5396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5397. for as_dir in $PATH
  5398. do
  5399. IFS=$as_save_IFS
  5400. test -z "$as_dir" && as_dir=.
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5403. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5404. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. NMEDIT=$ac_cv_prog_NMEDIT
  5413. if test -n "$NMEDIT"; then
  5414. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  5415. $as_echo "$NMEDIT" >&6; }
  5416. else
  5417. { $as_echo "$as_me:$LINENO: result: no" >&5
  5418. $as_echo "no" >&6; }
  5419. fi
  5420. fi
  5421. if test -z "$ac_cv_prog_NMEDIT"; then
  5422. ac_ct_NMEDIT=$NMEDIT
  5423. # Extract the first word of "nmedit", so it can be a program name with args.
  5424. set dummy nmedit; ac_word=$2
  5425. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5426. $as_echo_n "checking for $ac_word... " >&6; }
  5427. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. if test -n "$ac_ct_NMEDIT"; then
  5431. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5432. else
  5433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5434. for as_dir in $PATH
  5435. do
  5436. IFS=$as_save_IFS
  5437. test -z "$as_dir" && as_dir=.
  5438. for ac_exec_ext in '' $ac_executable_extensions; do
  5439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5440. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5441. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5442. break 2
  5443. fi
  5444. done
  5445. done
  5446. IFS=$as_save_IFS
  5447. fi
  5448. fi
  5449. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5450. if test -n "$ac_ct_NMEDIT"; then
  5451. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  5452. $as_echo "$ac_ct_NMEDIT" >&6; }
  5453. else
  5454. { $as_echo "$as_me:$LINENO: result: no" >&5
  5455. $as_echo "no" >&6; }
  5456. fi
  5457. if test "x$ac_ct_NMEDIT" = x; then
  5458. NMEDIT=":"
  5459. else
  5460. case $cross_compiling:$ac_tool_warned in
  5461. yes:)
  5462. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5464. ac_tool_warned=yes ;;
  5465. esac
  5466. NMEDIT=$ac_ct_NMEDIT
  5467. fi
  5468. else
  5469. NMEDIT="$ac_cv_prog_NMEDIT"
  5470. fi
  5471. if test -n "$ac_tool_prefix"; then
  5472. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5473. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5474. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5475. $as_echo_n "checking for $ac_word... " >&6; }
  5476. if test "${ac_cv_prog_LIPO+set}" = set; then
  5477. $as_echo_n "(cached) " >&6
  5478. else
  5479. if test -n "$LIPO"; then
  5480. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5481. else
  5482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5483. for as_dir in $PATH
  5484. do
  5485. IFS=$as_save_IFS
  5486. test -z "$as_dir" && as_dir=.
  5487. for ac_exec_ext in '' $ac_executable_extensions; do
  5488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5489. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5490. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5491. break 2
  5492. fi
  5493. done
  5494. done
  5495. IFS=$as_save_IFS
  5496. fi
  5497. fi
  5498. LIPO=$ac_cv_prog_LIPO
  5499. if test -n "$LIPO"; then
  5500. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  5501. $as_echo "$LIPO" >&6; }
  5502. else
  5503. { $as_echo "$as_me:$LINENO: result: no" >&5
  5504. $as_echo "no" >&6; }
  5505. fi
  5506. fi
  5507. if test -z "$ac_cv_prog_LIPO"; then
  5508. ac_ct_LIPO=$LIPO
  5509. # Extract the first word of "lipo", so it can be a program name with args.
  5510. set dummy lipo; ac_word=$2
  5511. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5512. $as_echo_n "checking for $ac_word... " >&6; }
  5513. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  5514. $as_echo_n "(cached) " >&6
  5515. else
  5516. if test -n "$ac_ct_LIPO"; then
  5517. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5518. else
  5519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5520. for as_dir in $PATH
  5521. do
  5522. IFS=$as_save_IFS
  5523. test -z "$as_dir" && as_dir=.
  5524. for ac_exec_ext in '' $ac_executable_extensions; do
  5525. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5526. ac_cv_prog_ac_ct_LIPO="lipo"
  5527. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5528. break 2
  5529. fi
  5530. done
  5531. done
  5532. IFS=$as_save_IFS
  5533. fi
  5534. fi
  5535. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5536. if test -n "$ac_ct_LIPO"; then
  5537. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  5538. $as_echo "$ac_ct_LIPO" >&6; }
  5539. else
  5540. { $as_echo "$as_me:$LINENO: result: no" >&5
  5541. $as_echo "no" >&6; }
  5542. fi
  5543. if test "x$ac_ct_LIPO" = x; then
  5544. LIPO=":"
  5545. else
  5546. case $cross_compiling:$ac_tool_warned in
  5547. yes:)
  5548. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5550. ac_tool_warned=yes ;;
  5551. esac
  5552. LIPO=$ac_ct_LIPO
  5553. fi
  5554. else
  5555. LIPO="$ac_cv_prog_LIPO"
  5556. fi
  5557. if test -n "$ac_tool_prefix"; then
  5558. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5559. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5560. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5561. $as_echo_n "checking for $ac_word... " >&6; }
  5562. if test "${ac_cv_prog_OTOOL+set}" = set; then
  5563. $as_echo_n "(cached) " >&6
  5564. else
  5565. if test -n "$OTOOL"; then
  5566. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5567. else
  5568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5569. for as_dir in $PATH
  5570. do
  5571. IFS=$as_save_IFS
  5572. test -z "$as_dir" && as_dir=.
  5573. for ac_exec_ext in '' $ac_executable_extensions; do
  5574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5575. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5576. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5577. break 2
  5578. fi
  5579. done
  5580. done
  5581. IFS=$as_save_IFS
  5582. fi
  5583. fi
  5584. OTOOL=$ac_cv_prog_OTOOL
  5585. if test -n "$OTOOL"; then
  5586. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  5587. $as_echo "$OTOOL" >&6; }
  5588. else
  5589. { $as_echo "$as_me:$LINENO: result: no" >&5
  5590. $as_echo "no" >&6; }
  5591. fi
  5592. fi
  5593. if test -z "$ac_cv_prog_OTOOL"; then
  5594. ac_ct_OTOOL=$OTOOL
  5595. # Extract the first word of "otool", so it can be a program name with args.
  5596. set dummy otool; ac_word=$2
  5597. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5598. $as_echo_n "checking for $ac_word... " >&6; }
  5599. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  5600. $as_echo_n "(cached) " >&6
  5601. else
  5602. if test -n "$ac_ct_OTOOL"; then
  5603. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5604. else
  5605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5606. for as_dir in $PATH
  5607. do
  5608. IFS=$as_save_IFS
  5609. test -z "$as_dir" && as_dir=.
  5610. for ac_exec_ext in '' $ac_executable_extensions; do
  5611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5612. ac_cv_prog_ac_ct_OTOOL="otool"
  5613. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5614. break 2
  5615. fi
  5616. done
  5617. done
  5618. IFS=$as_save_IFS
  5619. fi
  5620. fi
  5621. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5622. if test -n "$ac_ct_OTOOL"; then
  5623. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  5624. $as_echo "$ac_ct_OTOOL" >&6; }
  5625. else
  5626. { $as_echo "$as_me:$LINENO: result: no" >&5
  5627. $as_echo "no" >&6; }
  5628. fi
  5629. if test "x$ac_ct_OTOOL" = x; then
  5630. OTOOL=":"
  5631. else
  5632. case $cross_compiling:$ac_tool_warned in
  5633. yes:)
  5634. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5636. ac_tool_warned=yes ;;
  5637. esac
  5638. OTOOL=$ac_ct_OTOOL
  5639. fi
  5640. else
  5641. OTOOL="$ac_cv_prog_OTOOL"
  5642. fi
  5643. if test -n "$ac_tool_prefix"; then
  5644. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5645. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5646. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5647. $as_echo_n "checking for $ac_word... " >&6; }
  5648. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  5649. $as_echo_n "(cached) " >&6
  5650. else
  5651. if test -n "$OTOOL64"; then
  5652. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5653. else
  5654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5655. for as_dir in $PATH
  5656. do
  5657. IFS=$as_save_IFS
  5658. test -z "$as_dir" && as_dir=.
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5661. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5662. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5663. break 2
  5664. fi
  5665. done
  5666. done
  5667. IFS=$as_save_IFS
  5668. fi
  5669. fi
  5670. OTOOL64=$ac_cv_prog_OTOOL64
  5671. if test -n "$OTOOL64"; then
  5672. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  5673. $as_echo "$OTOOL64" >&6; }
  5674. else
  5675. { $as_echo "$as_me:$LINENO: result: no" >&5
  5676. $as_echo "no" >&6; }
  5677. fi
  5678. fi
  5679. if test -z "$ac_cv_prog_OTOOL64"; then
  5680. ac_ct_OTOOL64=$OTOOL64
  5681. # Extract the first word of "otool64", so it can be a program name with args.
  5682. set dummy otool64; ac_word=$2
  5683. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5684. $as_echo_n "checking for $ac_word... " >&6; }
  5685. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  5686. $as_echo_n "(cached) " >&6
  5687. else
  5688. if test -n "$ac_ct_OTOOL64"; then
  5689. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5690. else
  5691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5692. for as_dir in $PATH
  5693. do
  5694. IFS=$as_save_IFS
  5695. test -z "$as_dir" && as_dir=.
  5696. for ac_exec_ext in '' $ac_executable_extensions; do
  5697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5698. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5699. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5700. break 2
  5701. fi
  5702. done
  5703. done
  5704. IFS=$as_save_IFS
  5705. fi
  5706. fi
  5707. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5708. if test -n "$ac_ct_OTOOL64"; then
  5709. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  5710. $as_echo "$ac_ct_OTOOL64" >&6; }
  5711. else
  5712. { $as_echo "$as_me:$LINENO: result: no" >&5
  5713. $as_echo "no" >&6; }
  5714. fi
  5715. if test "x$ac_ct_OTOOL64" = x; then
  5716. OTOOL64=":"
  5717. else
  5718. case $cross_compiling:$ac_tool_warned in
  5719. yes:)
  5720. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5721. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5722. ac_tool_warned=yes ;;
  5723. esac
  5724. OTOOL64=$ac_ct_OTOOL64
  5725. fi
  5726. else
  5727. OTOOL64="$ac_cv_prog_OTOOL64"
  5728. fi
  5729. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  5730. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5731. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  5732. $as_echo_n "(cached) " >&6
  5733. else
  5734. lt_cv_apple_cc_single_mod=no
  5735. if test -z "${LT_MULTI_MODULE}"; then
  5736. # By default we will add the -single_module flag. You can override
  5737. # by either setting the environment variable LT_MULTI_MODULE
  5738. # non-empty at configure time, or by adding -multi_module to the
  5739. # link flags.
  5740. rm -rf libconftest.dylib*
  5741. echo "int foo(void){return 1;}" > conftest.c
  5742. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5743. -dynamiclib -Wl,-single_module conftest.c" >&5
  5744. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5745. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5746. _lt_result=$?
  5747. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5748. lt_cv_apple_cc_single_mod=yes
  5749. else
  5750. cat conftest.err >&5
  5751. fi
  5752. rm -rf libconftest.dylib*
  5753. rm -f conftest.*
  5754. fi
  5755. fi
  5756. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  5757. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5758. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  5759. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5760. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. lt_cv_ld_exported_symbols_list=no
  5764. save_LDFLAGS=$LDFLAGS
  5765. echo "_main" > conftest.sym
  5766. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5767. cat >conftest.$ac_ext <<_ACEOF
  5768. /* confdefs.h. */
  5769. _ACEOF
  5770. cat confdefs.h >>conftest.$ac_ext
  5771. cat >>conftest.$ac_ext <<_ACEOF
  5772. /* end confdefs.h. */
  5773. int
  5774. main ()
  5775. {
  5776. ;
  5777. return 0;
  5778. }
  5779. _ACEOF
  5780. rm -f conftest.$ac_objext conftest$ac_exeext
  5781. if { (ac_try="$ac_link"
  5782. case "(($ac_try" in
  5783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5784. *) ac_try_echo=$ac_try;;
  5785. esac
  5786. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5787. $as_echo "$ac_try_echo") >&5
  5788. (eval "$ac_link") 2>conftest.er1
  5789. ac_status=$?
  5790. grep -v '^ *+' conftest.er1 >conftest.err
  5791. rm -f conftest.er1
  5792. cat conftest.err >&5
  5793. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5794. (exit $ac_status); } && {
  5795. test -z "$ac_c_werror_flag" ||
  5796. test ! -s conftest.err
  5797. } && test -s conftest$ac_exeext && {
  5798. test "$cross_compiling" = yes ||
  5799. $as_test_x conftest$ac_exeext
  5800. }; then
  5801. lt_cv_ld_exported_symbols_list=yes
  5802. else
  5803. $as_echo "$as_me: failed program was:" >&5
  5804. sed 's/^/| /' conftest.$ac_ext >&5
  5805. lt_cv_ld_exported_symbols_list=no
  5806. fi
  5807. rm -rf conftest.dSYM
  5808. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5809. conftest$ac_exeext conftest.$ac_ext
  5810. LDFLAGS="$save_LDFLAGS"
  5811. fi
  5812. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  5813. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5814. case $host_os in
  5815. rhapsody* | darwin1.[012])
  5816. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5817. darwin1.*)
  5818. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5819. darwin*) # darwin 5.x on
  5820. # if running on 10.5 or later, the deployment target defaults
  5821. # to the OS version, if on x86, and 10.4, the deployment
  5822. # target defaults to 10.4. Don't you love it?
  5823. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5824. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5825. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5826. 10.[012]*)
  5827. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5828. 10.*)
  5829. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5830. esac
  5831. ;;
  5832. esac
  5833. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5834. _lt_dar_single_mod='$single_module'
  5835. fi
  5836. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5837. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5838. else
  5839. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5840. fi
  5841. if test "$DSYMUTIL" != ":"; then
  5842. _lt_dsymutil='~$DSYMUTIL $lib || :'
  5843. else
  5844. _lt_dsymutil=
  5845. fi
  5846. ;;
  5847. esac
  5848. ac_ext=c
  5849. ac_cpp='$CPP $CPPFLAGS'
  5850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5853. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5854. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5855. # On Suns, sometimes $CPP names a directory.
  5856. if test -n "$CPP" && test -d "$CPP"; then
  5857. CPP=
  5858. fi
  5859. if test -z "$CPP"; then
  5860. if test "${ac_cv_prog_CPP+set}" = set; then
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. # Double quotes because CPP needs to be expanded
  5864. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5865. do
  5866. ac_preproc_ok=false
  5867. for ac_c_preproc_warn_flag in '' yes
  5868. do
  5869. # Use a header file that comes with gcc, so configuring glibc
  5870. # with a fresh cross-compiler works.
  5871. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5872. # <limits.h> exists even on freestanding compilers.
  5873. # On the NeXT, cc -E runs the code through the compiler's parser,
  5874. # not just through cpp. "Syntax error" is here to catch this case.
  5875. cat >conftest.$ac_ext <<_ACEOF
  5876. /* confdefs.h. */
  5877. _ACEOF
  5878. cat confdefs.h >>conftest.$ac_ext
  5879. cat >>conftest.$ac_ext <<_ACEOF
  5880. /* end confdefs.h. */
  5881. #ifdef __STDC__
  5882. # include <limits.h>
  5883. #else
  5884. # include <assert.h>
  5885. #endif
  5886. Syntax error
  5887. _ACEOF
  5888. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5889. case "(($ac_try" in
  5890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5891. *) ac_try_echo=$ac_try;;
  5892. esac
  5893. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5894. $as_echo "$ac_try_echo") >&5
  5895. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5896. ac_status=$?
  5897. grep -v '^ *+' conftest.er1 >conftest.err
  5898. rm -f conftest.er1
  5899. cat conftest.err >&5
  5900. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); } >/dev/null && {
  5902. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5903. test ! -s conftest.err
  5904. }; then
  5905. :
  5906. else
  5907. $as_echo "$as_me: failed program was:" >&5
  5908. sed 's/^/| /' conftest.$ac_ext >&5
  5909. # Broken: fails on valid input.
  5910. continue
  5911. fi
  5912. rm -f conftest.err conftest.$ac_ext
  5913. # OK, works on sane cases. Now check whether nonexistent headers
  5914. # can be detected and how.
  5915. cat >conftest.$ac_ext <<_ACEOF
  5916. /* confdefs.h. */
  5917. _ACEOF
  5918. cat confdefs.h >>conftest.$ac_ext
  5919. cat >>conftest.$ac_ext <<_ACEOF
  5920. /* end confdefs.h. */
  5921. #include <ac_nonexistent.h>
  5922. _ACEOF
  5923. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5924. case "(($ac_try" in
  5925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5926. *) ac_try_echo=$ac_try;;
  5927. esac
  5928. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5929. $as_echo "$ac_try_echo") >&5
  5930. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5931. ac_status=$?
  5932. grep -v '^ *+' conftest.er1 >conftest.err
  5933. rm -f conftest.er1
  5934. cat conftest.err >&5
  5935. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5936. (exit $ac_status); } >/dev/null && {
  5937. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5938. test ! -s conftest.err
  5939. }; then
  5940. # Broken: success on invalid input.
  5941. continue
  5942. else
  5943. $as_echo "$as_me: failed program was:" >&5
  5944. sed 's/^/| /' conftest.$ac_ext >&5
  5945. # Passes both tests.
  5946. ac_preproc_ok=:
  5947. break
  5948. fi
  5949. rm -f conftest.err conftest.$ac_ext
  5950. done
  5951. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5952. rm -f conftest.err conftest.$ac_ext
  5953. if $ac_preproc_ok; then
  5954. break
  5955. fi
  5956. done
  5957. ac_cv_prog_CPP=$CPP
  5958. fi
  5959. CPP=$ac_cv_prog_CPP
  5960. else
  5961. ac_cv_prog_CPP=$CPP
  5962. fi
  5963. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5964. $as_echo "$CPP" >&6; }
  5965. ac_preproc_ok=false
  5966. for ac_c_preproc_warn_flag in '' yes
  5967. do
  5968. # Use a header file that comes with gcc, so configuring glibc
  5969. # with a fresh cross-compiler works.
  5970. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5971. # <limits.h> exists even on freestanding compilers.
  5972. # On the NeXT, cc -E runs the code through the compiler's parser,
  5973. # not just through cpp. "Syntax error" is here to catch this case.
  5974. cat >conftest.$ac_ext <<_ACEOF
  5975. /* confdefs.h. */
  5976. _ACEOF
  5977. cat confdefs.h >>conftest.$ac_ext
  5978. cat >>conftest.$ac_ext <<_ACEOF
  5979. /* end confdefs.h. */
  5980. #ifdef __STDC__
  5981. # include <limits.h>
  5982. #else
  5983. # include <assert.h>
  5984. #endif
  5985. Syntax error
  5986. _ACEOF
  5987. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5988. case "(($ac_try" in
  5989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5990. *) ac_try_echo=$ac_try;;
  5991. esac
  5992. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5993. $as_echo "$ac_try_echo") >&5
  5994. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5995. ac_status=$?
  5996. grep -v '^ *+' conftest.er1 >conftest.err
  5997. rm -f conftest.er1
  5998. cat conftest.err >&5
  5999. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6000. (exit $ac_status); } >/dev/null && {
  6001. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6002. test ! -s conftest.err
  6003. }; then
  6004. :
  6005. else
  6006. $as_echo "$as_me: failed program was:" >&5
  6007. sed 's/^/| /' conftest.$ac_ext >&5
  6008. # Broken: fails on valid input.
  6009. continue
  6010. fi
  6011. rm -f conftest.err conftest.$ac_ext
  6012. # OK, works on sane cases. Now check whether nonexistent headers
  6013. # can be detected and how.
  6014. cat >conftest.$ac_ext <<_ACEOF
  6015. /* confdefs.h. */
  6016. _ACEOF
  6017. cat confdefs.h >>conftest.$ac_ext
  6018. cat >>conftest.$ac_ext <<_ACEOF
  6019. /* end confdefs.h. */
  6020. #include <ac_nonexistent.h>
  6021. _ACEOF
  6022. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6023. case "(($ac_try" in
  6024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6025. *) ac_try_echo=$ac_try;;
  6026. esac
  6027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6028. $as_echo "$ac_try_echo") >&5
  6029. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6030. ac_status=$?
  6031. grep -v '^ *+' conftest.er1 >conftest.err
  6032. rm -f conftest.er1
  6033. cat conftest.err >&5
  6034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6035. (exit $ac_status); } >/dev/null && {
  6036. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6037. test ! -s conftest.err
  6038. }; then
  6039. # Broken: success on invalid input.
  6040. continue
  6041. else
  6042. $as_echo "$as_me: failed program was:" >&5
  6043. sed 's/^/| /' conftest.$ac_ext >&5
  6044. # Passes both tests.
  6045. ac_preproc_ok=:
  6046. break
  6047. fi
  6048. rm -f conftest.err conftest.$ac_ext
  6049. done
  6050. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6051. rm -f conftest.err conftest.$ac_ext
  6052. if $ac_preproc_ok; then
  6053. :
  6054. else
  6055. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6057. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6058. See \`config.log' for more details." >&5
  6059. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6060. See \`config.log' for more details." >&2;}
  6061. { (exit 1); exit 1; }; }; }
  6062. fi
  6063. ac_ext=c
  6064. ac_cpp='$CPP $CPPFLAGS'
  6065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6068. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6069. $as_echo_n "checking for ANSI C header files... " >&6; }
  6070. if test "${ac_cv_header_stdc+set}" = set; then
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. cat >conftest.$ac_ext <<_ACEOF
  6074. /* confdefs.h. */
  6075. _ACEOF
  6076. cat confdefs.h >>conftest.$ac_ext
  6077. cat >>conftest.$ac_ext <<_ACEOF
  6078. /* end confdefs.h. */
  6079. #include <stdlib.h>
  6080. #include <stdarg.h>
  6081. #include <string.h>
  6082. #include <float.h>
  6083. int
  6084. main ()
  6085. {
  6086. ;
  6087. return 0;
  6088. }
  6089. _ACEOF
  6090. rm -f conftest.$ac_objext
  6091. if { (ac_try="$ac_compile"
  6092. case "(($ac_try" in
  6093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6094. *) ac_try_echo=$ac_try;;
  6095. esac
  6096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6097. $as_echo "$ac_try_echo") >&5
  6098. (eval "$ac_compile") 2>conftest.er1
  6099. ac_status=$?
  6100. grep -v '^ *+' conftest.er1 >conftest.err
  6101. rm -f conftest.er1
  6102. cat conftest.err >&5
  6103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6104. (exit $ac_status); } && {
  6105. test -z "$ac_c_werror_flag" ||
  6106. test ! -s conftest.err
  6107. } && test -s conftest.$ac_objext; then
  6108. ac_cv_header_stdc=yes
  6109. else
  6110. $as_echo "$as_me: failed program was:" >&5
  6111. sed 's/^/| /' conftest.$ac_ext >&5
  6112. ac_cv_header_stdc=no
  6113. fi
  6114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6115. if test $ac_cv_header_stdc = yes; then
  6116. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6117. cat >conftest.$ac_ext <<_ACEOF
  6118. /* confdefs.h. */
  6119. _ACEOF
  6120. cat confdefs.h >>conftest.$ac_ext
  6121. cat >>conftest.$ac_ext <<_ACEOF
  6122. /* end confdefs.h. */
  6123. #include <string.h>
  6124. _ACEOF
  6125. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6126. $EGREP "memchr" >/dev/null 2>&1; then
  6127. :
  6128. else
  6129. ac_cv_header_stdc=no
  6130. fi
  6131. rm -f conftest*
  6132. fi
  6133. if test $ac_cv_header_stdc = yes; then
  6134. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6135. cat >conftest.$ac_ext <<_ACEOF
  6136. /* confdefs.h. */
  6137. _ACEOF
  6138. cat confdefs.h >>conftest.$ac_ext
  6139. cat >>conftest.$ac_ext <<_ACEOF
  6140. /* end confdefs.h. */
  6141. #include <stdlib.h>
  6142. _ACEOF
  6143. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6144. $EGREP "free" >/dev/null 2>&1; then
  6145. :
  6146. else
  6147. ac_cv_header_stdc=no
  6148. fi
  6149. rm -f conftest*
  6150. fi
  6151. if test $ac_cv_header_stdc = yes; then
  6152. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6153. if test "$cross_compiling" = yes; then
  6154. :
  6155. else
  6156. cat >conftest.$ac_ext <<_ACEOF
  6157. /* confdefs.h. */
  6158. _ACEOF
  6159. cat confdefs.h >>conftest.$ac_ext
  6160. cat >>conftest.$ac_ext <<_ACEOF
  6161. /* end confdefs.h. */
  6162. #include <ctype.h>
  6163. #include <stdlib.h>
  6164. #if ((' ' & 0x0FF) == 0x020)
  6165. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6166. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6167. #else
  6168. # define ISLOWER(c) \
  6169. (('a' <= (c) && (c) <= 'i') \
  6170. || ('j' <= (c) && (c) <= 'r') \
  6171. || ('s' <= (c) && (c) <= 'z'))
  6172. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6173. #endif
  6174. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6175. int
  6176. main ()
  6177. {
  6178. int i;
  6179. for (i = 0; i < 256; i++)
  6180. if (XOR (islower (i), ISLOWER (i))
  6181. || toupper (i) != TOUPPER (i))
  6182. return 2;
  6183. return 0;
  6184. }
  6185. _ACEOF
  6186. rm -f conftest$ac_exeext
  6187. if { (ac_try="$ac_link"
  6188. case "(($ac_try" in
  6189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6190. *) ac_try_echo=$ac_try;;
  6191. esac
  6192. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6193. $as_echo "$ac_try_echo") >&5
  6194. (eval "$ac_link") 2>&5
  6195. ac_status=$?
  6196. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6197. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6198. { (case "(($ac_try" in
  6199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6200. *) ac_try_echo=$ac_try;;
  6201. esac
  6202. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6203. $as_echo "$ac_try_echo") >&5
  6204. (eval "$ac_try") 2>&5
  6205. ac_status=$?
  6206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6207. (exit $ac_status); }; }; then
  6208. :
  6209. else
  6210. $as_echo "$as_me: program exited with status $ac_status" >&5
  6211. $as_echo "$as_me: failed program was:" >&5
  6212. sed 's/^/| /' conftest.$ac_ext >&5
  6213. ( exit $ac_status )
  6214. ac_cv_header_stdc=no
  6215. fi
  6216. rm -rf conftest.dSYM
  6217. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6218. fi
  6219. fi
  6220. fi
  6221. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6222. $as_echo "$ac_cv_header_stdc" >&6; }
  6223. if test $ac_cv_header_stdc = yes; then
  6224. cat >>confdefs.h <<\_ACEOF
  6225. #define STDC_HEADERS 1
  6226. _ACEOF
  6227. fi
  6228. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6229. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6230. inttypes.h stdint.h unistd.h
  6231. do
  6232. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6233. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6234. $as_echo_n "checking for $ac_header... " >&6; }
  6235. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. cat >conftest.$ac_ext <<_ACEOF
  6239. /* confdefs.h. */
  6240. _ACEOF
  6241. cat confdefs.h >>conftest.$ac_ext
  6242. cat >>conftest.$ac_ext <<_ACEOF
  6243. /* end confdefs.h. */
  6244. $ac_includes_default
  6245. #include <$ac_header>
  6246. _ACEOF
  6247. rm -f conftest.$ac_objext
  6248. if { (ac_try="$ac_compile"
  6249. case "(($ac_try" in
  6250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6251. *) ac_try_echo=$ac_try;;
  6252. esac
  6253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6254. $as_echo "$ac_try_echo") >&5
  6255. (eval "$ac_compile") 2>conftest.er1
  6256. ac_status=$?
  6257. grep -v '^ *+' conftest.er1 >conftest.err
  6258. rm -f conftest.er1
  6259. cat conftest.err >&5
  6260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6261. (exit $ac_status); } && {
  6262. test -z "$ac_c_werror_flag" ||
  6263. test ! -s conftest.err
  6264. } && test -s conftest.$ac_objext; then
  6265. eval "$as_ac_Header=yes"
  6266. else
  6267. $as_echo "$as_me: failed program was:" >&5
  6268. sed 's/^/| /' conftest.$ac_ext >&5
  6269. eval "$as_ac_Header=no"
  6270. fi
  6271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6272. fi
  6273. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6274. $as_echo "$as_val"'`
  6275. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6276. $as_echo "$ac_res" >&6; }
  6277. as_val=`eval 'as_val=${'$as_ac_Header'}
  6278. $as_echo "$as_val"'`
  6279. if test "x$as_val" = x""yes; then
  6280. cat >>confdefs.h <<_ACEOF
  6281. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6282. _ACEOF
  6283. fi
  6284. done
  6285. for ac_header in dlfcn.h
  6286. do
  6287. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6288. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  6289. $as_echo_n "checking for $ac_header... " >&6; }
  6290. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. cat >conftest.$ac_ext <<_ACEOF
  6294. /* confdefs.h. */
  6295. _ACEOF
  6296. cat confdefs.h >>conftest.$ac_ext
  6297. cat >>conftest.$ac_ext <<_ACEOF
  6298. /* end confdefs.h. */
  6299. $ac_includes_default
  6300. #include <$ac_header>
  6301. _ACEOF
  6302. rm -f conftest.$ac_objext
  6303. if { (ac_try="$ac_compile"
  6304. case "(($ac_try" in
  6305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6306. *) ac_try_echo=$ac_try;;
  6307. esac
  6308. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6309. $as_echo "$ac_try_echo") >&5
  6310. (eval "$ac_compile") 2>conftest.er1
  6311. ac_status=$?
  6312. grep -v '^ *+' conftest.er1 >conftest.err
  6313. rm -f conftest.er1
  6314. cat conftest.err >&5
  6315. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6316. (exit $ac_status); } && {
  6317. test -z "$ac_c_werror_flag" ||
  6318. test ! -s conftest.err
  6319. } && test -s conftest.$ac_objext; then
  6320. eval "$as_ac_Header=yes"
  6321. else
  6322. $as_echo "$as_me: failed program was:" >&5
  6323. sed 's/^/| /' conftest.$ac_ext >&5
  6324. eval "$as_ac_Header=no"
  6325. fi
  6326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6327. fi
  6328. ac_res=`eval 'as_val=${'$as_ac_Header'}
  6329. $as_echo "$as_val"'`
  6330. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6331. $as_echo "$ac_res" >&6; }
  6332. as_val=`eval 'as_val=${'$as_ac_Header'}
  6333. $as_echo "$as_val"'`
  6334. if test "x$as_val" = x""yes; then
  6335. cat >>confdefs.h <<_ACEOF
  6336. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6337. _ACEOF
  6338. fi
  6339. done
  6340. # Set options
  6341. enable_dlopen=no
  6342. enable_win32_dll=no
  6343. # Check whether --enable-shared was given.
  6344. if test "${enable_shared+set}" = set; then
  6345. enableval=$enable_shared; p=${PACKAGE-default}
  6346. case $enableval in
  6347. yes) enable_shared=yes ;;
  6348. no) enable_shared=no ;;
  6349. *)
  6350. enable_shared=no
  6351. # Look at the argument we got. We use all the common list separators.
  6352. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6353. for pkg in $enableval; do
  6354. IFS="$lt_save_ifs"
  6355. if test "X$pkg" = "X$p"; then
  6356. enable_shared=yes
  6357. fi
  6358. done
  6359. IFS="$lt_save_ifs"
  6360. ;;
  6361. esac
  6362. else
  6363. enable_shared=yes
  6364. fi
  6365. # Check whether --enable-static was given.
  6366. if test "${enable_static+set}" = set; then
  6367. enableval=$enable_static; p=${PACKAGE-default}
  6368. case $enableval in
  6369. yes) enable_static=yes ;;
  6370. no) enable_static=no ;;
  6371. *)
  6372. enable_static=no
  6373. # Look at the argument we got. We use all the common list separators.
  6374. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6375. for pkg in $enableval; do
  6376. IFS="$lt_save_ifs"
  6377. if test "X$pkg" = "X$p"; then
  6378. enable_static=yes
  6379. fi
  6380. done
  6381. IFS="$lt_save_ifs"
  6382. ;;
  6383. esac
  6384. else
  6385. enable_static=yes
  6386. fi
  6387. # Check whether --with-pic was given.
  6388. if test "${with_pic+set}" = set; then
  6389. withval=$with_pic; pic_mode="$withval"
  6390. else
  6391. pic_mode=default
  6392. fi
  6393. test -z "$pic_mode" && pic_mode=default
  6394. # Check whether --enable-fast-install was given.
  6395. if test "${enable_fast_install+set}" = set; then
  6396. enableval=$enable_fast_install; p=${PACKAGE-default}
  6397. case $enableval in
  6398. yes) enable_fast_install=yes ;;
  6399. no) enable_fast_install=no ;;
  6400. *)
  6401. enable_fast_install=no
  6402. # Look at the argument we got. We use all the common list separators.
  6403. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6404. for pkg in $enableval; do
  6405. IFS="$lt_save_ifs"
  6406. if test "X$pkg" = "X$p"; then
  6407. enable_fast_install=yes
  6408. fi
  6409. done
  6410. IFS="$lt_save_ifs"
  6411. ;;
  6412. esac
  6413. else
  6414. enable_fast_install=yes
  6415. fi
  6416. # This can be used to rebuild libtool when needed
  6417. LIBTOOL_DEPS="$ltmain"
  6418. # Always use our own libtool.
  6419. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6420. test -z "$LN_S" && LN_S="ln -s"
  6421. if test -n "${ZSH_VERSION+set}" ; then
  6422. setopt NO_GLOB_SUBST
  6423. fi
  6424. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6425. $as_echo_n "checking for objdir... " >&6; }
  6426. if test "${lt_cv_objdir+set}" = set; then
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. rm -f .libs 2>/dev/null
  6430. mkdir .libs 2>/dev/null
  6431. if test -d .libs; then
  6432. lt_cv_objdir=.libs
  6433. else
  6434. # MS-DOS does not allow filenames that begin with a dot.
  6435. lt_cv_objdir=_libs
  6436. fi
  6437. rmdir .libs 2>/dev/null
  6438. fi
  6439. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6440. $as_echo "$lt_cv_objdir" >&6; }
  6441. objdir=$lt_cv_objdir
  6442. cat >>confdefs.h <<_ACEOF
  6443. #define LT_OBJDIR "$lt_cv_objdir/"
  6444. _ACEOF
  6445. case $host_os in
  6446. aix3*)
  6447. # AIX sometimes has problems with the GCC collect2 program. For some
  6448. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6449. # vanish in a puff of smoke.
  6450. if test "X${COLLECT_NAMES+set}" != Xset; then
  6451. COLLECT_NAMES=
  6452. export COLLECT_NAMES
  6453. fi
  6454. ;;
  6455. esac
  6456. # Sed substitution that helps us do robust quoting. It backslashifies
  6457. # metacharacters that are still active within double-quoted strings.
  6458. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6459. # Same as above, but do not quote variable references.
  6460. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6461. # Sed substitution to delay expansion of an escaped shell variable in a
  6462. # double_quote_subst'ed string.
  6463. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6464. # Sed substitution to delay expansion of an escaped single quote.
  6465. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6466. # Sed substitution to avoid accidental globbing in evaled expressions
  6467. no_glob_subst='s/\*/\\\*/g'
  6468. # Global variables:
  6469. ofile=libtool
  6470. can_build_shared=yes
  6471. # All known linkers require a `.a' archive for static linking (except MSVC,
  6472. # which needs '.lib').
  6473. libext=a
  6474. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6475. old_CC="$CC"
  6476. old_CFLAGS="$CFLAGS"
  6477. # Set sane defaults for various variables
  6478. test -z "$CC" && CC=cc
  6479. test -z "$LTCC" && LTCC=$CC
  6480. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6481. test -z "$LD" && LD=ld
  6482. test -z "$ac_objext" && ac_objext=o
  6483. for cc_temp in $compiler""; do
  6484. case $cc_temp in
  6485. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6486. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6487. \-*) ;;
  6488. *) break;;
  6489. esac
  6490. done
  6491. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6492. # Only perform the check for file, if the check method requires it
  6493. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6494. case $deplibs_check_method in
  6495. file_magic*)
  6496. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6497. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6498. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6499. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. case $MAGIC_CMD in
  6503. [\\/*] | ?:[\\/]*)
  6504. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6505. ;;
  6506. *)
  6507. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6508. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6509. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6510. for ac_dir in $ac_dummy; do
  6511. IFS="$lt_save_ifs"
  6512. test -z "$ac_dir" && ac_dir=.
  6513. if test -f $ac_dir/${ac_tool_prefix}file; then
  6514. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6515. if test -n "$file_magic_test_file"; then
  6516. case $deplibs_check_method in
  6517. "file_magic "*)
  6518. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6519. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6520. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6521. $EGREP "$file_magic_regex" > /dev/null; then
  6522. :
  6523. else
  6524. cat <<_LT_EOF 1>&2
  6525. *** Warning: the command libtool uses to detect shared libraries,
  6526. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6527. *** The result is that libtool may fail to recognize shared libraries
  6528. *** as such. This will affect the creation of libtool libraries that
  6529. *** depend on shared libraries, but programs linked with such libtool
  6530. *** libraries will work regardless of this problem. Nevertheless, you
  6531. *** may want to report the problem to your system manager and/or to
  6532. *** bug-libtool@gnu.org
  6533. _LT_EOF
  6534. fi ;;
  6535. esac
  6536. fi
  6537. break
  6538. fi
  6539. done
  6540. IFS="$lt_save_ifs"
  6541. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6542. ;;
  6543. esac
  6544. fi
  6545. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6546. if test -n "$MAGIC_CMD"; then
  6547. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6548. $as_echo "$MAGIC_CMD" >&6; }
  6549. else
  6550. { $as_echo "$as_me:$LINENO: result: no" >&5
  6551. $as_echo "no" >&6; }
  6552. fi
  6553. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6554. if test -n "$ac_tool_prefix"; then
  6555. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6556. $as_echo_n "checking for file... " >&6; }
  6557. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6558. $as_echo_n "(cached) " >&6
  6559. else
  6560. case $MAGIC_CMD in
  6561. [\\/*] | ?:[\\/]*)
  6562. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6563. ;;
  6564. *)
  6565. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6566. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6567. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6568. for ac_dir in $ac_dummy; do
  6569. IFS="$lt_save_ifs"
  6570. test -z "$ac_dir" && ac_dir=.
  6571. if test -f $ac_dir/file; then
  6572. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6573. if test -n "$file_magic_test_file"; then
  6574. case $deplibs_check_method in
  6575. "file_magic "*)
  6576. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6577. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6578. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6579. $EGREP "$file_magic_regex" > /dev/null; then
  6580. :
  6581. else
  6582. cat <<_LT_EOF 1>&2
  6583. *** Warning: the command libtool uses to detect shared libraries,
  6584. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6585. *** The result is that libtool may fail to recognize shared libraries
  6586. *** as such. This will affect the creation of libtool libraries that
  6587. *** depend on shared libraries, but programs linked with such libtool
  6588. *** libraries will work regardless of this problem. Nevertheless, you
  6589. *** may want to report the problem to your system manager and/or to
  6590. *** bug-libtool@gnu.org
  6591. _LT_EOF
  6592. fi ;;
  6593. esac
  6594. fi
  6595. break
  6596. fi
  6597. done
  6598. IFS="$lt_save_ifs"
  6599. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6600. ;;
  6601. esac
  6602. fi
  6603. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6604. if test -n "$MAGIC_CMD"; then
  6605. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6606. $as_echo "$MAGIC_CMD" >&6; }
  6607. else
  6608. { $as_echo "$as_me:$LINENO: result: no" >&5
  6609. $as_echo "no" >&6; }
  6610. fi
  6611. else
  6612. MAGIC_CMD=:
  6613. fi
  6614. fi
  6615. fi
  6616. ;;
  6617. esac
  6618. # Use C for the default configuration in the libtool script
  6619. lt_save_CC="$CC"
  6620. ac_ext=c
  6621. ac_cpp='$CPP $CPPFLAGS'
  6622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6625. # Source file extension for C test sources.
  6626. ac_ext=c
  6627. # Object file extension for compiled C test sources.
  6628. objext=o
  6629. objext=$objext
  6630. # Code to be used in simple compile tests
  6631. lt_simple_compile_test_code="int some_variable = 0;"
  6632. # Code to be used in simple link tests
  6633. lt_simple_link_test_code='int main(){return(0);}'
  6634. # If no C compiler was specified, use CC.
  6635. LTCC=${LTCC-"$CC"}
  6636. # If no C compiler flags were specified, use CFLAGS.
  6637. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6638. # Allow CC to be a program name with arguments.
  6639. compiler=$CC
  6640. # Save the default compiler, since it gets overwritten when the other
  6641. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6642. compiler_DEFAULT=$CC
  6643. # save warnings/boilerplate of simple test code
  6644. ac_outfile=conftest.$ac_objext
  6645. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6646. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6647. _lt_compiler_boilerplate=`cat conftest.err`
  6648. $RM conftest*
  6649. ac_outfile=conftest.$ac_objext
  6650. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6651. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6652. _lt_linker_boilerplate=`cat conftest.err`
  6653. $RM -r conftest*
  6654. if test -n "$compiler"; then
  6655. lt_prog_compiler_no_builtin_flag=
  6656. if test "$GCC" = yes; then
  6657. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6658. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6659. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6660. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6661. $as_echo_n "(cached) " >&6
  6662. else
  6663. lt_cv_prog_compiler_rtti_exceptions=no
  6664. ac_outfile=conftest.$ac_objext
  6665. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6666. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6667. # Insert the option either (1) after the last *FLAGS variable, or
  6668. # (2) before a word containing "conftest.", or (3) at the end.
  6669. # Note that $ac_compile itself does not contain backslashes and begins
  6670. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6671. # The option is referenced via a variable to avoid confusing sed.
  6672. lt_compile=`echo "$ac_compile" | $SED \
  6673. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6674. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6675. -e 's:$: $lt_compiler_flag:'`
  6676. (eval echo "\"\$as_me:7722: $lt_compile\"" >&5)
  6677. (eval "$lt_compile" 2>conftest.err)
  6678. ac_status=$?
  6679. cat conftest.err >&5
  6680. echo "$as_me:7726: \$? = $ac_status" >&5
  6681. if (exit $ac_status) && test -s "$ac_outfile"; then
  6682. # The compiler can only warn and ignore the option if not recognized
  6683. # So say no if there are warnings other than the usual output.
  6684. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6685. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6686. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6687. lt_cv_prog_compiler_rtti_exceptions=yes
  6688. fi
  6689. fi
  6690. $RM conftest*
  6691. fi
  6692. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6693. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6694. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6695. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6696. else
  6697. :
  6698. fi
  6699. fi
  6700. lt_prog_compiler_wl=
  6701. lt_prog_compiler_pic=
  6702. lt_prog_compiler_static=
  6703. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6704. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6705. if test "$GCC" = yes; then
  6706. lt_prog_compiler_wl='-Wl,'
  6707. lt_prog_compiler_static='-static'
  6708. case $host_os in
  6709. aix*)
  6710. # All AIX code is PIC.
  6711. if test "$host_cpu" = ia64; then
  6712. # AIX 5 now supports IA64 processor
  6713. lt_prog_compiler_static='-Bstatic'
  6714. fi
  6715. ;;
  6716. amigaos*)
  6717. case $host_cpu in
  6718. powerpc)
  6719. # see comment about AmigaOS4 .so support
  6720. lt_prog_compiler_pic='-fPIC'
  6721. ;;
  6722. m68k)
  6723. # FIXME: we need at least 68020 code to build shared libraries, but
  6724. # adding the `-m68020' flag to GCC prevents building anything better,
  6725. # like `-m68040'.
  6726. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6727. ;;
  6728. esac
  6729. ;;
  6730. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6731. # PIC is the default for these OSes.
  6732. ;;
  6733. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6734. # This hack is so that the source file can tell whether it is being
  6735. # built for inclusion in a dll (and should export symbols for example).
  6736. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6737. # (--disable-auto-import) libraries
  6738. lt_prog_compiler_pic='-DDLL_EXPORT'
  6739. ;;
  6740. darwin* | rhapsody*)
  6741. # PIC is the default on this platform
  6742. # Common symbols not allowed in MH_DYLIB files
  6743. lt_prog_compiler_pic='-fno-common'
  6744. ;;
  6745. hpux*)
  6746. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6747. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6748. # sets the default TLS model and affects inlining.
  6749. case $host_cpu in
  6750. hppa*64*)
  6751. # +Z the default
  6752. ;;
  6753. *)
  6754. lt_prog_compiler_pic='-fPIC'
  6755. ;;
  6756. esac
  6757. ;;
  6758. interix[3-9]*)
  6759. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6760. # Instead, we relocate shared libraries at runtime.
  6761. ;;
  6762. msdosdjgpp*)
  6763. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6764. # on systems that don't support them.
  6765. lt_prog_compiler_can_build_shared=no
  6766. enable_shared=no
  6767. ;;
  6768. *nto* | *qnx*)
  6769. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6770. # it will coredump.
  6771. lt_prog_compiler_pic='-fPIC -shared'
  6772. ;;
  6773. sysv4*MP*)
  6774. if test -d /usr/nec; then
  6775. lt_prog_compiler_pic=-Kconform_pic
  6776. fi
  6777. ;;
  6778. *)
  6779. lt_prog_compiler_pic='-fPIC'
  6780. ;;
  6781. esac
  6782. else
  6783. # PORTME Check for flag to pass linker flags through the system compiler.
  6784. case $host_os in
  6785. aix*)
  6786. lt_prog_compiler_wl='-Wl,'
  6787. if test "$host_cpu" = ia64; then
  6788. # AIX 5 now supports IA64 processor
  6789. lt_prog_compiler_static='-Bstatic'
  6790. else
  6791. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6792. fi
  6793. ;;
  6794. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6795. # This hack is so that the source file can tell whether it is being
  6796. # built for inclusion in a dll (and should export symbols for example).
  6797. lt_prog_compiler_pic='-DDLL_EXPORT'
  6798. ;;
  6799. hpux9* | hpux10* | hpux11*)
  6800. lt_prog_compiler_wl='-Wl,'
  6801. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6802. # not for PA HP-UX.
  6803. case $host_cpu in
  6804. hppa*64*|ia64*)
  6805. # +Z the default
  6806. ;;
  6807. *)
  6808. lt_prog_compiler_pic='+Z'
  6809. ;;
  6810. esac
  6811. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6812. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6813. ;;
  6814. irix5* | irix6* | nonstopux*)
  6815. lt_prog_compiler_wl='-Wl,'
  6816. # PIC (with -KPIC) is the default.
  6817. lt_prog_compiler_static='-non_shared'
  6818. ;;
  6819. linux* | k*bsd*-gnu)
  6820. case $cc_basename in
  6821. # old Intel for x86_64 which still supported -KPIC.
  6822. ecc*)
  6823. lt_prog_compiler_wl='-Wl,'
  6824. lt_prog_compiler_pic='-KPIC'
  6825. lt_prog_compiler_static='-static'
  6826. ;;
  6827. # icc used to be incompatible with GCC.
  6828. # ICC 10 doesn't accept -KPIC any more.
  6829. icc* | ifort*)
  6830. lt_prog_compiler_wl='-Wl,'
  6831. lt_prog_compiler_pic='-fPIC'
  6832. lt_prog_compiler_static='-static'
  6833. ;;
  6834. # Lahey Fortran 8.1.
  6835. lf95*)
  6836. lt_prog_compiler_wl='-Wl,'
  6837. lt_prog_compiler_pic='--shared'
  6838. lt_prog_compiler_static='--static'
  6839. ;;
  6840. pgcc* | pgf77* | pgf90* | pgf95*)
  6841. # Portland Group compilers (*not* the Pentium gcc compiler,
  6842. # which looks to be a dead project)
  6843. lt_prog_compiler_wl='-Wl,'
  6844. lt_prog_compiler_pic='-fpic'
  6845. lt_prog_compiler_static='-Bstatic'
  6846. ;;
  6847. ccc*)
  6848. lt_prog_compiler_wl='-Wl,'
  6849. # All Alpha code is PIC.
  6850. lt_prog_compiler_static='-non_shared'
  6851. ;;
  6852. xl*)
  6853. # IBM XL C 8.0/Fortran 10.1 on PPC
  6854. lt_prog_compiler_wl='-Wl,'
  6855. lt_prog_compiler_pic='-qpic'
  6856. lt_prog_compiler_static='-qstaticlink'
  6857. ;;
  6858. *)
  6859. case `$CC -V 2>&1 | sed 5q` in
  6860. *Sun\ C*)
  6861. # Sun C 5.9
  6862. lt_prog_compiler_pic='-KPIC'
  6863. lt_prog_compiler_static='-Bstatic'
  6864. lt_prog_compiler_wl='-Wl,'
  6865. ;;
  6866. *Sun\ F*)
  6867. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6868. lt_prog_compiler_pic='-KPIC'
  6869. lt_prog_compiler_static='-Bstatic'
  6870. lt_prog_compiler_wl=''
  6871. ;;
  6872. esac
  6873. ;;
  6874. esac
  6875. ;;
  6876. newsos6)
  6877. lt_prog_compiler_pic='-KPIC'
  6878. lt_prog_compiler_static='-Bstatic'
  6879. ;;
  6880. *nto* | *qnx*)
  6881. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6882. # it will coredump.
  6883. lt_prog_compiler_pic='-fPIC -shared'
  6884. ;;
  6885. osf3* | osf4* | osf5*)
  6886. lt_prog_compiler_wl='-Wl,'
  6887. # All OSF/1 code is PIC.
  6888. lt_prog_compiler_static='-non_shared'
  6889. ;;
  6890. rdos*)
  6891. lt_prog_compiler_static='-non_shared'
  6892. ;;
  6893. solaris*)
  6894. lt_prog_compiler_pic='-KPIC'
  6895. lt_prog_compiler_static='-Bstatic'
  6896. case $cc_basename in
  6897. f77* | f90* | f95*)
  6898. lt_prog_compiler_wl='-Qoption ld ';;
  6899. *)
  6900. lt_prog_compiler_wl='-Wl,';;
  6901. esac
  6902. ;;
  6903. sunos4*)
  6904. lt_prog_compiler_wl='-Qoption ld '
  6905. lt_prog_compiler_pic='-PIC'
  6906. lt_prog_compiler_static='-Bstatic'
  6907. ;;
  6908. sysv4 | sysv4.2uw2* | sysv4.3*)
  6909. lt_prog_compiler_wl='-Wl,'
  6910. lt_prog_compiler_pic='-KPIC'
  6911. lt_prog_compiler_static='-Bstatic'
  6912. ;;
  6913. sysv4*MP*)
  6914. if test -d /usr/nec ;then
  6915. lt_prog_compiler_pic='-Kconform_pic'
  6916. lt_prog_compiler_static='-Bstatic'
  6917. fi
  6918. ;;
  6919. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6920. lt_prog_compiler_wl='-Wl,'
  6921. lt_prog_compiler_pic='-KPIC'
  6922. lt_prog_compiler_static='-Bstatic'
  6923. ;;
  6924. unicos*)
  6925. lt_prog_compiler_wl='-Wl,'
  6926. lt_prog_compiler_can_build_shared=no
  6927. ;;
  6928. uts4*)
  6929. lt_prog_compiler_pic='-pic'
  6930. lt_prog_compiler_static='-Bstatic'
  6931. ;;
  6932. *)
  6933. lt_prog_compiler_can_build_shared=no
  6934. ;;
  6935. esac
  6936. fi
  6937. case $host_os in
  6938. # For platforms which do not support PIC, -DPIC is meaningless:
  6939. *djgpp*)
  6940. lt_prog_compiler_pic=
  6941. ;;
  6942. *)
  6943. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6944. ;;
  6945. esac
  6946. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6947. $as_echo "$lt_prog_compiler_pic" >&6; }
  6948. #
  6949. # Check to make sure the PIC flag actually works.
  6950. #
  6951. if test -n "$lt_prog_compiler_pic"; then
  6952. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6953. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6954. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  6955. $as_echo_n "(cached) " >&6
  6956. else
  6957. lt_cv_prog_compiler_pic_works=no
  6958. ac_outfile=conftest.$ac_objext
  6959. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6960. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6961. # Insert the option either (1) after the last *FLAGS variable, or
  6962. # (2) before a word containing "conftest.", or (3) at the end.
  6963. # Note that $ac_compile itself does not contain backslashes and begins
  6964. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6965. # The option is referenced via a variable to avoid confusing sed.
  6966. lt_compile=`echo "$ac_compile" | $SED \
  6967. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6968. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6969. -e 's:$: $lt_compiler_flag:'`
  6970. (eval echo "\"\$as_me:8061: $lt_compile\"" >&5)
  6971. (eval "$lt_compile" 2>conftest.err)
  6972. ac_status=$?
  6973. cat conftest.err >&5
  6974. echo "$as_me:8065: \$? = $ac_status" >&5
  6975. if (exit $ac_status) && test -s "$ac_outfile"; then
  6976. # The compiler can only warn and ignore the option if not recognized
  6977. # So say no if there are warnings other than the usual output.
  6978. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6979. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6980. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6981. lt_cv_prog_compiler_pic_works=yes
  6982. fi
  6983. fi
  6984. $RM conftest*
  6985. fi
  6986. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  6987. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6988. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6989. case $lt_prog_compiler_pic in
  6990. "" | " "*) ;;
  6991. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6992. esac
  6993. else
  6994. lt_prog_compiler_pic=
  6995. lt_prog_compiler_can_build_shared=no
  6996. fi
  6997. fi
  6998. #
  6999. # Check to make sure the static flag actually works.
  7000. #
  7001. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7002. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7003. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7004. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. lt_cv_prog_compiler_static_works=no
  7008. save_LDFLAGS="$LDFLAGS"
  7009. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7010. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7011. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7012. # The linker can only warn and ignore the option if not recognized
  7013. # So say no if there are warnings
  7014. if test -s conftest.err; then
  7015. # Append any errors to the config.log.
  7016. cat conftest.err 1>&5
  7017. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7018. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7019. if diff conftest.exp conftest.er2 >/dev/null; then
  7020. lt_cv_prog_compiler_static_works=yes
  7021. fi
  7022. else
  7023. lt_cv_prog_compiler_static_works=yes
  7024. fi
  7025. fi
  7026. $RM -r conftest*
  7027. LDFLAGS="$save_LDFLAGS"
  7028. fi
  7029. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7030. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7031. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7032. :
  7033. else
  7034. lt_prog_compiler_static=
  7035. fi
  7036. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7037. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7038. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7039. $as_echo_n "(cached) " >&6
  7040. else
  7041. lt_cv_prog_compiler_c_o=no
  7042. $RM -r conftest 2>/dev/null
  7043. mkdir conftest
  7044. cd conftest
  7045. mkdir out
  7046. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7047. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7048. # Insert the option either (1) after the last *FLAGS variable, or
  7049. # (2) before a word containing "conftest.", or (3) at the end.
  7050. # Note that $ac_compile itself does not contain backslashes and begins
  7051. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7052. lt_compile=`echo "$ac_compile" | $SED \
  7053. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7054. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7055. -e 's:$: $lt_compiler_flag:'`
  7056. (eval echo "\"\$as_me:8166: $lt_compile\"" >&5)
  7057. (eval "$lt_compile" 2>out/conftest.err)
  7058. ac_status=$?
  7059. cat out/conftest.err >&5
  7060. echo "$as_me:8170: \$? = $ac_status" >&5
  7061. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7062. then
  7063. # The compiler can only warn and ignore the option if not recognized
  7064. # So say no if there are warnings
  7065. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7066. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7067. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7068. lt_cv_prog_compiler_c_o=yes
  7069. fi
  7070. fi
  7071. chmod u+w . 2>&5
  7072. $RM conftest*
  7073. # SGI C++ compiler will create directory out/ii_files/ for
  7074. # template instantiation
  7075. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7076. $RM out/* && rmdir out
  7077. cd ..
  7078. $RM -r conftest
  7079. $RM conftest*
  7080. fi
  7081. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7082. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7083. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7084. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7085. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7086. $as_echo_n "(cached) " >&6
  7087. else
  7088. lt_cv_prog_compiler_c_o=no
  7089. $RM -r conftest 2>/dev/null
  7090. mkdir conftest
  7091. cd conftest
  7092. mkdir out
  7093. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7094. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7095. # Insert the option either (1) after the last *FLAGS variable, or
  7096. # (2) before a word containing "conftest.", or (3) at the end.
  7097. # Note that $ac_compile itself does not contain backslashes and begins
  7098. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7099. lt_compile=`echo "$ac_compile" | $SED \
  7100. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7101. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7102. -e 's:$: $lt_compiler_flag:'`
  7103. (eval echo "\"\$as_me:8221: $lt_compile\"" >&5)
  7104. (eval "$lt_compile" 2>out/conftest.err)
  7105. ac_status=$?
  7106. cat out/conftest.err >&5
  7107. echo "$as_me:8225: \$? = $ac_status" >&5
  7108. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7109. then
  7110. # The compiler can only warn and ignore the option if not recognized
  7111. # So say no if there are warnings
  7112. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7113. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7114. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7115. lt_cv_prog_compiler_c_o=yes
  7116. fi
  7117. fi
  7118. chmod u+w . 2>&5
  7119. $RM conftest*
  7120. # SGI C++ compiler will create directory out/ii_files/ for
  7121. # template instantiation
  7122. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7123. $RM out/* && rmdir out
  7124. cd ..
  7125. $RM -r conftest
  7126. $RM conftest*
  7127. fi
  7128. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7129. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7130. hard_links="nottested"
  7131. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7132. # do not overwrite the value of need_locks provided by the user
  7133. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7134. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7135. hard_links=yes
  7136. $RM conftest*
  7137. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7138. touch conftest.a
  7139. ln conftest.a conftest.b 2>&5 || hard_links=no
  7140. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7141. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  7142. $as_echo "$hard_links" >&6; }
  7143. if test "$hard_links" = no; then
  7144. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7145. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7146. need_locks=warn
  7147. fi
  7148. else
  7149. need_locks=no
  7150. fi
  7151. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7152. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7153. runpath_var=
  7154. allow_undefined_flag=
  7155. always_export_symbols=no
  7156. archive_cmds=
  7157. archive_expsym_cmds=
  7158. compiler_needs_object=no
  7159. enable_shared_with_static_runtimes=no
  7160. export_dynamic_flag_spec=
  7161. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7162. hardcode_automatic=no
  7163. hardcode_direct=no
  7164. hardcode_direct_absolute=no
  7165. hardcode_libdir_flag_spec=
  7166. hardcode_libdir_flag_spec_ld=
  7167. hardcode_libdir_separator=
  7168. hardcode_minus_L=no
  7169. hardcode_shlibpath_var=unsupported
  7170. inherit_rpath=no
  7171. link_all_deplibs=unknown
  7172. module_cmds=
  7173. module_expsym_cmds=
  7174. old_archive_from_new_cmds=
  7175. old_archive_from_expsyms_cmds=
  7176. thread_safe_flag_spec=
  7177. whole_archive_flag_spec=
  7178. # include_expsyms should be a list of space-separated symbols to be *always*
  7179. # included in the symbol list
  7180. include_expsyms=
  7181. # exclude_expsyms can be an extended regexp of symbols to exclude
  7182. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7183. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7184. # as well as any symbol that contains `d'.
  7185. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7186. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7187. # platforms (ab)use it in PIC code, but their linkers get confused if
  7188. # the symbol is explicitly referenced. Since portable code cannot
  7189. # rely on this symbol name, it's probably fine to never include it in
  7190. # preloaded symbol tables.
  7191. # Exclude shared library initialization/finalization symbols.
  7192. extract_expsyms_cmds=
  7193. case $host_os in
  7194. cygwin* | mingw* | pw32* | cegcc*)
  7195. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7196. # When not using gcc, we currently assume that we are using
  7197. # Microsoft Visual C++.
  7198. if test "$GCC" != yes; then
  7199. with_gnu_ld=no
  7200. fi
  7201. ;;
  7202. interix*)
  7203. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7204. with_gnu_ld=yes
  7205. ;;
  7206. openbsd*)
  7207. with_gnu_ld=no
  7208. ;;
  7209. esac
  7210. ld_shlibs=yes
  7211. if test "$with_gnu_ld" = yes; then
  7212. # If archive_cmds runs LD, not CC, wlarc should be empty
  7213. wlarc='${wl}'
  7214. # Set some defaults for GNU ld with shared library support. These
  7215. # are reset later if shared libraries are not supported. Putting them
  7216. # here allows them to be overridden if necessary.
  7217. runpath_var=LD_RUN_PATH
  7218. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7219. export_dynamic_flag_spec='${wl}--export-dynamic'
  7220. # ancient GNU ld didn't support --whole-archive et. al.
  7221. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7222. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7223. else
  7224. whole_archive_flag_spec=
  7225. fi
  7226. supports_anon_versioning=no
  7227. case `$LD -v 2>&1` in
  7228. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7229. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7230. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7231. *\ 2.11.*) ;; # other 2.11 versions
  7232. *) supports_anon_versioning=yes ;;
  7233. esac
  7234. # See if GNU ld supports shared libraries.
  7235. case $host_os in
  7236. aix[3-9]*)
  7237. # On AIX/PPC, the GNU linker is very broken
  7238. if test "$host_cpu" != ia64; then
  7239. ld_shlibs=no
  7240. cat <<_LT_EOF 1>&2
  7241. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7242. *** to be unable to reliably create shared libraries on AIX.
  7243. *** Therefore, libtool is disabling shared libraries support. If you
  7244. *** really care for shared libraries, you may want to modify your PATH
  7245. *** so that a non-GNU linker is found, and then restart.
  7246. _LT_EOF
  7247. fi
  7248. ;;
  7249. amigaos*)
  7250. case $host_cpu in
  7251. powerpc)
  7252. # see comment about AmigaOS4 .so support
  7253. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7254. archive_expsym_cmds=''
  7255. ;;
  7256. m68k)
  7257. 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)'
  7258. hardcode_libdir_flag_spec='-L$libdir'
  7259. hardcode_minus_L=yes
  7260. ;;
  7261. esac
  7262. ;;
  7263. beos*)
  7264. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7265. allow_undefined_flag=unsupported
  7266. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7267. # support --undefined. This deserves some investigation. FIXME
  7268. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7269. else
  7270. ld_shlibs=no
  7271. fi
  7272. ;;
  7273. cygwin* | mingw* | pw32* | cegcc*)
  7274. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7275. # as there is no search path for DLLs.
  7276. hardcode_libdir_flag_spec='-L$libdir'
  7277. allow_undefined_flag=unsupported
  7278. always_export_symbols=no
  7279. enable_shared_with_static_runtimes=yes
  7280. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7281. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7282. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7283. # If the export-symbols file already is a .def file (1st line
  7284. # is EXPORTS), use it as is; otherwise, prepend...
  7285. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7286. cp $export_symbols $output_objdir/$soname.def;
  7287. else
  7288. echo EXPORTS > $output_objdir/$soname.def;
  7289. cat $export_symbols >> $output_objdir/$soname.def;
  7290. fi~
  7291. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7292. else
  7293. ld_shlibs=no
  7294. fi
  7295. ;;
  7296. interix[3-9]*)
  7297. hardcode_direct=no
  7298. hardcode_shlibpath_var=no
  7299. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7300. export_dynamic_flag_spec='${wl}-E'
  7301. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7302. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7303. # default) and relocated if they conflict, which is a slow very memory
  7304. # consuming and fragmenting process. To avoid this, we pick a random,
  7305. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7306. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7307. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7308. 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'
  7309. ;;
  7310. gnu* | linux* | tpf* | k*bsd*-gnu)
  7311. tmp_diet=no
  7312. if test "$host_os" = linux-dietlibc; then
  7313. case $cc_basename in
  7314. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7315. esac
  7316. fi
  7317. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7318. && test "$tmp_diet" = no
  7319. then
  7320. tmp_addflag=
  7321. tmp_sharedflag='-shared'
  7322. case $cc_basename,$host_cpu in
  7323. pgcc*) # Portland Group C compiler
  7324. 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'
  7325. tmp_addflag=' $pic_flag'
  7326. ;;
  7327. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7328. 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'
  7329. tmp_addflag=' $pic_flag -Mnomain' ;;
  7330. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7331. tmp_addflag=' -i_dynamic' ;;
  7332. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7333. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7334. ifc* | ifort*) # Intel Fortran compiler
  7335. tmp_addflag=' -nofor_main' ;;
  7336. lf95*) # Lahey Fortran 8.1
  7337. whole_archive_flag_spec=
  7338. tmp_sharedflag='--shared' ;;
  7339. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7340. tmp_sharedflag='-qmkshrobj'
  7341. tmp_addflag= ;;
  7342. esac
  7343. case `$CC -V 2>&1 | sed 5q` in
  7344. *Sun\ C*) # Sun C 5.9
  7345. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7346. compiler_needs_object=yes
  7347. tmp_sharedflag='-G' ;;
  7348. *Sun\ F*) # Sun Fortran 8.3
  7349. tmp_sharedflag='-G' ;;
  7350. esac
  7351. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7352. if test "x$supports_anon_versioning" = xyes; then
  7353. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7354. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7355. echo "local: *; };" >> $output_objdir/$libname.ver~
  7356. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7357. fi
  7358. case $cc_basename in
  7359. xlf*)
  7360. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7361. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7362. hardcode_libdir_flag_spec=
  7363. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7364. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7365. if test "x$supports_anon_versioning" = xyes; then
  7366. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7367. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7368. echo "local: *; };" >> $output_objdir/$libname.ver~
  7369. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7370. fi
  7371. ;;
  7372. esac
  7373. else
  7374. ld_shlibs=no
  7375. fi
  7376. ;;
  7377. netbsd*)
  7378. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7379. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7380. wlarc=
  7381. else
  7382. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7383. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7384. fi
  7385. ;;
  7386. solaris*)
  7387. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7388. ld_shlibs=no
  7389. cat <<_LT_EOF 1>&2
  7390. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7391. *** create shared libraries on Solaris systems. Therefore, libtool
  7392. *** is disabling shared libraries support. We urge you to upgrade GNU
  7393. *** binutils to release 2.9.1 or newer. Another option is to modify
  7394. *** your PATH or compiler configuration so that the native linker is
  7395. *** used, and then restart.
  7396. _LT_EOF
  7397. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7398. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7399. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7400. else
  7401. ld_shlibs=no
  7402. fi
  7403. ;;
  7404. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7405. case `$LD -v 2>&1` in
  7406. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7407. ld_shlibs=no
  7408. cat <<_LT_EOF 1>&2
  7409. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7410. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7411. *** is disabling shared libraries support. We urge you to upgrade GNU
  7412. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7413. *** your PATH or compiler configuration so that the native linker is
  7414. *** used, and then restart.
  7415. _LT_EOF
  7416. ;;
  7417. *)
  7418. # For security reasons, it is highly recommended that you always
  7419. # use absolute paths for naming shared libraries, and exclude the
  7420. # DT_RUNPATH tag from executables and libraries. But doing so
  7421. # requires that you compile everything twice, which is a pain.
  7422. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7423. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7424. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7425. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7426. else
  7427. ld_shlibs=no
  7428. fi
  7429. ;;
  7430. esac
  7431. ;;
  7432. sunos4*)
  7433. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7434. wlarc=
  7435. hardcode_direct=yes
  7436. hardcode_shlibpath_var=no
  7437. ;;
  7438. *)
  7439. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7440. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7441. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7442. else
  7443. ld_shlibs=no
  7444. fi
  7445. ;;
  7446. esac
  7447. if test "$ld_shlibs" = no; then
  7448. runpath_var=
  7449. hardcode_libdir_flag_spec=
  7450. export_dynamic_flag_spec=
  7451. whole_archive_flag_spec=
  7452. fi
  7453. else
  7454. # PORTME fill in a description of your system's linker (not GNU ld)
  7455. case $host_os in
  7456. aix3*)
  7457. allow_undefined_flag=unsupported
  7458. always_export_symbols=yes
  7459. 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'
  7460. # Note: this linker hardcodes the directories in LIBPATH if there
  7461. # are no directories specified by -L.
  7462. hardcode_minus_L=yes
  7463. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7464. # Neither direct hardcoding nor static linking is supported with a
  7465. # broken collect2.
  7466. hardcode_direct=unsupported
  7467. fi
  7468. ;;
  7469. aix[4-9]*)
  7470. if test "$host_cpu" = ia64; then
  7471. # On IA64, the linker does run time linking by default, so we don't
  7472. # have to do anything special.
  7473. aix_use_runtimelinking=no
  7474. exp_sym_flag='-Bexport'
  7475. no_entry_flag=""
  7476. else
  7477. # If we're using GNU nm, then we don't want the "-C" option.
  7478. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7479. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7480. 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'
  7481. else
  7482. 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'
  7483. fi
  7484. aix_use_runtimelinking=no
  7485. # Test if we are trying to use run time linking or normal
  7486. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7487. # need to do runtime linking.
  7488. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7489. for ld_flag in $LDFLAGS; do
  7490. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7491. aix_use_runtimelinking=yes
  7492. break
  7493. fi
  7494. done
  7495. ;;
  7496. esac
  7497. exp_sym_flag='-bexport'
  7498. no_entry_flag='-bnoentry'
  7499. fi
  7500. # When large executables or shared objects are built, AIX ld can
  7501. # have problems creating the table of contents. If linking a library
  7502. # or program results in "error TOC overflow" add -mminimal-toc to
  7503. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7504. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7505. archive_cmds=''
  7506. hardcode_direct=yes
  7507. hardcode_direct_absolute=yes
  7508. hardcode_libdir_separator=':'
  7509. link_all_deplibs=yes
  7510. file_list_spec='${wl}-f,'
  7511. if test "$GCC" = yes; then
  7512. case $host_os in aix4.[012]|aix4.[012].*)
  7513. # We only want to do this on AIX 4.2 and lower, the check
  7514. # below for broken collect2 doesn't work under 4.3+
  7515. collect2name=`${CC} -print-prog-name=collect2`
  7516. if test -f "$collect2name" &&
  7517. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7518. then
  7519. # We have reworked collect2
  7520. :
  7521. else
  7522. # We have old collect2
  7523. hardcode_direct=unsupported
  7524. # It fails to find uninstalled libraries when the uninstalled
  7525. # path is not listed in the libpath. Setting hardcode_minus_L
  7526. # to unsupported forces relinking
  7527. hardcode_minus_L=yes
  7528. hardcode_libdir_flag_spec='-L$libdir'
  7529. hardcode_libdir_separator=
  7530. fi
  7531. ;;
  7532. esac
  7533. shared_flag='-shared'
  7534. if test "$aix_use_runtimelinking" = yes; then
  7535. shared_flag="$shared_flag "'${wl}-G'
  7536. fi
  7537. else
  7538. # not using gcc
  7539. if test "$host_cpu" = ia64; then
  7540. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7541. # chokes on -Wl,-G. The following line is correct:
  7542. shared_flag='-G'
  7543. else
  7544. if test "$aix_use_runtimelinking" = yes; then
  7545. shared_flag='${wl}-G'
  7546. else
  7547. shared_flag='${wl}-bM:SRE'
  7548. fi
  7549. fi
  7550. fi
  7551. export_dynamic_flag_spec='${wl}-bexpall'
  7552. # It seems that -bexpall does not export symbols beginning with
  7553. # underscore (_), so it is better to generate a list of symbols to export.
  7554. always_export_symbols=yes
  7555. if test "$aix_use_runtimelinking" = yes; then
  7556. # Warning - without using the other runtime loading flags (-brtl),
  7557. # -berok will link without error, but may produce a broken library.
  7558. allow_undefined_flag='-berok'
  7559. # Determine the default libpath from the value encoded in an
  7560. # empty executable.
  7561. cat >conftest.$ac_ext <<_ACEOF
  7562. /* confdefs.h. */
  7563. _ACEOF
  7564. cat confdefs.h >>conftest.$ac_ext
  7565. cat >>conftest.$ac_ext <<_ACEOF
  7566. /* end confdefs.h. */
  7567. int
  7568. main ()
  7569. {
  7570. ;
  7571. return 0;
  7572. }
  7573. _ACEOF
  7574. rm -f conftest.$ac_objext conftest$ac_exeext
  7575. if { (ac_try="$ac_link"
  7576. case "(($ac_try" in
  7577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7578. *) ac_try_echo=$ac_try;;
  7579. esac
  7580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7581. $as_echo "$ac_try_echo") >&5
  7582. (eval "$ac_link") 2>conftest.er1
  7583. ac_status=$?
  7584. grep -v '^ *+' conftest.er1 >conftest.err
  7585. rm -f conftest.er1
  7586. cat conftest.err >&5
  7587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7588. (exit $ac_status); } && {
  7589. test -z "$ac_c_werror_flag" ||
  7590. test ! -s conftest.err
  7591. } && test -s conftest$ac_exeext && {
  7592. test "$cross_compiling" = yes ||
  7593. $as_test_x conftest$ac_exeext
  7594. }; then
  7595. lt_aix_libpath_sed='
  7596. /Import File Strings/,/^$/ {
  7597. /^0/ {
  7598. s/^0 *\(.*\)$/\1/
  7599. p
  7600. }
  7601. }'
  7602. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7603. # Check for a 64-bit object if we didn't find anything.
  7604. if test -z "$aix_libpath"; then
  7605. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7606. fi
  7607. else
  7608. $as_echo "$as_me: failed program was:" >&5
  7609. sed 's/^/| /' conftest.$ac_ext >&5
  7610. fi
  7611. rm -rf conftest.dSYM
  7612. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7613. conftest$ac_exeext conftest.$ac_ext
  7614. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7615. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7616. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7617. else
  7618. if test "$host_cpu" = ia64; then
  7619. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7620. allow_undefined_flag="-z nodefs"
  7621. 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"
  7622. else
  7623. # Determine the default libpath from the value encoded in an
  7624. # empty executable.
  7625. cat >conftest.$ac_ext <<_ACEOF
  7626. /* confdefs.h. */
  7627. _ACEOF
  7628. cat confdefs.h >>conftest.$ac_ext
  7629. cat >>conftest.$ac_ext <<_ACEOF
  7630. /* end confdefs.h. */
  7631. int
  7632. main ()
  7633. {
  7634. ;
  7635. return 0;
  7636. }
  7637. _ACEOF
  7638. rm -f conftest.$ac_objext conftest$ac_exeext
  7639. if { (ac_try="$ac_link"
  7640. case "(($ac_try" in
  7641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7642. *) ac_try_echo=$ac_try;;
  7643. esac
  7644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7645. $as_echo "$ac_try_echo") >&5
  7646. (eval "$ac_link") 2>conftest.er1
  7647. ac_status=$?
  7648. grep -v '^ *+' conftest.er1 >conftest.err
  7649. rm -f conftest.er1
  7650. cat conftest.err >&5
  7651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7652. (exit $ac_status); } && {
  7653. test -z "$ac_c_werror_flag" ||
  7654. test ! -s conftest.err
  7655. } && test -s conftest$ac_exeext && {
  7656. test "$cross_compiling" = yes ||
  7657. $as_test_x conftest$ac_exeext
  7658. }; then
  7659. lt_aix_libpath_sed='
  7660. /Import File Strings/,/^$/ {
  7661. /^0/ {
  7662. s/^0 *\(.*\)$/\1/
  7663. p
  7664. }
  7665. }'
  7666. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7667. # Check for a 64-bit object if we didn't find anything.
  7668. if test -z "$aix_libpath"; then
  7669. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7670. fi
  7671. else
  7672. $as_echo "$as_me: failed program was:" >&5
  7673. sed 's/^/| /' conftest.$ac_ext >&5
  7674. fi
  7675. rm -rf conftest.dSYM
  7676. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7677. conftest$ac_exeext conftest.$ac_ext
  7678. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7679. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7680. # Warning - without using the other run time loading flags,
  7681. # -berok will link without error, but may produce a broken library.
  7682. no_undefined_flag=' ${wl}-bernotok'
  7683. allow_undefined_flag=' ${wl}-berok'
  7684. # Exported symbols can be pulled into shared objects from archives
  7685. whole_archive_flag_spec='$convenience'
  7686. archive_cmds_need_lc=yes
  7687. # This is similar to how AIX traditionally builds its shared libraries.
  7688. 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'
  7689. fi
  7690. fi
  7691. ;;
  7692. amigaos*)
  7693. case $host_cpu in
  7694. powerpc)
  7695. # see comment about AmigaOS4 .so support
  7696. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7697. archive_expsym_cmds=''
  7698. ;;
  7699. m68k)
  7700. 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)'
  7701. hardcode_libdir_flag_spec='-L$libdir'
  7702. hardcode_minus_L=yes
  7703. ;;
  7704. esac
  7705. ;;
  7706. bsdi[45]*)
  7707. export_dynamic_flag_spec=-rdynamic
  7708. ;;
  7709. cygwin* | mingw* | pw32* | cegcc*)
  7710. # When not using gcc, we currently assume that we are using
  7711. # Microsoft Visual C++.
  7712. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7713. # no search path for DLLs.
  7714. hardcode_libdir_flag_spec=' '
  7715. allow_undefined_flag=unsupported
  7716. # Tell ltmain to make .lib files, not .a files.
  7717. libext=lib
  7718. # Tell ltmain to make .dll files, not .so files.
  7719. shrext_cmds=".dll"
  7720. # FIXME: Setting linknames here is a bad hack.
  7721. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7722. # The linker will automatically build a .lib file if we build a DLL.
  7723. old_archive_from_new_cmds='true'
  7724. # FIXME: Should let the user specify the lib program.
  7725. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7726. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7727. enable_shared_with_static_runtimes=yes
  7728. ;;
  7729. darwin* | rhapsody*)
  7730. archive_cmds_need_lc=no
  7731. hardcode_direct=no
  7732. hardcode_automatic=yes
  7733. hardcode_shlibpath_var=unsupported
  7734. whole_archive_flag_spec=''
  7735. link_all_deplibs=yes
  7736. allow_undefined_flag="$_lt_dar_allow_undefined"
  7737. case $cc_basename in
  7738. ifort*) _lt_dar_can_shared=yes ;;
  7739. *) _lt_dar_can_shared=$GCC ;;
  7740. esac
  7741. if test "$_lt_dar_can_shared" = "yes"; then
  7742. output_verbose_link_cmd=echo
  7743. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7744. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7745. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7746. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7747. else
  7748. ld_shlibs=no
  7749. fi
  7750. ;;
  7751. dgux*)
  7752. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7753. hardcode_libdir_flag_spec='-L$libdir'
  7754. hardcode_shlibpath_var=no
  7755. ;;
  7756. freebsd1*)
  7757. ld_shlibs=no
  7758. ;;
  7759. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7760. # support. Future versions do this automatically, but an explicit c++rt0.o
  7761. # does not break anything, and helps significantly (at the cost of a little
  7762. # extra space).
  7763. freebsd2.2*)
  7764. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7765. hardcode_libdir_flag_spec='-R$libdir'
  7766. hardcode_direct=yes
  7767. hardcode_shlibpath_var=no
  7768. ;;
  7769. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7770. freebsd2*)
  7771. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7772. hardcode_direct=yes
  7773. hardcode_minus_L=yes
  7774. hardcode_shlibpath_var=no
  7775. ;;
  7776. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7777. freebsd* | dragonfly*)
  7778. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7779. hardcode_libdir_flag_spec='-R$libdir'
  7780. hardcode_direct=yes
  7781. hardcode_shlibpath_var=no
  7782. ;;
  7783. hpux9*)
  7784. if test "$GCC" = yes; then
  7785. 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'
  7786. else
  7787. 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'
  7788. fi
  7789. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7790. hardcode_libdir_separator=:
  7791. hardcode_direct=yes
  7792. # hardcode_minus_L: Not really in the search PATH,
  7793. # but as the default location of the library.
  7794. hardcode_minus_L=yes
  7795. export_dynamic_flag_spec='${wl}-E'
  7796. ;;
  7797. hpux10*)
  7798. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7799. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7800. else
  7801. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7802. fi
  7803. if test "$with_gnu_ld" = no; then
  7804. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7805. hardcode_libdir_flag_spec_ld='+b $libdir'
  7806. hardcode_libdir_separator=:
  7807. hardcode_direct=yes
  7808. hardcode_direct_absolute=yes
  7809. export_dynamic_flag_spec='${wl}-E'
  7810. # hardcode_minus_L: Not really in the search PATH,
  7811. # but as the default location of the library.
  7812. hardcode_minus_L=yes
  7813. fi
  7814. ;;
  7815. hpux11*)
  7816. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7817. case $host_cpu in
  7818. hppa*64*)
  7819. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7820. ;;
  7821. ia64*)
  7822. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7823. ;;
  7824. *)
  7825. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7826. ;;
  7827. esac
  7828. else
  7829. case $host_cpu in
  7830. hppa*64*)
  7831. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7832. ;;
  7833. ia64*)
  7834. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7835. ;;
  7836. *)
  7837. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7838. ;;
  7839. esac
  7840. fi
  7841. if test "$with_gnu_ld" = no; then
  7842. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7843. hardcode_libdir_separator=:
  7844. case $host_cpu in
  7845. hppa*64*|ia64*)
  7846. hardcode_direct=no
  7847. hardcode_shlibpath_var=no
  7848. ;;
  7849. *)
  7850. hardcode_direct=yes
  7851. hardcode_direct_absolute=yes
  7852. export_dynamic_flag_spec='${wl}-E'
  7853. # hardcode_minus_L: Not really in the search PATH,
  7854. # but as the default location of the library.
  7855. hardcode_minus_L=yes
  7856. ;;
  7857. esac
  7858. fi
  7859. ;;
  7860. irix5* | irix6* | nonstopux*)
  7861. if test "$GCC" = yes; then
  7862. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7863. # Try to use the -exported_symbol ld option, if it does not
  7864. # work, assume that -exports_file does not work either and
  7865. # implicitly export all symbols.
  7866. save_LDFLAGS="$LDFLAGS"
  7867. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7868. cat >conftest.$ac_ext <<_ACEOF
  7869. int foo(void) {}
  7870. _ACEOF
  7871. rm -f conftest.$ac_objext conftest$ac_exeext
  7872. if { (ac_try="$ac_link"
  7873. case "(($ac_try" in
  7874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7875. *) ac_try_echo=$ac_try;;
  7876. esac
  7877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7878. $as_echo "$ac_try_echo") >&5
  7879. (eval "$ac_link") 2>conftest.er1
  7880. ac_status=$?
  7881. grep -v '^ *+' conftest.er1 >conftest.err
  7882. rm -f conftest.er1
  7883. cat conftest.err >&5
  7884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7885. (exit $ac_status); } && {
  7886. test -z "$ac_c_werror_flag" ||
  7887. test ! -s conftest.err
  7888. } && test -s conftest$ac_exeext && {
  7889. test "$cross_compiling" = yes ||
  7890. $as_test_x conftest$ac_exeext
  7891. }; then
  7892. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7893. else
  7894. $as_echo "$as_me: failed program was:" >&5
  7895. sed 's/^/| /' conftest.$ac_ext >&5
  7896. fi
  7897. rm -rf conftest.dSYM
  7898. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7899. conftest$ac_exeext conftest.$ac_ext
  7900. LDFLAGS="$save_LDFLAGS"
  7901. else
  7902. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7903. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7904. fi
  7905. archive_cmds_need_lc='no'
  7906. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7907. hardcode_libdir_separator=:
  7908. inherit_rpath=yes
  7909. link_all_deplibs=yes
  7910. ;;
  7911. netbsd*)
  7912. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7913. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7914. else
  7915. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7916. fi
  7917. hardcode_libdir_flag_spec='-R$libdir'
  7918. hardcode_direct=yes
  7919. hardcode_shlibpath_var=no
  7920. ;;
  7921. newsos6)
  7922. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7923. hardcode_direct=yes
  7924. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7925. hardcode_libdir_separator=:
  7926. hardcode_shlibpath_var=no
  7927. ;;
  7928. *nto* | *qnx*)
  7929. ;;
  7930. openbsd*)
  7931. if test -f /usr/libexec/ld.so; then
  7932. hardcode_direct=yes
  7933. hardcode_shlibpath_var=no
  7934. hardcode_direct_absolute=yes
  7935. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7936. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7937. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7938. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7939. export_dynamic_flag_spec='${wl}-E'
  7940. else
  7941. case $host_os in
  7942. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7943. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7944. hardcode_libdir_flag_spec='-R$libdir'
  7945. ;;
  7946. *)
  7947. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7948. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7949. ;;
  7950. esac
  7951. fi
  7952. else
  7953. ld_shlibs=no
  7954. fi
  7955. ;;
  7956. os2*)
  7957. hardcode_libdir_flag_spec='-L$libdir'
  7958. hardcode_minus_L=yes
  7959. allow_undefined_flag=unsupported
  7960. 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'
  7961. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7962. ;;
  7963. osf3*)
  7964. if test "$GCC" = yes; then
  7965. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7966. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7967. else
  7968. allow_undefined_flag=' -expect_unresolved \*'
  7969. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7970. fi
  7971. archive_cmds_need_lc='no'
  7972. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7973. hardcode_libdir_separator=:
  7974. ;;
  7975. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7976. if test "$GCC" = yes; then
  7977. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7978. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7979. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7980. else
  7981. allow_undefined_flag=' -expect_unresolved \*'
  7982. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7983. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7984. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7985. # Both c and cxx compiler support -rpath directly
  7986. hardcode_libdir_flag_spec='-rpath $libdir'
  7987. fi
  7988. archive_cmds_need_lc='no'
  7989. hardcode_libdir_separator=:
  7990. ;;
  7991. solaris*)
  7992. no_undefined_flag=' -z defs'
  7993. if test "$GCC" = yes; then
  7994. wlarc='${wl}'
  7995. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7996. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7997. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7998. else
  7999. case `$CC -V 2>&1` in
  8000. *"Compilers 5.0"*)
  8001. wlarc=''
  8002. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8003. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8004. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8005. ;;
  8006. *)
  8007. wlarc='${wl}'
  8008. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8009. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8010. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8011. ;;
  8012. esac
  8013. fi
  8014. hardcode_libdir_flag_spec='-R$libdir'
  8015. hardcode_shlibpath_var=no
  8016. case $host_os in
  8017. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8018. *)
  8019. # The compiler driver will combine and reorder linker options,
  8020. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8021. # but is careful enough not to reorder.
  8022. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8023. if test "$GCC" = yes; then
  8024. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8025. else
  8026. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8027. fi
  8028. ;;
  8029. esac
  8030. link_all_deplibs=yes
  8031. ;;
  8032. sunos4*)
  8033. if test "x$host_vendor" = xsequent; then
  8034. # Use $CC to link under sequent, because it throws in some extra .o
  8035. # files that make .init and .fini sections work.
  8036. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8037. else
  8038. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8039. fi
  8040. hardcode_libdir_flag_spec='-L$libdir'
  8041. hardcode_direct=yes
  8042. hardcode_minus_L=yes
  8043. hardcode_shlibpath_var=no
  8044. ;;
  8045. sysv4)
  8046. case $host_vendor in
  8047. sni)
  8048. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8049. hardcode_direct=yes # is this really true???
  8050. ;;
  8051. siemens)
  8052. ## LD is ld it makes a PLAMLIB
  8053. ## CC just makes a GrossModule.
  8054. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8055. reload_cmds='$CC -r -o $output$reload_objs'
  8056. hardcode_direct=no
  8057. ;;
  8058. motorola)
  8059. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8060. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8061. ;;
  8062. esac
  8063. runpath_var='LD_RUN_PATH'
  8064. hardcode_shlibpath_var=no
  8065. ;;
  8066. sysv4.3*)
  8067. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8068. hardcode_shlibpath_var=no
  8069. export_dynamic_flag_spec='-Bexport'
  8070. ;;
  8071. sysv4*MP*)
  8072. if test -d /usr/nec; then
  8073. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8074. hardcode_shlibpath_var=no
  8075. runpath_var=LD_RUN_PATH
  8076. hardcode_runpath_var=yes
  8077. ld_shlibs=yes
  8078. fi
  8079. ;;
  8080. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8081. no_undefined_flag='${wl}-z,text'
  8082. archive_cmds_need_lc=no
  8083. hardcode_shlibpath_var=no
  8084. runpath_var='LD_RUN_PATH'
  8085. if test "$GCC" = yes; then
  8086. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8087. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8088. else
  8089. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8090. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8091. fi
  8092. ;;
  8093. sysv5* | sco3.2v5* | sco5v6*)
  8094. # Note: We can NOT use -z defs as we might desire, because we do not
  8095. # link with -lc, and that would cause any symbols used from libc to
  8096. # always be unresolved, which means just about no library would
  8097. # ever link correctly. If we're not using GNU ld we use -z text
  8098. # though, which does catch some bad symbols but isn't as heavy-handed
  8099. # as -z defs.
  8100. no_undefined_flag='${wl}-z,text'
  8101. allow_undefined_flag='${wl}-z,nodefs'
  8102. archive_cmds_need_lc=no
  8103. hardcode_shlibpath_var=no
  8104. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8105. hardcode_libdir_separator=':'
  8106. link_all_deplibs=yes
  8107. export_dynamic_flag_spec='${wl}-Bexport'
  8108. runpath_var='LD_RUN_PATH'
  8109. if test "$GCC" = yes; then
  8110. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8111. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8112. else
  8113. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8114. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8115. fi
  8116. ;;
  8117. uts4*)
  8118. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8119. hardcode_libdir_flag_spec='-L$libdir'
  8120. hardcode_shlibpath_var=no
  8121. ;;
  8122. *)
  8123. ld_shlibs=no
  8124. ;;
  8125. esac
  8126. if test x$host_vendor = xsni; then
  8127. case $host in
  8128. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8129. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8130. ;;
  8131. esac
  8132. fi
  8133. fi
  8134. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8135. $as_echo "$ld_shlibs" >&6; }
  8136. test "$ld_shlibs" = no && can_build_shared=no
  8137. with_gnu_ld=$with_gnu_ld
  8138. #
  8139. # Do we need to explicitly link libc?
  8140. #
  8141. case "x$archive_cmds_need_lc" in
  8142. x|xyes)
  8143. # Assume -lc should be added
  8144. archive_cmds_need_lc=yes
  8145. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8146. case $archive_cmds in
  8147. *'~'*)
  8148. # FIXME: we may have to deal with multi-command sequences.
  8149. ;;
  8150. '$CC '*)
  8151. # Test whether the compiler implicitly links with -lc since on some
  8152. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8153. # to ld, don't add -lc before -lgcc.
  8154. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8155. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8156. $RM conftest*
  8157. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8158. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8159. (eval $ac_compile) 2>&5
  8160. ac_status=$?
  8161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8162. (exit $ac_status); } 2>conftest.err; then
  8163. soname=conftest
  8164. lib=conftest
  8165. libobjs=conftest.$ac_objext
  8166. deplibs=
  8167. wl=$lt_prog_compiler_wl
  8168. pic_flag=$lt_prog_compiler_pic
  8169. compiler_flags=-v
  8170. linker_flags=-v
  8171. verstring=
  8172. output_objdir=.
  8173. libname=conftest
  8174. lt_save_allow_undefined_flag=$allow_undefined_flag
  8175. allow_undefined_flag=
  8176. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8177. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8178. ac_status=$?
  8179. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8180. (exit $ac_status); }
  8181. then
  8182. archive_cmds_need_lc=no
  8183. else
  8184. archive_cmds_need_lc=yes
  8185. fi
  8186. allow_undefined_flag=$lt_save_allow_undefined_flag
  8187. else
  8188. cat conftest.err 1>&5
  8189. fi
  8190. $RM conftest*
  8191. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8192. $as_echo "$archive_cmds_need_lc" >&6; }
  8193. ;;
  8194. esac
  8195. fi
  8196. ;;
  8197. esac
  8198. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8199. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8200. if test "$GCC" = yes; then
  8201. case $host_os in
  8202. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8203. *) lt_awk_arg="/^libraries:/" ;;
  8204. esac
  8205. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8206. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8207. # if the path contains ";" then we assume it to be the separator
  8208. # otherwise default to the standard path separator (i.e. ":") - it is
  8209. # assumed that no part of a normal pathname contains ";" but that should
  8210. # okay in the real world where ";" in dirpaths is itself problematic.
  8211. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8212. else
  8213. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8214. fi
  8215. # Ok, now we have the path, separated by spaces, we can step through it
  8216. # and add multilib dir if necessary.
  8217. lt_tmp_lt_search_path_spec=
  8218. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8219. for lt_sys_path in $lt_search_path_spec; do
  8220. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8221. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8222. else
  8223. test -d "$lt_sys_path" && \
  8224. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8225. fi
  8226. done
  8227. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8228. BEGIN {RS=" "; FS="/|\n";} {
  8229. lt_foo="";
  8230. lt_count=0;
  8231. for (lt_i = NF; lt_i > 0; lt_i--) {
  8232. if ($lt_i != "" && $lt_i != ".") {
  8233. if ($lt_i == "..") {
  8234. lt_count++;
  8235. } else {
  8236. if (lt_count == 0) {
  8237. lt_foo="/" $lt_i lt_foo;
  8238. } else {
  8239. lt_count--;
  8240. }
  8241. }
  8242. }
  8243. }
  8244. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8245. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8246. }'`
  8247. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8248. else
  8249. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8250. fi
  8251. library_names_spec=
  8252. libname_spec='lib$name'
  8253. soname_spec=
  8254. shrext_cmds=".so"
  8255. postinstall_cmds=
  8256. postuninstall_cmds=
  8257. finish_cmds=
  8258. finish_eval=
  8259. shlibpath_var=
  8260. shlibpath_overrides_runpath=unknown
  8261. version_type=none
  8262. dynamic_linker="$host_os ld.so"
  8263. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8264. need_lib_prefix=unknown
  8265. hardcode_into_libs=no
  8266. # when you set need_version to no, make sure it does not cause -set_version
  8267. # flags to be left without arguments
  8268. need_version=unknown
  8269. case $host_os in
  8270. aix3*)
  8271. version_type=linux
  8272. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8273. shlibpath_var=LIBPATH
  8274. # AIX 3 has no versioning support, so we append a major version to the name.
  8275. soname_spec='${libname}${release}${shared_ext}$major'
  8276. ;;
  8277. aix[4-9]*)
  8278. version_type=linux
  8279. need_lib_prefix=no
  8280. need_version=no
  8281. hardcode_into_libs=yes
  8282. if test "$host_cpu" = ia64; then
  8283. # AIX 5 supports IA64
  8284. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8285. shlibpath_var=LD_LIBRARY_PATH
  8286. else
  8287. # With GCC up to 2.95.x, collect2 would create an import file
  8288. # for dependence libraries. The import file would start with
  8289. # the line `#! .'. This would cause the generated library to
  8290. # depend on `.', always an invalid library. This was fixed in
  8291. # development snapshots of GCC prior to 3.0.
  8292. case $host_os in
  8293. aix4 | aix4.[01] | aix4.[01].*)
  8294. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8295. echo ' yes '
  8296. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8297. :
  8298. else
  8299. can_build_shared=no
  8300. fi
  8301. ;;
  8302. esac
  8303. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8304. # soname into executable. Probably we can add versioning support to
  8305. # collect2, so additional links can be useful in future.
  8306. if test "$aix_use_runtimelinking" = yes; then
  8307. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8308. # instead of lib<name>.a to let people know that these are not
  8309. # typical AIX shared libraries.
  8310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8311. else
  8312. # We preserve .a as extension for shared libraries through AIX4.2
  8313. # and later when we are not doing run time linking.
  8314. library_names_spec='${libname}${release}.a $libname.a'
  8315. soname_spec='${libname}${release}${shared_ext}$major'
  8316. fi
  8317. shlibpath_var=LIBPATH
  8318. fi
  8319. ;;
  8320. amigaos*)
  8321. case $host_cpu in
  8322. powerpc)
  8323. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8324. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8326. ;;
  8327. m68k)
  8328. library_names_spec='$libname.ixlibrary $libname.a'
  8329. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8330. 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'
  8331. ;;
  8332. esac
  8333. ;;
  8334. beos*)
  8335. library_names_spec='${libname}${shared_ext}'
  8336. dynamic_linker="$host_os ld.so"
  8337. shlibpath_var=LIBRARY_PATH
  8338. ;;
  8339. bsdi[45]*)
  8340. version_type=linux
  8341. need_version=no
  8342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8343. soname_spec='${libname}${release}${shared_ext}$major'
  8344. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8345. shlibpath_var=LD_LIBRARY_PATH
  8346. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8347. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8348. # the default ld.so.conf also contains /usr/contrib/lib and
  8349. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8350. # libtool to hard-code these into programs
  8351. ;;
  8352. cygwin* | mingw* | pw32* | cegcc*)
  8353. version_type=windows
  8354. shrext_cmds=".dll"
  8355. need_version=no
  8356. need_lib_prefix=no
  8357. case $GCC,$host_os in
  8358. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8359. library_names_spec='$libname.dll.a'
  8360. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8361. postinstall_cmds='base_file=`basename \${file}`~
  8362. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8363. dldir=$destdir/`dirname \$dlpath`~
  8364. test -d \$dldir || mkdir -p \$dldir~
  8365. $install_prog $dir/$dlname \$dldir/$dlname~
  8366. chmod a+x \$dldir/$dlname~
  8367. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8368. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8369. fi'
  8370. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8371. dlpath=$dir/\$dldll~
  8372. $RM \$dlpath'
  8373. shlibpath_overrides_runpath=yes
  8374. case $host_os in
  8375. cygwin*)
  8376. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8377. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8378. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8379. ;;
  8380. mingw* | cegcc*)
  8381. # MinGW DLLs use traditional 'lib' prefix
  8382. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8383. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8384. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8385. # It is most probably a Windows format PATH printed by
  8386. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8387. # path with ; separators, and with drive letters. We can handle the
  8388. # drive letters (cygwin fileutils understands them), so leave them,
  8389. # especially as we might pass files found there to a mingw objdump,
  8390. # which wouldn't understand a cygwinified path. Ahh.
  8391. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8392. else
  8393. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8394. fi
  8395. ;;
  8396. pw32*)
  8397. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8398. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8399. ;;
  8400. esac
  8401. ;;
  8402. *)
  8403. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8404. ;;
  8405. esac
  8406. dynamic_linker='Win32 ld.exe'
  8407. # FIXME: first we should search . and the directory the executable is in
  8408. shlibpath_var=PATH
  8409. ;;
  8410. darwin* | rhapsody*)
  8411. dynamic_linker="$host_os dyld"
  8412. version_type=darwin
  8413. need_lib_prefix=no
  8414. need_version=no
  8415. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8416. soname_spec='${libname}${release}${major}$shared_ext'
  8417. shlibpath_overrides_runpath=yes
  8418. shlibpath_var=DYLD_LIBRARY_PATH
  8419. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8420. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8421. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8422. ;;
  8423. dgux*)
  8424. version_type=linux
  8425. need_lib_prefix=no
  8426. need_version=no
  8427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8428. soname_spec='${libname}${release}${shared_ext}$major'
  8429. shlibpath_var=LD_LIBRARY_PATH
  8430. ;;
  8431. freebsd1*)
  8432. dynamic_linker=no
  8433. ;;
  8434. freebsd* | dragonfly*)
  8435. # DragonFly does not have aout. When/if they implement a new
  8436. # versioning mechanism, adjust this.
  8437. if test -x /usr/bin/objformat; then
  8438. objformat=`/usr/bin/objformat`
  8439. else
  8440. case $host_os in
  8441. freebsd[123]*) objformat=aout ;;
  8442. *) objformat=elf ;;
  8443. esac
  8444. fi
  8445. version_type=freebsd-$objformat
  8446. case $version_type in
  8447. freebsd-elf*)
  8448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8449. need_version=no
  8450. need_lib_prefix=no
  8451. ;;
  8452. freebsd-*)
  8453. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8454. need_version=yes
  8455. ;;
  8456. esac
  8457. shlibpath_var=LD_LIBRARY_PATH
  8458. case $host_os in
  8459. freebsd2*)
  8460. shlibpath_overrides_runpath=yes
  8461. ;;
  8462. freebsd3.[01]* | freebsdelf3.[01]*)
  8463. shlibpath_overrides_runpath=yes
  8464. hardcode_into_libs=yes
  8465. ;;
  8466. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8467. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8468. shlibpath_overrides_runpath=no
  8469. hardcode_into_libs=yes
  8470. ;;
  8471. *) # from 4.6 on, and DragonFly
  8472. shlibpath_overrides_runpath=yes
  8473. hardcode_into_libs=yes
  8474. ;;
  8475. esac
  8476. ;;
  8477. gnu*)
  8478. version_type=linux
  8479. need_lib_prefix=no
  8480. need_version=no
  8481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8482. soname_spec='${libname}${release}${shared_ext}$major'
  8483. shlibpath_var=LD_LIBRARY_PATH
  8484. hardcode_into_libs=yes
  8485. ;;
  8486. hpux9* | hpux10* | hpux11*)
  8487. # Give a soname corresponding to the major version so that dld.sl refuses to
  8488. # link against other versions.
  8489. version_type=sunos
  8490. need_lib_prefix=no
  8491. need_version=no
  8492. case $host_cpu in
  8493. ia64*)
  8494. shrext_cmds='.so'
  8495. hardcode_into_libs=yes
  8496. dynamic_linker="$host_os dld.so"
  8497. shlibpath_var=LD_LIBRARY_PATH
  8498. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8500. soname_spec='${libname}${release}${shared_ext}$major'
  8501. if test "X$HPUX_IA64_MODE" = X32; then
  8502. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8503. else
  8504. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8505. fi
  8506. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8507. ;;
  8508. hppa*64*)
  8509. shrext_cmds='.sl'
  8510. hardcode_into_libs=yes
  8511. dynamic_linker="$host_os dld.sl"
  8512. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8513. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8515. soname_spec='${libname}${release}${shared_ext}$major'
  8516. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8517. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8518. ;;
  8519. *)
  8520. shrext_cmds='.sl'
  8521. dynamic_linker="$host_os dld.sl"
  8522. shlibpath_var=SHLIB_PATH
  8523. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8525. soname_spec='${libname}${release}${shared_ext}$major'
  8526. ;;
  8527. esac
  8528. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8529. postinstall_cmds='chmod 555 $lib'
  8530. ;;
  8531. interix[3-9]*)
  8532. version_type=linux
  8533. need_lib_prefix=no
  8534. need_version=no
  8535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8536. soname_spec='${libname}${release}${shared_ext}$major'
  8537. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8538. shlibpath_var=LD_LIBRARY_PATH
  8539. shlibpath_overrides_runpath=no
  8540. hardcode_into_libs=yes
  8541. ;;
  8542. irix5* | irix6* | nonstopux*)
  8543. case $host_os in
  8544. nonstopux*) version_type=nonstopux ;;
  8545. *)
  8546. if test "$lt_cv_prog_gnu_ld" = yes; then
  8547. version_type=linux
  8548. else
  8549. version_type=irix
  8550. fi ;;
  8551. esac
  8552. need_lib_prefix=no
  8553. need_version=no
  8554. soname_spec='${libname}${release}${shared_ext}$major'
  8555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8556. case $host_os in
  8557. irix5* | nonstopux*)
  8558. libsuff= shlibsuff=
  8559. ;;
  8560. *)
  8561. case $LD in # libtool.m4 will add one of these switches to LD
  8562. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8563. libsuff= shlibsuff= libmagic=32-bit;;
  8564. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8565. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8566. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8567. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8568. *) libsuff= shlibsuff= libmagic=never-match;;
  8569. esac
  8570. ;;
  8571. esac
  8572. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8573. shlibpath_overrides_runpath=no
  8574. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8575. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8576. hardcode_into_libs=yes
  8577. ;;
  8578. # No shared lib support for Linux oldld, aout, or coff.
  8579. linux*oldld* | linux*aout* | linux*coff*)
  8580. dynamic_linker=no
  8581. ;;
  8582. # This must be Linux ELF.
  8583. linux* | k*bsd*-gnu)
  8584. version_type=linux
  8585. need_lib_prefix=no
  8586. need_version=no
  8587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8588. soname_spec='${libname}${release}${shared_ext}$major'
  8589. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8590. shlibpath_var=LD_LIBRARY_PATH
  8591. shlibpath_overrides_runpath=no
  8592. # Some binutils ld are patched to set DT_RUNPATH
  8593. save_LDFLAGS=$LDFLAGS
  8594. save_libdir=$libdir
  8595. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8596. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8597. cat >conftest.$ac_ext <<_ACEOF
  8598. /* confdefs.h. */
  8599. _ACEOF
  8600. cat confdefs.h >>conftest.$ac_ext
  8601. cat >>conftest.$ac_ext <<_ACEOF
  8602. /* end confdefs.h. */
  8603. int
  8604. main ()
  8605. {
  8606. ;
  8607. return 0;
  8608. }
  8609. _ACEOF
  8610. rm -f conftest.$ac_objext conftest$ac_exeext
  8611. if { (ac_try="$ac_link"
  8612. case "(($ac_try" in
  8613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8614. *) ac_try_echo=$ac_try;;
  8615. esac
  8616. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8617. $as_echo "$ac_try_echo") >&5
  8618. (eval "$ac_link") 2>conftest.er1
  8619. ac_status=$?
  8620. grep -v '^ *+' conftest.er1 >conftest.err
  8621. rm -f conftest.er1
  8622. cat conftest.err >&5
  8623. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8624. (exit $ac_status); } && {
  8625. test -z "$ac_c_werror_flag" ||
  8626. test ! -s conftest.err
  8627. } && test -s conftest$ac_exeext && {
  8628. test "$cross_compiling" = yes ||
  8629. $as_test_x conftest$ac_exeext
  8630. }; then
  8631. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  8632. shlibpath_overrides_runpath=yes
  8633. fi
  8634. else
  8635. $as_echo "$as_me: failed program was:" >&5
  8636. sed 's/^/| /' conftest.$ac_ext >&5
  8637. fi
  8638. rm -rf conftest.dSYM
  8639. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8640. conftest$ac_exeext conftest.$ac_ext
  8641. LDFLAGS=$save_LDFLAGS
  8642. libdir=$save_libdir
  8643. # This implies no fast_install, which is unacceptable.
  8644. # Some rework will be needed to allow for fast_install
  8645. # before this can be enabled.
  8646. hardcode_into_libs=yes
  8647. # Append ld.so.conf contents to the search path
  8648. if test -f /etc/ld.so.conf; then
  8649. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8650. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8651. fi
  8652. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8653. # powerpc, because MkLinux only supported shared libraries with the
  8654. # GNU dynamic linker. Since this was broken with cross compilers,
  8655. # most powerpc-linux boxes support dynamic linking these days and
  8656. # people can always --disable-shared, the test was removed, and we
  8657. # assume the GNU/Linux dynamic linker is in use.
  8658. dynamic_linker='GNU/Linux ld.so'
  8659. ;;
  8660. netbsd*)
  8661. version_type=sunos
  8662. need_lib_prefix=no
  8663. need_version=no
  8664. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8665. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8666. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8667. dynamic_linker='NetBSD (a.out) ld.so'
  8668. else
  8669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8670. soname_spec='${libname}${release}${shared_ext}$major'
  8671. dynamic_linker='NetBSD ld.elf_so'
  8672. fi
  8673. shlibpath_var=LD_LIBRARY_PATH
  8674. shlibpath_overrides_runpath=yes
  8675. hardcode_into_libs=yes
  8676. ;;
  8677. newsos6)
  8678. version_type=linux
  8679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8680. shlibpath_var=LD_LIBRARY_PATH
  8681. shlibpath_overrides_runpath=yes
  8682. ;;
  8683. *nto* | *qnx*)
  8684. version_type=qnx
  8685. need_lib_prefix=no
  8686. need_version=no
  8687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8688. soname_spec='${libname}${release}${shared_ext}$major'
  8689. shlibpath_var=LD_LIBRARY_PATH
  8690. shlibpath_overrides_runpath=no
  8691. hardcode_into_libs=yes
  8692. dynamic_linker='ldqnx.so'
  8693. ;;
  8694. openbsd*)
  8695. version_type=sunos
  8696. sys_lib_dlsearch_path_spec="/usr/lib"
  8697. need_lib_prefix=no
  8698. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8699. case $host_os in
  8700. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8701. *) need_version=no ;;
  8702. esac
  8703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8704. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8705. shlibpath_var=LD_LIBRARY_PATH
  8706. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8707. case $host_os in
  8708. openbsd2.[89] | openbsd2.[89].*)
  8709. shlibpath_overrides_runpath=no
  8710. ;;
  8711. *)
  8712. shlibpath_overrides_runpath=yes
  8713. ;;
  8714. esac
  8715. else
  8716. shlibpath_overrides_runpath=yes
  8717. fi
  8718. ;;
  8719. os2*)
  8720. libname_spec='$name'
  8721. shrext_cmds=".dll"
  8722. need_lib_prefix=no
  8723. library_names_spec='$libname${shared_ext} $libname.a'
  8724. dynamic_linker='OS/2 ld.exe'
  8725. shlibpath_var=LIBPATH
  8726. ;;
  8727. osf3* | osf4* | osf5*)
  8728. version_type=osf
  8729. need_lib_prefix=no
  8730. need_version=no
  8731. soname_spec='${libname}${release}${shared_ext}$major'
  8732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8733. shlibpath_var=LD_LIBRARY_PATH
  8734. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8735. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8736. ;;
  8737. rdos*)
  8738. dynamic_linker=no
  8739. ;;
  8740. solaris*)
  8741. version_type=linux
  8742. need_lib_prefix=no
  8743. need_version=no
  8744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8745. soname_spec='${libname}${release}${shared_ext}$major'
  8746. shlibpath_var=LD_LIBRARY_PATH
  8747. shlibpath_overrides_runpath=yes
  8748. hardcode_into_libs=yes
  8749. # ldd complains unless libraries are executable
  8750. postinstall_cmds='chmod +x $lib'
  8751. ;;
  8752. sunos4*)
  8753. version_type=sunos
  8754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8755. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8756. shlibpath_var=LD_LIBRARY_PATH
  8757. shlibpath_overrides_runpath=yes
  8758. if test "$with_gnu_ld" = yes; then
  8759. need_lib_prefix=no
  8760. fi
  8761. need_version=yes
  8762. ;;
  8763. sysv4 | sysv4.3*)
  8764. version_type=linux
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8766. soname_spec='${libname}${release}${shared_ext}$major'
  8767. shlibpath_var=LD_LIBRARY_PATH
  8768. case $host_vendor in
  8769. sni)
  8770. shlibpath_overrides_runpath=no
  8771. need_lib_prefix=no
  8772. runpath_var=LD_RUN_PATH
  8773. ;;
  8774. siemens)
  8775. need_lib_prefix=no
  8776. ;;
  8777. motorola)
  8778. need_lib_prefix=no
  8779. need_version=no
  8780. shlibpath_overrides_runpath=no
  8781. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8782. ;;
  8783. esac
  8784. ;;
  8785. sysv4*MP*)
  8786. if test -d /usr/nec ;then
  8787. version_type=linux
  8788. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8789. soname_spec='$libname${shared_ext}.$major'
  8790. shlibpath_var=LD_LIBRARY_PATH
  8791. fi
  8792. ;;
  8793. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8794. version_type=freebsd-elf
  8795. need_lib_prefix=no
  8796. need_version=no
  8797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8798. soname_spec='${libname}${release}${shared_ext}$major'
  8799. shlibpath_var=LD_LIBRARY_PATH
  8800. shlibpath_overrides_runpath=yes
  8801. hardcode_into_libs=yes
  8802. if test "$with_gnu_ld" = yes; then
  8803. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8804. else
  8805. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8806. case $host_os in
  8807. sco3.2v5*)
  8808. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8809. ;;
  8810. esac
  8811. fi
  8812. sys_lib_dlsearch_path_spec='/usr/lib'
  8813. ;;
  8814. tpf*)
  8815. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8816. version_type=linux
  8817. need_lib_prefix=no
  8818. need_version=no
  8819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8820. shlibpath_var=LD_LIBRARY_PATH
  8821. shlibpath_overrides_runpath=no
  8822. hardcode_into_libs=yes
  8823. ;;
  8824. uts4*)
  8825. version_type=linux
  8826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8827. soname_spec='${libname}${release}${shared_ext}$major'
  8828. shlibpath_var=LD_LIBRARY_PATH
  8829. ;;
  8830. *)
  8831. dynamic_linker=no
  8832. ;;
  8833. esac
  8834. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8835. $as_echo "$dynamic_linker" >&6; }
  8836. test "$dynamic_linker" = no && can_build_shared=no
  8837. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8838. if test "$GCC" = yes; then
  8839. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8840. fi
  8841. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8842. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8843. fi
  8844. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8845. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8846. fi
  8847. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8848. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8849. hardcode_action=
  8850. if test -n "$hardcode_libdir_flag_spec" ||
  8851. test -n "$runpath_var" ||
  8852. test "X$hardcode_automatic" = "Xyes" ; then
  8853. # We can hardcode non-existent directories.
  8854. if test "$hardcode_direct" != no &&
  8855. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8856. # have to relink, otherwise we might link with an installed library
  8857. # when we should be linking with a yet-to-be-installed one
  8858. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8859. test "$hardcode_minus_L" != no; then
  8860. # Linking always hardcodes the temporary library directory.
  8861. hardcode_action=relink
  8862. else
  8863. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8864. hardcode_action=immediate
  8865. fi
  8866. else
  8867. # We cannot hardcode anything, or else we can only hardcode existing
  8868. # directories.
  8869. hardcode_action=unsupported
  8870. fi
  8871. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8872. $as_echo "$hardcode_action" >&6; }
  8873. if test "$hardcode_action" = relink ||
  8874. test "$inherit_rpath" = yes; then
  8875. # Fast installation is not supported
  8876. enable_fast_install=no
  8877. elif test "$shlibpath_overrides_runpath" = yes ||
  8878. test "$enable_shared" = no; then
  8879. # Fast installation is not necessary
  8880. enable_fast_install=needless
  8881. fi
  8882. if test "x$enable_dlopen" != xyes; then
  8883. enable_dlopen=unknown
  8884. enable_dlopen_self=unknown
  8885. enable_dlopen_self_static=unknown
  8886. else
  8887. lt_cv_dlopen=no
  8888. lt_cv_dlopen_libs=
  8889. case $host_os in
  8890. beos*)
  8891. lt_cv_dlopen="load_add_on"
  8892. lt_cv_dlopen_libs=
  8893. lt_cv_dlopen_self=yes
  8894. ;;
  8895. mingw* | pw32* | cegcc*)
  8896. lt_cv_dlopen="LoadLibrary"
  8897. lt_cv_dlopen_libs=
  8898. ;;
  8899. cygwin*)
  8900. lt_cv_dlopen="dlopen"
  8901. lt_cv_dlopen_libs=
  8902. ;;
  8903. darwin*)
  8904. # if libdl is installed we need to link against it
  8905. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8906. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8907. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8908. $as_echo_n "(cached) " >&6
  8909. else
  8910. ac_check_lib_save_LIBS=$LIBS
  8911. LIBS="-ldl $LIBS"
  8912. cat >conftest.$ac_ext <<_ACEOF
  8913. /* confdefs.h. */
  8914. _ACEOF
  8915. cat confdefs.h >>conftest.$ac_ext
  8916. cat >>conftest.$ac_ext <<_ACEOF
  8917. /* end confdefs.h. */
  8918. /* Override any GCC internal prototype to avoid an error.
  8919. Use char because int might match the return type of a GCC
  8920. builtin and then its argument prototype would still apply. */
  8921. #ifdef __cplusplus
  8922. extern "C"
  8923. #endif
  8924. char dlopen ();
  8925. int
  8926. main ()
  8927. {
  8928. return dlopen ();
  8929. ;
  8930. return 0;
  8931. }
  8932. _ACEOF
  8933. rm -f conftest.$ac_objext conftest$ac_exeext
  8934. if { (ac_try="$ac_link"
  8935. case "(($ac_try" in
  8936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8937. *) ac_try_echo=$ac_try;;
  8938. esac
  8939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8940. $as_echo "$ac_try_echo") >&5
  8941. (eval "$ac_link") 2>conftest.er1
  8942. ac_status=$?
  8943. grep -v '^ *+' conftest.er1 >conftest.err
  8944. rm -f conftest.er1
  8945. cat conftest.err >&5
  8946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8947. (exit $ac_status); } && {
  8948. test -z "$ac_c_werror_flag" ||
  8949. test ! -s conftest.err
  8950. } && test -s conftest$ac_exeext && {
  8951. test "$cross_compiling" = yes ||
  8952. $as_test_x conftest$ac_exeext
  8953. }; then
  8954. ac_cv_lib_dl_dlopen=yes
  8955. else
  8956. $as_echo "$as_me: failed program was:" >&5
  8957. sed 's/^/| /' conftest.$ac_ext >&5
  8958. ac_cv_lib_dl_dlopen=no
  8959. fi
  8960. rm -rf conftest.dSYM
  8961. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8962. conftest$ac_exeext conftest.$ac_ext
  8963. LIBS=$ac_check_lib_save_LIBS
  8964. fi
  8965. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8966. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8967. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  8968. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8969. else
  8970. lt_cv_dlopen="dyld"
  8971. lt_cv_dlopen_libs=
  8972. lt_cv_dlopen_self=yes
  8973. fi
  8974. ;;
  8975. *)
  8976. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  8977. $as_echo_n "checking for shl_load... " >&6; }
  8978. if test "${ac_cv_func_shl_load+set}" = set; then
  8979. $as_echo_n "(cached) " >&6
  8980. else
  8981. cat >conftest.$ac_ext <<_ACEOF
  8982. /* confdefs.h. */
  8983. _ACEOF
  8984. cat confdefs.h >>conftest.$ac_ext
  8985. cat >>conftest.$ac_ext <<_ACEOF
  8986. /* end confdefs.h. */
  8987. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8988. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8989. #define shl_load innocuous_shl_load
  8990. /* System header to define __stub macros and hopefully few prototypes,
  8991. which can conflict with char shl_load (); below.
  8992. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8993. <limits.h> exists even on freestanding compilers. */
  8994. #ifdef __STDC__
  8995. # include <limits.h>
  8996. #else
  8997. # include <assert.h>
  8998. #endif
  8999. #undef shl_load
  9000. /* Override any GCC internal prototype to avoid an error.
  9001. Use char because int might match the return type of a GCC
  9002. builtin and then its argument prototype would still apply. */
  9003. #ifdef __cplusplus
  9004. extern "C"
  9005. #endif
  9006. char shl_load ();
  9007. /* The GNU C library defines this for functions which it implements
  9008. to always fail with ENOSYS. Some functions are actually named
  9009. something starting with __ and the normal name is an alias. */
  9010. #if defined __stub_shl_load || defined __stub___shl_load
  9011. choke me
  9012. #endif
  9013. int
  9014. main ()
  9015. {
  9016. return shl_load ();
  9017. ;
  9018. return 0;
  9019. }
  9020. _ACEOF
  9021. rm -f conftest.$ac_objext conftest$ac_exeext
  9022. if { (ac_try="$ac_link"
  9023. case "(($ac_try" in
  9024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9025. *) ac_try_echo=$ac_try;;
  9026. esac
  9027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9028. $as_echo "$ac_try_echo") >&5
  9029. (eval "$ac_link") 2>conftest.er1
  9030. ac_status=$?
  9031. grep -v '^ *+' conftest.er1 >conftest.err
  9032. rm -f conftest.er1
  9033. cat conftest.err >&5
  9034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9035. (exit $ac_status); } && {
  9036. test -z "$ac_c_werror_flag" ||
  9037. test ! -s conftest.err
  9038. } && test -s conftest$ac_exeext && {
  9039. test "$cross_compiling" = yes ||
  9040. $as_test_x conftest$ac_exeext
  9041. }; then
  9042. ac_cv_func_shl_load=yes
  9043. else
  9044. $as_echo "$as_me: failed program was:" >&5
  9045. sed 's/^/| /' conftest.$ac_ext >&5
  9046. ac_cv_func_shl_load=no
  9047. fi
  9048. rm -rf conftest.dSYM
  9049. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9050. conftest$ac_exeext conftest.$ac_ext
  9051. fi
  9052. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9053. $as_echo "$ac_cv_func_shl_load" >&6; }
  9054. if test "x$ac_cv_func_shl_load" = x""yes; then
  9055. lt_cv_dlopen="shl_load"
  9056. else
  9057. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9058. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9059. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9060. $as_echo_n "(cached) " >&6
  9061. else
  9062. ac_check_lib_save_LIBS=$LIBS
  9063. LIBS="-ldld $LIBS"
  9064. cat >conftest.$ac_ext <<_ACEOF
  9065. /* confdefs.h. */
  9066. _ACEOF
  9067. cat confdefs.h >>conftest.$ac_ext
  9068. cat >>conftest.$ac_ext <<_ACEOF
  9069. /* end confdefs.h. */
  9070. /* Override any GCC internal prototype to avoid an error.
  9071. Use char because int might match the return type of a GCC
  9072. builtin and then its argument prototype would still apply. */
  9073. #ifdef __cplusplus
  9074. extern "C"
  9075. #endif
  9076. char shl_load ();
  9077. int
  9078. main ()
  9079. {
  9080. return shl_load ();
  9081. ;
  9082. return 0;
  9083. }
  9084. _ACEOF
  9085. rm -f conftest.$ac_objext conftest$ac_exeext
  9086. if { (ac_try="$ac_link"
  9087. case "(($ac_try" in
  9088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9089. *) ac_try_echo=$ac_try;;
  9090. esac
  9091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9092. $as_echo "$ac_try_echo") >&5
  9093. (eval "$ac_link") 2>conftest.er1
  9094. ac_status=$?
  9095. grep -v '^ *+' conftest.er1 >conftest.err
  9096. rm -f conftest.er1
  9097. cat conftest.err >&5
  9098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9099. (exit $ac_status); } && {
  9100. test -z "$ac_c_werror_flag" ||
  9101. test ! -s conftest.err
  9102. } && test -s conftest$ac_exeext && {
  9103. test "$cross_compiling" = yes ||
  9104. $as_test_x conftest$ac_exeext
  9105. }; then
  9106. ac_cv_lib_dld_shl_load=yes
  9107. else
  9108. $as_echo "$as_me: failed program was:" >&5
  9109. sed 's/^/| /' conftest.$ac_ext >&5
  9110. ac_cv_lib_dld_shl_load=no
  9111. fi
  9112. rm -rf conftest.dSYM
  9113. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9114. conftest$ac_exeext conftest.$ac_ext
  9115. LIBS=$ac_check_lib_save_LIBS
  9116. fi
  9117. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9118. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9119. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9120. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9121. else
  9122. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9123. $as_echo_n "checking for dlopen... " >&6; }
  9124. if test "${ac_cv_func_dlopen+set}" = set; then
  9125. $as_echo_n "(cached) " >&6
  9126. else
  9127. cat >conftest.$ac_ext <<_ACEOF
  9128. /* confdefs.h. */
  9129. _ACEOF
  9130. cat confdefs.h >>conftest.$ac_ext
  9131. cat >>conftest.$ac_ext <<_ACEOF
  9132. /* end confdefs.h. */
  9133. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9134. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9135. #define dlopen innocuous_dlopen
  9136. /* System header to define __stub macros and hopefully few prototypes,
  9137. which can conflict with char dlopen (); below.
  9138. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9139. <limits.h> exists even on freestanding compilers. */
  9140. #ifdef __STDC__
  9141. # include <limits.h>
  9142. #else
  9143. # include <assert.h>
  9144. #endif
  9145. #undef dlopen
  9146. /* Override any GCC internal prototype to avoid an error.
  9147. Use char because int might match the return type of a GCC
  9148. builtin and then its argument prototype would still apply. */
  9149. #ifdef __cplusplus
  9150. extern "C"
  9151. #endif
  9152. char dlopen ();
  9153. /* The GNU C library defines this for functions which it implements
  9154. to always fail with ENOSYS. Some functions are actually named
  9155. something starting with __ and the normal name is an alias. */
  9156. #if defined __stub_dlopen || defined __stub___dlopen
  9157. choke me
  9158. #endif
  9159. int
  9160. main ()
  9161. {
  9162. return dlopen ();
  9163. ;
  9164. return 0;
  9165. }
  9166. _ACEOF
  9167. rm -f conftest.$ac_objext conftest$ac_exeext
  9168. if { (ac_try="$ac_link"
  9169. case "(($ac_try" in
  9170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9171. *) ac_try_echo=$ac_try;;
  9172. esac
  9173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9174. $as_echo "$ac_try_echo") >&5
  9175. (eval "$ac_link") 2>conftest.er1
  9176. ac_status=$?
  9177. grep -v '^ *+' conftest.er1 >conftest.err
  9178. rm -f conftest.er1
  9179. cat conftest.err >&5
  9180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9181. (exit $ac_status); } && {
  9182. test -z "$ac_c_werror_flag" ||
  9183. test ! -s conftest.err
  9184. } && test -s conftest$ac_exeext && {
  9185. test "$cross_compiling" = yes ||
  9186. $as_test_x conftest$ac_exeext
  9187. }; then
  9188. ac_cv_func_dlopen=yes
  9189. else
  9190. $as_echo "$as_me: failed program was:" >&5
  9191. sed 's/^/| /' conftest.$ac_ext >&5
  9192. ac_cv_func_dlopen=no
  9193. fi
  9194. rm -rf conftest.dSYM
  9195. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9196. conftest$ac_exeext conftest.$ac_ext
  9197. fi
  9198. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9199. $as_echo "$ac_cv_func_dlopen" >&6; }
  9200. if test "x$ac_cv_func_dlopen" = x""yes; then
  9201. lt_cv_dlopen="dlopen"
  9202. else
  9203. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9204. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9205. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9206. $as_echo_n "(cached) " >&6
  9207. else
  9208. ac_check_lib_save_LIBS=$LIBS
  9209. LIBS="-ldl $LIBS"
  9210. cat >conftest.$ac_ext <<_ACEOF
  9211. /* confdefs.h. */
  9212. _ACEOF
  9213. cat confdefs.h >>conftest.$ac_ext
  9214. cat >>conftest.$ac_ext <<_ACEOF
  9215. /* end confdefs.h. */
  9216. /* Override any GCC internal prototype to avoid an error.
  9217. Use char because int might match the return type of a GCC
  9218. builtin and then its argument prototype would still apply. */
  9219. #ifdef __cplusplus
  9220. extern "C"
  9221. #endif
  9222. char dlopen ();
  9223. int
  9224. main ()
  9225. {
  9226. return dlopen ();
  9227. ;
  9228. return 0;
  9229. }
  9230. _ACEOF
  9231. rm -f conftest.$ac_objext conftest$ac_exeext
  9232. if { (ac_try="$ac_link"
  9233. case "(($ac_try" in
  9234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9235. *) ac_try_echo=$ac_try;;
  9236. esac
  9237. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9238. $as_echo "$ac_try_echo") >&5
  9239. (eval "$ac_link") 2>conftest.er1
  9240. ac_status=$?
  9241. grep -v '^ *+' conftest.er1 >conftest.err
  9242. rm -f conftest.er1
  9243. cat conftest.err >&5
  9244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9245. (exit $ac_status); } && {
  9246. test -z "$ac_c_werror_flag" ||
  9247. test ! -s conftest.err
  9248. } && test -s conftest$ac_exeext && {
  9249. test "$cross_compiling" = yes ||
  9250. $as_test_x conftest$ac_exeext
  9251. }; then
  9252. ac_cv_lib_dl_dlopen=yes
  9253. else
  9254. $as_echo "$as_me: failed program was:" >&5
  9255. sed 's/^/| /' conftest.$ac_ext >&5
  9256. ac_cv_lib_dl_dlopen=no
  9257. fi
  9258. rm -rf conftest.dSYM
  9259. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9260. conftest$ac_exeext conftest.$ac_ext
  9261. LIBS=$ac_check_lib_save_LIBS
  9262. fi
  9263. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9264. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9265. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9266. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9267. else
  9268. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9269. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9270. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9271. $as_echo_n "(cached) " >&6
  9272. else
  9273. ac_check_lib_save_LIBS=$LIBS
  9274. LIBS="-lsvld $LIBS"
  9275. cat >conftest.$ac_ext <<_ACEOF
  9276. /* confdefs.h. */
  9277. _ACEOF
  9278. cat confdefs.h >>conftest.$ac_ext
  9279. cat >>conftest.$ac_ext <<_ACEOF
  9280. /* end confdefs.h. */
  9281. /* Override any GCC internal prototype to avoid an error.
  9282. Use char because int might match the return type of a GCC
  9283. builtin and then its argument prototype would still apply. */
  9284. #ifdef __cplusplus
  9285. extern "C"
  9286. #endif
  9287. char dlopen ();
  9288. int
  9289. main ()
  9290. {
  9291. return dlopen ();
  9292. ;
  9293. return 0;
  9294. }
  9295. _ACEOF
  9296. rm -f conftest.$ac_objext conftest$ac_exeext
  9297. if { (ac_try="$ac_link"
  9298. case "(($ac_try" in
  9299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9300. *) ac_try_echo=$ac_try;;
  9301. esac
  9302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9303. $as_echo "$ac_try_echo") >&5
  9304. (eval "$ac_link") 2>conftest.er1
  9305. ac_status=$?
  9306. grep -v '^ *+' conftest.er1 >conftest.err
  9307. rm -f conftest.er1
  9308. cat conftest.err >&5
  9309. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9310. (exit $ac_status); } && {
  9311. test -z "$ac_c_werror_flag" ||
  9312. test ! -s conftest.err
  9313. } && test -s conftest$ac_exeext && {
  9314. test "$cross_compiling" = yes ||
  9315. $as_test_x conftest$ac_exeext
  9316. }; then
  9317. ac_cv_lib_svld_dlopen=yes
  9318. else
  9319. $as_echo "$as_me: failed program was:" >&5
  9320. sed 's/^/| /' conftest.$ac_ext >&5
  9321. ac_cv_lib_svld_dlopen=no
  9322. fi
  9323. rm -rf conftest.dSYM
  9324. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9325. conftest$ac_exeext conftest.$ac_ext
  9326. LIBS=$ac_check_lib_save_LIBS
  9327. fi
  9328. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9329. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9330. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9331. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9332. else
  9333. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9334. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9335. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9336. $as_echo_n "(cached) " >&6
  9337. else
  9338. ac_check_lib_save_LIBS=$LIBS
  9339. LIBS="-ldld $LIBS"
  9340. cat >conftest.$ac_ext <<_ACEOF
  9341. /* confdefs.h. */
  9342. _ACEOF
  9343. cat confdefs.h >>conftest.$ac_ext
  9344. cat >>conftest.$ac_ext <<_ACEOF
  9345. /* end confdefs.h. */
  9346. /* Override any GCC internal prototype to avoid an error.
  9347. Use char because int might match the return type of a GCC
  9348. builtin and then its argument prototype would still apply. */
  9349. #ifdef __cplusplus
  9350. extern "C"
  9351. #endif
  9352. char dld_link ();
  9353. int
  9354. main ()
  9355. {
  9356. return dld_link ();
  9357. ;
  9358. return 0;
  9359. }
  9360. _ACEOF
  9361. rm -f conftest.$ac_objext conftest$ac_exeext
  9362. if { (ac_try="$ac_link"
  9363. case "(($ac_try" in
  9364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9365. *) ac_try_echo=$ac_try;;
  9366. esac
  9367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9368. $as_echo "$ac_try_echo") >&5
  9369. (eval "$ac_link") 2>conftest.er1
  9370. ac_status=$?
  9371. grep -v '^ *+' conftest.er1 >conftest.err
  9372. rm -f conftest.er1
  9373. cat conftest.err >&5
  9374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9375. (exit $ac_status); } && {
  9376. test -z "$ac_c_werror_flag" ||
  9377. test ! -s conftest.err
  9378. } && test -s conftest$ac_exeext && {
  9379. test "$cross_compiling" = yes ||
  9380. $as_test_x conftest$ac_exeext
  9381. }; then
  9382. ac_cv_lib_dld_dld_link=yes
  9383. else
  9384. $as_echo "$as_me: failed program was:" >&5
  9385. sed 's/^/| /' conftest.$ac_ext >&5
  9386. ac_cv_lib_dld_dld_link=no
  9387. fi
  9388. rm -rf conftest.dSYM
  9389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9390. conftest$ac_exeext conftest.$ac_ext
  9391. LIBS=$ac_check_lib_save_LIBS
  9392. fi
  9393. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9394. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9395. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9396. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9397. fi
  9398. fi
  9399. fi
  9400. fi
  9401. fi
  9402. fi
  9403. ;;
  9404. esac
  9405. if test "x$lt_cv_dlopen" != xno; then
  9406. enable_dlopen=yes
  9407. else
  9408. enable_dlopen=no
  9409. fi
  9410. case $lt_cv_dlopen in
  9411. dlopen)
  9412. save_CPPFLAGS="$CPPFLAGS"
  9413. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9414. save_LDFLAGS="$LDFLAGS"
  9415. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9416. save_LIBS="$LIBS"
  9417. LIBS="$lt_cv_dlopen_libs $LIBS"
  9418. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9419. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9420. if test "${lt_cv_dlopen_self+set}" = set; then
  9421. $as_echo_n "(cached) " >&6
  9422. else
  9423. if test "$cross_compiling" = yes; then :
  9424. lt_cv_dlopen_self=cross
  9425. else
  9426. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9427. lt_status=$lt_dlunknown
  9428. cat > conftest.$ac_ext <<_LT_EOF
  9429. #line 11021 "configure"
  9430. #include "confdefs.h"
  9431. #if HAVE_DLFCN_H
  9432. #include <dlfcn.h>
  9433. #endif
  9434. #include <stdio.h>
  9435. #ifdef RTLD_GLOBAL
  9436. # define LT_DLGLOBAL RTLD_GLOBAL
  9437. #else
  9438. # ifdef DL_GLOBAL
  9439. # define LT_DLGLOBAL DL_GLOBAL
  9440. # else
  9441. # define LT_DLGLOBAL 0
  9442. # endif
  9443. #endif
  9444. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9445. find out it does not work in some platform. */
  9446. #ifndef LT_DLLAZY_OR_NOW
  9447. # ifdef RTLD_LAZY
  9448. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9449. # else
  9450. # ifdef DL_LAZY
  9451. # define LT_DLLAZY_OR_NOW DL_LAZY
  9452. # else
  9453. # ifdef RTLD_NOW
  9454. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9455. # else
  9456. # ifdef DL_NOW
  9457. # define LT_DLLAZY_OR_NOW DL_NOW
  9458. # else
  9459. # define LT_DLLAZY_OR_NOW 0
  9460. # endif
  9461. # endif
  9462. # endif
  9463. # endif
  9464. #endif
  9465. void fnord() { int i=42;}
  9466. int main ()
  9467. {
  9468. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9469. int status = $lt_dlunknown;
  9470. if (self)
  9471. {
  9472. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9473. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9474. /* dlclose (self); */
  9475. }
  9476. else
  9477. puts (dlerror ());
  9478. return status;
  9479. }
  9480. _LT_EOF
  9481. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9482. (eval $ac_link) 2>&5
  9483. ac_status=$?
  9484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9485. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9486. (./conftest; exit; ) >&5 2>/dev/null
  9487. lt_status=$?
  9488. case x$lt_status in
  9489. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9490. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9491. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9492. esac
  9493. else :
  9494. # compilation failed
  9495. lt_cv_dlopen_self=no
  9496. fi
  9497. fi
  9498. rm -fr conftest*
  9499. fi
  9500. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9501. $as_echo "$lt_cv_dlopen_self" >&6; }
  9502. if test "x$lt_cv_dlopen_self" = xyes; then
  9503. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9504. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9505. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9506. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9507. $as_echo_n "(cached) " >&6
  9508. else
  9509. if test "$cross_compiling" = yes; then :
  9510. lt_cv_dlopen_self_static=cross
  9511. else
  9512. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9513. lt_status=$lt_dlunknown
  9514. cat > conftest.$ac_ext <<_LT_EOF
  9515. #line 11117 "configure"
  9516. #include "confdefs.h"
  9517. #if HAVE_DLFCN_H
  9518. #include <dlfcn.h>
  9519. #endif
  9520. #include <stdio.h>
  9521. #ifdef RTLD_GLOBAL
  9522. # define LT_DLGLOBAL RTLD_GLOBAL
  9523. #else
  9524. # ifdef DL_GLOBAL
  9525. # define LT_DLGLOBAL DL_GLOBAL
  9526. # else
  9527. # define LT_DLGLOBAL 0
  9528. # endif
  9529. #endif
  9530. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9531. find out it does not work in some platform. */
  9532. #ifndef LT_DLLAZY_OR_NOW
  9533. # ifdef RTLD_LAZY
  9534. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9535. # else
  9536. # ifdef DL_LAZY
  9537. # define LT_DLLAZY_OR_NOW DL_LAZY
  9538. # else
  9539. # ifdef RTLD_NOW
  9540. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9541. # else
  9542. # ifdef DL_NOW
  9543. # define LT_DLLAZY_OR_NOW DL_NOW
  9544. # else
  9545. # define LT_DLLAZY_OR_NOW 0
  9546. # endif
  9547. # endif
  9548. # endif
  9549. # endif
  9550. #endif
  9551. void fnord() { int i=42;}
  9552. int main ()
  9553. {
  9554. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9555. int status = $lt_dlunknown;
  9556. if (self)
  9557. {
  9558. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9559. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9560. /* dlclose (self); */
  9561. }
  9562. else
  9563. puts (dlerror ());
  9564. return status;
  9565. }
  9566. _LT_EOF
  9567. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9568. (eval $ac_link) 2>&5
  9569. ac_status=$?
  9570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9571. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9572. (./conftest; exit; ) >&5 2>/dev/null
  9573. lt_status=$?
  9574. case x$lt_status in
  9575. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9576. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9577. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9578. esac
  9579. else :
  9580. # compilation failed
  9581. lt_cv_dlopen_self_static=no
  9582. fi
  9583. fi
  9584. rm -fr conftest*
  9585. fi
  9586. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9587. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9588. fi
  9589. CPPFLAGS="$save_CPPFLAGS"
  9590. LDFLAGS="$save_LDFLAGS"
  9591. LIBS="$save_LIBS"
  9592. ;;
  9593. esac
  9594. case $lt_cv_dlopen_self in
  9595. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9596. *) enable_dlopen_self=unknown ;;
  9597. esac
  9598. case $lt_cv_dlopen_self_static in
  9599. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9600. *) enable_dlopen_self_static=unknown ;;
  9601. esac
  9602. fi
  9603. striplib=
  9604. old_striplib=
  9605. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9606. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9607. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9608. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9609. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9610. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9611. $as_echo "yes" >&6; }
  9612. else
  9613. # FIXME - insert some real tests, host_os isn't really good enough
  9614. case $host_os in
  9615. darwin*)
  9616. if test -n "$STRIP" ; then
  9617. striplib="$STRIP -x"
  9618. old_striplib="$STRIP -S"
  9619. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9620. $as_echo "yes" >&6; }
  9621. else
  9622. { $as_echo "$as_me:$LINENO: result: no" >&5
  9623. $as_echo "no" >&6; }
  9624. fi
  9625. ;;
  9626. *)
  9627. { $as_echo "$as_me:$LINENO: result: no" >&5
  9628. $as_echo "no" >&6; }
  9629. ;;
  9630. esac
  9631. fi
  9632. # Report which library types will actually be built
  9633. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9634. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9635. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9636. $as_echo "$can_build_shared" >&6; }
  9637. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9638. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9639. test "$can_build_shared" = "no" && enable_shared=no
  9640. # On AIX, shared libraries and static libraries use the same namespace, and
  9641. # are all built from PIC.
  9642. case $host_os in
  9643. aix3*)
  9644. test "$enable_shared" = yes && enable_static=no
  9645. if test -n "$RANLIB"; then
  9646. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9647. postinstall_cmds='$RANLIB $lib'
  9648. fi
  9649. ;;
  9650. aix[4-9]*)
  9651. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9652. test "$enable_shared" = yes && enable_static=no
  9653. fi
  9654. ;;
  9655. esac
  9656. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9657. $as_echo "$enable_shared" >&6; }
  9658. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9659. $as_echo_n "checking whether to build static libraries... " >&6; }
  9660. # Make sure either enable_shared or enable_static is yes.
  9661. test "$enable_shared" = yes || enable_static=yes
  9662. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9663. $as_echo "$enable_static" >&6; }
  9664. fi
  9665. ac_ext=c
  9666. ac_cpp='$CPP $CPPFLAGS'
  9667. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9668. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9669. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9670. CC="$lt_save_CC"
  9671. ac_config_commands="$ac_config_commands libtool"
  9672. # Only expand once:
  9673. if test "x$CC" != xcc; then
  9674. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  9675. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  9676. else
  9677. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  9678. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  9679. fi
  9680. set dummy $CC; ac_cc=`$as_echo "$2" |
  9681. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9682. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  9683. $as_echo_n "(cached) " >&6
  9684. else
  9685. cat >conftest.$ac_ext <<_ACEOF
  9686. /* confdefs.h. */
  9687. _ACEOF
  9688. cat confdefs.h >>conftest.$ac_ext
  9689. cat >>conftest.$ac_ext <<_ACEOF
  9690. /* end confdefs.h. */
  9691. int
  9692. main ()
  9693. {
  9694. ;
  9695. return 0;
  9696. }
  9697. _ACEOF
  9698. # Make sure it works both with $CC and with simple cc.
  9699. # We do the test twice because some compilers refuse to overwrite an
  9700. # existing .o file with -o, though they will create one.
  9701. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9702. rm -f conftest2.*
  9703. if { (case "(($ac_try" in
  9704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9705. *) ac_try_echo=$ac_try;;
  9706. esac
  9707. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9708. $as_echo "$ac_try_echo") >&5
  9709. (eval "$ac_try") 2>&5
  9710. ac_status=$?
  9711. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9712. (exit $ac_status); } &&
  9713. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9715. *) ac_try_echo=$ac_try;;
  9716. esac
  9717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9718. $as_echo "$ac_try_echo") >&5
  9719. (eval "$ac_try") 2>&5
  9720. ac_status=$?
  9721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9722. (exit $ac_status); };
  9723. then
  9724. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  9725. if test "x$CC" != xcc; then
  9726. # Test first that cc exists at all.
  9727. if { ac_try='cc -c conftest.$ac_ext >&5'
  9728. { (case "(($ac_try" in
  9729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9730. *) ac_try_echo=$ac_try;;
  9731. esac
  9732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9733. $as_echo "$ac_try_echo") >&5
  9734. (eval "$ac_try") 2>&5
  9735. ac_status=$?
  9736. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9737. (exit $ac_status); }; }; then
  9738. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  9739. rm -f conftest2.*
  9740. if { (case "(($ac_try" in
  9741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9742. *) ac_try_echo=$ac_try;;
  9743. esac
  9744. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9745. $as_echo "$ac_try_echo") >&5
  9746. (eval "$ac_try") 2>&5
  9747. ac_status=$?
  9748. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9749. (exit $ac_status); } &&
  9750. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  9751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9752. *) ac_try_echo=$ac_try;;
  9753. esac
  9754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9755. $as_echo "$ac_try_echo") >&5
  9756. (eval "$ac_try") 2>&5
  9757. ac_status=$?
  9758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9759. (exit $ac_status); };
  9760. then
  9761. # cc works too.
  9762. :
  9763. else
  9764. # cc exists but doesn't like -o.
  9765. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9766. fi
  9767. fi
  9768. fi
  9769. else
  9770. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  9771. fi
  9772. rm -f core conftest*
  9773. fi
  9774. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  9775. { $as_echo "$as_me:$LINENO: result: yes" >&5
  9776. $as_echo "yes" >&6; }
  9777. else
  9778. { $as_echo "$as_me:$LINENO: result: no" >&5
  9779. $as_echo "no" >&6; }
  9780. cat >>confdefs.h <<\_ACEOF
  9781. #define NO_MINUS_C_MINUS_O 1
  9782. _ACEOF
  9783. fi
  9784. # FIXME: we rely on the cache variable name because
  9785. # there is no other way.
  9786. set dummy $CC
  9787. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  9788. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  9789. if test "$am_t" != yes; then
  9790. # Losing compiler, so override with the script.
  9791. # FIXME: It is wrong to rewrite CC.
  9792. # But if we don't then we get into trouble of one sort or another.
  9793. # A longer-term fix would be to have automake use am__CC in this case,
  9794. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9795. CC="$am_aux_dir/compile $CC"
  9796. fi
  9797. case $ac_cv_prog_cc_stdc in
  9798. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  9799. *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  9800. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  9801. if test "${ac_cv_prog_cc_c99+set}" = set; then
  9802. $as_echo_n "(cached) " >&6
  9803. else
  9804. ac_cv_prog_cc_c99=no
  9805. ac_save_CC=$CC
  9806. cat >conftest.$ac_ext <<_ACEOF
  9807. /* confdefs.h. */
  9808. _ACEOF
  9809. cat confdefs.h >>conftest.$ac_ext
  9810. cat >>conftest.$ac_ext <<_ACEOF
  9811. /* end confdefs.h. */
  9812. #include <stdarg.h>
  9813. #include <stdbool.h>
  9814. #include <stdlib.h>
  9815. #include <wchar.h>
  9816. #include <stdio.h>
  9817. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  9818. #define debug(...) fprintf (stderr, __VA_ARGS__)
  9819. #define showlist(...) puts (#__VA_ARGS__)
  9820. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  9821. static void
  9822. test_varargs_macros (void)
  9823. {
  9824. int x = 1234;
  9825. int y = 5678;
  9826. debug ("Flag");
  9827. debug ("X = %d\n", x);
  9828. showlist (The first, second, and third items.);
  9829. report (x>y, "x is %d but y is %d", x, y);
  9830. }
  9831. // Check long long types.
  9832. #define BIG64 18446744073709551615ull
  9833. #define BIG32 4294967295ul
  9834. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  9835. #if !BIG_OK
  9836. your preprocessor is broken;
  9837. #endif
  9838. #if BIG_OK
  9839. #else
  9840. your preprocessor is broken;
  9841. #endif
  9842. static long long int bignum = -9223372036854775807LL;
  9843. static unsigned long long int ubignum = BIG64;
  9844. struct incomplete_array
  9845. {
  9846. int datasize;
  9847. double data[];
  9848. };
  9849. struct named_init {
  9850. int number;
  9851. const wchar_t *name;
  9852. double average;
  9853. };
  9854. typedef const char *ccp;
  9855. static inline int
  9856. test_restrict (ccp restrict text)
  9857. {
  9858. // See if C++-style comments work.
  9859. // Iterate through items via the restricted pointer.
  9860. // Also check for declarations in for loops.
  9861. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  9862. continue;
  9863. return 0;
  9864. }
  9865. // Check varargs and va_copy.
  9866. static void
  9867. test_varargs (const char *format, ...)
  9868. {
  9869. va_list args;
  9870. va_start (args, format);
  9871. va_list args_copy;
  9872. va_copy (args_copy, args);
  9873. const char *str;
  9874. int number;
  9875. float fnumber;
  9876. while (*format)
  9877. {
  9878. switch (*format++)
  9879. {
  9880. case 's': // string
  9881. str = va_arg (args_copy, const char *);
  9882. break;
  9883. case 'd': // int
  9884. number = va_arg (args_copy, int);
  9885. break;
  9886. case 'f': // float
  9887. fnumber = va_arg (args_copy, double);
  9888. break;
  9889. default:
  9890. break;
  9891. }
  9892. }
  9893. va_end (args_copy);
  9894. va_end (args);
  9895. }
  9896. int
  9897. main ()
  9898. {
  9899. // Check bool.
  9900. _Bool success = false;
  9901. // Check restrict.
  9902. if (test_restrict ("String literal") == 0)
  9903. success = true;
  9904. char *restrict newvar = "Another string";
  9905. // Check varargs.
  9906. test_varargs ("s, d' f .", "string", 65, 34.234);
  9907. test_varargs_macros ();
  9908. // Check flexible array members.
  9909. struct incomplete_array *ia =
  9910. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  9911. ia->datasize = 10;
  9912. for (int i = 0; i < ia->datasize; ++i)
  9913. ia->data[i] = i * 1.234;
  9914. // Check named initializers.
  9915. struct named_init ni = {
  9916. .number = 34,
  9917. .name = L"Test wide string",
  9918. .average = 543.34343,
  9919. };
  9920. ni.number = 58;
  9921. int dynamic_array[ni.number];
  9922. dynamic_array[ni.number - 1] = 543;
  9923. // work around unused variable warnings
  9924. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  9925. || dynamic_array[ni.number - 1] != 543);
  9926. ;
  9927. return 0;
  9928. }
  9929. _ACEOF
  9930. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  9931. do
  9932. CC="$ac_save_CC $ac_arg"
  9933. rm -f conftest.$ac_objext
  9934. if { (ac_try="$ac_compile"
  9935. case "(($ac_try" in
  9936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9937. *) ac_try_echo=$ac_try;;
  9938. esac
  9939. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9940. $as_echo "$ac_try_echo") >&5
  9941. (eval "$ac_compile") 2>conftest.er1
  9942. ac_status=$?
  9943. grep -v '^ *+' conftest.er1 >conftest.err
  9944. rm -f conftest.er1
  9945. cat conftest.err >&5
  9946. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9947. (exit $ac_status); } && {
  9948. test -z "$ac_c_werror_flag" ||
  9949. test ! -s conftest.err
  9950. } && test -s conftest.$ac_objext; then
  9951. ac_cv_prog_cc_c99=$ac_arg
  9952. else
  9953. $as_echo "$as_me: failed program was:" >&5
  9954. sed 's/^/| /' conftest.$ac_ext >&5
  9955. fi
  9956. rm -f core conftest.err conftest.$ac_objext
  9957. test "x$ac_cv_prog_cc_c99" != "xno" && break
  9958. done
  9959. rm -f conftest.$ac_ext
  9960. CC=$ac_save_CC
  9961. fi
  9962. # AC_CACHE_VAL
  9963. case "x$ac_cv_prog_cc_c99" in
  9964. x)
  9965. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  9966. $as_echo "none needed" >&6; } ;;
  9967. xno)
  9968. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  9969. $as_echo "unsupported" >&6; } ;;
  9970. *)
  9971. CC="$CC $ac_cv_prog_cc_c99"
  9972. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  9973. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  9974. esac
  9975. if test "x$ac_cv_prog_cc_c99" != xno; then
  9976. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  9977. else
  9978. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  9979. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  9980. if test "${ac_cv_prog_cc_c89+set}" = set; then
  9981. $as_echo_n "(cached) " >&6
  9982. else
  9983. ac_cv_prog_cc_c89=no
  9984. ac_save_CC=$CC
  9985. cat >conftest.$ac_ext <<_ACEOF
  9986. /* confdefs.h. */
  9987. _ACEOF
  9988. cat confdefs.h >>conftest.$ac_ext
  9989. cat >>conftest.$ac_ext <<_ACEOF
  9990. /* end confdefs.h. */
  9991. #include <stdarg.h>
  9992. #include <stdio.h>
  9993. #include <sys/types.h>
  9994. #include <sys/stat.h>
  9995. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9996. struct buf { int x; };
  9997. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9998. static char *e (p, i)
  9999. char **p;
  10000. int i;
  10001. {
  10002. return p[i];
  10003. }
  10004. static char *f (char * (*g) (char **, int), char **p, ...)
  10005. {
  10006. char *s;
  10007. va_list v;
  10008. va_start (v,p);
  10009. s = g (p, va_arg (v,int));
  10010. va_end (v);
  10011. return s;
  10012. }
  10013. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10014. function prototypes and stuff, but not '\xHH' hex character constants.
  10015. These don't provoke an error unfortunately, instead are silently treated
  10016. as 'x'. The following induces an error, until -std is added to get
  10017. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10018. array size at least. It's necessary to write '\x00'==0 to get something
  10019. that's true only with -std. */
  10020. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10021. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10022. inside strings and character constants. */
  10023. #define FOO(x) 'x'
  10024. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10025. int test (int i, double x);
  10026. struct s1 {int (*f) (int a);};
  10027. struct s2 {int (*f) (double a);};
  10028. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10029. int argc;
  10030. char **argv;
  10031. int
  10032. main ()
  10033. {
  10034. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10035. ;
  10036. return 0;
  10037. }
  10038. _ACEOF
  10039. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10040. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10041. do
  10042. CC="$ac_save_CC $ac_arg"
  10043. rm -f conftest.$ac_objext
  10044. if { (ac_try="$ac_compile"
  10045. case "(($ac_try" in
  10046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10047. *) ac_try_echo=$ac_try;;
  10048. esac
  10049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10050. $as_echo "$ac_try_echo") >&5
  10051. (eval "$ac_compile") 2>conftest.er1
  10052. ac_status=$?
  10053. grep -v '^ *+' conftest.er1 >conftest.err
  10054. rm -f conftest.er1
  10055. cat conftest.err >&5
  10056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10057. (exit $ac_status); } && {
  10058. test -z "$ac_c_werror_flag" ||
  10059. test ! -s conftest.err
  10060. } && test -s conftest.$ac_objext; then
  10061. ac_cv_prog_cc_c89=$ac_arg
  10062. else
  10063. $as_echo "$as_me: failed program was:" >&5
  10064. sed 's/^/| /' conftest.$ac_ext >&5
  10065. fi
  10066. rm -f core conftest.err conftest.$ac_objext
  10067. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10068. done
  10069. rm -f conftest.$ac_ext
  10070. CC=$ac_save_CC
  10071. fi
  10072. # AC_CACHE_VAL
  10073. case "x$ac_cv_prog_cc_c89" in
  10074. x)
  10075. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  10076. $as_echo "none needed" >&6; } ;;
  10077. xno)
  10078. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  10079. $as_echo "unsupported" >&6; } ;;
  10080. *)
  10081. CC="$CC $ac_cv_prog_cc_c89"
  10082. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  10083. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10084. esac
  10085. if test "x$ac_cv_prog_cc_c89" != xno; then
  10086. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  10087. else
  10088. ac_cv_prog_cc_stdc=no
  10089. fi
  10090. fi
  10091. ;;
  10092. esac
  10093. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  10094. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  10095. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  10096. $as_echo_n "(cached) " >&6
  10097. fi
  10098. case $ac_cv_prog_cc_stdc in
  10099. no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  10100. $as_echo "unsupported" >&6; } ;;
  10101. '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
  10102. $as_echo "none needed" >&6; } ;;
  10103. *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  10104. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  10105. esac
  10106. ac_ext=cpp
  10107. ac_cpp='$CXXCPP $CPPFLAGS'
  10108. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10109. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10110. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10111. if test -z "$CXX"; then
  10112. if test -n "$CCC"; then
  10113. CXX=$CCC
  10114. else
  10115. if test -n "$ac_tool_prefix"; then
  10116. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10117. do
  10118. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10119. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10120. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10121. $as_echo_n "checking for $ac_word... " >&6; }
  10122. if test "${ac_cv_prog_CXX+set}" = set; then
  10123. $as_echo_n "(cached) " >&6
  10124. else
  10125. if test -n "$CXX"; then
  10126. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10127. else
  10128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10129. for as_dir in $PATH
  10130. do
  10131. IFS=$as_save_IFS
  10132. test -z "$as_dir" && as_dir=.
  10133. for ac_exec_ext in '' $ac_executable_extensions; do
  10134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10135. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10136. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10137. break 2
  10138. fi
  10139. done
  10140. done
  10141. IFS=$as_save_IFS
  10142. fi
  10143. fi
  10144. CXX=$ac_cv_prog_CXX
  10145. if test -n "$CXX"; then
  10146. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  10147. $as_echo "$CXX" >&6; }
  10148. else
  10149. { $as_echo "$as_me:$LINENO: result: no" >&5
  10150. $as_echo "no" >&6; }
  10151. fi
  10152. test -n "$CXX" && break
  10153. done
  10154. fi
  10155. if test -z "$CXX"; then
  10156. ac_ct_CXX=$CXX
  10157. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10158. do
  10159. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10160. set dummy $ac_prog; ac_word=$2
  10161. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10162. $as_echo_n "checking for $ac_word... " >&6; }
  10163. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  10164. $as_echo_n "(cached) " >&6
  10165. else
  10166. if test -n "$ac_ct_CXX"; then
  10167. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10168. else
  10169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10170. for as_dir in $PATH
  10171. do
  10172. IFS=$as_save_IFS
  10173. test -z "$as_dir" && as_dir=.
  10174. for ac_exec_ext in '' $ac_executable_extensions; do
  10175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10176. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10177. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10178. break 2
  10179. fi
  10180. done
  10181. done
  10182. IFS=$as_save_IFS
  10183. fi
  10184. fi
  10185. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10186. if test -n "$ac_ct_CXX"; then
  10187. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  10188. $as_echo "$ac_ct_CXX" >&6; }
  10189. else
  10190. { $as_echo "$as_me:$LINENO: result: no" >&5
  10191. $as_echo "no" >&6; }
  10192. fi
  10193. test -n "$ac_ct_CXX" && break
  10194. done
  10195. if test "x$ac_ct_CXX" = x; then
  10196. CXX="g++"
  10197. else
  10198. case $cross_compiling:$ac_tool_warned in
  10199. yes:)
  10200. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10202. ac_tool_warned=yes ;;
  10203. esac
  10204. CXX=$ac_ct_CXX
  10205. fi
  10206. fi
  10207. fi
  10208. fi
  10209. # Provide some information about the compiler.
  10210. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  10211. set X $ac_compile
  10212. ac_compiler=$2
  10213. { (ac_try="$ac_compiler --version >&5"
  10214. case "(($ac_try" in
  10215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10216. *) ac_try_echo=$ac_try;;
  10217. esac
  10218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10219. $as_echo "$ac_try_echo") >&5
  10220. (eval "$ac_compiler --version >&5") 2>&5
  10221. ac_status=$?
  10222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10223. (exit $ac_status); }
  10224. { (ac_try="$ac_compiler -v >&5"
  10225. case "(($ac_try" in
  10226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10227. *) ac_try_echo=$ac_try;;
  10228. esac
  10229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10230. $as_echo "$ac_try_echo") >&5
  10231. (eval "$ac_compiler -v >&5") 2>&5
  10232. ac_status=$?
  10233. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10234. (exit $ac_status); }
  10235. { (ac_try="$ac_compiler -V >&5"
  10236. case "(($ac_try" in
  10237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10238. *) ac_try_echo=$ac_try;;
  10239. esac
  10240. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10241. $as_echo "$ac_try_echo") >&5
  10242. (eval "$ac_compiler -V >&5") 2>&5
  10243. ac_status=$?
  10244. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10245. (exit $ac_status); }
  10246. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  10247. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10248. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  10249. $as_echo_n "(cached) " >&6
  10250. else
  10251. cat >conftest.$ac_ext <<_ACEOF
  10252. /* confdefs.h. */
  10253. _ACEOF
  10254. cat confdefs.h >>conftest.$ac_ext
  10255. cat >>conftest.$ac_ext <<_ACEOF
  10256. /* end confdefs.h. */
  10257. int
  10258. main ()
  10259. {
  10260. #ifndef __GNUC__
  10261. choke me
  10262. #endif
  10263. ;
  10264. return 0;
  10265. }
  10266. _ACEOF
  10267. rm -f conftest.$ac_objext
  10268. if { (ac_try="$ac_compile"
  10269. case "(($ac_try" in
  10270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10271. *) ac_try_echo=$ac_try;;
  10272. esac
  10273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10274. $as_echo "$ac_try_echo") >&5
  10275. (eval "$ac_compile") 2>conftest.er1
  10276. ac_status=$?
  10277. grep -v '^ *+' conftest.er1 >conftest.err
  10278. rm -f conftest.er1
  10279. cat conftest.err >&5
  10280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10281. (exit $ac_status); } && {
  10282. test -z "$ac_cxx_werror_flag" ||
  10283. test ! -s conftest.err
  10284. } && test -s conftest.$ac_objext; then
  10285. ac_compiler_gnu=yes
  10286. else
  10287. $as_echo "$as_me: failed program was:" >&5
  10288. sed 's/^/| /' conftest.$ac_ext >&5
  10289. ac_compiler_gnu=no
  10290. fi
  10291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10292. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10293. fi
  10294. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  10295. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10296. if test $ac_compiler_gnu = yes; then
  10297. GXX=yes
  10298. else
  10299. GXX=
  10300. fi
  10301. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10302. ac_save_CXXFLAGS=$CXXFLAGS
  10303. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  10304. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10305. if test "${ac_cv_prog_cxx_g+set}" = set; then
  10306. $as_echo_n "(cached) " >&6
  10307. else
  10308. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10309. ac_cxx_werror_flag=yes
  10310. ac_cv_prog_cxx_g=no
  10311. CXXFLAGS="-g"
  10312. cat >conftest.$ac_ext <<_ACEOF
  10313. /* confdefs.h. */
  10314. _ACEOF
  10315. cat confdefs.h >>conftest.$ac_ext
  10316. cat >>conftest.$ac_ext <<_ACEOF
  10317. /* end confdefs.h. */
  10318. int
  10319. main ()
  10320. {
  10321. ;
  10322. return 0;
  10323. }
  10324. _ACEOF
  10325. rm -f conftest.$ac_objext
  10326. if { (ac_try="$ac_compile"
  10327. case "(($ac_try" in
  10328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10329. *) ac_try_echo=$ac_try;;
  10330. esac
  10331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10332. $as_echo "$ac_try_echo") >&5
  10333. (eval "$ac_compile") 2>conftest.er1
  10334. ac_status=$?
  10335. grep -v '^ *+' conftest.er1 >conftest.err
  10336. rm -f conftest.er1
  10337. cat conftest.err >&5
  10338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10339. (exit $ac_status); } && {
  10340. test -z "$ac_cxx_werror_flag" ||
  10341. test ! -s conftest.err
  10342. } && test -s conftest.$ac_objext; then
  10343. ac_cv_prog_cxx_g=yes
  10344. else
  10345. $as_echo "$as_me: failed program was:" >&5
  10346. sed 's/^/| /' conftest.$ac_ext >&5
  10347. CXXFLAGS=""
  10348. cat >conftest.$ac_ext <<_ACEOF
  10349. /* confdefs.h. */
  10350. _ACEOF
  10351. cat confdefs.h >>conftest.$ac_ext
  10352. cat >>conftest.$ac_ext <<_ACEOF
  10353. /* end confdefs.h. */
  10354. int
  10355. main ()
  10356. {
  10357. ;
  10358. return 0;
  10359. }
  10360. _ACEOF
  10361. rm -f conftest.$ac_objext
  10362. if { (ac_try="$ac_compile"
  10363. case "(($ac_try" in
  10364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10365. *) ac_try_echo=$ac_try;;
  10366. esac
  10367. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10368. $as_echo "$ac_try_echo") >&5
  10369. (eval "$ac_compile") 2>conftest.er1
  10370. ac_status=$?
  10371. grep -v '^ *+' conftest.er1 >conftest.err
  10372. rm -f conftest.er1
  10373. cat conftest.err >&5
  10374. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10375. (exit $ac_status); } && {
  10376. test -z "$ac_cxx_werror_flag" ||
  10377. test ! -s conftest.err
  10378. } && test -s conftest.$ac_objext; then
  10379. :
  10380. else
  10381. $as_echo "$as_me: failed program was:" >&5
  10382. sed 's/^/| /' conftest.$ac_ext >&5
  10383. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10384. CXXFLAGS="-g"
  10385. cat >conftest.$ac_ext <<_ACEOF
  10386. /* confdefs.h. */
  10387. _ACEOF
  10388. cat confdefs.h >>conftest.$ac_ext
  10389. cat >>conftest.$ac_ext <<_ACEOF
  10390. /* end confdefs.h. */
  10391. int
  10392. main ()
  10393. {
  10394. ;
  10395. return 0;
  10396. }
  10397. _ACEOF
  10398. rm -f conftest.$ac_objext
  10399. if { (ac_try="$ac_compile"
  10400. case "(($ac_try" in
  10401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10402. *) ac_try_echo=$ac_try;;
  10403. esac
  10404. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10405. $as_echo "$ac_try_echo") >&5
  10406. (eval "$ac_compile") 2>conftest.er1
  10407. ac_status=$?
  10408. grep -v '^ *+' conftest.er1 >conftest.err
  10409. rm -f conftest.er1
  10410. cat conftest.err >&5
  10411. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10412. (exit $ac_status); } && {
  10413. test -z "$ac_cxx_werror_flag" ||
  10414. test ! -s conftest.err
  10415. } && test -s conftest.$ac_objext; then
  10416. ac_cv_prog_cxx_g=yes
  10417. else
  10418. $as_echo "$as_me: failed program was:" >&5
  10419. sed 's/^/| /' conftest.$ac_ext >&5
  10420. fi
  10421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10422. fi
  10423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10424. fi
  10425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10426. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10427. fi
  10428. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  10429. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10430. if test "$ac_test_CXXFLAGS" = set; then
  10431. CXXFLAGS=$ac_save_CXXFLAGS
  10432. elif test $ac_cv_prog_cxx_g = yes; then
  10433. if test "$GXX" = yes; then
  10434. CXXFLAGS="-g -O2"
  10435. else
  10436. CXXFLAGS="-g"
  10437. fi
  10438. else
  10439. if test "$GXX" = yes; then
  10440. CXXFLAGS="-O2"
  10441. else
  10442. CXXFLAGS=
  10443. fi
  10444. fi
  10445. ac_ext=c
  10446. ac_cpp='$CPP $CPPFLAGS'
  10447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10450. depcc="$CXX" am_compiler_list=
  10451. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10452. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10453. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10457. # We make a subdir and do the tests there. Otherwise we can end up
  10458. # making bogus files that we don't know about and never remove. For
  10459. # instance it was reported that on HP-UX the gcc test will end up
  10460. # making a dummy file named `D' -- because `-MD' means `put the output
  10461. # in D'.
  10462. mkdir conftest.dir
  10463. # Copy depcomp to subdir because otherwise we won't find it if we're
  10464. # using a relative directory.
  10465. cp "$am_depcomp" conftest.dir
  10466. cd conftest.dir
  10467. # We will build objects and dependencies in a subdirectory because
  10468. # it helps to detect inapplicable dependency modes. For instance
  10469. # both Tru64's cc and ICC support -MD to output dependencies as a
  10470. # side effect of compilation, but ICC will put the dependencies in
  10471. # the current directory while Tru64 will put them in the object
  10472. # directory.
  10473. mkdir sub
  10474. am_cv_CXX_dependencies_compiler_type=none
  10475. if test "$am_compiler_list" = ""; then
  10476. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10477. fi
  10478. for depmode in $am_compiler_list; do
  10479. # Setup a source with many dependencies, because some compilers
  10480. # like to wrap large dependency lists on column 80 (with \), and
  10481. # we should not choose a depcomp mode which is confused by this.
  10482. #
  10483. # We need to recreate these files for each test, as the compiler may
  10484. # overwrite some of them when testing with obscure command lines.
  10485. # This happens at least with the AIX C compiler.
  10486. : > sub/conftest.c
  10487. for i in 1 2 3 4 5 6; do
  10488. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10489. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10490. # Solaris 8's {/usr,}/bin/sh.
  10491. touch sub/conftst$i.h
  10492. done
  10493. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10494. case $depmode in
  10495. nosideeffect)
  10496. # after this tag, mechanisms are not by side-effect, so they'll
  10497. # only be used when explicitly requested
  10498. if test "x$enable_dependency_tracking" = xyes; then
  10499. continue
  10500. else
  10501. break
  10502. fi
  10503. ;;
  10504. none) break ;;
  10505. esac
  10506. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10507. # mode. It turns out that the SunPro C++ compiler does not properly
  10508. # handle `-M -o', and we need to detect this.
  10509. if depmode=$depmode \
  10510. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  10511. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10512. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  10513. >/dev/null 2>conftest.err &&
  10514. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10515. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10516. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  10517. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10518. # icc doesn't choke on unknown options, it will just issue warnings
  10519. # or remarks (even with -Werror). So we grep stderr for any message
  10520. # that says an option was ignored or not supported.
  10521. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10522. # icc: Command line warning: ignoring option '-M'; no argument required
  10523. # The diagnosis changed in icc 8.0:
  10524. # icc: Command line remark: option '-MP' not supported
  10525. if (grep 'ignoring option' conftest.err ||
  10526. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10527. am_cv_CXX_dependencies_compiler_type=$depmode
  10528. break
  10529. fi
  10530. fi
  10531. done
  10532. cd ..
  10533. rm -rf conftest.dir
  10534. else
  10535. am_cv_CXX_dependencies_compiler_type=none
  10536. fi
  10537. fi
  10538. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10539. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  10540. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10541. if
  10542. test "x$enable_dependency_tracking" != xno \
  10543. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10544. am__fastdepCXX_TRUE=
  10545. am__fastdepCXX_FALSE='#'
  10546. else
  10547. am__fastdepCXX_TRUE='#'
  10548. am__fastdepCXX_FALSE=
  10549. fi
  10550. ac_ext=cpp
  10551. ac_cpp='$CXXCPP $CPPFLAGS'
  10552. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10553. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10554. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10555. if test -z "$CXX"; then
  10556. if test -n "$CCC"; then
  10557. CXX=$CCC
  10558. else
  10559. if test -n "$ac_tool_prefix"; then
  10560. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10561. do
  10562. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10563. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10564. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10565. $as_echo_n "checking for $ac_word... " >&6; }
  10566. if test "${ac_cv_prog_CXX+set}" = set; then
  10567. $as_echo_n "(cached) " >&6
  10568. else
  10569. if test -n "$CXX"; then
  10570. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10571. else
  10572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10573. for as_dir in $PATH
  10574. do
  10575. IFS=$as_save_IFS
  10576. test -z "$as_dir" && as_dir=.
  10577. for ac_exec_ext in '' $ac_executable_extensions; do
  10578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10579. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10580. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10581. break 2
  10582. fi
  10583. done
  10584. done
  10585. IFS=$as_save_IFS
  10586. fi
  10587. fi
  10588. CXX=$ac_cv_prog_CXX
  10589. if test -n "$CXX"; then
  10590. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  10591. $as_echo "$CXX" >&6; }
  10592. else
  10593. { $as_echo "$as_me:$LINENO: result: no" >&5
  10594. $as_echo "no" >&6; }
  10595. fi
  10596. test -n "$CXX" && break
  10597. done
  10598. fi
  10599. if test -z "$CXX"; then
  10600. ac_ct_CXX=$CXX
  10601. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10602. do
  10603. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10604. set dummy $ac_prog; ac_word=$2
  10605. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10606. $as_echo_n "checking for $ac_word... " >&6; }
  10607. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  10608. $as_echo_n "(cached) " >&6
  10609. else
  10610. if test -n "$ac_ct_CXX"; then
  10611. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10612. else
  10613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10614. for as_dir in $PATH
  10615. do
  10616. IFS=$as_save_IFS
  10617. test -z "$as_dir" && as_dir=.
  10618. for ac_exec_ext in '' $ac_executable_extensions; do
  10619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10620. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10621. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10622. break 2
  10623. fi
  10624. done
  10625. done
  10626. IFS=$as_save_IFS
  10627. fi
  10628. fi
  10629. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10630. if test -n "$ac_ct_CXX"; then
  10631. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  10632. $as_echo "$ac_ct_CXX" >&6; }
  10633. else
  10634. { $as_echo "$as_me:$LINENO: result: no" >&5
  10635. $as_echo "no" >&6; }
  10636. fi
  10637. test -n "$ac_ct_CXX" && break
  10638. done
  10639. if test "x$ac_ct_CXX" = x; then
  10640. CXX="g++"
  10641. else
  10642. case $cross_compiling:$ac_tool_warned in
  10643. yes:)
  10644. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  10645. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10646. ac_tool_warned=yes ;;
  10647. esac
  10648. CXX=$ac_ct_CXX
  10649. fi
  10650. fi
  10651. fi
  10652. fi
  10653. # Provide some information about the compiler.
  10654. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  10655. set X $ac_compile
  10656. ac_compiler=$2
  10657. { (ac_try="$ac_compiler --version >&5"
  10658. case "(($ac_try" in
  10659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10660. *) ac_try_echo=$ac_try;;
  10661. esac
  10662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10663. $as_echo "$ac_try_echo") >&5
  10664. (eval "$ac_compiler --version >&5") 2>&5
  10665. ac_status=$?
  10666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10667. (exit $ac_status); }
  10668. { (ac_try="$ac_compiler -v >&5"
  10669. case "(($ac_try" in
  10670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10671. *) ac_try_echo=$ac_try;;
  10672. esac
  10673. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10674. $as_echo "$ac_try_echo") >&5
  10675. (eval "$ac_compiler -v >&5") 2>&5
  10676. ac_status=$?
  10677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10678. (exit $ac_status); }
  10679. { (ac_try="$ac_compiler -V >&5"
  10680. case "(($ac_try" in
  10681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10682. *) ac_try_echo=$ac_try;;
  10683. esac
  10684. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10685. $as_echo "$ac_try_echo") >&5
  10686. (eval "$ac_compiler -V >&5") 2>&5
  10687. ac_status=$?
  10688. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10689. (exit $ac_status); }
  10690. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  10691. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10692. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  10693. $as_echo_n "(cached) " >&6
  10694. else
  10695. cat >conftest.$ac_ext <<_ACEOF
  10696. /* confdefs.h. */
  10697. _ACEOF
  10698. cat confdefs.h >>conftest.$ac_ext
  10699. cat >>conftest.$ac_ext <<_ACEOF
  10700. /* end confdefs.h. */
  10701. int
  10702. main ()
  10703. {
  10704. #ifndef __GNUC__
  10705. choke me
  10706. #endif
  10707. ;
  10708. return 0;
  10709. }
  10710. _ACEOF
  10711. rm -f conftest.$ac_objext
  10712. if { (ac_try="$ac_compile"
  10713. case "(($ac_try" in
  10714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10715. *) ac_try_echo=$ac_try;;
  10716. esac
  10717. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10718. $as_echo "$ac_try_echo") >&5
  10719. (eval "$ac_compile") 2>conftest.er1
  10720. ac_status=$?
  10721. grep -v '^ *+' conftest.er1 >conftest.err
  10722. rm -f conftest.er1
  10723. cat conftest.err >&5
  10724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10725. (exit $ac_status); } && {
  10726. test -z "$ac_cxx_werror_flag" ||
  10727. test ! -s conftest.err
  10728. } && test -s conftest.$ac_objext; then
  10729. ac_compiler_gnu=yes
  10730. else
  10731. $as_echo "$as_me: failed program was:" >&5
  10732. sed 's/^/| /' conftest.$ac_ext >&5
  10733. ac_compiler_gnu=no
  10734. fi
  10735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10736. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10737. fi
  10738. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  10739. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10740. if test $ac_compiler_gnu = yes; then
  10741. GXX=yes
  10742. else
  10743. GXX=
  10744. fi
  10745. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10746. ac_save_CXXFLAGS=$CXXFLAGS
  10747. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  10748. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10749. if test "${ac_cv_prog_cxx_g+set}" = set; then
  10750. $as_echo_n "(cached) " >&6
  10751. else
  10752. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10753. ac_cxx_werror_flag=yes
  10754. ac_cv_prog_cxx_g=no
  10755. CXXFLAGS="-g"
  10756. cat >conftest.$ac_ext <<_ACEOF
  10757. /* confdefs.h. */
  10758. _ACEOF
  10759. cat confdefs.h >>conftest.$ac_ext
  10760. cat >>conftest.$ac_ext <<_ACEOF
  10761. /* end confdefs.h. */
  10762. int
  10763. main ()
  10764. {
  10765. ;
  10766. return 0;
  10767. }
  10768. _ACEOF
  10769. rm -f conftest.$ac_objext
  10770. if { (ac_try="$ac_compile"
  10771. case "(($ac_try" in
  10772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10773. *) ac_try_echo=$ac_try;;
  10774. esac
  10775. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10776. $as_echo "$ac_try_echo") >&5
  10777. (eval "$ac_compile") 2>conftest.er1
  10778. ac_status=$?
  10779. grep -v '^ *+' conftest.er1 >conftest.err
  10780. rm -f conftest.er1
  10781. cat conftest.err >&5
  10782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10783. (exit $ac_status); } && {
  10784. test -z "$ac_cxx_werror_flag" ||
  10785. test ! -s conftest.err
  10786. } && test -s conftest.$ac_objext; then
  10787. ac_cv_prog_cxx_g=yes
  10788. else
  10789. $as_echo "$as_me: failed program was:" >&5
  10790. sed 's/^/| /' conftest.$ac_ext >&5
  10791. CXXFLAGS=""
  10792. cat >conftest.$ac_ext <<_ACEOF
  10793. /* confdefs.h. */
  10794. _ACEOF
  10795. cat confdefs.h >>conftest.$ac_ext
  10796. cat >>conftest.$ac_ext <<_ACEOF
  10797. /* end confdefs.h. */
  10798. int
  10799. main ()
  10800. {
  10801. ;
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. rm -f conftest.$ac_objext
  10806. if { (ac_try="$ac_compile"
  10807. case "(($ac_try" in
  10808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10809. *) ac_try_echo=$ac_try;;
  10810. esac
  10811. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10812. $as_echo "$ac_try_echo") >&5
  10813. (eval "$ac_compile") 2>conftest.er1
  10814. ac_status=$?
  10815. grep -v '^ *+' conftest.er1 >conftest.err
  10816. rm -f conftest.er1
  10817. cat conftest.err >&5
  10818. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10819. (exit $ac_status); } && {
  10820. test -z "$ac_cxx_werror_flag" ||
  10821. test ! -s conftest.err
  10822. } && test -s conftest.$ac_objext; then
  10823. :
  10824. else
  10825. $as_echo "$as_me: failed program was:" >&5
  10826. sed 's/^/| /' conftest.$ac_ext >&5
  10827. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10828. CXXFLAGS="-g"
  10829. cat >conftest.$ac_ext <<_ACEOF
  10830. /* confdefs.h. */
  10831. _ACEOF
  10832. cat confdefs.h >>conftest.$ac_ext
  10833. cat >>conftest.$ac_ext <<_ACEOF
  10834. /* end confdefs.h. */
  10835. int
  10836. main ()
  10837. {
  10838. ;
  10839. return 0;
  10840. }
  10841. _ACEOF
  10842. rm -f conftest.$ac_objext
  10843. if { (ac_try="$ac_compile"
  10844. case "(($ac_try" in
  10845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10846. *) ac_try_echo=$ac_try;;
  10847. esac
  10848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10849. $as_echo "$ac_try_echo") >&5
  10850. (eval "$ac_compile") 2>conftest.er1
  10851. ac_status=$?
  10852. grep -v '^ *+' conftest.er1 >conftest.err
  10853. rm -f conftest.er1
  10854. cat conftest.err >&5
  10855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10856. (exit $ac_status); } && {
  10857. test -z "$ac_cxx_werror_flag" ||
  10858. test ! -s conftest.err
  10859. } && test -s conftest.$ac_objext; then
  10860. ac_cv_prog_cxx_g=yes
  10861. else
  10862. $as_echo "$as_me: failed program was:" >&5
  10863. sed 's/^/| /' conftest.$ac_ext >&5
  10864. fi
  10865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10866. fi
  10867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10868. fi
  10869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10870. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10871. fi
  10872. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  10873. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10874. if test "$ac_test_CXXFLAGS" = set; then
  10875. CXXFLAGS=$ac_save_CXXFLAGS
  10876. elif test $ac_cv_prog_cxx_g = yes; then
  10877. if test "$GXX" = yes; then
  10878. CXXFLAGS="-g -O2"
  10879. else
  10880. CXXFLAGS="-g"
  10881. fi
  10882. else
  10883. if test "$GXX" = yes; then
  10884. CXXFLAGS="-O2"
  10885. else
  10886. CXXFLAGS=
  10887. fi
  10888. fi
  10889. ac_ext=c
  10890. ac_cpp='$CPP $CPPFLAGS'
  10891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10894. depcc="$CXX" am_compiler_list=
  10895. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10896. $as_echo_n "checking dependency style of $depcc... " >&6; }
  10897. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10898. $as_echo_n "(cached) " >&6
  10899. else
  10900. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10901. # We make a subdir and do the tests there. Otherwise we can end up
  10902. # making bogus files that we don't know about and never remove. For
  10903. # instance it was reported that on HP-UX the gcc test will end up
  10904. # making a dummy file named `D' -- because `-MD' means `put the output
  10905. # in D'.
  10906. mkdir conftest.dir
  10907. # Copy depcomp to subdir because otherwise we won't find it if we're
  10908. # using a relative directory.
  10909. cp "$am_depcomp" conftest.dir
  10910. cd conftest.dir
  10911. # We will build objects and dependencies in a subdirectory because
  10912. # it helps to detect inapplicable dependency modes. For instance
  10913. # both Tru64's cc and ICC support -MD to output dependencies as a
  10914. # side effect of compilation, but ICC will put the dependencies in
  10915. # the current directory while Tru64 will put them in the object
  10916. # directory.
  10917. mkdir sub
  10918. am_cv_CXX_dependencies_compiler_type=none
  10919. if test "$am_compiler_list" = ""; then
  10920. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10921. fi
  10922. for depmode in $am_compiler_list; do
  10923. # Setup a source with many dependencies, because some compilers
  10924. # like to wrap large dependency lists on column 80 (with \), and
  10925. # we should not choose a depcomp mode which is confused by this.
  10926. #
  10927. # We need to recreate these files for each test, as the compiler may
  10928. # overwrite some of them when testing with obscure command lines.
  10929. # This happens at least with the AIX C compiler.
  10930. : > sub/conftest.c
  10931. for i in 1 2 3 4 5 6; do
  10932. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10933. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10934. # Solaris 8's {/usr,}/bin/sh.
  10935. touch sub/conftst$i.h
  10936. done
  10937. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10938. case $depmode in
  10939. nosideeffect)
  10940. # after this tag, mechanisms are not by side-effect, so they'll
  10941. # only be used when explicitly requested
  10942. if test "x$enable_dependency_tracking" = xyes; then
  10943. continue
  10944. else
  10945. break
  10946. fi
  10947. ;;
  10948. none) break ;;
  10949. esac
  10950. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10951. # mode. It turns out that the SunPro C++ compiler does not properly
  10952. # handle `-M -o', and we need to detect this.
  10953. if depmode=$depmode \
  10954. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  10955. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10956. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  10957. >/dev/null 2>conftest.err &&
  10958. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10959. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10960. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  10961. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10962. # icc doesn't choke on unknown options, it will just issue warnings
  10963. # or remarks (even with -Werror). So we grep stderr for any message
  10964. # that says an option was ignored or not supported.
  10965. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10966. # icc: Command line warning: ignoring option '-M'; no argument required
  10967. # The diagnosis changed in icc 8.0:
  10968. # icc: Command line remark: option '-MP' not supported
  10969. if (grep 'ignoring option' conftest.err ||
  10970. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10971. am_cv_CXX_dependencies_compiler_type=$depmode
  10972. break
  10973. fi
  10974. fi
  10975. done
  10976. cd ..
  10977. rm -rf conftest.dir
  10978. else
  10979. am_cv_CXX_dependencies_compiler_type=none
  10980. fi
  10981. fi
  10982. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10983. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  10984. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10985. if
  10986. test "x$enable_dependency_tracking" != xno \
  10987. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10988. am__fastdepCXX_TRUE=
  10989. am__fastdepCXX_FALSE='#'
  10990. else
  10991. am__fastdepCXX_TRUE='#'
  10992. am__fastdepCXX_FALSE=
  10993. fi
  10994. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10995. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10996. (test "X$CXX" != "Xg++"))) ; then
  10997. ac_ext=cpp
  10998. ac_cpp='$CXXCPP $CPPFLAGS'
  10999. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11000. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11001. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11002. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  11003. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11004. if test -z "$CXXCPP"; then
  11005. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  11006. $as_echo_n "(cached) " >&6
  11007. else
  11008. # Double quotes because CXXCPP needs to be expanded
  11009. for CXXCPP in "$CXX -E" "/lib/cpp"
  11010. do
  11011. ac_preproc_ok=false
  11012. for ac_cxx_preproc_warn_flag in '' yes
  11013. do
  11014. # Use a header file that comes with gcc, so configuring glibc
  11015. # with a fresh cross-compiler works.
  11016. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11017. # <limits.h> exists even on freestanding compilers.
  11018. # On the NeXT, cc -E runs the code through the compiler's parser,
  11019. # not just through cpp. "Syntax error" is here to catch this case.
  11020. cat >conftest.$ac_ext <<_ACEOF
  11021. /* confdefs.h. */
  11022. _ACEOF
  11023. cat confdefs.h >>conftest.$ac_ext
  11024. cat >>conftest.$ac_ext <<_ACEOF
  11025. /* end confdefs.h. */
  11026. #ifdef __STDC__
  11027. # include <limits.h>
  11028. #else
  11029. # include <assert.h>
  11030. #endif
  11031. Syntax error
  11032. _ACEOF
  11033. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11034. case "(($ac_try" in
  11035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11036. *) ac_try_echo=$ac_try;;
  11037. esac
  11038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11039. $as_echo "$ac_try_echo") >&5
  11040. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11041. ac_status=$?
  11042. grep -v '^ *+' conftest.er1 >conftest.err
  11043. rm -f conftest.er1
  11044. cat conftest.err >&5
  11045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11046. (exit $ac_status); } >/dev/null && {
  11047. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11048. test ! -s conftest.err
  11049. }; then
  11050. :
  11051. else
  11052. $as_echo "$as_me: failed program was:" >&5
  11053. sed 's/^/| /' conftest.$ac_ext >&5
  11054. # Broken: fails on valid input.
  11055. continue
  11056. fi
  11057. rm -f conftest.err conftest.$ac_ext
  11058. # OK, works on sane cases. Now check whether nonexistent headers
  11059. # can be detected and how.
  11060. cat >conftest.$ac_ext <<_ACEOF
  11061. /* confdefs.h. */
  11062. _ACEOF
  11063. cat confdefs.h >>conftest.$ac_ext
  11064. cat >>conftest.$ac_ext <<_ACEOF
  11065. /* end confdefs.h. */
  11066. #include <ac_nonexistent.h>
  11067. _ACEOF
  11068. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11069. case "(($ac_try" in
  11070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11071. *) ac_try_echo=$ac_try;;
  11072. esac
  11073. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11074. $as_echo "$ac_try_echo") >&5
  11075. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11076. ac_status=$?
  11077. grep -v '^ *+' conftest.er1 >conftest.err
  11078. rm -f conftest.er1
  11079. cat conftest.err >&5
  11080. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11081. (exit $ac_status); } >/dev/null && {
  11082. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11083. test ! -s conftest.err
  11084. }; then
  11085. # Broken: success on invalid input.
  11086. continue
  11087. else
  11088. $as_echo "$as_me: failed program was:" >&5
  11089. sed 's/^/| /' conftest.$ac_ext >&5
  11090. # Passes both tests.
  11091. ac_preproc_ok=:
  11092. break
  11093. fi
  11094. rm -f conftest.err conftest.$ac_ext
  11095. done
  11096. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11097. rm -f conftest.err conftest.$ac_ext
  11098. if $ac_preproc_ok; then
  11099. break
  11100. fi
  11101. done
  11102. ac_cv_prog_CXXCPP=$CXXCPP
  11103. fi
  11104. CXXCPP=$ac_cv_prog_CXXCPP
  11105. else
  11106. ac_cv_prog_CXXCPP=$CXXCPP
  11107. fi
  11108. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  11109. $as_echo "$CXXCPP" >&6; }
  11110. ac_preproc_ok=false
  11111. for ac_cxx_preproc_warn_flag in '' yes
  11112. do
  11113. # Use a header file that comes with gcc, so configuring glibc
  11114. # with a fresh cross-compiler works.
  11115. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11116. # <limits.h> exists even on freestanding compilers.
  11117. # On the NeXT, cc -E runs the code through the compiler's parser,
  11118. # not just through cpp. "Syntax error" is here to catch this case.
  11119. cat >conftest.$ac_ext <<_ACEOF
  11120. /* confdefs.h. */
  11121. _ACEOF
  11122. cat confdefs.h >>conftest.$ac_ext
  11123. cat >>conftest.$ac_ext <<_ACEOF
  11124. /* end confdefs.h. */
  11125. #ifdef __STDC__
  11126. # include <limits.h>
  11127. #else
  11128. # include <assert.h>
  11129. #endif
  11130. Syntax error
  11131. _ACEOF
  11132. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11133. case "(($ac_try" in
  11134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11135. *) ac_try_echo=$ac_try;;
  11136. esac
  11137. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11138. $as_echo "$ac_try_echo") >&5
  11139. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11140. ac_status=$?
  11141. grep -v '^ *+' conftest.er1 >conftest.err
  11142. rm -f conftest.er1
  11143. cat conftest.err >&5
  11144. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11145. (exit $ac_status); } >/dev/null && {
  11146. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11147. test ! -s conftest.err
  11148. }; then
  11149. :
  11150. else
  11151. $as_echo "$as_me: failed program was:" >&5
  11152. sed 's/^/| /' conftest.$ac_ext >&5
  11153. # Broken: fails on valid input.
  11154. continue
  11155. fi
  11156. rm -f conftest.err conftest.$ac_ext
  11157. # OK, works on sane cases. Now check whether nonexistent headers
  11158. # can be detected and how.
  11159. cat >conftest.$ac_ext <<_ACEOF
  11160. /* confdefs.h. */
  11161. _ACEOF
  11162. cat confdefs.h >>conftest.$ac_ext
  11163. cat >>conftest.$ac_ext <<_ACEOF
  11164. /* end confdefs.h. */
  11165. #include <ac_nonexistent.h>
  11166. _ACEOF
  11167. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11168. case "(($ac_try" in
  11169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11170. *) ac_try_echo=$ac_try;;
  11171. esac
  11172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11173. $as_echo "$ac_try_echo") >&5
  11174. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11175. ac_status=$?
  11176. grep -v '^ *+' conftest.er1 >conftest.err
  11177. rm -f conftest.er1
  11178. cat conftest.err >&5
  11179. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11180. (exit $ac_status); } >/dev/null && {
  11181. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11182. test ! -s conftest.err
  11183. }; then
  11184. # Broken: success on invalid input.
  11185. continue
  11186. else
  11187. $as_echo "$as_me: failed program was:" >&5
  11188. sed 's/^/| /' conftest.$ac_ext >&5
  11189. # Passes both tests.
  11190. ac_preproc_ok=:
  11191. break
  11192. fi
  11193. rm -f conftest.err conftest.$ac_ext
  11194. done
  11195. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11196. rm -f conftest.err conftest.$ac_ext
  11197. if $ac_preproc_ok; then
  11198. :
  11199. else
  11200. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  11201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11202. _lt_caught_CXX_error=yes; }
  11203. fi
  11204. ac_ext=c
  11205. ac_cpp='$CPP $CPPFLAGS'
  11206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11209. else
  11210. _lt_caught_CXX_error=yes
  11211. fi
  11212. ac_ext=cpp
  11213. ac_cpp='$CXXCPP $CPPFLAGS'
  11214. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11215. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11216. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11217. archive_cmds_need_lc_CXX=no
  11218. allow_undefined_flag_CXX=
  11219. always_export_symbols_CXX=no
  11220. archive_expsym_cmds_CXX=
  11221. compiler_needs_object_CXX=no
  11222. export_dynamic_flag_spec_CXX=
  11223. hardcode_direct_CXX=no
  11224. hardcode_direct_absolute_CXX=no
  11225. hardcode_libdir_flag_spec_CXX=
  11226. hardcode_libdir_flag_spec_ld_CXX=
  11227. hardcode_libdir_separator_CXX=
  11228. hardcode_minus_L_CXX=no
  11229. hardcode_shlibpath_var_CXX=unsupported
  11230. hardcode_automatic_CXX=no
  11231. inherit_rpath_CXX=no
  11232. module_cmds_CXX=
  11233. module_expsym_cmds_CXX=
  11234. link_all_deplibs_CXX=unknown
  11235. old_archive_cmds_CXX=$old_archive_cmds
  11236. no_undefined_flag_CXX=
  11237. whole_archive_flag_spec_CXX=
  11238. enable_shared_with_static_runtimes_CXX=no
  11239. # Source file extension for C++ test sources.
  11240. ac_ext=cpp
  11241. # Object file extension for compiled C++ test sources.
  11242. objext=o
  11243. objext_CXX=$objext
  11244. # No sense in running all these tests if we already determined that
  11245. # the CXX compiler isn't working. Some variables (like enable_shared)
  11246. # are currently assumed to apply to all compilers on this platform,
  11247. # and will be corrupted by setting them based on a non-working compiler.
  11248. if test "$_lt_caught_CXX_error" != yes; then
  11249. # Code to be used in simple compile tests
  11250. lt_simple_compile_test_code="int some_variable = 0;"
  11251. # Code to be used in simple link tests
  11252. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11253. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11254. # If no C compiler was specified, use CC.
  11255. LTCC=${LTCC-"$CC"}
  11256. # If no C compiler flags were specified, use CFLAGS.
  11257. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11258. # Allow CC to be a program name with arguments.
  11259. compiler=$CC
  11260. # save warnings/boilerplate of simple test code
  11261. ac_outfile=conftest.$ac_objext
  11262. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11263. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11264. _lt_compiler_boilerplate=`cat conftest.err`
  11265. $RM conftest*
  11266. ac_outfile=conftest.$ac_objext
  11267. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11268. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11269. _lt_linker_boilerplate=`cat conftest.err`
  11270. $RM -r conftest*
  11271. # Allow CC to be a program name with arguments.
  11272. lt_save_CC=$CC
  11273. lt_save_LD=$LD
  11274. lt_save_GCC=$GCC
  11275. GCC=$GXX
  11276. lt_save_with_gnu_ld=$with_gnu_ld
  11277. lt_save_path_LD=$lt_cv_path_LD
  11278. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11279. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11280. else
  11281. $as_unset lt_cv_prog_gnu_ld
  11282. fi
  11283. if test -n "${lt_cv_path_LDCXX+set}"; then
  11284. lt_cv_path_LD=$lt_cv_path_LDCXX
  11285. else
  11286. $as_unset lt_cv_path_LD
  11287. fi
  11288. test -z "${LDCXX+set}" || LD=$LDCXX
  11289. CC=${CXX-"c++"}
  11290. compiler=$CC
  11291. compiler_CXX=$CC
  11292. for cc_temp in $compiler""; do
  11293. case $cc_temp in
  11294. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11295. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11296. \-*) ;;
  11297. *) break;;
  11298. esac
  11299. done
  11300. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11301. if test -n "$compiler"; then
  11302. # We don't want -fno-exception when compiling C++ code, so set the
  11303. # no_builtin_flag separately
  11304. if test "$GXX" = yes; then
  11305. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11306. else
  11307. lt_prog_compiler_no_builtin_flag_CXX=
  11308. fi
  11309. if test "$GXX" = yes; then
  11310. # Set up default GNU C++ configuration
  11311. # Check whether --with-gnu-ld was given.
  11312. if test "${with_gnu_ld+set}" = set; then
  11313. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11314. else
  11315. with_gnu_ld=no
  11316. fi
  11317. ac_prog=ld
  11318. if test "$GCC" = yes; then
  11319. # Check if gcc -print-prog-name=ld gives a path.
  11320. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11321. $as_echo_n "checking for ld used by $CC... " >&6; }
  11322. case $host in
  11323. *-*-mingw*)
  11324. # gcc leaves a trailing carriage return which upsets mingw
  11325. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11326. *)
  11327. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11328. esac
  11329. case $ac_prog in
  11330. # Accept absolute paths.
  11331. [\\/]* | ?:[\\/]*)
  11332. re_direlt='/[^/][^/]*/\.\./'
  11333. # Canonicalize the pathname of ld
  11334. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11335. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11336. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11337. done
  11338. test -z "$LD" && LD="$ac_prog"
  11339. ;;
  11340. "")
  11341. # If it fails, then pretend we aren't using GCC.
  11342. ac_prog=ld
  11343. ;;
  11344. *)
  11345. # If it is relative, then search for the first ld in PATH.
  11346. with_gnu_ld=unknown
  11347. ;;
  11348. esac
  11349. elif test "$with_gnu_ld" = yes; then
  11350. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11351. $as_echo_n "checking for GNU ld... " >&6; }
  11352. else
  11353. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11354. $as_echo_n "checking for non-GNU ld... " >&6; }
  11355. fi
  11356. if test "${lt_cv_path_LD+set}" = set; then
  11357. $as_echo_n "(cached) " >&6
  11358. else
  11359. if test -z "$LD"; then
  11360. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11361. for ac_dir in $PATH; do
  11362. IFS="$lt_save_ifs"
  11363. test -z "$ac_dir" && ac_dir=.
  11364. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11365. lt_cv_path_LD="$ac_dir/$ac_prog"
  11366. # Check to see if the program is GNU ld. I'd rather use --version,
  11367. # but apparently some variants of GNU ld only accept -v.
  11368. # Break only if it was the GNU/non-GNU ld that we prefer.
  11369. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11370. *GNU* | *'with BFD'*)
  11371. test "$with_gnu_ld" != no && break
  11372. ;;
  11373. *)
  11374. test "$with_gnu_ld" != yes && break
  11375. ;;
  11376. esac
  11377. fi
  11378. done
  11379. IFS="$lt_save_ifs"
  11380. else
  11381. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11382. fi
  11383. fi
  11384. LD="$lt_cv_path_LD"
  11385. if test -n "$LD"; then
  11386. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11387. $as_echo "$LD" >&6; }
  11388. else
  11389. { $as_echo "$as_me:$LINENO: result: no" >&5
  11390. $as_echo "no" >&6; }
  11391. fi
  11392. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11393. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11394. { (exit 1); exit 1; }; }
  11395. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11396. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11397. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11398. $as_echo_n "(cached) " >&6
  11399. else
  11400. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11401. case `$LD -v 2>&1 </dev/null` in
  11402. *GNU* | *'with BFD'*)
  11403. lt_cv_prog_gnu_ld=yes
  11404. ;;
  11405. *)
  11406. lt_cv_prog_gnu_ld=no
  11407. ;;
  11408. esac
  11409. fi
  11410. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11411. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11412. with_gnu_ld=$lt_cv_prog_gnu_ld
  11413. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11414. # archiving commands below assume that GNU ld is being used.
  11415. if test "$with_gnu_ld" = yes; then
  11416. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11417. 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'
  11418. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11419. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11420. # If archive_cmds runs LD, not CC, wlarc should be empty
  11421. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11422. # investigate it a little bit more. (MM)
  11423. wlarc='${wl}'
  11424. # ancient GNU ld didn't support --whole-archive et. al.
  11425. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11426. $GREP 'no-whole-archive' > /dev/null; then
  11427. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11428. else
  11429. whole_archive_flag_spec_CXX=
  11430. fi
  11431. else
  11432. with_gnu_ld=no
  11433. wlarc=
  11434. # A generic and very simple default shared library creation
  11435. # command for GNU C++ for the case where it uses the native
  11436. # linker, instead of GNU ld. If possible, this setting should
  11437. # overridden to take advantage of the native linker features on
  11438. # the platform it is being used on.
  11439. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11440. fi
  11441. # Commands to make compiler produce verbose output that lists
  11442. # what "hidden" libraries, object files and flags are used when
  11443. # linking a shared library.
  11444. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11445. else
  11446. GXX=no
  11447. with_gnu_ld=no
  11448. wlarc=
  11449. fi
  11450. # PORTME: fill in a description of your system's C++ link characteristics
  11451. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11452. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11453. ld_shlibs_CXX=yes
  11454. case $host_os in
  11455. aix3*)
  11456. # FIXME: insert proper C++ library support
  11457. ld_shlibs_CXX=no
  11458. ;;
  11459. aix[4-9]*)
  11460. if test "$host_cpu" = ia64; then
  11461. # On IA64, the linker does run time linking by default, so we don't
  11462. # have to do anything special.
  11463. aix_use_runtimelinking=no
  11464. exp_sym_flag='-Bexport'
  11465. no_entry_flag=""
  11466. else
  11467. aix_use_runtimelinking=no
  11468. # Test if we are trying to use run time linking or normal
  11469. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11470. # need to do runtime linking.
  11471. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11472. for ld_flag in $LDFLAGS; do
  11473. case $ld_flag in
  11474. *-brtl*)
  11475. aix_use_runtimelinking=yes
  11476. break
  11477. ;;
  11478. esac
  11479. done
  11480. ;;
  11481. esac
  11482. exp_sym_flag='-bexport'
  11483. no_entry_flag='-bnoentry'
  11484. fi
  11485. # When large executables or shared objects are built, AIX ld can
  11486. # have problems creating the table of contents. If linking a library
  11487. # or program results in "error TOC overflow" add -mminimal-toc to
  11488. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11489. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11490. archive_cmds_CXX=''
  11491. hardcode_direct_CXX=yes
  11492. hardcode_direct_absolute_CXX=yes
  11493. hardcode_libdir_separator_CXX=':'
  11494. link_all_deplibs_CXX=yes
  11495. file_list_spec_CXX='${wl}-f,'
  11496. if test "$GXX" = yes; then
  11497. case $host_os in aix4.[012]|aix4.[012].*)
  11498. # We only want to do this on AIX 4.2 and lower, the check
  11499. # below for broken collect2 doesn't work under 4.3+
  11500. collect2name=`${CC} -print-prog-name=collect2`
  11501. if test -f "$collect2name" &&
  11502. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11503. then
  11504. # We have reworked collect2
  11505. :
  11506. else
  11507. # We have old collect2
  11508. hardcode_direct_CXX=unsupported
  11509. # It fails to find uninstalled libraries when the uninstalled
  11510. # path is not listed in the libpath. Setting hardcode_minus_L
  11511. # to unsupported forces relinking
  11512. hardcode_minus_L_CXX=yes
  11513. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11514. hardcode_libdir_separator_CXX=
  11515. fi
  11516. esac
  11517. shared_flag='-shared'
  11518. if test "$aix_use_runtimelinking" = yes; then
  11519. shared_flag="$shared_flag "'${wl}-G'
  11520. fi
  11521. else
  11522. # not using gcc
  11523. if test "$host_cpu" = ia64; then
  11524. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11525. # chokes on -Wl,-G. The following line is correct:
  11526. shared_flag='-G'
  11527. else
  11528. if test "$aix_use_runtimelinking" = yes; then
  11529. shared_flag='${wl}-G'
  11530. else
  11531. shared_flag='${wl}-bM:SRE'
  11532. fi
  11533. fi
  11534. fi
  11535. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11536. # It seems that -bexpall does not export symbols beginning with
  11537. # underscore (_), so it is better to generate a list of symbols to
  11538. # export.
  11539. always_export_symbols_CXX=yes
  11540. if test "$aix_use_runtimelinking" = yes; then
  11541. # Warning - without using the other runtime loading flags (-brtl),
  11542. # -berok will link without error, but may produce a broken library.
  11543. allow_undefined_flag_CXX='-berok'
  11544. # Determine the default libpath from the value encoded in an empty
  11545. # executable.
  11546. cat >conftest.$ac_ext <<_ACEOF
  11547. /* confdefs.h. */
  11548. _ACEOF
  11549. cat confdefs.h >>conftest.$ac_ext
  11550. cat >>conftest.$ac_ext <<_ACEOF
  11551. /* end confdefs.h. */
  11552. int
  11553. main ()
  11554. {
  11555. ;
  11556. return 0;
  11557. }
  11558. _ACEOF
  11559. rm -f conftest.$ac_objext conftest$ac_exeext
  11560. if { (ac_try="$ac_link"
  11561. case "(($ac_try" in
  11562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11563. *) ac_try_echo=$ac_try;;
  11564. esac
  11565. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11566. $as_echo "$ac_try_echo") >&5
  11567. (eval "$ac_link") 2>conftest.er1
  11568. ac_status=$?
  11569. grep -v '^ *+' conftest.er1 >conftest.err
  11570. rm -f conftest.er1
  11571. cat conftest.err >&5
  11572. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11573. (exit $ac_status); } && {
  11574. test -z "$ac_cxx_werror_flag" ||
  11575. test ! -s conftest.err
  11576. } && test -s conftest$ac_exeext && {
  11577. test "$cross_compiling" = yes ||
  11578. $as_test_x conftest$ac_exeext
  11579. }; then
  11580. lt_aix_libpath_sed='
  11581. /Import File Strings/,/^$/ {
  11582. /^0/ {
  11583. s/^0 *\(.*\)$/\1/
  11584. p
  11585. }
  11586. }'
  11587. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11588. # Check for a 64-bit object if we didn't find anything.
  11589. if test -z "$aix_libpath"; then
  11590. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11591. fi
  11592. else
  11593. $as_echo "$as_me: failed program was:" >&5
  11594. sed 's/^/| /' conftest.$ac_ext >&5
  11595. fi
  11596. rm -rf conftest.dSYM
  11597. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11598. conftest$ac_exeext conftest.$ac_ext
  11599. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11600. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11601. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11602. else
  11603. if test "$host_cpu" = ia64; then
  11604. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11605. allow_undefined_flag_CXX="-z nodefs"
  11606. 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"
  11607. else
  11608. # Determine the default libpath from the value encoded in an
  11609. # empty executable.
  11610. cat >conftest.$ac_ext <<_ACEOF
  11611. /* confdefs.h. */
  11612. _ACEOF
  11613. cat confdefs.h >>conftest.$ac_ext
  11614. cat >>conftest.$ac_ext <<_ACEOF
  11615. /* end confdefs.h. */
  11616. int
  11617. main ()
  11618. {
  11619. ;
  11620. return 0;
  11621. }
  11622. _ACEOF
  11623. rm -f conftest.$ac_objext conftest$ac_exeext
  11624. if { (ac_try="$ac_link"
  11625. case "(($ac_try" in
  11626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11627. *) ac_try_echo=$ac_try;;
  11628. esac
  11629. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11630. $as_echo "$ac_try_echo") >&5
  11631. (eval "$ac_link") 2>conftest.er1
  11632. ac_status=$?
  11633. grep -v '^ *+' conftest.er1 >conftest.err
  11634. rm -f conftest.er1
  11635. cat conftest.err >&5
  11636. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11637. (exit $ac_status); } && {
  11638. test -z "$ac_cxx_werror_flag" ||
  11639. test ! -s conftest.err
  11640. } && test -s conftest$ac_exeext && {
  11641. test "$cross_compiling" = yes ||
  11642. $as_test_x conftest$ac_exeext
  11643. }; then
  11644. lt_aix_libpath_sed='
  11645. /Import File Strings/,/^$/ {
  11646. /^0/ {
  11647. s/^0 *\(.*\)$/\1/
  11648. p
  11649. }
  11650. }'
  11651. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11652. # Check for a 64-bit object if we didn't find anything.
  11653. if test -z "$aix_libpath"; then
  11654. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11655. fi
  11656. else
  11657. $as_echo "$as_me: failed program was:" >&5
  11658. sed 's/^/| /' conftest.$ac_ext >&5
  11659. fi
  11660. rm -rf conftest.dSYM
  11661. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11662. conftest$ac_exeext conftest.$ac_ext
  11663. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11664. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11665. # Warning - without using the other run time loading flags,
  11666. # -berok will link without error, but may produce a broken library.
  11667. no_undefined_flag_CXX=' ${wl}-bernotok'
  11668. allow_undefined_flag_CXX=' ${wl}-berok'
  11669. # Exported symbols can be pulled into shared objects from archives
  11670. whole_archive_flag_spec_CXX='$convenience'
  11671. archive_cmds_need_lc_CXX=yes
  11672. # This is similar to how AIX traditionally builds its shared
  11673. # libraries.
  11674. 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'
  11675. fi
  11676. fi
  11677. ;;
  11678. beos*)
  11679. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11680. allow_undefined_flag_CXX=unsupported
  11681. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11682. # support --undefined. This deserves some investigation. FIXME
  11683. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11684. else
  11685. ld_shlibs_CXX=no
  11686. fi
  11687. ;;
  11688. chorus*)
  11689. case $cc_basename in
  11690. *)
  11691. # FIXME: insert proper C++ library support
  11692. ld_shlibs_CXX=no
  11693. ;;
  11694. esac
  11695. ;;
  11696. cygwin* | mingw* | pw32* | cegcc*)
  11697. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11698. # as there is no search path for DLLs.
  11699. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11700. allow_undefined_flag_CXX=unsupported
  11701. always_export_symbols_CXX=no
  11702. enable_shared_with_static_runtimes_CXX=yes
  11703. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11704. 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'
  11705. # If the export-symbols file already is a .def file (1st line
  11706. # is EXPORTS), use it as is; otherwise, prepend...
  11707. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11708. cp $export_symbols $output_objdir/$soname.def;
  11709. else
  11710. echo EXPORTS > $output_objdir/$soname.def;
  11711. cat $export_symbols >> $output_objdir/$soname.def;
  11712. fi~
  11713. $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'
  11714. else
  11715. ld_shlibs_CXX=no
  11716. fi
  11717. ;;
  11718. darwin* | rhapsody*)
  11719. archive_cmds_need_lc_CXX=no
  11720. hardcode_direct_CXX=no
  11721. hardcode_automatic_CXX=yes
  11722. hardcode_shlibpath_var_CXX=unsupported
  11723. whole_archive_flag_spec_CXX=''
  11724. link_all_deplibs_CXX=yes
  11725. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11726. case $cc_basename in
  11727. ifort*) _lt_dar_can_shared=yes ;;
  11728. *) _lt_dar_can_shared=$GCC ;;
  11729. esac
  11730. if test "$_lt_dar_can_shared" = "yes"; then
  11731. output_verbose_link_cmd=echo
  11732. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11733. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11734. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11735. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11736. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11737. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11738. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11739. fi
  11740. else
  11741. ld_shlibs_CXX=no
  11742. fi
  11743. ;;
  11744. dgux*)
  11745. case $cc_basename in
  11746. ec++*)
  11747. # FIXME: insert proper C++ library support
  11748. ld_shlibs_CXX=no
  11749. ;;
  11750. ghcx*)
  11751. # Green Hills C++ Compiler
  11752. # FIXME: insert proper C++ library support
  11753. ld_shlibs_CXX=no
  11754. ;;
  11755. *)
  11756. # FIXME: insert proper C++ library support
  11757. ld_shlibs_CXX=no
  11758. ;;
  11759. esac
  11760. ;;
  11761. freebsd[12]*)
  11762. # C++ shared libraries reported to be fairly broken before
  11763. # switch to ELF
  11764. ld_shlibs_CXX=no
  11765. ;;
  11766. freebsd-elf*)
  11767. archive_cmds_need_lc_CXX=no
  11768. ;;
  11769. freebsd* | dragonfly*)
  11770. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11771. # conventions
  11772. ld_shlibs_CXX=yes
  11773. ;;
  11774. gnu*)
  11775. ;;
  11776. hpux9*)
  11777. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11778. hardcode_libdir_separator_CXX=:
  11779. export_dynamic_flag_spec_CXX='${wl}-E'
  11780. hardcode_direct_CXX=yes
  11781. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11782. # but as the default
  11783. # location of the library.
  11784. case $cc_basename in
  11785. CC*)
  11786. # FIXME: insert proper C++ library support
  11787. ld_shlibs_CXX=no
  11788. ;;
  11789. aCC*)
  11790. 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'
  11791. # Commands to make compiler produce verbose output that lists
  11792. # what "hidden" libraries, object files and flags are used when
  11793. # linking a shared library.
  11794. #
  11795. # There doesn't appear to be a way to prevent this compiler from
  11796. # explicitly linking system object files so we need to strip them
  11797. # from the output so that they don't get included in the library
  11798. # dependencies.
  11799. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11800. ;;
  11801. *)
  11802. if test "$GXX" = yes; then
  11803. 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'
  11804. else
  11805. # FIXME: insert proper C++ library support
  11806. ld_shlibs_CXX=no
  11807. fi
  11808. ;;
  11809. esac
  11810. ;;
  11811. hpux10*|hpux11*)
  11812. if test $with_gnu_ld = no; then
  11813. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11814. hardcode_libdir_separator_CXX=:
  11815. case $host_cpu in
  11816. hppa*64*|ia64*)
  11817. ;;
  11818. *)
  11819. export_dynamic_flag_spec_CXX='${wl}-E'
  11820. ;;
  11821. esac
  11822. fi
  11823. case $host_cpu in
  11824. hppa*64*|ia64*)
  11825. hardcode_direct_CXX=no
  11826. hardcode_shlibpath_var_CXX=no
  11827. ;;
  11828. *)
  11829. hardcode_direct_CXX=yes
  11830. hardcode_direct_absolute_CXX=yes
  11831. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11832. # but as the default
  11833. # location of the library.
  11834. ;;
  11835. esac
  11836. case $cc_basename in
  11837. CC*)
  11838. # FIXME: insert proper C++ library support
  11839. ld_shlibs_CXX=no
  11840. ;;
  11841. aCC*)
  11842. case $host_cpu in
  11843. hppa*64*)
  11844. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11845. ;;
  11846. ia64*)
  11847. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11848. ;;
  11849. *)
  11850. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11851. ;;
  11852. esac
  11853. # Commands to make compiler produce verbose output that lists
  11854. # what "hidden" libraries, object files and flags are used when
  11855. # linking a shared library.
  11856. #
  11857. # There doesn't appear to be a way to prevent this compiler from
  11858. # explicitly linking system object files so we need to strip them
  11859. # from the output so that they don't get included in the library
  11860. # dependencies.
  11861. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11862. ;;
  11863. *)
  11864. if test "$GXX" = yes; then
  11865. if test $with_gnu_ld = no; then
  11866. case $host_cpu in
  11867. hppa*64*)
  11868. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11869. ;;
  11870. ia64*)
  11871. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11872. ;;
  11873. *)
  11874. 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'
  11875. ;;
  11876. esac
  11877. fi
  11878. else
  11879. # FIXME: insert proper C++ library support
  11880. ld_shlibs_CXX=no
  11881. fi
  11882. ;;
  11883. esac
  11884. ;;
  11885. interix[3-9]*)
  11886. hardcode_direct_CXX=no
  11887. hardcode_shlibpath_var_CXX=no
  11888. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11889. export_dynamic_flag_spec_CXX='${wl}-E'
  11890. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11891. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11892. # default) and relocated if they conflict, which is a slow very memory
  11893. # consuming and fragmenting process. To avoid this, we pick a random,
  11894. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11895. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11896. 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'
  11897. 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'
  11898. ;;
  11899. irix5* | irix6*)
  11900. case $cc_basename in
  11901. CC*)
  11902. # SGI C++
  11903. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11904. # Archives containing C++ object files must be created using
  11905. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11906. # necessary to make sure instantiated templates are included
  11907. # in the archive.
  11908. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11909. ;;
  11910. *)
  11911. if test "$GXX" = yes; then
  11912. if test "$with_gnu_ld" = no; then
  11913. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11914. else
  11915. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11916. fi
  11917. fi
  11918. link_all_deplibs_CXX=yes
  11919. ;;
  11920. esac
  11921. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11922. hardcode_libdir_separator_CXX=:
  11923. inherit_rpath_CXX=yes
  11924. ;;
  11925. linux* | k*bsd*-gnu)
  11926. case $cc_basename in
  11927. KCC*)
  11928. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11929. # KCC will only create a shared library if the output file
  11930. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11931. # to its proper name (with version) after linking.
  11932. 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'
  11933. 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'
  11934. # Commands to make compiler produce verbose output that lists
  11935. # what "hidden" libraries, object files and flags are used when
  11936. # linking a shared library.
  11937. #
  11938. # There doesn't appear to be a way to prevent this compiler from
  11939. # explicitly linking system object files so we need to strip them
  11940. # from the output so that they don't get included in the library
  11941. # dependencies.
  11942. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11943. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11944. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11945. # Archives containing C++ object files must be created using
  11946. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11947. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11948. ;;
  11949. icpc* | ecpc* )
  11950. # Intel C++
  11951. with_gnu_ld=yes
  11952. # version 8.0 and above of icpc choke on multiply defined symbols
  11953. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11954. # earlier do not add the objects themselves.
  11955. case `$CC -V 2>&1` in
  11956. *"Version 7."*)
  11957. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11958. 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'
  11959. ;;
  11960. *) # Version 8.0 or newer
  11961. tmp_idyn=
  11962. case $host_cpu in
  11963. ia64*) tmp_idyn=' -i_dynamic';;
  11964. esac
  11965. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11966. 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'
  11967. ;;
  11968. esac
  11969. archive_cmds_need_lc_CXX=no
  11970. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11971. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11972. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11973. ;;
  11974. pgCC* | pgcpp*)
  11975. # Portland Group C++ compiler
  11976. case `$CC -V` in
  11977. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11978. prelink_cmds_CXX='tpldir=Template.dir~
  11979. rm -rf $tpldir~
  11980. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11981. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11982. old_archive_cmds_CXX='tpldir=Template.dir~
  11983. rm -rf $tpldir~
  11984. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11985. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11986. $RANLIB $oldlib'
  11987. archive_cmds_CXX='tpldir=Template.dir~
  11988. rm -rf $tpldir~
  11989. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11990. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11991. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11992. rm -rf $tpldir~
  11993. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11994. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11995. ;;
  11996. *) # Version 6 will use weak symbols
  11997. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11998. 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'
  11999. ;;
  12000. esac
  12001. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12002. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12003. 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'
  12004. ;;
  12005. cxx*)
  12006. # Compaq C++
  12007. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12008. 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'
  12009. runpath_var=LD_RUN_PATH
  12010. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12011. hardcode_libdir_separator_CXX=:
  12012. # Commands to make compiler produce verbose output that lists
  12013. # what "hidden" libraries, object files and flags are used when
  12014. # linking a shared library.
  12015. #
  12016. # There doesn't appear to be a way to prevent this compiler from
  12017. # explicitly linking system object files so we need to strip them
  12018. # from the output so that they don't get included in the library
  12019. # dependencies.
  12020. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  12021. ;;
  12022. xl*)
  12023. # IBM XL 8.0 on PPC, with GNU ld
  12024. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12025. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12026. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12027. if test "x$supports_anon_versioning" = xyes; then
  12028. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  12029. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12030. echo "local: *; };" >> $output_objdir/$libname.ver~
  12031. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12032. fi
  12033. ;;
  12034. *)
  12035. case `$CC -V 2>&1 | sed 5q` in
  12036. *Sun\ C*)
  12037. # Sun C++ 5.9
  12038. no_undefined_flag_CXX=' -zdefs'
  12039. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12040. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  12041. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12042. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  12043. compiler_needs_object_CXX=yes
  12044. # Not sure whether something based on
  12045. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12046. # would be better.
  12047. output_verbose_link_cmd='echo'
  12048. # Archives containing C++ object files must be created using
  12049. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12050. # necessary to make sure instantiated templates are included
  12051. # in the archive.
  12052. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12053. ;;
  12054. esac
  12055. ;;
  12056. esac
  12057. ;;
  12058. lynxos*)
  12059. # FIXME: insert proper C++ library support
  12060. ld_shlibs_CXX=no
  12061. ;;
  12062. m88k*)
  12063. # FIXME: insert proper C++ library support
  12064. ld_shlibs_CXX=no
  12065. ;;
  12066. mvs*)
  12067. case $cc_basename in
  12068. cxx*)
  12069. # FIXME: insert proper C++ library support
  12070. ld_shlibs_CXX=no
  12071. ;;
  12072. *)
  12073. # FIXME: insert proper C++ library support
  12074. ld_shlibs_CXX=no
  12075. ;;
  12076. esac
  12077. ;;
  12078. netbsd*)
  12079. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12080. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12081. wlarc=
  12082. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12083. hardcode_direct_CXX=yes
  12084. hardcode_shlibpath_var_CXX=no
  12085. fi
  12086. # Workaround some broken pre-1.5 toolchains
  12087. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12088. ;;
  12089. *nto* | *qnx*)
  12090. ld_shlibs_CXX=yes
  12091. ;;
  12092. openbsd2*)
  12093. # C++ shared libraries are fairly broken
  12094. ld_shlibs_CXX=no
  12095. ;;
  12096. openbsd*)
  12097. if test -f /usr/libexec/ld.so; then
  12098. hardcode_direct_CXX=yes
  12099. hardcode_shlibpath_var_CXX=no
  12100. hardcode_direct_absolute_CXX=yes
  12101. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12102. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12103. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12104. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12105. export_dynamic_flag_spec_CXX='${wl}-E'
  12106. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12107. fi
  12108. output_verbose_link_cmd=echo
  12109. else
  12110. ld_shlibs_CXX=no
  12111. fi
  12112. ;;
  12113. osf3* | osf4* | osf5*)
  12114. case $cc_basename in
  12115. KCC*)
  12116. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12117. # KCC will only create a shared library if the output file
  12118. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12119. # to its proper name (with version) after linking.
  12120. 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'
  12121. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12122. hardcode_libdir_separator_CXX=:
  12123. # Archives containing C++ object files must be created using
  12124. # the KAI C++ compiler.
  12125. case $host in
  12126. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12127. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12128. esac
  12129. ;;
  12130. RCC*)
  12131. # Rational C++ 2.4.1
  12132. # FIXME: insert proper C++ library support
  12133. ld_shlibs_CXX=no
  12134. ;;
  12135. cxx*)
  12136. case $host in
  12137. osf3*)
  12138. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12139. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12140. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12141. ;;
  12142. *)
  12143. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12144. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12145. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12146. echo "-hidden">> $lib.exp~
  12147. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  12148. $RM $lib.exp'
  12149. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12150. ;;
  12151. esac
  12152. hardcode_libdir_separator_CXX=:
  12153. # Commands to make compiler produce verbose output that lists
  12154. # what "hidden" libraries, object files and flags are used when
  12155. # linking a shared library.
  12156. #
  12157. # There doesn't appear to be a way to prevent this compiler from
  12158. # explicitly linking system object files so we need to strip them
  12159. # from the output so that they don't get included in the library
  12160. # dependencies.
  12161. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  12162. ;;
  12163. *)
  12164. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12165. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12166. case $host in
  12167. osf3*)
  12168. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12169. ;;
  12170. *)
  12171. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12172. ;;
  12173. esac
  12174. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12175. hardcode_libdir_separator_CXX=:
  12176. # Commands to make compiler produce verbose output that lists
  12177. # what "hidden" libraries, object files and flags are used when
  12178. # linking a shared library.
  12179. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12180. else
  12181. # FIXME: insert proper C++ library support
  12182. ld_shlibs_CXX=no
  12183. fi
  12184. ;;
  12185. esac
  12186. ;;
  12187. psos*)
  12188. # FIXME: insert proper C++ library support
  12189. ld_shlibs_CXX=no
  12190. ;;
  12191. sunos4*)
  12192. case $cc_basename in
  12193. CC*)
  12194. # Sun C++ 4.x
  12195. # FIXME: insert proper C++ library support
  12196. ld_shlibs_CXX=no
  12197. ;;
  12198. lcc*)
  12199. # Lucid
  12200. # FIXME: insert proper C++ library support
  12201. ld_shlibs_CXX=no
  12202. ;;
  12203. *)
  12204. # FIXME: insert proper C++ library support
  12205. ld_shlibs_CXX=no
  12206. ;;
  12207. esac
  12208. ;;
  12209. solaris*)
  12210. case $cc_basename in
  12211. CC*)
  12212. # Sun C++ 4.2, 5.x and Centerline C++
  12213. archive_cmds_need_lc_CXX=yes
  12214. no_undefined_flag_CXX=' -zdefs'
  12215. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12216. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12217. $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'
  12218. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12219. hardcode_shlibpath_var_CXX=no
  12220. case $host_os in
  12221. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12222. *)
  12223. # The compiler driver will combine and reorder linker options,
  12224. # but understands `-z linker_flag'.
  12225. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12226. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12227. ;;
  12228. esac
  12229. link_all_deplibs_CXX=yes
  12230. output_verbose_link_cmd='echo'
  12231. # Archives containing C++ object files must be created using
  12232. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12233. # necessary to make sure instantiated templates are included
  12234. # in the archive.
  12235. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12236. ;;
  12237. gcx*)
  12238. # Green Hills C++ Compiler
  12239. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12240. # The C++ compiler must be used to create the archive.
  12241. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12242. ;;
  12243. *)
  12244. # GNU C++ compiler with Solaris linker
  12245. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12246. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12247. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12248. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12249. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12250. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12251. # Commands to make compiler produce verbose output that lists
  12252. # what "hidden" libraries, object files and flags are used when
  12253. # linking a shared library.
  12254. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12255. else
  12256. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12257. # platform.
  12258. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12259. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12260. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12261. # Commands to make compiler produce verbose output that lists
  12262. # what "hidden" libraries, object files and flags are used when
  12263. # linking a shared library.
  12264. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12265. fi
  12266. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12267. case $host_os in
  12268. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12269. *)
  12270. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12271. ;;
  12272. esac
  12273. fi
  12274. ;;
  12275. esac
  12276. ;;
  12277. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12278. no_undefined_flag_CXX='${wl}-z,text'
  12279. archive_cmds_need_lc_CXX=no
  12280. hardcode_shlibpath_var_CXX=no
  12281. runpath_var='LD_RUN_PATH'
  12282. case $cc_basename in
  12283. CC*)
  12284. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12285. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12286. ;;
  12287. *)
  12288. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12289. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12290. ;;
  12291. esac
  12292. ;;
  12293. sysv5* | sco3.2v5* | sco5v6*)
  12294. # Note: We can NOT use -z defs as we might desire, because we do not
  12295. # link with -lc, and that would cause any symbols used from libc to
  12296. # always be unresolved, which means just about no library would
  12297. # ever link correctly. If we're not using GNU ld we use -z text
  12298. # though, which does catch some bad symbols but isn't as heavy-handed
  12299. # as -z defs.
  12300. no_undefined_flag_CXX='${wl}-z,text'
  12301. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12302. archive_cmds_need_lc_CXX=no
  12303. hardcode_shlibpath_var_CXX=no
  12304. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12305. hardcode_libdir_separator_CXX=':'
  12306. link_all_deplibs_CXX=yes
  12307. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12308. runpath_var='LD_RUN_PATH'
  12309. case $cc_basename in
  12310. CC*)
  12311. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12312. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12313. ;;
  12314. *)
  12315. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12316. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12317. ;;
  12318. esac
  12319. ;;
  12320. tandem*)
  12321. case $cc_basename in
  12322. NCC*)
  12323. # NonStop-UX NCC 3.20
  12324. # FIXME: insert proper C++ library support
  12325. ld_shlibs_CXX=no
  12326. ;;
  12327. *)
  12328. # FIXME: insert proper C++ library support
  12329. ld_shlibs_CXX=no
  12330. ;;
  12331. esac
  12332. ;;
  12333. vxworks*)
  12334. # FIXME: insert proper C++ library support
  12335. ld_shlibs_CXX=no
  12336. ;;
  12337. *)
  12338. # FIXME: insert proper C++ library support
  12339. ld_shlibs_CXX=no
  12340. ;;
  12341. esac
  12342. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12343. $as_echo "$ld_shlibs_CXX" >&6; }
  12344. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12345. GCC_CXX="$GXX"
  12346. LD_CXX="$LD"
  12347. ## CAVEAT EMPTOR:
  12348. ## There is no encapsulation within the following macros, do not change
  12349. ## the running order or otherwise move them around unless you know exactly
  12350. ## what you are doing...
  12351. # Dependencies to place before and after the object being linked:
  12352. predep_objects_CXX=
  12353. postdep_objects_CXX=
  12354. predeps_CXX=
  12355. postdeps_CXX=
  12356. compiler_lib_search_path_CXX=
  12357. cat > conftest.$ac_ext <<_LT_EOF
  12358. class Foo
  12359. {
  12360. public:
  12361. Foo (void) { a = 0; }
  12362. private:
  12363. int a;
  12364. };
  12365. _LT_EOF
  12366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12367. (eval $ac_compile) 2>&5
  12368. ac_status=$?
  12369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12370. (exit $ac_status); }; then
  12371. # Parse the compiler output and extract the necessary
  12372. # objects, libraries and library flags.
  12373. # Sentinel used to keep track of whether or not we are before
  12374. # the conftest object file.
  12375. pre_test_object_deps_done=no
  12376. for p in `eval "$output_verbose_link_cmd"`; do
  12377. case $p in
  12378. -L* | -R* | -l*)
  12379. # Some compilers place space between "-{L,R}" and the path.
  12380. # Remove the space.
  12381. if test $p = "-L" ||
  12382. test $p = "-R"; then
  12383. prev=$p
  12384. continue
  12385. else
  12386. prev=
  12387. fi
  12388. if test "$pre_test_object_deps_done" = no; then
  12389. case $p in
  12390. -L* | -R*)
  12391. # Internal compiler library paths should come after those
  12392. # provided the user. The postdeps already come after the
  12393. # user supplied libs so there is no need to process them.
  12394. if test -z "$compiler_lib_search_path_CXX"; then
  12395. compiler_lib_search_path_CXX="${prev}${p}"
  12396. else
  12397. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12398. fi
  12399. ;;
  12400. # The "-l" case would never come before the object being
  12401. # linked, so don't bother handling this case.
  12402. esac
  12403. else
  12404. if test -z "$postdeps_CXX"; then
  12405. postdeps_CXX="${prev}${p}"
  12406. else
  12407. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12408. fi
  12409. fi
  12410. ;;
  12411. *.$objext)
  12412. # This assumes that the test object file only shows up
  12413. # once in the compiler output.
  12414. if test "$p" = "conftest.$objext"; then
  12415. pre_test_object_deps_done=yes
  12416. continue
  12417. fi
  12418. if test "$pre_test_object_deps_done" = no; then
  12419. if test -z "$predep_objects_CXX"; then
  12420. predep_objects_CXX="$p"
  12421. else
  12422. predep_objects_CXX="$predep_objects_CXX $p"
  12423. fi
  12424. else
  12425. if test -z "$postdep_objects_CXX"; then
  12426. postdep_objects_CXX="$p"
  12427. else
  12428. postdep_objects_CXX="$postdep_objects_CXX $p"
  12429. fi
  12430. fi
  12431. ;;
  12432. *) ;; # Ignore the rest.
  12433. esac
  12434. done
  12435. # Clean up.
  12436. rm -f a.out a.exe
  12437. else
  12438. echo "libtool.m4: error: problem compiling CXX test program"
  12439. fi
  12440. $RM -f confest.$objext
  12441. # PORTME: override above test on systems where it is broken
  12442. case $host_os in
  12443. interix[3-9]*)
  12444. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12445. # hack all around it, let's just trust "g++" to DTRT.
  12446. predep_objects_CXX=
  12447. postdep_objects_CXX=
  12448. postdeps_CXX=
  12449. ;;
  12450. linux*)
  12451. case `$CC -V 2>&1 | sed 5q` in
  12452. *Sun\ C*)
  12453. # Sun C++ 5.9
  12454. # The more standards-conforming stlport4 library is
  12455. # incompatible with the Cstd library. Avoid specifying
  12456. # it if it's in CXXFLAGS. Ignore libCrun as
  12457. # -library=stlport4 depends on it.
  12458. case " $CXX $CXXFLAGS " in
  12459. *" -library=stlport4 "*)
  12460. solaris_use_stlport4=yes
  12461. ;;
  12462. esac
  12463. if test "$solaris_use_stlport4" != yes; then
  12464. postdeps_CXX='-library=Cstd -library=Crun'
  12465. fi
  12466. ;;
  12467. esac
  12468. ;;
  12469. solaris*)
  12470. case $cc_basename in
  12471. CC*)
  12472. # The more standards-conforming stlport4 library is
  12473. # incompatible with the Cstd library. Avoid specifying
  12474. # it if it's in CXXFLAGS. Ignore libCrun as
  12475. # -library=stlport4 depends on it.
  12476. case " $CXX $CXXFLAGS " in
  12477. *" -library=stlport4 "*)
  12478. solaris_use_stlport4=yes
  12479. ;;
  12480. esac
  12481. # Adding this requires a known-good setup of shared libraries for
  12482. # Sun compiler versions before 5.6, else PIC objects from an old
  12483. # archive will be linked into the output, leading to subtle bugs.
  12484. if test "$solaris_use_stlport4" != yes; then
  12485. postdeps_CXX='-library=Cstd -library=Crun'
  12486. fi
  12487. ;;
  12488. esac
  12489. ;;
  12490. esac
  12491. case " $postdeps_CXX " in
  12492. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12493. esac
  12494. compiler_lib_search_dirs_CXX=
  12495. if test -n "${compiler_lib_search_path_CXX}"; then
  12496. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12497. fi
  12498. lt_prog_compiler_wl_CXX=
  12499. lt_prog_compiler_pic_CXX=
  12500. lt_prog_compiler_static_CXX=
  12501. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12502. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12503. # C++ specific cases for pic, static, wl, etc.
  12504. if test "$GXX" = yes; then
  12505. lt_prog_compiler_wl_CXX='-Wl,'
  12506. lt_prog_compiler_static_CXX='-static'
  12507. case $host_os in
  12508. aix*)
  12509. # All AIX code is PIC.
  12510. if test "$host_cpu" = ia64; then
  12511. # AIX 5 now supports IA64 processor
  12512. lt_prog_compiler_static_CXX='-Bstatic'
  12513. fi
  12514. ;;
  12515. amigaos*)
  12516. case $host_cpu in
  12517. powerpc)
  12518. # see comment about AmigaOS4 .so support
  12519. lt_prog_compiler_pic_CXX='-fPIC'
  12520. ;;
  12521. m68k)
  12522. # FIXME: we need at least 68020 code to build shared libraries, but
  12523. # adding the `-m68020' flag to GCC prevents building anything better,
  12524. # like `-m68040'.
  12525. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12526. ;;
  12527. esac
  12528. ;;
  12529. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12530. # PIC is the default for these OSes.
  12531. ;;
  12532. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12533. # This hack is so that the source file can tell whether it is being
  12534. # built for inclusion in a dll (and should export symbols for example).
  12535. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12536. # (--disable-auto-import) libraries
  12537. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12538. ;;
  12539. darwin* | rhapsody*)
  12540. # PIC is the default on this platform
  12541. # Common symbols not allowed in MH_DYLIB files
  12542. lt_prog_compiler_pic_CXX='-fno-common'
  12543. ;;
  12544. *djgpp*)
  12545. # DJGPP does not support shared libraries at all
  12546. lt_prog_compiler_pic_CXX=
  12547. ;;
  12548. interix[3-9]*)
  12549. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12550. # Instead, we relocate shared libraries at runtime.
  12551. ;;
  12552. sysv4*MP*)
  12553. if test -d /usr/nec; then
  12554. lt_prog_compiler_pic_CXX=-Kconform_pic
  12555. fi
  12556. ;;
  12557. hpux*)
  12558. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12559. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12560. # sets the default TLS model and affects inlining.
  12561. case $host_cpu in
  12562. hppa*64*)
  12563. ;;
  12564. *)
  12565. lt_prog_compiler_pic_CXX='-fPIC'
  12566. ;;
  12567. esac
  12568. ;;
  12569. *qnx* | *nto*)
  12570. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12571. # it will coredump.
  12572. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12573. ;;
  12574. *)
  12575. lt_prog_compiler_pic_CXX='-fPIC'
  12576. ;;
  12577. esac
  12578. else
  12579. case $host_os in
  12580. aix[4-9]*)
  12581. # All AIX code is PIC.
  12582. if test "$host_cpu" = ia64; then
  12583. # AIX 5 now supports IA64 processor
  12584. lt_prog_compiler_static_CXX='-Bstatic'
  12585. else
  12586. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12587. fi
  12588. ;;
  12589. chorus*)
  12590. case $cc_basename in
  12591. cxch68*)
  12592. # Green Hills C++ Compiler
  12593. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12594. ;;
  12595. esac
  12596. ;;
  12597. dgux*)
  12598. case $cc_basename in
  12599. ec++*)
  12600. lt_prog_compiler_pic_CXX='-KPIC'
  12601. ;;
  12602. ghcx*)
  12603. # Green Hills C++ Compiler
  12604. lt_prog_compiler_pic_CXX='-pic'
  12605. ;;
  12606. *)
  12607. ;;
  12608. esac
  12609. ;;
  12610. freebsd* | dragonfly*)
  12611. # FreeBSD uses GNU C++
  12612. ;;
  12613. hpux9* | hpux10* | hpux11*)
  12614. case $cc_basename in
  12615. CC*)
  12616. lt_prog_compiler_wl_CXX='-Wl,'
  12617. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12618. if test "$host_cpu" != ia64; then
  12619. lt_prog_compiler_pic_CXX='+Z'
  12620. fi
  12621. ;;
  12622. aCC*)
  12623. lt_prog_compiler_wl_CXX='-Wl,'
  12624. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12625. case $host_cpu in
  12626. hppa*64*|ia64*)
  12627. # +Z the default
  12628. ;;
  12629. *)
  12630. lt_prog_compiler_pic_CXX='+Z'
  12631. ;;
  12632. esac
  12633. ;;
  12634. *)
  12635. ;;
  12636. esac
  12637. ;;
  12638. interix*)
  12639. # This is c89, which is MS Visual C++ (no shared libs)
  12640. # Anyone wants to do a port?
  12641. ;;
  12642. irix5* | irix6* | nonstopux*)
  12643. case $cc_basename in
  12644. CC*)
  12645. lt_prog_compiler_wl_CXX='-Wl,'
  12646. lt_prog_compiler_static_CXX='-non_shared'
  12647. # CC pic flag -KPIC is the default.
  12648. ;;
  12649. *)
  12650. ;;
  12651. esac
  12652. ;;
  12653. linux* | k*bsd*-gnu)
  12654. case $cc_basename in
  12655. KCC*)
  12656. # KAI C++ Compiler
  12657. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12658. lt_prog_compiler_pic_CXX='-fPIC'
  12659. ;;
  12660. ecpc* )
  12661. # old Intel C++ for x86_64 which still supported -KPIC.
  12662. lt_prog_compiler_wl_CXX='-Wl,'
  12663. lt_prog_compiler_pic_CXX='-KPIC'
  12664. lt_prog_compiler_static_CXX='-static'
  12665. ;;
  12666. icpc* )
  12667. # Intel C++, used to be incompatible with GCC.
  12668. # ICC 10 doesn't accept -KPIC any more.
  12669. lt_prog_compiler_wl_CXX='-Wl,'
  12670. lt_prog_compiler_pic_CXX='-fPIC'
  12671. lt_prog_compiler_static_CXX='-static'
  12672. ;;
  12673. pgCC* | pgcpp*)
  12674. # Portland Group C++ compiler
  12675. lt_prog_compiler_wl_CXX='-Wl,'
  12676. lt_prog_compiler_pic_CXX='-fpic'
  12677. lt_prog_compiler_static_CXX='-Bstatic'
  12678. ;;
  12679. cxx*)
  12680. # Compaq C++
  12681. # Make sure the PIC flag is empty. It appears that all Alpha
  12682. # Linux and Compaq Tru64 Unix objects are PIC.
  12683. lt_prog_compiler_pic_CXX=
  12684. lt_prog_compiler_static_CXX='-non_shared'
  12685. ;;
  12686. xlc* | xlC*)
  12687. # IBM XL 8.0 on PPC
  12688. lt_prog_compiler_wl_CXX='-Wl,'
  12689. lt_prog_compiler_pic_CXX='-qpic'
  12690. lt_prog_compiler_static_CXX='-qstaticlink'
  12691. ;;
  12692. *)
  12693. case `$CC -V 2>&1 | sed 5q` in
  12694. *Sun\ C*)
  12695. # Sun C++ 5.9
  12696. lt_prog_compiler_pic_CXX='-KPIC'
  12697. lt_prog_compiler_static_CXX='-Bstatic'
  12698. lt_prog_compiler_wl_CXX='-Qoption ld '
  12699. ;;
  12700. esac
  12701. ;;
  12702. esac
  12703. ;;
  12704. lynxos*)
  12705. ;;
  12706. m88k*)
  12707. ;;
  12708. mvs*)
  12709. case $cc_basename in
  12710. cxx*)
  12711. lt_prog_compiler_pic_CXX='-W c,exportall'
  12712. ;;
  12713. *)
  12714. ;;
  12715. esac
  12716. ;;
  12717. netbsd*)
  12718. ;;
  12719. *qnx* | *nto*)
  12720. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12721. # it will coredump.
  12722. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12723. ;;
  12724. osf3* | osf4* | osf5*)
  12725. case $cc_basename in
  12726. KCC*)
  12727. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12728. ;;
  12729. RCC*)
  12730. # Rational C++ 2.4.1
  12731. lt_prog_compiler_pic_CXX='-pic'
  12732. ;;
  12733. cxx*)
  12734. # Digital/Compaq C++
  12735. lt_prog_compiler_wl_CXX='-Wl,'
  12736. # Make sure the PIC flag is empty. It appears that all Alpha
  12737. # Linux and Compaq Tru64 Unix objects are PIC.
  12738. lt_prog_compiler_pic_CXX=
  12739. lt_prog_compiler_static_CXX='-non_shared'
  12740. ;;
  12741. *)
  12742. ;;
  12743. esac
  12744. ;;
  12745. psos*)
  12746. ;;
  12747. solaris*)
  12748. case $cc_basename in
  12749. CC*)
  12750. # Sun C++ 4.2, 5.x and Centerline C++
  12751. lt_prog_compiler_pic_CXX='-KPIC'
  12752. lt_prog_compiler_static_CXX='-Bstatic'
  12753. lt_prog_compiler_wl_CXX='-Qoption ld '
  12754. ;;
  12755. gcx*)
  12756. # Green Hills C++ Compiler
  12757. lt_prog_compiler_pic_CXX='-PIC'
  12758. ;;
  12759. *)
  12760. ;;
  12761. esac
  12762. ;;
  12763. sunos4*)
  12764. case $cc_basename in
  12765. CC*)
  12766. # Sun C++ 4.x
  12767. lt_prog_compiler_pic_CXX='-pic'
  12768. lt_prog_compiler_static_CXX='-Bstatic'
  12769. ;;
  12770. lcc*)
  12771. # Lucid
  12772. lt_prog_compiler_pic_CXX='-pic'
  12773. ;;
  12774. *)
  12775. ;;
  12776. esac
  12777. ;;
  12778. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12779. case $cc_basename in
  12780. CC*)
  12781. lt_prog_compiler_wl_CXX='-Wl,'
  12782. lt_prog_compiler_pic_CXX='-KPIC'
  12783. lt_prog_compiler_static_CXX='-Bstatic'
  12784. ;;
  12785. esac
  12786. ;;
  12787. tandem*)
  12788. case $cc_basename in
  12789. NCC*)
  12790. # NonStop-UX NCC 3.20
  12791. lt_prog_compiler_pic_CXX='-KPIC'
  12792. ;;
  12793. *)
  12794. ;;
  12795. esac
  12796. ;;
  12797. vxworks*)
  12798. ;;
  12799. *)
  12800. lt_prog_compiler_can_build_shared_CXX=no
  12801. ;;
  12802. esac
  12803. fi
  12804. case $host_os in
  12805. # For platforms which do not support PIC, -DPIC is meaningless:
  12806. *djgpp*)
  12807. lt_prog_compiler_pic_CXX=
  12808. ;;
  12809. *)
  12810. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12811. ;;
  12812. esac
  12813. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12814. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12815. #
  12816. # Check to make sure the PIC flag actually works.
  12817. #
  12818. if test -n "$lt_prog_compiler_pic_CXX"; then
  12819. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12820. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12821. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12822. $as_echo_n "(cached) " >&6
  12823. else
  12824. lt_cv_prog_compiler_pic_works_CXX=no
  12825. ac_outfile=conftest.$ac_objext
  12826. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12827. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12828. # Insert the option either (1) after the last *FLAGS variable, or
  12829. # (2) before a word containing "conftest.", or (3) at the end.
  12830. # Note that $ac_compile itself does not contain backslashes and begins
  12831. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12832. # The option is referenced via a variable to avoid confusing sed.
  12833. lt_compile=`echo "$ac_compile" | $SED \
  12834. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12835. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12836. -e 's:$: $lt_compiler_flag:'`
  12837. (eval echo "\"\$as_me:14832: $lt_compile\"" >&5)
  12838. (eval "$lt_compile" 2>conftest.err)
  12839. ac_status=$?
  12840. cat conftest.err >&5
  12841. echo "$as_me:14836: \$? = $ac_status" >&5
  12842. if (exit $ac_status) && test -s "$ac_outfile"; then
  12843. # The compiler can only warn and ignore the option if not recognized
  12844. # So say no if there are warnings other than the usual output.
  12845. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12846. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12847. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12848. lt_cv_prog_compiler_pic_works_CXX=yes
  12849. fi
  12850. fi
  12851. $RM conftest*
  12852. fi
  12853. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12854. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12855. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12856. case $lt_prog_compiler_pic_CXX in
  12857. "" | " "*) ;;
  12858. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12859. esac
  12860. else
  12861. lt_prog_compiler_pic_CXX=
  12862. lt_prog_compiler_can_build_shared_CXX=no
  12863. fi
  12864. fi
  12865. #
  12866. # Check to make sure the static flag actually works.
  12867. #
  12868. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12869. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12870. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12871. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12872. $as_echo_n "(cached) " >&6
  12873. else
  12874. lt_cv_prog_compiler_static_works_CXX=no
  12875. save_LDFLAGS="$LDFLAGS"
  12876. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12877. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12878. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12879. # The linker can only warn and ignore the option if not recognized
  12880. # So say no if there are warnings
  12881. if test -s conftest.err; then
  12882. # Append any errors to the config.log.
  12883. cat conftest.err 1>&5
  12884. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12885. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12886. if diff conftest.exp conftest.er2 >/dev/null; then
  12887. lt_cv_prog_compiler_static_works_CXX=yes
  12888. fi
  12889. else
  12890. lt_cv_prog_compiler_static_works_CXX=yes
  12891. fi
  12892. fi
  12893. $RM -r conftest*
  12894. LDFLAGS="$save_LDFLAGS"
  12895. fi
  12896. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12897. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12898. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12899. :
  12900. else
  12901. lt_prog_compiler_static_CXX=
  12902. fi
  12903. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12904. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12905. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12906. $as_echo_n "(cached) " >&6
  12907. else
  12908. lt_cv_prog_compiler_c_o_CXX=no
  12909. $RM -r conftest 2>/dev/null
  12910. mkdir conftest
  12911. cd conftest
  12912. mkdir out
  12913. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12914. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12915. # Insert the option either (1) after the last *FLAGS variable, or
  12916. # (2) before a word containing "conftest.", or (3) at the end.
  12917. # Note that $ac_compile itself does not contain backslashes and begins
  12918. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12919. lt_compile=`echo "$ac_compile" | $SED \
  12920. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12921. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12922. -e 's:$: $lt_compiler_flag:'`
  12923. (eval echo "\"\$as_me:14931: $lt_compile\"" >&5)
  12924. (eval "$lt_compile" 2>out/conftest.err)
  12925. ac_status=$?
  12926. cat out/conftest.err >&5
  12927. echo "$as_me:14935: \$? = $ac_status" >&5
  12928. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12929. then
  12930. # The compiler can only warn and ignore the option if not recognized
  12931. # So say no if there are warnings
  12932. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12933. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12934. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12935. lt_cv_prog_compiler_c_o_CXX=yes
  12936. fi
  12937. fi
  12938. chmod u+w . 2>&5
  12939. $RM conftest*
  12940. # SGI C++ compiler will create directory out/ii_files/ for
  12941. # template instantiation
  12942. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12943. $RM out/* && rmdir out
  12944. cd ..
  12945. $RM -r conftest
  12946. $RM conftest*
  12947. fi
  12948. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12949. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12950. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12951. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12952. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12953. $as_echo_n "(cached) " >&6
  12954. else
  12955. lt_cv_prog_compiler_c_o_CXX=no
  12956. $RM -r conftest 2>/dev/null
  12957. mkdir conftest
  12958. cd conftest
  12959. mkdir out
  12960. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12961. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12962. # Insert the option either (1) after the last *FLAGS variable, or
  12963. # (2) before a word containing "conftest.", or (3) at the end.
  12964. # Note that $ac_compile itself does not contain backslashes and begins
  12965. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12966. lt_compile=`echo "$ac_compile" | $SED \
  12967. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12968. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12969. -e 's:$: $lt_compiler_flag:'`
  12970. (eval echo "\"\$as_me:14983: $lt_compile\"" >&5)
  12971. (eval "$lt_compile" 2>out/conftest.err)
  12972. ac_status=$?
  12973. cat out/conftest.err >&5
  12974. echo "$as_me:14987: \$? = $ac_status" >&5
  12975. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12976. then
  12977. # The compiler can only warn and ignore the option if not recognized
  12978. # So say no if there are warnings
  12979. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12980. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12981. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12982. lt_cv_prog_compiler_c_o_CXX=yes
  12983. fi
  12984. fi
  12985. chmod u+w . 2>&5
  12986. $RM conftest*
  12987. # SGI C++ compiler will create directory out/ii_files/ for
  12988. # template instantiation
  12989. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12990. $RM out/* && rmdir out
  12991. cd ..
  12992. $RM -r conftest
  12993. $RM conftest*
  12994. fi
  12995. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12996. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12997. hard_links="nottested"
  12998. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12999. # do not overwrite the value of need_locks provided by the user
  13000. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13001. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13002. hard_links=yes
  13003. $RM conftest*
  13004. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13005. touch conftest.a
  13006. ln conftest.a conftest.b 2>&5 || hard_links=no
  13007. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13008. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  13009. $as_echo "$hard_links" >&6; }
  13010. if test "$hard_links" = no; then
  13011. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13012. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13013. need_locks=warn
  13014. fi
  13015. else
  13016. need_locks=no
  13017. fi
  13018. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13019. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13020. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13021. case $host_os in
  13022. aix[4-9]*)
  13023. # If we're using GNU nm, then we don't want the "-C" option.
  13024. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13025. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13026. 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'
  13027. else
  13028. 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'
  13029. fi
  13030. ;;
  13031. pw32*)
  13032. export_symbols_cmds_CXX="$ltdll_cmds"
  13033. ;;
  13034. cygwin* | mingw* | cegcc*)
  13035. 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'
  13036. ;;
  13037. *)
  13038. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13039. ;;
  13040. esac
  13041. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13042. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  13043. $as_echo "$ld_shlibs_CXX" >&6; }
  13044. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13045. with_gnu_ld_CXX=$with_gnu_ld
  13046. #
  13047. # Do we need to explicitly link libc?
  13048. #
  13049. case "x$archive_cmds_need_lc_CXX" in
  13050. x|xyes)
  13051. # Assume -lc should be added
  13052. archive_cmds_need_lc_CXX=yes
  13053. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13054. case $archive_cmds_CXX in
  13055. *'~'*)
  13056. # FIXME: we may have to deal with multi-command sequences.
  13057. ;;
  13058. '$CC '*)
  13059. # Test whether the compiler implicitly links with -lc since on some
  13060. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13061. # to ld, don't add -lc before -lgcc.
  13062. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13063. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13064. $RM conftest*
  13065. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13066. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13067. (eval $ac_compile) 2>&5
  13068. ac_status=$?
  13069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13070. (exit $ac_status); } 2>conftest.err; then
  13071. soname=conftest
  13072. lib=conftest
  13073. libobjs=conftest.$ac_objext
  13074. deplibs=
  13075. wl=$lt_prog_compiler_wl_CXX
  13076. pic_flag=$lt_prog_compiler_pic_CXX
  13077. compiler_flags=-v
  13078. linker_flags=-v
  13079. verstring=
  13080. output_objdir=.
  13081. libname=conftest
  13082. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13083. allow_undefined_flag_CXX=
  13084. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13085. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13086. ac_status=$?
  13087. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13088. (exit $ac_status); }
  13089. then
  13090. archive_cmds_need_lc_CXX=no
  13091. else
  13092. archive_cmds_need_lc_CXX=yes
  13093. fi
  13094. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13095. else
  13096. cat conftest.err 1>&5
  13097. fi
  13098. $RM conftest*
  13099. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  13100. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  13101. ;;
  13102. esac
  13103. fi
  13104. ;;
  13105. esac
  13106. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13107. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13108. library_names_spec=
  13109. libname_spec='lib$name'
  13110. soname_spec=
  13111. shrext_cmds=".so"
  13112. postinstall_cmds=
  13113. postuninstall_cmds=
  13114. finish_cmds=
  13115. finish_eval=
  13116. shlibpath_var=
  13117. shlibpath_overrides_runpath=unknown
  13118. version_type=none
  13119. dynamic_linker="$host_os ld.so"
  13120. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13121. need_lib_prefix=unknown
  13122. hardcode_into_libs=no
  13123. # when you set need_version to no, make sure it does not cause -set_version
  13124. # flags to be left without arguments
  13125. need_version=unknown
  13126. case $host_os in
  13127. aix3*)
  13128. version_type=linux
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13130. shlibpath_var=LIBPATH
  13131. # AIX 3 has no versioning support, so we append a major version to the name.
  13132. soname_spec='${libname}${release}${shared_ext}$major'
  13133. ;;
  13134. aix[4-9]*)
  13135. version_type=linux
  13136. need_lib_prefix=no
  13137. need_version=no
  13138. hardcode_into_libs=yes
  13139. if test "$host_cpu" = ia64; then
  13140. # AIX 5 supports IA64
  13141. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13142. shlibpath_var=LD_LIBRARY_PATH
  13143. else
  13144. # With GCC up to 2.95.x, collect2 would create an import file
  13145. # for dependence libraries. The import file would start with
  13146. # the line `#! .'. This would cause the generated library to
  13147. # depend on `.', always an invalid library. This was fixed in
  13148. # development snapshots of GCC prior to 3.0.
  13149. case $host_os in
  13150. aix4 | aix4.[01] | aix4.[01].*)
  13151. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13152. echo ' yes '
  13153. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13154. :
  13155. else
  13156. can_build_shared=no
  13157. fi
  13158. ;;
  13159. esac
  13160. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13161. # soname into executable. Probably we can add versioning support to
  13162. # collect2, so additional links can be useful in future.
  13163. if test "$aix_use_runtimelinking" = yes; then
  13164. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13165. # instead of lib<name>.a to let people know that these are not
  13166. # typical AIX shared libraries.
  13167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13168. else
  13169. # We preserve .a as extension for shared libraries through AIX4.2
  13170. # and later when we are not doing run time linking.
  13171. library_names_spec='${libname}${release}.a $libname.a'
  13172. soname_spec='${libname}${release}${shared_ext}$major'
  13173. fi
  13174. shlibpath_var=LIBPATH
  13175. fi
  13176. ;;
  13177. amigaos*)
  13178. case $host_cpu in
  13179. powerpc)
  13180. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13181. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13183. ;;
  13184. m68k)
  13185. library_names_spec='$libname.ixlibrary $libname.a'
  13186. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13187. 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'
  13188. ;;
  13189. esac
  13190. ;;
  13191. beos*)
  13192. library_names_spec='${libname}${shared_ext}'
  13193. dynamic_linker="$host_os ld.so"
  13194. shlibpath_var=LIBRARY_PATH
  13195. ;;
  13196. bsdi[45]*)
  13197. version_type=linux
  13198. need_version=no
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13200. soname_spec='${libname}${release}${shared_ext}$major'
  13201. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13202. shlibpath_var=LD_LIBRARY_PATH
  13203. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13204. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13205. # the default ld.so.conf also contains /usr/contrib/lib and
  13206. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13207. # libtool to hard-code these into programs
  13208. ;;
  13209. cygwin* | mingw* | pw32* | cegcc*)
  13210. version_type=windows
  13211. shrext_cmds=".dll"
  13212. need_version=no
  13213. need_lib_prefix=no
  13214. case $GCC,$host_os in
  13215. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13216. library_names_spec='$libname.dll.a'
  13217. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13218. postinstall_cmds='base_file=`basename \${file}`~
  13219. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13220. dldir=$destdir/`dirname \$dlpath`~
  13221. test -d \$dldir || mkdir -p \$dldir~
  13222. $install_prog $dir/$dlname \$dldir/$dlname~
  13223. chmod a+x \$dldir/$dlname~
  13224. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13225. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13226. fi'
  13227. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13228. dlpath=$dir/\$dldll~
  13229. $RM \$dlpath'
  13230. shlibpath_overrides_runpath=yes
  13231. case $host_os in
  13232. cygwin*)
  13233. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13234. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13235. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13236. ;;
  13237. mingw* | cegcc*)
  13238. # MinGW DLLs use traditional 'lib' prefix
  13239. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13240. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13241. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13242. # It is most probably a Windows format PATH printed by
  13243. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13244. # path with ; separators, and with drive letters. We can handle the
  13245. # drive letters (cygwin fileutils understands them), so leave them,
  13246. # especially as we might pass files found there to a mingw objdump,
  13247. # which wouldn't understand a cygwinified path. Ahh.
  13248. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13249. else
  13250. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13251. fi
  13252. ;;
  13253. pw32*)
  13254. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13255. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13256. ;;
  13257. esac
  13258. ;;
  13259. *)
  13260. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13261. ;;
  13262. esac
  13263. dynamic_linker='Win32 ld.exe'
  13264. # FIXME: first we should search . and the directory the executable is in
  13265. shlibpath_var=PATH
  13266. ;;
  13267. darwin* | rhapsody*)
  13268. dynamic_linker="$host_os dyld"
  13269. version_type=darwin
  13270. need_lib_prefix=no
  13271. need_version=no
  13272. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13273. soname_spec='${libname}${release}${major}$shared_ext'
  13274. shlibpath_overrides_runpath=yes
  13275. shlibpath_var=DYLD_LIBRARY_PATH
  13276. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13277. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13278. ;;
  13279. dgux*)
  13280. version_type=linux
  13281. need_lib_prefix=no
  13282. need_version=no
  13283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13284. soname_spec='${libname}${release}${shared_ext}$major'
  13285. shlibpath_var=LD_LIBRARY_PATH
  13286. ;;
  13287. freebsd1*)
  13288. dynamic_linker=no
  13289. ;;
  13290. freebsd* | dragonfly*)
  13291. # DragonFly does not have aout. When/if they implement a new
  13292. # versioning mechanism, adjust this.
  13293. if test -x /usr/bin/objformat; then
  13294. objformat=`/usr/bin/objformat`
  13295. else
  13296. case $host_os in
  13297. freebsd[123]*) objformat=aout ;;
  13298. *) objformat=elf ;;
  13299. esac
  13300. fi
  13301. version_type=freebsd-$objformat
  13302. case $version_type in
  13303. freebsd-elf*)
  13304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13305. need_version=no
  13306. need_lib_prefix=no
  13307. ;;
  13308. freebsd-*)
  13309. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13310. need_version=yes
  13311. ;;
  13312. esac
  13313. shlibpath_var=LD_LIBRARY_PATH
  13314. case $host_os in
  13315. freebsd2*)
  13316. shlibpath_overrides_runpath=yes
  13317. ;;
  13318. freebsd3.[01]* | freebsdelf3.[01]*)
  13319. shlibpath_overrides_runpath=yes
  13320. hardcode_into_libs=yes
  13321. ;;
  13322. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13323. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13324. shlibpath_overrides_runpath=no
  13325. hardcode_into_libs=yes
  13326. ;;
  13327. *) # from 4.6 on, and DragonFly
  13328. shlibpath_overrides_runpath=yes
  13329. hardcode_into_libs=yes
  13330. ;;
  13331. esac
  13332. ;;
  13333. gnu*)
  13334. version_type=linux
  13335. need_lib_prefix=no
  13336. need_version=no
  13337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13338. soname_spec='${libname}${release}${shared_ext}$major'
  13339. shlibpath_var=LD_LIBRARY_PATH
  13340. hardcode_into_libs=yes
  13341. ;;
  13342. hpux9* | hpux10* | hpux11*)
  13343. # Give a soname corresponding to the major version so that dld.sl refuses to
  13344. # link against other versions.
  13345. version_type=sunos
  13346. need_lib_prefix=no
  13347. need_version=no
  13348. case $host_cpu in
  13349. ia64*)
  13350. shrext_cmds='.so'
  13351. hardcode_into_libs=yes
  13352. dynamic_linker="$host_os dld.so"
  13353. shlibpath_var=LD_LIBRARY_PATH
  13354. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13356. soname_spec='${libname}${release}${shared_ext}$major'
  13357. if test "X$HPUX_IA64_MODE" = X32; then
  13358. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13359. else
  13360. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13361. fi
  13362. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13363. ;;
  13364. hppa*64*)
  13365. shrext_cmds='.sl'
  13366. hardcode_into_libs=yes
  13367. dynamic_linker="$host_os dld.sl"
  13368. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13369. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13371. soname_spec='${libname}${release}${shared_ext}$major'
  13372. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13373. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13374. ;;
  13375. *)
  13376. shrext_cmds='.sl'
  13377. dynamic_linker="$host_os dld.sl"
  13378. shlibpath_var=SHLIB_PATH
  13379. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13381. soname_spec='${libname}${release}${shared_ext}$major'
  13382. ;;
  13383. esac
  13384. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13385. postinstall_cmds='chmod 555 $lib'
  13386. ;;
  13387. interix[3-9]*)
  13388. version_type=linux
  13389. need_lib_prefix=no
  13390. need_version=no
  13391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13392. soname_spec='${libname}${release}${shared_ext}$major'
  13393. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13394. shlibpath_var=LD_LIBRARY_PATH
  13395. shlibpath_overrides_runpath=no
  13396. hardcode_into_libs=yes
  13397. ;;
  13398. irix5* | irix6* | nonstopux*)
  13399. case $host_os in
  13400. nonstopux*) version_type=nonstopux ;;
  13401. *)
  13402. if test "$lt_cv_prog_gnu_ld" = yes; then
  13403. version_type=linux
  13404. else
  13405. version_type=irix
  13406. fi ;;
  13407. esac
  13408. need_lib_prefix=no
  13409. need_version=no
  13410. soname_spec='${libname}${release}${shared_ext}$major'
  13411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13412. case $host_os in
  13413. irix5* | nonstopux*)
  13414. libsuff= shlibsuff=
  13415. ;;
  13416. *)
  13417. case $LD in # libtool.m4 will add one of these switches to LD
  13418. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13419. libsuff= shlibsuff= libmagic=32-bit;;
  13420. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13421. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13422. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13423. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13424. *) libsuff= shlibsuff= libmagic=never-match;;
  13425. esac
  13426. ;;
  13427. esac
  13428. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13429. shlibpath_overrides_runpath=no
  13430. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13431. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13432. hardcode_into_libs=yes
  13433. ;;
  13434. # No shared lib support for Linux oldld, aout, or coff.
  13435. linux*oldld* | linux*aout* | linux*coff*)
  13436. dynamic_linker=no
  13437. ;;
  13438. # This must be Linux ELF.
  13439. linux* | k*bsd*-gnu)
  13440. version_type=linux
  13441. need_lib_prefix=no
  13442. need_version=no
  13443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13444. soname_spec='${libname}${release}${shared_ext}$major'
  13445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13446. shlibpath_var=LD_LIBRARY_PATH
  13447. shlibpath_overrides_runpath=no
  13448. # Some binutils ld are patched to set DT_RUNPATH
  13449. save_LDFLAGS=$LDFLAGS
  13450. save_libdir=$libdir
  13451. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13452. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13453. cat >conftest.$ac_ext <<_ACEOF
  13454. /* confdefs.h. */
  13455. _ACEOF
  13456. cat confdefs.h >>conftest.$ac_ext
  13457. cat >>conftest.$ac_ext <<_ACEOF
  13458. /* end confdefs.h. */
  13459. int
  13460. main ()
  13461. {
  13462. ;
  13463. return 0;
  13464. }
  13465. _ACEOF
  13466. rm -f conftest.$ac_objext conftest$ac_exeext
  13467. if { (ac_try="$ac_link"
  13468. case "(($ac_try" in
  13469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13470. *) ac_try_echo=$ac_try;;
  13471. esac
  13472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13473. $as_echo "$ac_try_echo") >&5
  13474. (eval "$ac_link") 2>conftest.er1
  13475. ac_status=$?
  13476. grep -v '^ *+' conftest.er1 >conftest.err
  13477. rm -f conftest.er1
  13478. cat conftest.err >&5
  13479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13480. (exit $ac_status); } && {
  13481. test -z "$ac_cxx_werror_flag" ||
  13482. test ! -s conftest.err
  13483. } && test -s conftest$ac_exeext && {
  13484. test "$cross_compiling" = yes ||
  13485. $as_test_x conftest$ac_exeext
  13486. }; then
  13487. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13488. shlibpath_overrides_runpath=yes
  13489. fi
  13490. else
  13491. $as_echo "$as_me: failed program was:" >&5
  13492. sed 's/^/| /' conftest.$ac_ext >&5
  13493. fi
  13494. rm -rf conftest.dSYM
  13495. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13496. conftest$ac_exeext conftest.$ac_ext
  13497. LDFLAGS=$save_LDFLAGS
  13498. libdir=$save_libdir
  13499. # This implies no fast_install, which is unacceptable.
  13500. # Some rework will be needed to allow for fast_install
  13501. # before this can be enabled.
  13502. hardcode_into_libs=yes
  13503. # Append ld.so.conf contents to the search path
  13504. if test -f /etc/ld.so.conf; then
  13505. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13506. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13507. fi
  13508. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13509. # powerpc, because MkLinux only supported shared libraries with the
  13510. # GNU dynamic linker. Since this was broken with cross compilers,
  13511. # most powerpc-linux boxes support dynamic linking these days and
  13512. # people can always --disable-shared, the test was removed, and we
  13513. # assume the GNU/Linux dynamic linker is in use.
  13514. dynamic_linker='GNU/Linux ld.so'
  13515. ;;
  13516. netbsd*)
  13517. version_type=sunos
  13518. need_lib_prefix=no
  13519. need_version=no
  13520. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13522. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13523. dynamic_linker='NetBSD (a.out) ld.so'
  13524. else
  13525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13526. soname_spec='${libname}${release}${shared_ext}$major'
  13527. dynamic_linker='NetBSD ld.elf_so'
  13528. fi
  13529. shlibpath_var=LD_LIBRARY_PATH
  13530. shlibpath_overrides_runpath=yes
  13531. hardcode_into_libs=yes
  13532. ;;
  13533. newsos6)
  13534. version_type=linux
  13535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13536. shlibpath_var=LD_LIBRARY_PATH
  13537. shlibpath_overrides_runpath=yes
  13538. ;;
  13539. *nto* | *qnx*)
  13540. version_type=qnx
  13541. need_lib_prefix=no
  13542. need_version=no
  13543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13544. soname_spec='${libname}${release}${shared_ext}$major'
  13545. shlibpath_var=LD_LIBRARY_PATH
  13546. shlibpath_overrides_runpath=no
  13547. hardcode_into_libs=yes
  13548. dynamic_linker='ldqnx.so'
  13549. ;;
  13550. openbsd*)
  13551. version_type=sunos
  13552. sys_lib_dlsearch_path_spec="/usr/lib"
  13553. need_lib_prefix=no
  13554. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13555. case $host_os in
  13556. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13557. *) need_version=no ;;
  13558. esac
  13559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13560. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13561. shlibpath_var=LD_LIBRARY_PATH
  13562. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13563. case $host_os in
  13564. openbsd2.[89] | openbsd2.[89].*)
  13565. shlibpath_overrides_runpath=no
  13566. ;;
  13567. *)
  13568. shlibpath_overrides_runpath=yes
  13569. ;;
  13570. esac
  13571. else
  13572. shlibpath_overrides_runpath=yes
  13573. fi
  13574. ;;
  13575. os2*)
  13576. libname_spec='$name'
  13577. shrext_cmds=".dll"
  13578. need_lib_prefix=no
  13579. library_names_spec='$libname${shared_ext} $libname.a'
  13580. dynamic_linker='OS/2 ld.exe'
  13581. shlibpath_var=LIBPATH
  13582. ;;
  13583. osf3* | osf4* | osf5*)
  13584. version_type=osf
  13585. need_lib_prefix=no
  13586. need_version=no
  13587. soname_spec='${libname}${release}${shared_ext}$major'
  13588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13589. shlibpath_var=LD_LIBRARY_PATH
  13590. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13591. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13592. ;;
  13593. rdos*)
  13594. dynamic_linker=no
  13595. ;;
  13596. solaris*)
  13597. version_type=linux
  13598. need_lib_prefix=no
  13599. need_version=no
  13600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13601. soname_spec='${libname}${release}${shared_ext}$major'
  13602. shlibpath_var=LD_LIBRARY_PATH
  13603. shlibpath_overrides_runpath=yes
  13604. hardcode_into_libs=yes
  13605. # ldd complains unless libraries are executable
  13606. postinstall_cmds='chmod +x $lib'
  13607. ;;
  13608. sunos4*)
  13609. version_type=sunos
  13610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13611. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13612. shlibpath_var=LD_LIBRARY_PATH
  13613. shlibpath_overrides_runpath=yes
  13614. if test "$with_gnu_ld" = yes; then
  13615. need_lib_prefix=no
  13616. fi
  13617. need_version=yes
  13618. ;;
  13619. sysv4 | sysv4.3*)
  13620. version_type=linux
  13621. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13622. soname_spec='${libname}${release}${shared_ext}$major'
  13623. shlibpath_var=LD_LIBRARY_PATH
  13624. case $host_vendor in
  13625. sni)
  13626. shlibpath_overrides_runpath=no
  13627. need_lib_prefix=no
  13628. runpath_var=LD_RUN_PATH
  13629. ;;
  13630. siemens)
  13631. need_lib_prefix=no
  13632. ;;
  13633. motorola)
  13634. need_lib_prefix=no
  13635. need_version=no
  13636. shlibpath_overrides_runpath=no
  13637. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13638. ;;
  13639. esac
  13640. ;;
  13641. sysv4*MP*)
  13642. if test -d /usr/nec ;then
  13643. version_type=linux
  13644. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13645. soname_spec='$libname${shared_ext}.$major'
  13646. shlibpath_var=LD_LIBRARY_PATH
  13647. fi
  13648. ;;
  13649. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13650. version_type=freebsd-elf
  13651. need_lib_prefix=no
  13652. need_version=no
  13653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13654. soname_spec='${libname}${release}${shared_ext}$major'
  13655. shlibpath_var=LD_LIBRARY_PATH
  13656. shlibpath_overrides_runpath=yes
  13657. hardcode_into_libs=yes
  13658. if test "$with_gnu_ld" = yes; then
  13659. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13660. else
  13661. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13662. case $host_os in
  13663. sco3.2v5*)
  13664. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13665. ;;
  13666. esac
  13667. fi
  13668. sys_lib_dlsearch_path_spec='/usr/lib'
  13669. ;;
  13670. tpf*)
  13671. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13672. version_type=linux
  13673. need_lib_prefix=no
  13674. need_version=no
  13675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13676. shlibpath_var=LD_LIBRARY_PATH
  13677. shlibpath_overrides_runpath=no
  13678. hardcode_into_libs=yes
  13679. ;;
  13680. uts4*)
  13681. version_type=linux
  13682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13683. soname_spec='${libname}${release}${shared_ext}$major'
  13684. shlibpath_var=LD_LIBRARY_PATH
  13685. ;;
  13686. *)
  13687. dynamic_linker=no
  13688. ;;
  13689. esac
  13690. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13691. $as_echo "$dynamic_linker" >&6; }
  13692. test "$dynamic_linker" = no && can_build_shared=no
  13693. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13694. if test "$GCC" = yes; then
  13695. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13696. fi
  13697. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13698. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13699. fi
  13700. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13701. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13702. fi
  13703. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13704. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13705. hardcode_action_CXX=
  13706. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13707. test -n "$runpath_var_CXX" ||
  13708. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13709. # We can hardcode non-existent directories.
  13710. if test "$hardcode_direct_CXX" != no &&
  13711. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13712. # have to relink, otherwise we might link with an installed library
  13713. # when we should be linking with a yet-to-be-installed one
  13714. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13715. test "$hardcode_minus_L_CXX" != no; then
  13716. # Linking always hardcodes the temporary library directory.
  13717. hardcode_action_CXX=relink
  13718. else
  13719. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13720. hardcode_action_CXX=immediate
  13721. fi
  13722. else
  13723. # We cannot hardcode anything, or else we can only hardcode existing
  13724. # directories.
  13725. hardcode_action_CXX=unsupported
  13726. fi
  13727. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13728. $as_echo "$hardcode_action_CXX" >&6; }
  13729. if test "$hardcode_action_CXX" = relink ||
  13730. test "$inherit_rpath_CXX" = yes; then
  13731. # Fast installation is not supported
  13732. enable_fast_install=no
  13733. elif test "$shlibpath_overrides_runpath" = yes ||
  13734. test "$enable_shared" = no; then
  13735. # Fast installation is not necessary
  13736. enable_fast_install=needless
  13737. fi
  13738. fi # test -n "$compiler"
  13739. CC=$lt_save_CC
  13740. LDCXX=$LD
  13741. LD=$lt_save_LD
  13742. GCC=$lt_save_GCC
  13743. with_gnu_ld=$lt_save_with_gnu_ld
  13744. lt_cv_path_LDCXX=$lt_cv_path_LD
  13745. lt_cv_path_LD=$lt_save_path_LD
  13746. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13747. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13748. fi # test "$_lt_caught_CXX_error" != yes
  13749. ac_ext=c
  13750. ac_cpp='$CPP $CPPFLAGS'
  13751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13754. ac_ext=c
  13755. ac_cpp='$CPP $CPPFLAGS'
  13756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13759. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  13760. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  13761. # On Suns, sometimes $CPP names a directory.
  13762. if test -n "$CPP" && test -d "$CPP"; then
  13763. CPP=
  13764. fi
  13765. if test -z "$CPP"; then
  13766. if test "${ac_cv_prog_CPP+set}" = set; then
  13767. $as_echo_n "(cached) " >&6
  13768. else
  13769. # Double quotes because CPP needs to be expanded
  13770. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  13771. do
  13772. ac_preproc_ok=false
  13773. for ac_c_preproc_warn_flag in '' yes
  13774. do
  13775. # Use a header file that comes with gcc, so configuring glibc
  13776. # with a fresh cross-compiler works.
  13777. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13778. # <limits.h> exists even on freestanding compilers.
  13779. # On the NeXT, cc -E runs the code through the compiler's parser,
  13780. # not just through cpp. "Syntax error" is here to catch this case.
  13781. cat >conftest.$ac_ext <<_ACEOF
  13782. /* confdefs.h. */
  13783. _ACEOF
  13784. cat confdefs.h >>conftest.$ac_ext
  13785. cat >>conftest.$ac_ext <<_ACEOF
  13786. /* end confdefs.h. */
  13787. #ifdef __STDC__
  13788. # include <limits.h>
  13789. #else
  13790. # include <assert.h>
  13791. #endif
  13792. Syntax error
  13793. _ACEOF
  13794. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13795. case "(($ac_try" in
  13796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13797. *) ac_try_echo=$ac_try;;
  13798. esac
  13799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13800. $as_echo "$ac_try_echo") >&5
  13801. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13802. ac_status=$?
  13803. grep -v '^ *+' conftest.er1 >conftest.err
  13804. rm -f conftest.er1
  13805. cat conftest.err >&5
  13806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13807. (exit $ac_status); } >/dev/null && {
  13808. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13809. test ! -s conftest.err
  13810. }; then
  13811. :
  13812. else
  13813. $as_echo "$as_me: failed program was:" >&5
  13814. sed 's/^/| /' conftest.$ac_ext >&5
  13815. # Broken: fails on valid input.
  13816. continue
  13817. fi
  13818. rm -f conftest.err conftest.$ac_ext
  13819. # OK, works on sane cases. Now check whether nonexistent headers
  13820. # can be detected and how.
  13821. cat >conftest.$ac_ext <<_ACEOF
  13822. /* confdefs.h. */
  13823. _ACEOF
  13824. cat confdefs.h >>conftest.$ac_ext
  13825. cat >>conftest.$ac_ext <<_ACEOF
  13826. /* end confdefs.h. */
  13827. #include <ac_nonexistent.h>
  13828. _ACEOF
  13829. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13830. case "(($ac_try" in
  13831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13832. *) ac_try_echo=$ac_try;;
  13833. esac
  13834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13835. $as_echo "$ac_try_echo") >&5
  13836. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13837. ac_status=$?
  13838. grep -v '^ *+' conftest.er1 >conftest.err
  13839. rm -f conftest.er1
  13840. cat conftest.err >&5
  13841. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13842. (exit $ac_status); } >/dev/null && {
  13843. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13844. test ! -s conftest.err
  13845. }; then
  13846. # Broken: success on invalid input.
  13847. continue
  13848. else
  13849. $as_echo "$as_me: failed program was:" >&5
  13850. sed 's/^/| /' conftest.$ac_ext >&5
  13851. # Passes both tests.
  13852. ac_preproc_ok=:
  13853. break
  13854. fi
  13855. rm -f conftest.err conftest.$ac_ext
  13856. done
  13857. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13858. rm -f conftest.err conftest.$ac_ext
  13859. if $ac_preproc_ok; then
  13860. break
  13861. fi
  13862. done
  13863. ac_cv_prog_CPP=$CPP
  13864. fi
  13865. CPP=$ac_cv_prog_CPP
  13866. else
  13867. ac_cv_prog_CPP=$CPP
  13868. fi
  13869. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  13870. $as_echo "$CPP" >&6; }
  13871. ac_preproc_ok=false
  13872. for ac_c_preproc_warn_flag in '' yes
  13873. do
  13874. # Use a header file that comes with gcc, so configuring glibc
  13875. # with a fresh cross-compiler works.
  13876. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13877. # <limits.h> exists even on freestanding compilers.
  13878. # On the NeXT, cc -E runs the code through the compiler's parser,
  13879. # not just through cpp. "Syntax error" is here to catch this case.
  13880. cat >conftest.$ac_ext <<_ACEOF
  13881. /* confdefs.h. */
  13882. _ACEOF
  13883. cat confdefs.h >>conftest.$ac_ext
  13884. cat >>conftest.$ac_ext <<_ACEOF
  13885. /* end confdefs.h. */
  13886. #ifdef __STDC__
  13887. # include <limits.h>
  13888. #else
  13889. # include <assert.h>
  13890. #endif
  13891. Syntax error
  13892. _ACEOF
  13893. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13894. case "(($ac_try" in
  13895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13896. *) ac_try_echo=$ac_try;;
  13897. esac
  13898. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13899. $as_echo "$ac_try_echo") >&5
  13900. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13901. ac_status=$?
  13902. grep -v '^ *+' conftest.er1 >conftest.err
  13903. rm -f conftest.er1
  13904. cat conftest.err >&5
  13905. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13906. (exit $ac_status); } >/dev/null && {
  13907. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13908. test ! -s conftest.err
  13909. }; then
  13910. :
  13911. else
  13912. $as_echo "$as_me: failed program was:" >&5
  13913. sed 's/^/| /' conftest.$ac_ext >&5
  13914. # Broken: fails on valid input.
  13915. continue
  13916. fi
  13917. rm -f conftest.err conftest.$ac_ext
  13918. # OK, works on sane cases. Now check whether nonexistent headers
  13919. # can be detected and how.
  13920. cat >conftest.$ac_ext <<_ACEOF
  13921. /* confdefs.h. */
  13922. _ACEOF
  13923. cat confdefs.h >>conftest.$ac_ext
  13924. cat >>conftest.$ac_ext <<_ACEOF
  13925. /* end confdefs.h. */
  13926. #include <ac_nonexistent.h>
  13927. _ACEOF
  13928. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13929. case "(($ac_try" in
  13930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13931. *) ac_try_echo=$ac_try;;
  13932. esac
  13933. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13934. $as_echo "$ac_try_echo") >&5
  13935. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13936. ac_status=$?
  13937. grep -v '^ *+' conftest.er1 >conftest.err
  13938. rm -f conftest.er1
  13939. cat conftest.err >&5
  13940. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13941. (exit $ac_status); } >/dev/null && {
  13942. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13943. test ! -s conftest.err
  13944. }; then
  13945. # Broken: success on invalid input.
  13946. continue
  13947. else
  13948. $as_echo "$as_me: failed program was:" >&5
  13949. sed 's/^/| /' conftest.$ac_ext >&5
  13950. # Passes both tests.
  13951. ac_preproc_ok=:
  13952. break
  13953. fi
  13954. rm -f conftest.err conftest.$ac_ext
  13955. done
  13956. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13957. rm -f conftest.err conftest.$ac_ext
  13958. if $ac_preproc_ok; then
  13959. :
  13960. else
  13961. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  13962. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13963. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  13964. See \`config.log' for more details." >&5
  13965. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  13966. See \`config.log' for more details." >&2;}
  13967. { (exit 1); exit 1; }; }; }
  13968. fi
  13969. ac_ext=c
  13970. ac_cpp='$CPP $CPPFLAGS'
  13971. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13972. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13973. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13974. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  13975. $as_echo_n "checking whether ln -s works... " >&6; }
  13976. LN_S=$as_ln_s
  13977. if test "$LN_S" = "ln -s"; then
  13978. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13979. $as_echo "yes" >&6; }
  13980. else
  13981. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  13982. $as_echo "no, using $LN_S" >&6; }
  13983. fi
  13984. for ac_prog in gawk mawk nawk awk
  13985. do
  13986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13987. set dummy $ac_prog; ac_word=$2
  13988. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13989. $as_echo_n "checking for $ac_word... " >&6; }
  13990. if test "${ac_cv_prog_AWK+set}" = set; then
  13991. $as_echo_n "(cached) " >&6
  13992. else
  13993. if test -n "$AWK"; then
  13994. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  13995. else
  13996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13997. for as_dir in $PATH
  13998. do
  13999. IFS=$as_save_IFS
  14000. test -z "$as_dir" && as_dir=.
  14001. for ac_exec_ext in '' $ac_executable_extensions; do
  14002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14003. ac_cv_prog_AWK="$ac_prog"
  14004. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14005. break 2
  14006. fi
  14007. done
  14008. done
  14009. IFS=$as_save_IFS
  14010. fi
  14011. fi
  14012. AWK=$ac_cv_prog_AWK
  14013. if test -n "$AWK"; then
  14014. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  14015. $as_echo "$AWK" >&6; }
  14016. else
  14017. { $as_echo "$as_me:$LINENO: result: no" >&5
  14018. $as_echo "no" >&6; }
  14019. fi
  14020. test -n "$AWK" && break
  14021. done
  14022. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  14023. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  14024. if test "${ac_cv_path_SED+set}" = set; then
  14025. $as_echo_n "(cached) " >&6
  14026. else
  14027. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  14028. for ac_i in 1 2 3 4 5 6 7; do
  14029. ac_script="$ac_script$as_nl$ac_script"
  14030. done
  14031. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  14032. $as_unset ac_script || ac_script=
  14033. if test -z "$SED"; then
  14034. ac_path_SED_found=false
  14035. # Loop through the user's path and test for each of PROGNAME-LIST
  14036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14037. for as_dir in $PATH
  14038. do
  14039. IFS=$as_save_IFS
  14040. test -z "$as_dir" && as_dir=.
  14041. for ac_prog in sed gsed; do
  14042. for ac_exec_ext in '' $ac_executable_extensions; do
  14043. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  14044. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  14045. # Check for GNU ac_path_SED and select it if it is found.
  14046. # Check for GNU $ac_path_SED
  14047. case `"$ac_path_SED" --version 2>&1` in
  14048. *GNU*)
  14049. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  14050. *)
  14051. ac_count=0
  14052. $as_echo_n 0123456789 >"conftest.in"
  14053. while :
  14054. do
  14055. cat "conftest.in" "conftest.in" >"conftest.tmp"
  14056. mv "conftest.tmp" "conftest.in"
  14057. cp "conftest.in" "conftest.nl"
  14058. $as_echo '' >> "conftest.nl"
  14059. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14060. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14061. ac_count=`expr $ac_count + 1`
  14062. if test $ac_count -gt ${ac_path_SED_max-0}; then
  14063. # Best one so far, save it but keep looking for a better one
  14064. ac_cv_path_SED="$ac_path_SED"
  14065. ac_path_SED_max=$ac_count
  14066. fi
  14067. # 10*(2^10) chars as input seems more than enough
  14068. test $ac_count -gt 10 && break
  14069. done
  14070. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14071. esac
  14072. $ac_path_SED_found && break 3
  14073. done
  14074. done
  14075. done
  14076. IFS=$as_save_IFS
  14077. if test -z "$ac_cv_path_SED"; then
  14078. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  14079. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  14080. { (exit 1); exit 1; }; }
  14081. fi
  14082. else
  14083. ac_cv_path_SED=$SED
  14084. fi
  14085. fi
  14086. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  14087. $as_echo "$ac_cv_path_SED" >&6; }
  14088. SED="$ac_cv_path_SED"
  14089. rm -f conftest.sed
  14090. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  14091. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  14092. set x ${MAKE-make}
  14093. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  14094. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  14095. $as_echo_n "(cached) " >&6
  14096. else
  14097. cat >conftest.make <<\_ACEOF
  14098. SHELL = /bin/sh
  14099. all:
  14100. @echo '@@@%%%=$(MAKE)=@@@%%%'
  14101. _ACEOF
  14102. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  14103. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  14104. *@@@%%%=?*=@@@%%%*)
  14105. eval ac_cv_prog_make_${ac_make}_set=yes;;
  14106. *)
  14107. eval ac_cv_prog_make_${ac_make}_set=no;;
  14108. esac
  14109. rm -f conftest.make
  14110. fi
  14111. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  14112. { $as_echo "$as_me:$LINENO: result: yes" >&5
  14113. $as_echo "yes" >&6; }
  14114. SET_MAKE=
  14115. else
  14116. { $as_echo "$as_me:$LINENO: result: no" >&5
  14117. $as_echo "no" >&6; }
  14118. SET_MAKE="MAKE=${MAKE-make}"
  14119. fi
  14120. # Extract the first word of "printf", so it can be a program name with args.
  14121. set dummy printf; ac_word=$2
  14122. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14123. $as_echo_n "checking for $ac_word... " >&6; }
  14124. if test "${ac_cv_path_PRINTF+set}" = set; then
  14125. $as_echo_n "(cached) " >&6
  14126. else
  14127. case $PRINTF in
  14128. [\\/]* | ?:[\\/]*)
  14129. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  14130. ;;
  14131. *)
  14132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14133. for as_dir in $PATH
  14134. do
  14135. IFS=$as_save_IFS
  14136. test -z "$as_dir" && as_dir=.
  14137. for ac_exec_ext in '' $ac_executable_extensions; do
  14138. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14139. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  14140. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14141. break 2
  14142. fi
  14143. done
  14144. done
  14145. IFS=$as_save_IFS
  14146. ;;
  14147. esac
  14148. fi
  14149. PRINTF=$ac_cv_path_PRINTF
  14150. if test -n "$PRINTF"; then
  14151. { $as_echo "$as_me:$LINENO: result: $PRINTF" >&5
  14152. $as_echo "$PRINTF" >&6; }
  14153. else
  14154. { $as_echo "$as_me:$LINENO: result: no" >&5
  14155. $as_echo "no" >&6; }
  14156. fi
  14157. # Extract the first word of "echo", so it can be a program name with args.
  14158. set dummy echo; ac_word=$2
  14159. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14160. $as_echo_n "checking for $ac_word... " >&6; }
  14161. if test "${ac_cv_path_ECHO+set}" = set; then
  14162. $as_echo_n "(cached) " >&6
  14163. else
  14164. case $ECHO in
  14165. [\\/]* | ?:[\\/]*)
  14166. ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
  14167. ;;
  14168. *)
  14169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14170. for as_dir in $PATH
  14171. do
  14172. IFS=$as_save_IFS
  14173. test -z "$as_dir" && as_dir=.
  14174. for ac_exec_ext in '' $ac_executable_extensions; do
  14175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14176. ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
  14177. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14178. break 2
  14179. fi
  14180. done
  14181. done
  14182. IFS=$as_save_IFS
  14183. ;;
  14184. esac
  14185. fi
  14186. ECHO=$ac_cv_path_ECHO
  14187. if test -n "$ECHO"; then
  14188. { $as_echo "$as_me:$LINENO: result: $ECHO" >&5
  14189. $as_echo "$ECHO" >&6; }
  14190. else
  14191. { $as_echo "$as_me:$LINENO: result: no" >&5
  14192. $as_echo "no" >&6; }
  14193. fi
  14194. # Extract the first word of "cut", so it can be a program name with args.
  14195. set dummy cut; ac_word=$2
  14196. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14197. $as_echo_n "checking for $ac_word... " >&6; }
  14198. if test "${ac_cv_path_CUT+set}" = set; then
  14199. $as_echo_n "(cached) " >&6
  14200. else
  14201. case $CUT in
  14202. [\\/]* | ?:[\\/]*)
  14203. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  14204. ;;
  14205. *)
  14206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14207. for as_dir in $PATH
  14208. do
  14209. IFS=$as_save_IFS
  14210. test -z "$as_dir" && as_dir=.
  14211. for ac_exec_ext in '' $ac_executable_extensions; do
  14212. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14213. ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
  14214. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14215. break 2
  14216. fi
  14217. done
  14218. done
  14219. IFS=$as_save_IFS
  14220. ;;
  14221. esac
  14222. fi
  14223. CUT=$ac_cv_path_CUT
  14224. if test -n "$CUT"; then
  14225. { $as_echo "$as_me:$LINENO: result: $CUT" >&5
  14226. $as_echo "$CUT" >&6; }
  14227. else
  14228. { $as_echo "$as_me:$LINENO: result: no" >&5
  14229. $as_echo "no" >&6; }
  14230. fi
  14231. # Extract the first word of "autogen", so it can be a program name with args.
  14232. set dummy autogen; ac_word=$2
  14233. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14234. $as_echo_n "checking for $ac_word... " >&6; }
  14235. if test "${ac_cv_path_AUTOGEN+set}" = set; then
  14236. $as_echo_n "(cached) " >&6
  14237. else
  14238. case $AUTOGEN in
  14239. [\\/]* | ?:[\\/]*)
  14240. ac_cv_path_AUTOGEN="$AUTOGEN" # Let the user override the test with a path.
  14241. ;;
  14242. *)
  14243. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14244. for as_dir in $PATH
  14245. do
  14246. IFS=$as_save_IFS
  14247. test -z "$as_dir" && as_dir=.
  14248. for ac_exec_ext in '' $ac_executable_extensions; do
  14249. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14250. ac_cv_path_AUTOGEN="$as_dir/$ac_word$ac_exec_ext"
  14251. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14252. break 2
  14253. fi
  14254. done
  14255. done
  14256. IFS=$as_save_IFS
  14257. ;;
  14258. esac
  14259. fi
  14260. AUTOGEN=$ac_cv_path_AUTOGEN
  14261. if test -n "$AUTOGEN"; then
  14262. { $as_echo "$as_me:$LINENO: result: $AUTOGEN" >&5
  14263. $as_echo "$AUTOGEN" >&6; }
  14264. else
  14265. { $as_echo "$as_me:$LINENO: result: no" >&5
  14266. $as_echo "no" >&6; }
  14267. fi
  14268. # Extract the first word of "groff", so it can be a program name with args.
  14269. set dummy groff; ac_word=$2
  14270. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14271. $as_echo_n "checking for $ac_word... " >&6; }
  14272. if test "${ac_cv_path_GROFF+set}" = set; then
  14273. $as_echo_n "(cached) " >&6
  14274. else
  14275. case $GROFF in
  14276. [\\/]* | ?:[\\/]*)
  14277. ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
  14278. ;;
  14279. *)
  14280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14281. for as_dir in $PATH
  14282. do
  14283. IFS=$as_save_IFS
  14284. test -z "$as_dir" && as_dir=.
  14285. for ac_exec_ext in '' $ac_executable_extensions; do
  14286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14287. ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
  14288. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14289. break 2
  14290. fi
  14291. done
  14292. done
  14293. IFS=$as_save_IFS
  14294. ;;
  14295. esac
  14296. fi
  14297. GROFF=$ac_cv_path_GROFF
  14298. if test -n "$GROFF"; then
  14299. { $as_echo "$as_me:$LINENO: result: $GROFF" >&5
  14300. $as_echo "$GROFF" >&6; }
  14301. else
  14302. { $as_echo "$as_me:$LINENO: result: no" >&5
  14303. $as_echo "no" >&6; }
  14304. fi
  14305. AUTOGEN_VERSION=unknown
  14306. if test -n "${AUTOGEN}" ; then
  14307. { $as_echo "$as_me:$LINENO: checking for autogen version >= 5.9.x" >&5
  14308. $as_echo_n "checking for autogen version >= 5.9.x... " >&6; }
  14309. ${AUTOGEN} -v >autogen.version
  14310. AUTOGEN_VERSION=`cat autogen.version | ${SED} 's|.*\([0-9\.]\{5,\}\).*|\1|'`
  14311. AUTOGEN_MAJOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 1`
  14312. AUTOGEN_MINOR=`echo ${AUTOGEN_VERSION} | ${CUT} -d '.' -f 2`
  14313. if ( test ${AUTOGEN_MAJOR} -eq 5 && test ${AUTOGEN_MINOR} -lt 9 ) || test ${AUTOGEN_MAJOR} -lt 5 ; then
  14314. { $as_echo "$as_me:$LINENO: result: no" >&5
  14315. $as_echo "no" >&6; }
  14316. { $as_echo "$as_me:$LINENO: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&5
  14317. $as_echo "$as_me: WARNING: ${AUTOGEN} is too old (${AUTOGEN_VERSION}) for building from SVN. Please upgrade to 5.9.x)" >&2;}
  14318. else
  14319. { $as_echo "$as_me:$LINENO: result: yes" >&5
  14320. $as_echo "yes" >&6; }
  14321. fi
  14322. rm -f autogen.version
  14323. if test ! -f src/tcpreplay_opts.c && test "x$enable_local_libopts" = "xyes" ; then
  14324. if test $MAINTAINER_AUTOGEN_VERSION != $AUTOGEN_VERSION ; then
  14325. { { $as_echo "$as_me:$LINENO: error: Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" >&5
  14326. $as_echo "$as_me: error: Your version of autogen ($AUTOGEN_VERSION) != libopts tear off ($MAINTAINER_AUTOGEN_VERSION) Either install the correct version or specify --disable-local-libopts" >&2;}
  14327. { (exit 1); exit 1; }; }
  14328. fi
  14329. fi
  14330. else
  14331. if test ! -f src/tcpreplay_opts.c ; then
  14332. { { $as_echo "$as_me:$LINENO: error: Please install GNU autogen >= 5.9.x if you are building from SVN" >&5
  14333. $as_echo "$as_me: error: Please install GNU autogen >= 5.9.x if you are building from SVN" >&2;}
  14334. { (exit 1); exit 1; }; }
  14335. fi
  14336. fi
  14337. cat >>confdefs.h <<\_ACEOF
  14338. #define AUTOGEN_VERSION ${AUTOGEN_VERSION}
  14339. _ACEOF
  14340. if test "x$enable_local_libopts" = "xyes" ; then
  14341. { $as_echo "$as_me:$LINENO: Using included libopts tearoff" >&5
  14342. $as_echo "$as_me: Using included libopts tearoff" >&6;}
  14343. else
  14344. { $as_echo "$as_me:$LINENO: Using system libopts" >&5
  14345. $as_echo "$as_me: Using system libopts" >&6;}
  14346. fi
  14347. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  14348. $as_echo_n "checking for ANSI C header files... " >&6; }
  14349. if test "${ac_cv_header_stdc+set}" = set; then
  14350. $as_echo_n "(cached) " >&6
  14351. else
  14352. cat >conftest.$ac_ext <<_ACEOF
  14353. /* confdefs.h. */
  14354. _ACEOF
  14355. cat confdefs.h >>conftest.$ac_ext
  14356. cat >>conftest.$ac_ext <<_ACEOF
  14357. /* end confdefs.h. */
  14358. #include <stdlib.h>
  14359. #include <stdarg.h>
  14360. #include <string.h>
  14361. #include <float.h>
  14362. int
  14363. main ()
  14364. {
  14365. ;
  14366. return 0;
  14367. }
  14368. _ACEOF
  14369. rm -f conftest.$ac_objext
  14370. if { (ac_try="$ac_compile"
  14371. case "(($ac_try" in
  14372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14373. *) ac_try_echo=$ac_try;;
  14374. esac
  14375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14376. $as_echo "$ac_try_echo") >&5
  14377. (eval "$ac_compile") 2>conftest.er1
  14378. ac_status=$?
  14379. grep -v '^ *+' conftest.er1 >conftest.err
  14380. rm -f conftest.er1
  14381. cat conftest.err >&5
  14382. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14383. (exit $ac_status); } && {
  14384. test -z "$ac_c_werror_flag" ||
  14385. test ! -s conftest.err
  14386. } && test -s conftest.$ac_objext; then
  14387. ac_cv_header_stdc=yes
  14388. else
  14389. $as_echo "$as_me: failed program was:" >&5
  14390. sed 's/^/| /' conftest.$ac_ext >&5
  14391. ac_cv_header_stdc=no
  14392. fi
  14393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14394. if test $ac_cv_header_stdc = yes; then
  14395. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14396. cat >conftest.$ac_ext <<_ACEOF
  14397. /* confdefs.h. */
  14398. _ACEOF
  14399. cat confdefs.h >>conftest.$ac_ext
  14400. cat >>conftest.$ac_ext <<_ACEOF
  14401. /* end confdefs.h. */
  14402. #include <string.h>
  14403. _ACEOF
  14404. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14405. $EGREP "memchr" >/dev/null 2>&1; then
  14406. :
  14407. else
  14408. ac_cv_header_stdc=no
  14409. fi
  14410. rm -f conftest*
  14411. fi
  14412. if test $ac_cv_header_stdc = yes; then
  14413. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14414. cat >conftest.$ac_ext <<_ACEOF
  14415. /* confdefs.h. */
  14416. _ACEOF
  14417. cat confdefs.h >>conftest.$ac_ext
  14418. cat >>conftest.$ac_ext <<_ACEOF
  14419. /* end confdefs.h. */
  14420. #include <stdlib.h>
  14421. _ACEOF
  14422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14423. $EGREP "free" >/dev/null 2>&1; then
  14424. :
  14425. else
  14426. ac_cv_header_stdc=no
  14427. fi
  14428. rm -f conftest*
  14429. fi
  14430. if test $ac_cv_header_stdc = yes; then
  14431. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14432. if test "$cross_compiling" = yes; then
  14433. :
  14434. else
  14435. cat >conftest.$ac_ext <<_ACEOF
  14436. /* confdefs.h. */
  14437. _ACEOF
  14438. cat confdefs.h >>conftest.$ac_ext
  14439. cat >>conftest.$ac_ext <<_ACEOF
  14440. /* end confdefs.h. */
  14441. #include <ctype.h>
  14442. #include <stdlib.h>
  14443. #if ((' ' & 0x0FF) == 0x020)
  14444. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14445. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14446. #else
  14447. # define ISLOWER(c) \
  14448. (('a' <= (c) && (c) <= 'i') \
  14449. || ('j' <= (c) && (c) <= 'r') \
  14450. || ('s' <= (c) && (c) <= 'z'))
  14451. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14452. #endif
  14453. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14454. int
  14455. main ()
  14456. {
  14457. int i;
  14458. for (i = 0; i < 256; i++)
  14459. if (XOR (islower (i), ISLOWER (i))
  14460. || toupper (i) != TOUPPER (i))
  14461. return 2;
  14462. return 0;
  14463. }
  14464. _ACEOF
  14465. rm -f conftest$ac_exeext
  14466. if { (ac_try="$ac_link"
  14467. case "(($ac_try" in
  14468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14469. *) ac_try_echo=$ac_try;;
  14470. esac
  14471. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14472. $as_echo "$ac_try_echo") >&5
  14473. (eval "$ac_link") 2>&5
  14474. ac_status=$?
  14475. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14476. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14477. { (case "(($ac_try" in
  14478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14479. *) ac_try_echo=$ac_try;;
  14480. esac
  14481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14482. $as_echo "$ac_try_echo") >&5
  14483. (eval "$ac_try") 2>&5
  14484. ac_status=$?
  14485. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14486. (exit $ac_status); }; }; then
  14487. :
  14488. else
  14489. $as_echo "$as_me: program exited with status $ac_status" >&5
  14490. $as_echo "$as_me: failed program was:" >&5
  14491. sed 's/^/| /' conftest.$ac_ext >&5
  14492. ( exit $ac_status )
  14493. ac_cv_header_stdc=no
  14494. fi
  14495. rm -rf conftest.dSYM
  14496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14497. fi
  14498. fi
  14499. fi
  14500. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  14501. $as_echo "$ac_cv_header_stdc" >&6; }
  14502. if test $ac_cv_header_stdc = yes; then
  14503. cat >>confdefs.h <<\_ACEOF
  14504. #define STDC_HEADERS 1
  14505. _ACEOF
  14506. fi
  14507. { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
  14508. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  14509. if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
  14510. $as_echo_n "(cached) " >&6
  14511. else
  14512. cat >conftest.$ac_ext <<_ACEOF
  14513. /* confdefs.h. */
  14514. _ACEOF
  14515. cat confdefs.h >>conftest.$ac_ext
  14516. cat >>conftest.$ac_ext <<_ACEOF
  14517. /* end confdefs.h. */
  14518. #include <sys/types.h>
  14519. int
  14520. main ()
  14521. {
  14522. return makedev(0, 0);
  14523. ;
  14524. return 0;
  14525. }
  14526. _ACEOF
  14527. rm -f conftest.$ac_objext conftest$ac_exeext
  14528. if { (ac_try="$ac_link"
  14529. case "(($ac_try" in
  14530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14531. *) ac_try_echo=$ac_try;;
  14532. esac
  14533. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14534. $as_echo "$ac_try_echo") >&5
  14535. (eval "$ac_link") 2>conftest.er1
  14536. ac_status=$?
  14537. grep -v '^ *+' conftest.er1 >conftest.err
  14538. rm -f conftest.er1
  14539. cat conftest.err >&5
  14540. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14541. (exit $ac_status); } && {
  14542. test -z "$ac_c_werror_flag" ||
  14543. test ! -s conftest.err
  14544. } && test -s conftest$ac_exeext && {
  14545. test "$cross_compiling" = yes ||
  14546. $as_test_x conftest$ac_exeext
  14547. }; then
  14548. ac_cv_header_sys_types_h_makedev=yes
  14549. else
  14550. $as_echo "$as_me: failed program was:" >&5
  14551. sed 's/^/| /' conftest.$ac_ext >&5
  14552. ac_cv_header_sys_types_h_makedev=no
  14553. fi
  14554. rm -rf conftest.dSYM
  14555. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14556. conftest$ac_exeext conftest.$ac_ext
  14557. fi
  14558. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
  14559. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  14560. if test $ac_cv_header_sys_types_h_makedev = no; then
  14561. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  14562. { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  14563. $as_echo_n "checking for sys/mkdev.h... " >&6; }
  14564. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  14565. $as_echo_n "(cached) " >&6
  14566. fi
  14567. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  14568. $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  14569. else
  14570. # Is the header compilable?
  14571. { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
  14572. $as_echo_n "checking sys/mkdev.h usability... " >&6; }
  14573. cat >conftest.$ac_ext <<_ACEOF
  14574. /* confdefs.h. */
  14575. _ACEOF
  14576. cat confdefs.h >>conftest.$ac_ext
  14577. cat >>conftest.$ac_ext <<_ACEOF
  14578. /* end confdefs.h. */
  14579. $ac_includes_default
  14580. #include <sys/mkdev.h>
  14581. _ACEOF
  14582. rm -f conftest.$ac_objext
  14583. if { (ac_try="$ac_compile"
  14584. case "(($ac_try" in
  14585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14586. *) ac_try_echo=$ac_try;;
  14587. esac
  14588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14589. $as_echo "$ac_try_echo") >&5
  14590. (eval "$ac_compile") 2>conftest.er1
  14591. ac_status=$?
  14592. grep -v '^ *+' conftest.er1 >conftest.err
  14593. rm -f conftest.er1
  14594. cat conftest.err >&5
  14595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14596. (exit $ac_status); } && {
  14597. test -z "$ac_c_werror_flag" ||
  14598. test ! -s conftest.err
  14599. } && test -s conftest.$ac_objext; then
  14600. ac_header_compiler=yes
  14601. else
  14602. $as_echo "$as_me: failed program was:" >&5
  14603. sed 's/^/| /' conftest.$ac_ext >&5
  14604. ac_header_compiler=no
  14605. fi
  14606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14607. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14608. $as_echo "$ac_header_compiler" >&6; }
  14609. # Is the header present?
  14610. { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
  14611. $as_echo_n "checking sys/mkdev.h presence... " >&6; }
  14612. cat >conftest.$ac_ext <<_ACEOF
  14613. /* confdefs.h. */
  14614. _ACEOF
  14615. cat confdefs.h >>conftest.$ac_ext
  14616. cat >>conftest.$ac_ext <<_ACEOF
  14617. /* end confdefs.h. */
  14618. #include <sys/mkdev.h>
  14619. _ACEOF
  14620. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14621. case "(($ac_try" in
  14622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14623. *) ac_try_echo=$ac_try;;
  14624. esac
  14625. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14626. $as_echo "$ac_try_echo") >&5
  14627. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14628. ac_status=$?
  14629. grep -v '^ *+' conftest.er1 >conftest.err
  14630. rm -f conftest.er1
  14631. cat conftest.err >&5
  14632. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14633. (exit $ac_status); } >/dev/null && {
  14634. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14635. test ! -s conftest.err
  14636. }; then
  14637. ac_header_preproc=yes
  14638. else
  14639. $as_echo "$as_me: failed program was:" >&5
  14640. sed 's/^/| /' conftest.$ac_ext >&5
  14641. ac_header_preproc=no
  14642. fi
  14643. rm -f conftest.err conftest.$ac_ext
  14644. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14645. $as_echo "$ac_header_preproc" >&6; }
  14646. # So? What about this header?
  14647. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14648. yes:no: )
  14649. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14650. $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14651. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
  14652. $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
  14653. ac_header_preproc=yes
  14654. ;;
  14655. no:yes:* )
  14656. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
  14657. $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
  14658. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
  14659. $as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
  14660. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
  14661. $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
  14662. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
  14663. $as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14664. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
  14665. $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
  14666. { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
  14667. $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
  14668. ;;
  14669. esac
  14670. { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
  14671. $as_echo_n "checking for sys/mkdev.h... " >&6; }
  14672. if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
  14673. $as_echo_n "(cached) " >&6
  14674. else
  14675. ac_cv_header_sys_mkdev_h=$ac_header_preproc
  14676. fi
  14677. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
  14678. $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
  14679. fi
  14680. if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
  14681. cat >>confdefs.h <<\_ACEOF
  14682. #define MAJOR_IN_MKDEV 1
  14683. _ACEOF
  14684. fi
  14685. if test $ac_cv_header_sys_mkdev_h = no; then
  14686. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  14687. { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  14688. $as_echo_n "checking for sys/sysmacros.h... " >&6; }
  14689. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  14690. $as_echo_n "(cached) " >&6
  14691. fi
  14692. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  14693. $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  14694. else
  14695. # Is the header compilable?
  14696. { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
  14697. $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
  14698. cat >conftest.$ac_ext <<_ACEOF
  14699. /* confdefs.h. */
  14700. _ACEOF
  14701. cat confdefs.h >>conftest.$ac_ext
  14702. cat >>conftest.$ac_ext <<_ACEOF
  14703. /* end confdefs.h. */
  14704. $ac_includes_default
  14705. #include <sys/sysmacros.h>
  14706. _ACEOF
  14707. rm -f conftest.$ac_objext
  14708. if { (ac_try="$ac_compile"
  14709. case "(($ac_try" in
  14710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14711. *) ac_try_echo=$ac_try;;
  14712. esac
  14713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14714. $as_echo "$ac_try_echo") >&5
  14715. (eval "$ac_compile") 2>conftest.er1
  14716. ac_status=$?
  14717. grep -v '^ *+' conftest.er1 >conftest.err
  14718. rm -f conftest.er1
  14719. cat conftest.err >&5
  14720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14721. (exit $ac_status); } && {
  14722. test -z "$ac_c_werror_flag" ||
  14723. test ! -s conftest.err
  14724. } && test -s conftest.$ac_objext; then
  14725. ac_header_compiler=yes
  14726. else
  14727. $as_echo "$as_me: failed program was:" >&5
  14728. sed 's/^/| /' conftest.$ac_ext >&5
  14729. ac_header_compiler=no
  14730. fi
  14731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14732. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14733. $as_echo "$ac_header_compiler" >&6; }
  14734. # Is the header present?
  14735. { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
  14736. $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
  14737. cat >conftest.$ac_ext <<_ACEOF
  14738. /* confdefs.h. */
  14739. _ACEOF
  14740. cat confdefs.h >>conftest.$ac_ext
  14741. cat >>conftest.$ac_ext <<_ACEOF
  14742. /* end confdefs.h. */
  14743. #include <sys/sysmacros.h>
  14744. _ACEOF
  14745. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14746. case "(($ac_try" in
  14747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14748. *) ac_try_echo=$ac_try;;
  14749. esac
  14750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14751. $as_echo "$ac_try_echo") >&5
  14752. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14753. ac_status=$?
  14754. grep -v '^ *+' conftest.er1 >conftest.err
  14755. rm -f conftest.er1
  14756. cat conftest.err >&5
  14757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14758. (exit $ac_status); } >/dev/null && {
  14759. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14760. test ! -s conftest.err
  14761. }; then
  14762. ac_header_preproc=yes
  14763. else
  14764. $as_echo "$as_me: failed program was:" >&5
  14765. sed 's/^/| /' conftest.$ac_ext >&5
  14766. ac_header_preproc=no
  14767. fi
  14768. rm -f conftest.err conftest.$ac_ext
  14769. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14770. $as_echo "$ac_header_preproc" >&6; }
  14771. # So? What about this header?
  14772. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14773. yes:no: )
  14774. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14775. $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14776. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
  14777. $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
  14778. ac_header_preproc=yes
  14779. ;;
  14780. no:yes:* )
  14781. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
  14782. $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
  14783. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
  14784. $as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
  14785. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
  14786. $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
  14787. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
  14788. $as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14789. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
  14790. $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
  14791. { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
  14792. $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
  14793. ;;
  14794. esac
  14795. { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
  14796. $as_echo_n "checking for sys/sysmacros.h... " >&6; }
  14797. if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
  14798. $as_echo_n "(cached) " >&6
  14799. else
  14800. ac_cv_header_sys_sysmacros_h=$ac_header_preproc
  14801. fi
  14802. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
  14803. $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
  14804. fi
  14805. if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
  14806. cat >>confdefs.h <<\_ACEOF
  14807. #define MAJOR_IN_SYSMACROS 1
  14808. _ACEOF
  14809. fi
  14810. fi
  14811. fi
  14812. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  14813. $as_echo_n "checking for size_t... " >&6; }
  14814. if test "${ac_cv_type_size_t+set}" = set; then
  14815. $as_echo_n "(cached) " >&6
  14816. else
  14817. ac_cv_type_size_t=no
  14818. cat >conftest.$ac_ext <<_ACEOF
  14819. /* confdefs.h. */
  14820. _ACEOF
  14821. cat confdefs.h >>conftest.$ac_ext
  14822. cat >>conftest.$ac_ext <<_ACEOF
  14823. /* end confdefs.h. */
  14824. $ac_includes_default
  14825. int
  14826. main ()
  14827. {
  14828. if (sizeof (size_t))
  14829. return 0;
  14830. ;
  14831. return 0;
  14832. }
  14833. _ACEOF
  14834. rm -f conftest.$ac_objext
  14835. if { (ac_try="$ac_compile"
  14836. case "(($ac_try" in
  14837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14838. *) ac_try_echo=$ac_try;;
  14839. esac
  14840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14841. $as_echo "$ac_try_echo") >&5
  14842. (eval "$ac_compile") 2>conftest.er1
  14843. ac_status=$?
  14844. grep -v '^ *+' conftest.er1 >conftest.err
  14845. rm -f conftest.er1
  14846. cat conftest.err >&5
  14847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14848. (exit $ac_status); } && {
  14849. test -z "$ac_c_werror_flag" ||
  14850. test ! -s conftest.err
  14851. } && test -s conftest.$ac_objext; then
  14852. cat >conftest.$ac_ext <<_ACEOF
  14853. /* confdefs.h. */
  14854. _ACEOF
  14855. cat confdefs.h >>conftest.$ac_ext
  14856. cat >>conftest.$ac_ext <<_ACEOF
  14857. /* end confdefs.h. */
  14858. $ac_includes_default
  14859. int
  14860. main ()
  14861. {
  14862. if (sizeof ((size_t)))
  14863. return 0;
  14864. ;
  14865. return 0;
  14866. }
  14867. _ACEOF
  14868. rm -f conftest.$ac_objext
  14869. if { (ac_try="$ac_compile"
  14870. case "(($ac_try" in
  14871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14872. *) ac_try_echo=$ac_try;;
  14873. esac
  14874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14875. $as_echo "$ac_try_echo") >&5
  14876. (eval "$ac_compile") 2>conftest.er1
  14877. ac_status=$?
  14878. grep -v '^ *+' conftest.er1 >conftest.err
  14879. rm -f conftest.er1
  14880. cat conftest.err >&5
  14881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14882. (exit $ac_status); } && {
  14883. test -z "$ac_c_werror_flag" ||
  14884. test ! -s conftest.err
  14885. } && test -s conftest.$ac_objext; then
  14886. :
  14887. else
  14888. $as_echo "$as_me: failed program was:" >&5
  14889. sed 's/^/| /' conftest.$ac_ext >&5
  14890. ac_cv_type_size_t=yes
  14891. fi
  14892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14893. else
  14894. $as_echo "$as_me: failed program was:" >&5
  14895. sed 's/^/| /' conftest.$ac_ext >&5
  14896. fi
  14897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14898. fi
  14899. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  14900. $as_echo "$ac_cv_type_size_t" >&6; }
  14901. if test "x$ac_cv_type_size_t" = x""yes; then
  14902. :
  14903. else
  14904. cat >>confdefs.h <<_ACEOF
  14905. #define size_t unsigned int
  14906. _ACEOF
  14907. fi
  14908. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  14909. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14910. if test "${ac_cv_header_time+set}" = set; then
  14911. $as_echo_n "(cached) " >&6
  14912. else
  14913. cat >conftest.$ac_ext <<_ACEOF
  14914. /* confdefs.h. */
  14915. _ACEOF
  14916. cat confdefs.h >>conftest.$ac_ext
  14917. cat >>conftest.$ac_ext <<_ACEOF
  14918. /* end confdefs.h. */
  14919. #include <sys/types.h>
  14920. #include <sys/time.h>
  14921. #include <time.h>
  14922. int
  14923. main ()
  14924. {
  14925. if ((struct tm *) 0)
  14926. return 0;
  14927. ;
  14928. return 0;
  14929. }
  14930. _ACEOF
  14931. rm -f conftest.$ac_objext
  14932. if { (ac_try="$ac_compile"
  14933. case "(($ac_try" in
  14934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14935. *) ac_try_echo=$ac_try;;
  14936. esac
  14937. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14938. $as_echo "$ac_try_echo") >&5
  14939. (eval "$ac_compile") 2>conftest.er1
  14940. ac_status=$?
  14941. grep -v '^ *+' conftest.er1 >conftest.err
  14942. rm -f conftest.er1
  14943. cat conftest.err >&5
  14944. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14945. (exit $ac_status); } && {
  14946. test -z "$ac_c_werror_flag" ||
  14947. test ! -s conftest.err
  14948. } && test -s conftest.$ac_objext; then
  14949. ac_cv_header_time=yes
  14950. else
  14951. $as_echo "$as_me: failed program was:" >&5
  14952. sed 's/^/| /' conftest.$ac_ext >&5
  14953. ac_cv_header_time=no
  14954. fi
  14955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14956. fi
  14957. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  14958. $as_echo "$ac_cv_header_time" >&6; }
  14959. if test $ac_cv_header_time = yes; then
  14960. cat >>confdefs.h <<\_ACEOF
  14961. #define TIME_WITH_SYS_TIME 1
  14962. _ACEOF
  14963. fi
  14964. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  14965. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14966. if test "${ac_cv_c_const+set}" = set; then
  14967. $as_echo_n "(cached) " >&6
  14968. else
  14969. cat >conftest.$ac_ext <<_ACEOF
  14970. /* confdefs.h. */
  14971. _ACEOF
  14972. cat confdefs.h >>conftest.$ac_ext
  14973. cat >>conftest.$ac_ext <<_ACEOF
  14974. /* end confdefs.h. */
  14975. int
  14976. main ()
  14977. {
  14978. /* FIXME: Include the comments suggested by Paul. */
  14979. #ifndef __cplusplus
  14980. /* Ultrix mips cc rejects this. */
  14981. typedef int charset[2];
  14982. const charset cs;
  14983. /* SunOS 4.1.1 cc rejects this. */
  14984. char const *const *pcpcc;
  14985. char **ppc;
  14986. /* NEC SVR4.0.2 mips cc rejects this. */
  14987. struct point {int x, y;};
  14988. static struct point const zero = {0,0};
  14989. /* AIX XL C 1.02.0.0 rejects this.
  14990. It does not let you subtract one const X* pointer from another in
  14991. an arm of an if-expression whose if-part is not a constant
  14992. expression */
  14993. const char *g = "string";
  14994. pcpcc = &g + (g ? g-g : 0);
  14995. /* HPUX 7.0 cc rejects these. */
  14996. ++pcpcc;
  14997. ppc = (char**) pcpcc;
  14998. pcpcc = (char const *const *) ppc;
  14999. { /* SCO 3.2v4 cc rejects this. */
  15000. char *t;
  15001. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15002. *t++ = 0;
  15003. if (s) return 0;
  15004. }
  15005. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15006. int x[] = {25, 17};
  15007. const int *foo = &x[0];
  15008. ++foo;
  15009. }
  15010. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15011. typedef const int *iptr;
  15012. iptr p = 0;
  15013. ++p;
  15014. }
  15015. { /* AIX XL C 1.02.0.0 rejects this saying
  15016. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15017. struct s { int j; const int *ap[3]; };
  15018. struct s *b; b->j = 5;
  15019. }
  15020. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15021. const int foo = 10;
  15022. if (!foo) return 0;
  15023. }
  15024. return !cs[0] && !zero.x;
  15025. #endif
  15026. ;
  15027. return 0;
  15028. }
  15029. _ACEOF
  15030. rm -f conftest.$ac_objext
  15031. if { (ac_try="$ac_compile"
  15032. case "(($ac_try" in
  15033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15034. *) ac_try_echo=$ac_try;;
  15035. esac
  15036. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15037. $as_echo "$ac_try_echo") >&5
  15038. (eval "$ac_compile") 2>conftest.er1
  15039. ac_status=$?
  15040. grep -v '^ *+' conftest.er1 >conftest.err
  15041. rm -f conftest.er1
  15042. cat conftest.err >&5
  15043. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15044. (exit $ac_status); } && {
  15045. test -z "$ac_c_werror_flag" ||
  15046. test ! -s conftest.err
  15047. } && test -s conftest.$ac_objext; then
  15048. ac_cv_c_const=yes
  15049. else
  15050. $as_echo "$as_me: failed program was:" >&5
  15051. sed 's/^/| /' conftest.$ac_ext >&5
  15052. ac_cv_c_const=no
  15053. fi
  15054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15055. fi
  15056. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  15057. $as_echo "$ac_cv_c_const" >&6; }
  15058. if test $ac_cv_c_const = no; then
  15059. cat >>confdefs.h <<\_ACEOF
  15060. #define const /**/
  15061. _ACEOF
  15062. fi
  15063. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  15064. $as_echo_n "checking for inline... " >&6; }
  15065. if test "${ac_cv_c_inline+set}" = set; then
  15066. $as_echo_n "(cached) " >&6
  15067. else
  15068. ac_cv_c_inline=no
  15069. for ac_kw in inline __inline__ __inline; do
  15070. cat >conftest.$ac_ext <<_ACEOF
  15071. /* confdefs.h. */
  15072. _ACEOF
  15073. cat confdefs.h >>conftest.$ac_ext
  15074. cat >>conftest.$ac_ext <<_ACEOF
  15075. /* end confdefs.h. */
  15076. #ifndef __cplusplus
  15077. typedef int foo_t;
  15078. static $ac_kw foo_t static_foo () {return 0; }
  15079. $ac_kw foo_t foo () {return 0; }
  15080. #endif
  15081. _ACEOF
  15082. rm -f conftest.$ac_objext
  15083. if { (ac_try="$ac_compile"
  15084. case "(($ac_try" in
  15085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15086. *) ac_try_echo=$ac_try;;
  15087. esac
  15088. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15089. $as_echo "$ac_try_echo") >&5
  15090. (eval "$ac_compile") 2>conftest.er1
  15091. ac_status=$?
  15092. grep -v '^ *+' conftest.er1 >conftest.err
  15093. rm -f conftest.er1
  15094. cat conftest.err >&5
  15095. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15096. (exit $ac_status); } && {
  15097. test -z "$ac_c_werror_flag" ||
  15098. test ! -s conftest.err
  15099. } && test -s conftest.$ac_objext; then
  15100. ac_cv_c_inline=$ac_kw
  15101. else
  15102. $as_echo "$as_me: failed program was:" >&5
  15103. sed 's/^/| /' conftest.$ac_ext >&5
  15104. fi
  15105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15106. test "$ac_cv_c_inline" != no && break
  15107. done
  15108. fi
  15109. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  15110. $as_echo "$ac_cv_c_inline" >&6; }
  15111. case $ac_cv_c_inline in
  15112. inline | yes) ;;
  15113. *)
  15114. case $ac_cv_c_inline in
  15115. no) ac_val=;;
  15116. *) ac_val=$ac_cv_c_inline;;
  15117. esac
  15118. cat >>confdefs.h <<_ACEOF
  15119. #ifndef __cplusplus
  15120. #define inline $ac_val
  15121. #endif
  15122. _ACEOF
  15123. ;;
  15124. esac
  15125. # Check whether --enable-largefile was given.
  15126. if test "${enable_largefile+set}" = set; then
  15127. enableval=$enable_largefile;
  15128. fi
  15129. if test "$enable_largefile" != no; then
  15130. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  15131. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  15132. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  15133. $as_echo_n "(cached) " >&6
  15134. else
  15135. ac_cv_sys_largefile_CC=no
  15136. if test "$GCC" != yes; then
  15137. ac_save_CC=$CC
  15138. while :; do
  15139. # IRIX 6.2 and later do not support large files by default,
  15140. # so use the C compiler's -n32 option if that helps.
  15141. cat >conftest.$ac_ext <<_ACEOF
  15142. /* confdefs.h. */
  15143. _ACEOF
  15144. cat confdefs.h >>conftest.$ac_ext
  15145. cat >>conftest.$ac_ext <<_ACEOF
  15146. /* end confdefs.h. */
  15147. #include <sys/types.h>
  15148. /* Check that off_t can represent 2**63 - 1 correctly.
  15149. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15150. since some C++ compilers masquerading as C compilers
  15151. incorrectly reject 9223372036854775807. */
  15152. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15153. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15154. && LARGE_OFF_T % 2147483647 == 1)
  15155. ? 1 : -1];
  15156. int
  15157. main ()
  15158. {
  15159. ;
  15160. return 0;
  15161. }
  15162. _ACEOF
  15163. rm -f conftest.$ac_objext
  15164. if { (ac_try="$ac_compile"
  15165. case "(($ac_try" in
  15166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15167. *) ac_try_echo=$ac_try;;
  15168. esac
  15169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15170. $as_echo "$ac_try_echo") >&5
  15171. (eval "$ac_compile") 2>conftest.er1
  15172. ac_status=$?
  15173. grep -v '^ *+' conftest.er1 >conftest.err
  15174. rm -f conftest.er1
  15175. cat conftest.err >&5
  15176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15177. (exit $ac_status); } && {
  15178. test -z "$ac_c_werror_flag" ||
  15179. test ! -s conftest.err
  15180. } && test -s conftest.$ac_objext; then
  15181. break
  15182. else
  15183. $as_echo "$as_me: failed program was:" >&5
  15184. sed 's/^/| /' conftest.$ac_ext >&5
  15185. fi
  15186. rm -f core conftest.err conftest.$ac_objext
  15187. CC="$CC -n32"
  15188. rm -f conftest.$ac_objext
  15189. if { (ac_try="$ac_compile"
  15190. case "(($ac_try" in
  15191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15192. *) ac_try_echo=$ac_try;;
  15193. esac
  15194. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15195. $as_echo "$ac_try_echo") >&5
  15196. (eval "$ac_compile") 2>conftest.er1
  15197. ac_status=$?
  15198. grep -v '^ *+' conftest.er1 >conftest.err
  15199. rm -f conftest.er1
  15200. cat conftest.err >&5
  15201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15202. (exit $ac_status); } && {
  15203. test -z "$ac_c_werror_flag" ||
  15204. test ! -s conftest.err
  15205. } && test -s conftest.$ac_objext; then
  15206. ac_cv_sys_largefile_CC=' -n32'; break
  15207. else
  15208. $as_echo "$as_me: failed program was:" >&5
  15209. sed 's/^/| /' conftest.$ac_ext >&5
  15210. fi
  15211. rm -f core conftest.err conftest.$ac_objext
  15212. break
  15213. done
  15214. CC=$ac_save_CC
  15215. rm -f conftest.$ac_ext
  15216. fi
  15217. fi
  15218. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  15219. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  15220. if test "$ac_cv_sys_largefile_CC" != no; then
  15221. CC=$CC$ac_cv_sys_largefile_CC
  15222. fi
  15223. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15224. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15225. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  15226. $as_echo_n "(cached) " >&6
  15227. else
  15228. while :; do
  15229. cat >conftest.$ac_ext <<_ACEOF
  15230. /* confdefs.h. */
  15231. _ACEOF
  15232. cat confdefs.h >>conftest.$ac_ext
  15233. cat >>conftest.$ac_ext <<_ACEOF
  15234. /* end confdefs.h. */
  15235. #include <sys/types.h>
  15236. /* Check that off_t can represent 2**63 - 1 correctly.
  15237. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15238. since some C++ compilers masquerading as C compilers
  15239. incorrectly reject 9223372036854775807. */
  15240. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15241. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15242. && LARGE_OFF_T % 2147483647 == 1)
  15243. ? 1 : -1];
  15244. int
  15245. main ()
  15246. {
  15247. ;
  15248. return 0;
  15249. }
  15250. _ACEOF
  15251. rm -f conftest.$ac_objext
  15252. if { (ac_try="$ac_compile"
  15253. case "(($ac_try" in
  15254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15255. *) ac_try_echo=$ac_try;;
  15256. esac
  15257. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15258. $as_echo "$ac_try_echo") >&5
  15259. (eval "$ac_compile") 2>conftest.er1
  15260. ac_status=$?
  15261. grep -v '^ *+' conftest.er1 >conftest.err
  15262. rm -f conftest.er1
  15263. cat conftest.err >&5
  15264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15265. (exit $ac_status); } && {
  15266. test -z "$ac_c_werror_flag" ||
  15267. test ! -s conftest.err
  15268. } && test -s conftest.$ac_objext; then
  15269. ac_cv_sys_file_offset_bits=no; break
  15270. else
  15271. $as_echo "$as_me: failed program was:" >&5
  15272. sed 's/^/| /' conftest.$ac_ext >&5
  15273. fi
  15274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15275. cat >conftest.$ac_ext <<_ACEOF
  15276. /* confdefs.h. */
  15277. _ACEOF
  15278. cat confdefs.h >>conftest.$ac_ext
  15279. cat >>conftest.$ac_ext <<_ACEOF
  15280. /* end confdefs.h. */
  15281. #define _FILE_OFFSET_BITS 64
  15282. #include <sys/types.h>
  15283. /* Check that off_t can represent 2**63 - 1 correctly.
  15284. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15285. since some C++ compilers masquerading as C compilers
  15286. incorrectly reject 9223372036854775807. */
  15287. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15288. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15289. && LARGE_OFF_T % 2147483647 == 1)
  15290. ? 1 : -1];
  15291. int
  15292. main ()
  15293. {
  15294. ;
  15295. return 0;
  15296. }
  15297. _ACEOF
  15298. rm -f conftest.$ac_objext
  15299. if { (ac_try="$ac_compile"
  15300. case "(($ac_try" in
  15301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15302. *) ac_try_echo=$ac_try;;
  15303. esac
  15304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15305. $as_echo "$ac_try_echo") >&5
  15306. (eval "$ac_compile") 2>conftest.er1
  15307. ac_status=$?
  15308. grep -v '^ *+' conftest.er1 >conftest.err
  15309. rm -f conftest.er1
  15310. cat conftest.err >&5
  15311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15312. (exit $ac_status); } && {
  15313. test -z "$ac_c_werror_flag" ||
  15314. test ! -s conftest.err
  15315. } && test -s conftest.$ac_objext; then
  15316. ac_cv_sys_file_offset_bits=64; break
  15317. else
  15318. $as_echo "$as_me: failed program was:" >&5
  15319. sed 's/^/| /' conftest.$ac_ext >&5
  15320. fi
  15321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15322. ac_cv_sys_file_offset_bits=unknown
  15323. break
  15324. done
  15325. fi
  15326. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  15327. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  15328. case $ac_cv_sys_file_offset_bits in #(
  15329. no | unknown) ;;
  15330. *)
  15331. cat >>confdefs.h <<_ACEOF
  15332. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  15333. _ACEOF
  15334. ;;
  15335. esac
  15336. rm -rf conftest*
  15337. if test $ac_cv_sys_file_offset_bits = unknown; then
  15338. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  15339. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  15340. if test "${ac_cv_sys_large_files+set}" = set; then
  15341. $as_echo_n "(cached) " >&6
  15342. else
  15343. while :; do
  15344. cat >conftest.$ac_ext <<_ACEOF
  15345. /* confdefs.h. */
  15346. _ACEOF
  15347. cat confdefs.h >>conftest.$ac_ext
  15348. cat >>conftest.$ac_ext <<_ACEOF
  15349. /* end confdefs.h. */
  15350. #include <sys/types.h>
  15351. /* Check that off_t can represent 2**63 - 1 correctly.
  15352. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15353. since some C++ compilers masquerading as C compilers
  15354. incorrectly reject 9223372036854775807. */
  15355. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15356. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15357. && LARGE_OFF_T % 2147483647 == 1)
  15358. ? 1 : -1];
  15359. int
  15360. main ()
  15361. {
  15362. ;
  15363. return 0;
  15364. }
  15365. _ACEOF
  15366. rm -f conftest.$ac_objext
  15367. if { (ac_try="$ac_compile"
  15368. case "(($ac_try" in
  15369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15370. *) ac_try_echo=$ac_try;;
  15371. esac
  15372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15373. $as_echo "$ac_try_echo") >&5
  15374. (eval "$ac_compile") 2>conftest.er1
  15375. ac_status=$?
  15376. grep -v '^ *+' conftest.er1 >conftest.err
  15377. rm -f conftest.er1
  15378. cat conftest.err >&5
  15379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15380. (exit $ac_status); } && {
  15381. test -z "$ac_c_werror_flag" ||
  15382. test ! -s conftest.err
  15383. } && test -s conftest.$ac_objext; then
  15384. ac_cv_sys_large_files=no; break
  15385. else
  15386. $as_echo "$as_me: failed program was:" >&5
  15387. sed 's/^/| /' conftest.$ac_ext >&5
  15388. fi
  15389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15390. cat >conftest.$ac_ext <<_ACEOF
  15391. /* confdefs.h. */
  15392. _ACEOF
  15393. cat confdefs.h >>conftest.$ac_ext
  15394. cat >>conftest.$ac_ext <<_ACEOF
  15395. /* end confdefs.h. */
  15396. #define _LARGE_FILES 1
  15397. #include <sys/types.h>
  15398. /* Check that off_t can represent 2**63 - 1 correctly.
  15399. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15400. since some C++ compilers masquerading as C compilers
  15401. incorrectly reject 9223372036854775807. */
  15402. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  15403. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15404. && LARGE_OFF_T % 2147483647 == 1)
  15405. ? 1 : -1];
  15406. int
  15407. main ()
  15408. {
  15409. ;
  15410. return 0;
  15411. }
  15412. _ACEOF
  15413. rm -f conftest.$ac_objext
  15414. if { (ac_try="$ac_compile"
  15415. case "(($ac_try" in
  15416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15417. *) ac_try_echo=$ac_try;;
  15418. esac
  15419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15420. $as_echo "$ac_try_echo") >&5
  15421. (eval "$ac_compile") 2>conftest.er1
  15422. ac_status=$?
  15423. grep -v '^ *+' conftest.er1 >conftest.err
  15424. rm -f conftest.er1
  15425. cat conftest.err >&5
  15426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15427. (exit $ac_status); } && {
  15428. test -z "$ac_c_werror_flag" ||
  15429. test ! -s conftest.err
  15430. } && test -s conftest.$ac_objext; then
  15431. ac_cv_sys_large_files=1; break
  15432. else
  15433. $as_echo "$as_me: failed program was:" >&5
  15434. sed 's/^/| /' conftest.$ac_ext >&5
  15435. fi
  15436. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15437. ac_cv_sys_large_files=unknown
  15438. break
  15439. done
  15440. fi
  15441. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  15442. $as_echo "$ac_cv_sys_large_files" >&6; }
  15443. case $ac_cv_sys_large_files in #(
  15444. no | unknown) ;;
  15445. *)
  15446. cat >>confdefs.h <<_ACEOF
  15447. #define _LARGE_FILES $ac_cv_sys_large_files
  15448. _ACEOF
  15449. ;;
  15450. esac
  15451. rm -rf conftest*
  15452. fi
  15453. fi
  15454. { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  15455. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  15456. if test "${ac_cv_sys_largefile_source+set}" = set; then
  15457. $as_echo_n "(cached) " >&6
  15458. else
  15459. while :; do
  15460. cat >conftest.$ac_ext <<_ACEOF
  15461. /* confdefs.h. */
  15462. _ACEOF
  15463. cat confdefs.h >>conftest.$ac_ext
  15464. cat >>conftest.$ac_ext <<_ACEOF
  15465. /* end confdefs.h. */
  15466. #include <sys/types.h> /* for off_t */
  15467. #include <stdio.h>
  15468. int
  15469. main ()
  15470. {
  15471. int (*fp) (FILE *, off_t, int) = fseeko;
  15472. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15473. ;
  15474. return 0;
  15475. }
  15476. _ACEOF
  15477. rm -f conftest.$ac_objext conftest$ac_exeext
  15478. if { (ac_try="$ac_link"
  15479. case "(($ac_try" in
  15480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15481. *) ac_try_echo=$ac_try;;
  15482. esac
  15483. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15484. $as_echo "$ac_try_echo") >&5
  15485. (eval "$ac_link") 2>conftest.er1
  15486. ac_status=$?
  15487. grep -v '^ *+' conftest.er1 >conftest.err
  15488. rm -f conftest.er1
  15489. cat conftest.err >&5
  15490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15491. (exit $ac_status); } && {
  15492. test -z "$ac_c_werror_flag" ||
  15493. test ! -s conftest.err
  15494. } && test -s conftest$ac_exeext && {
  15495. test "$cross_compiling" = yes ||
  15496. $as_test_x conftest$ac_exeext
  15497. }; then
  15498. ac_cv_sys_largefile_source=no; break
  15499. else
  15500. $as_echo "$as_me: failed program was:" >&5
  15501. sed 's/^/| /' conftest.$ac_ext >&5
  15502. fi
  15503. rm -rf conftest.dSYM
  15504. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15505. conftest$ac_exeext conftest.$ac_ext
  15506. cat >conftest.$ac_ext <<_ACEOF
  15507. /* confdefs.h. */
  15508. _ACEOF
  15509. cat confdefs.h >>conftest.$ac_ext
  15510. cat >>conftest.$ac_ext <<_ACEOF
  15511. /* end confdefs.h. */
  15512. #define _LARGEFILE_SOURCE 1
  15513. #include <sys/types.h> /* for off_t */
  15514. #include <stdio.h>
  15515. int
  15516. main ()
  15517. {
  15518. int (*fp) (FILE *, off_t, int) = fseeko;
  15519. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15520. ;
  15521. return 0;
  15522. }
  15523. _ACEOF
  15524. rm -f conftest.$ac_objext conftest$ac_exeext
  15525. if { (ac_try="$ac_link"
  15526. case "(($ac_try" in
  15527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15528. *) ac_try_echo=$ac_try;;
  15529. esac
  15530. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15531. $as_echo "$ac_try_echo") >&5
  15532. (eval "$ac_link") 2>conftest.er1
  15533. ac_status=$?
  15534. grep -v '^ *+' conftest.er1 >conftest.err
  15535. rm -f conftest.er1
  15536. cat conftest.err >&5
  15537. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15538. (exit $ac_status); } && {
  15539. test -z "$ac_c_werror_flag" ||
  15540. test ! -s conftest.err
  15541. } && test -s conftest$ac_exeext && {
  15542. test "$cross_compiling" = yes ||
  15543. $as_test_x conftest$ac_exeext
  15544. }; then
  15545. ac_cv_sys_largefile_source=1; break
  15546. else
  15547. $as_echo "$as_me: failed program was:" >&5
  15548. sed 's/^/| /' conftest.$ac_ext >&5
  15549. fi
  15550. rm -rf conftest.dSYM
  15551. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15552. conftest$ac_exeext conftest.$ac_ext
  15553. ac_cv_sys_largefile_source=unknown
  15554. break
  15555. done
  15556. fi
  15557. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  15558. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  15559. case $ac_cv_sys_largefile_source in #(
  15560. no | unknown) ;;
  15561. *)
  15562. cat >>confdefs.h <<_ACEOF
  15563. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  15564. _ACEOF
  15565. ;;
  15566. esac
  15567. rm -rf conftest*
  15568. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  15569. # in glibc 2.1.3, but that breaks too many other things.
  15570. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  15571. if test $ac_cv_sys_largefile_source != unknown; then
  15572. cat >>confdefs.h <<\_ACEOF
  15573. #define HAVE_FSEEKO 1
  15574. _ACEOF
  15575. fi
  15576. { $as_echo "$as_me:$LINENO: checking for u_int8_t" >&5
  15577. $as_echo_n "checking for u_int8_t... " >&6; }
  15578. if test "${ac_cv_type_u_int8_t+set}" = set; then
  15579. $as_echo_n "(cached) " >&6
  15580. else
  15581. ac_cv_type_u_int8_t=no
  15582. cat >conftest.$ac_ext <<_ACEOF
  15583. /* confdefs.h. */
  15584. _ACEOF
  15585. cat confdefs.h >>conftest.$ac_ext
  15586. cat >>conftest.$ac_ext <<_ACEOF
  15587. /* end confdefs.h. */
  15588. $ac_includes_default
  15589. int
  15590. main ()
  15591. {
  15592. if (sizeof (u_int8_t))
  15593. return 0;
  15594. ;
  15595. return 0;
  15596. }
  15597. _ACEOF
  15598. rm -f conftest.$ac_objext
  15599. if { (ac_try="$ac_compile"
  15600. case "(($ac_try" in
  15601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15602. *) ac_try_echo=$ac_try;;
  15603. esac
  15604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15605. $as_echo "$ac_try_echo") >&5
  15606. (eval "$ac_compile") 2>conftest.er1
  15607. ac_status=$?
  15608. grep -v '^ *+' conftest.er1 >conftest.err
  15609. rm -f conftest.er1
  15610. cat conftest.err >&5
  15611. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15612. (exit $ac_status); } && {
  15613. test -z "$ac_c_werror_flag" ||
  15614. test ! -s conftest.err
  15615. } && test -s conftest.$ac_objext; then
  15616. cat >conftest.$ac_ext <<_ACEOF
  15617. /* confdefs.h. */
  15618. _ACEOF
  15619. cat confdefs.h >>conftest.$ac_ext
  15620. cat >>conftest.$ac_ext <<_ACEOF
  15621. /* end confdefs.h. */
  15622. $ac_includes_default
  15623. int
  15624. main ()
  15625. {
  15626. if (sizeof ((u_int8_t)))
  15627. return 0;
  15628. ;
  15629. return 0;
  15630. }
  15631. _ACEOF
  15632. rm -f conftest.$ac_objext
  15633. if { (ac_try="$ac_compile"
  15634. case "(($ac_try" in
  15635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15636. *) ac_try_echo=$ac_try;;
  15637. esac
  15638. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15639. $as_echo "$ac_try_echo") >&5
  15640. (eval "$ac_compile") 2>conftest.er1
  15641. ac_status=$?
  15642. grep -v '^ *+' conftest.er1 >conftest.err
  15643. rm -f conftest.er1
  15644. cat conftest.err >&5
  15645. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15646. (exit $ac_status); } && {
  15647. test -z "$ac_c_werror_flag" ||
  15648. test ! -s conftest.err
  15649. } && test -s conftest.$ac_objext; then
  15650. :
  15651. else
  15652. $as_echo "$as_me: failed program was:" >&5
  15653. sed 's/^/| /' conftest.$ac_ext >&5
  15654. ac_cv_type_u_int8_t=yes
  15655. fi
  15656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15657. else
  15658. $as_echo "$as_me: failed program was:" >&5
  15659. sed 's/^/| /' conftest.$ac_ext >&5
  15660. fi
  15661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15662. fi
  15663. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  15664. $as_echo "$ac_cv_type_u_int8_t" >&6; }
  15665. if test "x$ac_cv_type_u_int8_t" = x""yes; then
  15666. :
  15667. else
  15668. cat >>confdefs.h <<_ACEOF
  15669. #define u_int8_t uint8_t
  15670. _ACEOF
  15671. fi
  15672. { $as_echo "$as_me:$LINENO: checking for u_int16_t" >&5
  15673. $as_echo_n "checking for u_int16_t... " >&6; }
  15674. if test "${ac_cv_type_u_int16_t+set}" = set; then
  15675. $as_echo_n "(cached) " >&6
  15676. else
  15677. ac_cv_type_u_int16_t=no
  15678. cat >conftest.$ac_ext <<_ACEOF
  15679. /* confdefs.h. */
  15680. _ACEOF
  15681. cat confdefs.h >>conftest.$ac_ext
  15682. cat >>conftest.$ac_ext <<_ACEOF
  15683. /* end confdefs.h. */
  15684. $ac_includes_default
  15685. int
  15686. main ()
  15687. {
  15688. if (sizeof (u_int16_t))
  15689. return 0;
  15690. ;
  15691. return 0;
  15692. }
  15693. _ACEOF
  15694. rm -f conftest.$ac_objext
  15695. if { (ac_try="$ac_compile"
  15696. case "(($ac_try" in
  15697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15698. *) ac_try_echo=$ac_try;;
  15699. esac
  15700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15701. $as_echo "$ac_try_echo") >&5
  15702. (eval "$ac_compile") 2>conftest.er1
  15703. ac_status=$?
  15704. grep -v '^ *+' conftest.er1 >conftest.err
  15705. rm -f conftest.er1
  15706. cat conftest.err >&5
  15707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15708. (exit $ac_status); } && {
  15709. test -z "$ac_c_werror_flag" ||
  15710. test ! -s conftest.err
  15711. } && test -s conftest.$ac_objext; then
  15712. cat >conftest.$ac_ext <<_ACEOF
  15713. /* confdefs.h. */
  15714. _ACEOF
  15715. cat confdefs.h >>conftest.$ac_ext
  15716. cat >>conftest.$ac_ext <<_ACEOF
  15717. /* end confdefs.h. */
  15718. $ac_includes_default
  15719. int
  15720. main ()
  15721. {
  15722. if (sizeof ((u_int16_t)))
  15723. return 0;
  15724. ;
  15725. return 0;
  15726. }
  15727. _ACEOF
  15728. rm -f conftest.$ac_objext
  15729. if { (ac_try="$ac_compile"
  15730. case "(($ac_try" in
  15731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15732. *) ac_try_echo=$ac_try;;
  15733. esac
  15734. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15735. $as_echo "$ac_try_echo") >&5
  15736. (eval "$ac_compile") 2>conftest.er1
  15737. ac_status=$?
  15738. grep -v '^ *+' conftest.er1 >conftest.err
  15739. rm -f conftest.er1
  15740. cat conftest.err >&5
  15741. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15742. (exit $ac_status); } && {
  15743. test -z "$ac_c_werror_flag" ||
  15744. test ! -s conftest.err
  15745. } && test -s conftest.$ac_objext; then
  15746. :
  15747. else
  15748. $as_echo "$as_me: failed program was:" >&5
  15749. sed 's/^/| /' conftest.$ac_ext >&5
  15750. ac_cv_type_u_int16_t=yes
  15751. fi
  15752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15753. else
  15754. $as_echo "$as_me: failed program was:" >&5
  15755. sed 's/^/| /' conftest.$ac_ext >&5
  15756. fi
  15757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15758. fi
  15759. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  15760. $as_echo "$ac_cv_type_u_int16_t" >&6; }
  15761. if test "x$ac_cv_type_u_int16_t" = x""yes; then
  15762. :
  15763. else
  15764. cat >>confdefs.h <<_ACEOF
  15765. #define u_int16_t uint16_t
  15766. _ACEOF
  15767. fi
  15768. { $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5
  15769. $as_echo_n "checking for u_int32_t... " >&6; }
  15770. if test "${ac_cv_type_u_int32_t+set}" = set; then
  15771. $as_echo_n "(cached) " >&6
  15772. else
  15773. ac_cv_type_u_int32_t=no
  15774. cat >conftest.$ac_ext <<_ACEOF
  15775. /* confdefs.h. */
  15776. _ACEOF
  15777. cat confdefs.h >>conftest.$ac_ext
  15778. cat >>conftest.$ac_ext <<_ACEOF
  15779. /* end confdefs.h. */
  15780. $ac_includes_default
  15781. int
  15782. main ()
  15783. {
  15784. if (sizeof (u_int32_t))
  15785. return 0;
  15786. ;
  15787. return 0;
  15788. }
  15789. _ACEOF
  15790. rm -f conftest.$ac_objext
  15791. if { (ac_try="$ac_compile"
  15792. case "(($ac_try" in
  15793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15794. *) ac_try_echo=$ac_try;;
  15795. esac
  15796. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15797. $as_echo "$ac_try_echo") >&5
  15798. (eval "$ac_compile") 2>conftest.er1
  15799. ac_status=$?
  15800. grep -v '^ *+' conftest.er1 >conftest.err
  15801. rm -f conftest.er1
  15802. cat conftest.err >&5
  15803. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15804. (exit $ac_status); } && {
  15805. test -z "$ac_c_werror_flag" ||
  15806. test ! -s conftest.err
  15807. } && test -s conftest.$ac_objext; then
  15808. cat >conftest.$ac_ext <<_ACEOF
  15809. /* confdefs.h. */
  15810. _ACEOF
  15811. cat confdefs.h >>conftest.$ac_ext
  15812. cat >>conftest.$ac_ext <<_ACEOF
  15813. /* end confdefs.h. */
  15814. $ac_includes_default
  15815. int
  15816. main ()
  15817. {
  15818. if (sizeof ((u_int32_t)))
  15819. return 0;
  15820. ;
  15821. return 0;
  15822. }
  15823. _ACEOF
  15824. rm -f conftest.$ac_objext
  15825. if { (ac_try="$ac_compile"
  15826. case "(($ac_try" in
  15827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15828. *) ac_try_echo=$ac_try;;
  15829. esac
  15830. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15831. $as_echo "$ac_try_echo") >&5
  15832. (eval "$ac_compile") 2>conftest.er1
  15833. ac_status=$?
  15834. grep -v '^ *+' conftest.er1 >conftest.err
  15835. rm -f conftest.er1
  15836. cat conftest.err >&5
  15837. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15838. (exit $ac_status); } && {
  15839. test -z "$ac_c_werror_flag" ||
  15840. test ! -s conftest.err
  15841. } && test -s conftest.$ac_objext; then
  15842. :
  15843. else
  15844. $as_echo "$as_me: failed program was:" >&5
  15845. sed 's/^/| /' conftest.$ac_ext >&5
  15846. ac_cv_type_u_int32_t=yes
  15847. fi
  15848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15849. else
  15850. $as_echo "$as_me: failed program was:" >&5
  15851. sed 's/^/| /' conftest.$ac_ext >&5
  15852. fi
  15853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15854. fi
  15855. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  15856. $as_echo "$ac_cv_type_u_int32_t" >&6; }
  15857. if test "x$ac_cv_type_u_int32_t" = x""yes; then
  15858. :
  15859. else
  15860. cat >>confdefs.h <<_ACEOF
  15861. #define u_int32_t uint32_t
  15862. _ACEOF
  15863. fi
  15864. { $as_echo "$as_me:$LINENO: checking for u_int64_t" >&5
  15865. $as_echo_n "checking for u_int64_t... " >&6; }
  15866. if test "${ac_cv_type_u_int64_t+set}" = set; then
  15867. $as_echo_n "(cached) " >&6
  15868. else
  15869. ac_cv_type_u_int64_t=no
  15870. cat >conftest.$ac_ext <<_ACEOF
  15871. /* confdefs.h. */
  15872. _ACEOF
  15873. cat confdefs.h >>conftest.$ac_ext
  15874. cat >>conftest.$ac_ext <<_ACEOF
  15875. /* end confdefs.h. */
  15876. $ac_includes_default
  15877. int
  15878. main ()
  15879. {
  15880. if (sizeof (u_int64_t))
  15881. return 0;
  15882. ;
  15883. return 0;
  15884. }
  15885. _ACEOF
  15886. rm -f conftest.$ac_objext
  15887. if { (ac_try="$ac_compile"
  15888. case "(($ac_try" in
  15889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15890. *) ac_try_echo=$ac_try;;
  15891. esac
  15892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15893. $as_echo "$ac_try_echo") >&5
  15894. (eval "$ac_compile") 2>conftest.er1
  15895. ac_status=$?
  15896. grep -v '^ *+' conftest.er1 >conftest.err
  15897. rm -f conftest.er1
  15898. cat conftest.err >&5
  15899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15900. (exit $ac_status); } && {
  15901. test -z "$ac_c_werror_flag" ||
  15902. test ! -s conftest.err
  15903. } && test -s conftest.$ac_objext; then
  15904. cat >conftest.$ac_ext <<_ACEOF
  15905. /* confdefs.h. */
  15906. _ACEOF
  15907. cat confdefs.h >>conftest.$ac_ext
  15908. cat >>conftest.$ac_ext <<_ACEOF
  15909. /* end confdefs.h. */
  15910. $ac_includes_default
  15911. int
  15912. main ()
  15913. {
  15914. if (sizeof ((u_int64_t)))
  15915. return 0;
  15916. ;
  15917. return 0;
  15918. }
  15919. _ACEOF
  15920. rm -f conftest.$ac_objext
  15921. if { (ac_try="$ac_compile"
  15922. case "(($ac_try" in
  15923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15924. *) ac_try_echo=$ac_try;;
  15925. esac
  15926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15927. $as_echo "$ac_try_echo") >&5
  15928. (eval "$ac_compile") 2>conftest.er1
  15929. ac_status=$?
  15930. grep -v '^ *+' conftest.er1 >conftest.err
  15931. rm -f conftest.er1
  15932. cat conftest.err >&5
  15933. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15934. (exit $ac_status); } && {
  15935. test -z "$ac_c_werror_flag" ||
  15936. test ! -s conftest.err
  15937. } && test -s conftest.$ac_objext; then
  15938. :
  15939. else
  15940. $as_echo "$as_me: failed program was:" >&5
  15941. sed 's/^/| /' conftest.$ac_ext >&5
  15942. ac_cv_type_u_int64_t=yes
  15943. fi
  15944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15945. else
  15946. $as_echo "$as_me: failed program was:" >&5
  15947. sed 's/^/| /' conftest.$ac_ext >&5
  15948. fi
  15949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15950. fi
  15951. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  15952. $as_echo "$ac_cv_type_u_int64_t" >&6; }
  15953. if test "x$ac_cv_type_u_int64_t" = x""yes; then
  15954. :
  15955. else
  15956. cat >>confdefs.h <<_ACEOF
  15957. #define u_int64_t uint64_t
  15958. _ACEOF
  15959. fi
  15960. { $as_echo "$as_me:$LINENO: checking for $CC -Wextra support" >&5
  15961. $as_echo_n "checking for $CC -Wextra support... " >&6; }
  15962. OLD_CFLAGS=$CFLAGS
  15963. CFLAGS="$CFLAGS -Wextra"
  15964. wextra=""
  15965. cat >conftest.$ac_ext <<_ACEOF
  15966. #include <stdlib.h>
  15967. int main(int argc, char *argv) { return(0); }
  15968. _ACEOF
  15969. rm -f conftest.$ac_objext
  15970. if { (ac_try="$ac_compile"
  15971. case "(($ac_try" in
  15972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15973. *) ac_try_echo=$ac_try;;
  15974. esac
  15975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15976. $as_echo "$ac_try_echo") >&5
  15977. (eval "$ac_compile") 2>conftest.er1
  15978. ac_status=$?
  15979. grep -v '^ *+' conftest.er1 >conftest.err
  15980. rm -f conftest.er1
  15981. cat conftest.err >&5
  15982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15983. (exit $ac_status); } && {
  15984. test -z "$ac_c_werror_flag" ||
  15985. test ! -s conftest.err
  15986. } && test -s conftest.$ac_objext; then
  15987. { $as_echo "$as_me:$LINENO: result: yes" >&5
  15988. $as_echo "yes" >&6; }
  15989. wextra="-Wextra"
  15990. else
  15991. $as_echo "$as_me: failed program was:" >&5
  15992. sed 's/^/| /' conftest.$ac_ext >&5
  15993. { $as_echo "$as_me:$LINENO: result: no" >&5
  15994. $as_echo "no" >&6; }
  15995. fi
  15996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15997. CFLAGS="$OLD_CFLAGS $wextra"
  15998. { $as_echo "$as_me:$LINENO: checking for $CC -Wno-variadic-macros support" >&5
  15999. $as_echo_n "checking for $CC -Wno-variadic-macros support... " >&6; }
  16000. OLD_CFLAGS=$CFLAGS
  16001. CFLAGS="$CFLAGS -Wno-variadic-macros"
  16002. wno_variadic_macros=""
  16003. cat >conftest.$ac_ext <<_ACEOF
  16004. #include <stdlib.h>
  16005. int main(int argc, char *argv) { return(0); }
  16006. _ACEOF
  16007. rm -f conftest.$ac_objext
  16008. if { (ac_try="$ac_compile"
  16009. case "(($ac_try" in
  16010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16011. *) ac_try_echo=$ac_try;;
  16012. esac
  16013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16014. $as_echo "$ac_try_echo") >&5
  16015. (eval "$ac_compile") 2>conftest.er1
  16016. ac_status=$?
  16017. grep -v '^ *+' conftest.er1 >conftest.err
  16018. rm -f conftest.er1
  16019. cat conftest.err >&5
  16020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16021. (exit $ac_status); } && {
  16022. test -z "$ac_c_werror_flag" ||
  16023. test ! -s conftest.err
  16024. } && test -s conftest.$ac_objext; then
  16025. { $as_echo "$as_me:$LINENO: result: yes" >&5
  16026. $as_echo "yes" >&6; }
  16027. wno_variadic_macros="-Wno-variadic-macros"
  16028. else
  16029. $as_echo "$as_me: failed program was:" >&5
  16030. sed 's/^/| /' conftest.$ac_ext >&5
  16031. { $as_echo "$as_me:$LINENO: result: no" >&5
  16032. $as_echo "no" >&6; }
  16033. fi
  16034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16035. CFLAGS="$OLD_CFLAGS $wno_variadic_macros"
  16036. { $as_echo "$as_me:$LINENO: checking for $CC -Wfatal-errors support" >&5
  16037. $as_echo_n "checking for $CC -Wfatal-errors support... " >&6; }
  16038. OLD_CFLAGS=$CFLAGS
  16039. CFLAGS="$CFLAGS -Wfatal-errors"
  16040. wfatal_errors=""
  16041. cat >conftest.$ac_ext <<_ACEOF
  16042. #include <stdlib.h>
  16043. int main(int argc, char *argv) { return(0); }
  16044. _ACEOF
  16045. rm -f conftest.$ac_objext
  16046. if { (ac_try="$ac_compile"
  16047. case "(($ac_try" in
  16048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16049. *) ac_try_echo=$ac_try;;
  16050. esac
  16051. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16052. $as_echo "$ac_try_echo") >&5
  16053. (eval "$ac_compile") 2>conftest.er1
  16054. ac_status=$?
  16055. grep -v '^ *+' conftest.er1 >conftest.err
  16056. rm -f conftest.er1
  16057. cat conftest.err >&5
  16058. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16059. (exit $ac_status); } && {
  16060. test -z "$ac_c_werror_flag" ||
  16061. test ! -s conftest.err
  16062. } && test -s conftest.$ac_objext; then
  16063. { $as_echo "$as_me:$LINENO: result: yes" >&5
  16064. $as_echo "yes" >&6; }
  16065. wfatal_errors="-Wfatal-errors"
  16066. else
  16067. $as_echo "$as_me: failed program was:" >&5
  16068. sed 's/^/| /' conftest.$ac_ext >&5
  16069. { $as_echo "$as_me:$LINENO: result: no" >&5
  16070. $as_echo "no" >&6; }
  16071. fi
  16072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16073. CFLAGS="$OLD_CFLAGS $wfatal_errors"
  16074. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h stdint.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h sys/param.h
  16075. do
  16076. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16077. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16078. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16079. $as_echo_n "checking for $ac_header... " >&6; }
  16080. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16081. $as_echo_n "(cached) " >&6
  16082. fi
  16083. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16084. $as_echo "$as_val"'`
  16085. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16086. $as_echo "$ac_res" >&6; }
  16087. else
  16088. # Is the header compilable?
  16089. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16090. $as_echo_n "checking $ac_header usability... " >&6; }
  16091. cat >conftest.$ac_ext <<_ACEOF
  16092. /* confdefs.h. */
  16093. _ACEOF
  16094. cat confdefs.h >>conftest.$ac_ext
  16095. cat >>conftest.$ac_ext <<_ACEOF
  16096. /* end confdefs.h. */
  16097. $ac_includes_default
  16098. #include <$ac_header>
  16099. _ACEOF
  16100. rm -f conftest.$ac_objext
  16101. if { (ac_try="$ac_compile"
  16102. case "(($ac_try" in
  16103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16104. *) ac_try_echo=$ac_try;;
  16105. esac
  16106. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16107. $as_echo "$ac_try_echo") >&5
  16108. (eval "$ac_compile") 2>conftest.er1
  16109. ac_status=$?
  16110. grep -v '^ *+' conftest.er1 >conftest.err
  16111. rm -f conftest.er1
  16112. cat conftest.err >&5
  16113. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16114. (exit $ac_status); } && {
  16115. test -z "$ac_c_werror_flag" ||
  16116. test ! -s conftest.err
  16117. } && test -s conftest.$ac_objext; then
  16118. ac_header_compiler=yes
  16119. else
  16120. $as_echo "$as_me: failed program was:" >&5
  16121. sed 's/^/| /' conftest.$ac_ext >&5
  16122. ac_header_compiler=no
  16123. fi
  16124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16125. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16126. $as_echo "$ac_header_compiler" >&6; }
  16127. # Is the header present?
  16128. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16129. $as_echo_n "checking $ac_header presence... " >&6; }
  16130. cat >conftest.$ac_ext <<_ACEOF
  16131. /* confdefs.h. */
  16132. _ACEOF
  16133. cat confdefs.h >>conftest.$ac_ext
  16134. cat >>conftest.$ac_ext <<_ACEOF
  16135. /* end confdefs.h. */
  16136. #include <$ac_header>
  16137. _ACEOF
  16138. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16139. case "(($ac_try" in
  16140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16141. *) ac_try_echo=$ac_try;;
  16142. esac
  16143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16144. $as_echo "$ac_try_echo") >&5
  16145. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16146. ac_status=$?
  16147. grep -v '^ *+' conftest.er1 >conftest.err
  16148. rm -f conftest.er1
  16149. cat conftest.err >&5
  16150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16151. (exit $ac_status); } >/dev/null && {
  16152. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16153. test ! -s conftest.err
  16154. }; then
  16155. ac_header_preproc=yes
  16156. else
  16157. $as_echo "$as_me: failed program was:" >&5
  16158. sed 's/^/| /' conftest.$ac_ext >&5
  16159. ac_header_preproc=no
  16160. fi
  16161. rm -f conftest.err conftest.$ac_ext
  16162. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16163. $as_echo "$ac_header_preproc" >&6; }
  16164. # So? What about this header?
  16165. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16166. yes:no: )
  16167. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16168. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16169. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16170. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16171. ac_header_preproc=yes
  16172. ;;
  16173. no:yes:* )
  16174. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16175. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16176. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16177. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16178. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16179. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16180. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16181. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16182. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16183. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16184. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16185. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16186. ;;
  16187. esac
  16188. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16189. $as_echo_n "checking for $ac_header... " >&6; }
  16190. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16191. $as_echo_n "(cached) " >&6
  16192. else
  16193. eval "$as_ac_Header=\$ac_header_preproc"
  16194. fi
  16195. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16196. $as_echo "$as_val"'`
  16197. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16198. $as_echo "$ac_res" >&6; }
  16199. fi
  16200. as_val=`eval 'as_val=${'$as_ac_Header'}
  16201. $as_echo "$as_val"'`
  16202. if test "x$as_val" = x""yes; then
  16203. cat >>confdefs.h <<_ACEOF
  16204. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16205. _ACEOF
  16206. fi
  16207. done
  16208. for ac_header in sys/sysctl.h net/route.h
  16209. do
  16210. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16211. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16212. $as_echo_n "checking for $ac_header... " >&6; }
  16213. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16214. $as_echo_n "(cached) " >&6
  16215. else
  16216. cat >conftest.$ac_ext <<_ACEOF
  16217. /* confdefs.h. */
  16218. _ACEOF
  16219. cat confdefs.h >>conftest.$ac_ext
  16220. cat >>conftest.$ac_ext <<_ACEOF
  16221. /* end confdefs.h. */
  16222. #if HAVE_SYS_PARAM_H
  16223. #include <sys/param.h>
  16224. #endif
  16225. #if HAVE_SYS_TYPES_H
  16226. #include <sys/types.h>
  16227. #endif
  16228. #if HAVE_SYS_SOCKET_H
  16229. #include <sys/socket.h>
  16230. #endif
  16231. #include <$ac_header>
  16232. _ACEOF
  16233. rm -f conftest.$ac_objext
  16234. if { (ac_try="$ac_compile"
  16235. case "(($ac_try" in
  16236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16237. *) ac_try_echo=$ac_try;;
  16238. esac
  16239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16240. $as_echo "$ac_try_echo") >&5
  16241. (eval "$ac_compile") 2>conftest.er1
  16242. ac_status=$?
  16243. grep -v '^ *+' conftest.er1 >conftest.err
  16244. rm -f conftest.er1
  16245. cat conftest.err >&5
  16246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16247. (exit $ac_status); } && {
  16248. test -z "$ac_c_werror_flag" ||
  16249. test ! -s conftest.err
  16250. } && test -s conftest.$ac_objext; then
  16251. eval "$as_ac_Header=yes"
  16252. else
  16253. $as_echo "$as_me: failed program was:" >&5
  16254. sed 's/^/| /' conftest.$ac_ext >&5
  16255. eval "$as_ac_Header=no"
  16256. fi
  16257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16258. fi
  16259. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16260. $as_echo "$as_val"'`
  16261. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16262. $as_echo "$ac_res" >&6; }
  16263. as_val=`eval 'as_val=${'$as_ac_Header'}
  16264. $as_echo "$as_val"'`
  16265. if test "x$as_val" = x""yes; then
  16266. cat >>confdefs.h <<_ACEOF
  16267. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16268. _ACEOF
  16269. fi
  16270. done
  16271. { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  16272. $as_echo_n "checking for socket in -lsocket... " >&6; }
  16273. if test "${ac_cv_lib_socket_socket+set}" = set; then
  16274. $as_echo_n "(cached) " >&6
  16275. else
  16276. ac_check_lib_save_LIBS=$LIBS
  16277. LIBS="-lsocket $LIBS"
  16278. cat >conftest.$ac_ext <<_ACEOF
  16279. /* confdefs.h. */
  16280. _ACEOF
  16281. cat confdefs.h >>conftest.$ac_ext
  16282. cat >>conftest.$ac_ext <<_ACEOF
  16283. /* end confdefs.h. */
  16284. /* Override any GCC internal prototype to avoid an error.
  16285. Use char because int might match the return type of a GCC
  16286. builtin and then its argument prototype would still apply. */
  16287. #ifdef __cplusplus
  16288. extern "C"
  16289. #endif
  16290. char socket ();
  16291. int
  16292. main ()
  16293. {
  16294. return socket ();
  16295. ;
  16296. return 0;
  16297. }
  16298. _ACEOF
  16299. rm -f conftest.$ac_objext conftest$ac_exeext
  16300. if { (ac_try="$ac_link"
  16301. case "(($ac_try" in
  16302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16303. *) ac_try_echo=$ac_try;;
  16304. esac
  16305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16306. $as_echo "$ac_try_echo") >&5
  16307. (eval "$ac_link") 2>conftest.er1
  16308. ac_status=$?
  16309. grep -v '^ *+' conftest.er1 >conftest.err
  16310. rm -f conftest.er1
  16311. cat conftest.err >&5
  16312. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16313. (exit $ac_status); } && {
  16314. test -z "$ac_c_werror_flag" ||
  16315. test ! -s conftest.err
  16316. } && test -s conftest$ac_exeext && {
  16317. test "$cross_compiling" = yes ||
  16318. $as_test_x conftest$ac_exeext
  16319. }; then
  16320. ac_cv_lib_socket_socket=yes
  16321. else
  16322. $as_echo "$as_me: failed program was:" >&5
  16323. sed 's/^/| /' conftest.$ac_ext >&5
  16324. ac_cv_lib_socket_socket=no
  16325. fi
  16326. rm -rf conftest.dSYM
  16327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16328. conftest$ac_exeext conftest.$ac_ext
  16329. LIBS=$ac_check_lib_save_LIBS
  16330. fi
  16331. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  16332. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  16333. if test "x$ac_cv_lib_socket_socket" = x""yes; then
  16334. cat >>confdefs.h <<_ACEOF
  16335. #define HAVE_LIBSOCKET 1
  16336. _ACEOF
  16337. LIBS="-lsocket $LIBS"
  16338. fi
  16339. { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  16340. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16341. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  16342. $as_echo_n "(cached) " >&6
  16343. else
  16344. ac_check_lib_save_LIBS=$LIBS
  16345. LIBS="-lnsl $LIBS"
  16346. cat >conftest.$ac_ext <<_ACEOF
  16347. /* confdefs.h. */
  16348. _ACEOF
  16349. cat confdefs.h >>conftest.$ac_ext
  16350. cat >>conftest.$ac_ext <<_ACEOF
  16351. /* end confdefs.h. */
  16352. /* Override any GCC internal prototype to avoid an error.
  16353. Use char because int might match the return type of a GCC
  16354. builtin and then its argument prototype would still apply. */
  16355. #ifdef __cplusplus
  16356. extern "C"
  16357. #endif
  16358. char gethostbyname ();
  16359. int
  16360. main ()
  16361. {
  16362. return gethostbyname ();
  16363. ;
  16364. return 0;
  16365. }
  16366. _ACEOF
  16367. rm -f conftest.$ac_objext conftest$ac_exeext
  16368. if { (ac_try="$ac_link"
  16369. case "(($ac_try" in
  16370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16371. *) ac_try_echo=$ac_try;;
  16372. esac
  16373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16374. $as_echo "$ac_try_echo") >&5
  16375. (eval "$ac_link") 2>conftest.er1
  16376. ac_status=$?
  16377. grep -v '^ *+' conftest.er1 >conftest.err
  16378. rm -f conftest.er1
  16379. cat conftest.err >&5
  16380. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16381. (exit $ac_status); } && {
  16382. test -z "$ac_c_werror_flag" ||
  16383. test ! -s conftest.err
  16384. } && test -s conftest$ac_exeext && {
  16385. test "$cross_compiling" = yes ||
  16386. $as_test_x conftest$ac_exeext
  16387. }; then
  16388. ac_cv_lib_nsl_gethostbyname=yes
  16389. else
  16390. $as_echo "$as_me: failed program was:" >&5
  16391. sed 's/^/| /' conftest.$ac_ext >&5
  16392. ac_cv_lib_nsl_gethostbyname=no
  16393. fi
  16394. rm -rf conftest.dSYM
  16395. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16396. conftest$ac_exeext conftest.$ac_ext
  16397. LIBS=$ac_check_lib_save_LIBS
  16398. fi
  16399. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16400. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16401. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
  16402. cat >>confdefs.h <<_ACEOF
  16403. #define HAVE_LIBNSL 1
  16404. _ACEOF
  16405. LIBS="-lnsl $LIBS"
  16406. fi
  16407. { $as_echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  16408. $as_echo_n "checking for nanosleep in -lrt... " >&6; }
  16409. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  16410. $as_echo_n "(cached) " >&6
  16411. else
  16412. ac_check_lib_save_LIBS=$LIBS
  16413. LIBS="-lrt $LIBS"
  16414. cat >conftest.$ac_ext <<_ACEOF
  16415. /* confdefs.h. */
  16416. _ACEOF
  16417. cat confdefs.h >>conftest.$ac_ext
  16418. cat >>conftest.$ac_ext <<_ACEOF
  16419. /* end confdefs.h. */
  16420. /* Override any GCC internal prototype to avoid an error.
  16421. Use char because int might match the return type of a GCC
  16422. builtin and then its argument prototype would still apply. */
  16423. #ifdef __cplusplus
  16424. extern "C"
  16425. #endif
  16426. char nanosleep ();
  16427. int
  16428. main ()
  16429. {
  16430. return nanosleep ();
  16431. ;
  16432. return 0;
  16433. }
  16434. _ACEOF
  16435. rm -f conftest.$ac_objext conftest$ac_exeext
  16436. if { (ac_try="$ac_link"
  16437. case "(($ac_try" in
  16438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16439. *) ac_try_echo=$ac_try;;
  16440. esac
  16441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16442. $as_echo "$ac_try_echo") >&5
  16443. (eval "$ac_link") 2>conftest.er1
  16444. ac_status=$?
  16445. grep -v '^ *+' conftest.er1 >conftest.err
  16446. rm -f conftest.er1
  16447. cat conftest.err >&5
  16448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16449. (exit $ac_status); } && {
  16450. test -z "$ac_c_werror_flag" ||
  16451. test ! -s conftest.err
  16452. } && test -s conftest$ac_exeext && {
  16453. test "$cross_compiling" = yes ||
  16454. $as_test_x conftest$ac_exeext
  16455. }; then
  16456. ac_cv_lib_rt_nanosleep=yes
  16457. else
  16458. $as_echo "$as_me: failed program was:" >&5
  16459. sed 's/^/| /' conftest.$ac_ext >&5
  16460. ac_cv_lib_rt_nanosleep=no
  16461. fi
  16462. rm -rf conftest.dSYM
  16463. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16464. conftest$ac_exeext conftest.$ac_ext
  16465. LIBS=$ac_check_lib_save_LIBS
  16466. fi
  16467. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  16468. $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
  16469. if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then
  16470. cat >>confdefs.h <<_ACEOF
  16471. #define HAVE_LIBRT 1
  16472. _ACEOF
  16473. LIBS="-lrt $LIBS"
  16474. fi
  16475. { $as_echo "$as_me:$LINENO: checking for resolv in -lresolv" >&5
  16476. $as_echo_n "checking for resolv in -lresolv... " >&6; }
  16477. if test "${ac_cv_lib_resolv_resolv+set}" = set; then
  16478. $as_echo_n "(cached) " >&6
  16479. else
  16480. ac_check_lib_save_LIBS=$LIBS
  16481. LIBS="-lresolv $LIBS"
  16482. cat >conftest.$ac_ext <<_ACEOF
  16483. /* confdefs.h. */
  16484. _ACEOF
  16485. cat confdefs.h >>conftest.$ac_ext
  16486. cat >>conftest.$ac_ext <<_ACEOF
  16487. /* end confdefs.h. */
  16488. /* Override any GCC internal prototype to avoid an error.
  16489. Use char because int might match the return type of a GCC
  16490. builtin and then its argument prototype would still apply. */
  16491. #ifdef __cplusplus
  16492. extern "C"
  16493. #endif
  16494. char resolv ();
  16495. int
  16496. main ()
  16497. {
  16498. return resolv ();
  16499. ;
  16500. return 0;
  16501. }
  16502. _ACEOF
  16503. rm -f conftest.$ac_objext conftest$ac_exeext
  16504. if { (ac_try="$ac_link"
  16505. case "(($ac_try" in
  16506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16507. *) ac_try_echo=$ac_try;;
  16508. esac
  16509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16510. $as_echo "$ac_try_echo") >&5
  16511. (eval "$ac_link") 2>conftest.er1
  16512. ac_status=$?
  16513. grep -v '^ *+' conftest.er1 >conftest.err
  16514. rm -f conftest.er1
  16515. cat conftest.err >&5
  16516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16517. (exit $ac_status); } && {
  16518. test -z "$ac_c_werror_flag" ||
  16519. test ! -s conftest.err
  16520. } && test -s conftest$ac_exeext && {
  16521. test "$cross_compiling" = yes ||
  16522. $as_test_x conftest$ac_exeext
  16523. }; then
  16524. ac_cv_lib_resolv_resolv=yes
  16525. else
  16526. $as_echo "$as_me: failed program was:" >&5
  16527. sed 's/^/| /' conftest.$ac_ext >&5
  16528. ac_cv_lib_resolv_resolv=no
  16529. fi
  16530. rm -rf conftest.dSYM
  16531. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16532. conftest$ac_exeext conftest.$ac_ext
  16533. LIBS=$ac_check_lib_save_LIBS
  16534. fi
  16535. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_resolv" >&5
  16536. $as_echo "$ac_cv_lib_resolv_resolv" >&6; }
  16537. if test "x$ac_cv_lib_resolv_resolv" = x""yes; then
  16538. cat >>confdefs.h <<_ACEOF
  16539. #define HAVE_LIBRESOLV 1
  16540. _ACEOF
  16541. LIBS="-lresolv $LIBS"
  16542. fi
  16543. for ac_header in stdlib.h
  16544. do
  16545. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16546. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16547. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16548. $as_echo_n "checking for $ac_header... " >&6; }
  16549. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16550. $as_echo_n "(cached) " >&6
  16551. fi
  16552. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16553. $as_echo "$as_val"'`
  16554. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16555. $as_echo "$ac_res" >&6; }
  16556. else
  16557. # Is the header compilable?
  16558. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16559. $as_echo_n "checking $ac_header usability... " >&6; }
  16560. cat >conftest.$ac_ext <<_ACEOF
  16561. /* confdefs.h. */
  16562. _ACEOF
  16563. cat confdefs.h >>conftest.$ac_ext
  16564. cat >>conftest.$ac_ext <<_ACEOF
  16565. /* end confdefs.h. */
  16566. $ac_includes_default
  16567. #include <$ac_header>
  16568. _ACEOF
  16569. rm -f conftest.$ac_objext
  16570. if { (ac_try="$ac_compile"
  16571. case "(($ac_try" in
  16572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16573. *) ac_try_echo=$ac_try;;
  16574. esac
  16575. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16576. $as_echo "$ac_try_echo") >&5
  16577. (eval "$ac_compile") 2>conftest.er1
  16578. ac_status=$?
  16579. grep -v '^ *+' conftest.er1 >conftest.err
  16580. rm -f conftest.er1
  16581. cat conftest.err >&5
  16582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16583. (exit $ac_status); } && {
  16584. test -z "$ac_c_werror_flag" ||
  16585. test ! -s conftest.err
  16586. } && test -s conftest.$ac_objext; then
  16587. ac_header_compiler=yes
  16588. else
  16589. $as_echo "$as_me: failed program was:" >&5
  16590. sed 's/^/| /' conftest.$ac_ext >&5
  16591. ac_header_compiler=no
  16592. fi
  16593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16594. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16595. $as_echo "$ac_header_compiler" >&6; }
  16596. # Is the header present?
  16597. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16598. $as_echo_n "checking $ac_header presence... " >&6; }
  16599. cat >conftest.$ac_ext <<_ACEOF
  16600. /* confdefs.h. */
  16601. _ACEOF
  16602. cat confdefs.h >>conftest.$ac_ext
  16603. cat >>conftest.$ac_ext <<_ACEOF
  16604. /* end confdefs.h. */
  16605. #include <$ac_header>
  16606. _ACEOF
  16607. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16608. case "(($ac_try" in
  16609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16610. *) ac_try_echo=$ac_try;;
  16611. esac
  16612. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16613. $as_echo "$ac_try_echo") >&5
  16614. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16615. ac_status=$?
  16616. grep -v '^ *+' conftest.er1 >conftest.err
  16617. rm -f conftest.er1
  16618. cat conftest.err >&5
  16619. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16620. (exit $ac_status); } >/dev/null && {
  16621. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16622. test ! -s conftest.err
  16623. }; then
  16624. ac_header_preproc=yes
  16625. else
  16626. $as_echo "$as_me: failed program was:" >&5
  16627. sed 's/^/| /' conftest.$ac_ext >&5
  16628. ac_header_preproc=no
  16629. fi
  16630. rm -f conftest.err conftest.$ac_ext
  16631. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16632. $as_echo "$ac_header_preproc" >&6; }
  16633. # So? What about this header?
  16634. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16635. yes:no: )
  16636. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16637. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16638. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16639. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16640. ac_header_preproc=yes
  16641. ;;
  16642. no:yes:* )
  16643. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16644. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16645. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16646. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16647. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16648. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16649. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16650. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16651. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16652. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16653. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16654. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16655. ;;
  16656. esac
  16657. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16658. $as_echo_n "checking for $ac_header... " >&6; }
  16659. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16660. $as_echo_n "(cached) " >&6
  16661. else
  16662. eval "$as_ac_Header=\$ac_header_preproc"
  16663. fi
  16664. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16665. $as_echo "$as_val"'`
  16666. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16667. $as_echo "$ac_res" >&6; }
  16668. fi
  16669. as_val=`eval 'as_val=${'$as_ac_Header'}
  16670. $as_echo "$as_val"'`
  16671. if test "x$as_val" = x""yes; then
  16672. cat >>confdefs.h <<_ACEOF
  16673. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16674. _ACEOF
  16675. fi
  16676. done
  16677. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16678. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  16679. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16680. $as_echo_n "(cached) " >&6
  16681. else
  16682. if test "$cross_compiling" = yes; then
  16683. ac_cv_func_malloc_0_nonnull=no
  16684. else
  16685. cat >conftest.$ac_ext <<_ACEOF
  16686. /* confdefs.h. */
  16687. _ACEOF
  16688. cat confdefs.h >>conftest.$ac_ext
  16689. cat >>conftest.$ac_ext <<_ACEOF
  16690. /* end confdefs.h. */
  16691. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16692. # include <stdlib.h>
  16693. #else
  16694. char *malloc ();
  16695. #endif
  16696. int
  16697. main ()
  16698. {
  16699. return ! malloc (0);
  16700. ;
  16701. return 0;
  16702. }
  16703. _ACEOF
  16704. rm -f conftest$ac_exeext
  16705. if { (ac_try="$ac_link"
  16706. case "(($ac_try" in
  16707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16708. *) ac_try_echo=$ac_try;;
  16709. esac
  16710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16711. $as_echo "$ac_try_echo") >&5
  16712. (eval "$ac_link") 2>&5
  16713. ac_status=$?
  16714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16715. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16716. { (case "(($ac_try" in
  16717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16718. *) ac_try_echo=$ac_try;;
  16719. esac
  16720. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16721. $as_echo "$ac_try_echo") >&5
  16722. (eval "$ac_try") 2>&5
  16723. ac_status=$?
  16724. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16725. (exit $ac_status); }; }; then
  16726. ac_cv_func_malloc_0_nonnull=yes
  16727. else
  16728. $as_echo "$as_me: program exited with status $ac_status" >&5
  16729. $as_echo "$as_me: failed program was:" >&5
  16730. sed 's/^/| /' conftest.$ac_ext >&5
  16731. ( exit $ac_status )
  16732. ac_cv_func_malloc_0_nonnull=no
  16733. fi
  16734. rm -rf conftest.dSYM
  16735. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16736. fi
  16737. fi
  16738. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16739. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  16740. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16741. cat >>confdefs.h <<\_ACEOF
  16742. #define HAVE_MALLOC 1
  16743. _ACEOF
  16744. else
  16745. cat >>confdefs.h <<\_ACEOF
  16746. #define HAVE_MALLOC 0
  16747. _ACEOF
  16748. case " $LIBOBJS " in
  16749. *" malloc.$ac_objext "* ) ;;
  16750. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16751. ;;
  16752. esac
  16753. cat >>confdefs.h <<\_ACEOF
  16754. #define malloc rpl_malloc
  16755. _ACEOF
  16756. fi
  16757. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  16758. $as_echo_n "checking for working memcmp... " >&6; }
  16759. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16760. $as_echo_n "(cached) " >&6
  16761. else
  16762. if test "$cross_compiling" = yes; then
  16763. ac_cv_func_memcmp_working=no
  16764. else
  16765. cat >conftest.$ac_ext <<_ACEOF
  16766. /* confdefs.h. */
  16767. _ACEOF
  16768. cat confdefs.h >>conftest.$ac_ext
  16769. cat >>conftest.$ac_ext <<_ACEOF
  16770. /* end confdefs.h. */
  16771. $ac_includes_default
  16772. int
  16773. main ()
  16774. {
  16775. /* Some versions of memcmp are not 8-bit clean. */
  16776. char c0 = '\100', c1 = '\200', c2 = '\201';
  16777. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16778. return 1;
  16779. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16780. or more and with at least one buffer not starting on a 4-byte boundary.
  16781. William Lewis provided this test program. */
  16782. {
  16783. char foo[21];
  16784. char bar[21];
  16785. int i;
  16786. for (i = 0; i < 4; i++)
  16787. {
  16788. char *a = foo + i;
  16789. char *b = bar + i;
  16790. strcpy (a, "--------01111111");
  16791. strcpy (b, "--------10000000");
  16792. if (memcmp (a, b, 16) >= 0)
  16793. return 1;
  16794. }
  16795. return 0;
  16796. }
  16797. ;
  16798. return 0;
  16799. }
  16800. _ACEOF
  16801. rm -f conftest$ac_exeext
  16802. if { (ac_try="$ac_link"
  16803. case "(($ac_try" in
  16804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16805. *) ac_try_echo=$ac_try;;
  16806. esac
  16807. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16808. $as_echo "$ac_try_echo") >&5
  16809. (eval "$ac_link") 2>&5
  16810. ac_status=$?
  16811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16812. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16813. { (case "(($ac_try" in
  16814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16815. *) ac_try_echo=$ac_try;;
  16816. esac
  16817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16818. $as_echo "$ac_try_echo") >&5
  16819. (eval "$ac_try") 2>&5
  16820. ac_status=$?
  16821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16822. (exit $ac_status); }; }; then
  16823. ac_cv_func_memcmp_working=yes
  16824. else
  16825. $as_echo "$as_me: program exited with status $ac_status" >&5
  16826. $as_echo "$as_me: failed program was:" >&5
  16827. sed 's/^/| /' conftest.$ac_ext >&5
  16828. ( exit $ac_status )
  16829. ac_cv_func_memcmp_working=no
  16830. fi
  16831. rm -rf conftest.dSYM
  16832. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16833. fi
  16834. fi
  16835. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16836. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16837. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16838. *" memcmp.$ac_objext "* ) ;;
  16839. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16840. ;;
  16841. esac
  16842. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  16843. $as_echo_n "checking return type of signal handlers... " >&6; }
  16844. if test "${ac_cv_type_signal+set}" = set; then
  16845. $as_echo_n "(cached) " >&6
  16846. else
  16847. cat >conftest.$ac_ext <<_ACEOF
  16848. /* confdefs.h. */
  16849. _ACEOF
  16850. cat confdefs.h >>conftest.$ac_ext
  16851. cat >>conftest.$ac_ext <<_ACEOF
  16852. /* end confdefs.h. */
  16853. #include <sys/types.h>
  16854. #include <signal.h>
  16855. int
  16856. main ()
  16857. {
  16858. return *(signal (0, 0)) (0) == 1;
  16859. ;
  16860. return 0;
  16861. }
  16862. _ACEOF
  16863. rm -f conftest.$ac_objext
  16864. if { (ac_try="$ac_compile"
  16865. case "(($ac_try" in
  16866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16867. *) ac_try_echo=$ac_try;;
  16868. esac
  16869. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16870. $as_echo "$ac_try_echo") >&5
  16871. (eval "$ac_compile") 2>conftest.er1
  16872. ac_status=$?
  16873. grep -v '^ *+' conftest.er1 >conftest.err
  16874. rm -f conftest.er1
  16875. cat conftest.err >&5
  16876. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16877. (exit $ac_status); } && {
  16878. test -z "$ac_c_werror_flag" ||
  16879. test ! -s conftest.err
  16880. } && test -s conftest.$ac_objext; then
  16881. ac_cv_type_signal=int
  16882. else
  16883. $as_echo "$as_me: failed program was:" >&5
  16884. sed 's/^/| /' conftest.$ac_ext >&5
  16885. ac_cv_type_signal=void
  16886. fi
  16887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16888. fi
  16889. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  16890. $as_echo "$ac_cv_type_signal" >&6; }
  16891. cat >>confdefs.h <<_ACEOF
  16892. #define RETSIGTYPE $ac_cv_type_signal
  16893. _ACEOF
  16894. for ac_func in vprintf
  16895. do
  16896. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16897. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16898. $as_echo_n "checking for $ac_func... " >&6; }
  16899. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16900. $as_echo_n "(cached) " >&6
  16901. else
  16902. cat >conftest.$ac_ext <<_ACEOF
  16903. /* confdefs.h. */
  16904. _ACEOF
  16905. cat confdefs.h >>conftest.$ac_ext
  16906. cat >>conftest.$ac_ext <<_ACEOF
  16907. /* end confdefs.h. */
  16908. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16909. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16910. #define $ac_func innocuous_$ac_func
  16911. /* System header to define __stub macros and hopefully few prototypes,
  16912. which can conflict with char $ac_func (); below.
  16913. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16914. <limits.h> exists even on freestanding compilers. */
  16915. #ifdef __STDC__
  16916. # include <limits.h>
  16917. #else
  16918. # include <assert.h>
  16919. #endif
  16920. #undef $ac_func
  16921. /* Override any GCC internal prototype to avoid an error.
  16922. Use char because int might match the return type of a GCC
  16923. builtin and then its argument prototype would still apply. */
  16924. #ifdef __cplusplus
  16925. extern "C"
  16926. #endif
  16927. char $ac_func ();
  16928. /* The GNU C library defines this for functions which it implements
  16929. to always fail with ENOSYS. Some functions are actually named
  16930. something starting with __ and the normal name is an alias. */
  16931. #if defined __stub_$ac_func || defined __stub___$ac_func
  16932. choke me
  16933. #endif
  16934. int
  16935. main ()
  16936. {
  16937. return $ac_func ();
  16938. ;
  16939. return 0;
  16940. }
  16941. _ACEOF
  16942. rm -f conftest.$ac_objext conftest$ac_exeext
  16943. if { (ac_try="$ac_link"
  16944. case "(($ac_try" in
  16945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16946. *) ac_try_echo=$ac_try;;
  16947. esac
  16948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16949. $as_echo "$ac_try_echo") >&5
  16950. (eval "$ac_link") 2>conftest.er1
  16951. ac_status=$?
  16952. grep -v '^ *+' conftest.er1 >conftest.err
  16953. rm -f conftest.er1
  16954. cat conftest.err >&5
  16955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16956. (exit $ac_status); } && {
  16957. test -z "$ac_c_werror_flag" ||
  16958. test ! -s conftest.err
  16959. } && test -s conftest$ac_exeext && {
  16960. test "$cross_compiling" = yes ||
  16961. $as_test_x conftest$ac_exeext
  16962. }; then
  16963. eval "$as_ac_var=yes"
  16964. else
  16965. $as_echo "$as_me: failed program was:" >&5
  16966. sed 's/^/| /' conftest.$ac_ext >&5
  16967. eval "$as_ac_var=no"
  16968. fi
  16969. rm -rf conftest.dSYM
  16970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16971. conftest$ac_exeext conftest.$ac_ext
  16972. fi
  16973. ac_res=`eval 'as_val=${'$as_ac_var'}
  16974. $as_echo "$as_val"'`
  16975. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16976. $as_echo "$ac_res" >&6; }
  16977. as_val=`eval 'as_val=${'$as_ac_var'}
  16978. $as_echo "$as_val"'`
  16979. if test "x$as_val" = x""yes; then
  16980. cat >>confdefs.h <<_ACEOF
  16981. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16982. _ACEOF
  16983. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  16984. $as_echo_n "checking for _doprnt... " >&6; }
  16985. if test "${ac_cv_func__doprnt+set}" = set; then
  16986. $as_echo_n "(cached) " >&6
  16987. else
  16988. cat >conftest.$ac_ext <<_ACEOF
  16989. /* confdefs.h. */
  16990. _ACEOF
  16991. cat confdefs.h >>conftest.$ac_ext
  16992. cat >>conftest.$ac_ext <<_ACEOF
  16993. /* end confdefs.h. */
  16994. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  16995. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16996. #define _doprnt innocuous__doprnt
  16997. /* System header to define __stub macros and hopefully few prototypes,
  16998. which can conflict with char _doprnt (); below.
  16999. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17000. <limits.h> exists even on freestanding compilers. */
  17001. #ifdef __STDC__
  17002. # include <limits.h>
  17003. #else
  17004. # include <assert.h>
  17005. #endif
  17006. #undef _doprnt
  17007. /* Override any GCC internal prototype to avoid an error.
  17008. Use char because int might match the return type of a GCC
  17009. builtin and then its argument prototype would still apply. */
  17010. #ifdef __cplusplus
  17011. extern "C"
  17012. #endif
  17013. char _doprnt ();
  17014. /* The GNU C library defines this for functions which it implements
  17015. to always fail with ENOSYS. Some functions are actually named
  17016. something starting with __ and the normal name is an alias. */
  17017. #if defined __stub__doprnt || defined __stub____doprnt
  17018. choke me
  17019. #endif
  17020. int
  17021. main ()
  17022. {
  17023. return _doprnt ();
  17024. ;
  17025. return 0;
  17026. }
  17027. _ACEOF
  17028. rm -f conftest.$ac_objext conftest$ac_exeext
  17029. if { (ac_try="$ac_link"
  17030. case "(($ac_try" in
  17031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17032. *) ac_try_echo=$ac_try;;
  17033. esac
  17034. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17035. $as_echo "$ac_try_echo") >&5
  17036. (eval "$ac_link") 2>conftest.er1
  17037. ac_status=$?
  17038. grep -v '^ *+' conftest.er1 >conftest.err
  17039. rm -f conftest.er1
  17040. cat conftest.err >&5
  17041. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17042. (exit $ac_status); } && {
  17043. test -z "$ac_c_werror_flag" ||
  17044. test ! -s conftest.err
  17045. } && test -s conftest$ac_exeext && {
  17046. test "$cross_compiling" = yes ||
  17047. $as_test_x conftest$ac_exeext
  17048. }; then
  17049. ac_cv_func__doprnt=yes
  17050. else
  17051. $as_echo "$as_me: failed program was:" >&5
  17052. sed 's/^/| /' conftest.$ac_ext >&5
  17053. ac_cv_func__doprnt=no
  17054. fi
  17055. rm -rf conftest.dSYM
  17056. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17057. conftest$ac_exeext conftest.$ac_ext
  17058. fi
  17059. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17060. $as_echo "$ac_cv_func__doprnt" >&6; }
  17061. if test "x$ac_cv_func__doprnt" = x""yes; then
  17062. cat >>confdefs.h <<\_ACEOF
  17063. #define HAVE_DOPRNT 1
  17064. _ACEOF
  17065. fi
  17066. fi
  17067. done
  17068. { $as_echo "$as_me:$LINENO: checking for struct timeval.tv_sec" >&5
  17069. $as_echo_n "checking for struct timeval.tv_sec... " >&6; }
  17070. if test "${ac_cv_member_struct_timeval_tv_sec+set}" = set; then
  17071. $as_echo_n "(cached) " >&6
  17072. else
  17073. cat >conftest.$ac_ext <<_ACEOF
  17074. /* confdefs.h. */
  17075. _ACEOF
  17076. cat confdefs.h >>conftest.$ac_ext
  17077. cat >>conftest.$ac_ext <<_ACEOF
  17078. /* end confdefs.h. */
  17079. $ac_includes_default
  17080. int
  17081. main ()
  17082. {
  17083. static struct timeval ac_aggr;
  17084. if (ac_aggr.tv_sec)
  17085. return 0;
  17086. ;
  17087. return 0;
  17088. }
  17089. _ACEOF
  17090. rm -f conftest.$ac_objext
  17091. if { (ac_try="$ac_compile"
  17092. case "(($ac_try" in
  17093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17094. *) ac_try_echo=$ac_try;;
  17095. esac
  17096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17097. $as_echo "$ac_try_echo") >&5
  17098. (eval "$ac_compile") 2>conftest.er1
  17099. ac_status=$?
  17100. grep -v '^ *+' conftest.er1 >conftest.err
  17101. rm -f conftest.er1
  17102. cat conftest.err >&5
  17103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17104. (exit $ac_status); } && {
  17105. test -z "$ac_c_werror_flag" ||
  17106. test ! -s conftest.err
  17107. } && test -s conftest.$ac_objext; then
  17108. ac_cv_member_struct_timeval_tv_sec=yes
  17109. else
  17110. $as_echo "$as_me: failed program was:" >&5
  17111. sed 's/^/| /' conftest.$ac_ext >&5
  17112. cat >conftest.$ac_ext <<_ACEOF
  17113. /* confdefs.h. */
  17114. _ACEOF
  17115. cat confdefs.h >>conftest.$ac_ext
  17116. cat >>conftest.$ac_ext <<_ACEOF
  17117. /* end confdefs.h. */
  17118. $ac_includes_default
  17119. int
  17120. main ()
  17121. {
  17122. static struct timeval ac_aggr;
  17123. if (sizeof ac_aggr.tv_sec)
  17124. return 0;
  17125. ;
  17126. return 0;
  17127. }
  17128. _ACEOF
  17129. rm -f conftest.$ac_objext
  17130. if { (ac_try="$ac_compile"
  17131. case "(($ac_try" in
  17132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17133. *) ac_try_echo=$ac_try;;
  17134. esac
  17135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17136. $as_echo "$ac_try_echo") >&5
  17137. (eval "$ac_compile") 2>conftest.er1
  17138. ac_status=$?
  17139. grep -v '^ *+' conftest.er1 >conftest.err
  17140. rm -f conftest.er1
  17141. cat conftest.err >&5
  17142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17143. (exit $ac_status); } && {
  17144. test -z "$ac_c_werror_flag" ||
  17145. test ! -s conftest.err
  17146. } && test -s conftest.$ac_objext; then
  17147. ac_cv_member_struct_timeval_tv_sec=yes
  17148. else
  17149. $as_echo "$as_me: failed program was:" >&5
  17150. sed 's/^/| /' conftest.$ac_ext >&5
  17151. ac_cv_member_struct_timeval_tv_sec=no
  17152. fi
  17153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17154. fi
  17155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17156. fi
  17157. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_timeval_tv_sec" >&5
  17158. $as_echo "$ac_cv_member_struct_timeval_tv_sec" >&6; }
  17159. if test "x$ac_cv_member_struct_timeval_tv_sec" = x""yes; then
  17160. cat >>confdefs.h <<_ACEOF
  17161. #define HAVE_STRUCT_TIMEVAL_TV_SEC 1
  17162. _ACEOF
  17163. fi
  17164. for ac_func in gettimeofday ctime memset regcomp strdup strchr strerror strtol strncpy strtoull poll ntohll mmap snprintf vsnprintf strsignal
  17165. do
  17166. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17167. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17168. $as_echo_n "checking for $ac_func... " >&6; }
  17169. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17170. $as_echo_n "(cached) " >&6
  17171. else
  17172. cat >conftest.$ac_ext <<_ACEOF
  17173. /* confdefs.h. */
  17174. _ACEOF
  17175. cat confdefs.h >>conftest.$ac_ext
  17176. cat >>conftest.$ac_ext <<_ACEOF
  17177. /* end confdefs.h. */
  17178. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17179. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17180. #define $ac_func innocuous_$ac_func
  17181. /* System header to define __stub macros and hopefully few prototypes,
  17182. which can conflict with char $ac_func (); below.
  17183. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17184. <limits.h> exists even on freestanding compilers. */
  17185. #ifdef __STDC__
  17186. # include <limits.h>
  17187. #else
  17188. # include <assert.h>
  17189. #endif
  17190. #undef $ac_func
  17191. /* Override any GCC internal prototype to avoid an error.
  17192. Use char because int might match the return type of a GCC
  17193. builtin and then its argument prototype would still apply. */
  17194. #ifdef __cplusplus
  17195. extern "C"
  17196. #endif
  17197. char $ac_func ();
  17198. /* The GNU C library defines this for functions which it implements
  17199. to always fail with ENOSYS. Some functions are actually named
  17200. something starting with __ and the normal name is an alias. */
  17201. #if defined __stub_$ac_func || defined __stub___$ac_func
  17202. choke me
  17203. #endif
  17204. int
  17205. main ()
  17206. {
  17207. return $ac_func ();
  17208. ;
  17209. return 0;
  17210. }
  17211. _ACEOF
  17212. rm -f conftest.$ac_objext conftest$ac_exeext
  17213. if { (ac_try="$ac_link"
  17214. case "(($ac_try" in
  17215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17216. *) ac_try_echo=$ac_try;;
  17217. esac
  17218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17219. $as_echo "$ac_try_echo") >&5
  17220. (eval "$ac_link") 2>conftest.er1
  17221. ac_status=$?
  17222. grep -v '^ *+' conftest.er1 >conftest.err
  17223. rm -f conftest.er1
  17224. cat conftest.err >&5
  17225. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17226. (exit $ac_status); } && {
  17227. test -z "$ac_c_werror_flag" ||
  17228. test ! -s conftest.err
  17229. } && test -s conftest$ac_exeext && {
  17230. test "$cross_compiling" = yes ||
  17231. $as_test_x conftest$ac_exeext
  17232. }; then
  17233. eval "$as_ac_var=yes"
  17234. else
  17235. $as_echo "$as_me: failed program was:" >&5
  17236. sed 's/^/| /' conftest.$ac_ext >&5
  17237. eval "$as_ac_var=no"
  17238. fi
  17239. rm -rf conftest.dSYM
  17240. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17241. conftest$ac_exeext conftest.$ac_ext
  17242. fi
  17243. ac_res=`eval 'as_val=${'$as_ac_var'}
  17244. $as_echo "$as_val"'`
  17245. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17246. $as_echo "$ac_res" >&6; }
  17247. as_val=`eval 'as_val=${'$as_ac_var'}
  17248. $as_echo "$as_val"'`
  17249. if test "x$as_val" = x""yes; then
  17250. cat >>confdefs.h <<_ACEOF
  17251. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17252. _ACEOF
  17253. fi
  17254. done
  17255. for ac_func in strlcpy
  17256. do
  17257. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17258. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17259. $as_echo_n "checking for $ac_func... " >&6; }
  17260. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17261. $as_echo_n "(cached) " >&6
  17262. else
  17263. cat >conftest.$ac_ext <<_ACEOF
  17264. /* confdefs.h. */
  17265. _ACEOF
  17266. cat confdefs.h >>conftest.$ac_ext
  17267. cat >>conftest.$ac_ext <<_ACEOF
  17268. /* end confdefs.h. */
  17269. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17270. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17271. #define $ac_func innocuous_$ac_func
  17272. /* System header to define __stub macros and hopefully few prototypes,
  17273. which can conflict with char $ac_func (); below.
  17274. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17275. <limits.h> exists even on freestanding compilers. */
  17276. #ifdef __STDC__
  17277. # include <limits.h>
  17278. #else
  17279. # include <assert.h>
  17280. #endif
  17281. #undef $ac_func
  17282. /* Override any GCC internal prototype to avoid an error.
  17283. Use char because int might match the return type of a GCC
  17284. builtin and then its argument prototype would still apply. */
  17285. #ifdef __cplusplus
  17286. extern "C"
  17287. #endif
  17288. char $ac_func ();
  17289. /* The GNU C library defines this for functions which it implements
  17290. to always fail with ENOSYS. Some functions are actually named
  17291. something starting with __ and the normal name is an alias. */
  17292. #if defined __stub_$ac_func || defined __stub___$ac_func
  17293. choke me
  17294. #endif
  17295. int
  17296. main ()
  17297. {
  17298. return $ac_func ();
  17299. ;
  17300. return 0;
  17301. }
  17302. _ACEOF
  17303. rm -f conftest.$ac_objext conftest$ac_exeext
  17304. if { (ac_try="$ac_link"
  17305. case "(($ac_try" in
  17306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17307. *) ac_try_echo=$ac_try;;
  17308. esac
  17309. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17310. $as_echo "$ac_try_echo") >&5
  17311. (eval "$ac_link") 2>conftest.er1
  17312. ac_status=$?
  17313. grep -v '^ *+' conftest.er1 >conftest.err
  17314. rm -f conftest.er1
  17315. cat conftest.err >&5
  17316. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17317. (exit $ac_status); } && {
  17318. test -z "$ac_c_werror_flag" ||
  17319. test ! -s conftest.err
  17320. } && test -s conftest$ac_exeext && {
  17321. test "$cross_compiling" = yes ||
  17322. $as_test_x conftest$ac_exeext
  17323. }; then
  17324. eval "$as_ac_var=yes"
  17325. else
  17326. $as_echo "$as_me: failed program was:" >&5
  17327. sed 's/^/| /' conftest.$ac_ext >&5
  17328. eval "$as_ac_var=no"
  17329. fi
  17330. rm -rf conftest.dSYM
  17331. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17332. conftest$ac_exeext conftest.$ac_ext
  17333. fi
  17334. ac_res=`eval 'as_val=${'$as_ac_var'}
  17335. $as_echo "$as_val"'`
  17336. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17337. $as_echo "$ac_res" >&6; }
  17338. as_val=`eval 'as_val=${'$as_ac_var'}
  17339. $as_echo "$as_val"'`
  17340. if test "x$as_val" = x""yes; then
  17341. cat >>confdefs.h <<_ACEOF
  17342. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17343. _ACEOF
  17344. have_strlcpy=true
  17345. else
  17346. have_strlcpy=false
  17347. fi
  17348. done
  17349. if test x$have_strlcpy = xtrue; then
  17350. SYSTEM_STRLCPY_TRUE=
  17351. SYSTEM_STRLCPY_FALSE='#'
  17352. else
  17353. SYSTEM_STRLCPY_TRUE='#'
  17354. SYSTEM_STRLCPY_FALSE=
  17355. fi
  17356. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  17357. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  17358. if test "${ac_cv_c_bigendian+set}" = set; then
  17359. $as_echo_n "(cached) " >&6
  17360. else
  17361. ac_cv_c_bigendian=unknown
  17362. # See if we're dealing with a universal compiler.
  17363. cat >conftest.$ac_ext <<_ACEOF
  17364. /* confdefs.h. */
  17365. _ACEOF
  17366. cat confdefs.h >>conftest.$ac_ext
  17367. cat >>conftest.$ac_ext <<_ACEOF
  17368. /* end confdefs.h. */
  17369. #ifndef __APPLE_CC__
  17370. not a universal capable compiler
  17371. #endif
  17372. typedef int dummy;
  17373. _ACEOF
  17374. rm -f conftest.$ac_objext
  17375. if { (ac_try="$ac_compile"
  17376. case "(($ac_try" in
  17377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17378. *) ac_try_echo=$ac_try;;
  17379. esac
  17380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17381. $as_echo "$ac_try_echo") >&5
  17382. (eval "$ac_compile") 2>conftest.er1
  17383. ac_status=$?
  17384. grep -v '^ *+' conftest.er1 >conftest.err
  17385. rm -f conftest.er1
  17386. cat conftest.err >&5
  17387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17388. (exit $ac_status); } && {
  17389. test -z "$ac_c_werror_flag" ||
  17390. test ! -s conftest.err
  17391. } && test -s conftest.$ac_objext; then
  17392. # Check for potential -arch flags. It is not universal unless
  17393. # there are some -arch flags. Note that *ppc* also matches
  17394. # ppc64. This check is also rather less than ideal.
  17395. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  17396. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  17397. esac
  17398. else
  17399. $as_echo "$as_me: failed program was:" >&5
  17400. sed 's/^/| /' conftest.$ac_ext >&5
  17401. fi
  17402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17403. if test $ac_cv_c_bigendian = unknown; then
  17404. # See if sys/param.h defines the BYTE_ORDER macro.
  17405. cat >conftest.$ac_ext <<_ACEOF
  17406. /* confdefs.h. */
  17407. _ACEOF
  17408. cat confdefs.h >>conftest.$ac_ext
  17409. cat >>conftest.$ac_ext <<_ACEOF
  17410. /* end confdefs.h. */
  17411. #include <sys/types.h>
  17412. #include <sys/param.h>
  17413. int
  17414. main ()
  17415. {
  17416. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  17417. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  17418. && LITTLE_ENDIAN)
  17419. bogus endian macros
  17420. #endif
  17421. ;
  17422. return 0;
  17423. }
  17424. _ACEOF
  17425. rm -f conftest.$ac_objext
  17426. if { (ac_try="$ac_compile"
  17427. case "(($ac_try" in
  17428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17429. *) ac_try_echo=$ac_try;;
  17430. esac
  17431. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17432. $as_echo "$ac_try_echo") >&5
  17433. (eval "$ac_compile") 2>conftest.er1
  17434. ac_status=$?
  17435. grep -v '^ *+' conftest.er1 >conftest.err
  17436. rm -f conftest.er1
  17437. cat conftest.err >&5
  17438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17439. (exit $ac_status); } && {
  17440. test -z "$ac_c_werror_flag" ||
  17441. test ! -s conftest.err
  17442. } && test -s conftest.$ac_objext; then
  17443. # It does; now see whether it defined to BIG_ENDIAN or not.
  17444. cat >conftest.$ac_ext <<_ACEOF
  17445. /* confdefs.h. */
  17446. _ACEOF
  17447. cat confdefs.h >>conftest.$ac_ext
  17448. cat >>conftest.$ac_ext <<_ACEOF
  17449. /* end confdefs.h. */
  17450. #include <sys/types.h>
  17451. #include <sys/param.h>
  17452. int
  17453. main ()
  17454. {
  17455. #if BYTE_ORDER != BIG_ENDIAN
  17456. not big endian
  17457. #endif
  17458. ;
  17459. return 0;
  17460. }
  17461. _ACEOF
  17462. rm -f conftest.$ac_objext
  17463. if { (ac_try="$ac_compile"
  17464. case "(($ac_try" in
  17465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17466. *) ac_try_echo=$ac_try;;
  17467. esac
  17468. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17469. $as_echo "$ac_try_echo") >&5
  17470. (eval "$ac_compile") 2>conftest.er1
  17471. ac_status=$?
  17472. grep -v '^ *+' conftest.er1 >conftest.err
  17473. rm -f conftest.er1
  17474. cat conftest.err >&5
  17475. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17476. (exit $ac_status); } && {
  17477. test -z "$ac_c_werror_flag" ||
  17478. test ! -s conftest.err
  17479. } && test -s conftest.$ac_objext; then
  17480. ac_cv_c_bigendian=yes
  17481. else
  17482. $as_echo "$as_me: failed program was:" >&5
  17483. sed 's/^/| /' conftest.$ac_ext >&5
  17484. ac_cv_c_bigendian=no
  17485. fi
  17486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17487. else
  17488. $as_echo "$as_me: failed program was:" >&5
  17489. sed 's/^/| /' conftest.$ac_ext >&5
  17490. fi
  17491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17492. fi
  17493. if test $ac_cv_c_bigendian = unknown; then
  17494. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  17495. cat >conftest.$ac_ext <<_ACEOF
  17496. /* confdefs.h. */
  17497. _ACEOF
  17498. cat confdefs.h >>conftest.$ac_ext
  17499. cat >>conftest.$ac_ext <<_ACEOF
  17500. /* end confdefs.h. */
  17501. #include <limits.h>
  17502. int
  17503. main ()
  17504. {
  17505. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  17506. bogus endian macros
  17507. #endif
  17508. ;
  17509. return 0;
  17510. }
  17511. _ACEOF
  17512. rm -f conftest.$ac_objext
  17513. if { (ac_try="$ac_compile"
  17514. case "(($ac_try" in
  17515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17516. *) ac_try_echo=$ac_try;;
  17517. esac
  17518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17519. $as_echo "$ac_try_echo") >&5
  17520. (eval "$ac_compile") 2>conftest.er1
  17521. ac_status=$?
  17522. grep -v '^ *+' conftest.er1 >conftest.err
  17523. rm -f conftest.er1
  17524. cat conftest.err >&5
  17525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17526. (exit $ac_status); } && {
  17527. test -z "$ac_c_werror_flag" ||
  17528. test ! -s conftest.err
  17529. } && test -s conftest.$ac_objext; then
  17530. # It does; now see whether it defined to _BIG_ENDIAN or not.
  17531. cat >conftest.$ac_ext <<_ACEOF
  17532. /* confdefs.h. */
  17533. _ACEOF
  17534. cat confdefs.h >>conftest.$ac_ext
  17535. cat >>conftest.$ac_ext <<_ACEOF
  17536. /* end confdefs.h. */
  17537. #include <limits.h>
  17538. int
  17539. main ()
  17540. {
  17541. #ifndef _BIG_ENDIAN
  17542. not big endian
  17543. #endif
  17544. ;
  17545. return 0;
  17546. }
  17547. _ACEOF
  17548. rm -f conftest.$ac_objext
  17549. if { (ac_try="$ac_compile"
  17550. case "(($ac_try" in
  17551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17552. *) ac_try_echo=$ac_try;;
  17553. esac
  17554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17555. $as_echo "$ac_try_echo") >&5
  17556. (eval "$ac_compile") 2>conftest.er1
  17557. ac_status=$?
  17558. grep -v '^ *+' conftest.er1 >conftest.err
  17559. rm -f conftest.er1
  17560. cat conftest.err >&5
  17561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17562. (exit $ac_status); } && {
  17563. test -z "$ac_c_werror_flag" ||
  17564. test ! -s conftest.err
  17565. } && test -s conftest.$ac_objext; then
  17566. ac_cv_c_bigendian=yes
  17567. else
  17568. $as_echo "$as_me: failed program was:" >&5
  17569. sed 's/^/| /' conftest.$ac_ext >&5
  17570. ac_cv_c_bigendian=no
  17571. fi
  17572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17573. else
  17574. $as_echo "$as_me: failed program was:" >&5
  17575. sed 's/^/| /' conftest.$ac_ext >&5
  17576. fi
  17577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17578. fi
  17579. if test $ac_cv_c_bigendian = unknown; then
  17580. # Compile a test program.
  17581. if test "$cross_compiling" = yes; then
  17582. # Try to guess by grepping values from an object file.
  17583. cat >conftest.$ac_ext <<_ACEOF
  17584. /* confdefs.h. */
  17585. _ACEOF
  17586. cat confdefs.h >>conftest.$ac_ext
  17587. cat >>conftest.$ac_ext <<_ACEOF
  17588. /* end confdefs.h. */
  17589. short int ascii_mm[] =
  17590. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  17591. short int ascii_ii[] =
  17592. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  17593. int use_ascii (int i) {
  17594. return ascii_mm[i] + ascii_ii[i];
  17595. }
  17596. short int ebcdic_ii[] =
  17597. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  17598. short int ebcdic_mm[] =
  17599. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  17600. int use_ebcdic (int i) {
  17601. return ebcdic_mm[i] + ebcdic_ii[i];
  17602. }
  17603. extern int foo;
  17604. int
  17605. main ()
  17606. {
  17607. return use_ascii (foo) == use_ebcdic (foo);
  17608. ;
  17609. return 0;
  17610. }
  17611. _ACEOF
  17612. rm -f conftest.$ac_objext
  17613. if { (ac_try="$ac_compile"
  17614. case "(($ac_try" in
  17615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17616. *) ac_try_echo=$ac_try;;
  17617. esac
  17618. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17619. $as_echo "$ac_try_echo") >&5
  17620. (eval "$ac_compile") 2>conftest.er1
  17621. ac_status=$?
  17622. grep -v '^ *+' conftest.er1 >conftest.err
  17623. rm -f conftest.er1
  17624. cat conftest.err >&5
  17625. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17626. (exit $ac_status); } && {
  17627. test -z "$ac_c_werror_flag" ||
  17628. test ! -s conftest.err
  17629. } && test -s conftest.$ac_objext; then
  17630. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  17631. ac_cv_c_bigendian=yes
  17632. fi
  17633. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  17634. if test "$ac_cv_c_bigendian" = unknown; then
  17635. ac_cv_c_bigendian=no
  17636. else
  17637. # finding both strings is unlikely to happen, but who knows?
  17638. ac_cv_c_bigendian=unknown
  17639. fi
  17640. fi
  17641. else
  17642. $as_echo "$as_me: failed program was:" >&5
  17643. sed 's/^/| /' conftest.$ac_ext >&5
  17644. fi
  17645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17646. else
  17647. cat >conftest.$ac_ext <<_ACEOF
  17648. /* confdefs.h. */
  17649. _ACEOF
  17650. cat confdefs.h >>conftest.$ac_ext
  17651. cat >>conftest.$ac_ext <<_ACEOF
  17652. /* end confdefs.h. */
  17653. $ac_includes_default
  17654. int
  17655. main ()
  17656. {
  17657. /* Are we little or big endian? From Harbison&Steele. */
  17658. union
  17659. {
  17660. long int l;
  17661. char c[sizeof (long int)];
  17662. } u;
  17663. u.l = 1;
  17664. return u.c[sizeof (long int) - 1] == 1;
  17665. ;
  17666. return 0;
  17667. }
  17668. _ACEOF
  17669. rm -f conftest$ac_exeext
  17670. if { (ac_try="$ac_link"
  17671. case "(($ac_try" in
  17672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17673. *) ac_try_echo=$ac_try;;
  17674. esac
  17675. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17676. $as_echo "$ac_try_echo") >&5
  17677. (eval "$ac_link") 2>&5
  17678. ac_status=$?
  17679. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17680. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17681. { (case "(($ac_try" in
  17682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17683. *) ac_try_echo=$ac_try;;
  17684. esac
  17685. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17686. $as_echo "$ac_try_echo") >&5
  17687. (eval "$ac_try") 2>&5
  17688. ac_status=$?
  17689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17690. (exit $ac_status); }; }; then
  17691. ac_cv_c_bigendian=no
  17692. else
  17693. $as_echo "$as_me: program exited with status $ac_status" >&5
  17694. $as_echo "$as_me: failed program was:" >&5
  17695. sed 's/^/| /' conftest.$ac_ext >&5
  17696. ( exit $ac_status )
  17697. ac_cv_c_bigendian=yes
  17698. fi
  17699. rm -rf conftest.dSYM
  17700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17701. fi
  17702. fi
  17703. fi
  17704. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  17705. $as_echo "$ac_cv_c_bigendian" >&6; }
  17706. case $ac_cv_c_bigendian in #(
  17707. yes)
  17708. cat >>confdefs.h <<\_ACEOF
  17709. #define WORDS_BIGENDIAN 1
  17710. _ACEOF
  17711. ;; #(
  17712. no)
  17713. ;; #(
  17714. universal)
  17715. cat >>confdefs.h <<\_ACEOF
  17716. #define AC_APPLE_UNIVERSAL_BUILD 1
  17717. _ACEOF
  17718. ;; #(
  17719. *)
  17720. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  17721. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  17722. $as_echo "$as_me: error: unknown endianness
  17723. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  17724. { (exit 1); exit 1; }; } ;;
  17725. esac
  17726. if test x$ac_cv_c_bigendian = xyes ; then
  17727. WORDS_BIGENDIAN_TRUE=
  17728. WORDS_BIGENDIAN_FALSE='#'
  17729. else
  17730. WORDS_BIGENDIAN_TRUE='#'
  17731. WORDS_BIGENDIAN_FALSE=
  17732. fi
  17733. debug=no
  17734. # Check whether --enable-debug was given.
  17735. if test "${enable_debug+set}" = set; then
  17736. enableval=$enable_debug; if test x$enableval = xyes; then
  17737. debug=yes
  17738. CFLAGS="${USER_CFLAGS} -ggdb -std=gnu99 -Wall $wextra $wfatal_errors $wno_variadic_macros"
  17739. # We may also want to add:
  17740. # -Wformat-security -Wswitch-default -Wunused-paramter -Wpadded"
  17741. cat >>confdefs.h <<\_ACEOF
  17742. #define DEBUG 1
  17743. _ACEOF
  17744. fi
  17745. fi
  17746. # Check whether --enable-dmalloc was given.
  17747. if test "${enable_dmalloc+set}" = set; then
  17748. enableval=$enable_dmalloc; if test x$enableval = xyes ; then
  17749. dmalloc=yes
  17750. cat >>confdefs.h <<\_ACEOF
  17751. #define ENABLE_DMALLOC 1
  17752. _ACEOF
  17753. cat >>confdefs.h <<\_ACEOF
  17754. #define DMALLOC_FUNC_CHECK 1
  17755. _ACEOF
  17756. CFLAGS="${CFLAGS} -I/opt/local/include"
  17757. DMALLOC_LIB="/opt/local/lib/libdmalloc.a"
  17758. fi
  17759. fi
  17760. # Check whether --enable-pedantic was given.
  17761. if test "${enable_pedantic+set}" = set; then
  17762. enableval=$enable_pedantic; if test x$enableval = xyes; then
  17763. CFLAGS="$CFLAGS -pedantic"
  17764. fi
  17765. fi
  17766. # Check whether --enable-efence was given.
  17767. if test "${enable_efence+set}" = set; then
  17768. enableval=$enable_efence; if test x$enableval = xyes; then
  17769. CFLAGS="$CFLAGS -lefence"
  17770. cat >>confdefs.h <<\_ACEOF
  17771. #define EFENCE 1
  17772. _ACEOF
  17773. fi
  17774. fi
  17775. # Check whether --enable-gprof was given.
  17776. if test "${enable_gprof+set}" = set; then
  17777. enableval=$enable_gprof; if test x$enableval = xyes; then
  17778. if test $debug = yes; then
  17779. CFLAGS="$CFLAGS -pg"
  17780. else
  17781. # GPROF requires gdb
  17782. CFLAGS="$CFLAGS -ggdb -pg -fprofile-arcs"
  17783. fi
  17784. cat >>confdefs.h <<\_ACEOF
  17785. #define GPROF 1
  17786. _ACEOF
  17787. fi
  17788. fi
  17789. use64bit_counters=yes
  17790. # Check whether --enable-64bits was given.
  17791. if test "${enable_64bits+set}" = set; then
  17792. enableval=$enable_64bits;
  17793. { $as_echo "$as_me:$LINENO: Using u_int32_t for packet counters" >&5
  17794. $as_echo "$as_me: Using u_int32_t for packet counters" >&6;}
  17795. else
  17796. cat >>confdefs.h <<\_ACEOF
  17797. #define ENABLE_64BITS 1
  17798. _ACEOF
  17799. { $as_echo "$as_me:$LINENO: Using u_int64_t for packet counters" >&5
  17800. $as_echo "$as_me: Using u_int64_t for packet counters" >&6;}
  17801. fi
  17802. # If we're running gcc add '-D_U_="__attribute__((unused))"' to CFLAGS as well,
  17803. # so we can use _U_ to flag unused function arguments and not get warnings
  17804. # about them. Otherwise, add '-D_U_=""', so that _U_ used to flag an unused
  17805. # function argument will compile with non-GCC compilers.
  17806. #
  17807. if test "x$GCC" = "xyes" ; then
  17808. CFLAGS="-D_U_=\"__attribute__((unused))\" $CFLAGS"
  17809. else
  17810. CFLAGS="-D_U_=\"\" $CFLAGS"
  17811. fi
  17812. # Check whether --enable-force-bpf was given.
  17813. if test "${enable_force_bpf+set}" = set; then
  17814. enableval=$enable_force_bpf;
  17815. cat >>confdefs.h <<\_ACEOF
  17816. #define FORCE_INJECT_BPF 1
  17817. _ACEOF
  17818. fi
  17819. # Check whether --enable-force-pf was given.
  17820. if test "${enable_force_pf+set}" = set; then
  17821. enableval=$enable_force_pf;
  17822. cat >>confdefs.h <<\_ACEOF
  17823. #define FORCE_INJECT_PF 1
  17824. _ACEOF
  17825. fi
  17826. # Check whether --enable-force-libdnet was given.
  17827. if test "${enable_force_libdnet+set}" = set; then
  17828. enableval=$enable_force_libdnet;
  17829. cat >>confdefs.h <<\_ACEOF
  17830. #define FORCE_INJECT_LIBDNET 1
  17831. _ACEOF
  17832. fi
  17833. # Check whether --enable-force-inject was given.
  17834. if test "${enable_force_inject+set}" = set; then
  17835. enableval=$enable_force_inject;
  17836. cat >>confdefs.h <<\_ACEOF
  17837. #define FORCE_INJECT_PCAP_INJECT 1
  17838. _ACEOF
  17839. fi
  17840. # Check whether --enable-force-sendpacket was given.
  17841. if test "${enable_force_sendpacket+set}" = set; then
  17842. enableval=$enable_force_sendpacket;
  17843. cat >>confdefs.h <<\_ACEOF
  17844. #define FORCE_INJECT_PCAP_SENDPACKET 1
  17845. _ACEOF
  17846. fi
  17847. dynamic_link=no
  17848. # Check whether --enable-dynamic-link was given.
  17849. if test "${enable_dynamic_link+set}" = set; then
  17850. enableval=$enable_dynamic_link; if test x$enableval = xyes; then
  17851. cat >>confdefs.h <<\_ACEOF
  17852. #define ENABLE_DYNAMIC_LINK 1
  17853. _ACEOF
  17854. dynamic_link=yes
  17855. fi
  17856. fi
  17857. { $as_echo "$as_me:$LINENO: checking for inet_aton" >&5
  17858. $as_echo_n "checking for inet_aton... " >&6; }
  17859. if test "${ac_cv_func_inet_aton+set}" = set; then
  17860. $as_echo_n "(cached) " >&6
  17861. else
  17862. cat >conftest.$ac_ext <<_ACEOF
  17863. /* confdefs.h. */
  17864. _ACEOF
  17865. cat confdefs.h >>conftest.$ac_ext
  17866. cat >>conftest.$ac_ext <<_ACEOF
  17867. /* end confdefs.h. */
  17868. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  17869. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17870. #define inet_aton innocuous_inet_aton
  17871. /* System header to define __stub macros and hopefully few prototypes,
  17872. which can conflict with char inet_aton (); below.
  17873. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17874. <limits.h> exists even on freestanding compilers. */
  17875. #ifdef __STDC__
  17876. # include <limits.h>
  17877. #else
  17878. # include <assert.h>
  17879. #endif
  17880. #undef inet_aton
  17881. /* Override any GCC internal prototype to avoid an error.
  17882. Use char because int might match the return type of a GCC
  17883. builtin and then its argument prototype would still apply. */
  17884. #ifdef __cplusplus
  17885. extern "C"
  17886. #endif
  17887. char inet_aton ();
  17888. /* The GNU C library defines this for functions which it implements
  17889. to always fail with ENOSYS. Some functions are actually named
  17890. something starting with __ and the normal name is an alias. */
  17891. #if defined __stub_inet_aton || defined __stub___inet_aton
  17892. choke me
  17893. #endif
  17894. int
  17895. main ()
  17896. {
  17897. return inet_aton ();
  17898. ;
  17899. return 0;
  17900. }
  17901. _ACEOF
  17902. rm -f conftest.$ac_objext conftest$ac_exeext
  17903. if { (ac_try="$ac_link"
  17904. case "(($ac_try" in
  17905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17906. *) ac_try_echo=$ac_try;;
  17907. esac
  17908. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17909. $as_echo "$ac_try_echo") >&5
  17910. (eval "$ac_link") 2>conftest.er1
  17911. ac_status=$?
  17912. grep -v '^ *+' conftest.er1 >conftest.err
  17913. rm -f conftest.er1
  17914. cat conftest.err >&5
  17915. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17916. (exit $ac_status); } && {
  17917. test -z "$ac_c_werror_flag" ||
  17918. test ! -s conftest.err
  17919. } && test -s conftest$ac_exeext && {
  17920. test "$cross_compiling" = yes ||
  17921. $as_test_x conftest$ac_exeext
  17922. }; then
  17923. ac_cv_func_inet_aton=yes
  17924. else
  17925. $as_echo "$as_me: failed program was:" >&5
  17926. sed 's/^/| /' conftest.$ac_ext >&5
  17927. ac_cv_func_inet_aton=no
  17928. fi
  17929. rm -rf conftest.dSYM
  17930. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17931. conftest$ac_exeext conftest.$ac_ext
  17932. fi
  17933. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  17934. $as_echo "$ac_cv_func_inet_aton" >&6; }
  17935. if test "x$ac_cv_func_inet_aton" = x""yes; then
  17936. cat >>confdefs.h <<\_ACEOF
  17937. #define HAVE_INET_ATON 1
  17938. _ACEOF
  17939. inet_aton=yes
  17940. else
  17941. inet_aton=no
  17942. fi
  17943. { $as_echo "$as_me:$LINENO: checking for inet_pton" >&5
  17944. $as_echo_n "checking for inet_pton... " >&6; }
  17945. if test "${ac_cv_func_inet_pton+set}" = set; then
  17946. $as_echo_n "(cached) " >&6
  17947. else
  17948. cat >conftest.$ac_ext <<_ACEOF
  17949. /* confdefs.h. */
  17950. _ACEOF
  17951. cat confdefs.h >>conftest.$ac_ext
  17952. cat >>conftest.$ac_ext <<_ACEOF
  17953. /* end confdefs.h. */
  17954. /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
  17955. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17956. #define inet_pton innocuous_inet_pton
  17957. /* System header to define __stub macros and hopefully few prototypes,
  17958. which can conflict with char inet_pton (); below.
  17959. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17960. <limits.h> exists even on freestanding compilers. */
  17961. #ifdef __STDC__
  17962. # include <limits.h>
  17963. #else
  17964. # include <assert.h>
  17965. #endif
  17966. #undef inet_pton
  17967. /* Override any GCC internal prototype to avoid an error.
  17968. Use char because int might match the return type of a GCC
  17969. builtin and then its argument prototype would still apply. */
  17970. #ifdef __cplusplus
  17971. extern "C"
  17972. #endif
  17973. char inet_pton ();
  17974. /* The GNU C library defines this for functions which it implements
  17975. to always fail with ENOSYS. Some functions are actually named
  17976. something starting with __ and the normal name is an alias. */
  17977. #if defined __stub_inet_pton || defined __stub___inet_pton
  17978. choke me
  17979. #endif
  17980. int
  17981. main ()
  17982. {
  17983. return inet_pton ();
  17984. ;
  17985. return 0;
  17986. }
  17987. _ACEOF
  17988. rm -f conftest.$ac_objext conftest$ac_exeext
  17989. if { (ac_try="$ac_link"
  17990. case "(($ac_try" in
  17991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17992. *) ac_try_echo=$ac_try;;
  17993. esac
  17994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17995. $as_echo "$ac_try_echo") >&5
  17996. (eval "$ac_link") 2>conftest.er1
  17997. ac_status=$?
  17998. grep -v '^ *+' conftest.er1 >conftest.err
  17999. rm -f conftest.er1
  18000. cat conftest.err >&5
  18001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18002. (exit $ac_status); } && {
  18003. test -z "$ac_c_werror_flag" ||
  18004. test ! -s conftest.err
  18005. } && test -s conftest$ac_exeext && {
  18006. test "$cross_compiling" = yes ||
  18007. $as_test_x conftest$ac_exeext
  18008. }; then
  18009. ac_cv_func_inet_pton=yes
  18010. else
  18011. $as_echo "$as_me: failed program was:" >&5
  18012. sed 's/^/| /' conftest.$ac_ext >&5
  18013. ac_cv_func_inet_pton=no
  18014. fi
  18015. rm -rf conftest.dSYM
  18016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18017. conftest$ac_exeext conftest.$ac_ext
  18018. fi
  18019. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
  18020. $as_echo "$ac_cv_func_inet_pton" >&6; }
  18021. if test "x$ac_cv_func_inet_pton" = x""yes; then
  18022. cat >>confdefs.h <<\_ACEOF
  18023. #define HAVE_INET_PTON 1
  18024. _ACEOF
  18025. inet_pton=yes
  18026. else
  18027. inet_pton=no
  18028. fi
  18029. { $as_echo "$as_me:$LINENO: checking for inet_ntop" >&5
  18030. $as_echo_n "checking for inet_ntop... " >&6; }
  18031. if test "${ac_cv_func_inet_ntop+set}" = set; then
  18032. $as_echo_n "(cached) " >&6
  18033. else
  18034. cat >conftest.$ac_ext <<_ACEOF
  18035. /* confdefs.h. */
  18036. _ACEOF
  18037. cat confdefs.h >>conftest.$ac_ext
  18038. cat >>conftest.$ac_ext <<_ACEOF
  18039. /* end confdefs.h. */
  18040. /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop.
  18041. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18042. #define inet_ntop innocuous_inet_ntop
  18043. /* System header to define __stub macros and hopefully few prototypes,
  18044. which can conflict with char inet_ntop (); below.
  18045. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18046. <limits.h> exists even on freestanding compilers. */
  18047. #ifdef __STDC__
  18048. # include <limits.h>
  18049. #else
  18050. # include <assert.h>
  18051. #endif
  18052. #undef inet_ntop
  18053. /* Override any GCC internal prototype to avoid an error.
  18054. Use char because int might match the return type of a GCC
  18055. builtin and then its argument prototype would still apply. */
  18056. #ifdef __cplusplus
  18057. extern "C"
  18058. #endif
  18059. char inet_ntop ();
  18060. /* The GNU C library defines this for functions which it implements
  18061. to always fail with ENOSYS. Some functions are actually named
  18062. something starting with __ and the normal name is an alias. */
  18063. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  18064. choke me
  18065. #endif
  18066. int
  18067. main ()
  18068. {
  18069. return inet_ntop ();
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. rm -f conftest.$ac_objext conftest$ac_exeext
  18075. if { (ac_try="$ac_link"
  18076. case "(($ac_try" in
  18077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18078. *) ac_try_echo=$ac_try;;
  18079. esac
  18080. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18081. $as_echo "$ac_try_echo") >&5
  18082. (eval "$ac_link") 2>conftest.er1
  18083. ac_status=$?
  18084. grep -v '^ *+' conftest.er1 >conftest.err
  18085. rm -f conftest.er1
  18086. cat conftest.err >&5
  18087. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18088. (exit $ac_status); } && {
  18089. test -z "$ac_c_werror_flag" ||
  18090. test ! -s conftest.err
  18091. } && test -s conftest$ac_exeext && {
  18092. test "$cross_compiling" = yes ||
  18093. $as_test_x conftest$ac_exeext
  18094. }; then
  18095. ac_cv_func_inet_ntop=yes
  18096. else
  18097. $as_echo "$as_me: failed program was:" >&5
  18098. sed 's/^/| /' conftest.$ac_ext >&5
  18099. ac_cv_func_inet_ntop=no
  18100. fi
  18101. rm -rf conftest.dSYM
  18102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18103. conftest$ac_exeext conftest.$ac_ext
  18104. fi
  18105. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
  18106. $as_echo "$ac_cv_func_inet_ntop" >&6; }
  18107. if test "x$ac_cv_func_inet_ntop" = x""yes; then
  18108. cat >>confdefs.h <<\_ACEOF
  18109. #define HAVE_INET_NTOP 1
  18110. _ACEOF
  18111. inet_ntop=yes
  18112. else
  18113. inet_ntop=no
  18114. fi
  18115. if test "$inet_ntop" = "no" -a "$inet_pton" = "no" ; then
  18116. { { $as_echo "$as_me:$LINENO: error: We need either inet_ntop or inet_pton" >&5
  18117. $as_echo "$as_me: error: We need either inet_ntop or inet_pton" >&2;}
  18118. { (exit 1); exit 1; }; }
  18119. fi
  18120. { $as_echo "$as_me:$LINENO: checking for inet_addr" >&5
  18121. $as_echo_n "checking for inet_addr... " >&6; }
  18122. if test "${ac_cv_func_inet_addr+set}" = set; then
  18123. $as_echo_n "(cached) " >&6
  18124. else
  18125. cat >conftest.$ac_ext <<_ACEOF
  18126. /* confdefs.h. */
  18127. _ACEOF
  18128. cat confdefs.h >>conftest.$ac_ext
  18129. cat >>conftest.$ac_ext <<_ACEOF
  18130. /* end confdefs.h. */
  18131. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  18132. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18133. #define inet_addr innocuous_inet_addr
  18134. /* System header to define __stub macros and hopefully few prototypes,
  18135. which can conflict with char inet_addr (); below.
  18136. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18137. <limits.h> exists even on freestanding compilers. */
  18138. #ifdef __STDC__
  18139. # include <limits.h>
  18140. #else
  18141. # include <assert.h>
  18142. #endif
  18143. #undef inet_addr
  18144. /* Override any GCC internal prototype to avoid an error.
  18145. Use char because int might match the return type of a GCC
  18146. builtin and then its argument prototype would still apply. */
  18147. #ifdef __cplusplus
  18148. extern "C"
  18149. #endif
  18150. char inet_addr ();
  18151. /* The GNU C library defines this for functions which it implements
  18152. to always fail with ENOSYS. Some functions are actually named
  18153. something starting with __ and the normal name is an alias. */
  18154. #if defined __stub_inet_addr || defined __stub___inet_addr
  18155. choke me
  18156. #endif
  18157. int
  18158. main ()
  18159. {
  18160. return inet_addr ();
  18161. ;
  18162. return 0;
  18163. }
  18164. _ACEOF
  18165. rm -f conftest.$ac_objext conftest$ac_exeext
  18166. if { (ac_try="$ac_link"
  18167. case "(($ac_try" in
  18168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18169. *) ac_try_echo=$ac_try;;
  18170. esac
  18171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18172. $as_echo "$ac_try_echo") >&5
  18173. (eval "$ac_link") 2>conftest.er1
  18174. ac_status=$?
  18175. grep -v '^ *+' conftest.er1 >conftest.err
  18176. rm -f conftest.er1
  18177. cat conftest.err >&5
  18178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18179. (exit $ac_status); } && {
  18180. test -z "$ac_c_werror_flag" ||
  18181. test ! -s conftest.err
  18182. } && test -s conftest$ac_exeext && {
  18183. test "$cross_compiling" = yes ||
  18184. $as_test_x conftest$ac_exeext
  18185. }; then
  18186. ac_cv_func_inet_addr=yes
  18187. else
  18188. $as_echo "$as_me: failed program was:" >&5
  18189. sed 's/^/| /' conftest.$ac_ext >&5
  18190. ac_cv_func_inet_addr=no
  18191. fi
  18192. rm -rf conftest.dSYM
  18193. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18194. conftest$ac_exeext conftest.$ac_ext
  18195. fi
  18196. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  18197. $as_echo "$ac_cv_func_inet_addr" >&6; }
  18198. if test "x$ac_cv_func_inet_addr" = x""yes; then
  18199. cat >>confdefs.h <<\_ACEOF
  18200. #define HAVE_INET_ADDR 1
  18201. _ACEOF
  18202. inet_addr=yes
  18203. else
  18204. inet_addr=no
  18205. fi
  18206. if test x$inet_addr = no ; then
  18207. { { $as_echo "$as_me:$LINENO: error: We need inet_addr. See bug 26" >&5
  18208. $as_echo "$as_me: error: We need inet_addr. See bug 26" >&2;}
  18209. { (exit 1); exit 1; }; }
  18210. fi
  18211. foundpcap=no
  18212. trypcapdir=/usr/local
  18213. { $as_echo "$as_me:$LINENO: checking for libpcap" >&5
  18214. $as_echo_n "checking for libpcap... " >&6; }
  18215. # Check whether --with-libpcap was given.
  18216. if test "${with_libpcap+set}" = set; then
  18217. withval=$with_libpcap; trypcapdir=$withval
  18218. fi
  18219. for testdir in $trypcapdir /usr/local /opt/local /usr /wpdpack ; do
  18220. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  18221. LPCAPINC="${testdir}/include/pcap.h"
  18222. LPCAPINCDIR="${testdir}/include"
  18223. if test $dynamic_link = yes; then
  18224. if test -f "${testdir}/lib64/libpcap${shrext_cmds}" ; then
  18225. LPCAPLIB="-L${testdir}/lib64 -lpcap"
  18226. elif test -f "${testdir}/lib/libpcap${shrext_cmds}" ; then
  18227. LPCAPLIB="-L${testdir}/lib -lpcap"
  18228. else
  18229. { { $as_echo "$as_me:$LINENO: error: Unable to find libpcap in ${testdir}" >&5
  18230. $as_echo "$as_me: error: Unable to find libpcap in ${testdir}" >&2;}
  18231. { (exit 1); exit 1; }; }
  18232. fi
  18233. elif test -f "${testdir}/lib64/libpcap.${libext}" ; then
  18234. LPCAPLIB="${testdir}/lib64/libpcap.${libext}"
  18235. elif test -f "${testdir}/lib/libpcap.${libext}" ; then
  18236. LPCAPLIB="${testdir}/lib/libpcap.${libext}"
  18237. elif test -f "${testdir}/lib/libwpcap.${libext}" ; then
  18238. LPCAPLIB="${testdir}/lib/libwpcap.${libext}"
  18239. cat >>confdefs.h <<\_ACEOF
  18240. #define HAVE_WINPCAP 1
  18241. _ACEOF
  18242. else
  18243. { { $as_echo "$as_me:$LINENO: error: Unable to find matching library for header file in ${testdir}" >&5
  18244. $as_echo "$as_me: error: Unable to find matching library for header file in ${testdir}" >&2;}
  18245. { (exit 1); exit 1; }; }
  18246. fi
  18247. foundpcap=$testdir
  18248. fi
  18249. done
  18250. if test $foundpcap = no ; then
  18251. { $as_echo "$as_me:$LINENO: result: no" >&5
  18252. $as_echo "no" >&6; }
  18253. { { $as_echo "$as_me:$LINENO: error: libpcap not found" >&5
  18254. $as_echo "$as_me: error: libpcap not found" >&2;}
  18255. { (exit 1); exit 1; }; }
  18256. else
  18257. { $as_echo "$as_me:$LINENO: result: $foundpcap" >&5
  18258. $as_echo "$foundpcap" >&6; }
  18259. fi
  18260. OLDLIBS="$LIBS"
  18261. OLDCFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18262. LIBS="$LPCAPLIB"
  18263. CFLAGS="$CFLAGS -I$LPCAPINCDIR"
  18264. { $as_echo "$as_me:$LINENO: checking for libpcap version" >&5
  18265. $as_echo_n "checking for libpcap version... " >&6; }
  18266. libpcap_version_096=no
  18267. if test "$cross_compiling" = yes; then
  18268. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18269. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18270. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18271. See \`config.log' for more details." >&5
  18272. $as_echo "$as_me: error: cannot run test program while cross compiling
  18273. See \`config.log' for more details." >&2;}
  18274. { (exit 1); exit 1; }; }; }
  18275. else
  18276. cat >conftest.$ac_ext <<_ACEOF
  18277. /* confdefs.h. */
  18278. _ACEOF
  18279. cat confdefs.h >>conftest.$ac_ext
  18280. cat >>conftest.$ac_ext <<_ACEOF
  18281. /* end confdefs.h. */
  18282. #include <string.h>
  18283. #include <stdlib.h>
  18284. #include <stdio.h>
  18285. #include "$LPCAPINC"
  18286. #define PCAP_TEST "0.9.6"
  18287. int
  18288. main ()
  18289. {
  18290. /*
  18291. * simple proggy to test the version of libpcap
  18292. * returns zero if version >= 0.9.6
  18293. * or one otherwise
  18294. */
  18295. if (strncmp(pcap_lib_version(), PCAP_TEST, 5) >= 0)
  18296. exit(0);
  18297. exit(1);
  18298. ;
  18299. return 0;
  18300. }
  18301. _ACEOF
  18302. rm -f conftest$ac_exeext
  18303. if { (ac_try="$ac_link"
  18304. case "(($ac_try" in
  18305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18306. *) ac_try_echo=$ac_try;;
  18307. esac
  18308. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18309. $as_echo "$ac_try_echo") >&5
  18310. (eval "$ac_link") 2>&5
  18311. ac_status=$?
  18312. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18313. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18314. { (case "(($ac_try" in
  18315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18316. *) ac_try_echo=$ac_try;;
  18317. esac
  18318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18319. $as_echo "$ac_try_echo") >&5
  18320. (eval "$ac_try") 2>&5
  18321. ac_status=$?
  18322. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18323. (exit $ac_status); }; }; then
  18324. libpcap_version_096=yes
  18325. else
  18326. $as_echo "$as_me: program exited with status $ac_status" >&5
  18327. $as_echo "$as_me: failed program was:" >&5
  18328. sed 's/^/| /' conftest.$ac_ext >&5
  18329. fi
  18330. rm -rf conftest.dSYM
  18331. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18332. fi
  18333. if test "$cross_compiling" = yes; then
  18334. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18335. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18336. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18337. See \`config.log' for more details." >&5
  18338. $as_echo "$as_me: error: cannot run test program while cross compiling
  18339. See \`config.log' for more details." >&2;}
  18340. { (exit 1); exit 1; }; }; }
  18341. else
  18342. cat >conftest.$ac_ext <<_ACEOF
  18343. /* confdefs.h. */
  18344. _ACEOF
  18345. cat confdefs.h >>conftest.$ac_ext
  18346. cat >>conftest.$ac_ext <<_ACEOF
  18347. /* end confdefs.h. */
  18348. #include <string.h>
  18349. #include <stdlib.h>
  18350. #include <stdio.h>
  18351. #include "$LPCAPINC"
  18352. #define PCAP_TEST "0.8"
  18353. int
  18354. main ()
  18355. {
  18356. /*
  18357. * simple proggy to test the version of libpcap
  18358. * returns zero if version >= 0.8.0
  18359. * or one otherwise
  18360. */
  18361. if (strncmp(pcap_lib_version(), PCAP_TEST, 3) >= 0)
  18362. exit(0);
  18363. /* winpcap? */
  18364. if (strncmp(pcap_lib_version(), "WinPcap", 7) == 0)
  18365. exit(0);
  18366. exit(1);
  18367. ;
  18368. return 0;
  18369. }
  18370. _ACEOF
  18371. rm -f conftest$ac_exeext
  18372. if { (ac_try="$ac_link"
  18373. case "(($ac_try" in
  18374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18375. *) ac_try_echo=$ac_try;;
  18376. esac
  18377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18378. $as_echo "$ac_try_echo") >&5
  18379. (eval "$ac_link") 2>&5
  18380. ac_status=$?
  18381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18382. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18383. { (case "(($ac_try" in
  18384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18385. *) ac_try_echo=$ac_try;;
  18386. esac
  18387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18388. $as_echo "$ac_try_echo") >&5
  18389. (eval "$ac_try") 2>&5
  18390. ac_status=$?
  18391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18392. (exit $ac_status); }; }; then
  18393. libpcap_ver8=yes
  18394. else
  18395. $as_echo "$as_me: program exited with status $ac_status" >&5
  18396. $as_echo "$as_me: failed program was:" >&5
  18397. sed 's/^/| /' conftest.$ac_ext >&5
  18398. ( exit $ac_status )
  18399. libpcap_ver8=no
  18400. fi
  18401. rm -rf conftest.dSYM
  18402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18403. fi
  18404. if test "$cross_compiling" = yes; then
  18405. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18406. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18407. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  18408. See \`config.log' for more details." >&5
  18409. $as_echo "$as_me: error: cannot run test program while cross compiling
  18410. See \`config.log' for more details." >&2;}
  18411. { (exit 1); exit 1; }; }; }
  18412. else
  18413. cat >conftest.$ac_ext <<_ACEOF
  18414. /* confdefs.h. */
  18415. _ACEOF
  18416. cat confdefs.h >>conftest.$ac_ext
  18417. cat >>conftest.$ac_ext <<_ACEOF
  18418. /* end confdefs.h. */
  18419. #include <string.h>
  18420. #include <stdlib.h>
  18421. #include <stdio.h>
  18422. #include "$LPCAPINC"
  18423. #define PCAP_TEST "0.7.2"
  18424. extern const char pcap_version[]; /* double up since autoconf escapes things */
  18425. int
  18426. main ()
  18427. {
  18428. /*
  18429. * simple proggy to test the version of libpcap
  18430. * returns zero if version >= 0.7.2
  18431. * or one otherwise
  18432. */
  18433. if (strncmp(pcap_version, PCAP_TEST, 5) >= 0)
  18434. exit(0);
  18435. exit(1);
  18436. ;
  18437. return 0;
  18438. }
  18439. _ACEOF
  18440. rm -f conftest$ac_exeext
  18441. if { (ac_try="$ac_link"
  18442. case "(($ac_try" in
  18443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18444. *) ac_try_echo=$ac_try;;
  18445. esac
  18446. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18447. $as_echo "$ac_try_echo") >&5
  18448. (eval "$ac_link") 2>&5
  18449. ac_status=$?
  18450. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18451. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18452. { (case "(($ac_try" in
  18453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18454. *) ac_try_echo=$ac_try;;
  18455. esac
  18456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18457. $as_echo "$ac_try_echo") >&5
  18458. (eval "$ac_try") 2>&5
  18459. ac_status=$?
  18460. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18461. (exit $ac_status); }; }; then
  18462. libpcap_ver7=yes
  18463. else
  18464. $as_echo "$as_me: program exited with status $ac_status" >&5
  18465. $as_echo "$as_me: failed program was:" >&5
  18466. sed 's/^/| /' conftest.$ac_ext >&5
  18467. ( exit $ac_status )
  18468. libpcap_ver7=no
  18469. fi
  18470. rm -rf conftest.dSYM
  18471. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18472. fi
  18473. if test $libpcap_ver8 = yes ; then
  18474. { $as_echo "$as_me:$LINENO: result: >= 0.8.0" >&5
  18475. $as_echo ">= 0.8.0" >&6; }
  18476. elif test $libpcap_ver7 = yes ; then
  18477. { $as_echo "$as_me:$LINENO: result: >= 0.7.2" >&5
  18478. $as_echo ">= 0.7.2" >&6; }
  18479. else
  18480. { { $as_echo "$as_me:$LINENO: error: Libpcap versions < 0.7.2 are not supported
  18481. Please upgrade to version 0.7.2 or better" >&5
  18482. $as_echo "$as_me: error: Libpcap versions < 0.7.2 are not supported
  18483. Please upgrade to version 0.7.2 or better" >&2;}
  18484. { (exit 1); exit 1; }; }
  18485. fi
  18486. libpcap_version=unknown
  18487. if test $libpcap_version_096 = yes ; then
  18488. libpcap_version=">= 0.9.6"
  18489. elif test $libpcap_ver8 = yes ; then
  18490. libpcap_version=">= 0.8.0"
  18491. elif test $libcap_ver7 = yes ; then
  18492. libpcap_version=">= 0.7.0"
  18493. fi
  18494. { $as_echo "$as_me:$LINENO: checking for pcap_setnonblock" >&5
  18495. $as_echo_n "checking for pcap_setnonblock... " >&6; }
  18496. cat >conftest.$ac_ext <<_ACEOF
  18497. /* confdefs.h. */
  18498. _ACEOF
  18499. cat confdefs.h >>conftest.$ac_ext
  18500. cat >>conftest.$ac_ext <<_ACEOF
  18501. /* end confdefs.h. */
  18502. #include <stdio.h>
  18503. #include <stdlib.h>
  18504. #include <string.h>
  18505. #include "$LPCAPINC"
  18506. int
  18507. main ()
  18508. {
  18509. pcap_t *p;
  18510. char *errbuf;
  18511. pcap_setnonblock(p, 1, errbuf);
  18512. exit(0);
  18513. ;
  18514. return 0;
  18515. }
  18516. _ACEOF
  18517. rm -f conftest.$ac_objext conftest$ac_exeext
  18518. if { (ac_try="$ac_link"
  18519. case "(($ac_try" in
  18520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18521. *) ac_try_echo=$ac_try;;
  18522. esac
  18523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18524. $as_echo "$ac_try_echo") >&5
  18525. (eval "$ac_link") 2>conftest.er1
  18526. ac_status=$?
  18527. grep -v '^ *+' conftest.er1 >conftest.err
  18528. rm -f conftest.er1
  18529. cat conftest.err >&5
  18530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18531. (exit $ac_status); } && {
  18532. test -z "$ac_c_werror_flag" ||
  18533. test ! -s conftest.err
  18534. } && test -s conftest$ac_exeext && {
  18535. test "$cross_compiling" = yes ||
  18536. $as_test_x conftest$ac_exeext
  18537. }; then
  18538. have_pcap_setnonblock=yes
  18539. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18540. $as_echo "yes" >&6; }
  18541. else
  18542. $as_echo "$as_me: failed program was:" >&5
  18543. sed 's/^/| /' conftest.$ac_ext >&5
  18544. have_pcap_setnonblock=no
  18545. { $as_echo "$as_me:$LINENO: result: no" >&5
  18546. $as_echo "no" >&6; }
  18547. fi
  18548. rm -rf conftest.dSYM
  18549. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18550. conftest$ac_exeext conftest.$ac_ext
  18551. if test $have_pcap_setnonblock = yes ; then
  18552. cat >>confdefs.h <<\_ACEOF
  18553. #define HAVE_PCAP_SETNONBLOCK 1
  18554. _ACEOF
  18555. fi
  18556. { $as_echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  18557. $as_echo_n "checking for pcap_datalink_val_to_description... " >&6; }
  18558. cat >conftest.$ac_ext <<_ACEOF
  18559. /* confdefs.h. */
  18560. _ACEOF
  18561. cat confdefs.h >>conftest.$ac_ext
  18562. cat >>conftest.$ac_ext <<_ACEOF
  18563. /* end confdefs.h. */
  18564. #include <stdio.h>
  18565. #include <stdlib.h>
  18566. #include <string.h>
  18567. #include "$LPCAPINC"
  18568. int
  18569. main ()
  18570. {
  18571. if (strcmp(pcap_datalink_val_to_description(1), "Ethernet (10Mb)") == 0)
  18572. exit(0);
  18573. exit(1);
  18574. ;
  18575. return 0;
  18576. }
  18577. _ACEOF
  18578. rm -f conftest.$ac_objext conftest$ac_exeext
  18579. if { (ac_try="$ac_link"
  18580. case "(($ac_try" in
  18581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18582. *) ac_try_echo=$ac_try;;
  18583. esac
  18584. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18585. $as_echo "$ac_try_echo") >&5
  18586. (eval "$ac_link") 2>conftest.er1
  18587. ac_status=$?
  18588. grep -v '^ *+' conftest.er1 >conftest.err
  18589. rm -f conftest.er1
  18590. cat conftest.err >&5
  18591. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18592. (exit $ac_status); } && {
  18593. test -z "$ac_c_werror_flag" ||
  18594. test ! -s conftest.err
  18595. } && test -s conftest$ac_exeext && {
  18596. test "$cross_compiling" = yes ||
  18597. $as_test_x conftest$ac_exeext
  18598. }; then
  18599. have_dlt_to_desc=yes
  18600. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18601. $as_echo "yes" >&6; }
  18602. else
  18603. $as_echo "$as_me: failed program was:" >&5
  18604. sed 's/^/| /' conftest.$ac_ext >&5
  18605. have_dlt_to_desc=no
  18606. { $as_echo "$as_me:$LINENO: result: no" >&5
  18607. $as_echo "no" >&6; }
  18608. fi
  18609. rm -rf conftest.dSYM
  18610. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18611. conftest$ac_exeext conftest.$ac_ext
  18612. if test $have_dlt_to_desc = yes ; then
  18613. cat >>confdefs.h <<\_ACEOF
  18614. #define HAVE_DLT_VAL_TO_DESC 1
  18615. _ACEOF
  18616. fi
  18617. { $as_echo "$as_me:$LINENO: checking for pcap_get_selectable_fd" >&5
  18618. $as_echo_n "checking for pcap_get_selectable_fd... " >&6; }
  18619. cat >conftest.$ac_ext <<_ACEOF
  18620. /* confdefs.h. */
  18621. _ACEOF
  18622. cat confdefs.h >>conftest.$ac_ext
  18623. cat >>conftest.$ac_ext <<_ACEOF
  18624. /* end confdefs.h. */
  18625. #include <stdio.h>
  18626. #include <stdlib.h>
  18627. #include <string.h>
  18628. #include "$LPCAPINC"
  18629. int
  18630. main ()
  18631. {
  18632. int f;
  18633. pcap_t *p;
  18634. f = pcap_get_selectable_fd(p);
  18635. exit(0);
  18636. ;
  18637. return 0;
  18638. }
  18639. _ACEOF
  18640. rm -f conftest.$ac_objext conftest$ac_exeext
  18641. if { (ac_try="$ac_link"
  18642. case "(($ac_try" in
  18643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18644. *) ac_try_echo=$ac_try;;
  18645. esac
  18646. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18647. $as_echo "$ac_try_echo") >&5
  18648. (eval "$ac_link") 2>conftest.er1
  18649. ac_status=$?
  18650. grep -v '^ *+' conftest.er1 >conftest.err
  18651. rm -f conftest.er1
  18652. cat conftest.err >&5
  18653. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18654. (exit $ac_status); } && {
  18655. test -z "$ac_c_werror_flag" ||
  18656. test ! -s conftest.err
  18657. } && test -s conftest$ac_exeext && {
  18658. test "$cross_compiling" = yes ||
  18659. $as_test_x conftest$ac_exeext
  18660. }; then
  18661. have_pcap_get_selectable_fd=yes
  18662. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18663. $as_echo "yes" >&6; }
  18664. else
  18665. $as_echo "$as_me: failed program was:" >&5
  18666. sed 's/^/| /' conftest.$ac_ext >&5
  18667. have_pcap_get_selectable_fd=no
  18668. { $as_echo "$as_me:$LINENO: result: no" >&5
  18669. $as_echo "no" >&6; }
  18670. fi
  18671. rm -rf conftest.dSYM
  18672. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18673. conftest$ac_exeext conftest.$ac_ext
  18674. if test x$have_pcap_get_selectable_fd = xyes ; then
  18675. cat >>confdefs.h <<\_ACEOF
  18676. #define HAVE_PCAP_GET_SELECTABLE_FD 1
  18677. _ACEOF
  18678. fi
  18679. { $as_echo "$as_me:$LINENO: checking for pcap_dump_fopen" >&5
  18680. $as_echo_n "checking for pcap_dump_fopen... " >&6; }
  18681. cat >conftest.$ac_ext <<_ACEOF
  18682. /* confdefs.h. */
  18683. _ACEOF
  18684. cat confdefs.h >>conftest.$ac_ext
  18685. cat >>conftest.$ac_ext <<_ACEOF
  18686. /* end confdefs.h. */
  18687. #include <stdio.h>
  18688. #include <stdlib.h>
  18689. #include <string.h>
  18690. #include "$LPCAPINC"
  18691. int
  18692. main ()
  18693. {
  18694. pcap_dumper_t *dump;
  18695. pcap_t *pcap;
  18696. FILE *foo;
  18697. dump = pcap_dump_fopen(pcap, foo);
  18698. ;
  18699. return 0;
  18700. }
  18701. _ACEOF
  18702. rm -f conftest.$ac_objext conftest$ac_exeext
  18703. if { (ac_try="$ac_link"
  18704. case "(($ac_try" in
  18705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18706. *) ac_try_echo=$ac_try;;
  18707. esac
  18708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18709. $as_echo "$ac_try_echo") >&5
  18710. (eval "$ac_link") 2>conftest.er1
  18711. ac_status=$?
  18712. grep -v '^ *+' conftest.er1 >conftest.err
  18713. rm -f conftest.er1
  18714. cat conftest.err >&5
  18715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18716. (exit $ac_status); } && {
  18717. test -z "$ac_c_werror_flag" ||
  18718. test ! -s conftest.err
  18719. } && test -s conftest$ac_exeext && {
  18720. test "$cross_compiling" = yes ||
  18721. $as_test_x conftest$ac_exeext
  18722. }; then
  18723. have_pcap_dump_fopen=yes
  18724. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18725. $as_echo "yes" >&6; }
  18726. else
  18727. $as_echo "$as_me: failed program was:" >&5
  18728. sed 's/^/| /' conftest.$ac_ext >&5
  18729. have_pcap_dump_fopen=no
  18730. { $as_echo "$as_me:$LINENO: result: no" >&5
  18731. $as_echo "no" >&6; }
  18732. fi
  18733. rm -rf conftest.dSYM
  18734. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18735. conftest$ac_exeext conftest.$ac_ext
  18736. if test $have_pcap_dump_fopen = yes ; then
  18737. cat >>confdefs.h <<\_ACEOF
  18738. #define HAVE_PCAP_DUMP_FOPEN 1
  18739. _ACEOF
  18740. else
  18741. { $as_echo "$as_me:$LINENO: --verbose mode requires libpcap >= 0.9.0" >&5
  18742. $as_echo "$as_me: --verbose mode requires libpcap >= 0.9.0" >&6;}
  18743. fi
  18744. have_pcap_inject=no
  18745. { $as_echo "$as_me:$LINENO: checking for pcap_inject sending support" >&5
  18746. $as_echo_n "checking for pcap_inject sending support... " >&6; }
  18747. cat >conftest.$ac_ext <<_ACEOF
  18748. /* confdefs.h. */
  18749. _ACEOF
  18750. cat confdefs.h >>conftest.$ac_ext
  18751. cat >>conftest.$ac_ext <<_ACEOF
  18752. /* end confdefs.h. */
  18753. #include <stdio.h>
  18754. #include <stdlib.h>
  18755. #include <string.h>
  18756. #include "$LPCAPINC"
  18757. int
  18758. main ()
  18759. {
  18760. pcap_t *pcap;
  18761. char *buf;
  18762. pcap_inject(pcap, (void *)buf, 0);
  18763. ;
  18764. return 0;
  18765. }
  18766. _ACEOF
  18767. rm -f conftest.$ac_objext conftest$ac_exeext
  18768. if { (ac_try="$ac_link"
  18769. case "(($ac_try" in
  18770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18771. *) ac_try_echo=$ac_try;;
  18772. esac
  18773. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18774. $as_echo "$ac_try_echo") >&5
  18775. (eval "$ac_link") 2>conftest.er1
  18776. ac_status=$?
  18777. grep -v '^ *+' conftest.er1 >conftest.err
  18778. rm -f conftest.er1
  18779. cat conftest.err >&5
  18780. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18781. (exit $ac_status); } && {
  18782. test -z "$ac_c_werror_flag" ||
  18783. test ! -s conftest.err
  18784. } && test -s conftest$ac_exeext && {
  18785. test "$cross_compiling" = yes ||
  18786. $as_test_x conftest$ac_exeext
  18787. }; then
  18788. have_pcap_inject=yes
  18789. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18790. $as_echo "yes" >&6; }
  18791. else
  18792. $as_echo "$as_me: failed program was:" >&5
  18793. sed 's/^/| /' conftest.$ac_ext >&5
  18794. have_pcap_inject=no
  18795. { $as_echo "$as_me:$LINENO: result: no" >&5
  18796. $as_echo "no" >&6; }
  18797. fi
  18798. rm -rf conftest.dSYM
  18799. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18800. conftest$ac_exeext conftest.$ac_ext
  18801. if test $have_pcap_inject = yes ; then
  18802. cat >>confdefs.h <<\_ACEOF
  18803. #define HAVE_PCAP_INJECT 1
  18804. _ACEOF
  18805. fi
  18806. have_pcap_sendpacket=no
  18807. { $as_echo "$as_me:$LINENO: checking for pcap_sendpacket sending support" >&5
  18808. $as_echo_n "checking for pcap_sendpacket sending support... " >&6; }
  18809. cat >conftest.$ac_ext <<_ACEOF
  18810. /* confdefs.h. */
  18811. _ACEOF
  18812. cat confdefs.h >>conftest.$ac_ext
  18813. cat >>conftest.$ac_ext <<_ACEOF
  18814. /* end confdefs.h. */
  18815. #include <stdio.h>
  18816. #include <stdlib.h>
  18817. #include <string.h>
  18818. #include "$LPCAPINC"
  18819. int
  18820. main ()
  18821. {
  18822. pcap_t *pcap;
  18823. u_char *buf;
  18824. pcap_sendpacket(pcap, buf, 0);
  18825. ;
  18826. return 0;
  18827. }
  18828. _ACEOF
  18829. rm -f conftest.$ac_objext conftest$ac_exeext
  18830. if { (ac_try="$ac_link"
  18831. case "(($ac_try" in
  18832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18833. *) ac_try_echo=$ac_try;;
  18834. esac
  18835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18836. $as_echo "$ac_try_echo") >&5
  18837. (eval "$ac_link") 2>conftest.er1
  18838. ac_status=$?
  18839. grep -v '^ *+' conftest.er1 >conftest.err
  18840. rm -f conftest.er1
  18841. cat conftest.err >&5
  18842. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18843. (exit $ac_status); } && {
  18844. test -z "$ac_c_werror_flag" ||
  18845. test ! -s conftest.err
  18846. } && test -s conftest$ac_exeext && {
  18847. test "$cross_compiling" = yes ||
  18848. $as_test_x conftest$ac_exeext
  18849. }; then
  18850. have_pcap_sendpacket=yes
  18851. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18852. $as_echo "yes" >&6; }
  18853. else
  18854. $as_echo "$as_me: failed program was:" >&5
  18855. sed 's/^/| /' conftest.$ac_ext >&5
  18856. have_pcap_sendpacket=no
  18857. { $as_echo "$as_me:$LINENO: result: no" >&5
  18858. $as_echo "no" >&6; }
  18859. fi
  18860. rm -rf conftest.dSYM
  18861. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18862. conftest$ac_exeext conftest.$ac_ext
  18863. if test $have_pcap_sendpacket = yes ; then
  18864. cat >>confdefs.h <<\_ACEOF
  18865. #define HAVE_PCAP_SENDPACKET 1
  18866. _ACEOF
  18867. fi
  18868. have_pcap_breakloop=no
  18869. { $as_echo "$as_me:$LINENO: checking for pcap_breakloop" >&5
  18870. $as_echo_n "checking for pcap_breakloop... " >&6; }
  18871. cat >conftest.$ac_ext <<_ACEOF
  18872. /* confdefs.h. */
  18873. _ACEOF
  18874. cat confdefs.h >>conftest.$ac_ext
  18875. cat >>conftest.$ac_ext <<_ACEOF
  18876. /* end confdefs.h. */
  18877. #include <stdio.h>
  18878. #include <stdlib.h>
  18879. #include <string.h>
  18880. #include "$LPCAPINC"
  18881. int
  18882. main ()
  18883. {
  18884. pcap_t *pcap;
  18885. pcap_sendpacket(pcap);
  18886. ;
  18887. return 0;
  18888. }
  18889. _ACEOF
  18890. rm -f conftest.$ac_objext conftest$ac_exeext
  18891. if { (ac_try="$ac_link"
  18892. case "(($ac_try" in
  18893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18894. *) ac_try_echo=$ac_try;;
  18895. esac
  18896. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18897. $as_echo "$ac_try_echo") >&5
  18898. (eval "$ac_link") 2>conftest.er1
  18899. ac_status=$?
  18900. grep -v '^ *+' conftest.er1 >conftest.err
  18901. rm -f conftest.er1
  18902. cat conftest.err >&5
  18903. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18904. (exit $ac_status); } && {
  18905. test -z "$ac_c_werror_flag" ||
  18906. test ! -s conftest.err
  18907. } && test -s conftest$ac_exeext && {
  18908. test "$cross_compiling" = yes ||
  18909. $as_test_x conftest$ac_exeext
  18910. }; then
  18911. have_pcap_breakloop=yes
  18912. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18913. $as_echo "yes" >&6; }
  18914. else
  18915. $as_echo "$as_me: failed program was:" >&5
  18916. sed 's/^/| /' conftest.$ac_ext >&5
  18917. have_pcap_breakloop=no
  18918. { $as_echo "$as_me:$LINENO: result: no" >&5
  18919. $as_echo "no" >&6; }
  18920. fi
  18921. rm -rf conftest.dSYM
  18922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18923. conftest$ac_exeext conftest.$ac_ext
  18924. if test $have_pcap_breakloop = yes ; then
  18925. cat >>confdefs.h <<\_ACEOF
  18926. #define HAVE_PCAP_BREAKLOOP 1
  18927. _ACEOF
  18928. fi
  18929. have_pcap_version=no
  18930. { $as_echo "$as_me:$LINENO: checking for pcap_version" >&5
  18931. $as_echo_n "checking for pcap_version... " >&6; }
  18932. cat >conftest.$ac_ext <<_ACEOF
  18933. /* confdefs.h. */
  18934. _ACEOF
  18935. cat confdefs.h >>conftest.$ac_ext
  18936. cat >>conftest.$ac_ext <<_ACEOF
  18937. /* end confdefs.h. */
  18938. #include <stdio.h>
  18939. #include <stdlib.h>
  18940. #include <string.h>
  18941. #include "$LPCAPINC"
  18942. extern char pcap_version[];
  18943. int
  18944. main ()
  18945. {
  18946. printf("%s", pcap_version);
  18947. ;
  18948. return 0;
  18949. }
  18950. _ACEOF
  18951. rm -f conftest.$ac_objext
  18952. if { (ac_try="$ac_compile"
  18953. case "(($ac_try" in
  18954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18955. *) ac_try_echo=$ac_try;;
  18956. esac
  18957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18958. $as_echo "$ac_try_echo") >&5
  18959. (eval "$ac_compile") 2>conftest.er1
  18960. ac_status=$?
  18961. grep -v '^ *+' conftest.er1 >conftest.err
  18962. rm -f conftest.er1
  18963. cat conftest.err >&5
  18964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18965. (exit $ac_status); } && {
  18966. test -z "$ac_c_werror_flag" ||
  18967. test ! -s conftest.err
  18968. } && test -s conftest.$ac_objext; then
  18969. cat >>confdefs.h <<\_ACEOF
  18970. #define HAVE_PCAP_VERSION 1
  18971. _ACEOF
  18972. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18973. $as_echo "yes" >&6; }
  18974. else
  18975. $as_echo "$as_me: failed program was:" >&5
  18976. sed 's/^/| /' conftest.$ac_ext >&5
  18977. { $as_echo "$as_me:$LINENO: result: no" >&5
  18978. $as_echo "no" >&6; }
  18979. fi
  18980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18981. # Tcpbridge requires libpcap and pcap_sendpacket()
  18982. enable_tcpbridge=no
  18983. if test x$foundpcap != xno -a x$have_pcap_sendpacket = xyes ; then
  18984. # if we have pcap_sendpacket() then we can build tcpbridge on non-BPF systems
  18985. if test x$have_bpf = xno; then
  18986. cat >>confdefs.h <<\_ACEOF
  18987. #define ENABLE_TCPBRIDGE 1
  18988. _ACEOF
  18989. enable_tcpbridge=yes
  18990. { $as_echo "$as_me:$LINENO: Building tcpbridge" >&5
  18991. $as_echo "$as_me: Building tcpbridge" >&6;}
  18992. # BPF systems need to also have pcap_setnonblock()
  18993. elif test x$have_pcap_setnonblock = xyes ; then
  18994. cat >>confdefs.h <<\_ACEOF
  18995. #define ENABLE_TCPBRIDGE 1
  18996. _ACEOF
  18997. enable_tcpbridge=yes
  18998. { $as_echo "$as_me:$LINENO: Building tcpbridge" >&5
  18999. $as_echo "$as_me: Building tcpbridge" >&6;}
  19000. else
  19001. { $as_echo "$as_me:$LINENO: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&5
  19002. $as_echo "$as_me: WARNING: Unable to build tcpbridge. Try installing latest libpcap!" >&2;}
  19003. fi
  19004. fi
  19005. if test x$enable_tcpbridge = xyes ; then
  19006. COMPILE_TCPBRIDGE_TRUE=
  19007. COMPILE_TCPBRIDGE_FALSE='#'
  19008. else
  19009. COMPILE_TCPBRIDGE_TRUE='#'
  19010. COMPILE_TCPBRIDGE_FALSE=
  19011. fi
  19012. have_pf=no
  19013. { $as_echo "$as_me:$LINENO: checking for PF_PACKET socket sending support" >&5
  19014. $as_echo_n "checking for PF_PACKET socket sending support... " >&6; }
  19015. cat >conftest.$ac_ext <<_ACEOF
  19016. /* confdefs.h. */
  19017. _ACEOF
  19018. cat confdefs.h >>conftest.$ac_ext
  19019. cat >>conftest.$ac_ext <<_ACEOF
  19020. /* end confdefs.h. */
  19021. #include <sys/socket.h>
  19022. #include <netpacket/packet.h>
  19023. #include <net/ethernet.h> /* the L2 protocols */
  19024. #include <netinet/in.h> /* htons */
  19025. int
  19026. main ()
  19027. {
  19028. int pf_socket;
  19029. pf_socket = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  19030. ;
  19031. return 0;
  19032. }
  19033. _ACEOF
  19034. rm -f conftest.$ac_objext
  19035. if { (ac_try="$ac_compile"
  19036. case "(($ac_try" in
  19037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19038. *) ac_try_echo=$ac_try;;
  19039. esac
  19040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19041. $as_echo "$ac_try_echo") >&5
  19042. (eval "$ac_compile") 2>conftest.er1
  19043. ac_status=$?
  19044. grep -v '^ *+' conftest.er1 >conftest.err
  19045. rm -f conftest.er1
  19046. cat conftest.err >&5
  19047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19048. (exit $ac_status); } && {
  19049. test -z "$ac_c_werror_flag" ||
  19050. test ! -s conftest.err
  19051. } && test -s conftest.$ac_objext; then
  19052. cat >>confdefs.h <<\_ACEOF
  19053. #define HAVE_PF_PACKET 1
  19054. _ACEOF
  19055. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19056. $as_echo "yes" >&6; }
  19057. have_pf=yes
  19058. else
  19059. $as_echo "$as_me: failed program was:" >&5
  19060. sed 's/^/| /' conftest.$ac_ext >&5
  19061. { $as_echo "$as_me:$LINENO: result: no" >&5
  19062. $as_echo "no" >&6; }
  19063. fi
  19064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19065. have_bpf=no
  19066. { $as_echo "$as_me:$LINENO: checking for BPF device sending support" >&5
  19067. $as_echo_n "checking for BPF device sending support... " >&6; }
  19068. if test "$cross_compiling" = yes; then
  19069. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  19070. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19071. { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  19072. See \`config.log' for more details." >&5
  19073. $as_echo "$as_me: error: cannot run test program while cross compiling
  19074. See \`config.log' for more details." >&2;}
  19075. { (exit 1); exit 1; }; }; }
  19076. else
  19077. cat >conftest.$ac_ext <<_ACEOF
  19078. /* confdefs.h. */
  19079. _ACEOF
  19080. cat confdefs.h >>conftest.$ac_ext
  19081. cat >>conftest.$ac_ext <<_ACEOF
  19082. /* end confdefs.h. */
  19083. #include <stdio.h>
  19084. #include <stdlib.h>
  19085. #include <sys/types.h>
  19086. #include <sys/socket.h>
  19087. #include <fcntl.h>
  19088. #include <sys/time.h>
  19089. #include <sys/ioctl.h>
  19090. #include <stdint.h>
  19091. #include <net/bpf.h>
  19092. #include <errno.h>
  19093. int
  19094. main(int argc, char *argv[]) {
  19095. int fd;
  19096. fd = open("/dev/bpf0", O_RDONLY, 0);
  19097. /* if we opened it, we're good */
  19098. if (fd > 1)
  19099. exit(0);
  19100. /* if we got EBUSY or permission denied it exists, so we're good */
  19101. if (fd < 0 && (errno == EBUSY || errno == 13))
  19102. exit(0);
  19103. /* else suck, no good */
  19104. exit(-1);
  19105. }
  19106. _ACEOF
  19107. rm -f conftest$ac_exeext
  19108. if { (ac_try="$ac_link"
  19109. case "(($ac_try" in
  19110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19111. *) ac_try_echo=$ac_try;;
  19112. esac
  19113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19114. $as_echo "$ac_try_echo") >&5
  19115. (eval "$ac_link") 2>&5
  19116. ac_status=$?
  19117. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19118. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19119. { (case "(($ac_try" in
  19120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19121. *) ac_try_echo=$ac_try;;
  19122. esac
  19123. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19124. $as_echo "$ac_try_echo") >&5
  19125. (eval "$ac_try") 2>&5
  19126. ac_status=$?
  19127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19128. (exit $ac_status); }; }; then
  19129. cat >>confdefs.h <<\_ACEOF
  19130. #define HAVE_BPF 1
  19131. _ACEOF
  19132. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19133. $as_echo "yes" >&6; }
  19134. have_bpf=yes
  19135. else
  19136. $as_echo "$as_me: program exited with status $ac_status" >&5
  19137. $as_echo "$as_me: failed program was:" >&5
  19138. sed 's/^/| /' conftest.$ac_ext >&5
  19139. ( exit $ac_status )
  19140. { $as_echo "$as_me:$LINENO: result: no" >&5
  19141. $as_echo "no" >&6; }
  19142. fi
  19143. rm -rf conftest.dSYM
  19144. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19145. fi
  19146. founddnet=no
  19147. have_libdnet=no
  19148. libdnet_version=
  19149. enable_fragroute=no
  19150. trydnetdir=/usr/local
  19151. if test $have_cygwin == no ; then
  19152. { $as_echo "$as_me:$LINENO: checking for libdnet" >&5
  19153. $as_echo_n "checking for libdnet... " >&6; }
  19154. # Check whether --with-libdnet was given.
  19155. if test "${with_libdnet+set}" = set; then
  19156. withval=$with_libdnet; trydnetdir=$withval
  19157. fi
  19158. for testdir in $trydnetdir /usr/local /opt/local /usr ; do
  19159. if test -x ${testdir}/bin/dnet-config -a $founddnet = no ; then
  19160. LDNETINC="`$testdir/bin/dnet-config --cflags`"
  19161. LDNETLIB="`$testdir/bin/dnet-config --libs`"
  19162. libdnet_version="`$testdir/bin/dnet-config --version`"
  19163. founddnet=$testdir
  19164. fi
  19165. done
  19166. if test $founddnet = no ; then
  19167. { $as_echo "$as_me:$LINENO: result: no" >&5
  19168. $as_echo "no" >&6; }
  19169. { $as_echo "$as_me:$LINENO: WARNING: libdnet not found, disabling fragroute feature" >&5
  19170. $as_echo "$as_me: WARNING: libdnet not found, disabling fragroute feature" >&2;}
  19171. else
  19172. { $as_echo "$as_me:$LINENO: result: $founddnet" >&5
  19173. $as_echo "$founddnet" >&6; }
  19174. enable_fragroute=yes
  19175. have_libdnet=yes
  19176. cat >>confdefs.h <<\_ACEOF
  19177. #define HAVE_LIBDNET 1
  19178. _ACEOF
  19179. fi
  19180. else
  19181. { $as_echo "$as_me:$LINENO: Skipping libdnet check under Cygwin for compatibility reasons" >&5
  19182. $as_echo "$as_me: Skipping libdnet check under Cygwin for compatibility reasons" >&6;}
  19183. fi
  19184. cat >>confdefs.h <<_ACEOF
  19185. #define LIBDNET_VERSION "$libdnet_version"
  19186. _ACEOF
  19187. if test x$founddnet != xno; then
  19188. COMPILE_FRAGROUTE_TRUE=
  19189. COMPILE_FRAGROUTE_FALSE='#'
  19190. else
  19191. COMPILE_FRAGROUTE_TRUE='#'
  19192. COMPILE_FRAGROUTE_FALSE=
  19193. fi
  19194. if test x$founddnet != xno ; then
  19195. cat >>confdefs.h <<\_ACEOF
  19196. #define ENABLE_FRAGROUTE 1
  19197. _ACEOF
  19198. fi
  19199. if test $have_bpf = no -a $have_pcap_inject = no -a $have_pcap_sendpacket = no \
  19200. -a $have_libdnet = no -a $have_pf = no ; then
  19201. { { $as_echo "$as_me:$LINENO: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" >&5
  19202. $as_echo "$as_me: error: Unable to find a supported method to send packets. Please upgrade your libpcap or enable libdnet" >&2;}
  19203. { (exit 1); exit 1; }; }
  19204. fi
  19205. { $as_echo "$as_me:$LINENO: checking for DLT_LINUX_SLL in libpcap" >&5
  19206. $as_echo_n "checking for DLT_LINUX_SLL in libpcap... " >&6; }
  19207. cat >conftest.$ac_ext <<_ACEOF
  19208. /* confdefs.h. */
  19209. _ACEOF
  19210. cat confdefs.h >>conftest.$ac_ext
  19211. cat >>conftest.$ac_ext <<_ACEOF
  19212. /* end confdefs.h. */
  19213. #include "$LPCAPINC"
  19214. int
  19215. main ()
  19216. {
  19217. int foo;
  19218. foo = DLT_LINUX_SLL
  19219. ;
  19220. return 0;
  19221. }
  19222. _ACEOF
  19223. rm -f conftest.$ac_objext
  19224. if { (ac_try="$ac_compile"
  19225. case "(($ac_try" in
  19226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19227. *) ac_try_echo=$ac_try;;
  19228. esac
  19229. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19230. $as_echo "$ac_try_echo") >&5
  19231. (eval "$ac_compile") 2>conftest.er1
  19232. ac_status=$?
  19233. grep -v '^ *+' conftest.er1 >conftest.err
  19234. rm -f conftest.er1
  19235. cat conftest.err >&5
  19236. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19237. (exit $ac_status); } && {
  19238. test -z "$ac_c_werror_flag" ||
  19239. test ! -s conftest.err
  19240. } && test -s conftest.$ac_objext; then
  19241. cat >>confdefs.h <<\_ACEOF
  19242. #define HAVE_DLT_LINUX_SLL 1
  19243. _ACEOF
  19244. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19245. $as_echo "yes" >&6; }
  19246. else
  19247. $as_echo "$as_me: failed program was:" >&5
  19248. sed 's/^/| /' conftest.$ac_ext >&5
  19249. { $as_echo "$as_me:$LINENO: result: no" >&5
  19250. $as_echo "no" >&6; }
  19251. fi
  19252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19253. { $as_echo "$as_me:$LINENO: checking for DLT_C_HDLC in libpcap" >&5
  19254. $as_echo_n "checking for DLT_C_HDLC in libpcap... " >&6; }
  19255. cat >conftest.$ac_ext <<_ACEOF
  19256. /* confdefs.h. */
  19257. _ACEOF
  19258. cat confdefs.h >>conftest.$ac_ext
  19259. cat >>conftest.$ac_ext <<_ACEOF
  19260. /* end confdefs.h. */
  19261. #include "$LPCAPINC"
  19262. int
  19263. main ()
  19264. {
  19265. int foo;
  19266. foo = DLT_C_HDLC
  19267. ;
  19268. return 0;
  19269. }
  19270. _ACEOF
  19271. rm -f conftest.$ac_objext
  19272. if { (ac_try="$ac_compile"
  19273. case "(($ac_try" in
  19274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19275. *) ac_try_echo=$ac_try;;
  19276. esac
  19277. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19278. $as_echo "$ac_try_echo") >&5
  19279. (eval "$ac_compile") 2>conftest.er1
  19280. ac_status=$?
  19281. grep -v '^ *+' conftest.er1 >conftest.err
  19282. rm -f conftest.er1
  19283. cat conftest.err >&5
  19284. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19285. (exit $ac_status); } && {
  19286. test -z "$ac_c_werror_flag" ||
  19287. test ! -s conftest.err
  19288. } && test -s conftest.$ac_objext; then
  19289. cat >>confdefs.h <<\_ACEOF
  19290. #define HAVE_DLT_C_HDLC 1
  19291. _ACEOF
  19292. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19293. $as_echo "yes" >&6; }
  19294. else
  19295. $as_echo "$as_me: failed program was:" >&5
  19296. sed 's/^/| /' conftest.$ac_ext >&5
  19297. { $as_echo "$as_me:$LINENO: result: no" >&5
  19298. $as_echo "no" >&6; }
  19299. fi
  19300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19301. PCAP_BPF_H_FILE="$LPCAPINCDIR/pcap-bpf.h"
  19302. { $as_echo "$as_me:$LINENO: checking for $PCAP_BPF_H_FILE" >&5
  19303. $as_echo_n "checking for $PCAP_BPF_H_FILE... " >&6; }
  19304. cat >conftest.$ac_ext <<_ACEOF
  19305. /* confdefs.h. */
  19306. _ACEOF
  19307. cat confdefs.h >>conftest.$ac_ext
  19308. cat >>conftest.$ac_ext <<_ACEOF
  19309. /* end confdefs.h. */
  19310. #include <sys/types.h>
  19311. #include <sys/time.h>
  19312. #include <stdint.h>
  19313. #include "$PCAP_BPF_H_FILE"
  19314. int
  19315. main ()
  19316. {
  19317. int foo;
  19318. foo = BPF_MAJOR_VERSION;
  19319. ;
  19320. return 0;
  19321. }
  19322. _ACEOF
  19323. rm -f conftest.$ac_objext
  19324. if { (ac_try="$ac_compile"
  19325. case "(($ac_try" in
  19326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19327. *) ac_try_echo=$ac_try;;
  19328. esac
  19329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19330. $as_echo "$ac_try_echo") >&5
  19331. (eval "$ac_compile") 2>conftest.er1
  19332. ac_status=$?
  19333. grep -v '^ *+' conftest.er1 >conftest.err
  19334. rm -f conftest.er1
  19335. cat conftest.err >&5
  19336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19337. (exit $ac_status); } && {
  19338. test -z "$ac_c_werror_flag" ||
  19339. test ! -s conftest.err
  19340. } && test -s conftest.$ac_objext; then
  19341. cat >>confdefs.h <<\_ACEOF
  19342. #define INCLUDE_PCAP_BPF_HEADER 1
  19343. _ACEOF
  19344. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19345. $as_echo "yes" >&6; }
  19346. else
  19347. $as_echo "$as_me: failed program was:" >&5
  19348. sed 's/^/| /' conftest.$ac_ext >&5
  19349. { $as_echo "$as_me:$LINENO: result: no" >&5
  19350. $as_echo "no" >&6; }
  19351. fi
  19352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19353. foundbpfheader=no
  19354. { $as_echo "$as_me:$LINENO: checking for libpcap bpf header" >&5
  19355. $as_echo_n "checking for libpcap bpf header... " >&6; }
  19356. for testfile in $LPCAPINCDIR/pcap/bpf.h $LPCAPINCDIR/pcap-bpf.h ; do
  19357. if test -f "${testfile}" -a $foundbpfheader = no ; then
  19358. cat >conftest.$ac_ext <<_ACEOF
  19359. /* confdefs.h. */
  19360. _ACEOF
  19361. cat confdefs.h >>conftest.$ac_ext
  19362. cat >>conftest.$ac_ext <<_ACEOF
  19363. /* end confdefs.h. */
  19364. #include <sys/types.h>
  19365. #include <sys/time.h>
  19366. #include <stdint.h>
  19367. #include "$testfile"
  19368. int
  19369. main ()
  19370. {
  19371. int foo;
  19372. foo = BPF_MAJOR_VERSION;
  19373. ;
  19374. return 0;
  19375. }
  19376. _ACEOF
  19377. rm -f conftest.$ac_objext
  19378. if { (ac_try="$ac_compile"
  19379. case "(($ac_try" in
  19380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19381. *) ac_try_echo=$ac_try;;
  19382. esac
  19383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19384. $as_echo "$ac_try_echo") >&5
  19385. (eval "$ac_compile") 2>conftest.er1
  19386. ac_status=$?
  19387. grep -v '^ *+' conftest.er1 >conftest.err
  19388. rm -f conftest.er1
  19389. cat conftest.err >&5
  19390. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19391. (exit $ac_status); } && {
  19392. test -z "$ac_c_werror_flag" ||
  19393. test ! -s conftest.err
  19394. } && test -s conftest.$ac_objext; then
  19395. foundbpfheader=yes
  19396. PCAP_BPF_H_FILE=$testfile
  19397. cat >>confdefs.h <<\_ACEOF
  19398. #define INCLUDE_PCAP_BPF_HEADER 1
  19399. _ACEOF
  19400. { $as_echo "$as_me:$LINENO: result: $testfile" >&5
  19401. $as_echo "$testfile" >&6; }
  19402. else
  19403. $as_echo "$as_me: failed program was:" >&5
  19404. sed 's/^/| /' conftest.$ac_ext >&5
  19405. { $as_echo "$as_me:$LINENO: result: no" >&5
  19406. $as_echo "no" >&6; }
  19407. fi
  19408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19409. fi
  19410. done
  19411. LIBS="$OLDLIBS"
  19412. CFLAGS="$OLDCFLAGS"
  19413. pcapnav_ver=no
  19414. pcncfg=no
  19415. # Check whether --with-pcapnav-config was given.
  19416. if test "${with_pcapnav_config+set}" = set; then
  19417. withval=$with_pcapnav_config; { $as_echo "$as_me:$LINENO: checking for pcapnav-config" >&5
  19418. $as_echo_n "checking for pcapnav-config... " >&6; }
  19419. if test -x $withval ; then
  19420. pcncfg=$withval
  19421. { $as_echo "$as_me:$LINENO: result: $pcncfg" >&5
  19422. $as_echo "$pcncfg" >&6; }
  19423. elif test x$withval = xno ; then
  19424. { $as_echo "$as_me:$LINENO: result: no" >&5
  19425. $as_echo "no" >&6; }
  19426. else
  19427. { $as_echo "$as_me:$LINENO: result: Can't find pcapnav-config: disabling offset jump feature" >&5
  19428. $as_echo "Can't find pcapnav-config: disabling offset jump feature" >&6; }
  19429. fi
  19430. else
  19431. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  19432. set dummy pcapnav-config; ac_word=$2
  19433. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19434. $as_echo_n "checking for $ac_word... " >&6; }
  19435. if test "${ac_cv_path_pcncfg+set}" = set; then
  19436. $as_echo_n "(cached) " >&6
  19437. else
  19438. case $pcncfg in
  19439. [\\/]* | ?:[\\/]*)
  19440. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  19441. ;;
  19442. *)
  19443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19444. for as_dir in $PATH
  19445. do
  19446. IFS=$as_save_IFS
  19447. test -z "$as_dir" && as_dir=.
  19448. for ac_exec_ext in '' $ac_executable_extensions; do
  19449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19450. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  19451. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19452. break 2
  19453. fi
  19454. done
  19455. done
  19456. IFS=$as_save_IFS
  19457. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg="no "
  19458. ;;
  19459. esac
  19460. fi
  19461. pcncfg=$ac_cv_path_pcncfg
  19462. if test -n "$pcncfg"; then
  19463. { $as_echo "$as_me:$LINENO: result: $pcncfg" >&5
  19464. $as_echo "$pcncfg" >&6; }
  19465. else
  19466. { $as_echo "$as_me:$LINENO: result: no" >&5
  19467. $as_echo "no" >&6; }
  19468. fi
  19469. fi
  19470. if test $pcncfg != no ; then
  19471. LNAVLIB=`$pcncfg --libs`
  19472. LNAV_CFLAGS=`$pcncfg --cflags`
  19473. PCAPNAV_VERSION=`$pcncfg --version`
  19474. cat >>confdefs.h <<_ACEOF
  19475. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  19476. _ACEOF
  19477. { $as_echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  19478. $as_echo_n "checking for libpcapnav version... " >&6; }
  19479. if test "$cross_compiling" = yes; then
  19480. libpcapnav_ver=no
  19481. else
  19482. cat >conftest.$ac_ext <<_ACEOF
  19483. /* confdefs.h. */
  19484. _ACEOF
  19485. cat confdefs.h >>conftest.$ac_ext
  19486. cat >>conftest.$ac_ext <<_ACEOF
  19487. /* end confdefs.h. */
  19488. #include <string.h>
  19489. #define PCAPNAV_TEST "0.4"
  19490. /*
  19491. * simple proggy to test the version of libpcapnav
  19492. * returns zero if version >= 0.4
  19493. * or one otherwise
  19494. */
  19495. int
  19496. main (int argc, char *argv[])
  19497. {
  19498. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  19499. exit(0);
  19500. exit(1);
  19501. }
  19502. _ACEOF
  19503. rm -f conftest$ac_exeext
  19504. if { (ac_try="$ac_link"
  19505. case "(($ac_try" in
  19506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19507. *) ac_try_echo=$ac_try;;
  19508. esac
  19509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19510. $as_echo "$ac_try_echo") >&5
  19511. (eval "$ac_link") 2>&5
  19512. ac_status=$?
  19513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19514. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19515. { (case "(($ac_try" in
  19516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19517. *) ac_try_echo=$ac_try;;
  19518. esac
  19519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19520. $as_echo "$ac_try_echo") >&5
  19521. (eval "$ac_try") 2>&5
  19522. ac_status=$?
  19523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19524. (exit $ac_status); }; }; then
  19525. libpcapnav_ver=yes
  19526. { $as_echo "$as_me:$LINENO: result: >= 0.4" >&5
  19527. $as_echo ">= 0.4" >&6; }
  19528. else
  19529. $as_echo "$as_me: program exited with status $ac_status" >&5
  19530. $as_echo "$as_me: failed program was:" >&5
  19531. sed 's/^/| /' conftest.$ac_ext >&5
  19532. ( exit $ac_status )
  19533. libpcapnav_ver=no
  19534. { $as_echo "$as_me:$LINENO: result: < 0.4" >&5
  19535. $as_echo "< 0.4" >&6; }
  19536. fi
  19537. rm -rf conftest.dSYM
  19538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19539. fi
  19540. if test x$libpcapnav_ver = xno ; then
  19541. { $as_echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  19542. Please upgrade to version 0.4 or better.
  19543. Disabling offset jump feature." >&5
  19544. $as_echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  19545. Please upgrade to version 0.4 or better.
  19546. Disabling offset jump feature." >&2;}
  19547. else
  19548. cat >>confdefs.h <<\_ACEOF
  19549. #define HAVE_PCAPNAV 1
  19550. _ACEOF
  19551. fi
  19552. fi # checking pcapnav version
  19553. { $as_echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  19554. $as_echo_n "checking for requires strict byte alignment... " >&6; }
  19555. if test "${unaligned_cv_fail+set}" = set; then
  19556. $as_echo_n "(cached) " >&6
  19557. else
  19558. case "$host_cpu" in
  19559. # XXX: should also check that they don't do weird things (like on arm)
  19560. alpha*|arm*|hp*|mips*|sparc*|ia64)
  19561. unaligned_cv_fail=yes
  19562. ;;
  19563. *)
  19564. cat >conftest.c <<EOF
  19565. #include <sys/types.h>
  19566. #include <sys/wait.h>
  19567. #include <stdio.h>
  19568. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  19569. main() {
  19570. unsigned int i;
  19571. pid_t pid;
  19572. int status;
  19573. /* avoid "core dumped" message */
  19574. pid = fork();
  19575. if (pid < 0)
  19576. exit(2);
  19577. if (pid > 0) {
  19578. /* parent */
  19579. pid = waitpid(pid, &status, 0);
  19580. if (pid < 0)
  19581. exit(3);
  19582. exit(!WIFEXITED(status));
  19583. }
  19584. /* child */
  19585. i = *(unsigned int *)&a[1];
  19586. printf("%d\n", i);
  19587. exit(0);
  19588. }
  19589. EOF
  19590. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  19591. conftest.c $LIBS >/dev/null 2>&1
  19592. if test ! -x conftest ; then
  19593. unaligned_cv_fail=yes
  19594. else
  19595. ./conftest >conftest.out
  19596. if test ! -s conftest.out ; then
  19597. unaligned_cv_fail=yes
  19598. else
  19599. unaligned_cv_fail=no
  19600. fi
  19601. fi
  19602. rm -f conftest* core core.conftest
  19603. ;;
  19604. esac
  19605. fi
  19606. { $as_echo "$as_me:$LINENO: result: $unaligned_cv_fail" >&5
  19607. $as_echo "$unaligned_cv_fail" >&6; }
  19608. if test $unaligned_cv_fail = yes ; then
  19609. cat >>confdefs.h <<\_ACEOF
  19610. #define FORCE_ALIGN 1
  19611. _ACEOF
  19612. fi
  19613. tcpdump_path=no
  19614. # Check whether --with-tcpdump was given.
  19615. if test "${with_tcpdump+set}" = set; then
  19616. withval=$with_tcpdump; if test -x $withval ; then
  19617. tcpdump_path=$withval
  19618. { $as_echo "$as_me:$LINENO: result: Using tcpdump in $tcpdump_path" >&5
  19619. $as_echo "Using tcpdump in $tcpdump_path" >&6; }
  19620. else
  19621. { $as_echo "$as_me:$LINENO: result: Error: $withval does not exist or is not executable" >&5
  19622. $as_echo "Error: $withval does not exist or is not executable" >&6; }
  19623. fi
  19624. else
  19625. # Extract the first word of "tcpdump", so it can be a program name with args.
  19626. set dummy tcpdump; ac_word=$2
  19627. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19628. $as_echo_n "checking for $ac_word... " >&6; }
  19629. if test "${ac_cv_path_tcpdump_path+set}" = set; then
  19630. $as_echo_n "(cached) " >&6
  19631. else
  19632. case $tcpdump_path in
  19633. [\\/]* | ?:[\\/]*)
  19634. ac_cv_path_tcpdump_path="$tcpdump_path" # Let the user override the test with a path.
  19635. ;;
  19636. *)
  19637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19638. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  19639. for as_dir in $as_dummy
  19640. do
  19641. IFS=$as_save_IFS
  19642. test -z "$as_dir" && as_dir=.
  19643. for ac_exec_ext in '' $ac_executable_extensions; do
  19644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19645. ac_cv_path_tcpdump_path="$as_dir/$ac_word$ac_exec_ext"
  19646. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19647. break 2
  19648. fi
  19649. done
  19650. done
  19651. IFS=$as_save_IFS
  19652. test -z "$ac_cv_path_tcpdump_path" && ac_cv_path_tcpdump_path=""no""
  19653. ;;
  19654. esac
  19655. fi
  19656. tcpdump_path=$ac_cv_path_tcpdump_path
  19657. if test -n "$tcpdump_path"; then
  19658. { $as_echo "$as_me:$LINENO: result: $tcpdump_path" >&5
  19659. $as_echo "$tcpdump_path" >&6; }
  19660. else
  19661. { $as_echo "$as_me:$LINENO: result: no" >&5
  19662. $as_echo "no" >&6; }
  19663. fi
  19664. fi
  19665. if test "$tcpdump_path" = "no"; then
  19666. { $as_echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  19667. Disabling --verbose" >&5
  19668. $as_echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  19669. Disabling --verbose" >&2;}
  19670. else
  19671. cat >>confdefs.h <<\_ACEOF
  19672. #define HAVE_TCPDUMP 1
  19673. _ACEOF
  19674. cat >>confdefs.h <<_ACEOF
  19675. #define TCPDUMP_BINARY "$tcpdump_path"
  19676. _ACEOF
  19677. fi
  19678. if test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes; then
  19679. ENABLE_TCPDUMP_TRUE=
  19680. ENABLE_TCPDUMP_FALSE='#'
  19681. else
  19682. ENABLE_TCPDUMP_TRUE='#'
  19683. ENABLE_TCPDUMP_FALSE=
  19684. fi
  19685. if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then
  19686. cat >>confdefs.h <<\_ACEOF
  19687. #define ENABLE_VERBOSE 1
  19688. _ACEOF
  19689. else
  19690. { $as_echo "$as_me:$LINENO: WARNING: Your version of libpcap is too old for --verbose support" >&5
  19691. $as_echo "$as_me: WARNING: Your version of libpcap is too old for --verbose support" >&2;}
  19692. fi
  19693. { $as_echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  19694. $as_echo_n "checking for 'make test' profile... " >&6; }
  19695. if test "$host" != "$build" ; then
  19696. { $as_echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  19697. $as_echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  19698. fi
  19699. # Check whether --with-testnic was given.
  19700. if test "${with_testnic+set}" = set; then
  19701. withval=$with_testnic; nic1=$withval
  19702. nic2=$withval
  19703. { $as_echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  19704. $as_echo "Using --with-testnic=$withval" >&6; }
  19705. else
  19706. disable_pcap_findalldevs=no
  19707. osx_frameworks=no
  19708. case $host in
  19709. *-*-linux*)
  19710. nic1=eth0
  19711. nic2=eth0
  19712. { $as_echo "$as_me:$LINENO: result: Linux" >&5
  19713. $as_echo "Linux" >&6; }
  19714. ;;
  19715. *-*-solaris*)
  19716. nic1=hme0
  19717. nic2=hme0
  19718. { $as_echo "$as_me:$LINENO: result: Solaris" >&5
  19719. $as_echo "Solaris" >&6; }
  19720. ;;
  19721. *-*-sunos*)
  19722. nic1=hme0
  19723. nic2=hme0
  19724. { $as_echo "$as_me:$LINENO: result: SunOS" >&5
  19725. $as_echo "SunOS" >&6; }
  19726. ;;
  19727. *-apple-darwin*)
  19728. nic1=en0
  19729. nic2=en0
  19730. if test x$libpcap_version_096 = xno ; then
  19731. disable_pcap_findalldevs=yes
  19732. fi
  19733. cat >>confdefs.h <<\_ACEOF
  19734. #define HAVE_ABSOLUTE_TIME 1
  19735. _ACEOF
  19736. osx_frameworks=yes
  19737. cat >>confdefs.h <<\_ACEOF
  19738. #define HAVE_DARWIN 1
  19739. _ACEOF
  19740. { $as_echo "$as_me:$LINENO: result: Apple OS X" >&5
  19741. $as_echo "Apple OS X" >&6; }
  19742. ;;
  19743. *-*-openbsd*)
  19744. nic1=xl0
  19745. nic2=xl0
  19746. { $as_echo "$as_me:$LINENO: result: OpenBSD" >&5
  19747. $as_echo "OpenBSD" >&6; }
  19748. ;;
  19749. *-*-cygwin)
  19750. { $as_echo "$as_me:$LINENO: result: Win32/Cygwin" >&5
  19751. $as_echo "Win32/Cygwin" >&6; }
  19752. nic1=%0
  19753. nic2=%0
  19754. ;;
  19755. *)
  19756. { $as_echo "$as_me:$LINENO: result: $host is unknown! Using first non-loopback interface" >&5
  19757. $as_echo "$host is unknown! Using first non-loopback interface" >&6; }
  19758. nic1=%0
  19759. nic2=%0
  19760. ;;
  19761. esac
  19762. fi
  19763. if test "$osx_frameworks" == "yes"; then
  19764. ENABLE_OSX_FRAMEWORKS_TRUE=
  19765. ENABLE_OSX_FRAMEWORKS_FALSE='#'
  19766. else
  19767. ENABLE_OSX_FRAMEWORKS_TRUE='#'
  19768. ENABLE_OSX_FRAMEWORKS_FALSE=
  19769. fi
  19770. # Check whether --with-testnic2 was given.
  19771. if test "${with_testnic2+set}" = set; then
  19772. withval=$with_testnic2; nic2=$withval
  19773. fi
  19774. { $as_echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  19775. $as_echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  19776. { $as_echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  19777. $as_echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  19778. { $as_echo "$as_me:$LINENO: checking if it's ok to use pcap_findalldevs()" >&5
  19779. $as_echo_n "checking if it's ok to use pcap_findalldevs()... " >&6; }
  19780. if test x$disable_pcap_findalldevs = xno ; then
  19781. cat >>confdefs.h <<\_ACEOF
  19782. #define ENABLE_PCAP_FINDALLDEVS 1
  19783. _ACEOF
  19784. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19785. $as_echo "yes" >&6; }
  19786. else
  19787. { $as_echo "$as_me:$LINENO: result: no" >&5
  19788. $as_echo "no" >&6; }
  19789. fi
  19790. case "${enable_local_libopts+set}" in
  19791. set) ;;
  19792. *) enable_local_libopts=yes ;;
  19793. esac
  19794. case "${enable_libopts_install+set}" in
  19795. set) ;;
  19796. *) enable_libopts_install=no ;;
  19797. esac
  19798. NEED_LIBOPTS_DIR=''
  19799. LIBOPTS_DIR=libopts
  19800. # Check whether --enable-local-libopts was given.
  19801. if test "${enable_local_libopts+set}" = set; then
  19802. enableval=$enable_local_libopts;
  19803. if test x$enableval = xyes ; then
  19804. { $as_echo "$as_me:$LINENO: Using supplied libopts tearoff" >&5
  19805. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  19806. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  19807. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  19808. NEED_LIBOPTS_DIR=true
  19809. fi
  19810. fi
  19811. # Check whether --enable-libopts-install was given.
  19812. if test "${enable_libopts_install+set}" = set; then
  19813. enableval=$enable_libopts_install;
  19814. fi
  19815. if test "X${enable_libopts_install}" != Xno; then
  19816. INSTALL_LIBOPTS_TRUE=
  19817. INSTALL_LIBOPTS_FALSE='#'
  19818. else
  19819. INSTALL_LIBOPTS_TRUE='#'
  19820. INSTALL_LIBOPTS_FALSE=
  19821. fi
  19822. if test -z "${NEED_LIBOPTS_DIR}" ; then
  19823. { $as_echo "$as_me:$LINENO: checking whether autoopts-config can be found" >&5
  19824. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  19825. # Check whether --with-autoopts-config was given.
  19826. if test "${with_autoopts_config+set}" = set; then
  19827. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  19828. else
  19829. { $as_echo "$as_me:$LINENO: checking whether autoopts-config is specified" >&5
  19830. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  19831. if test "${lo_cv_with_autoopts_config+set}" = set; then
  19832. $as_echo_n "(cached) " >&6
  19833. else
  19834. if autoopts-config --help 2>/dev/null 1>&2
  19835. then lo_cv_with_autoopts_config=autoopts-config
  19836. elif libopts-config --help 2>/dev/null 1>&2
  19837. then lo_cv_with_autoopts_config=libopts-config
  19838. else lo_cv_with_autoopts_config=no ; fi
  19839. fi
  19840. { $as_echo "$as_me:$LINENO: result: $lo_cv_with_autoopts_config" >&5
  19841. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  19842. fi
  19843. # end of AC_ARG_WITH
  19844. if test "${lo_cv_test_autoopts+set}" = set; then
  19845. $as_echo_n "(cached) " >&6
  19846. else
  19847. if test -z "${lo_cv_with_autoopts_config}" \
  19848. -o X"${lo_cv_with_autoopts_config}" = Xno
  19849. then
  19850. if autoopts-config --help 2>/dev/null 1>&2
  19851. then lo_cv_with_autoopts_config=autoopts-config
  19852. elif libopts-config --help 2>/dev/null 1>&2
  19853. then lo_cv_with_autoopts_config=libopts-config
  19854. else lo_cv_with_autoopts_config=false ; fi
  19855. fi
  19856. lo_cv_test_autoopts=`
  19857. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  19858. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  19859. then lo_cv_test_autoopts=no ; fi
  19860. fi
  19861. # end of CACHE_VAL
  19862. { $as_echo "$as_me:$LINENO: result: ${lo_cv_test_autoopts}" >&5
  19863. $as_echo "${lo_cv_test_autoopts}" >&6; }
  19864. if test "X${lo_cv_test_autoopts}" != Xno
  19865. then
  19866. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  19867. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  19868. else
  19869. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  19870. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  19871. NEED_LIBOPTS_DIR=true
  19872. fi
  19873. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  19874. if test -n "${NEED_LIBOPTS_DIR}"; then
  19875. NEED_LIBOPTS_TRUE=
  19876. NEED_LIBOPTS_FALSE='#'
  19877. else
  19878. NEED_LIBOPTS_TRUE='#'
  19879. NEED_LIBOPTS_FALSE=
  19880. fi
  19881. LIBOPTS_DIR=libopts
  19882. ac_config_files="$ac_config_files libopts/Makefile"
  19883. if test -n "${NEED_LIBOPTS_DIR}" ; then
  19884. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  19885. # =================
  19886. # AC_HEADER_STDC
  19887. # =================
  19888. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  19889. $as_echo_n "checking for ANSI C header files... " >&6; }
  19890. if test "${ac_cv_header_stdc+set}" = set; then
  19891. $as_echo_n "(cached) " >&6
  19892. else
  19893. cat >conftest.$ac_ext <<_ACEOF
  19894. /* confdefs.h. */
  19895. _ACEOF
  19896. cat confdefs.h >>conftest.$ac_ext
  19897. cat >>conftest.$ac_ext <<_ACEOF
  19898. /* end confdefs.h. */
  19899. #include <stdlib.h>
  19900. #include <stdarg.h>
  19901. #include <string.h>
  19902. #include <float.h>
  19903. int
  19904. main ()
  19905. {
  19906. ;
  19907. return 0;
  19908. }
  19909. _ACEOF
  19910. rm -f conftest.$ac_objext
  19911. if { (ac_try="$ac_compile"
  19912. case "(($ac_try" in
  19913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19914. *) ac_try_echo=$ac_try;;
  19915. esac
  19916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19917. $as_echo "$ac_try_echo") >&5
  19918. (eval "$ac_compile") 2>conftest.er1
  19919. ac_status=$?
  19920. grep -v '^ *+' conftest.er1 >conftest.err
  19921. rm -f conftest.er1
  19922. cat conftest.err >&5
  19923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19924. (exit $ac_status); } && {
  19925. test -z "$ac_c_werror_flag" ||
  19926. test ! -s conftest.err
  19927. } && test -s conftest.$ac_objext; then
  19928. ac_cv_header_stdc=yes
  19929. else
  19930. $as_echo "$as_me: failed program was:" >&5
  19931. sed 's/^/| /' conftest.$ac_ext >&5
  19932. ac_cv_header_stdc=no
  19933. fi
  19934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19935. if test $ac_cv_header_stdc = yes; then
  19936. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  19937. cat >conftest.$ac_ext <<_ACEOF
  19938. /* confdefs.h. */
  19939. _ACEOF
  19940. cat confdefs.h >>conftest.$ac_ext
  19941. cat >>conftest.$ac_ext <<_ACEOF
  19942. /* end confdefs.h. */
  19943. #include <string.h>
  19944. _ACEOF
  19945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19946. $EGREP "memchr" >/dev/null 2>&1; then
  19947. :
  19948. else
  19949. ac_cv_header_stdc=no
  19950. fi
  19951. rm -f conftest*
  19952. fi
  19953. if test $ac_cv_header_stdc = yes; then
  19954. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  19955. cat >conftest.$ac_ext <<_ACEOF
  19956. /* confdefs.h. */
  19957. _ACEOF
  19958. cat confdefs.h >>conftest.$ac_ext
  19959. cat >>conftest.$ac_ext <<_ACEOF
  19960. /* end confdefs.h. */
  19961. #include <stdlib.h>
  19962. _ACEOF
  19963. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19964. $EGREP "free" >/dev/null 2>&1; then
  19965. :
  19966. else
  19967. ac_cv_header_stdc=no
  19968. fi
  19969. rm -f conftest*
  19970. fi
  19971. if test $ac_cv_header_stdc = yes; then
  19972. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  19973. if test "$cross_compiling" = yes; then
  19974. :
  19975. else
  19976. cat >conftest.$ac_ext <<_ACEOF
  19977. /* confdefs.h. */
  19978. _ACEOF
  19979. cat confdefs.h >>conftest.$ac_ext
  19980. cat >>conftest.$ac_ext <<_ACEOF
  19981. /* end confdefs.h. */
  19982. #include <ctype.h>
  19983. #include <stdlib.h>
  19984. #if ((' ' & 0x0FF) == 0x020)
  19985. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  19986. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  19987. #else
  19988. # define ISLOWER(c) \
  19989. (('a' <= (c) && (c) <= 'i') \
  19990. || ('j' <= (c) && (c) <= 'r') \
  19991. || ('s' <= (c) && (c) <= 'z'))
  19992. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  19993. #endif
  19994. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  19995. int
  19996. main ()
  19997. {
  19998. int i;
  19999. for (i = 0; i < 256; i++)
  20000. if (XOR (islower (i), ISLOWER (i))
  20001. || toupper (i) != TOUPPER (i))
  20002. return 2;
  20003. return 0;
  20004. }
  20005. _ACEOF
  20006. rm -f conftest$ac_exeext
  20007. if { (ac_try="$ac_link"
  20008. case "(($ac_try" in
  20009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20010. *) ac_try_echo=$ac_try;;
  20011. esac
  20012. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20013. $as_echo "$ac_try_echo") >&5
  20014. (eval "$ac_link") 2>&5
  20015. ac_status=$?
  20016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20017. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20018. { (case "(($ac_try" in
  20019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20020. *) ac_try_echo=$ac_try;;
  20021. esac
  20022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20023. $as_echo "$ac_try_echo") >&5
  20024. (eval "$ac_try") 2>&5
  20025. ac_status=$?
  20026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20027. (exit $ac_status); }; }; then
  20028. :
  20029. else
  20030. $as_echo "$as_me: program exited with status $ac_status" >&5
  20031. $as_echo "$as_me: failed program was:" >&5
  20032. sed 's/^/| /' conftest.$ac_ext >&5
  20033. ( exit $ac_status )
  20034. ac_cv_header_stdc=no
  20035. fi
  20036. rm -rf conftest.dSYM
  20037. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20038. fi
  20039. fi
  20040. fi
  20041. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  20042. $as_echo "$ac_cv_header_stdc" >&6; }
  20043. if test $ac_cv_header_stdc = yes; then
  20044. cat >>confdefs.h <<\_ACEOF
  20045. #define STDC_HEADERS 1
  20046. _ACEOF
  20047. fi
  20048. # =================
  20049. # AC_HEADER_DIRENT
  20050. # =================
  20051. ac_header_dirent=no
  20052. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  20053. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  20054. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  20055. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  20056. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20057. $as_echo_n "(cached) " >&6
  20058. else
  20059. cat >conftest.$ac_ext <<_ACEOF
  20060. /* confdefs.h. */
  20061. _ACEOF
  20062. cat confdefs.h >>conftest.$ac_ext
  20063. cat >>conftest.$ac_ext <<_ACEOF
  20064. /* end confdefs.h. */
  20065. #include <sys/types.h>
  20066. #include <$ac_hdr>
  20067. int
  20068. main ()
  20069. {
  20070. if ((DIR *) 0)
  20071. return 0;
  20072. ;
  20073. return 0;
  20074. }
  20075. _ACEOF
  20076. rm -f conftest.$ac_objext
  20077. if { (ac_try="$ac_compile"
  20078. case "(($ac_try" in
  20079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20080. *) ac_try_echo=$ac_try;;
  20081. esac
  20082. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20083. $as_echo "$ac_try_echo") >&5
  20084. (eval "$ac_compile") 2>conftest.er1
  20085. ac_status=$?
  20086. grep -v '^ *+' conftest.er1 >conftest.err
  20087. rm -f conftest.er1
  20088. cat conftest.err >&5
  20089. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20090. (exit $ac_status); } && {
  20091. test -z "$ac_c_werror_flag" ||
  20092. test ! -s conftest.err
  20093. } && test -s conftest.$ac_objext; then
  20094. eval "$as_ac_Header=yes"
  20095. else
  20096. $as_echo "$as_me: failed program was:" >&5
  20097. sed 's/^/| /' conftest.$ac_ext >&5
  20098. eval "$as_ac_Header=no"
  20099. fi
  20100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20101. fi
  20102. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20103. $as_echo "$as_val"'`
  20104. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20105. $as_echo "$ac_res" >&6; }
  20106. as_val=`eval 'as_val=${'$as_ac_Header'}
  20107. $as_echo "$as_val"'`
  20108. if test "x$as_val" = x""yes; then
  20109. cat >>confdefs.h <<_ACEOF
  20110. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  20111. _ACEOF
  20112. ac_header_dirent=$ac_hdr; break
  20113. fi
  20114. done
  20115. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  20116. if test $ac_header_dirent = dirent.h; then
  20117. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  20118. $as_echo_n "checking for library containing opendir... " >&6; }
  20119. if test "${ac_cv_search_opendir+set}" = set; then
  20120. $as_echo_n "(cached) " >&6
  20121. else
  20122. ac_func_search_save_LIBS=$LIBS
  20123. cat >conftest.$ac_ext <<_ACEOF
  20124. /* confdefs.h. */
  20125. _ACEOF
  20126. cat confdefs.h >>conftest.$ac_ext
  20127. cat >>conftest.$ac_ext <<_ACEOF
  20128. /* end confdefs.h. */
  20129. /* Override any GCC internal prototype to avoid an error.
  20130. Use char because int might match the return type of a GCC
  20131. builtin and then its argument prototype would still apply. */
  20132. #ifdef __cplusplus
  20133. extern "C"
  20134. #endif
  20135. char opendir ();
  20136. int
  20137. main ()
  20138. {
  20139. return opendir ();
  20140. ;
  20141. return 0;
  20142. }
  20143. _ACEOF
  20144. for ac_lib in '' dir; do
  20145. if test -z "$ac_lib"; then
  20146. ac_res="none required"
  20147. else
  20148. ac_res=-l$ac_lib
  20149. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20150. fi
  20151. rm -f conftest.$ac_objext conftest$ac_exeext
  20152. if { (ac_try="$ac_link"
  20153. case "(($ac_try" in
  20154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20155. *) ac_try_echo=$ac_try;;
  20156. esac
  20157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20158. $as_echo "$ac_try_echo") >&5
  20159. (eval "$ac_link") 2>conftest.er1
  20160. ac_status=$?
  20161. grep -v '^ *+' conftest.er1 >conftest.err
  20162. rm -f conftest.er1
  20163. cat conftest.err >&5
  20164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20165. (exit $ac_status); } && {
  20166. test -z "$ac_c_werror_flag" ||
  20167. test ! -s conftest.err
  20168. } && test -s conftest$ac_exeext && {
  20169. test "$cross_compiling" = yes ||
  20170. $as_test_x conftest$ac_exeext
  20171. }; then
  20172. ac_cv_search_opendir=$ac_res
  20173. else
  20174. $as_echo "$as_me: failed program was:" >&5
  20175. sed 's/^/| /' conftest.$ac_ext >&5
  20176. fi
  20177. rm -rf conftest.dSYM
  20178. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20179. conftest$ac_exeext
  20180. if test "${ac_cv_search_opendir+set}" = set; then
  20181. break
  20182. fi
  20183. done
  20184. if test "${ac_cv_search_opendir+set}" = set; then
  20185. :
  20186. else
  20187. ac_cv_search_opendir=no
  20188. fi
  20189. rm conftest.$ac_ext
  20190. LIBS=$ac_func_search_save_LIBS
  20191. fi
  20192. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  20193. $as_echo "$ac_cv_search_opendir" >&6; }
  20194. ac_res=$ac_cv_search_opendir
  20195. if test "$ac_res" != no; then
  20196. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20197. fi
  20198. else
  20199. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  20200. $as_echo_n "checking for library containing opendir... " >&6; }
  20201. if test "${ac_cv_search_opendir+set}" = set; then
  20202. $as_echo_n "(cached) " >&6
  20203. else
  20204. ac_func_search_save_LIBS=$LIBS
  20205. cat >conftest.$ac_ext <<_ACEOF
  20206. /* confdefs.h. */
  20207. _ACEOF
  20208. cat confdefs.h >>conftest.$ac_ext
  20209. cat >>conftest.$ac_ext <<_ACEOF
  20210. /* end confdefs.h. */
  20211. /* Override any GCC internal prototype to avoid an error.
  20212. Use char because int might match the return type of a GCC
  20213. builtin and then its argument prototype would still apply. */
  20214. #ifdef __cplusplus
  20215. extern "C"
  20216. #endif
  20217. char opendir ();
  20218. int
  20219. main ()
  20220. {
  20221. return opendir ();
  20222. ;
  20223. return 0;
  20224. }
  20225. _ACEOF
  20226. for ac_lib in '' x; do
  20227. if test -z "$ac_lib"; then
  20228. ac_res="none required"
  20229. else
  20230. ac_res=-l$ac_lib
  20231. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  20232. fi
  20233. rm -f conftest.$ac_objext conftest$ac_exeext
  20234. if { (ac_try="$ac_link"
  20235. case "(($ac_try" in
  20236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20237. *) ac_try_echo=$ac_try;;
  20238. esac
  20239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20240. $as_echo "$ac_try_echo") >&5
  20241. (eval "$ac_link") 2>conftest.er1
  20242. ac_status=$?
  20243. grep -v '^ *+' conftest.er1 >conftest.err
  20244. rm -f conftest.er1
  20245. cat conftest.err >&5
  20246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20247. (exit $ac_status); } && {
  20248. test -z "$ac_c_werror_flag" ||
  20249. test ! -s conftest.err
  20250. } && test -s conftest$ac_exeext && {
  20251. test "$cross_compiling" = yes ||
  20252. $as_test_x conftest$ac_exeext
  20253. }; then
  20254. ac_cv_search_opendir=$ac_res
  20255. else
  20256. $as_echo "$as_me: failed program was:" >&5
  20257. sed 's/^/| /' conftest.$ac_ext >&5
  20258. fi
  20259. rm -rf conftest.dSYM
  20260. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20261. conftest$ac_exeext
  20262. if test "${ac_cv_search_opendir+set}" = set; then
  20263. break
  20264. fi
  20265. done
  20266. if test "${ac_cv_search_opendir+set}" = set; then
  20267. :
  20268. else
  20269. ac_cv_search_opendir=no
  20270. fi
  20271. rm conftest.$ac_ext
  20272. LIBS=$ac_func_search_save_LIBS
  20273. fi
  20274. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  20275. $as_echo "$ac_cv_search_opendir" >&6; }
  20276. ac_res=$ac_cv_search_opendir
  20277. if test "$ac_res" != no; then
  20278. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  20279. fi
  20280. fi
  20281. # =================
  20282. # AC_CHECK_HEADERS
  20283. # =================
  20284. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  20285. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  20286. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  20287. utime.h sysexits.h
  20288. do
  20289. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20290. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20291. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20292. $as_echo_n "checking for $ac_header... " >&6; }
  20293. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20294. $as_echo_n "(cached) " >&6
  20295. fi
  20296. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20297. $as_echo "$as_val"'`
  20298. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20299. $as_echo "$ac_res" >&6; }
  20300. else
  20301. # Is the header compilable?
  20302. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20303. $as_echo_n "checking $ac_header usability... " >&6; }
  20304. cat >conftest.$ac_ext <<_ACEOF
  20305. /* confdefs.h. */
  20306. _ACEOF
  20307. cat confdefs.h >>conftest.$ac_ext
  20308. cat >>conftest.$ac_ext <<_ACEOF
  20309. /* end confdefs.h. */
  20310. $ac_includes_default
  20311. #include <$ac_header>
  20312. _ACEOF
  20313. rm -f conftest.$ac_objext
  20314. if { (ac_try="$ac_compile"
  20315. case "(($ac_try" in
  20316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20317. *) ac_try_echo=$ac_try;;
  20318. esac
  20319. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20320. $as_echo "$ac_try_echo") >&5
  20321. (eval "$ac_compile") 2>conftest.er1
  20322. ac_status=$?
  20323. grep -v '^ *+' conftest.er1 >conftest.err
  20324. rm -f conftest.er1
  20325. cat conftest.err >&5
  20326. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20327. (exit $ac_status); } && {
  20328. test -z "$ac_c_werror_flag" ||
  20329. test ! -s conftest.err
  20330. } && test -s conftest.$ac_objext; then
  20331. ac_header_compiler=yes
  20332. else
  20333. $as_echo "$as_me: failed program was:" >&5
  20334. sed 's/^/| /' conftest.$ac_ext >&5
  20335. ac_header_compiler=no
  20336. fi
  20337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20338. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20339. $as_echo "$ac_header_compiler" >&6; }
  20340. # Is the header present?
  20341. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20342. $as_echo_n "checking $ac_header presence... " >&6; }
  20343. cat >conftest.$ac_ext <<_ACEOF
  20344. /* confdefs.h. */
  20345. _ACEOF
  20346. cat confdefs.h >>conftest.$ac_ext
  20347. cat >>conftest.$ac_ext <<_ACEOF
  20348. /* end confdefs.h. */
  20349. #include <$ac_header>
  20350. _ACEOF
  20351. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20352. case "(($ac_try" in
  20353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20354. *) ac_try_echo=$ac_try;;
  20355. esac
  20356. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20357. $as_echo "$ac_try_echo") >&5
  20358. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20359. ac_status=$?
  20360. grep -v '^ *+' conftest.er1 >conftest.err
  20361. rm -f conftest.er1
  20362. cat conftest.err >&5
  20363. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20364. (exit $ac_status); } >/dev/null && {
  20365. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20366. test ! -s conftest.err
  20367. }; then
  20368. ac_header_preproc=yes
  20369. else
  20370. $as_echo "$as_me: failed program was:" >&5
  20371. sed 's/^/| /' conftest.$ac_ext >&5
  20372. ac_header_preproc=no
  20373. fi
  20374. rm -f conftest.err conftest.$ac_ext
  20375. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20376. $as_echo "$ac_header_preproc" >&6; }
  20377. # So? What about this header?
  20378. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20379. yes:no: )
  20380. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20381. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20382. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20383. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20384. ac_header_preproc=yes
  20385. ;;
  20386. no:yes:* )
  20387. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20388. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20389. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20390. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20391. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20392. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20393. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20394. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20395. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20396. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20397. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20398. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20399. ;;
  20400. esac
  20401. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20402. $as_echo_n "checking for $ac_header... " >&6; }
  20403. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20404. $as_echo_n "(cached) " >&6
  20405. else
  20406. eval "$as_ac_Header=\$ac_header_preproc"
  20407. fi
  20408. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20409. $as_echo "$as_val"'`
  20410. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20411. $as_echo "$ac_res" >&6; }
  20412. fi
  20413. as_val=`eval 'as_val=${'$as_ac_Header'}
  20414. $as_echo "$as_val"'`
  20415. if test "x$as_val" = x""yes; then
  20416. cat >>confdefs.h <<_ACEOF
  20417. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20418. _ACEOF
  20419. fi
  20420. done
  20421. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  20422. $as_echo_n "checking for size_t... " >&6; }
  20423. if test "${ac_cv_type_size_t+set}" = set; then
  20424. $as_echo_n "(cached) " >&6
  20425. else
  20426. ac_cv_type_size_t=no
  20427. cat >conftest.$ac_ext <<_ACEOF
  20428. /* confdefs.h. */
  20429. _ACEOF
  20430. cat confdefs.h >>conftest.$ac_ext
  20431. cat >>conftest.$ac_ext <<_ACEOF
  20432. /* end confdefs.h. */
  20433. $ac_includes_default
  20434. int
  20435. main ()
  20436. {
  20437. if (sizeof (size_t))
  20438. return 0;
  20439. ;
  20440. return 0;
  20441. }
  20442. _ACEOF
  20443. rm -f conftest.$ac_objext
  20444. if { (ac_try="$ac_compile"
  20445. case "(($ac_try" in
  20446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20447. *) ac_try_echo=$ac_try;;
  20448. esac
  20449. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20450. $as_echo "$ac_try_echo") >&5
  20451. (eval "$ac_compile") 2>conftest.er1
  20452. ac_status=$?
  20453. grep -v '^ *+' conftest.er1 >conftest.err
  20454. rm -f conftest.er1
  20455. cat conftest.err >&5
  20456. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20457. (exit $ac_status); } && {
  20458. test -z "$ac_c_werror_flag" ||
  20459. test ! -s conftest.err
  20460. } && test -s conftest.$ac_objext; then
  20461. cat >conftest.$ac_ext <<_ACEOF
  20462. /* confdefs.h. */
  20463. _ACEOF
  20464. cat confdefs.h >>conftest.$ac_ext
  20465. cat >>conftest.$ac_ext <<_ACEOF
  20466. /* end confdefs.h. */
  20467. $ac_includes_default
  20468. int
  20469. main ()
  20470. {
  20471. if (sizeof ((size_t)))
  20472. return 0;
  20473. ;
  20474. return 0;
  20475. }
  20476. _ACEOF
  20477. rm -f conftest.$ac_objext
  20478. if { (ac_try="$ac_compile"
  20479. case "(($ac_try" in
  20480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20481. *) ac_try_echo=$ac_try;;
  20482. esac
  20483. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20484. $as_echo "$ac_try_echo") >&5
  20485. (eval "$ac_compile") 2>conftest.er1
  20486. ac_status=$?
  20487. grep -v '^ *+' conftest.er1 >conftest.err
  20488. rm -f conftest.er1
  20489. cat conftest.err >&5
  20490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20491. (exit $ac_status); } && {
  20492. test -z "$ac_c_werror_flag" ||
  20493. test ! -s conftest.err
  20494. } && test -s conftest.$ac_objext; then
  20495. :
  20496. else
  20497. $as_echo "$as_me: failed program was:" >&5
  20498. sed 's/^/| /' conftest.$ac_ext >&5
  20499. ac_cv_type_size_t=yes
  20500. fi
  20501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20502. else
  20503. $as_echo "$as_me: failed program was:" >&5
  20504. sed 's/^/| /' conftest.$ac_ext >&5
  20505. fi
  20506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20507. fi
  20508. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  20509. $as_echo "$ac_cv_type_size_t" >&6; }
  20510. if test "x$ac_cv_type_size_t" = x""yes; then
  20511. cat >>confdefs.h <<_ACEOF
  20512. #define HAVE_SIZE_T 1
  20513. _ACEOF
  20514. fi
  20515. # ----------------------------------------------------------------------
  20516. # check for various programs used during the build.
  20517. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  20518. # ----------------------------------------------------------------------
  20519. for ac_header in runetype.h wchar.h
  20520. do
  20521. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20522. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20523. $as_echo_n "checking for $ac_header... " >&6; }
  20524. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20525. $as_echo_n "(cached) " >&6
  20526. else
  20527. cat >conftest.$ac_ext <<_ACEOF
  20528. /* confdefs.h. */
  20529. _ACEOF
  20530. cat confdefs.h >>conftest.$ac_ext
  20531. cat >>conftest.$ac_ext <<_ACEOF
  20532. /* end confdefs.h. */
  20533. $ac_includes_default
  20534. #if HAVE_RUNETYPE_H
  20535. # include <runetype.h>
  20536. #endif
  20537. #include <$ac_header>
  20538. _ACEOF
  20539. rm -f conftest.$ac_objext
  20540. if { (ac_try="$ac_compile"
  20541. case "(($ac_try" in
  20542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20543. *) ac_try_echo=$ac_try;;
  20544. esac
  20545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20546. $as_echo "$ac_try_echo") >&5
  20547. (eval "$ac_compile") 2>conftest.er1
  20548. ac_status=$?
  20549. grep -v '^ *+' conftest.er1 >conftest.err
  20550. rm -f conftest.er1
  20551. cat conftest.err >&5
  20552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20553. (exit $ac_status); } && {
  20554. test -z "$ac_c_werror_flag" ||
  20555. test ! -s conftest.err
  20556. } && test -s conftest.$ac_objext; then
  20557. eval "$as_ac_Header=yes"
  20558. else
  20559. $as_echo "$as_me: failed program was:" >&5
  20560. sed 's/^/| /' conftest.$ac_ext >&5
  20561. eval "$as_ac_Header=no"
  20562. fi
  20563. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20564. fi
  20565. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20566. $as_echo "$as_val"'`
  20567. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20568. $as_echo "$ac_res" >&6; }
  20569. as_val=`eval 'as_val=${'$as_ac_Header'}
  20570. $as_echo "$as_val"'`
  20571. if test "x$as_val" = x""yes; then
  20572. cat >>confdefs.h <<_ACEOF
  20573. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20574. _ACEOF
  20575. fi
  20576. done
  20577. # ----------------------------------------------------------------------
  20578. # Checks for typedefs
  20579. # ----------------------------------------------------------------------
  20580. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  20581. $as_echo_n "checking for wchar_t... " >&6; }
  20582. if test "${ac_cv_type_wchar_t+set}" = set; then
  20583. $as_echo_n "(cached) " >&6
  20584. else
  20585. ac_cv_type_wchar_t=no
  20586. cat >conftest.$ac_ext <<_ACEOF
  20587. /* confdefs.h. */
  20588. _ACEOF
  20589. cat confdefs.h >>conftest.$ac_ext
  20590. cat >>conftest.$ac_ext <<_ACEOF
  20591. /* end confdefs.h. */
  20592. $ac_includes_default
  20593. int
  20594. main ()
  20595. {
  20596. if (sizeof (wchar_t))
  20597. return 0;
  20598. ;
  20599. return 0;
  20600. }
  20601. _ACEOF
  20602. rm -f conftest.$ac_objext
  20603. if { (ac_try="$ac_compile"
  20604. case "(($ac_try" in
  20605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20606. *) ac_try_echo=$ac_try;;
  20607. esac
  20608. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20609. $as_echo "$ac_try_echo") >&5
  20610. (eval "$ac_compile") 2>conftest.er1
  20611. ac_status=$?
  20612. grep -v '^ *+' conftest.er1 >conftest.err
  20613. rm -f conftest.er1
  20614. cat conftest.err >&5
  20615. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20616. (exit $ac_status); } && {
  20617. test -z "$ac_c_werror_flag" ||
  20618. test ! -s conftest.err
  20619. } && test -s conftest.$ac_objext; then
  20620. cat >conftest.$ac_ext <<_ACEOF
  20621. /* confdefs.h. */
  20622. _ACEOF
  20623. cat confdefs.h >>conftest.$ac_ext
  20624. cat >>conftest.$ac_ext <<_ACEOF
  20625. /* end confdefs.h. */
  20626. $ac_includes_default
  20627. int
  20628. main ()
  20629. {
  20630. if (sizeof ((wchar_t)))
  20631. return 0;
  20632. ;
  20633. return 0;
  20634. }
  20635. _ACEOF
  20636. rm -f conftest.$ac_objext
  20637. if { (ac_try="$ac_compile"
  20638. case "(($ac_try" in
  20639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20640. *) ac_try_echo=$ac_try;;
  20641. esac
  20642. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20643. $as_echo "$ac_try_echo") >&5
  20644. (eval "$ac_compile") 2>conftest.er1
  20645. ac_status=$?
  20646. grep -v '^ *+' conftest.er1 >conftest.err
  20647. rm -f conftest.er1
  20648. cat conftest.err >&5
  20649. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20650. (exit $ac_status); } && {
  20651. test -z "$ac_c_werror_flag" ||
  20652. test ! -s conftest.err
  20653. } && test -s conftest.$ac_objext; then
  20654. :
  20655. else
  20656. $as_echo "$as_me: failed program was:" >&5
  20657. sed 's/^/| /' conftest.$ac_ext >&5
  20658. ac_cv_type_wchar_t=yes
  20659. fi
  20660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20661. else
  20662. $as_echo "$as_me: failed program was:" >&5
  20663. sed 's/^/| /' conftest.$ac_ext >&5
  20664. fi
  20665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20666. fi
  20667. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
  20668. $as_echo "$ac_cv_type_wchar_t" >&6; }
  20669. if test "x$ac_cv_type_wchar_t" = x""yes; then
  20670. cat >>confdefs.h <<_ACEOF
  20671. #define HAVE_WCHAR_T 1
  20672. _ACEOF
  20673. fi
  20674. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  20675. $as_echo_n "checking for wint_t... " >&6; }
  20676. if test "${ac_cv_type_wint_t+set}" = set; then
  20677. $as_echo_n "(cached) " >&6
  20678. else
  20679. ac_cv_type_wint_t=no
  20680. cat >conftest.$ac_ext <<_ACEOF
  20681. /* confdefs.h. */
  20682. _ACEOF
  20683. cat confdefs.h >>conftest.$ac_ext
  20684. cat >>conftest.$ac_ext <<_ACEOF
  20685. /* end confdefs.h. */
  20686. $ac_includes_default
  20687. #if HAVE_RUNETYPE_H
  20688. # include <runetype.h>
  20689. #endif
  20690. #if HAVE_WCHAR_H
  20691. # include <wchar.h>
  20692. #endif
  20693. int
  20694. main ()
  20695. {
  20696. if (sizeof (wint_t))
  20697. return 0;
  20698. ;
  20699. return 0;
  20700. }
  20701. _ACEOF
  20702. rm -f conftest.$ac_objext
  20703. if { (ac_try="$ac_compile"
  20704. case "(($ac_try" in
  20705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20706. *) ac_try_echo=$ac_try;;
  20707. esac
  20708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20709. $as_echo "$ac_try_echo") >&5
  20710. (eval "$ac_compile") 2>conftest.er1
  20711. ac_status=$?
  20712. grep -v '^ *+' conftest.er1 >conftest.err
  20713. rm -f conftest.er1
  20714. cat conftest.err >&5
  20715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20716. (exit $ac_status); } && {
  20717. test -z "$ac_c_werror_flag" ||
  20718. test ! -s conftest.err
  20719. } && test -s conftest.$ac_objext; then
  20720. cat >conftest.$ac_ext <<_ACEOF
  20721. /* confdefs.h. */
  20722. _ACEOF
  20723. cat confdefs.h >>conftest.$ac_ext
  20724. cat >>conftest.$ac_ext <<_ACEOF
  20725. /* end confdefs.h. */
  20726. $ac_includes_default
  20727. #if HAVE_RUNETYPE_H
  20728. # include <runetype.h>
  20729. #endif
  20730. #if HAVE_WCHAR_H
  20731. # include <wchar.h>
  20732. #endif
  20733. int
  20734. main ()
  20735. {
  20736. if (sizeof ((wint_t)))
  20737. return 0;
  20738. ;
  20739. return 0;
  20740. }
  20741. _ACEOF
  20742. rm -f conftest.$ac_objext
  20743. if { (ac_try="$ac_compile"
  20744. case "(($ac_try" in
  20745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20746. *) ac_try_echo=$ac_try;;
  20747. esac
  20748. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20749. $as_echo "$ac_try_echo") >&5
  20750. (eval "$ac_compile") 2>conftest.er1
  20751. ac_status=$?
  20752. grep -v '^ *+' conftest.er1 >conftest.err
  20753. rm -f conftest.er1
  20754. cat conftest.err >&5
  20755. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20756. (exit $ac_status); } && {
  20757. test -z "$ac_c_werror_flag" ||
  20758. test ! -s conftest.err
  20759. } && test -s conftest.$ac_objext; then
  20760. :
  20761. else
  20762. $as_echo "$as_me: failed program was:" >&5
  20763. sed 's/^/| /' conftest.$ac_ext >&5
  20764. ac_cv_type_wint_t=yes
  20765. fi
  20766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20767. else
  20768. $as_echo "$as_me: failed program was:" >&5
  20769. sed 's/^/| /' conftest.$ac_ext >&5
  20770. fi
  20771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20772. fi
  20773. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
  20774. $as_echo "$ac_cv_type_wint_t" >&6; }
  20775. if test "x$ac_cv_type_wint_t" = x""yes; then
  20776. cat >>confdefs.h <<_ACEOF
  20777. #define HAVE_WINT_T 1
  20778. _ACEOF
  20779. fi
  20780. # --------------------------------------------
  20781. # Verify certain entries from AC_CHECK_HEADERS
  20782. # --------------------------------------------
  20783. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  20784. string errno stdlib memory setjmp
  20785. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  20786. test "${as_ac_var}" = set || \
  20787. { { $as_echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  20788. $as_echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  20789. { (exit 1); exit 1; }; }
  20790. done
  20791. # ================================================
  20792. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  20793. # if varargs.h is present define HAVE_VARARGS_H.
  20794. # ================================================
  20795. for ac_header in stdarg.h varargs.h
  20796. do
  20797. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20798. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20799. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20800. $as_echo_n "checking for $ac_header... " >&6; }
  20801. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20802. $as_echo_n "(cached) " >&6
  20803. fi
  20804. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20805. $as_echo "$as_val"'`
  20806. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20807. $as_echo "$ac_res" >&6; }
  20808. else
  20809. # Is the header compilable?
  20810. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20811. $as_echo_n "checking $ac_header usability... " >&6; }
  20812. cat >conftest.$ac_ext <<_ACEOF
  20813. /* confdefs.h. */
  20814. _ACEOF
  20815. cat confdefs.h >>conftest.$ac_ext
  20816. cat >>conftest.$ac_ext <<_ACEOF
  20817. /* end confdefs.h. */
  20818. $ac_includes_default
  20819. #include <$ac_header>
  20820. _ACEOF
  20821. rm -f conftest.$ac_objext
  20822. if { (ac_try="$ac_compile"
  20823. case "(($ac_try" in
  20824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20825. *) ac_try_echo=$ac_try;;
  20826. esac
  20827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20828. $as_echo "$ac_try_echo") >&5
  20829. (eval "$ac_compile") 2>conftest.er1
  20830. ac_status=$?
  20831. grep -v '^ *+' conftest.er1 >conftest.err
  20832. rm -f conftest.er1
  20833. cat conftest.err >&5
  20834. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20835. (exit $ac_status); } && {
  20836. test -z "$ac_c_werror_flag" ||
  20837. test ! -s conftest.err
  20838. } && test -s conftest.$ac_objext; then
  20839. ac_header_compiler=yes
  20840. else
  20841. $as_echo "$as_me: failed program was:" >&5
  20842. sed 's/^/| /' conftest.$ac_ext >&5
  20843. ac_header_compiler=no
  20844. fi
  20845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20846. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20847. $as_echo "$ac_header_compiler" >&6; }
  20848. # Is the header present?
  20849. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20850. $as_echo_n "checking $ac_header presence... " >&6; }
  20851. cat >conftest.$ac_ext <<_ACEOF
  20852. /* confdefs.h. */
  20853. _ACEOF
  20854. cat confdefs.h >>conftest.$ac_ext
  20855. cat >>conftest.$ac_ext <<_ACEOF
  20856. /* end confdefs.h. */
  20857. #include <$ac_header>
  20858. _ACEOF
  20859. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20860. case "(($ac_try" in
  20861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20862. *) ac_try_echo=$ac_try;;
  20863. esac
  20864. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20865. $as_echo "$ac_try_echo") >&5
  20866. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20867. ac_status=$?
  20868. grep -v '^ *+' conftest.er1 >conftest.err
  20869. rm -f conftest.er1
  20870. cat conftest.err >&5
  20871. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20872. (exit $ac_status); } >/dev/null && {
  20873. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20874. test ! -s conftest.err
  20875. }; then
  20876. ac_header_preproc=yes
  20877. else
  20878. $as_echo "$as_me: failed program was:" >&5
  20879. sed 's/^/| /' conftest.$ac_ext >&5
  20880. ac_header_preproc=no
  20881. fi
  20882. rm -f conftest.err conftest.$ac_ext
  20883. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20884. $as_echo "$ac_header_preproc" >&6; }
  20885. # So? What about this header?
  20886. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20887. yes:no: )
  20888. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20889. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20890. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20891. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20892. ac_header_preproc=yes
  20893. ;;
  20894. no:yes:* )
  20895. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20896. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20897. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20898. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20899. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20900. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20901. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20902. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20903. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20904. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20905. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20906. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20907. ;;
  20908. esac
  20909. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20910. $as_echo_n "checking for $ac_header... " >&6; }
  20911. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20912. $as_echo_n "(cached) " >&6
  20913. else
  20914. eval "$as_ac_Header=\$ac_header_preproc"
  20915. fi
  20916. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20917. $as_echo "$as_val"'`
  20918. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20919. $as_echo "$ac_res" >&6; }
  20920. fi
  20921. as_val=`eval 'as_val=${'$as_ac_Header'}
  20922. $as_echo "$as_val"'`
  20923. if test "x$as_val" = x""yes; then
  20924. cat >>confdefs.h <<_ACEOF
  20925. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20926. _ACEOF
  20927. break
  20928. fi
  20929. done
  20930. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  20931. { { $as_echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  20932. $as_echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  20933. { (exit 1); exit 1; }; }
  20934. fi
  20935. # ================================================
  20936. # Similarly for the string.h and strings.h headers
  20937. # ================================================
  20938. for ac_header in string.h strings.h
  20939. do
  20940. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20941. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20942. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20943. $as_echo_n "checking for $ac_header... " >&6; }
  20944. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20945. $as_echo_n "(cached) " >&6
  20946. fi
  20947. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20948. $as_echo "$as_val"'`
  20949. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20950. $as_echo "$ac_res" >&6; }
  20951. else
  20952. # Is the header compilable?
  20953. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20954. $as_echo_n "checking $ac_header usability... " >&6; }
  20955. cat >conftest.$ac_ext <<_ACEOF
  20956. /* confdefs.h. */
  20957. _ACEOF
  20958. cat confdefs.h >>conftest.$ac_ext
  20959. cat >>conftest.$ac_ext <<_ACEOF
  20960. /* end confdefs.h. */
  20961. $ac_includes_default
  20962. #include <$ac_header>
  20963. _ACEOF
  20964. rm -f conftest.$ac_objext
  20965. if { (ac_try="$ac_compile"
  20966. case "(($ac_try" in
  20967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20968. *) ac_try_echo=$ac_try;;
  20969. esac
  20970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20971. $as_echo "$ac_try_echo") >&5
  20972. (eval "$ac_compile") 2>conftest.er1
  20973. ac_status=$?
  20974. grep -v '^ *+' conftest.er1 >conftest.err
  20975. rm -f conftest.er1
  20976. cat conftest.err >&5
  20977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20978. (exit $ac_status); } && {
  20979. test -z "$ac_c_werror_flag" ||
  20980. test ! -s conftest.err
  20981. } && test -s conftest.$ac_objext; then
  20982. ac_header_compiler=yes
  20983. else
  20984. $as_echo "$as_me: failed program was:" >&5
  20985. sed 's/^/| /' conftest.$ac_ext >&5
  20986. ac_header_compiler=no
  20987. fi
  20988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20989. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20990. $as_echo "$ac_header_compiler" >&6; }
  20991. # Is the header present?
  20992. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20993. $as_echo_n "checking $ac_header presence... " >&6; }
  20994. cat >conftest.$ac_ext <<_ACEOF
  20995. /* confdefs.h. */
  20996. _ACEOF
  20997. cat confdefs.h >>conftest.$ac_ext
  20998. cat >>conftest.$ac_ext <<_ACEOF
  20999. /* end confdefs.h. */
  21000. #include <$ac_header>
  21001. _ACEOF
  21002. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21003. case "(($ac_try" in
  21004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21005. *) ac_try_echo=$ac_try;;
  21006. esac
  21007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21008. $as_echo "$ac_try_echo") >&5
  21009. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21010. ac_status=$?
  21011. grep -v '^ *+' conftest.er1 >conftest.err
  21012. rm -f conftest.er1
  21013. cat conftest.err >&5
  21014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21015. (exit $ac_status); } >/dev/null && {
  21016. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21017. test ! -s conftest.err
  21018. }; then
  21019. ac_header_preproc=yes
  21020. else
  21021. $as_echo "$as_me: failed program was:" >&5
  21022. sed 's/^/| /' conftest.$ac_ext >&5
  21023. ac_header_preproc=no
  21024. fi
  21025. rm -f conftest.err conftest.$ac_ext
  21026. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21027. $as_echo "$ac_header_preproc" >&6; }
  21028. # So? What about this header?
  21029. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21030. yes:no: )
  21031. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21032. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21033. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21034. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21035. ac_header_preproc=yes
  21036. ;;
  21037. no:yes:* )
  21038. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21039. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21040. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21041. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21042. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21043. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21044. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21045. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21046. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21047. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21048. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21049. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21050. ;;
  21051. esac
  21052. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21053. $as_echo_n "checking for $ac_header... " >&6; }
  21054. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21055. $as_echo_n "(cached) " >&6
  21056. else
  21057. eval "$as_ac_Header=\$ac_header_preproc"
  21058. fi
  21059. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21060. $as_echo "$as_val"'`
  21061. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21062. $as_echo "$ac_res" >&6; }
  21063. fi
  21064. as_val=`eval 'as_val=${'$as_ac_Header'}
  21065. $as_echo "$as_val"'`
  21066. if test "x$as_val" = x""yes; then
  21067. cat >>confdefs.h <<_ACEOF
  21068. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21069. _ACEOF
  21070. break
  21071. fi
  21072. done
  21073. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  21074. { { $as_echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  21075. $as_echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  21076. { (exit 1); exit 1; }; }
  21077. fi
  21078. # =====================
  21079. # ...and limits headers
  21080. # =====================
  21081. for ac_header in limits.h sys/limits.h values.h
  21082. do
  21083. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21084. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21085. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21086. $as_echo_n "checking for $ac_header... " >&6; }
  21087. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21088. $as_echo_n "(cached) " >&6
  21089. fi
  21090. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21091. $as_echo "$as_val"'`
  21092. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21093. $as_echo "$ac_res" >&6; }
  21094. else
  21095. # Is the header compilable?
  21096. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21097. $as_echo_n "checking $ac_header usability... " >&6; }
  21098. cat >conftest.$ac_ext <<_ACEOF
  21099. /* confdefs.h. */
  21100. _ACEOF
  21101. cat confdefs.h >>conftest.$ac_ext
  21102. cat >>conftest.$ac_ext <<_ACEOF
  21103. /* end confdefs.h. */
  21104. $ac_includes_default
  21105. #include <$ac_header>
  21106. _ACEOF
  21107. rm -f conftest.$ac_objext
  21108. if { (ac_try="$ac_compile"
  21109. case "(($ac_try" in
  21110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21111. *) ac_try_echo=$ac_try;;
  21112. esac
  21113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21114. $as_echo "$ac_try_echo") >&5
  21115. (eval "$ac_compile") 2>conftest.er1
  21116. ac_status=$?
  21117. grep -v '^ *+' conftest.er1 >conftest.err
  21118. rm -f conftest.er1
  21119. cat conftest.err >&5
  21120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21121. (exit $ac_status); } && {
  21122. test -z "$ac_c_werror_flag" ||
  21123. test ! -s conftest.err
  21124. } && test -s conftest.$ac_objext; then
  21125. ac_header_compiler=yes
  21126. else
  21127. $as_echo "$as_me: failed program was:" >&5
  21128. sed 's/^/| /' conftest.$ac_ext >&5
  21129. ac_header_compiler=no
  21130. fi
  21131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21132. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21133. $as_echo "$ac_header_compiler" >&6; }
  21134. # Is the header present?
  21135. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21136. $as_echo_n "checking $ac_header presence... " >&6; }
  21137. cat >conftest.$ac_ext <<_ACEOF
  21138. /* confdefs.h. */
  21139. _ACEOF
  21140. cat confdefs.h >>conftest.$ac_ext
  21141. cat >>conftest.$ac_ext <<_ACEOF
  21142. /* end confdefs.h. */
  21143. #include <$ac_header>
  21144. _ACEOF
  21145. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21146. case "(($ac_try" in
  21147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21148. *) ac_try_echo=$ac_try;;
  21149. esac
  21150. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21151. $as_echo "$ac_try_echo") >&5
  21152. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21153. ac_status=$?
  21154. grep -v '^ *+' conftest.er1 >conftest.err
  21155. rm -f conftest.er1
  21156. cat conftest.err >&5
  21157. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21158. (exit $ac_status); } >/dev/null && {
  21159. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21160. test ! -s conftest.err
  21161. }; then
  21162. ac_header_preproc=yes
  21163. else
  21164. $as_echo "$as_me: failed program was:" >&5
  21165. sed 's/^/| /' conftest.$ac_ext >&5
  21166. ac_header_preproc=no
  21167. fi
  21168. rm -f conftest.err conftest.$ac_ext
  21169. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21170. $as_echo "$ac_header_preproc" >&6; }
  21171. # So? What about this header?
  21172. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21173. yes:no: )
  21174. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21175. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21176. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21177. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21178. ac_header_preproc=yes
  21179. ;;
  21180. no:yes:* )
  21181. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21182. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21183. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21184. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21185. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21186. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21187. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21188. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21189. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21190. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21191. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21192. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21193. ;;
  21194. esac
  21195. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21196. $as_echo_n "checking for $ac_header... " >&6; }
  21197. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21198. $as_echo_n "(cached) " >&6
  21199. else
  21200. eval "$as_ac_Header=\$ac_header_preproc"
  21201. fi
  21202. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21203. $as_echo "$as_val"'`
  21204. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21205. $as_echo "$ac_res" >&6; }
  21206. fi
  21207. as_val=`eval 'as_val=${'$as_ac_Header'}
  21208. $as_echo "$as_val"'`
  21209. if test "x$as_val" = x""yes; then
  21210. cat >>confdefs.h <<_ACEOF
  21211. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21212. _ACEOF
  21213. break
  21214. fi
  21215. done
  21216. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  21217. { { $as_echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  21218. $as_echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  21219. { (exit 1); exit 1; }; }
  21220. fi
  21221. # ========================
  21222. # ...and int types headers
  21223. # ========================
  21224. for ac_header in stdint.h inttypes.h
  21225. do
  21226. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21227. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21228. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21229. $as_echo_n "checking for $ac_header... " >&6; }
  21230. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21231. $as_echo_n "(cached) " >&6
  21232. fi
  21233. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21234. $as_echo "$as_val"'`
  21235. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21236. $as_echo "$ac_res" >&6; }
  21237. else
  21238. # Is the header compilable?
  21239. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  21240. $as_echo_n "checking $ac_header usability... " >&6; }
  21241. cat >conftest.$ac_ext <<_ACEOF
  21242. /* confdefs.h. */
  21243. _ACEOF
  21244. cat confdefs.h >>conftest.$ac_ext
  21245. cat >>conftest.$ac_ext <<_ACEOF
  21246. /* end confdefs.h. */
  21247. $ac_includes_default
  21248. #include <$ac_header>
  21249. _ACEOF
  21250. rm -f conftest.$ac_objext
  21251. if { (ac_try="$ac_compile"
  21252. case "(($ac_try" in
  21253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21254. *) ac_try_echo=$ac_try;;
  21255. esac
  21256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21257. $as_echo "$ac_try_echo") >&5
  21258. (eval "$ac_compile") 2>conftest.er1
  21259. ac_status=$?
  21260. grep -v '^ *+' conftest.er1 >conftest.err
  21261. rm -f conftest.er1
  21262. cat conftest.err >&5
  21263. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21264. (exit $ac_status); } && {
  21265. test -z "$ac_c_werror_flag" ||
  21266. test ! -s conftest.err
  21267. } && test -s conftest.$ac_objext; then
  21268. ac_header_compiler=yes
  21269. else
  21270. $as_echo "$as_me: failed program was:" >&5
  21271. sed 's/^/| /' conftest.$ac_ext >&5
  21272. ac_header_compiler=no
  21273. fi
  21274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21275. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21276. $as_echo "$ac_header_compiler" >&6; }
  21277. # Is the header present?
  21278. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21279. $as_echo_n "checking $ac_header presence... " >&6; }
  21280. cat >conftest.$ac_ext <<_ACEOF
  21281. /* confdefs.h. */
  21282. _ACEOF
  21283. cat confdefs.h >>conftest.$ac_ext
  21284. cat >>conftest.$ac_ext <<_ACEOF
  21285. /* end confdefs.h. */
  21286. #include <$ac_header>
  21287. _ACEOF
  21288. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21289. case "(($ac_try" in
  21290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21291. *) ac_try_echo=$ac_try;;
  21292. esac
  21293. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21294. $as_echo "$ac_try_echo") >&5
  21295. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21296. ac_status=$?
  21297. grep -v '^ *+' conftest.er1 >conftest.err
  21298. rm -f conftest.er1
  21299. cat conftest.err >&5
  21300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21301. (exit $ac_status); } >/dev/null && {
  21302. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21303. test ! -s conftest.err
  21304. }; then
  21305. ac_header_preproc=yes
  21306. else
  21307. $as_echo "$as_me: failed program was:" >&5
  21308. sed 's/^/| /' conftest.$ac_ext >&5
  21309. ac_header_preproc=no
  21310. fi
  21311. rm -f conftest.err conftest.$ac_ext
  21312. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21313. $as_echo "$ac_header_preproc" >&6; }
  21314. # So? What about this header?
  21315. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21316. yes:no: )
  21317. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21318. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21319. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21320. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21321. ac_header_preproc=yes
  21322. ;;
  21323. no:yes:* )
  21324. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21325. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21326. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21327. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21328. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21329. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21330. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21331. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21332. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21333. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21334. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21335. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21336. ;;
  21337. esac
  21338. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21339. $as_echo_n "checking for $ac_header... " >&6; }
  21340. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21341. $as_echo_n "(cached) " >&6
  21342. else
  21343. eval "$as_ac_Header=\$ac_header_preproc"
  21344. fi
  21345. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21346. $as_echo "$as_val"'`
  21347. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21348. $as_echo "$ac_res" >&6; }
  21349. fi
  21350. as_val=`eval 'as_val=${'$as_ac_Header'}
  21351. $as_echo "$as_val"'`
  21352. if test "x$as_val" = x""yes; then
  21353. cat >>confdefs.h <<_ACEOF
  21354. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21355. _ACEOF
  21356. break
  21357. fi
  21358. done
  21359. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  21360. $as_echo_n "checking for int8_t... " >&6; }
  21361. if test "${ac_cv_type_int8_t+set}" = set; then
  21362. $as_echo_n "(cached) " >&6
  21363. else
  21364. ac_cv_type_int8_t=no
  21365. cat >conftest.$ac_ext <<_ACEOF
  21366. /* confdefs.h. */
  21367. _ACEOF
  21368. cat confdefs.h >>conftest.$ac_ext
  21369. cat >>conftest.$ac_ext <<_ACEOF
  21370. /* end confdefs.h. */
  21371. $ac_includes_default
  21372. int
  21373. main ()
  21374. {
  21375. if (sizeof (int8_t))
  21376. return 0;
  21377. ;
  21378. return 0;
  21379. }
  21380. _ACEOF
  21381. rm -f conftest.$ac_objext
  21382. if { (ac_try="$ac_compile"
  21383. case "(($ac_try" in
  21384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21385. *) ac_try_echo=$ac_try;;
  21386. esac
  21387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21388. $as_echo "$ac_try_echo") >&5
  21389. (eval "$ac_compile") 2>conftest.er1
  21390. ac_status=$?
  21391. grep -v '^ *+' conftest.er1 >conftest.err
  21392. rm -f conftest.er1
  21393. cat conftest.err >&5
  21394. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21395. (exit $ac_status); } && {
  21396. test -z "$ac_c_werror_flag" ||
  21397. test ! -s conftest.err
  21398. } && test -s conftest.$ac_objext; then
  21399. cat >conftest.$ac_ext <<_ACEOF
  21400. /* confdefs.h. */
  21401. _ACEOF
  21402. cat confdefs.h >>conftest.$ac_ext
  21403. cat >>conftest.$ac_ext <<_ACEOF
  21404. /* end confdefs.h. */
  21405. $ac_includes_default
  21406. int
  21407. main ()
  21408. {
  21409. if (sizeof ((int8_t)))
  21410. return 0;
  21411. ;
  21412. return 0;
  21413. }
  21414. _ACEOF
  21415. rm -f conftest.$ac_objext
  21416. if { (ac_try="$ac_compile"
  21417. case "(($ac_try" in
  21418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21419. *) ac_try_echo=$ac_try;;
  21420. esac
  21421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21422. $as_echo "$ac_try_echo") >&5
  21423. (eval "$ac_compile") 2>conftest.er1
  21424. ac_status=$?
  21425. grep -v '^ *+' conftest.er1 >conftest.err
  21426. rm -f conftest.er1
  21427. cat conftest.err >&5
  21428. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21429. (exit $ac_status); } && {
  21430. test -z "$ac_c_werror_flag" ||
  21431. test ! -s conftest.err
  21432. } && test -s conftest.$ac_objext; then
  21433. :
  21434. else
  21435. $as_echo "$as_me: failed program was:" >&5
  21436. sed 's/^/| /' conftest.$ac_ext >&5
  21437. ac_cv_type_int8_t=yes
  21438. fi
  21439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21440. else
  21441. $as_echo "$as_me: failed program was:" >&5
  21442. sed 's/^/| /' conftest.$ac_ext >&5
  21443. fi
  21444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21445. fi
  21446. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  21447. $as_echo "$ac_cv_type_int8_t" >&6; }
  21448. if test "x$ac_cv_type_int8_t" = x""yes; then
  21449. cat >>confdefs.h <<_ACEOF
  21450. #define HAVE_INT8_T 1
  21451. _ACEOF
  21452. fi
  21453. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  21454. $as_echo_n "checking for uint8_t... " >&6; }
  21455. if test "${ac_cv_type_uint8_t+set}" = set; then
  21456. $as_echo_n "(cached) " >&6
  21457. else
  21458. ac_cv_type_uint8_t=no
  21459. cat >conftest.$ac_ext <<_ACEOF
  21460. /* confdefs.h. */
  21461. _ACEOF
  21462. cat confdefs.h >>conftest.$ac_ext
  21463. cat >>conftest.$ac_ext <<_ACEOF
  21464. /* end confdefs.h. */
  21465. $ac_includes_default
  21466. int
  21467. main ()
  21468. {
  21469. if (sizeof (uint8_t))
  21470. return 0;
  21471. ;
  21472. return 0;
  21473. }
  21474. _ACEOF
  21475. rm -f conftest.$ac_objext
  21476. if { (ac_try="$ac_compile"
  21477. case "(($ac_try" in
  21478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21479. *) ac_try_echo=$ac_try;;
  21480. esac
  21481. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21482. $as_echo "$ac_try_echo") >&5
  21483. (eval "$ac_compile") 2>conftest.er1
  21484. ac_status=$?
  21485. grep -v '^ *+' conftest.er1 >conftest.err
  21486. rm -f conftest.er1
  21487. cat conftest.err >&5
  21488. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21489. (exit $ac_status); } && {
  21490. test -z "$ac_c_werror_flag" ||
  21491. test ! -s conftest.err
  21492. } && test -s conftest.$ac_objext; then
  21493. cat >conftest.$ac_ext <<_ACEOF
  21494. /* confdefs.h. */
  21495. _ACEOF
  21496. cat confdefs.h >>conftest.$ac_ext
  21497. cat >>conftest.$ac_ext <<_ACEOF
  21498. /* end confdefs.h. */
  21499. $ac_includes_default
  21500. int
  21501. main ()
  21502. {
  21503. if (sizeof ((uint8_t)))
  21504. return 0;
  21505. ;
  21506. return 0;
  21507. }
  21508. _ACEOF
  21509. rm -f conftest.$ac_objext
  21510. if { (ac_try="$ac_compile"
  21511. case "(($ac_try" in
  21512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21513. *) ac_try_echo=$ac_try;;
  21514. esac
  21515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21516. $as_echo "$ac_try_echo") >&5
  21517. (eval "$ac_compile") 2>conftest.er1
  21518. ac_status=$?
  21519. grep -v '^ *+' conftest.er1 >conftest.err
  21520. rm -f conftest.er1
  21521. cat conftest.err >&5
  21522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21523. (exit $ac_status); } && {
  21524. test -z "$ac_c_werror_flag" ||
  21525. test ! -s conftest.err
  21526. } && test -s conftest.$ac_objext; then
  21527. :
  21528. else
  21529. $as_echo "$as_me: failed program was:" >&5
  21530. sed 's/^/| /' conftest.$ac_ext >&5
  21531. ac_cv_type_uint8_t=yes
  21532. fi
  21533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21534. else
  21535. $as_echo "$as_me: failed program was:" >&5
  21536. sed 's/^/| /' conftest.$ac_ext >&5
  21537. fi
  21538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21539. fi
  21540. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  21541. $as_echo "$ac_cv_type_uint8_t" >&6; }
  21542. if test "x$ac_cv_type_uint8_t" = x""yes; then
  21543. cat >>confdefs.h <<_ACEOF
  21544. #define HAVE_UINT8_T 1
  21545. _ACEOF
  21546. fi
  21547. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  21548. $as_echo_n "checking for int16_t... " >&6; }
  21549. if test "${ac_cv_type_int16_t+set}" = set; then
  21550. $as_echo_n "(cached) " >&6
  21551. else
  21552. ac_cv_type_int16_t=no
  21553. cat >conftest.$ac_ext <<_ACEOF
  21554. /* confdefs.h. */
  21555. _ACEOF
  21556. cat confdefs.h >>conftest.$ac_ext
  21557. cat >>conftest.$ac_ext <<_ACEOF
  21558. /* end confdefs.h. */
  21559. $ac_includes_default
  21560. int
  21561. main ()
  21562. {
  21563. if (sizeof (int16_t))
  21564. return 0;
  21565. ;
  21566. return 0;
  21567. }
  21568. _ACEOF
  21569. rm -f conftest.$ac_objext
  21570. if { (ac_try="$ac_compile"
  21571. case "(($ac_try" in
  21572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21573. *) ac_try_echo=$ac_try;;
  21574. esac
  21575. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21576. $as_echo "$ac_try_echo") >&5
  21577. (eval "$ac_compile") 2>conftest.er1
  21578. ac_status=$?
  21579. grep -v '^ *+' conftest.er1 >conftest.err
  21580. rm -f conftest.er1
  21581. cat conftest.err >&5
  21582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21583. (exit $ac_status); } && {
  21584. test -z "$ac_c_werror_flag" ||
  21585. test ! -s conftest.err
  21586. } && test -s conftest.$ac_objext; then
  21587. cat >conftest.$ac_ext <<_ACEOF
  21588. /* confdefs.h. */
  21589. _ACEOF
  21590. cat confdefs.h >>conftest.$ac_ext
  21591. cat >>conftest.$ac_ext <<_ACEOF
  21592. /* end confdefs.h. */
  21593. $ac_includes_default
  21594. int
  21595. main ()
  21596. {
  21597. if (sizeof ((int16_t)))
  21598. return 0;
  21599. ;
  21600. return 0;
  21601. }
  21602. _ACEOF
  21603. rm -f conftest.$ac_objext
  21604. if { (ac_try="$ac_compile"
  21605. case "(($ac_try" in
  21606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21607. *) ac_try_echo=$ac_try;;
  21608. esac
  21609. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21610. $as_echo "$ac_try_echo") >&5
  21611. (eval "$ac_compile") 2>conftest.er1
  21612. ac_status=$?
  21613. grep -v '^ *+' conftest.er1 >conftest.err
  21614. rm -f conftest.er1
  21615. cat conftest.err >&5
  21616. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21617. (exit $ac_status); } && {
  21618. test -z "$ac_c_werror_flag" ||
  21619. test ! -s conftest.err
  21620. } && test -s conftest.$ac_objext; then
  21621. :
  21622. else
  21623. $as_echo "$as_me: failed program was:" >&5
  21624. sed 's/^/| /' conftest.$ac_ext >&5
  21625. ac_cv_type_int16_t=yes
  21626. fi
  21627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21628. else
  21629. $as_echo "$as_me: failed program was:" >&5
  21630. sed 's/^/| /' conftest.$ac_ext >&5
  21631. fi
  21632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21633. fi
  21634. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  21635. $as_echo "$ac_cv_type_int16_t" >&6; }
  21636. if test "x$ac_cv_type_int16_t" = x""yes; then
  21637. cat >>confdefs.h <<_ACEOF
  21638. #define HAVE_INT16_T 1
  21639. _ACEOF
  21640. fi
  21641. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  21642. $as_echo_n "checking for uint16_t... " >&6; }
  21643. if test "${ac_cv_type_uint16_t+set}" = set; then
  21644. $as_echo_n "(cached) " >&6
  21645. else
  21646. ac_cv_type_uint16_t=no
  21647. cat >conftest.$ac_ext <<_ACEOF
  21648. /* confdefs.h. */
  21649. _ACEOF
  21650. cat confdefs.h >>conftest.$ac_ext
  21651. cat >>conftest.$ac_ext <<_ACEOF
  21652. /* end confdefs.h. */
  21653. $ac_includes_default
  21654. int
  21655. main ()
  21656. {
  21657. if (sizeof (uint16_t))
  21658. return 0;
  21659. ;
  21660. return 0;
  21661. }
  21662. _ACEOF
  21663. rm -f conftest.$ac_objext
  21664. if { (ac_try="$ac_compile"
  21665. case "(($ac_try" in
  21666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21667. *) ac_try_echo=$ac_try;;
  21668. esac
  21669. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21670. $as_echo "$ac_try_echo") >&5
  21671. (eval "$ac_compile") 2>conftest.er1
  21672. ac_status=$?
  21673. grep -v '^ *+' conftest.er1 >conftest.err
  21674. rm -f conftest.er1
  21675. cat conftest.err >&5
  21676. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21677. (exit $ac_status); } && {
  21678. test -z "$ac_c_werror_flag" ||
  21679. test ! -s conftest.err
  21680. } && test -s conftest.$ac_objext; then
  21681. cat >conftest.$ac_ext <<_ACEOF
  21682. /* confdefs.h. */
  21683. _ACEOF
  21684. cat confdefs.h >>conftest.$ac_ext
  21685. cat >>conftest.$ac_ext <<_ACEOF
  21686. /* end confdefs.h. */
  21687. $ac_includes_default
  21688. int
  21689. main ()
  21690. {
  21691. if (sizeof ((uint16_t)))
  21692. return 0;
  21693. ;
  21694. return 0;
  21695. }
  21696. _ACEOF
  21697. rm -f conftest.$ac_objext
  21698. if { (ac_try="$ac_compile"
  21699. case "(($ac_try" in
  21700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21701. *) ac_try_echo=$ac_try;;
  21702. esac
  21703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21704. $as_echo "$ac_try_echo") >&5
  21705. (eval "$ac_compile") 2>conftest.er1
  21706. ac_status=$?
  21707. grep -v '^ *+' conftest.er1 >conftest.err
  21708. rm -f conftest.er1
  21709. cat conftest.err >&5
  21710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21711. (exit $ac_status); } && {
  21712. test -z "$ac_c_werror_flag" ||
  21713. test ! -s conftest.err
  21714. } && test -s conftest.$ac_objext; then
  21715. :
  21716. else
  21717. $as_echo "$as_me: failed program was:" >&5
  21718. sed 's/^/| /' conftest.$ac_ext >&5
  21719. ac_cv_type_uint16_t=yes
  21720. fi
  21721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21722. else
  21723. $as_echo "$as_me: failed program was:" >&5
  21724. sed 's/^/| /' conftest.$ac_ext >&5
  21725. fi
  21726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21727. fi
  21728. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  21729. $as_echo "$ac_cv_type_uint16_t" >&6; }
  21730. if test "x$ac_cv_type_uint16_t" = x""yes; then
  21731. cat >>confdefs.h <<_ACEOF
  21732. #define HAVE_UINT16_T 1
  21733. _ACEOF
  21734. fi
  21735. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  21736. $as_echo_n "checking for int32_t... " >&6; }
  21737. if test "${ac_cv_type_int32_t+set}" = set; then
  21738. $as_echo_n "(cached) " >&6
  21739. else
  21740. ac_cv_type_int32_t=no
  21741. cat >conftest.$ac_ext <<_ACEOF
  21742. /* confdefs.h. */
  21743. _ACEOF
  21744. cat confdefs.h >>conftest.$ac_ext
  21745. cat >>conftest.$ac_ext <<_ACEOF
  21746. /* end confdefs.h. */
  21747. $ac_includes_default
  21748. int
  21749. main ()
  21750. {
  21751. if (sizeof (int32_t))
  21752. return 0;
  21753. ;
  21754. return 0;
  21755. }
  21756. _ACEOF
  21757. rm -f conftest.$ac_objext
  21758. if { (ac_try="$ac_compile"
  21759. case "(($ac_try" in
  21760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21761. *) ac_try_echo=$ac_try;;
  21762. esac
  21763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21764. $as_echo "$ac_try_echo") >&5
  21765. (eval "$ac_compile") 2>conftest.er1
  21766. ac_status=$?
  21767. grep -v '^ *+' conftest.er1 >conftest.err
  21768. rm -f conftest.er1
  21769. cat conftest.err >&5
  21770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21771. (exit $ac_status); } && {
  21772. test -z "$ac_c_werror_flag" ||
  21773. test ! -s conftest.err
  21774. } && test -s conftest.$ac_objext; then
  21775. cat >conftest.$ac_ext <<_ACEOF
  21776. /* confdefs.h. */
  21777. _ACEOF
  21778. cat confdefs.h >>conftest.$ac_ext
  21779. cat >>conftest.$ac_ext <<_ACEOF
  21780. /* end confdefs.h. */
  21781. $ac_includes_default
  21782. int
  21783. main ()
  21784. {
  21785. if (sizeof ((int32_t)))
  21786. return 0;
  21787. ;
  21788. return 0;
  21789. }
  21790. _ACEOF
  21791. rm -f conftest.$ac_objext
  21792. if { (ac_try="$ac_compile"
  21793. case "(($ac_try" in
  21794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21795. *) ac_try_echo=$ac_try;;
  21796. esac
  21797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21798. $as_echo "$ac_try_echo") >&5
  21799. (eval "$ac_compile") 2>conftest.er1
  21800. ac_status=$?
  21801. grep -v '^ *+' conftest.er1 >conftest.err
  21802. rm -f conftest.er1
  21803. cat conftest.err >&5
  21804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21805. (exit $ac_status); } && {
  21806. test -z "$ac_c_werror_flag" ||
  21807. test ! -s conftest.err
  21808. } && test -s conftest.$ac_objext; then
  21809. :
  21810. else
  21811. $as_echo "$as_me: failed program was:" >&5
  21812. sed 's/^/| /' conftest.$ac_ext >&5
  21813. ac_cv_type_int32_t=yes
  21814. fi
  21815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21816. else
  21817. $as_echo "$as_me: failed program was:" >&5
  21818. sed 's/^/| /' conftest.$ac_ext >&5
  21819. fi
  21820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21821. fi
  21822. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  21823. $as_echo "$ac_cv_type_int32_t" >&6; }
  21824. if test "x$ac_cv_type_int32_t" = x""yes; then
  21825. cat >>confdefs.h <<_ACEOF
  21826. #define HAVE_INT32_T 1
  21827. _ACEOF
  21828. fi
  21829. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  21830. $as_echo_n "checking for uint32_t... " >&6; }
  21831. if test "${ac_cv_type_uint32_t+set}" = set; then
  21832. $as_echo_n "(cached) " >&6
  21833. else
  21834. ac_cv_type_uint32_t=no
  21835. cat >conftest.$ac_ext <<_ACEOF
  21836. /* confdefs.h. */
  21837. _ACEOF
  21838. cat confdefs.h >>conftest.$ac_ext
  21839. cat >>conftest.$ac_ext <<_ACEOF
  21840. /* end confdefs.h. */
  21841. $ac_includes_default
  21842. int
  21843. main ()
  21844. {
  21845. if (sizeof (uint32_t))
  21846. return 0;
  21847. ;
  21848. return 0;
  21849. }
  21850. _ACEOF
  21851. rm -f conftest.$ac_objext
  21852. if { (ac_try="$ac_compile"
  21853. case "(($ac_try" in
  21854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21855. *) ac_try_echo=$ac_try;;
  21856. esac
  21857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21858. $as_echo "$ac_try_echo") >&5
  21859. (eval "$ac_compile") 2>conftest.er1
  21860. ac_status=$?
  21861. grep -v '^ *+' conftest.er1 >conftest.err
  21862. rm -f conftest.er1
  21863. cat conftest.err >&5
  21864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21865. (exit $ac_status); } && {
  21866. test -z "$ac_c_werror_flag" ||
  21867. test ! -s conftest.err
  21868. } && test -s conftest.$ac_objext; then
  21869. cat >conftest.$ac_ext <<_ACEOF
  21870. /* confdefs.h. */
  21871. _ACEOF
  21872. cat confdefs.h >>conftest.$ac_ext
  21873. cat >>conftest.$ac_ext <<_ACEOF
  21874. /* end confdefs.h. */
  21875. $ac_includes_default
  21876. int
  21877. main ()
  21878. {
  21879. if (sizeof ((uint32_t)))
  21880. return 0;
  21881. ;
  21882. return 0;
  21883. }
  21884. _ACEOF
  21885. rm -f conftest.$ac_objext
  21886. if { (ac_try="$ac_compile"
  21887. case "(($ac_try" in
  21888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21889. *) ac_try_echo=$ac_try;;
  21890. esac
  21891. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21892. $as_echo "$ac_try_echo") >&5
  21893. (eval "$ac_compile") 2>conftest.er1
  21894. ac_status=$?
  21895. grep -v '^ *+' conftest.er1 >conftest.err
  21896. rm -f conftest.er1
  21897. cat conftest.err >&5
  21898. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21899. (exit $ac_status); } && {
  21900. test -z "$ac_c_werror_flag" ||
  21901. test ! -s conftest.err
  21902. } && test -s conftest.$ac_objext; then
  21903. :
  21904. else
  21905. $as_echo "$as_me: failed program was:" >&5
  21906. sed 's/^/| /' conftest.$ac_ext >&5
  21907. ac_cv_type_uint32_t=yes
  21908. fi
  21909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21910. else
  21911. $as_echo "$as_me: failed program was:" >&5
  21912. sed 's/^/| /' conftest.$ac_ext >&5
  21913. fi
  21914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21915. fi
  21916. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  21917. $as_echo "$ac_cv_type_uint32_t" >&6; }
  21918. if test "x$ac_cv_type_uint32_t" = x""yes; then
  21919. cat >>confdefs.h <<_ACEOF
  21920. #define HAVE_UINT32_T 1
  21921. _ACEOF
  21922. fi
  21923. { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
  21924. $as_echo_n "checking for intptr_t... " >&6; }
  21925. if test "${ac_cv_type_intptr_t+set}" = set; then
  21926. $as_echo_n "(cached) " >&6
  21927. else
  21928. ac_cv_type_intptr_t=no
  21929. cat >conftest.$ac_ext <<_ACEOF
  21930. /* confdefs.h. */
  21931. _ACEOF
  21932. cat confdefs.h >>conftest.$ac_ext
  21933. cat >>conftest.$ac_ext <<_ACEOF
  21934. /* end confdefs.h. */
  21935. $ac_includes_default
  21936. int
  21937. main ()
  21938. {
  21939. if (sizeof (intptr_t))
  21940. return 0;
  21941. ;
  21942. return 0;
  21943. }
  21944. _ACEOF
  21945. rm -f conftest.$ac_objext
  21946. if { (ac_try="$ac_compile"
  21947. case "(($ac_try" in
  21948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21949. *) ac_try_echo=$ac_try;;
  21950. esac
  21951. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21952. $as_echo "$ac_try_echo") >&5
  21953. (eval "$ac_compile") 2>conftest.er1
  21954. ac_status=$?
  21955. grep -v '^ *+' conftest.er1 >conftest.err
  21956. rm -f conftest.er1
  21957. cat conftest.err >&5
  21958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21959. (exit $ac_status); } && {
  21960. test -z "$ac_c_werror_flag" ||
  21961. test ! -s conftest.err
  21962. } && test -s conftest.$ac_objext; then
  21963. cat >conftest.$ac_ext <<_ACEOF
  21964. /* confdefs.h. */
  21965. _ACEOF
  21966. cat confdefs.h >>conftest.$ac_ext
  21967. cat >>conftest.$ac_ext <<_ACEOF
  21968. /* end confdefs.h. */
  21969. $ac_includes_default
  21970. int
  21971. main ()
  21972. {
  21973. if (sizeof ((intptr_t)))
  21974. return 0;
  21975. ;
  21976. return 0;
  21977. }
  21978. _ACEOF
  21979. rm -f conftest.$ac_objext
  21980. if { (ac_try="$ac_compile"
  21981. case "(($ac_try" in
  21982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21983. *) ac_try_echo=$ac_try;;
  21984. esac
  21985. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21986. $as_echo "$ac_try_echo") >&5
  21987. (eval "$ac_compile") 2>conftest.er1
  21988. ac_status=$?
  21989. grep -v '^ *+' conftest.er1 >conftest.err
  21990. rm -f conftest.er1
  21991. cat conftest.err >&5
  21992. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21993. (exit $ac_status); } && {
  21994. test -z "$ac_c_werror_flag" ||
  21995. test ! -s conftest.err
  21996. } && test -s conftest.$ac_objext; then
  21997. :
  21998. else
  21999. $as_echo "$as_me: failed program was:" >&5
  22000. sed 's/^/| /' conftest.$ac_ext >&5
  22001. ac_cv_type_intptr_t=yes
  22002. fi
  22003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22004. else
  22005. $as_echo "$as_me: failed program was:" >&5
  22006. sed 's/^/| /' conftest.$ac_ext >&5
  22007. fi
  22008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22009. fi
  22010. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  22011. $as_echo "$ac_cv_type_intptr_t" >&6; }
  22012. if test "x$ac_cv_type_intptr_t" = x""yes; then
  22013. cat >>confdefs.h <<_ACEOF
  22014. #define HAVE_INTPTR_T 1
  22015. _ACEOF
  22016. fi
  22017. { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
  22018. $as_echo_n "checking for uintptr_t... " >&6; }
  22019. if test "${ac_cv_type_uintptr_t+set}" = set; then
  22020. $as_echo_n "(cached) " >&6
  22021. else
  22022. ac_cv_type_uintptr_t=no
  22023. cat >conftest.$ac_ext <<_ACEOF
  22024. /* confdefs.h. */
  22025. _ACEOF
  22026. cat confdefs.h >>conftest.$ac_ext
  22027. cat >>conftest.$ac_ext <<_ACEOF
  22028. /* end confdefs.h. */
  22029. $ac_includes_default
  22030. int
  22031. main ()
  22032. {
  22033. if (sizeof (uintptr_t))
  22034. return 0;
  22035. ;
  22036. return 0;
  22037. }
  22038. _ACEOF
  22039. rm -f conftest.$ac_objext
  22040. if { (ac_try="$ac_compile"
  22041. case "(($ac_try" in
  22042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22043. *) ac_try_echo=$ac_try;;
  22044. esac
  22045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22046. $as_echo "$ac_try_echo") >&5
  22047. (eval "$ac_compile") 2>conftest.er1
  22048. ac_status=$?
  22049. grep -v '^ *+' conftest.er1 >conftest.err
  22050. rm -f conftest.er1
  22051. cat conftest.err >&5
  22052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22053. (exit $ac_status); } && {
  22054. test -z "$ac_c_werror_flag" ||
  22055. test ! -s conftest.err
  22056. } && test -s conftest.$ac_objext; then
  22057. cat >conftest.$ac_ext <<_ACEOF
  22058. /* confdefs.h. */
  22059. _ACEOF
  22060. cat confdefs.h >>conftest.$ac_ext
  22061. cat >>conftest.$ac_ext <<_ACEOF
  22062. /* end confdefs.h. */
  22063. $ac_includes_default
  22064. int
  22065. main ()
  22066. {
  22067. if (sizeof ((uintptr_t)))
  22068. return 0;
  22069. ;
  22070. return 0;
  22071. }
  22072. _ACEOF
  22073. rm -f conftest.$ac_objext
  22074. if { (ac_try="$ac_compile"
  22075. case "(($ac_try" in
  22076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22077. *) ac_try_echo=$ac_try;;
  22078. esac
  22079. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22080. $as_echo "$ac_try_echo") >&5
  22081. (eval "$ac_compile") 2>conftest.er1
  22082. ac_status=$?
  22083. grep -v '^ *+' conftest.er1 >conftest.err
  22084. rm -f conftest.er1
  22085. cat conftest.err >&5
  22086. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22087. (exit $ac_status); } && {
  22088. test -z "$ac_c_werror_flag" ||
  22089. test ! -s conftest.err
  22090. } && test -s conftest.$ac_objext; then
  22091. :
  22092. else
  22093. $as_echo "$as_me: failed program was:" >&5
  22094. sed 's/^/| /' conftest.$ac_ext >&5
  22095. ac_cv_type_uintptr_t=yes
  22096. fi
  22097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22098. else
  22099. $as_echo "$as_me: failed program was:" >&5
  22100. sed 's/^/| /' conftest.$ac_ext >&5
  22101. fi
  22102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22103. fi
  22104. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  22105. $as_echo "$ac_cv_type_uintptr_t" >&6; }
  22106. if test "x$ac_cv_type_uintptr_t" = x""yes; then
  22107. cat >>confdefs.h <<_ACEOF
  22108. #define HAVE_UINTPTR_T 1
  22109. _ACEOF
  22110. fi
  22111. { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
  22112. $as_echo_n "checking for uint_t... " >&6; }
  22113. if test "${ac_cv_type_uint_t+set}" = set; then
  22114. $as_echo_n "(cached) " >&6
  22115. else
  22116. ac_cv_type_uint_t=no
  22117. cat >conftest.$ac_ext <<_ACEOF
  22118. /* confdefs.h. */
  22119. _ACEOF
  22120. cat confdefs.h >>conftest.$ac_ext
  22121. cat >>conftest.$ac_ext <<_ACEOF
  22122. /* end confdefs.h. */
  22123. $ac_includes_default
  22124. int
  22125. main ()
  22126. {
  22127. if (sizeof (uint_t))
  22128. return 0;
  22129. ;
  22130. return 0;
  22131. }
  22132. _ACEOF
  22133. rm -f conftest.$ac_objext
  22134. if { (ac_try="$ac_compile"
  22135. case "(($ac_try" in
  22136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22137. *) ac_try_echo=$ac_try;;
  22138. esac
  22139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22140. $as_echo "$ac_try_echo") >&5
  22141. (eval "$ac_compile") 2>conftest.er1
  22142. ac_status=$?
  22143. grep -v '^ *+' conftest.er1 >conftest.err
  22144. rm -f conftest.er1
  22145. cat conftest.err >&5
  22146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22147. (exit $ac_status); } && {
  22148. test -z "$ac_c_werror_flag" ||
  22149. test ! -s conftest.err
  22150. } && test -s conftest.$ac_objext; then
  22151. cat >conftest.$ac_ext <<_ACEOF
  22152. /* confdefs.h. */
  22153. _ACEOF
  22154. cat confdefs.h >>conftest.$ac_ext
  22155. cat >>conftest.$ac_ext <<_ACEOF
  22156. /* end confdefs.h. */
  22157. $ac_includes_default
  22158. int
  22159. main ()
  22160. {
  22161. if (sizeof ((uint_t)))
  22162. return 0;
  22163. ;
  22164. return 0;
  22165. }
  22166. _ACEOF
  22167. rm -f conftest.$ac_objext
  22168. if { (ac_try="$ac_compile"
  22169. case "(($ac_try" in
  22170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22171. *) ac_try_echo=$ac_try;;
  22172. esac
  22173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22174. $as_echo "$ac_try_echo") >&5
  22175. (eval "$ac_compile") 2>conftest.er1
  22176. ac_status=$?
  22177. grep -v '^ *+' conftest.er1 >conftest.err
  22178. rm -f conftest.er1
  22179. cat conftest.err >&5
  22180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22181. (exit $ac_status); } && {
  22182. test -z "$ac_c_werror_flag" ||
  22183. test ! -s conftest.err
  22184. } && test -s conftest.$ac_objext; then
  22185. :
  22186. else
  22187. $as_echo "$as_me: failed program was:" >&5
  22188. sed 's/^/| /' conftest.$ac_ext >&5
  22189. ac_cv_type_uint_t=yes
  22190. fi
  22191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22192. else
  22193. $as_echo "$as_me: failed program was:" >&5
  22194. sed 's/^/| /' conftest.$ac_ext >&5
  22195. fi
  22196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22197. fi
  22198. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  22199. $as_echo "$ac_cv_type_uint_t" >&6; }
  22200. if test "x$ac_cv_type_uint_t" = x""yes; then
  22201. cat >>confdefs.h <<_ACEOF
  22202. #define HAVE_UINT_T 1
  22203. _ACEOF
  22204. fi
  22205. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  22206. $as_echo_n "checking for pid_t... " >&6; }
  22207. if test "${ac_cv_type_pid_t+set}" = set; then
  22208. $as_echo_n "(cached) " >&6
  22209. else
  22210. ac_cv_type_pid_t=no
  22211. cat >conftest.$ac_ext <<_ACEOF
  22212. /* confdefs.h. */
  22213. _ACEOF
  22214. cat confdefs.h >>conftest.$ac_ext
  22215. cat >>conftest.$ac_ext <<_ACEOF
  22216. /* end confdefs.h. */
  22217. $ac_includes_default
  22218. int
  22219. main ()
  22220. {
  22221. if (sizeof (pid_t))
  22222. return 0;
  22223. ;
  22224. return 0;
  22225. }
  22226. _ACEOF
  22227. rm -f conftest.$ac_objext
  22228. if { (ac_try="$ac_compile"
  22229. case "(($ac_try" in
  22230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22231. *) ac_try_echo=$ac_try;;
  22232. esac
  22233. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22234. $as_echo "$ac_try_echo") >&5
  22235. (eval "$ac_compile") 2>conftest.er1
  22236. ac_status=$?
  22237. grep -v '^ *+' conftest.er1 >conftest.err
  22238. rm -f conftest.er1
  22239. cat conftest.err >&5
  22240. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22241. (exit $ac_status); } && {
  22242. test -z "$ac_c_werror_flag" ||
  22243. test ! -s conftest.err
  22244. } && test -s conftest.$ac_objext; then
  22245. cat >conftest.$ac_ext <<_ACEOF
  22246. /* confdefs.h. */
  22247. _ACEOF
  22248. cat confdefs.h >>conftest.$ac_ext
  22249. cat >>conftest.$ac_ext <<_ACEOF
  22250. /* end confdefs.h. */
  22251. $ac_includes_default
  22252. int
  22253. main ()
  22254. {
  22255. if (sizeof ((pid_t)))
  22256. return 0;
  22257. ;
  22258. return 0;
  22259. }
  22260. _ACEOF
  22261. rm -f conftest.$ac_objext
  22262. if { (ac_try="$ac_compile"
  22263. case "(($ac_try" in
  22264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22265. *) ac_try_echo=$ac_try;;
  22266. esac
  22267. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22268. $as_echo "$ac_try_echo") >&5
  22269. (eval "$ac_compile") 2>conftest.er1
  22270. ac_status=$?
  22271. grep -v '^ *+' conftest.er1 >conftest.err
  22272. rm -f conftest.er1
  22273. cat conftest.err >&5
  22274. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22275. (exit $ac_status); } && {
  22276. test -z "$ac_c_werror_flag" ||
  22277. test ! -s conftest.err
  22278. } && test -s conftest.$ac_objext; then
  22279. :
  22280. else
  22281. $as_echo "$as_me: failed program was:" >&5
  22282. sed 's/^/| /' conftest.$ac_ext >&5
  22283. ac_cv_type_pid_t=yes
  22284. fi
  22285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22286. else
  22287. $as_echo "$as_me: failed program was:" >&5
  22288. sed 's/^/| /' conftest.$ac_ext >&5
  22289. fi
  22290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22291. fi
  22292. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  22293. $as_echo "$ac_cv_type_pid_t" >&6; }
  22294. if test "x$ac_cv_type_pid_t" = x""yes; then
  22295. cat >>confdefs.h <<_ACEOF
  22296. #define HAVE_PID_T 1
  22297. _ACEOF
  22298. fi
  22299. # =====
  22300. # sizes
  22301. # =====
  22302. # The cast to long int works around a bug in the HP C Compiler
  22303. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22304. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22305. # This bug is HP SR number 8606223364.
  22306. { $as_echo "$as_me:$LINENO: checking size of char*" >&5
  22307. $as_echo_n "checking size of char*... " >&6; }
  22308. if test "${ac_cv_sizeof_charp+set}" = set; then
  22309. $as_echo_n "(cached) " >&6
  22310. else
  22311. if test "$cross_compiling" = yes; then
  22312. # Depending upon the size, compute the lo and hi bounds.
  22313. cat >conftest.$ac_ext <<_ACEOF
  22314. /* confdefs.h. */
  22315. _ACEOF
  22316. cat confdefs.h >>conftest.$ac_ext
  22317. cat >>conftest.$ac_ext <<_ACEOF
  22318. /* end confdefs.h. */
  22319. $ac_includes_default
  22320. int
  22321. main ()
  22322. {
  22323. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= 0)];
  22324. test_array [0] = 0
  22325. ;
  22326. return 0;
  22327. }
  22328. _ACEOF
  22329. rm -f conftest.$ac_objext
  22330. if { (ac_try="$ac_compile"
  22331. case "(($ac_try" in
  22332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22333. *) ac_try_echo=$ac_try;;
  22334. esac
  22335. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22336. $as_echo "$ac_try_echo") >&5
  22337. (eval "$ac_compile") 2>conftest.er1
  22338. ac_status=$?
  22339. grep -v '^ *+' conftest.er1 >conftest.err
  22340. rm -f conftest.er1
  22341. cat conftest.err >&5
  22342. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22343. (exit $ac_status); } && {
  22344. test -z "$ac_c_werror_flag" ||
  22345. test ! -s conftest.err
  22346. } && test -s conftest.$ac_objext; then
  22347. ac_lo=0 ac_mid=0
  22348. while :; do
  22349. cat >conftest.$ac_ext <<_ACEOF
  22350. /* confdefs.h. */
  22351. _ACEOF
  22352. cat confdefs.h >>conftest.$ac_ext
  22353. cat >>conftest.$ac_ext <<_ACEOF
  22354. /* end confdefs.h. */
  22355. $ac_includes_default
  22356. int
  22357. main ()
  22358. {
  22359. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  22360. test_array [0] = 0
  22361. ;
  22362. return 0;
  22363. }
  22364. _ACEOF
  22365. rm -f conftest.$ac_objext
  22366. if { (ac_try="$ac_compile"
  22367. case "(($ac_try" in
  22368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22369. *) ac_try_echo=$ac_try;;
  22370. esac
  22371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22372. $as_echo "$ac_try_echo") >&5
  22373. (eval "$ac_compile") 2>conftest.er1
  22374. ac_status=$?
  22375. grep -v '^ *+' conftest.er1 >conftest.err
  22376. rm -f conftest.er1
  22377. cat conftest.err >&5
  22378. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22379. (exit $ac_status); } && {
  22380. test -z "$ac_c_werror_flag" ||
  22381. test ! -s conftest.err
  22382. } && test -s conftest.$ac_objext; then
  22383. ac_hi=$ac_mid; break
  22384. else
  22385. $as_echo "$as_me: failed program was:" >&5
  22386. sed 's/^/| /' conftest.$ac_ext >&5
  22387. ac_lo=`expr $ac_mid + 1`
  22388. if test $ac_lo -le $ac_mid; then
  22389. ac_lo= ac_hi=
  22390. break
  22391. fi
  22392. ac_mid=`expr 2 '*' $ac_mid + 1`
  22393. fi
  22394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22395. done
  22396. else
  22397. $as_echo "$as_me: failed program was:" >&5
  22398. sed 's/^/| /' conftest.$ac_ext >&5
  22399. cat >conftest.$ac_ext <<_ACEOF
  22400. /* confdefs.h. */
  22401. _ACEOF
  22402. cat confdefs.h >>conftest.$ac_ext
  22403. cat >>conftest.$ac_ext <<_ACEOF
  22404. /* end confdefs.h. */
  22405. $ac_includes_default
  22406. int
  22407. main ()
  22408. {
  22409. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) < 0)];
  22410. test_array [0] = 0
  22411. ;
  22412. return 0;
  22413. }
  22414. _ACEOF
  22415. rm -f conftest.$ac_objext
  22416. if { (ac_try="$ac_compile"
  22417. case "(($ac_try" in
  22418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22419. *) ac_try_echo=$ac_try;;
  22420. esac
  22421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22422. $as_echo "$ac_try_echo") >&5
  22423. (eval "$ac_compile") 2>conftest.er1
  22424. ac_status=$?
  22425. grep -v '^ *+' conftest.er1 >conftest.err
  22426. rm -f conftest.er1
  22427. cat conftest.err >&5
  22428. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22429. (exit $ac_status); } && {
  22430. test -z "$ac_c_werror_flag" ||
  22431. test ! -s conftest.err
  22432. } && test -s conftest.$ac_objext; then
  22433. ac_hi=-1 ac_mid=-1
  22434. while :; do
  22435. cat >conftest.$ac_ext <<_ACEOF
  22436. /* confdefs.h. */
  22437. _ACEOF
  22438. cat confdefs.h >>conftest.$ac_ext
  22439. cat >>conftest.$ac_ext <<_ACEOF
  22440. /* end confdefs.h. */
  22441. $ac_includes_default
  22442. int
  22443. main ()
  22444. {
  22445. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= $ac_mid)];
  22446. test_array [0] = 0
  22447. ;
  22448. return 0;
  22449. }
  22450. _ACEOF
  22451. rm -f conftest.$ac_objext
  22452. if { (ac_try="$ac_compile"
  22453. case "(($ac_try" in
  22454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22455. *) ac_try_echo=$ac_try;;
  22456. esac
  22457. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22458. $as_echo "$ac_try_echo") >&5
  22459. (eval "$ac_compile") 2>conftest.er1
  22460. ac_status=$?
  22461. grep -v '^ *+' conftest.er1 >conftest.err
  22462. rm -f conftest.er1
  22463. cat conftest.err >&5
  22464. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22465. (exit $ac_status); } && {
  22466. test -z "$ac_c_werror_flag" ||
  22467. test ! -s conftest.err
  22468. } && test -s conftest.$ac_objext; then
  22469. ac_lo=$ac_mid; break
  22470. else
  22471. $as_echo "$as_me: failed program was:" >&5
  22472. sed 's/^/| /' conftest.$ac_ext >&5
  22473. ac_hi=`expr '(' $ac_mid ')' - 1`
  22474. if test $ac_mid -le $ac_hi; then
  22475. ac_lo= ac_hi=
  22476. break
  22477. fi
  22478. ac_mid=`expr 2 '*' $ac_mid`
  22479. fi
  22480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22481. done
  22482. else
  22483. $as_echo "$as_me: failed program was:" >&5
  22484. sed 's/^/| /' conftest.$ac_ext >&5
  22485. ac_lo= ac_hi=
  22486. fi
  22487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22488. fi
  22489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22490. # Binary search between lo and hi bounds.
  22491. while test "x$ac_lo" != "x$ac_hi"; do
  22492. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22493. cat >conftest.$ac_ext <<_ACEOF
  22494. /* confdefs.h. */
  22495. _ACEOF
  22496. cat confdefs.h >>conftest.$ac_ext
  22497. cat >>conftest.$ac_ext <<_ACEOF
  22498. /* end confdefs.h. */
  22499. $ac_includes_default
  22500. int
  22501. main ()
  22502. {
  22503. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  22504. test_array [0] = 0
  22505. ;
  22506. return 0;
  22507. }
  22508. _ACEOF
  22509. rm -f conftest.$ac_objext
  22510. if { (ac_try="$ac_compile"
  22511. case "(($ac_try" in
  22512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22513. *) ac_try_echo=$ac_try;;
  22514. esac
  22515. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22516. $as_echo "$ac_try_echo") >&5
  22517. (eval "$ac_compile") 2>conftest.er1
  22518. ac_status=$?
  22519. grep -v '^ *+' conftest.er1 >conftest.err
  22520. rm -f conftest.er1
  22521. cat conftest.err >&5
  22522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22523. (exit $ac_status); } && {
  22524. test -z "$ac_c_werror_flag" ||
  22525. test ! -s conftest.err
  22526. } && test -s conftest.$ac_objext; then
  22527. ac_hi=$ac_mid
  22528. else
  22529. $as_echo "$as_me: failed program was:" >&5
  22530. sed 's/^/| /' conftest.$ac_ext >&5
  22531. ac_lo=`expr '(' $ac_mid ')' + 1`
  22532. fi
  22533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22534. done
  22535. case $ac_lo in
  22536. ?*) ac_cv_sizeof_charp=$ac_lo;;
  22537. '') if test "$ac_cv_type_charp" = yes; then
  22538. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22540. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  22541. See \`config.log' for more details." >&5
  22542. $as_echo "$as_me: error: cannot compute sizeof (char*)
  22543. See \`config.log' for more details." >&2;}
  22544. { (exit 77); exit 77; }; }; }
  22545. else
  22546. ac_cv_sizeof_charp=0
  22547. fi ;;
  22548. esac
  22549. else
  22550. cat >conftest.$ac_ext <<_ACEOF
  22551. /* confdefs.h. */
  22552. _ACEOF
  22553. cat confdefs.h >>conftest.$ac_ext
  22554. cat >>conftest.$ac_ext <<_ACEOF
  22555. /* end confdefs.h. */
  22556. $ac_includes_default
  22557. static long int longval () { return (long int) (sizeof (char*)); }
  22558. static unsigned long int ulongval () { return (long int) (sizeof (char*)); }
  22559. #include <stdio.h>
  22560. #include <stdlib.h>
  22561. int
  22562. main ()
  22563. {
  22564. FILE *f = fopen ("conftest.val", "w");
  22565. if (! f)
  22566. return 1;
  22567. if (((long int) (sizeof (char*))) < 0)
  22568. {
  22569. long int i = longval ();
  22570. if (i != ((long int) (sizeof (char*))))
  22571. return 1;
  22572. fprintf (f, "%ld", i);
  22573. }
  22574. else
  22575. {
  22576. unsigned long int i = ulongval ();
  22577. if (i != ((long int) (sizeof (char*))))
  22578. return 1;
  22579. fprintf (f, "%lu", i);
  22580. }
  22581. /* Do not output a trailing newline, as this causes \r\n confusion
  22582. on some platforms. */
  22583. return ferror (f) || fclose (f) != 0;
  22584. ;
  22585. return 0;
  22586. }
  22587. _ACEOF
  22588. rm -f conftest$ac_exeext
  22589. if { (ac_try="$ac_link"
  22590. case "(($ac_try" in
  22591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22592. *) ac_try_echo=$ac_try;;
  22593. esac
  22594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22595. $as_echo "$ac_try_echo") >&5
  22596. (eval "$ac_link") 2>&5
  22597. ac_status=$?
  22598. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22599. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22600. { (case "(($ac_try" in
  22601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22602. *) ac_try_echo=$ac_try;;
  22603. esac
  22604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22605. $as_echo "$ac_try_echo") >&5
  22606. (eval "$ac_try") 2>&5
  22607. ac_status=$?
  22608. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22609. (exit $ac_status); }; }; then
  22610. ac_cv_sizeof_charp=`cat conftest.val`
  22611. else
  22612. $as_echo "$as_me: program exited with status $ac_status" >&5
  22613. $as_echo "$as_me: failed program was:" >&5
  22614. sed 's/^/| /' conftest.$ac_ext >&5
  22615. ( exit $ac_status )
  22616. if test "$ac_cv_type_charp" = yes; then
  22617. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22618. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22619. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  22620. See \`config.log' for more details." >&5
  22621. $as_echo "$as_me: error: cannot compute sizeof (char*)
  22622. See \`config.log' for more details." >&2;}
  22623. { (exit 77); exit 77; }; }; }
  22624. else
  22625. ac_cv_sizeof_charp=0
  22626. fi
  22627. fi
  22628. rm -rf conftest.dSYM
  22629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22630. fi
  22631. rm -f conftest.val
  22632. fi
  22633. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  22634. $as_echo "$ac_cv_sizeof_charp" >&6; }
  22635. cat >>confdefs.h <<_ACEOF
  22636. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  22637. _ACEOF
  22638. # The cast to long int works around a bug in the HP C Compiler
  22639. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22640. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22641. # This bug is HP SR number 8606223364.
  22642. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  22643. $as_echo_n "checking size of int... " >&6; }
  22644. if test "${ac_cv_sizeof_int+set}" = set; then
  22645. $as_echo_n "(cached) " >&6
  22646. else
  22647. if test "$cross_compiling" = yes; then
  22648. # Depending upon the size, compute the lo and hi bounds.
  22649. cat >conftest.$ac_ext <<_ACEOF
  22650. /* confdefs.h. */
  22651. _ACEOF
  22652. cat confdefs.h >>conftest.$ac_ext
  22653. cat >>conftest.$ac_ext <<_ACEOF
  22654. /* end confdefs.h. */
  22655. $ac_includes_default
  22656. int
  22657. main ()
  22658. {
  22659. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  22660. test_array [0] = 0
  22661. ;
  22662. return 0;
  22663. }
  22664. _ACEOF
  22665. rm -f conftest.$ac_objext
  22666. if { (ac_try="$ac_compile"
  22667. case "(($ac_try" in
  22668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22669. *) ac_try_echo=$ac_try;;
  22670. esac
  22671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22672. $as_echo "$ac_try_echo") >&5
  22673. (eval "$ac_compile") 2>conftest.er1
  22674. ac_status=$?
  22675. grep -v '^ *+' conftest.er1 >conftest.err
  22676. rm -f conftest.er1
  22677. cat conftest.err >&5
  22678. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22679. (exit $ac_status); } && {
  22680. test -z "$ac_c_werror_flag" ||
  22681. test ! -s conftest.err
  22682. } && test -s conftest.$ac_objext; then
  22683. ac_lo=0 ac_mid=0
  22684. while :; do
  22685. cat >conftest.$ac_ext <<_ACEOF
  22686. /* confdefs.h. */
  22687. _ACEOF
  22688. cat confdefs.h >>conftest.$ac_ext
  22689. cat >>conftest.$ac_ext <<_ACEOF
  22690. /* end confdefs.h. */
  22691. $ac_includes_default
  22692. int
  22693. main ()
  22694. {
  22695. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  22696. test_array [0] = 0
  22697. ;
  22698. return 0;
  22699. }
  22700. _ACEOF
  22701. rm -f conftest.$ac_objext
  22702. if { (ac_try="$ac_compile"
  22703. case "(($ac_try" in
  22704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22705. *) ac_try_echo=$ac_try;;
  22706. esac
  22707. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22708. $as_echo "$ac_try_echo") >&5
  22709. (eval "$ac_compile") 2>conftest.er1
  22710. ac_status=$?
  22711. grep -v '^ *+' conftest.er1 >conftest.err
  22712. rm -f conftest.er1
  22713. cat conftest.err >&5
  22714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22715. (exit $ac_status); } && {
  22716. test -z "$ac_c_werror_flag" ||
  22717. test ! -s conftest.err
  22718. } && test -s conftest.$ac_objext; then
  22719. ac_hi=$ac_mid; break
  22720. else
  22721. $as_echo "$as_me: failed program was:" >&5
  22722. sed 's/^/| /' conftest.$ac_ext >&5
  22723. ac_lo=`expr $ac_mid + 1`
  22724. if test $ac_lo -le $ac_mid; then
  22725. ac_lo= ac_hi=
  22726. break
  22727. fi
  22728. ac_mid=`expr 2 '*' $ac_mid + 1`
  22729. fi
  22730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22731. done
  22732. else
  22733. $as_echo "$as_me: failed program was:" >&5
  22734. sed 's/^/| /' conftest.$ac_ext >&5
  22735. cat >conftest.$ac_ext <<_ACEOF
  22736. /* confdefs.h. */
  22737. _ACEOF
  22738. cat confdefs.h >>conftest.$ac_ext
  22739. cat >>conftest.$ac_ext <<_ACEOF
  22740. /* end confdefs.h. */
  22741. $ac_includes_default
  22742. int
  22743. main ()
  22744. {
  22745. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  22746. test_array [0] = 0
  22747. ;
  22748. return 0;
  22749. }
  22750. _ACEOF
  22751. rm -f conftest.$ac_objext
  22752. if { (ac_try="$ac_compile"
  22753. case "(($ac_try" in
  22754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22755. *) ac_try_echo=$ac_try;;
  22756. esac
  22757. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22758. $as_echo "$ac_try_echo") >&5
  22759. (eval "$ac_compile") 2>conftest.er1
  22760. ac_status=$?
  22761. grep -v '^ *+' conftest.er1 >conftest.err
  22762. rm -f conftest.er1
  22763. cat conftest.err >&5
  22764. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22765. (exit $ac_status); } && {
  22766. test -z "$ac_c_werror_flag" ||
  22767. test ! -s conftest.err
  22768. } && test -s conftest.$ac_objext; then
  22769. ac_hi=-1 ac_mid=-1
  22770. while :; do
  22771. cat >conftest.$ac_ext <<_ACEOF
  22772. /* confdefs.h. */
  22773. _ACEOF
  22774. cat confdefs.h >>conftest.$ac_ext
  22775. cat >>conftest.$ac_ext <<_ACEOF
  22776. /* end confdefs.h. */
  22777. $ac_includes_default
  22778. int
  22779. main ()
  22780. {
  22781. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  22782. test_array [0] = 0
  22783. ;
  22784. return 0;
  22785. }
  22786. _ACEOF
  22787. rm -f conftest.$ac_objext
  22788. if { (ac_try="$ac_compile"
  22789. case "(($ac_try" in
  22790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22791. *) ac_try_echo=$ac_try;;
  22792. esac
  22793. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22794. $as_echo "$ac_try_echo") >&5
  22795. (eval "$ac_compile") 2>conftest.er1
  22796. ac_status=$?
  22797. grep -v '^ *+' conftest.er1 >conftest.err
  22798. rm -f conftest.er1
  22799. cat conftest.err >&5
  22800. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22801. (exit $ac_status); } && {
  22802. test -z "$ac_c_werror_flag" ||
  22803. test ! -s conftest.err
  22804. } && test -s conftest.$ac_objext; then
  22805. ac_lo=$ac_mid; break
  22806. else
  22807. $as_echo "$as_me: failed program was:" >&5
  22808. sed 's/^/| /' conftest.$ac_ext >&5
  22809. ac_hi=`expr '(' $ac_mid ')' - 1`
  22810. if test $ac_mid -le $ac_hi; then
  22811. ac_lo= ac_hi=
  22812. break
  22813. fi
  22814. ac_mid=`expr 2 '*' $ac_mid`
  22815. fi
  22816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22817. done
  22818. else
  22819. $as_echo "$as_me: failed program was:" >&5
  22820. sed 's/^/| /' conftest.$ac_ext >&5
  22821. ac_lo= ac_hi=
  22822. fi
  22823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22824. fi
  22825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22826. # Binary search between lo and hi bounds.
  22827. while test "x$ac_lo" != "x$ac_hi"; do
  22828. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  22829. cat >conftest.$ac_ext <<_ACEOF
  22830. /* confdefs.h. */
  22831. _ACEOF
  22832. cat confdefs.h >>conftest.$ac_ext
  22833. cat >>conftest.$ac_ext <<_ACEOF
  22834. /* end confdefs.h. */
  22835. $ac_includes_default
  22836. int
  22837. main ()
  22838. {
  22839. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  22840. test_array [0] = 0
  22841. ;
  22842. return 0;
  22843. }
  22844. _ACEOF
  22845. rm -f conftest.$ac_objext
  22846. if { (ac_try="$ac_compile"
  22847. case "(($ac_try" in
  22848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22849. *) ac_try_echo=$ac_try;;
  22850. esac
  22851. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22852. $as_echo "$ac_try_echo") >&5
  22853. (eval "$ac_compile") 2>conftest.er1
  22854. ac_status=$?
  22855. grep -v '^ *+' conftest.er1 >conftest.err
  22856. rm -f conftest.er1
  22857. cat conftest.err >&5
  22858. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22859. (exit $ac_status); } && {
  22860. test -z "$ac_c_werror_flag" ||
  22861. test ! -s conftest.err
  22862. } && test -s conftest.$ac_objext; then
  22863. ac_hi=$ac_mid
  22864. else
  22865. $as_echo "$as_me: failed program was:" >&5
  22866. sed 's/^/| /' conftest.$ac_ext >&5
  22867. ac_lo=`expr '(' $ac_mid ')' + 1`
  22868. fi
  22869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22870. done
  22871. case $ac_lo in
  22872. ?*) ac_cv_sizeof_int=$ac_lo;;
  22873. '') if test "$ac_cv_type_int" = yes; then
  22874. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22875. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22876. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  22877. See \`config.log' for more details." >&5
  22878. $as_echo "$as_me: error: cannot compute sizeof (int)
  22879. See \`config.log' for more details." >&2;}
  22880. { (exit 77); exit 77; }; }; }
  22881. else
  22882. ac_cv_sizeof_int=0
  22883. fi ;;
  22884. esac
  22885. else
  22886. cat >conftest.$ac_ext <<_ACEOF
  22887. /* confdefs.h. */
  22888. _ACEOF
  22889. cat confdefs.h >>conftest.$ac_ext
  22890. cat >>conftest.$ac_ext <<_ACEOF
  22891. /* end confdefs.h. */
  22892. $ac_includes_default
  22893. static long int longval () { return (long int) (sizeof (int)); }
  22894. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  22895. #include <stdio.h>
  22896. #include <stdlib.h>
  22897. int
  22898. main ()
  22899. {
  22900. FILE *f = fopen ("conftest.val", "w");
  22901. if (! f)
  22902. return 1;
  22903. if (((long int) (sizeof (int))) < 0)
  22904. {
  22905. long int i = longval ();
  22906. if (i != ((long int) (sizeof (int))))
  22907. return 1;
  22908. fprintf (f, "%ld", i);
  22909. }
  22910. else
  22911. {
  22912. unsigned long int i = ulongval ();
  22913. if (i != ((long int) (sizeof (int))))
  22914. return 1;
  22915. fprintf (f, "%lu", i);
  22916. }
  22917. /* Do not output a trailing newline, as this causes \r\n confusion
  22918. on some platforms. */
  22919. return ferror (f) || fclose (f) != 0;
  22920. ;
  22921. return 0;
  22922. }
  22923. _ACEOF
  22924. rm -f conftest$ac_exeext
  22925. if { (ac_try="$ac_link"
  22926. case "(($ac_try" in
  22927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22928. *) ac_try_echo=$ac_try;;
  22929. esac
  22930. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22931. $as_echo "$ac_try_echo") >&5
  22932. (eval "$ac_link") 2>&5
  22933. ac_status=$?
  22934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22935. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22936. { (case "(($ac_try" in
  22937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22938. *) ac_try_echo=$ac_try;;
  22939. esac
  22940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22941. $as_echo "$ac_try_echo") >&5
  22942. (eval "$ac_try") 2>&5
  22943. ac_status=$?
  22944. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22945. (exit $ac_status); }; }; then
  22946. ac_cv_sizeof_int=`cat conftest.val`
  22947. else
  22948. $as_echo "$as_me: program exited with status $ac_status" >&5
  22949. $as_echo "$as_me: failed program was:" >&5
  22950. sed 's/^/| /' conftest.$ac_ext >&5
  22951. ( exit $ac_status )
  22952. if test "$ac_cv_type_int" = yes; then
  22953. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  22954. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22955. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  22956. See \`config.log' for more details." >&5
  22957. $as_echo "$as_me: error: cannot compute sizeof (int)
  22958. See \`config.log' for more details." >&2;}
  22959. { (exit 77); exit 77; }; }; }
  22960. else
  22961. ac_cv_sizeof_int=0
  22962. fi
  22963. fi
  22964. rm -rf conftest.dSYM
  22965. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22966. fi
  22967. rm -f conftest.val
  22968. fi
  22969. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  22970. $as_echo "$ac_cv_sizeof_int" >&6; }
  22971. cat >>confdefs.h <<_ACEOF
  22972. #define SIZEOF_INT $ac_cv_sizeof_int
  22973. _ACEOF
  22974. # The cast to long int works around a bug in the HP C Compiler
  22975. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22976. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22977. # This bug is HP SR number 8606223364.
  22978. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  22979. $as_echo_n "checking size of long... " >&6; }
  22980. if test "${ac_cv_sizeof_long+set}" = set; then
  22981. $as_echo_n "(cached) " >&6
  22982. else
  22983. if test "$cross_compiling" = yes; then
  22984. # Depending upon the size, compute the lo and hi bounds.
  22985. cat >conftest.$ac_ext <<_ACEOF
  22986. /* confdefs.h. */
  22987. _ACEOF
  22988. cat confdefs.h >>conftest.$ac_ext
  22989. cat >>conftest.$ac_ext <<_ACEOF
  22990. /* end confdefs.h. */
  22991. $ac_includes_default
  22992. int
  22993. main ()
  22994. {
  22995. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  22996. test_array [0] = 0
  22997. ;
  22998. return 0;
  22999. }
  23000. _ACEOF
  23001. rm -f conftest.$ac_objext
  23002. if { (ac_try="$ac_compile"
  23003. case "(($ac_try" in
  23004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23005. *) ac_try_echo=$ac_try;;
  23006. esac
  23007. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23008. $as_echo "$ac_try_echo") >&5
  23009. (eval "$ac_compile") 2>conftest.er1
  23010. ac_status=$?
  23011. grep -v '^ *+' conftest.er1 >conftest.err
  23012. rm -f conftest.er1
  23013. cat conftest.err >&5
  23014. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23015. (exit $ac_status); } && {
  23016. test -z "$ac_c_werror_flag" ||
  23017. test ! -s conftest.err
  23018. } && test -s conftest.$ac_objext; then
  23019. ac_lo=0 ac_mid=0
  23020. while :; do
  23021. cat >conftest.$ac_ext <<_ACEOF
  23022. /* confdefs.h. */
  23023. _ACEOF
  23024. cat confdefs.h >>conftest.$ac_ext
  23025. cat >>conftest.$ac_ext <<_ACEOF
  23026. /* end confdefs.h. */
  23027. $ac_includes_default
  23028. int
  23029. main ()
  23030. {
  23031. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  23032. test_array [0] = 0
  23033. ;
  23034. return 0;
  23035. }
  23036. _ACEOF
  23037. rm -f conftest.$ac_objext
  23038. if { (ac_try="$ac_compile"
  23039. case "(($ac_try" in
  23040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23041. *) ac_try_echo=$ac_try;;
  23042. esac
  23043. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23044. $as_echo "$ac_try_echo") >&5
  23045. (eval "$ac_compile") 2>conftest.er1
  23046. ac_status=$?
  23047. grep -v '^ *+' conftest.er1 >conftest.err
  23048. rm -f conftest.er1
  23049. cat conftest.err >&5
  23050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23051. (exit $ac_status); } && {
  23052. test -z "$ac_c_werror_flag" ||
  23053. test ! -s conftest.err
  23054. } && test -s conftest.$ac_objext; then
  23055. ac_hi=$ac_mid; break
  23056. else
  23057. $as_echo "$as_me: failed program was:" >&5
  23058. sed 's/^/| /' conftest.$ac_ext >&5
  23059. ac_lo=`expr $ac_mid + 1`
  23060. if test $ac_lo -le $ac_mid; then
  23061. ac_lo= ac_hi=
  23062. break
  23063. fi
  23064. ac_mid=`expr 2 '*' $ac_mid + 1`
  23065. fi
  23066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23067. done
  23068. else
  23069. $as_echo "$as_me: failed program was:" >&5
  23070. sed 's/^/| /' conftest.$ac_ext >&5
  23071. cat >conftest.$ac_ext <<_ACEOF
  23072. /* confdefs.h. */
  23073. _ACEOF
  23074. cat confdefs.h >>conftest.$ac_ext
  23075. cat >>conftest.$ac_ext <<_ACEOF
  23076. /* end confdefs.h. */
  23077. $ac_includes_default
  23078. int
  23079. main ()
  23080. {
  23081. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  23082. test_array [0] = 0
  23083. ;
  23084. return 0;
  23085. }
  23086. _ACEOF
  23087. rm -f conftest.$ac_objext
  23088. if { (ac_try="$ac_compile"
  23089. case "(($ac_try" in
  23090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23091. *) ac_try_echo=$ac_try;;
  23092. esac
  23093. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23094. $as_echo "$ac_try_echo") >&5
  23095. (eval "$ac_compile") 2>conftest.er1
  23096. ac_status=$?
  23097. grep -v '^ *+' conftest.er1 >conftest.err
  23098. rm -f conftest.er1
  23099. cat conftest.err >&5
  23100. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23101. (exit $ac_status); } && {
  23102. test -z "$ac_c_werror_flag" ||
  23103. test ! -s conftest.err
  23104. } && test -s conftest.$ac_objext; then
  23105. ac_hi=-1 ac_mid=-1
  23106. while :; do
  23107. cat >conftest.$ac_ext <<_ACEOF
  23108. /* confdefs.h. */
  23109. _ACEOF
  23110. cat confdefs.h >>conftest.$ac_ext
  23111. cat >>conftest.$ac_ext <<_ACEOF
  23112. /* end confdefs.h. */
  23113. $ac_includes_default
  23114. int
  23115. main ()
  23116. {
  23117. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  23118. test_array [0] = 0
  23119. ;
  23120. return 0;
  23121. }
  23122. _ACEOF
  23123. rm -f conftest.$ac_objext
  23124. if { (ac_try="$ac_compile"
  23125. case "(($ac_try" in
  23126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23127. *) ac_try_echo=$ac_try;;
  23128. esac
  23129. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23130. $as_echo "$ac_try_echo") >&5
  23131. (eval "$ac_compile") 2>conftest.er1
  23132. ac_status=$?
  23133. grep -v '^ *+' conftest.er1 >conftest.err
  23134. rm -f conftest.er1
  23135. cat conftest.err >&5
  23136. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23137. (exit $ac_status); } && {
  23138. test -z "$ac_c_werror_flag" ||
  23139. test ! -s conftest.err
  23140. } && test -s conftest.$ac_objext; then
  23141. ac_lo=$ac_mid; break
  23142. else
  23143. $as_echo "$as_me: failed program was:" >&5
  23144. sed 's/^/| /' conftest.$ac_ext >&5
  23145. ac_hi=`expr '(' $ac_mid ')' - 1`
  23146. if test $ac_mid -le $ac_hi; then
  23147. ac_lo= ac_hi=
  23148. break
  23149. fi
  23150. ac_mid=`expr 2 '*' $ac_mid`
  23151. fi
  23152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23153. done
  23154. else
  23155. $as_echo "$as_me: failed program was:" >&5
  23156. sed 's/^/| /' conftest.$ac_ext >&5
  23157. ac_lo= ac_hi=
  23158. fi
  23159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23160. fi
  23161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23162. # Binary search between lo and hi bounds.
  23163. while test "x$ac_lo" != "x$ac_hi"; do
  23164. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23165. cat >conftest.$ac_ext <<_ACEOF
  23166. /* confdefs.h. */
  23167. _ACEOF
  23168. cat confdefs.h >>conftest.$ac_ext
  23169. cat >>conftest.$ac_ext <<_ACEOF
  23170. /* end confdefs.h. */
  23171. $ac_includes_default
  23172. int
  23173. main ()
  23174. {
  23175. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  23176. test_array [0] = 0
  23177. ;
  23178. return 0;
  23179. }
  23180. _ACEOF
  23181. rm -f conftest.$ac_objext
  23182. if { (ac_try="$ac_compile"
  23183. case "(($ac_try" in
  23184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23185. *) ac_try_echo=$ac_try;;
  23186. esac
  23187. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23188. $as_echo "$ac_try_echo") >&5
  23189. (eval "$ac_compile") 2>conftest.er1
  23190. ac_status=$?
  23191. grep -v '^ *+' conftest.er1 >conftest.err
  23192. rm -f conftest.er1
  23193. cat conftest.err >&5
  23194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23195. (exit $ac_status); } && {
  23196. test -z "$ac_c_werror_flag" ||
  23197. test ! -s conftest.err
  23198. } && test -s conftest.$ac_objext; then
  23199. ac_hi=$ac_mid
  23200. else
  23201. $as_echo "$as_me: failed program was:" >&5
  23202. sed 's/^/| /' conftest.$ac_ext >&5
  23203. ac_lo=`expr '(' $ac_mid ')' + 1`
  23204. fi
  23205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23206. done
  23207. case $ac_lo in
  23208. ?*) ac_cv_sizeof_long=$ac_lo;;
  23209. '') if test "$ac_cv_type_long" = yes; then
  23210. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23212. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  23213. See \`config.log' for more details." >&5
  23214. $as_echo "$as_me: error: cannot compute sizeof (long)
  23215. See \`config.log' for more details." >&2;}
  23216. { (exit 77); exit 77; }; }; }
  23217. else
  23218. ac_cv_sizeof_long=0
  23219. fi ;;
  23220. esac
  23221. else
  23222. cat >conftest.$ac_ext <<_ACEOF
  23223. /* confdefs.h. */
  23224. _ACEOF
  23225. cat confdefs.h >>conftest.$ac_ext
  23226. cat >>conftest.$ac_ext <<_ACEOF
  23227. /* end confdefs.h. */
  23228. $ac_includes_default
  23229. static long int longval () { return (long int) (sizeof (long)); }
  23230. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  23231. #include <stdio.h>
  23232. #include <stdlib.h>
  23233. int
  23234. main ()
  23235. {
  23236. FILE *f = fopen ("conftest.val", "w");
  23237. if (! f)
  23238. return 1;
  23239. if (((long int) (sizeof (long))) < 0)
  23240. {
  23241. long int i = longval ();
  23242. if (i != ((long int) (sizeof (long))))
  23243. return 1;
  23244. fprintf (f, "%ld", i);
  23245. }
  23246. else
  23247. {
  23248. unsigned long int i = ulongval ();
  23249. if (i != ((long int) (sizeof (long))))
  23250. return 1;
  23251. fprintf (f, "%lu", i);
  23252. }
  23253. /* Do not output a trailing newline, as this causes \r\n confusion
  23254. on some platforms. */
  23255. return ferror (f) || fclose (f) != 0;
  23256. ;
  23257. return 0;
  23258. }
  23259. _ACEOF
  23260. rm -f conftest$ac_exeext
  23261. if { (ac_try="$ac_link"
  23262. case "(($ac_try" in
  23263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23264. *) ac_try_echo=$ac_try;;
  23265. esac
  23266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23267. $as_echo "$ac_try_echo") >&5
  23268. (eval "$ac_link") 2>&5
  23269. ac_status=$?
  23270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23271. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23272. { (case "(($ac_try" in
  23273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23274. *) ac_try_echo=$ac_try;;
  23275. esac
  23276. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23277. $as_echo "$ac_try_echo") >&5
  23278. (eval "$ac_try") 2>&5
  23279. ac_status=$?
  23280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23281. (exit $ac_status); }; }; then
  23282. ac_cv_sizeof_long=`cat conftest.val`
  23283. else
  23284. $as_echo "$as_me: program exited with status $ac_status" >&5
  23285. $as_echo "$as_me: failed program was:" >&5
  23286. sed 's/^/| /' conftest.$ac_ext >&5
  23287. ( exit $ac_status )
  23288. if test "$ac_cv_type_long" = yes; then
  23289. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23290. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23291. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  23292. See \`config.log' for more details." >&5
  23293. $as_echo "$as_me: error: cannot compute sizeof (long)
  23294. See \`config.log' for more details." >&2;}
  23295. { (exit 77); exit 77; }; }; }
  23296. else
  23297. ac_cv_sizeof_long=0
  23298. fi
  23299. fi
  23300. rm -rf conftest.dSYM
  23301. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23302. fi
  23303. rm -f conftest.val
  23304. fi
  23305. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  23306. $as_echo "$ac_cv_sizeof_long" >&6; }
  23307. cat >>confdefs.h <<_ACEOF
  23308. #define SIZEOF_LONG $ac_cv_sizeof_long
  23309. _ACEOF
  23310. # The cast to long int works around a bug in the HP C Compiler
  23311. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  23312. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  23313. # This bug is HP SR number 8606223364.
  23314. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  23315. $as_echo_n "checking size of short... " >&6; }
  23316. if test "${ac_cv_sizeof_short+set}" = set; then
  23317. $as_echo_n "(cached) " >&6
  23318. else
  23319. if test "$cross_compiling" = yes; then
  23320. # Depending upon the size, compute the lo and hi bounds.
  23321. cat >conftest.$ac_ext <<_ACEOF
  23322. /* confdefs.h. */
  23323. _ACEOF
  23324. cat confdefs.h >>conftest.$ac_ext
  23325. cat >>conftest.$ac_ext <<_ACEOF
  23326. /* end confdefs.h. */
  23327. $ac_includes_default
  23328. int
  23329. main ()
  23330. {
  23331. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  23332. test_array [0] = 0
  23333. ;
  23334. return 0;
  23335. }
  23336. _ACEOF
  23337. rm -f conftest.$ac_objext
  23338. if { (ac_try="$ac_compile"
  23339. case "(($ac_try" in
  23340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23341. *) ac_try_echo=$ac_try;;
  23342. esac
  23343. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23344. $as_echo "$ac_try_echo") >&5
  23345. (eval "$ac_compile") 2>conftest.er1
  23346. ac_status=$?
  23347. grep -v '^ *+' conftest.er1 >conftest.err
  23348. rm -f conftest.er1
  23349. cat conftest.err >&5
  23350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23351. (exit $ac_status); } && {
  23352. test -z "$ac_c_werror_flag" ||
  23353. test ! -s conftest.err
  23354. } && test -s conftest.$ac_objext; then
  23355. ac_lo=0 ac_mid=0
  23356. while :; do
  23357. cat >conftest.$ac_ext <<_ACEOF
  23358. /* confdefs.h. */
  23359. _ACEOF
  23360. cat confdefs.h >>conftest.$ac_ext
  23361. cat >>conftest.$ac_ext <<_ACEOF
  23362. /* end confdefs.h. */
  23363. $ac_includes_default
  23364. int
  23365. main ()
  23366. {
  23367. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  23368. test_array [0] = 0
  23369. ;
  23370. return 0;
  23371. }
  23372. _ACEOF
  23373. rm -f conftest.$ac_objext
  23374. if { (ac_try="$ac_compile"
  23375. case "(($ac_try" in
  23376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23377. *) ac_try_echo=$ac_try;;
  23378. esac
  23379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23380. $as_echo "$ac_try_echo") >&5
  23381. (eval "$ac_compile") 2>conftest.er1
  23382. ac_status=$?
  23383. grep -v '^ *+' conftest.er1 >conftest.err
  23384. rm -f conftest.er1
  23385. cat conftest.err >&5
  23386. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23387. (exit $ac_status); } && {
  23388. test -z "$ac_c_werror_flag" ||
  23389. test ! -s conftest.err
  23390. } && test -s conftest.$ac_objext; then
  23391. ac_hi=$ac_mid; break
  23392. else
  23393. $as_echo "$as_me: failed program was:" >&5
  23394. sed 's/^/| /' conftest.$ac_ext >&5
  23395. ac_lo=`expr $ac_mid + 1`
  23396. if test $ac_lo -le $ac_mid; then
  23397. ac_lo= ac_hi=
  23398. break
  23399. fi
  23400. ac_mid=`expr 2 '*' $ac_mid + 1`
  23401. fi
  23402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23403. done
  23404. else
  23405. $as_echo "$as_me: failed program was:" >&5
  23406. sed 's/^/| /' conftest.$ac_ext >&5
  23407. cat >conftest.$ac_ext <<_ACEOF
  23408. /* confdefs.h. */
  23409. _ACEOF
  23410. cat confdefs.h >>conftest.$ac_ext
  23411. cat >>conftest.$ac_ext <<_ACEOF
  23412. /* end confdefs.h. */
  23413. $ac_includes_default
  23414. int
  23415. main ()
  23416. {
  23417. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  23418. test_array [0] = 0
  23419. ;
  23420. return 0;
  23421. }
  23422. _ACEOF
  23423. rm -f conftest.$ac_objext
  23424. if { (ac_try="$ac_compile"
  23425. case "(($ac_try" in
  23426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23427. *) ac_try_echo=$ac_try;;
  23428. esac
  23429. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23430. $as_echo "$ac_try_echo") >&5
  23431. (eval "$ac_compile") 2>conftest.er1
  23432. ac_status=$?
  23433. grep -v '^ *+' conftest.er1 >conftest.err
  23434. rm -f conftest.er1
  23435. cat conftest.err >&5
  23436. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23437. (exit $ac_status); } && {
  23438. test -z "$ac_c_werror_flag" ||
  23439. test ! -s conftest.err
  23440. } && test -s conftest.$ac_objext; then
  23441. ac_hi=-1 ac_mid=-1
  23442. while :; do
  23443. cat >conftest.$ac_ext <<_ACEOF
  23444. /* confdefs.h. */
  23445. _ACEOF
  23446. cat confdefs.h >>conftest.$ac_ext
  23447. cat >>conftest.$ac_ext <<_ACEOF
  23448. /* end confdefs.h. */
  23449. $ac_includes_default
  23450. int
  23451. main ()
  23452. {
  23453. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  23454. test_array [0] = 0
  23455. ;
  23456. return 0;
  23457. }
  23458. _ACEOF
  23459. rm -f conftest.$ac_objext
  23460. if { (ac_try="$ac_compile"
  23461. case "(($ac_try" in
  23462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23463. *) ac_try_echo=$ac_try;;
  23464. esac
  23465. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23466. $as_echo "$ac_try_echo") >&5
  23467. (eval "$ac_compile") 2>conftest.er1
  23468. ac_status=$?
  23469. grep -v '^ *+' conftest.er1 >conftest.err
  23470. rm -f conftest.er1
  23471. cat conftest.err >&5
  23472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23473. (exit $ac_status); } && {
  23474. test -z "$ac_c_werror_flag" ||
  23475. test ! -s conftest.err
  23476. } && test -s conftest.$ac_objext; then
  23477. ac_lo=$ac_mid; break
  23478. else
  23479. $as_echo "$as_me: failed program was:" >&5
  23480. sed 's/^/| /' conftest.$ac_ext >&5
  23481. ac_hi=`expr '(' $ac_mid ')' - 1`
  23482. if test $ac_mid -le $ac_hi; then
  23483. ac_lo= ac_hi=
  23484. break
  23485. fi
  23486. ac_mid=`expr 2 '*' $ac_mid`
  23487. fi
  23488. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23489. done
  23490. else
  23491. $as_echo "$as_me: failed program was:" >&5
  23492. sed 's/^/| /' conftest.$ac_ext >&5
  23493. ac_lo= ac_hi=
  23494. fi
  23495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23496. fi
  23497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23498. # Binary search between lo and hi bounds.
  23499. while test "x$ac_lo" != "x$ac_hi"; do
  23500. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  23501. cat >conftest.$ac_ext <<_ACEOF
  23502. /* confdefs.h. */
  23503. _ACEOF
  23504. cat confdefs.h >>conftest.$ac_ext
  23505. cat >>conftest.$ac_ext <<_ACEOF
  23506. /* end confdefs.h. */
  23507. $ac_includes_default
  23508. int
  23509. main ()
  23510. {
  23511. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  23512. test_array [0] = 0
  23513. ;
  23514. return 0;
  23515. }
  23516. _ACEOF
  23517. rm -f conftest.$ac_objext
  23518. if { (ac_try="$ac_compile"
  23519. case "(($ac_try" in
  23520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23521. *) ac_try_echo=$ac_try;;
  23522. esac
  23523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23524. $as_echo "$ac_try_echo") >&5
  23525. (eval "$ac_compile") 2>conftest.er1
  23526. ac_status=$?
  23527. grep -v '^ *+' conftest.er1 >conftest.err
  23528. rm -f conftest.er1
  23529. cat conftest.err >&5
  23530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23531. (exit $ac_status); } && {
  23532. test -z "$ac_c_werror_flag" ||
  23533. test ! -s conftest.err
  23534. } && test -s conftest.$ac_objext; then
  23535. ac_hi=$ac_mid
  23536. else
  23537. $as_echo "$as_me: failed program was:" >&5
  23538. sed 's/^/| /' conftest.$ac_ext >&5
  23539. ac_lo=`expr '(' $ac_mid ')' + 1`
  23540. fi
  23541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23542. done
  23543. case $ac_lo in
  23544. ?*) ac_cv_sizeof_short=$ac_lo;;
  23545. '') if test "$ac_cv_type_short" = yes; then
  23546. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23547. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23548. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  23549. See \`config.log' for more details." >&5
  23550. $as_echo "$as_me: error: cannot compute sizeof (short)
  23551. See \`config.log' for more details." >&2;}
  23552. { (exit 77); exit 77; }; }; }
  23553. else
  23554. ac_cv_sizeof_short=0
  23555. fi ;;
  23556. esac
  23557. else
  23558. cat >conftest.$ac_ext <<_ACEOF
  23559. /* confdefs.h. */
  23560. _ACEOF
  23561. cat confdefs.h >>conftest.$ac_ext
  23562. cat >>conftest.$ac_ext <<_ACEOF
  23563. /* end confdefs.h. */
  23564. $ac_includes_default
  23565. static long int longval () { return (long int) (sizeof (short)); }
  23566. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  23567. #include <stdio.h>
  23568. #include <stdlib.h>
  23569. int
  23570. main ()
  23571. {
  23572. FILE *f = fopen ("conftest.val", "w");
  23573. if (! f)
  23574. return 1;
  23575. if (((long int) (sizeof (short))) < 0)
  23576. {
  23577. long int i = longval ();
  23578. if (i != ((long int) (sizeof (short))))
  23579. return 1;
  23580. fprintf (f, "%ld", i);
  23581. }
  23582. else
  23583. {
  23584. unsigned long int i = ulongval ();
  23585. if (i != ((long int) (sizeof (short))))
  23586. return 1;
  23587. fprintf (f, "%lu", i);
  23588. }
  23589. /* Do not output a trailing newline, as this causes \r\n confusion
  23590. on some platforms. */
  23591. return ferror (f) || fclose (f) != 0;
  23592. ;
  23593. return 0;
  23594. }
  23595. _ACEOF
  23596. rm -f conftest$ac_exeext
  23597. if { (ac_try="$ac_link"
  23598. case "(($ac_try" in
  23599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23600. *) ac_try_echo=$ac_try;;
  23601. esac
  23602. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23603. $as_echo "$ac_try_echo") >&5
  23604. (eval "$ac_link") 2>&5
  23605. ac_status=$?
  23606. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23607. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23608. { (case "(($ac_try" in
  23609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23610. *) ac_try_echo=$ac_try;;
  23611. esac
  23612. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23613. $as_echo "$ac_try_echo") >&5
  23614. (eval "$ac_try") 2>&5
  23615. ac_status=$?
  23616. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23617. (exit $ac_status); }; }; then
  23618. ac_cv_sizeof_short=`cat conftest.val`
  23619. else
  23620. $as_echo "$as_me: program exited with status $ac_status" >&5
  23621. $as_echo "$as_me: failed program was:" >&5
  23622. sed 's/^/| /' conftest.$ac_ext >&5
  23623. ( exit $ac_status )
  23624. if test "$ac_cv_type_short" = yes; then
  23625. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  23626. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23627. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  23628. See \`config.log' for more details." >&5
  23629. $as_echo "$as_me: error: cannot compute sizeof (short)
  23630. See \`config.log' for more details." >&2;}
  23631. { (exit 77); exit 77; }; }; }
  23632. else
  23633. ac_cv_sizeof_short=0
  23634. fi
  23635. fi
  23636. rm -rf conftest.dSYM
  23637. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23638. fi
  23639. rm -f conftest.val
  23640. fi
  23641. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  23642. $as_echo "$ac_cv_sizeof_short" >&6; }
  23643. cat >>confdefs.h <<_ACEOF
  23644. #define SIZEOF_SHORT $ac_cv_sizeof_short
  23645. _ACEOF
  23646. # ----------------------------------------------------------------------
  23647. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  23648. # ----------------------------------------------------------------------
  23649. { $as_echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  23650. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  23651. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  23652. $as_echo_n "(cached) " >&6
  23653. else
  23654. ac_check_lib_save_LIBS=$LIBS
  23655. LIBS="-lgen $LIBS"
  23656. cat >conftest.$ac_ext <<_ACEOF
  23657. /* confdefs.h. */
  23658. _ACEOF
  23659. cat confdefs.h >>conftest.$ac_ext
  23660. cat >>conftest.$ac_ext <<_ACEOF
  23661. /* end confdefs.h. */
  23662. /* Override any GCC internal prototype to avoid an error.
  23663. Use char because int might match the return type of a GCC
  23664. builtin and then its argument prototype would still apply. */
  23665. #ifdef __cplusplus
  23666. extern "C"
  23667. #endif
  23668. char pathfind ();
  23669. int
  23670. main ()
  23671. {
  23672. return pathfind ();
  23673. ;
  23674. return 0;
  23675. }
  23676. _ACEOF
  23677. rm -f conftest.$ac_objext conftest$ac_exeext
  23678. if { (ac_try="$ac_link"
  23679. case "(($ac_try" in
  23680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23681. *) ac_try_echo=$ac_try;;
  23682. esac
  23683. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23684. $as_echo "$ac_try_echo") >&5
  23685. (eval "$ac_link") 2>conftest.er1
  23686. ac_status=$?
  23687. grep -v '^ *+' conftest.er1 >conftest.err
  23688. rm -f conftest.er1
  23689. cat conftest.err >&5
  23690. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23691. (exit $ac_status); } && {
  23692. test -z "$ac_c_werror_flag" ||
  23693. test ! -s conftest.err
  23694. } && test -s conftest$ac_exeext && {
  23695. test "$cross_compiling" = yes ||
  23696. $as_test_x conftest$ac_exeext
  23697. }; then
  23698. ac_cv_lib_gen_pathfind=yes
  23699. else
  23700. $as_echo "$as_me: failed program was:" >&5
  23701. sed 's/^/| /' conftest.$ac_ext >&5
  23702. ac_cv_lib_gen_pathfind=no
  23703. fi
  23704. rm -rf conftest.dSYM
  23705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23706. conftest$ac_exeext conftest.$ac_ext
  23707. LIBS=$ac_check_lib_save_LIBS
  23708. fi
  23709. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  23710. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  23711. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then
  23712. cat >>confdefs.h <<_ACEOF
  23713. #define HAVE_LIBGEN 1
  23714. _ACEOF
  23715. LIBS="-lgen $LIBS"
  23716. fi
  23717. for ac_func in vprintf
  23718. do
  23719. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23720. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  23721. $as_echo_n "checking for $ac_func... " >&6; }
  23722. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23723. $as_echo_n "(cached) " >&6
  23724. else
  23725. cat >conftest.$ac_ext <<_ACEOF
  23726. /* confdefs.h. */
  23727. _ACEOF
  23728. cat confdefs.h >>conftest.$ac_ext
  23729. cat >>conftest.$ac_ext <<_ACEOF
  23730. /* end confdefs.h. */
  23731. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23732. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23733. #define $ac_func innocuous_$ac_func
  23734. /* System header to define __stub macros and hopefully few prototypes,
  23735. which can conflict with char $ac_func (); below.
  23736. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23737. <limits.h> exists even on freestanding compilers. */
  23738. #ifdef __STDC__
  23739. # include <limits.h>
  23740. #else
  23741. # include <assert.h>
  23742. #endif
  23743. #undef $ac_func
  23744. /* Override any GCC internal prototype to avoid an error.
  23745. Use char because int might match the return type of a GCC
  23746. builtin and then its argument prototype would still apply. */
  23747. #ifdef __cplusplus
  23748. extern "C"
  23749. #endif
  23750. char $ac_func ();
  23751. /* The GNU C library defines this for functions which it implements
  23752. to always fail with ENOSYS. Some functions are actually named
  23753. something starting with __ and the normal name is an alias. */
  23754. #if defined __stub_$ac_func || defined __stub___$ac_func
  23755. choke me
  23756. #endif
  23757. int
  23758. main ()
  23759. {
  23760. return $ac_func ();
  23761. ;
  23762. return 0;
  23763. }
  23764. _ACEOF
  23765. rm -f conftest.$ac_objext conftest$ac_exeext
  23766. if { (ac_try="$ac_link"
  23767. case "(($ac_try" in
  23768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23769. *) ac_try_echo=$ac_try;;
  23770. esac
  23771. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23772. $as_echo "$ac_try_echo") >&5
  23773. (eval "$ac_link") 2>conftest.er1
  23774. ac_status=$?
  23775. grep -v '^ *+' conftest.er1 >conftest.err
  23776. rm -f conftest.er1
  23777. cat conftest.err >&5
  23778. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23779. (exit $ac_status); } && {
  23780. test -z "$ac_c_werror_flag" ||
  23781. test ! -s conftest.err
  23782. } && test -s conftest$ac_exeext && {
  23783. test "$cross_compiling" = yes ||
  23784. $as_test_x conftest$ac_exeext
  23785. }; then
  23786. eval "$as_ac_var=yes"
  23787. else
  23788. $as_echo "$as_me: failed program was:" >&5
  23789. sed 's/^/| /' conftest.$ac_ext >&5
  23790. eval "$as_ac_var=no"
  23791. fi
  23792. rm -rf conftest.dSYM
  23793. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23794. conftest$ac_exeext conftest.$ac_ext
  23795. fi
  23796. ac_res=`eval 'as_val=${'$as_ac_var'}
  23797. $as_echo "$as_val"'`
  23798. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23799. $as_echo "$ac_res" >&6; }
  23800. as_val=`eval 'as_val=${'$as_ac_var'}
  23801. $as_echo "$as_val"'`
  23802. if test "x$as_val" = x""yes; then
  23803. cat >>confdefs.h <<_ACEOF
  23804. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23805. _ACEOF
  23806. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  23807. $as_echo_n "checking for _doprnt... " >&6; }
  23808. if test "${ac_cv_func__doprnt+set}" = set; then
  23809. $as_echo_n "(cached) " >&6
  23810. else
  23811. cat >conftest.$ac_ext <<_ACEOF
  23812. /* confdefs.h. */
  23813. _ACEOF
  23814. cat confdefs.h >>conftest.$ac_ext
  23815. cat >>conftest.$ac_ext <<_ACEOF
  23816. /* end confdefs.h. */
  23817. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  23818. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23819. #define _doprnt innocuous__doprnt
  23820. /* System header to define __stub macros and hopefully few prototypes,
  23821. which can conflict with char _doprnt (); below.
  23822. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23823. <limits.h> exists even on freestanding compilers. */
  23824. #ifdef __STDC__
  23825. # include <limits.h>
  23826. #else
  23827. # include <assert.h>
  23828. #endif
  23829. #undef _doprnt
  23830. /* Override any GCC internal prototype to avoid an error.
  23831. Use char because int might match the return type of a GCC
  23832. builtin and then its argument prototype would still apply. */
  23833. #ifdef __cplusplus
  23834. extern "C"
  23835. #endif
  23836. char _doprnt ();
  23837. /* The GNU C library defines this for functions which it implements
  23838. to always fail with ENOSYS. Some functions are actually named
  23839. something starting with __ and the normal name is an alias. */
  23840. #if defined __stub__doprnt || defined __stub____doprnt
  23841. choke me
  23842. #endif
  23843. int
  23844. main ()
  23845. {
  23846. return _doprnt ();
  23847. ;
  23848. return 0;
  23849. }
  23850. _ACEOF
  23851. rm -f conftest.$ac_objext conftest$ac_exeext
  23852. if { (ac_try="$ac_link"
  23853. case "(($ac_try" in
  23854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23855. *) ac_try_echo=$ac_try;;
  23856. esac
  23857. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23858. $as_echo "$ac_try_echo") >&5
  23859. (eval "$ac_link") 2>conftest.er1
  23860. ac_status=$?
  23861. grep -v '^ *+' conftest.er1 >conftest.err
  23862. rm -f conftest.er1
  23863. cat conftest.err >&5
  23864. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23865. (exit $ac_status); } && {
  23866. test -z "$ac_c_werror_flag" ||
  23867. test ! -s conftest.err
  23868. } && test -s conftest$ac_exeext && {
  23869. test "$cross_compiling" = yes ||
  23870. $as_test_x conftest$ac_exeext
  23871. }; then
  23872. ac_cv_func__doprnt=yes
  23873. else
  23874. $as_echo "$as_me: failed program was:" >&5
  23875. sed 's/^/| /' conftest.$ac_ext >&5
  23876. ac_cv_func__doprnt=no
  23877. fi
  23878. rm -rf conftest.dSYM
  23879. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23880. conftest$ac_exeext conftest.$ac_ext
  23881. fi
  23882. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  23883. $as_echo "$ac_cv_func__doprnt" >&6; }
  23884. if test "x$ac_cv_func__doprnt" = x""yes; then
  23885. cat >>confdefs.h <<\_ACEOF
  23886. #define HAVE_DOPRNT 1
  23887. _ACEOF
  23888. fi
  23889. fi
  23890. done
  23891. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  23892. strrchr strsignal
  23893. do
  23894. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23895. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  23896. $as_echo_n "checking for $ac_func... " >&6; }
  23897. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  23898. $as_echo_n "(cached) " >&6
  23899. else
  23900. cat >conftest.$ac_ext <<_ACEOF
  23901. /* confdefs.h. */
  23902. _ACEOF
  23903. cat confdefs.h >>conftest.$ac_ext
  23904. cat >>conftest.$ac_ext <<_ACEOF
  23905. /* end confdefs.h. */
  23906. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23907. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23908. #define $ac_func innocuous_$ac_func
  23909. /* System header to define __stub macros and hopefully few prototypes,
  23910. which can conflict with char $ac_func (); below.
  23911. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23912. <limits.h> exists even on freestanding compilers. */
  23913. #ifdef __STDC__
  23914. # include <limits.h>
  23915. #else
  23916. # include <assert.h>
  23917. #endif
  23918. #undef $ac_func
  23919. /* Override any GCC internal prototype to avoid an error.
  23920. Use char because int might match the return type of a GCC
  23921. builtin and then its argument prototype would still apply. */
  23922. #ifdef __cplusplus
  23923. extern "C"
  23924. #endif
  23925. char $ac_func ();
  23926. /* The GNU C library defines this for functions which it implements
  23927. to always fail with ENOSYS. Some functions are actually named
  23928. something starting with __ and the normal name is an alias. */
  23929. #if defined __stub_$ac_func || defined __stub___$ac_func
  23930. choke me
  23931. #endif
  23932. int
  23933. main ()
  23934. {
  23935. return $ac_func ();
  23936. ;
  23937. return 0;
  23938. }
  23939. _ACEOF
  23940. rm -f conftest.$ac_objext conftest$ac_exeext
  23941. if { (ac_try="$ac_link"
  23942. case "(($ac_try" in
  23943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23944. *) ac_try_echo=$ac_try;;
  23945. esac
  23946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23947. $as_echo "$ac_try_echo") >&5
  23948. (eval "$ac_link") 2>conftest.er1
  23949. ac_status=$?
  23950. grep -v '^ *+' conftest.er1 >conftest.err
  23951. rm -f conftest.er1
  23952. cat conftest.err >&5
  23953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23954. (exit $ac_status); } && {
  23955. test -z "$ac_c_werror_flag" ||
  23956. test ! -s conftest.err
  23957. } && test -s conftest$ac_exeext && {
  23958. test "$cross_compiling" = yes ||
  23959. $as_test_x conftest$ac_exeext
  23960. }; then
  23961. eval "$as_ac_var=yes"
  23962. else
  23963. $as_echo "$as_me: failed program was:" >&5
  23964. sed 's/^/| /' conftest.$ac_ext >&5
  23965. eval "$as_ac_var=no"
  23966. fi
  23967. rm -rf conftest.dSYM
  23968. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23969. conftest$ac_exeext conftest.$ac_ext
  23970. fi
  23971. ac_res=`eval 'as_val=${'$as_ac_var'}
  23972. $as_echo "$as_val"'`
  23973. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23974. $as_echo "$ac_res" >&6; }
  23975. as_val=`eval 'as_val=${'$as_ac_var'}
  23976. $as_echo "$as_val"'`
  23977. if test "x$as_val" = x""yes; then
  23978. cat >>confdefs.h <<_ACEOF
  23979. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23980. _ACEOF
  23981. fi
  23982. done
  23983. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  23984. fi
  23985. # Check to see if a reg expr header is specified.
  23986. # Check whether --with-regex-header was given.
  23987. if test "${with_regex_header+set}" = set; then
  23988. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  23989. else
  23990. { $as_echo "$as_me:$LINENO: checking whether a reg expr header is specified" >&5
  23991. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  23992. if test "${libopts_cv_with_regex_header+set}" = set; then
  23993. $as_echo_n "(cached) " >&6
  23994. else
  23995. libopts_cv_with_regex_header=no
  23996. fi
  23997. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_regex_header" >&5
  23998. $as_echo "$libopts_cv_with_regex_header" >&6; }
  23999. fi
  24000. # end of AC_ARG_WITH
  24001. if test "X${libopts_cv_with_regex_header}" != Xno
  24002. then
  24003. cat >>confdefs.h <<_ACEOF
  24004. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  24005. _ACEOF
  24006. else
  24007. cat >>confdefs.h <<\_ACEOF
  24008. #define REGEX_HEADER <regex.h>
  24009. _ACEOF
  24010. fi
  24011. # Check to see if a working libregex can be found.
  24012. # Check whether --with-libregex was given.
  24013. if test "${with_libregex+set}" = set; then
  24014. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  24015. else
  24016. { $as_echo "$as_me:$LINENO: checking whether with-libregex was specified" >&5
  24017. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  24018. if test "${libopts_cv_with_libregex_root+set}" = set; then
  24019. $as_echo_n "(cached) " >&6
  24020. else
  24021. libopts_cv_with_libregex_root=no
  24022. fi
  24023. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_root" >&5
  24024. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  24025. fi
  24026. # end of AC_ARG_WITH libregex
  24027. if test "${with_libguile+set}" = set && \
  24028. test "${withval}" = no
  24029. then ## disabled by request
  24030. libopts_cv_with_libregex_root=no
  24031. libopts_cv_with_libregex_cflags=no
  24032. libopts_cv_with_libregex_libs=no
  24033. else
  24034. # Check whether --with-libregex-cflags was given.
  24035. if test "${with_libregex_cflags+set}" = set; then
  24036. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  24037. else
  24038. { $as_echo "$as_me:$LINENO: checking whether with-libregex-cflags was specified" >&5
  24039. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  24040. if test "${libopts_cv_with_libregex_cflags+set}" = set; then
  24041. $as_echo_n "(cached) " >&6
  24042. else
  24043. libopts_cv_with_libregex_cflags=no
  24044. fi
  24045. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_cflags" >&5
  24046. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  24047. fi
  24048. # end of AC_ARG_WITH libregex-cflags
  24049. # Check whether --with-libregex-libs was given.
  24050. if test "${with_libregex_libs+set}" = set; then
  24051. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  24052. else
  24053. { $as_echo "$as_me:$LINENO: checking whether with-libregex-libs was specified" >&5
  24054. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  24055. if test "${libopts_cv_with_libregex_libs+set}" = set; then
  24056. $as_echo_n "(cached) " >&6
  24057. else
  24058. libopts_cv_with_libregex_libs=no
  24059. fi
  24060. { $as_echo "$as_me:$LINENO: result: $libopts_cv_with_libregex_libs" >&5
  24061. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  24062. fi
  24063. # end of AC_ARG_WITH libregex-libs
  24064. case "X${libopts_cv_with_libregex_cflags}" in
  24065. Xyes|Xno|X )
  24066. case "X${libopts_cv_with_libregex_root}" in
  24067. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  24068. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  24069. esac
  24070. esac
  24071. case "X${libopts_cv_with_libregex_libs}" in
  24072. Xyes|Xno|X )
  24073. case "X${libopts_cv_with_libregex_root}" in
  24074. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  24075. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  24076. esac
  24077. esac
  24078. libopts_save_CPPFLAGS="${CPPFLAGS}"
  24079. libopts_save_LIBS="${LIBS}"
  24080. fi ## disabled by request
  24081. case "X${libopts_cv_with_libregex_cflags}" in
  24082. Xyes|Xno|X )
  24083. libopts_cv_with_libregex_cflags="" ;;
  24084. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  24085. esac
  24086. case "X${libopts_cv_with_libregex_libs}" in
  24087. Xyes|Xno|X )
  24088. libopts_cv_with_libregex_libs="" ;;
  24089. * )
  24090. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  24091. esac
  24092. LIBREGEX_CFLAGS=""
  24093. LIBREGEX_LIBS=""
  24094. { $as_echo "$as_me:$LINENO: checking whether libregex functions properly" >&5
  24095. $as_echo_n "checking whether libregex functions properly... " >&6; }
  24096. if test "${libopts_cv_with_libregex+set}" = set; then
  24097. $as_echo_n "(cached) " >&6
  24098. else
  24099. if test "$cross_compiling" = yes; then
  24100. libopts_cv_with_libregex=no
  24101. else
  24102. cat >conftest.$ac_ext <<_ACEOF
  24103. /* confdefs.h. */
  24104. _ACEOF
  24105. cat confdefs.h >>conftest.$ac_ext
  24106. cat >>conftest.$ac_ext <<_ACEOF
  24107. /* end confdefs.h. */
  24108. #include <stdio.h>
  24109. #include <stdlib.h>
  24110. #include <sys/types.h>
  24111. #include REGEX_HEADER
  24112. static regex_t re;
  24113. void comp_re( char const* pzPat ) {
  24114. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  24115. if (res == 0) return;
  24116. exit( res ); }
  24117. int main() {
  24118. regmatch_t m[2];
  24119. comp_re( "^.*\$" );
  24120. comp_re( "()|no.*" );
  24121. comp_re( "." );
  24122. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  24123. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  24124. fputs( "error: regex -->.<-- did not match\n", stderr );
  24125. return 1;
  24126. }
  24127. return 0; }
  24128. _ACEOF
  24129. rm -f conftest$ac_exeext
  24130. if { (ac_try="$ac_link"
  24131. case "(($ac_try" in
  24132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24133. *) ac_try_echo=$ac_try;;
  24134. esac
  24135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24136. $as_echo "$ac_try_echo") >&5
  24137. (eval "$ac_link") 2>&5
  24138. ac_status=$?
  24139. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24140. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24141. { (case "(($ac_try" in
  24142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24143. *) ac_try_echo=$ac_try;;
  24144. esac
  24145. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24146. $as_echo "$ac_try_echo") >&5
  24147. (eval "$ac_try") 2>&5
  24148. ac_status=$?
  24149. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24150. (exit $ac_status); }; }; then
  24151. libopts_cv_with_libregex=yes
  24152. else
  24153. $as_echo "$as_me: program exited with status $ac_status" >&5
  24154. $as_echo "$as_me: failed program was:" >&5
  24155. sed 's/^/| /' conftest.$ac_ext >&5
  24156. ( exit $ac_status )
  24157. libopts_cv_with_libregex=no
  24158. fi
  24159. rm -rf conftest.dSYM
  24160. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24161. fi
  24162. # end of AC_TRY_RUN
  24163. fi
  24164. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  24165. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_with_libregex}" >&5
  24166. $as_echo "${libopts_cv_with_libregex}" >&6; }
  24167. if test "X${libopts_cv_with_libregex}" != Xno
  24168. then
  24169. cat >>confdefs.h <<\_ACEOF
  24170. #define WITH_LIBREGEX 1
  24171. _ACEOF
  24172. else
  24173. CPPFLAGS="${libopts_save_CPPFLAGS}"
  24174. LIBS="${libopts_save_LIBS}"
  24175. fi
  24176. # Check to see if pathfind(3) works.
  24177. { $as_echo "$as_me:$LINENO: checking whether pathfind(3) works" >&5
  24178. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  24179. if test "${libopts_cv_run_pathfind+set}" = set; then
  24180. $as_echo_n "(cached) " >&6
  24181. else
  24182. if test "$cross_compiling" = yes; then
  24183. libopts_cv_run_pathfind=no
  24184. else
  24185. cat >conftest.$ac_ext <<_ACEOF
  24186. /* confdefs.h. */
  24187. _ACEOF
  24188. cat confdefs.h >>conftest.$ac_ext
  24189. cat >>conftest.$ac_ext <<_ACEOF
  24190. /* end confdefs.h. */
  24191. #include <string.h>
  24192. #include <stdlib.h>
  24193. int main (int argc, char** argv) {
  24194. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  24195. return (pz == 0) ? 1 : 0;
  24196. }
  24197. _ACEOF
  24198. rm -f conftest$ac_exeext
  24199. if { (ac_try="$ac_link"
  24200. case "(($ac_try" in
  24201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24202. *) ac_try_echo=$ac_try;;
  24203. esac
  24204. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24205. $as_echo "$ac_try_echo") >&5
  24206. (eval "$ac_link") 2>&5
  24207. ac_status=$?
  24208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24209. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24210. { (case "(($ac_try" in
  24211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24212. *) ac_try_echo=$ac_try;;
  24213. esac
  24214. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24215. $as_echo "$ac_try_echo") >&5
  24216. (eval "$ac_try") 2>&5
  24217. ac_status=$?
  24218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24219. (exit $ac_status); }; }; then
  24220. libopts_cv_run_pathfind=yes
  24221. else
  24222. $as_echo "$as_me: program exited with status $ac_status" >&5
  24223. $as_echo "$as_me: failed program was:" >&5
  24224. sed 's/^/| /' conftest.$ac_ext >&5
  24225. ( exit $ac_status )
  24226. libopts_cv_run_pathfind=no
  24227. fi
  24228. rm -rf conftest.dSYM
  24229. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24230. fi
  24231. # end of TRY_RUN
  24232. fi
  24233. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  24234. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_pathfind}" >&5
  24235. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  24236. if test "X${libopts_cv_run_pathfind}" != Xno
  24237. then
  24238. cat >>confdefs.h <<\_ACEOF
  24239. #define HAVE_PATHFIND 1
  24240. _ACEOF
  24241. fi
  24242. # Check to see if /dev/zero is readable device.
  24243. { $as_echo "$as_me:$LINENO: checking whether /dev/zero is readable device" >&5
  24244. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  24245. if test "${libopts_cv_test_dev_zero+set}" = set; then
  24246. $as_echo_n "(cached) " >&6
  24247. else
  24248. libopts_cv_test_dev_zero=`exec 2> /dev/null
  24249. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  24250. test -z "${dzero}" && exit 1
  24251. echo ${dzero}`
  24252. if test $? -ne 0
  24253. then libopts_cv_test_dev_zero=no
  24254. elif test -z "$libopts_cv_test_dev_zero"
  24255. then libopts_cv_test_dev_zero=no
  24256. fi
  24257. fi
  24258. # end of CACHE_VAL of libopts_cv_test_dev_zero
  24259. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_test_dev_zero}" >&5
  24260. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  24261. if test "X${libopts_cv_test_dev_zero}" != Xno
  24262. then
  24263. cat >>confdefs.h <<\_ACEOF
  24264. #define HAVE_DEV_ZERO 1
  24265. _ACEOF
  24266. fi
  24267. # Check to see if we have a functional realpath(3C).
  24268. { $as_echo "$as_me:$LINENO: checking whether we have a functional realpath(3C)" >&5
  24269. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  24270. if test "${libopts_cv_run_realpath+set}" = set; then
  24271. $as_echo_n "(cached) " >&6
  24272. else
  24273. if test "$cross_compiling" = yes; then
  24274. libopts_cv_run_realpath=no
  24275. else
  24276. cat >conftest.$ac_ext <<_ACEOF
  24277. /* confdefs.h. */
  24278. _ACEOF
  24279. cat confdefs.h >>conftest.$ac_ext
  24280. cat >>conftest.$ac_ext <<_ACEOF
  24281. /* end confdefs.h. */
  24282. #include <limits.h>
  24283. #include <stdlib.h>
  24284. int main (int argc, char** argv) {
  24285. #ifndef PATH_MAX
  24286. choke me!!
  24287. #else
  24288. char zPath[PATH_MAX+1];
  24289. #endif
  24290. char *pz = realpath(argv[0], zPath);
  24291. return (pz == zPath) ? 0 : 1;
  24292. }
  24293. _ACEOF
  24294. rm -f conftest$ac_exeext
  24295. if { (ac_try="$ac_link"
  24296. case "(($ac_try" in
  24297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24298. *) ac_try_echo=$ac_try;;
  24299. esac
  24300. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24301. $as_echo "$ac_try_echo") >&5
  24302. (eval "$ac_link") 2>&5
  24303. ac_status=$?
  24304. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24305. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24306. { (case "(($ac_try" in
  24307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24308. *) ac_try_echo=$ac_try;;
  24309. esac
  24310. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24311. $as_echo "$ac_try_echo") >&5
  24312. (eval "$ac_try") 2>&5
  24313. ac_status=$?
  24314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24315. (exit $ac_status); }; }; then
  24316. libopts_cv_run_realpath=yes
  24317. else
  24318. $as_echo "$as_me: program exited with status $ac_status" >&5
  24319. $as_echo "$as_me: failed program was:" >&5
  24320. sed 's/^/| /' conftest.$ac_ext >&5
  24321. ( exit $ac_status )
  24322. libopts_cv_run_realpath=no
  24323. fi
  24324. rm -rf conftest.dSYM
  24325. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24326. fi
  24327. # end of TRY_RUN
  24328. fi
  24329. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  24330. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_realpath}" >&5
  24331. $as_echo "${libopts_cv_run_realpath}" >&6; }
  24332. if test "X${libopts_cv_run_realpath}" != Xno
  24333. then
  24334. cat >>confdefs.h <<\_ACEOF
  24335. #define HAVE_REALPATH 1
  24336. _ACEOF
  24337. fi
  24338. # Check to see if strftime() works.
  24339. { $as_echo "$as_me:$LINENO: checking whether strftime() works" >&5
  24340. $as_echo_n "checking whether strftime() works... " >&6; }
  24341. if test "${libopts_cv_run_strftime+set}" = set; then
  24342. $as_echo_n "(cached) " >&6
  24343. else
  24344. if test "$cross_compiling" = yes; then
  24345. libopts_cv_run_strftime=no
  24346. else
  24347. cat >conftest.$ac_ext <<_ACEOF
  24348. /* confdefs.h. */
  24349. _ACEOF
  24350. cat confdefs.h >>conftest.$ac_ext
  24351. cat >>conftest.$ac_ext <<_ACEOF
  24352. /* end confdefs.h. */
  24353. #include <time.h>
  24354. #include <string.h>
  24355. char t_buf[ 64 ];
  24356. int main() {
  24357. static char const z[] = "Thursday Aug 28 240";
  24358. struct tm tm;
  24359. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  24360. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  24361. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  24362. tm.tm_mday = 28; /* day of the month [1, 31] */
  24363. tm.tm_mon = 7; /* months since January [0, 11] */
  24364. tm.tm_year = 86; /* years since 1900 */
  24365. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  24366. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  24367. tm.tm_isdst = 1; /* flag for daylight savings time */
  24368. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  24369. return (strcmp( t_buf, z ) != 0); }
  24370. _ACEOF
  24371. rm -f conftest$ac_exeext
  24372. if { (ac_try="$ac_link"
  24373. case "(($ac_try" in
  24374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24375. *) ac_try_echo=$ac_try;;
  24376. esac
  24377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24378. $as_echo "$ac_try_echo") >&5
  24379. (eval "$ac_link") 2>&5
  24380. ac_status=$?
  24381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24382. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24383. { (case "(($ac_try" in
  24384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24385. *) ac_try_echo=$ac_try;;
  24386. esac
  24387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24388. $as_echo "$ac_try_echo") >&5
  24389. (eval "$ac_try") 2>&5
  24390. ac_status=$?
  24391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24392. (exit $ac_status); }; }; then
  24393. libopts_cv_run_strftime=yes
  24394. else
  24395. $as_echo "$as_me: program exited with status $ac_status" >&5
  24396. $as_echo "$as_me: failed program was:" >&5
  24397. sed 's/^/| /' conftest.$ac_ext >&5
  24398. ( exit $ac_status )
  24399. libopts_cv_run_strftime=no
  24400. fi
  24401. rm -rf conftest.dSYM
  24402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24403. fi
  24404. # end of TRY_RUN
  24405. fi
  24406. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  24407. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_strftime}" >&5
  24408. $as_echo "${libopts_cv_run_strftime}" >&6; }
  24409. if test "X${libopts_cv_run_strftime}" != Xno
  24410. then
  24411. cat >>confdefs.h <<\_ACEOF
  24412. #define HAVE_STRFTIME 1
  24413. _ACEOF
  24414. fi
  24415. # Check to see if fopen accepts "b" mode.
  24416. { $as_echo "$as_me:$LINENO: checking whether fopen accepts \"b\" mode" >&5
  24417. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  24418. if test "${libopts_cv_run_fopen_binary+set}" = set; then
  24419. $as_echo_n "(cached) " >&6
  24420. else
  24421. if test "$cross_compiling" = yes; then
  24422. libopts_cv_run_fopen_binary=no
  24423. else
  24424. cat >conftest.$ac_ext <<_ACEOF
  24425. /* confdefs.h. */
  24426. _ACEOF
  24427. cat confdefs.h >>conftest.$ac_ext
  24428. cat >>conftest.$ac_ext <<_ACEOF
  24429. /* end confdefs.h. */
  24430. #include <stdio.h>
  24431. int main (int argc, char** argv) {
  24432. FILE* fp = fopen("conftest.$ac_ext", "rb");
  24433. return (fp == NULL) ? 1 : fclose(fp); }
  24434. _ACEOF
  24435. rm -f conftest$ac_exeext
  24436. if { (ac_try="$ac_link"
  24437. case "(($ac_try" in
  24438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24439. *) ac_try_echo=$ac_try;;
  24440. esac
  24441. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24442. $as_echo "$ac_try_echo") >&5
  24443. (eval "$ac_link") 2>&5
  24444. ac_status=$?
  24445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24446. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24447. { (case "(($ac_try" in
  24448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24449. *) ac_try_echo=$ac_try;;
  24450. esac
  24451. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24452. $as_echo "$ac_try_echo") >&5
  24453. (eval "$ac_try") 2>&5
  24454. ac_status=$?
  24455. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24456. (exit $ac_status); }; }; then
  24457. libopts_cv_run_fopen_binary=yes
  24458. else
  24459. $as_echo "$as_me: program exited with status $ac_status" >&5
  24460. $as_echo "$as_me: failed program was:" >&5
  24461. sed 's/^/| /' conftest.$ac_ext >&5
  24462. ( exit $ac_status )
  24463. libopts_cv_run_fopen_binary=no
  24464. fi
  24465. rm -rf conftest.dSYM
  24466. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24467. fi
  24468. # end of TRY_RUN
  24469. fi
  24470. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  24471. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_binary}" >&5
  24472. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  24473. if test "X${libopts_cv_run_fopen_binary}" != Xno
  24474. then
  24475. cat >>confdefs.h <<\_ACEOF
  24476. #define FOPEN_BINARY_FLAG "b"
  24477. _ACEOF
  24478. else
  24479. cat >>confdefs.h <<\_ACEOF
  24480. #define FOPEN_BINARY_FLAG ""
  24481. _ACEOF
  24482. fi
  24483. # Check to see if fopen accepts "t" mode.
  24484. { $as_echo "$as_me:$LINENO: checking whether fopen accepts \"t\" mode" >&5
  24485. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  24486. if test "${libopts_cv_run_fopen_text+set}" = set; then
  24487. $as_echo_n "(cached) " >&6
  24488. else
  24489. if test "$cross_compiling" = yes; then
  24490. libopts_cv_run_fopen_text=no
  24491. else
  24492. cat >conftest.$ac_ext <<_ACEOF
  24493. /* confdefs.h. */
  24494. _ACEOF
  24495. cat confdefs.h >>conftest.$ac_ext
  24496. cat >>conftest.$ac_ext <<_ACEOF
  24497. /* end confdefs.h. */
  24498. #include <stdio.h>
  24499. int main (int argc, char** argv) {
  24500. FILE* fp = fopen("conftest.$ac_ext", "rt");
  24501. return (fp == NULL) ? 1 : fclose(fp); }
  24502. _ACEOF
  24503. rm -f conftest$ac_exeext
  24504. if { (ac_try="$ac_link"
  24505. case "(($ac_try" in
  24506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24507. *) ac_try_echo=$ac_try;;
  24508. esac
  24509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24510. $as_echo "$ac_try_echo") >&5
  24511. (eval "$ac_link") 2>&5
  24512. ac_status=$?
  24513. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24514. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24515. { (case "(($ac_try" in
  24516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24517. *) ac_try_echo=$ac_try;;
  24518. esac
  24519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24520. $as_echo "$ac_try_echo") >&5
  24521. (eval "$ac_try") 2>&5
  24522. ac_status=$?
  24523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24524. (exit $ac_status); }; }; then
  24525. libopts_cv_run_fopen_text=yes
  24526. else
  24527. $as_echo "$as_me: program exited with status $ac_status" >&5
  24528. $as_echo "$as_me: failed program was:" >&5
  24529. sed 's/^/| /' conftest.$ac_ext >&5
  24530. ( exit $ac_status )
  24531. libopts_cv_run_fopen_text=no
  24532. fi
  24533. rm -rf conftest.dSYM
  24534. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24535. fi
  24536. # end of TRY_RUN
  24537. fi
  24538. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  24539. { $as_echo "$as_me:$LINENO: result: ${libopts_cv_run_fopen_text}" >&5
  24540. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  24541. if test "X${libopts_cv_run_fopen_text}" != Xno
  24542. then
  24543. cat >>confdefs.h <<\_ACEOF
  24544. #define FOPEN_TEXT_FLAG "t"
  24545. _ACEOF
  24546. else
  24547. cat >>confdefs.h <<\_ACEOF
  24548. #define FOPEN_TEXT_FLAG ""
  24549. _ACEOF
  24550. fi
  24551. # Check to see if not wanting optional option args.
  24552. # Check whether --enable-optional-args was given.
  24553. if test "${enable_optional_args+set}" = set; then
  24554. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  24555. else
  24556. { $as_echo "$as_me:$LINENO: checking whether not wanting optional option args" >&5
  24557. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  24558. if test "${libopts_cv_enable_optional_args+set}" = set; then
  24559. $as_echo_n "(cached) " >&6
  24560. else
  24561. libopts_cv_enable_optional_args=yes
  24562. fi
  24563. { $as_echo "$as_me:$LINENO: result: $libopts_cv_enable_optional_args" >&5
  24564. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  24565. fi
  24566. # end of AC_ARG_ENABLE
  24567. if test "X${libopts_cv_enable_optional_args}" = Xno
  24568. then
  24569. cat >>confdefs.h <<\_ACEOF
  24570. #define NO_OPTIONAL_OPT_ARGS 1
  24571. _ACEOF
  24572. fi
  24573. else
  24574. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  24575. # =================
  24576. # AC_HEADER_STDC
  24577. # =================
  24578. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  24579. $as_echo_n "checking for ANSI C header files... " >&6; }
  24580. if test "${ac_cv_header_stdc+set}" = set; then
  24581. $as_echo_n "(cached) " >&6
  24582. else
  24583. cat >conftest.$ac_ext <<_ACEOF
  24584. /* confdefs.h. */
  24585. _ACEOF
  24586. cat confdefs.h >>conftest.$ac_ext
  24587. cat >>conftest.$ac_ext <<_ACEOF
  24588. /* end confdefs.h. */
  24589. #include <stdlib.h>
  24590. #include <stdarg.h>
  24591. #include <string.h>
  24592. #include <float.h>
  24593. int
  24594. main ()
  24595. {
  24596. ;
  24597. return 0;
  24598. }
  24599. _ACEOF
  24600. rm -f conftest.$ac_objext
  24601. if { (ac_try="$ac_compile"
  24602. case "(($ac_try" in
  24603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24604. *) ac_try_echo=$ac_try;;
  24605. esac
  24606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24607. $as_echo "$ac_try_echo") >&5
  24608. (eval "$ac_compile") 2>conftest.er1
  24609. ac_status=$?
  24610. grep -v '^ *+' conftest.er1 >conftest.err
  24611. rm -f conftest.er1
  24612. cat conftest.err >&5
  24613. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24614. (exit $ac_status); } && {
  24615. test -z "$ac_c_werror_flag" ||
  24616. test ! -s conftest.err
  24617. } && test -s conftest.$ac_objext; then
  24618. ac_cv_header_stdc=yes
  24619. else
  24620. $as_echo "$as_me: failed program was:" >&5
  24621. sed 's/^/| /' conftest.$ac_ext >&5
  24622. ac_cv_header_stdc=no
  24623. fi
  24624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24625. if test $ac_cv_header_stdc = yes; then
  24626. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  24627. cat >conftest.$ac_ext <<_ACEOF
  24628. /* confdefs.h. */
  24629. _ACEOF
  24630. cat confdefs.h >>conftest.$ac_ext
  24631. cat >>conftest.$ac_ext <<_ACEOF
  24632. /* end confdefs.h. */
  24633. #include <string.h>
  24634. _ACEOF
  24635. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24636. $EGREP "memchr" >/dev/null 2>&1; then
  24637. :
  24638. else
  24639. ac_cv_header_stdc=no
  24640. fi
  24641. rm -f conftest*
  24642. fi
  24643. if test $ac_cv_header_stdc = yes; then
  24644. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  24645. cat >conftest.$ac_ext <<_ACEOF
  24646. /* confdefs.h. */
  24647. _ACEOF
  24648. cat confdefs.h >>conftest.$ac_ext
  24649. cat >>conftest.$ac_ext <<_ACEOF
  24650. /* end confdefs.h. */
  24651. #include <stdlib.h>
  24652. _ACEOF
  24653. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24654. $EGREP "free" >/dev/null 2>&1; then
  24655. :
  24656. else
  24657. ac_cv_header_stdc=no
  24658. fi
  24659. rm -f conftest*
  24660. fi
  24661. if test $ac_cv_header_stdc = yes; then
  24662. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  24663. if test "$cross_compiling" = yes; then
  24664. :
  24665. else
  24666. cat >conftest.$ac_ext <<_ACEOF
  24667. /* confdefs.h. */
  24668. _ACEOF
  24669. cat confdefs.h >>conftest.$ac_ext
  24670. cat >>conftest.$ac_ext <<_ACEOF
  24671. /* end confdefs.h. */
  24672. #include <ctype.h>
  24673. #include <stdlib.h>
  24674. #if ((' ' & 0x0FF) == 0x020)
  24675. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  24676. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  24677. #else
  24678. # define ISLOWER(c) \
  24679. (('a' <= (c) && (c) <= 'i') \
  24680. || ('j' <= (c) && (c) <= 'r') \
  24681. || ('s' <= (c) && (c) <= 'z'))
  24682. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  24683. #endif
  24684. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  24685. int
  24686. main ()
  24687. {
  24688. int i;
  24689. for (i = 0; i < 256; i++)
  24690. if (XOR (islower (i), ISLOWER (i))
  24691. || toupper (i) != TOUPPER (i))
  24692. return 2;
  24693. return 0;
  24694. }
  24695. _ACEOF
  24696. rm -f conftest$ac_exeext
  24697. if { (ac_try="$ac_link"
  24698. case "(($ac_try" in
  24699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24700. *) ac_try_echo=$ac_try;;
  24701. esac
  24702. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24703. $as_echo "$ac_try_echo") >&5
  24704. (eval "$ac_link") 2>&5
  24705. ac_status=$?
  24706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24707. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  24708. { (case "(($ac_try" in
  24709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24710. *) ac_try_echo=$ac_try;;
  24711. esac
  24712. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24713. $as_echo "$ac_try_echo") >&5
  24714. (eval "$ac_try") 2>&5
  24715. ac_status=$?
  24716. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24717. (exit $ac_status); }; }; then
  24718. :
  24719. else
  24720. $as_echo "$as_me: program exited with status $ac_status" >&5
  24721. $as_echo "$as_me: failed program was:" >&5
  24722. sed 's/^/| /' conftest.$ac_ext >&5
  24723. ( exit $ac_status )
  24724. ac_cv_header_stdc=no
  24725. fi
  24726. rm -rf conftest.dSYM
  24727. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  24728. fi
  24729. fi
  24730. fi
  24731. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  24732. $as_echo "$ac_cv_header_stdc" >&6; }
  24733. if test $ac_cv_header_stdc = yes; then
  24734. cat >>confdefs.h <<\_ACEOF
  24735. #define STDC_HEADERS 1
  24736. _ACEOF
  24737. fi
  24738. # =================
  24739. # AC_HEADER_DIRENT
  24740. # =================
  24741. ac_header_dirent=no
  24742. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  24743. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  24744. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  24745. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  24746. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24747. $as_echo_n "(cached) " >&6
  24748. else
  24749. cat >conftest.$ac_ext <<_ACEOF
  24750. /* confdefs.h. */
  24751. _ACEOF
  24752. cat confdefs.h >>conftest.$ac_ext
  24753. cat >>conftest.$ac_ext <<_ACEOF
  24754. /* end confdefs.h. */
  24755. #include <sys/types.h>
  24756. #include <$ac_hdr>
  24757. int
  24758. main ()
  24759. {
  24760. if ((DIR *) 0)
  24761. return 0;
  24762. ;
  24763. return 0;
  24764. }
  24765. _ACEOF
  24766. rm -f conftest.$ac_objext
  24767. if { (ac_try="$ac_compile"
  24768. case "(($ac_try" in
  24769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24770. *) ac_try_echo=$ac_try;;
  24771. esac
  24772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24773. $as_echo "$ac_try_echo") >&5
  24774. (eval "$ac_compile") 2>conftest.er1
  24775. ac_status=$?
  24776. grep -v '^ *+' conftest.er1 >conftest.err
  24777. rm -f conftest.er1
  24778. cat conftest.err >&5
  24779. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24780. (exit $ac_status); } && {
  24781. test -z "$ac_c_werror_flag" ||
  24782. test ! -s conftest.err
  24783. } && test -s conftest.$ac_objext; then
  24784. eval "$as_ac_Header=yes"
  24785. else
  24786. $as_echo "$as_me: failed program was:" >&5
  24787. sed 's/^/| /' conftest.$ac_ext >&5
  24788. eval "$as_ac_Header=no"
  24789. fi
  24790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24791. fi
  24792. ac_res=`eval 'as_val=${'$as_ac_Header'}
  24793. $as_echo "$as_val"'`
  24794. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24795. $as_echo "$ac_res" >&6; }
  24796. as_val=`eval 'as_val=${'$as_ac_Header'}
  24797. $as_echo "$as_val"'`
  24798. if test "x$as_val" = x""yes; then
  24799. cat >>confdefs.h <<_ACEOF
  24800. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  24801. _ACEOF
  24802. ac_header_dirent=$ac_hdr; break
  24803. fi
  24804. done
  24805. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  24806. if test $ac_header_dirent = dirent.h; then
  24807. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24808. $as_echo_n "checking for library containing opendir... " >&6; }
  24809. if test "${ac_cv_search_opendir+set}" = set; then
  24810. $as_echo_n "(cached) " >&6
  24811. else
  24812. ac_func_search_save_LIBS=$LIBS
  24813. cat >conftest.$ac_ext <<_ACEOF
  24814. /* confdefs.h. */
  24815. _ACEOF
  24816. cat confdefs.h >>conftest.$ac_ext
  24817. cat >>conftest.$ac_ext <<_ACEOF
  24818. /* end confdefs.h. */
  24819. /* Override any GCC internal prototype to avoid an error.
  24820. Use char because int might match the return type of a GCC
  24821. builtin and then its argument prototype would still apply. */
  24822. #ifdef __cplusplus
  24823. extern "C"
  24824. #endif
  24825. char opendir ();
  24826. int
  24827. main ()
  24828. {
  24829. return opendir ();
  24830. ;
  24831. return 0;
  24832. }
  24833. _ACEOF
  24834. for ac_lib in '' dir; do
  24835. if test -z "$ac_lib"; then
  24836. ac_res="none required"
  24837. else
  24838. ac_res=-l$ac_lib
  24839. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24840. fi
  24841. rm -f conftest.$ac_objext conftest$ac_exeext
  24842. if { (ac_try="$ac_link"
  24843. case "(($ac_try" in
  24844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24845. *) ac_try_echo=$ac_try;;
  24846. esac
  24847. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24848. $as_echo "$ac_try_echo") >&5
  24849. (eval "$ac_link") 2>conftest.er1
  24850. ac_status=$?
  24851. grep -v '^ *+' conftest.er1 >conftest.err
  24852. rm -f conftest.er1
  24853. cat conftest.err >&5
  24854. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24855. (exit $ac_status); } && {
  24856. test -z "$ac_c_werror_flag" ||
  24857. test ! -s conftest.err
  24858. } && test -s conftest$ac_exeext && {
  24859. test "$cross_compiling" = yes ||
  24860. $as_test_x conftest$ac_exeext
  24861. }; then
  24862. ac_cv_search_opendir=$ac_res
  24863. else
  24864. $as_echo "$as_me: failed program was:" >&5
  24865. sed 's/^/| /' conftest.$ac_ext >&5
  24866. fi
  24867. rm -rf conftest.dSYM
  24868. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24869. conftest$ac_exeext
  24870. if test "${ac_cv_search_opendir+set}" = set; then
  24871. break
  24872. fi
  24873. done
  24874. if test "${ac_cv_search_opendir+set}" = set; then
  24875. :
  24876. else
  24877. ac_cv_search_opendir=no
  24878. fi
  24879. rm conftest.$ac_ext
  24880. LIBS=$ac_func_search_save_LIBS
  24881. fi
  24882. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24883. $as_echo "$ac_cv_search_opendir" >&6; }
  24884. ac_res=$ac_cv_search_opendir
  24885. if test "$ac_res" != no; then
  24886. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24887. fi
  24888. else
  24889. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  24890. $as_echo_n "checking for library containing opendir... " >&6; }
  24891. if test "${ac_cv_search_opendir+set}" = set; then
  24892. $as_echo_n "(cached) " >&6
  24893. else
  24894. ac_func_search_save_LIBS=$LIBS
  24895. cat >conftest.$ac_ext <<_ACEOF
  24896. /* confdefs.h. */
  24897. _ACEOF
  24898. cat confdefs.h >>conftest.$ac_ext
  24899. cat >>conftest.$ac_ext <<_ACEOF
  24900. /* end confdefs.h. */
  24901. /* Override any GCC internal prototype to avoid an error.
  24902. Use char because int might match the return type of a GCC
  24903. builtin and then its argument prototype would still apply. */
  24904. #ifdef __cplusplus
  24905. extern "C"
  24906. #endif
  24907. char opendir ();
  24908. int
  24909. main ()
  24910. {
  24911. return opendir ();
  24912. ;
  24913. return 0;
  24914. }
  24915. _ACEOF
  24916. for ac_lib in '' x; do
  24917. if test -z "$ac_lib"; then
  24918. ac_res="none required"
  24919. else
  24920. ac_res=-l$ac_lib
  24921. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  24922. fi
  24923. rm -f conftest.$ac_objext conftest$ac_exeext
  24924. if { (ac_try="$ac_link"
  24925. case "(($ac_try" in
  24926. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24927. *) ac_try_echo=$ac_try;;
  24928. esac
  24929. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24930. $as_echo "$ac_try_echo") >&5
  24931. (eval "$ac_link") 2>conftest.er1
  24932. ac_status=$?
  24933. grep -v '^ *+' conftest.er1 >conftest.err
  24934. rm -f conftest.er1
  24935. cat conftest.err >&5
  24936. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24937. (exit $ac_status); } && {
  24938. test -z "$ac_c_werror_flag" ||
  24939. test ! -s conftest.err
  24940. } && test -s conftest$ac_exeext && {
  24941. test "$cross_compiling" = yes ||
  24942. $as_test_x conftest$ac_exeext
  24943. }; then
  24944. ac_cv_search_opendir=$ac_res
  24945. else
  24946. $as_echo "$as_me: failed program was:" >&5
  24947. sed 's/^/| /' conftest.$ac_ext >&5
  24948. fi
  24949. rm -rf conftest.dSYM
  24950. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24951. conftest$ac_exeext
  24952. if test "${ac_cv_search_opendir+set}" = set; then
  24953. break
  24954. fi
  24955. done
  24956. if test "${ac_cv_search_opendir+set}" = set; then
  24957. :
  24958. else
  24959. ac_cv_search_opendir=no
  24960. fi
  24961. rm conftest.$ac_ext
  24962. LIBS=$ac_func_search_save_LIBS
  24963. fi
  24964. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  24965. $as_echo "$ac_cv_search_opendir" >&6; }
  24966. ac_res=$ac_cv_search_opendir
  24967. if test "$ac_res" != no; then
  24968. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  24969. fi
  24970. fi
  24971. # =================
  24972. # AC_CHECK_HEADERS
  24973. # =================
  24974. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  24975. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  24976. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  24977. utime.h sysexits.h
  24978. do
  24979. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24980. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24981. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  24982. $as_echo_n "checking for $ac_header... " >&6; }
  24983. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24984. $as_echo_n "(cached) " >&6
  24985. fi
  24986. ac_res=`eval 'as_val=${'$as_ac_Header'}
  24987. $as_echo "$as_val"'`
  24988. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24989. $as_echo "$ac_res" >&6; }
  24990. else
  24991. # Is the header compilable?
  24992. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24993. $as_echo_n "checking $ac_header usability... " >&6; }
  24994. cat >conftest.$ac_ext <<_ACEOF
  24995. /* confdefs.h. */
  24996. _ACEOF
  24997. cat confdefs.h >>conftest.$ac_ext
  24998. cat >>conftest.$ac_ext <<_ACEOF
  24999. /* end confdefs.h. */
  25000. $ac_includes_default
  25001. #include <$ac_header>
  25002. _ACEOF
  25003. rm -f conftest.$ac_objext
  25004. if { (ac_try="$ac_compile"
  25005. case "(($ac_try" in
  25006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25007. *) ac_try_echo=$ac_try;;
  25008. esac
  25009. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25010. $as_echo "$ac_try_echo") >&5
  25011. (eval "$ac_compile") 2>conftest.er1
  25012. ac_status=$?
  25013. grep -v '^ *+' conftest.er1 >conftest.err
  25014. rm -f conftest.er1
  25015. cat conftest.err >&5
  25016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25017. (exit $ac_status); } && {
  25018. test -z "$ac_c_werror_flag" ||
  25019. test ! -s conftest.err
  25020. } && test -s conftest.$ac_objext; then
  25021. ac_header_compiler=yes
  25022. else
  25023. $as_echo "$as_me: failed program was:" >&5
  25024. sed 's/^/| /' conftest.$ac_ext >&5
  25025. ac_header_compiler=no
  25026. fi
  25027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25028. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25029. $as_echo "$ac_header_compiler" >&6; }
  25030. # Is the header present?
  25031. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25032. $as_echo_n "checking $ac_header presence... " >&6; }
  25033. cat >conftest.$ac_ext <<_ACEOF
  25034. /* confdefs.h. */
  25035. _ACEOF
  25036. cat confdefs.h >>conftest.$ac_ext
  25037. cat >>conftest.$ac_ext <<_ACEOF
  25038. /* end confdefs.h. */
  25039. #include <$ac_header>
  25040. _ACEOF
  25041. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25042. case "(($ac_try" in
  25043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25044. *) ac_try_echo=$ac_try;;
  25045. esac
  25046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25047. $as_echo "$ac_try_echo") >&5
  25048. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25049. ac_status=$?
  25050. grep -v '^ *+' conftest.er1 >conftest.err
  25051. rm -f conftest.er1
  25052. cat conftest.err >&5
  25053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25054. (exit $ac_status); } >/dev/null && {
  25055. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25056. test ! -s conftest.err
  25057. }; then
  25058. ac_header_preproc=yes
  25059. else
  25060. $as_echo "$as_me: failed program was:" >&5
  25061. sed 's/^/| /' conftest.$ac_ext >&5
  25062. ac_header_preproc=no
  25063. fi
  25064. rm -f conftest.err conftest.$ac_ext
  25065. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25066. $as_echo "$ac_header_preproc" >&6; }
  25067. # So? What about this header?
  25068. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25069. yes:no: )
  25070. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25071. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25072. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25073. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25074. ac_header_preproc=yes
  25075. ;;
  25076. no:yes:* )
  25077. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25078. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25079. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25080. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25081. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25082. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25083. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25084. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25085. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25086. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25087. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25088. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25089. ;;
  25090. esac
  25091. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25092. $as_echo_n "checking for $ac_header... " >&6; }
  25093. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25094. $as_echo_n "(cached) " >&6
  25095. else
  25096. eval "$as_ac_Header=\$ac_header_preproc"
  25097. fi
  25098. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25099. $as_echo "$as_val"'`
  25100. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25101. $as_echo "$ac_res" >&6; }
  25102. fi
  25103. as_val=`eval 'as_val=${'$as_ac_Header'}
  25104. $as_echo "$as_val"'`
  25105. if test "x$as_val" = x""yes; then
  25106. cat >>confdefs.h <<_ACEOF
  25107. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25108. _ACEOF
  25109. fi
  25110. done
  25111. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  25112. $as_echo_n "checking for size_t... " >&6; }
  25113. if test "${ac_cv_type_size_t+set}" = set; then
  25114. $as_echo_n "(cached) " >&6
  25115. else
  25116. ac_cv_type_size_t=no
  25117. cat >conftest.$ac_ext <<_ACEOF
  25118. /* confdefs.h. */
  25119. _ACEOF
  25120. cat confdefs.h >>conftest.$ac_ext
  25121. cat >>conftest.$ac_ext <<_ACEOF
  25122. /* end confdefs.h. */
  25123. $ac_includes_default
  25124. int
  25125. main ()
  25126. {
  25127. if (sizeof (size_t))
  25128. return 0;
  25129. ;
  25130. return 0;
  25131. }
  25132. _ACEOF
  25133. rm -f conftest.$ac_objext
  25134. if { (ac_try="$ac_compile"
  25135. case "(($ac_try" in
  25136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25137. *) ac_try_echo=$ac_try;;
  25138. esac
  25139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25140. $as_echo "$ac_try_echo") >&5
  25141. (eval "$ac_compile") 2>conftest.er1
  25142. ac_status=$?
  25143. grep -v '^ *+' conftest.er1 >conftest.err
  25144. rm -f conftest.er1
  25145. cat conftest.err >&5
  25146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25147. (exit $ac_status); } && {
  25148. test -z "$ac_c_werror_flag" ||
  25149. test ! -s conftest.err
  25150. } && test -s conftest.$ac_objext; then
  25151. cat >conftest.$ac_ext <<_ACEOF
  25152. /* confdefs.h. */
  25153. _ACEOF
  25154. cat confdefs.h >>conftest.$ac_ext
  25155. cat >>conftest.$ac_ext <<_ACEOF
  25156. /* end confdefs.h. */
  25157. $ac_includes_default
  25158. int
  25159. main ()
  25160. {
  25161. if (sizeof ((size_t)))
  25162. return 0;
  25163. ;
  25164. return 0;
  25165. }
  25166. _ACEOF
  25167. rm -f conftest.$ac_objext
  25168. if { (ac_try="$ac_compile"
  25169. case "(($ac_try" in
  25170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25171. *) ac_try_echo=$ac_try;;
  25172. esac
  25173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25174. $as_echo "$ac_try_echo") >&5
  25175. (eval "$ac_compile") 2>conftest.er1
  25176. ac_status=$?
  25177. grep -v '^ *+' conftest.er1 >conftest.err
  25178. rm -f conftest.er1
  25179. cat conftest.err >&5
  25180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25181. (exit $ac_status); } && {
  25182. test -z "$ac_c_werror_flag" ||
  25183. test ! -s conftest.err
  25184. } && test -s conftest.$ac_objext; then
  25185. :
  25186. else
  25187. $as_echo "$as_me: failed program was:" >&5
  25188. sed 's/^/| /' conftest.$ac_ext >&5
  25189. ac_cv_type_size_t=yes
  25190. fi
  25191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25192. else
  25193. $as_echo "$as_me: failed program was:" >&5
  25194. sed 's/^/| /' conftest.$ac_ext >&5
  25195. fi
  25196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25197. fi
  25198. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  25199. $as_echo "$ac_cv_type_size_t" >&6; }
  25200. if test "x$ac_cv_type_size_t" = x""yes; then
  25201. cat >>confdefs.h <<_ACEOF
  25202. #define HAVE_SIZE_T 1
  25203. _ACEOF
  25204. fi
  25205. # ----------------------------------------------------------------------
  25206. # check for various programs used during the build.
  25207. # On OS/X, "wchar.h" needs "runetype.h" to work properly.
  25208. # ----------------------------------------------------------------------
  25209. for ac_header in runetype.h wchar.h
  25210. do
  25211. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25212. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25213. $as_echo_n "checking for $ac_header... " >&6; }
  25214. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25215. $as_echo_n "(cached) " >&6
  25216. else
  25217. cat >conftest.$ac_ext <<_ACEOF
  25218. /* confdefs.h. */
  25219. _ACEOF
  25220. cat confdefs.h >>conftest.$ac_ext
  25221. cat >>conftest.$ac_ext <<_ACEOF
  25222. /* end confdefs.h. */
  25223. $ac_includes_default
  25224. #if HAVE_RUNETYPE_H
  25225. # include <runetype.h>
  25226. #endif
  25227. #include <$ac_header>
  25228. _ACEOF
  25229. rm -f conftest.$ac_objext
  25230. if { (ac_try="$ac_compile"
  25231. case "(($ac_try" in
  25232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25233. *) ac_try_echo=$ac_try;;
  25234. esac
  25235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25236. $as_echo "$ac_try_echo") >&5
  25237. (eval "$ac_compile") 2>conftest.er1
  25238. ac_status=$?
  25239. grep -v '^ *+' conftest.er1 >conftest.err
  25240. rm -f conftest.er1
  25241. cat conftest.err >&5
  25242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25243. (exit $ac_status); } && {
  25244. test -z "$ac_c_werror_flag" ||
  25245. test ! -s conftest.err
  25246. } && test -s conftest.$ac_objext; then
  25247. eval "$as_ac_Header=yes"
  25248. else
  25249. $as_echo "$as_me: failed program was:" >&5
  25250. sed 's/^/| /' conftest.$ac_ext >&5
  25251. eval "$as_ac_Header=no"
  25252. fi
  25253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25254. fi
  25255. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25256. $as_echo "$as_val"'`
  25257. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25258. $as_echo "$ac_res" >&6; }
  25259. as_val=`eval 'as_val=${'$as_ac_Header'}
  25260. $as_echo "$as_val"'`
  25261. if test "x$as_val" = x""yes; then
  25262. cat >>confdefs.h <<_ACEOF
  25263. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25264. _ACEOF
  25265. fi
  25266. done
  25267. # ----------------------------------------------------------------------
  25268. # Checks for typedefs
  25269. # ----------------------------------------------------------------------
  25270. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  25271. $as_echo_n "checking for wchar_t... " >&6; }
  25272. if test "${ac_cv_type_wchar_t+set}" = set; then
  25273. $as_echo_n "(cached) " >&6
  25274. else
  25275. ac_cv_type_wchar_t=no
  25276. cat >conftest.$ac_ext <<_ACEOF
  25277. /* confdefs.h. */
  25278. _ACEOF
  25279. cat confdefs.h >>conftest.$ac_ext
  25280. cat >>conftest.$ac_ext <<_ACEOF
  25281. /* end confdefs.h. */
  25282. $ac_includes_default
  25283. int
  25284. main ()
  25285. {
  25286. if (sizeof (wchar_t))
  25287. return 0;
  25288. ;
  25289. return 0;
  25290. }
  25291. _ACEOF
  25292. rm -f conftest.$ac_objext
  25293. if { (ac_try="$ac_compile"
  25294. case "(($ac_try" in
  25295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25296. *) ac_try_echo=$ac_try;;
  25297. esac
  25298. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25299. $as_echo "$ac_try_echo") >&5
  25300. (eval "$ac_compile") 2>conftest.er1
  25301. ac_status=$?
  25302. grep -v '^ *+' conftest.er1 >conftest.err
  25303. rm -f conftest.er1
  25304. cat conftest.err >&5
  25305. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25306. (exit $ac_status); } && {
  25307. test -z "$ac_c_werror_flag" ||
  25308. test ! -s conftest.err
  25309. } && test -s conftest.$ac_objext; then
  25310. cat >conftest.$ac_ext <<_ACEOF
  25311. /* confdefs.h. */
  25312. _ACEOF
  25313. cat confdefs.h >>conftest.$ac_ext
  25314. cat >>conftest.$ac_ext <<_ACEOF
  25315. /* end confdefs.h. */
  25316. $ac_includes_default
  25317. int
  25318. main ()
  25319. {
  25320. if (sizeof ((wchar_t)))
  25321. return 0;
  25322. ;
  25323. return 0;
  25324. }
  25325. _ACEOF
  25326. rm -f conftest.$ac_objext
  25327. if { (ac_try="$ac_compile"
  25328. case "(($ac_try" in
  25329. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25330. *) ac_try_echo=$ac_try;;
  25331. esac
  25332. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25333. $as_echo "$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. $as_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. :
  25345. else
  25346. $as_echo "$as_me: failed program was:" >&5
  25347. sed 's/^/| /' conftest.$ac_ext >&5
  25348. ac_cv_type_wchar_t=yes
  25349. fi
  25350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25351. else
  25352. $as_echo "$as_me: failed program was:" >&5
  25353. sed 's/^/| /' conftest.$ac_ext >&5
  25354. fi
  25355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25356. fi
  25357. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
  25358. $as_echo "$ac_cv_type_wchar_t" >&6; }
  25359. if test "x$ac_cv_type_wchar_t" = x""yes; then
  25360. cat >>confdefs.h <<_ACEOF
  25361. #define HAVE_WCHAR_T 1
  25362. _ACEOF
  25363. fi
  25364. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  25365. $as_echo_n "checking for wint_t... " >&6; }
  25366. if test "${ac_cv_type_wint_t+set}" = set; then
  25367. $as_echo_n "(cached) " >&6
  25368. else
  25369. ac_cv_type_wint_t=no
  25370. cat >conftest.$ac_ext <<_ACEOF
  25371. /* confdefs.h. */
  25372. _ACEOF
  25373. cat confdefs.h >>conftest.$ac_ext
  25374. cat >>conftest.$ac_ext <<_ACEOF
  25375. /* end confdefs.h. */
  25376. $ac_includes_default
  25377. #if HAVE_RUNETYPE_H
  25378. # include <runetype.h>
  25379. #endif
  25380. #if HAVE_WCHAR_H
  25381. # include <wchar.h>
  25382. #endif
  25383. int
  25384. main ()
  25385. {
  25386. if (sizeof (wint_t))
  25387. return 0;
  25388. ;
  25389. return 0;
  25390. }
  25391. _ACEOF
  25392. rm -f conftest.$ac_objext
  25393. if { (ac_try="$ac_compile"
  25394. case "(($ac_try" in
  25395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25396. *) ac_try_echo=$ac_try;;
  25397. esac
  25398. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25399. $as_echo "$ac_try_echo") >&5
  25400. (eval "$ac_compile") 2>conftest.er1
  25401. ac_status=$?
  25402. grep -v '^ *+' conftest.er1 >conftest.err
  25403. rm -f conftest.er1
  25404. cat conftest.err >&5
  25405. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25406. (exit $ac_status); } && {
  25407. test -z "$ac_c_werror_flag" ||
  25408. test ! -s conftest.err
  25409. } && test -s conftest.$ac_objext; then
  25410. cat >conftest.$ac_ext <<_ACEOF
  25411. /* confdefs.h. */
  25412. _ACEOF
  25413. cat confdefs.h >>conftest.$ac_ext
  25414. cat >>conftest.$ac_ext <<_ACEOF
  25415. /* end confdefs.h. */
  25416. $ac_includes_default
  25417. #if HAVE_RUNETYPE_H
  25418. # include <runetype.h>
  25419. #endif
  25420. #if HAVE_WCHAR_H
  25421. # include <wchar.h>
  25422. #endif
  25423. int
  25424. main ()
  25425. {
  25426. if (sizeof ((wint_t)))
  25427. return 0;
  25428. ;
  25429. return 0;
  25430. }
  25431. _ACEOF
  25432. rm -f conftest.$ac_objext
  25433. if { (ac_try="$ac_compile"
  25434. case "(($ac_try" in
  25435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25436. *) ac_try_echo=$ac_try;;
  25437. esac
  25438. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25439. $as_echo "$ac_try_echo") >&5
  25440. (eval "$ac_compile") 2>conftest.er1
  25441. ac_status=$?
  25442. grep -v '^ *+' conftest.er1 >conftest.err
  25443. rm -f conftest.er1
  25444. cat conftest.err >&5
  25445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25446. (exit $ac_status); } && {
  25447. test -z "$ac_c_werror_flag" ||
  25448. test ! -s conftest.err
  25449. } && test -s conftest.$ac_objext; then
  25450. :
  25451. else
  25452. $as_echo "$as_me: failed program was:" >&5
  25453. sed 's/^/| /' conftest.$ac_ext >&5
  25454. ac_cv_type_wint_t=yes
  25455. fi
  25456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25457. else
  25458. $as_echo "$as_me: failed program was:" >&5
  25459. sed 's/^/| /' conftest.$ac_ext >&5
  25460. fi
  25461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25462. fi
  25463. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_wint_t" >&5
  25464. $as_echo "$ac_cv_type_wint_t" >&6; }
  25465. if test "x$ac_cv_type_wint_t" = x""yes; then
  25466. cat >>confdefs.h <<_ACEOF
  25467. #define HAVE_WINT_T 1
  25468. _ACEOF
  25469. fi
  25470. # --------------------------------------------
  25471. # Verify certain entries from AC_CHECK_HEADERS
  25472. # --------------------------------------------
  25473. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  25474. string errno stdlib memory setjmp
  25475. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  25476. test "${as_ac_var}" = set || \
  25477. { { $as_echo "$as_me:$LINENO: error: You must have ${f}.h on your system" >&5
  25478. $as_echo "$as_me: error: You must have ${f}.h on your system" >&2;}
  25479. { (exit 1); exit 1; }; }
  25480. done
  25481. # ================================================
  25482. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  25483. # if varargs.h is present define HAVE_VARARGS_H.
  25484. # ================================================
  25485. for ac_header in stdarg.h varargs.h
  25486. do
  25487. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25489. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25490. $as_echo_n "checking for $ac_header... " >&6; }
  25491. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25492. $as_echo_n "(cached) " >&6
  25493. fi
  25494. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25495. $as_echo "$as_val"'`
  25496. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25497. $as_echo "$ac_res" >&6; }
  25498. else
  25499. # Is the header compilable?
  25500. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25501. $as_echo_n "checking $ac_header usability... " >&6; }
  25502. cat >conftest.$ac_ext <<_ACEOF
  25503. /* confdefs.h. */
  25504. _ACEOF
  25505. cat confdefs.h >>conftest.$ac_ext
  25506. cat >>conftest.$ac_ext <<_ACEOF
  25507. /* end confdefs.h. */
  25508. $ac_includes_default
  25509. #include <$ac_header>
  25510. _ACEOF
  25511. rm -f conftest.$ac_objext
  25512. if { (ac_try="$ac_compile"
  25513. case "(($ac_try" in
  25514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25515. *) ac_try_echo=$ac_try;;
  25516. esac
  25517. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25518. $as_echo "$ac_try_echo") >&5
  25519. (eval "$ac_compile") 2>conftest.er1
  25520. ac_status=$?
  25521. grep -v '^ *+' conftest.er1 >conftest.err
  25522. rm -f conftest.er1
  25523. cat conftest.err >&5
  25524. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25525. (exit $ac_status); } && {
  25526. test -z "$ac_c_werror_flag" ||
  25527. test ! -s conftest.err
  25528. } && test -s conftest.$ac_objext; then
  25529. ac_header_compiler=yes
  25530. else
  25531. $as_echo "$as_me: failed program was:" >&5
  25532. sed 's/^/| /' conftest.$ac_ext >&5
  25533. ac_header_compiler=no
  25534. fi
  25535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25536. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25537. $as_echo "$ac_header_compiler" >&6; }
  25538. # Is the header present?
  25539. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25540. $as_echo_n "checking $ac_header presence... " >&6; }
  25541. cat >conftest.$ac_ext <<_ACEOF
  25542. /* confdefs.h. */
  25543. _ACEOF
  25544. cat confdefs.h >>conftest.$ac_ext
  25545. cat >>conftest.$ac_ext <<_ACEOF
  25546. /* end confdefs.h. */
  25547. #include <$ac_header>
  25548. _ACEOF
  25549. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25550. case "(($ac_try" in
  25551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25552. *) ac_try_echo=$ac_try;;
  25553. esac
  25554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25555. $as_echo "$ac_try_echo") >&5
  25556. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25557. ac_status=$?
  25558. grep -v '^ *+' conftest.er1 >conftest.err
  25559. rm -f conftest.er1
  25560. cat conftest.err >&5
  25561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25562. (exit $ac_status); } >/dev/null && {
  25563. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25564. test ! -s conftest.err
  25565. }; then
  25566. ac_header_preproc=yes
  25567. else
  25568. $as_echo "$as_me: failed program was:" >&5
  25569. sed 's/^/| /' conftest.$ac_ext >&5
  25570. ac_header_preproc=no
  25571. fi
  25572. rm -f conftest.err conftest.$ac_ext
  25573. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25574. $as_echo "$ac_header_preproc" >&6; }
  25575. # So? What about this header?
  25576. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25577. yes:no: )
  25578. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25579. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25580. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25581. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25582. ac_header_preproc=yes
  25583. ;;
  25584. no:yes:* )
  25585. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25586. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25587. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25588. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25589. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25590. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25591. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25592. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25593. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25594. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25595. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25596. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25597. ;;
  25598. esac
  25599. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25600. $as_echo_n "checking for $ac_header... " >&6; }
  25601. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25602. $as_echo_n "(cached) " >&6
  25603. else
  25604. eval "$as_ac_Header=\$ac_header_preproc"
  25605. fi
  25606. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25607. $as_echo "$as_val"'`
  25608. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25609. $as_echo "$ac_res" >&6; }
  25610. fi
  25611. as_val=`eval 'as_val=${'$as_ac_Header'}
  25612. $as_echo "$as_val"'`
  25613. if test "x$as_val" = x""yes; then
  25614. cat >>confdefs.h <<_ACEOF
  25615. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25616. _ACEOF
  25617. break
  25618. fi
  25619. done
  25620. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25621. { { $as_echo "$as_me:$LINENO: error: You must have stdarg.h or varargs.h on your system" >&5
  25622. $as_echo "$as_me: error: You must have stdarg.h or varargs.h on your system" >&2;}
  25623. { (exit 1); exit 1; }; }
  25624. fi
  25625. # ================================================
  25626. # Similarly for the string.h and strings.h headers
  25627. # ================================================
  25628. for ac_header in string.h strings.h
  25629. do
  25630. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25631. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25632. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25633. $as_echo_n "checking for $ac_header... " >&6; }
  25634. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25635. $as_echo_n "(cached) " >&6
  25636. fi
  25637. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25638. $as_echo "$as_val"'`
  25639. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25640. $as_echo "$ac_res" >&6; }
  25641. else
  25642. # Is the header compilable?
  25643. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25644. $as_echo_n "checking $ac_header usability... " >&6; }
  25645. cat >conftest.$ac_ext <<_ACEOF
  25646. /* confdefs.h. */
  25647. _ACEOF
  25648. cat confdefs.h >>conftest.$ac_ext
  25649. cat >>conftest.$ac_ext <<_ACEOF
  25650. /* end confdefs.h. */
  25651. $ac_includes_default
  25652. #include <$ac_header>
  25653. _ACEOF
  25654. rm -f conftest.$ac_objext
  25655. if { (ac_try="$ac_compile"
  25656. case "(($ac_try" in
  25657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25658. *) ac_try_echo=$ac_try;;
  25659. esac
  25660. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25661. $as_echo "$ac_try_echo") >&5
  25662. (eval "$ac_compile") 2>conftest.er1
  25663. ac_status=$?
  25664. grep -v '^ *+' conftest.er1 >conftest.err
  25665. rm -f conftest.er1
  25666. cat conftest.err >&5
  25667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25668. (exit $ac_status); } && {
  25669. test -z "$ac_c_werror_flag" ||
  25670. test ! -s conftest.err
  25671. } && test -s conftest.$ac_objext; then
  25672. ac_header_compiler=yes
  25673. else
  25674. $as_echo "$as_me: failed program was:" >&5
  25675. sed 's/^/| /' conftest.$ac_ext >&5
  25676. ac_header_compiler=no
  25677. fi
  25678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25679. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25680. $as_echo "$ac_header_compiler" >&6; }
  25681. # Is the header present?
  25682. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25683. $as_echo_n "checking $ac_header presence... " >&6; }
  25684. cat >conftest.$ac_ext <<_ACEOF
  25685. /* confdefs.h. */
  25686. _ACEOF
  25687. cat confdefs.h >>conftest.$ac_ext
  25688. cat >>conftest.$ac_ext <<_ACEOF
  25689. /* end confdefs.h. */
  25690. #include <$ac_header>
  25691. _ACEOF
  25692. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25693. case "(($ac_try" in
  25694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25695. *) ac_try_echo=$ac_try;;
  25696. esac
  25697. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25698. $as_echo "$ac_try_echo") >&5
  25699. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25700. ac_status=$?
  25701. grep -v '^ *+' conftest.er1 >conftest.err
  25702. rm -f conftest.er1
  25703. cat conftest.err >&5
  25704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25705. (exit $ac_status); } >/dev/null && {
  25706. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25707. test ! -s conftest.err
  25708. }; then
  25709. ac_header_preproc=yes
  25710. else
  25711. $as_echo "$as_me: failed program was:" >&5
  25712. sed 's/^/| /' conftest.$ac_ext >&5
  25713. ac_header_preproc=no
  25714. fi
  25715. rm -f conftest.err conftest.$ac_ext
  25716. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25717. $as_echo "$ac_header_preproc" >&6; }
  25718. # So? What about this header?
  25719. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25720. yes:no: )
  25721. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25722. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25723. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25724. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25725. ac_header_preproc=yes
  25726. ;;
  25727. no:yes:* )
  25728. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25729. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25730. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25731. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25732. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25733. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25734. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25735. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25736. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25737. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25738. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25739. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25740. ;;
  25741. esac
  25742. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25743. $as_echo_n "checking for $ac_header... " >&6; }
  25744. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25745. $as_echo_n "(cached) " >&6
  25746. else
  25747. eval "$as_ac_Header=\$ac_header_preproc"
  25748. fi
  25749. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25750. $as_echo "$as_val"'`
  25751. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25752. $as_echo "$ac_res" >&6; }
  25753. fi
  25754. as_val=`eval 'as_val=${'$as_ac_Header'}
  25755. $as_echo "$as_val"'`
  25756. if test "x$as_val" = x""yes; then
  25757. cat >>confdefs.h <<_ACEOF
  25758. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25759. _ACEOF
  25760. break
  25761. fi
  25762. done
  25763. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25764. { { $as_echo "$as_me:$LINENO: error: You must have string.h or strings.h on your system" >&5
  25765. $as_echo "$as_me: error: You must have string.h or strings.h on your system" >&2;}
  25766. { (exit 1); exit 1; }; }
  25767. fi
  25768. # =====================
  25769. # ...and limits headers
  25770. # =====================
  25771. for ac_header in limits.h sys/limits.h values.h
  25772. do
  25773. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25774. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25775. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25776. $as_echo_n "checking for $ac_header... " >&6; }
  25777. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25778. $as_echo_n "(cached) " >&6
  25779. fi
  25780. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25781. $as_echo "$as_val"'`
  25782. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25783. $as_echo "$ac_res" >&6; }
  25784. else
  25785. # Is the header compilable?
  25786. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25787. $as_echo_n "checking $ac_header usability... " >&6; }
  25788. cat >conftest.$ac_ext <<_ACEOF
  25789. /* confdefs.h. */
  25790. _ACEOF
  25791. cat confdefs.h >>conftest.$ac_ext
  25792. cat >>conftest.$ac_ext <<_ACEOF
  25793. /* end confdefs.h. */
  25794. $ac_includes_default
  25795. #include <$ac_header>
  25796. _ACEOF
  25797. rm -f conftest.$ac_objext
  25798. if { (ac_try="$ac_compile"
  25799. case "(($ac_try" in
  25800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25801. *) ac_try_echo=$ac_try;;
  25802. esac
  25803. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25804. $as_echo "$ac_try_echo") >&5
  25805. (eval "$ac_compile") 2>conftest.er1
  25806. ac_status=$?
  25807. grep -v '^ *+' conftest.er1 >conftest.err
  25808. rm -f conftest.er1
  25809. cat conftest.err >&5
  25810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25811. (exit $ac_status); } && {
  25812. test -z "$ac_c_werror_flag" ||
  25813. test ! -s conftest.err
  25814. } && test -s conftest.$ac_objext; then
  25815. ac_header_compiler=yes
  25816. else
  25817. $as_echo "$as_me: failed program was:" >&5
  25818. sed 's/^/| /' conftest.$ac_ext >&5
  25819. ac_header_compiler=no
  25820. fi
  25821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25822. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25823. $as_echo "$ac_header_compiler" >&6; }
  25824. # Is the header present?
  25825. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25826. $as_echo_n "checking $ac_header presence... " >&6; }
  25827. cat >conftest.$ac_ext <<_ACEOF
  25828. /* confdefs.h. */
  25829. _ACEOF
  25830. cat confdefs.h >>conftest.$ac_ext
  25831. cat >>conftest.$ac_ext <<_ACEOF
  25832. /* end confdefs.h. */
  25833. #include <$ac_header>
  25834. _ACEOF
  25835. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25836. case "(($ac_try" in
  25837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25838. *) ac_try_echo=$ac_try;;
  25839. esac
  25840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25841. $as_echo "$ac_try_echo") >&5
  25842. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25843. ac_status=$?
  25844. grep -v '^ *+' conftest.er1 >conftest.err
  25845. rm -f conftest.er1
  25846. cat conftest.err >&5
  25847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25848. (exit $ac_status); } >/dev/null && {
  25849. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25850. test ! -s conftest.err
  25851. }; then
  25852. ac_header_preproc=yes
  25853. else
  25854. $as_echo "$as_me: failed program was:" >&5
  25855. sed 's/^/| /' conftest.$ac_ext >&5
  25856. ac_header_preproc=no
  25857. fi
  25858. rm -f conftest.err conftest.$ac_ext
  25859. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  25860. $as_echo "$ac_header_preproc" >&6; }
  25861. # So? What about this header?
  25862. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  25863. yes:no: )
  25864. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  25865. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  25866. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  25867. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  25868. ac_header_preproc=yes
  25869. ;;
  25870. no:yes:* )
  25871. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  25872. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  25873. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  25874. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  25875. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  25876. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  25877. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  25878. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  25879. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  25880. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  25881. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  25882. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  25883. ;;
  25884. esac
  25885. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25886. $as_echo_n "checking for $ac_header... " >&6; }
  25887. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25888. $as_echo_n "(cached) " >&6
  25889. else
  25890. eval "$as_ac_Header=\$ac_header_preproc"
  25891. fi
  25892. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25893. $as_echo "$as_val"'`
  25894. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25895. $as_echo "$ac_res" >&6; }
  25896. fi
  25897. as_val=`eval 'as_val=${'$as_ac_Header'}
  25898. $as_echo "$as_val"'`
  25899. if test "x$as_val" = x""yes; then
  25900. cat >>confdefs.h <<_ACEOF
  25901. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25902. _ACEOF
  25903. break
  25904. fi
  25905. done
  25906. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  25907. { { $as_echo "$as_me:$LINENO: error: You must have one of limits.h, sys/limits.h or values.h" >&5
  25908. $as_echo "$as_me: error: You must have one of limits.h, sys/limits.h or values.h" >&2;}
  25909. { (exit 1); exit 1; }; }
  25910. fi
  25911. # ========================
  25912. # ...and int types headers
  25913. # ========================
  25914. for ac_header in stdint.h inttypes.h
  25915. do
  25916. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25917. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25918. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  25919. $as_echo_n "checking for $ac_header... " >&6; }
  25920. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  25921. $as_echo_n "(cached) " >&6
  25922. fi
  25923. ac_res=`eval 'as_val=${'$as_ac_Header'}
  25924. $as_echo "$as_val"'`
  25925. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25926. $as_echo "$ac_res" >&6; }
  25927. else
  25928. # Is the header compilable?
  25929. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  25930. $as_echo_n "checking $ac_header usability... " >&6; }
  25931. cat >conftest.$ac_ext <<_ACEOF
  25932. /* confdefs.h. */
  25933. _ACEOF
  25934. cat confdefs.h >>conftest.$ac_ext
  25935. cat >>conftest.$ac_ext <<_ACEOF
  25936. /* end confdefs.h. */
  25937. $ac_includes_default
  25938. #include <$ac_header>
  25939. _ACEOF
  25940. rm -f conftest.$ac_objext
  25941. if { (ac_try="$ac_compile"
  25942. case "(($ac_try" in
  25943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25944. *) ac_try_echo=$ac_try;;
  25945. esac
  25946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25947. $as_echo "$ac_try_echo") >&5
  25948. (eval "$ac_compile") 2>conftest.er1
  25949. ac_status=$?
  25950. grep -v '^ *+' conftest.er1 >conftest.err
  25951. rm -f conftest.er1
  25952. cat conftest.err >&5
  25953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25954. (exit $ac_status); } && {
  25955. test -z "$ac_c_werror_flag" ||
  25956. test ! -s conftest.err
  25957. } && test -s conftest.$ac_objext; then
  25958. ac_header_compiler=yes
  25959. else
  25960. $as_echo "$as_me: failed program was:" >&5
  25961. sed 's/^/| /' conftest.$ac_ext >&5
  25962. ac_header_compiler=no
  25963. fi
  25964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25965. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  25966. $as_echo "$ac_header_compiler" >&6; }
  25967. # Is the header present?
  25968. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  25969. $as_echo_n "checking $ac_header presence... " >&6; }
  25970. cat >conftest.$ac_ext <<_ACEOF
  25971. /* confdefs.h. */
  25972. _ACEOF
  25973. cat confdefs.h >>conftest.$ac_ext
  25974. cat >>conftest.$ac_ext <<_ACEOF
  25975. /* end confdefs.h. */
  25976. #include <$ac_header>
  25977. _ACEOF
  25978. if { (ac_try="$ac_cpp conftest.$ac_ext"
  25979. case "(($ac_try" in
  25980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25981. *) ac_try_echo=$ac_try;;
  25982. esac
  25983. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25984. $as_echo "$ac_try_echo") >&5
  25985. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  25986. ac_status=$?
  25987. grep -v '^ *+' conftest.er1 >conftest.err
  25988. rm -f conftest.er1
  25989. cat conftest.err >&5
  25990. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25991. (exit $ac_status); } >/dev/null && {
  25992. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  25993. test ! -s conftest.err
  25994. }; then
  25995. ac_header_preproc=yes
  25996. else
  25997. $as_echo "$as_me: failed program was:" >&5
  25998. sed 's/^/| /' conftest.$ac_ext >&5
  25999. ac_header_preproc=no
  26000. fi
  26001. rm -f conftest.err conftest.$ac_ext
  26002. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  26003. $as_echo "$ac_header_preproc" >&6; }
  26004. # So? What about this header?
  26005. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  26006. yes:no: )
  26007. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  26008. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  26009. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  26010. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  26011. ac_header_preproc=yes
  26012. ;;
  26013. no:yes:* )
  26014. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  26015. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  26016. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  26017. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  26018. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  26019. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  26020. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  26021. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  26022. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  26023. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  26024. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  26025. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  26026. ;;
  26027. esac
  26028. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  26029. $as_echo_n "checking for $ac_header... " >&6; }
  26030. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  26031. $as_echo_n "(cached) " >&6
  26032. else
  26033. eval "$as_ac_Header=\$ac_header_preproc"
  26034. fi
  26035. ac_res=`eval 'as_val=${'$as_ac_Header'}
  26036. $as_echo "$as_val"'`
  26037. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  26038. $as_echo "$ac_res" >&6; }
  26039. fi
  26040. as_val=`eval 'as_val=${'$as_ac_Header'}
  26041. $as_echo "$as_val"'`
  26042. if test "x$as_val" = x""yes; then
  26043. cat >>confdefs.h <<_ACEOF
  26044. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26045. _ACEOF
  26046. break
  26047. fi
  26048. done
  26049. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  26050. $as_echo_n "checking for int8_t... " >&6; }
  26051. if test "${ac_cv_type_int8_t+set}" = set; then
  26052. $as_echo_n "(cached) " >&6
  26053. else
  26054. ac_cv_type_int8_t=no
  26055. cat >conftest.$ac_ext <<_ACEOF
  26056. /* confdefs.h. */
  26057. _ACEOF
  26058. cat confdefs.h >>conftest.$ac_ext
  26059. cat >>conftest.$ac_ext <<_ACEOF
  26060. /* end confdefs.h. */
  26061. $ac_includes_default
  26062. int
  26063. main ()
  26064. {
  26065. if (sizeof (int8_t))
  26066. return 0;
  26067. ;
  26068. return 0;
  26069. }
  26070. _ACEOF
  26071. rm -f conftest.$ac_objext
  26072. if { (ac_try="$ac_compile"
  26073. case "(($ac_try" in
  26074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26075. *) ac_try_echo=$ac_try;;
  26076. esac
  26077. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26078. $as_echo "$ac_try_echo") >&5
  26079. (eval "$ac_compile") 2>conftest.er1
  26080. ac_status=$?
  26081. grep -v '^ *+' conftest.er1 >conftest.err
  26082. rm -f conftest.er1
  26083. cat conftest.err >&5
  26084. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26085. (exit $ac_status); } && {
  26086. test -z "$ac_c_werror_flag" ||
  26087. test ! -s conftest.err
  26088. } && test -s conftest.$ac_objext; then
  26089. cat >conftest.$ac_ext <<_ACEOF
  26090. /* confdefs.h. */
  26091. _ACEOF
  26092. cat confdefs.h >>conftest.$ac_ext
  26093. cat >>conftest.$ac_ext <<_ACEOF
  26094. /* end confdefs.h. */
  26095. $ac_includes_default
  26096. int
  26097. main ()
  26098. {
  26099. if (sizeof ((int8_t)))
  26100. return 0;
  26101. ;
  26102. return 0;
  26103. }
  26104. _ACEOF
  26105. rm -f conftest.$ac_objext
  26106. if { (ac_try="$ac_compile"
  26107. case "(($ac_try" in
  26108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26109. *) ac_try_echo=$ac_try;;
  26110. esac
  26111. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26112. $as_echo "$ac_try_echo") >&5
  26113. (eval "$ac_compile") 2>conftest.er1
  26114. ac_status=$?
  26115. grep -v '^ *+' conftest.er1 >conftest.err
  26116. rm -f conftest.er1
  26117. cat conftest.err >&5
  26118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26119. (exit $ac_status); } && {
  26120. test -z "$ac_c_werror_flag" ||
  26121. test ! -s conftest.err
  26122. } && test -s conftest.$ac_objext; then
  26123. :
  26124. else
  26125. $as_echo "$as_me: failed program was:" >&5
  26126. sed 's/^/| /' conftest.$ac_ext >&5
  26127. ac_cv_type_int8_t=yes
  26128. fi
  26129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26130. else
  26131. $as_echo "$as_me: failed program was:" >&5
  26132. sed 's/^/| /' conftest.$ac_ext >&5
  26133. fi
  26134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26135. fi
  26136. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
  26137. $as_echo "$ac_cv_type_int8_t" >&6; }
  26138. if test "x$ac_cv_type_int8_t" = x""yes; then
  26139. cat >>confdefs.h <<_ACEOF
  26140. #define HAVE_INT8_T 1
  26141. _ACEOF
  26142. fi
  26143. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  26144. $as_echo_n "checking for uint8_t... " >&6; }
  26145. if test "${ac_cv_type_uint8_t+set}" = set; then
  26146. $as_echo_n "(cached) " >&6
  26147. else
  26148. ac_cv_type_uint8_t=no
  26149. cat >conftest.$ac_ext <<_ACEOF
  26150. /* confdefs.h. */
  26151. _ACEOF
  26152. cat confdefs.h >>conftest.$ac_ext
  26153. cat >>conftest.$ac_ext <<_ACEOF
  26154. /* end confdefs.h. */
  26155. $ac_includes_default
  26156. int
  26157. main ()
  26158. {
  26159. if (sizeof (uint8_t))
  26160. return 0;
  26161. ;
  26162. return 0;
  26163. }
  26164. _ACEOF
  26165. rm -f conftest.$ac_objext
  26166. if { (ac_try="$ac_compile"
  26167. case "(($ac_try" in
  26168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26169. *) ac_try_echo=$ac_try;;
  26170. esac
  26171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26172. $as_echo "$ac_try_echo") >&5
  26173. (eval "$ac_compile") 2>conftest.er1
  26174. ac_status=$?
  26175. grep -v '^ *+' conftest.er1 >conftest.err
  26176. rm -f conftest.er1
  26177. cat conftest.err >&5
  26178. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26179. (exit $ac_status); } && {
  26180. test -z "$ac_c_werror_flag" ||
  26181. test ! -s conftest.err
  26182. } && test -s conftest.$ac_objext; then
  26183. cat >conftest.$ac_ext <<_ACEOF
  26184. /* confdefs.h. */
  26185. _ACEOF
  26186. cat confdefs.h >>conftest.$ac_ext
  26187. cat >>conftest.$ac_ext <<_ACEOF
  26188. /* end confdefs.h. */
  26189. $ac_includes_default
  26190. int
  26191. main ()
  26192. {
  26193. if (sizeof ((uint8_t)))
  26194. return 0;
  26195. ;
  26196. return 0;
  26197. }
  26198. _ACEOF
  26199. rm -f conftest.$ac_objext
  26200. if { (ac_try="$ac_compile"
  26201. case "(($ac_try" in
  26202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26203. *) ac_try_echo=$ac_try;;
  26204. esac
  26205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26206. $as_echo "$ac_try_echo") >&5
  26207. (eval "$ac_compile") 2>conftest.er1
  26208. ac_status=$?
  26209. grep -v '^ *+' conftest.er1 >conftest.err
  26210. rm -f conftest.er1
  26211. cat conftest.err >&5
  26212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26213. (exit $ac_status); } && {
  26214. test -z "$ac_c_werror_flag" ||
  26215. test ! -s conftest.err
  26216. } && test -s conftest.$ac_objext; then
  26217. :
  26218. else
  26219. $as_echo "$as_me: failed program was:" >&5
  26220. sed 's/^/| /' conftest.$ac_ext >&5
  26221. ac_cv_type_uint8_t=yes
  26222. fi
  26223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26224. else
  26225. $as_echo "$as_me: failed program was:" >&5
  26226. sed 's/^/| /' conftest.$ac_ext >&5
  26227. fi
  26228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26229. fi
  26230. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  26231. $as_echo "$ac_cv_type_uint8_t" >&6; }
  26232. if test "x$ac_cv_type_uint8_t" = x""yes; then
  26233. cat >>confdefs.h <<_ACEOF
  26234. #define HAVE_UINT8_T 1
  26235. _ACEOF
  26236. fi
  26237. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  26238. $as_echo_n "checking for int16_t... " >&6; }
  26239. if test "${ac_cv_type_int16_t+set}" = set; then
  26240. $as_echo_n "(cached) " >&6
  26241. else
  26242. ac_cv_type_int16_t=no
  26243. cat >conftest.$ac_ext <<_ACEOF
  26244. /* confdefs.h. */
  26245. _ACEOF
  26246. cat confdefs.h >>conftest.$ac_ext
  26247. cat >>conftest.$ac_ext <<_ACEOF
  26248. /* end confdefs.h. */
  26249. $ac_includes_default
  26250. int
  26251. main ()
  26252. {
  26253. if (sizeof (int16_t))
  26254. return 0;
  26255. ;
  26256. return 0;
  26257. }
  26258. _ACEOF
  26259. rm -f conftest.$ac_objext
  26260. if { (ac_try="$ac_compile"
  26261. case "(($ac_try" in
  26262. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26263. *) ac_try_echo=$ac_try;;
  26264. esac
  26265. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26266. $as_echo "$ac_try_echo") >&5
  26267. (eval "$ac_compile") 2>conftest.er1
  26268. ac_status=$?
  26269. grep -v '^ *+' conftest.er1 >conftest.err
  26270. rm -f conftest.er1
  26271. cat conftest.err >&5
  26272. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26273. (exit $ac_status); } && {
  26274. test -z "$ac_c_werror_flag" ||
  26275. test ! -s conftest.err
  26276. } && test -s conftest.$ac_objext; then
  26277. cat >conftest.$ac_ext <<_ACEOF
  26278. /* confdefs.h. */
  26279. _ACEOF
  26280. cat confdefs.h >>conftest.$ac_ext
  26281. cat >>conftest.$ac_ext <<_ACEOF
  26282. /* end confdefs.h. */
  26283. $ac_includes_default
  26284. int
  26285. main ()
  26286. {
  26287. if (sizeof ((int16_t)))
  26288. return 0;
  26289. ;
  26290. return 0;
  26291. }
  26292. _ACEOF
  26293. rm -f conftest.$ac_objext
  26294. if { (ac_try="$ac_compile"
  26295. case "(($ac_try" in
  26296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26297. *) ac_try_echo=$ac_try;;
  26298. esac
  26299. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26300. $as_echo "$ac_try_echo") >&5
  26301. (eval "$ac_compile") 2>conftest.er1
  26302. ac_status=$?
  26303. grep -v '^ *+' conftest.er1 >conftest.err
  26304. rm -f conftest.er1
  26305. cat conftest.err >&5
  26306. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26307. (exit $ac_status); } && {
  26308. test -z "$ac_c_werror_flag" ||
  26309. test ! -s conftest.err
  26310. } && test -s conftest.$ac_objext; then
  26311. :
  26312. else
  26313. $as_echo "$as_me: failed program was:" >&5
  26314. sed 's/^/| /' conftest.$ac_ext >&5
  26315. ac_cv_type_int16_t=yes
  26316. fi
  26317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26318. else
  26319. $as_echo "$as_me: failed program was:" >&5
  26320. sed 's/^/| /' conftest.$ac_ext >&5
  26321. fi
  26322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26323. fi
  26324. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  26325. $as_echo "$ac_cv_type_int16_t" >&6; }
  26326. if test "x$ac_cv_type_int16_t" = x""yes; then
  26327. cat >>confdefs.h <<_ACEOF
  26328. #define HAVE_INT16_T 1
  26329. _ACEOF
  26330. fi
  26331. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  26332. $as_echo_n "checking for uint16_t... " >&6; }
  26333. if test "${ac_cv_type_uint16_t+set}" = set; then
  26334. $as_echo_n "(cached) " >&6
  26335. else
  26336. ac_cv_type_uint16_t=no
  26337. cat >conftest.$ac_ext <<_ACEOF
  26338. /* confdefs.h. */
  26339. _ACEOF
  26340. cat confdefs.h >>conftest.$ac_ext
  26341. cat >>conftest.$ac_ext <<_ACEOF
  26342. /* end confdefs.h. */
  26343. $ac_includes_default
  26344. int
  26345. main ()
  26346. {
  26347. if (sizeof (uint16_t))
  26348. return 0;
  26349. ;
  26350. return 0;
  26351. }
  26352. _ACEOF
  26353. rm -f conftest.$ac_objext
  26354. if { (ac_try="$ac_compile"
  26355. case "(($ac_try" in
  26356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26357. *) ac_try_echo=$ac_try;;
  26358. esac
  26359. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26360. $as_echo "$ac_try_echo") >&5
  26361. (eval "$ac_compile") 2>conftest.er1
  26362. ac_status=$?
  26363. grep -v '^ *+' conftest.er1 >conftest.err
  26364. rm -f conftest.er1
  26365. cat conftest.err >&5
  26366. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26367. (exit $ac_status); } && {
  26368. test -z "$ac_c_werror_flag" ||
  26369. test ! -s conftest.err
  26370. } && test -s conftest.$ac_objext; then
  26371. cat >conftest.$ac_ext <<_ACEOF
  26372. /* confdefs.h. */
  26373. _ACEOF
  26374. cat confdefs.h >>conftest.$ac_ext
  26375. cat >>conftest.$ac_ext <<_ACEOF
  26376. /* end confdefs.h. */
  26377. $ac_includes_default
  26378. int
  26379. main ()
  26380. {
  26381. if (sizeof ((uint16_t)))
  26382. return 0;
  26383. ;
  26384. return 0;
  26385. }
  26386. _ACEOF
  26387. rm -f conftest.$ac_objext
  26388. if { (ac_try="$ac_compile"
  26389. case "(($ac_try" in
  26390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26391. *) ac_try_echo=$ac_try;;
  26392. esac
  26393. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26394. $as_echo "$ac_try_echo") >&5
  26395. (eval "$ac_compile") 2>conftest.er1
  26396. ac_status=$?
  26397. grep -v '^ *+' conftest.er1 >conftest.err
  26398. rm -f conftest.er1
  26399. cat conftest.err >&5
  26400. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26401. (exit $ac_status); } && {
  26402. test -z "$ac_c_werror_flag" ||
  26403. test ! -s conftest.err
  26404. } && test -s conftest.$ac_objext; then
  26405. :
  26406. else
  26407. $as_echo "$as_me: failed program was:" >&5
  26408. sed 's/^/| /' conftest.$ac_ext >&5
  26409. ac_cv_type_uint16_t=yes
  26410. fi
  26411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26412. else
  26413. $as_echo "$as_me: failed program was:" >&5
  26414. sed 's/^/| /' conftest.$ac_ext >&5
  26415. fi
  26416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26417. fi
  26418. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  26419. $as_echo "$ac_cv_type_uint16_t" >&6; }
  26420. if test "x$ac_cv_type_uint16_t" = x""yes; then
  26421. cat >>confdefs.h <<_ACEOF
  26422. #define HAVE_UINT16_T 1
  26423. _ACEOF
  26424. fi
  26425. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  26426. $as_echo_n "checking for int32_t... " >&6; }
  26427. if test "${ac_cv_type_int32_t+set}" = set; then
  26428. $as_echo_n "(cached) " >&6
  26429. else
  26430. ac_cv_type_int32_t=no
  26431. cat >conftest.$ac_ext <<_ACEOF
  26432. /* confdefs.h. */
  26433. _ACEOF
  26434. cat confdefs.h >>conftest.$ac_ext
  26435. cat >>conftest.$ac_ext <<_ACEOF
  26436. /* end confdefs.h. */
  26437. $ac_includes_default
  26438. int
  26439. main ()
  26440. {
  26441. if (sizeof (int32_t))
  26442. return 0;
  26443. ;
  26444. return 0;
  26445. }
  26446. _ACEOF
  26447. rm -f conftest.$ac_objext
  26448. if { (ac_try="$ac_compile"
  26449. case "(($ac_try" in
  26450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26451. *) ac_try_echo=$ac_try;;
  26452. esac
  26453. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26454. $as_echo "$ac_try_echo") >&5
  26455. (eval "$ac_compile") 2>conftest.er1
  26456. ac_status=$?
  26457. grep -v '^ *+' conftest.er1 >conftest.err
  26458. rm -f conftest.er1
  26459. cat conftest.err >&5
  26460. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26461. (exit $ac_status); } && {
  26462. test -z "$ac_c_werror_flag" ||
  26463. test ! -s conftest.err
  26464. } && test -s conftest.$ac_objext; then
  26465. cat >conftest.$ac_ext <<_ACEOF
  26466. /* confdefs.h. */
  26467. _ACEOF
  26468. cat confdefs.h >>conftest.$ac_ext
  26469. cat >>conftest.$ac_ext <<_ACEOF
  26470. /* end confdefs.h. */
  26471. $ac_includes_default
  26472. int
  26473. main ()
  26474. {
  26475. if (sizeof ((int32_t)))
  26476. return 0;
  26477. ;
  26478. return 0;
  26479. }
  26480. _ACEOF
  26481. rm -f conftest.$ac_objext
  26482. if { (ac_try="$ac_compile"
  26483. case "(($ac_try" in
  26484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26485. *) ac_try_echo=$ac_try;;
  26486. esac
  26487. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26488. $as_echo "$ac_try_echo") >&5
  26489. (eval "$ac_compile") 2>conftest.er1
  26490. ac_status=$?
  26491. grep -v '^ *+' conftest.er1 >conftest.err
  26492. rm -f conftest.er1
  26493. cat conftest.err >&5
  26494. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26495. (exit $ac_status); } && {
  26496. test -z "$ac_c_werror_flag" ||
  26497. test ! -s conftest.err
  26498. } && test -s conftest.$ac_objext; then
  26499. :
  26500. else
  26501. $as_echo "$as_me: failed program was:" >&5
  26502. sed 's/^/| /' conftest.$ac_ext >&5
  26503. ac_cv_type_int32_t=yes
  26504. fi
  26505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26506. else
  26507. $as_echo "$as_me: failed program was:" >&5
  26508. sed 's/^/| /' conftest.$ac_ext >&5
  26509. fi
  26510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26511. fi
  26512. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  26513. $as_echo "$ac_cv_type_int32_t" >&6; }
  26514. if test "x$ac_cv_type_int32_t" = x""yes; then
  26515. cat >>confdefs.h <<_ACEOF
  26516. #define HAVE_INT32_T 1
  26517. _ACEOF
  26518. fi
  26519. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  26520. $as_echo_n "checking for uint32_t... " >&6; }
  26521. if test "${ac_cv_type_uint32_t+set}" = set; then
  26522. $as_echo_n "(cached) " >&6
  26523. else
  26524. ac_cv_type_uint32_t=no
  26525. cat >conftest.$ac_ext <<_ACEOF
  26526. /* confdefs.h. */
  26527. _ACEOF
  26528. cat confdefs.h >>conftest.$ac_ext
  26529. cat >>conftest.$ac_ext <<_ACEOF
  26530. /* end confdefs.h. */
  26531. $ac_includes_default
  26532. int
  26533. main ()
  26534. {
  26535. if (sizeof (uint32_t))
  26536. return 0;
  26537. ;
  26538. return 0;
  26539. }
  26540. _ACEOF
  26541. rm -f conftest.$ac_objext
  26542. if { (ac_try="$ac_compile"
  26543. case "(($ac_try" in
  26544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26545. *) ac_try_echo=$ac_try;;
  26546. esac
  26547. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26548. $as_echo "$ac_try_echo") >&5
  26549. (eval "$ac_compile") 2>conftest.er1
  26550. ac_status=$?
  26551. grep -v '^ *+' conftest.er1 >conftest.err
  26552. rm -f conftest.er1
  26553. cat conftest.err >&5
  26554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26555. (exit $ac_status); } && {
  26556. test -z "$ac_c_werror_flag" ||
  26557. test ! -s conftest.err
  26558. } && test -s conftest.$ac_objext; then
  26559. cat >conftest.$ac_ext <<_ACEOF
  26560. /* confdefs.h. */
  26561. _ACEOF
  26562. cat confdefs.h >>conftest.$ac_ext
  26563. cat >>conftest.$ac_ext <<_ACEOF
  26564. /* end confdefs.h. */
  26565. $ac_includes_default
  26566. int
  26567. main ()
  26568. {
  26569. if (sizeof ((uint32_t)))
  26570. return 0;
  26571. ;
  26572. return 0;
  26573. }
  26574. _ACEOF
  26575. rm -f conftest.$ac_objext
  26576. if { (ac_try="$ac_compile"
  26577. case "(($ac_try" in
  26578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26579. *) ac_try_echo=$ac_try;;
  26580. esac
  26581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26582. $as_echo "$ac_try_echo") >&5
  26583. (eval "$ac_compile") 2>conftest.er1
  26584. ac_status=$?
  26585. grep -v '^ *+' conftest.er1 >conftest.err
  26586. rm -f conftest.er1
  26587. cat conftest.err >&5
  26588. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26589. (exit $ac_status); } && {
  26590. test -z "$ac_c_werror_flag" ||
  26591. test ! -s conftest.err
  26592. } && test -s conftest.$ac_objext; then
  26593. :
  26594. else
  26595. $as_echo "$as_me: failed program was:" >&5
  26596. sed 's/^/| /' conftest.$ac_ext >&5
  26597. ac_cv_type_uint32_t=yes
  26598. fi
  26599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26600. else
  26601. $as_echo "$as_me: failed program was:" >&5
  26602. sed 's/^/| /' conftest.$ac_ext >&5
  26603. fi
  26604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26605. fi
  26606. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  26607. $as_echo "$ac_cv_type_uint32_t" >&6; }
  26608. if test "x$ac_cv_type_uint32_t" = x""yes; then
  26609. cat >>confdefs.h <<_ACEOF
  26610. #define HAVE_UINT32_T 1
  26611. _ACEOF
  26612. fi
  26613. { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
  26614. $as_echo_n "checking for intptr_t... " >&6; }
  26615. if test "${ac_cv_type_intptr_t+set}" = set; then
  26616. $as_echo_n "(cached) " >&6
  26617. else
  26618. ac_cv_type_intptr_t=no
  26619. cat >conftest.$ac_ext <<_ACEOF
  26620. /* confdefs.h. */
  26621. _ACEOF
  26622. cat confdefs.h >>conftest.$ac_ext
  26623. cat >>conftest.$ac_ext <<_ACEOF
  26624. /* end confdefs.h. */
  26625. $ac_includes_default
  26626. int
  26627. main ()
  26628. {
  26629. if (sizeof (intptr_t))
  26630. return 0;
  26631. ;
  26632. return 0;
  26633. }
  26634. _ACEOF
  26635. rm -f conftest.$ac_objext
  26636. if { (ac_try="$ac_compile"
  26637. case "(($ac_try" in
  26638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26639. *) ac_try_echo=$ac_try;;
  26640. esac
  26641. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26642. $as_echo "$ac_try_echo") >&5
  26643. (eval "$ac_compile") 2>conftest.er1
  26644. ac_status=$?
  26645. grep -v '^ *+' conftest.er1 >conftest.err
  26646. rm -f conftest.er1
  26647. cat conftest.err >&5
  26648. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26649. (exit $ac_status); } && {
  26650. test -z "$ac_c_werror_flag" ||
  26651. test ! -s conftest.err
  26652. } && test -s conftest.$ac_objext; then
  26653. cat >conftest.$ac_ext <<_ACEOF
  26654. /* confdefs.h. */
  26655. _ACEOF
  26656. cat confdefs.h >>conftest.$ac_ext
  26657. cat >>conftest.$ac_ext <<_ACEOF
  26658. /* end confdefs.h. */
  26659. $ac_includes_default
  26660. int
  26661. main ()
  26662. {
  26663. if (sizeof ((intptr_t)))
  26664. return 0;
  26665. ;
  26666. return 0;
  26667. }
  26668. _ACEOF
  26669. rm -f conftest.$ac_objext
  26670. if { (ac_try="$ac_compile"
  26671. case "(($ac_try" in
  26672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26673. *) ac_try_echo=$ac_try;;
  26674. esac
  26675. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26676. $as_echo "$ac_try_echo") >&5
  26677. (eval "$ac_compile") 2>conftest.er1
  26678. ac_status=$?
  26679. grep -v '^ *+' conftest.er1 >conftest.err
  26680. rm -f conftest.er1
  26681. cat conftest.err >&5
  26682. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26683. (exit $ac_status); } && {
  26684. test -z "$ac_c_werror_flag" ||
  26685. test ! -s conftest.err
  26686. } && test -s conftest.$ac_objext; then
  26687. :
  26688. else
  26689. $as_echo "$as_me: failed program was:" >&5
  26690. sed 's/^/| /' conftest.$ac_ext >&5
  26691. ac_cv_type_intptr_t=yes
  26692. fi
  26693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26694. else
  26695. $as_echo "$as_me: failed program was:" >&5
  26696. sed 's/^/| /' conftest.$ac_ext >&5
  26697. fi
  26698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26699. fi
  26700. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
  26701. $as_echo "$ac_cv_type_intptr_t" >&6; }
  26702. if test "x$ac_cv_type_intptr_t" = x""yes; then
  26703. cat >>confdefs.h <<_ACEOF
  26704. #define HAVE_INTPTR_T 1
  26705. _ACEOF
  26706. fi
  26707. { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
  26708. $as_echo_n "checking for uintptr_t... " >&6; }
  26709. if test "${ac_cv_type_uintptr_t+set}" = set; then
  26710. $as_echo_n "(cached) " >&6
  26711. else
  26712. ac_cv_type_uintptr_t=no
  26713. cat >conftest.$ac_ext <<_ACEOF
  26714. /* confdefs.h. */
  26715. _ACEOF
  26716. cat confdefs.h >>conftest.$ac_ext
  26717. cat >>conftest.$ac_ext <<_ACEOF
  26718. /* end confdefs.h. */
  26719. $ac_includes_default
  26720. int
  26721. main ()
  26722. {
  26723. if (sizeof (uintptr_t))
  26724. return 0;
  26725. ;
  26726. return 0;
  26727. }
  26728. _ACEOF
  26729. rm -f conftest.$ac_objext
  26730. if { (ac_try="$ac_compile"
  26731. case "(($ac_try" in
  26732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26733. *) ac_try_echo=$ac_try;;
  26734. esac
  26735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26736. $as_echo "$ac_try_echo") >&5
  26737. (eval "$ac_compile") 2>conftest.er1
  26738. ac_status=$?
  26739. grep -v '^ *+' conftest.er1 >conftest.err
  26740. rm -f conftest.er1
  26741. cat conftest.err >&5
  26742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26743. (exit $ac_status); } && {
  26744. test -z "$ac_c_werror_flag" ||
  26745. test ! -s conftest.err
  26746. } && test -s conftest.$ac_objext; then
  26747. cat >conftest.$ac_ext <<_ACEOF
  26748. /* confdefs.h. */
  26749. _ACEOF
  26750. cat confdefs.h >>conftest.$ac_ext
  26751. cat >>conftest.$ac_ext <<_ACEOF
  26752. /* end confdefs.h. */
  26753. $ac_includes_default
  26754. int
  26755. main ()
  26756. {
  26757. if (sizeof ((uintptr_t)))
  26758. return 0;
  26759. ;
  26760. return 0;
  26761. }
  26762. _ACEOF
  26763. rm -f conftest.$ac_objext
  26764. if { (ac_try="$ac_compile"
  26765. case "(($ac_try" in
  26766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26767. *) ac_try_echo=$ac_try;;
  26768. esac
  26769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26770. $as_echo "$ac_try_echo") >&5
  26771. (eval "$ac_compile") 2>conftest.er1
  26772. ac_status=$?
  26773. grep -v '^ *+' conftest.er1 >conftest.err
  26774. rm -f conftest.er1
  26775. cat conftest.err >&5
  26776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26777. (exit $ac_status); } && {
  26778. test -z "$ac_c_werror_flag" ||
  26779. test ! -s conftest.err
  26780. } && test -s conftest.$ac_objext; then
  26781. :
  26782. else
  26783. $as_echo "$as_me: failed program was:" >&5
  26784. sed 's/^/| /' conftest.$ac_ext >&5
  26785. ac_cv_type_uintptr_t=yes
  26786. fi
  26787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26788. else
  26789. $as_echo "$as_me: failed program was:" >&5
  26790. sed 's/^/| /' conftest.$ac_ext >&5
  26791. fi
  26792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26793. fi
  26794. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
  26795. $as_echo "$ac_cv_type_uintptr_t" >&6; }
  26796. if test "x$ac_cv_type_uintptr_t" = x""yes; then
  26797. cat >>confdefs.h <<_ACEOF
  26798. #define HAVE_UINTPTR_T 1
  26799. _ACEOF
  26800. fi
  26801. { $as_echo "$as_me:$LINENO: checking for uint_t" >&5
  26802. $as_echo_n "checking for uint_t... " >&6; }
  26803. if test "${ac_cv_type_uint_t+set}" = set; then
  26804. $as_echo_n "(cached) " >&6
  26805. else
  26806. ac_cv_type_uint_t=no
  26807. cat >conftest.$ac_ext <<_ACEOF
  26808. /* confdefs.h. */
  26809. _ACEOF
  26810. cat confdefs.h >>conftest.$ac_ext
  26811. cat >>conftest.$ac_ext <<_ACEOF
  26812. /* end confdefs.h. */
  26813. $ac_includes_default
  26814. int
  26815. main ()
  26816. {
  26817. if (sizeof (uint_t))
  26818. return 0;
  26819. ;
  26820. return 0;
  26821. }
  26822. _ACEOF
  26823. rm -f conftest.$ac_objext
  26824. if { (ac_try="$ac_compile"
  26825. case "(($ac_try" in
  26826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26827. *) ac_try_echo=$ac_try;;
  26828. esac
  26829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26830. $as_echo "$ac_try_echo") >&5
  26831. (eval "$ac_compile") 2>conftest.er1
  26832. ac_status=$?
  26833. grep -v '^ *+' conftest.er1 >conftest.err
  26834. rm -f conftest.er1
  26835. cat conftest.err >&5
  26836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26837. (exit $ac_status); } && {
  26838. test -z "$ac_c_werror_flag" ||
  26839. test ! -s conftest.err
  26840. } && test -s conftest.$ac_objext; then
  26841. cat >conftest.$ac_ext <<_ACEOF
  26842. /* confdefs.h. */
  26843. _ACEOF
  26844. cat confdefs.h >>conftest.$ac_ext
  26845. cat >>conftest.$ac_ext <<_ACEOF
  26846. /* end confdefs.h. */
  26847. $ac_includes_default
  26848. int
  26849. main ()
  26850. {
  26851. if (sizeof ((uint_t)))
  26852. return 0;
  26853. ;
  26854. return 0;
  26855. }
  26856. _ACEOF
  26857. rm -f conftest.$ac_objext
  26858. if { (ac_try="$ac_compile"
  26859. case "(($ac_try" in
  26860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26861. *) ac_try_echo=$ac_try;;
  26862. esac
  26863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26864. $as_echo "$ac_try_echo") >&5
  26865. (eval "$ac_compile") 2>conftest.er1
  26866. ac_status=$?
  26867. grep -v '^ *+' conftest.er1 >conftest.err
  26868. rm -f conftest.er1
  26869. cat conftest.err >&5
  26870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26871. (exit $ac_status); } && {
  26872. test -z "$ac_c_werror_flag" ||
  26873. test ! -s conftest.err
  26874. } && test -s conftest.$ac_objext; then
  26875. :
  26876. else
  26877. $as_echo "$as_me: failed program was:" >&5
  26878. sed 's/^/| /' conftest.$ac_ext >&5
  26879. ac_cv_type_uint_t=yes
  26880. fi
  26881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26882. else
  26883. $as_echo "$as_me: failed program was:" >&5
  26884. sed 's/^/| /' conftest.$ac_ext >&5
  26885. fi
  26886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26887. fi
  26888. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint_t" >&5
  26889. $as_echo "$ac_cv_type_uint_t" >&6; }
  26890. if test "x$ac_cv_type_uint_t" = x""yes; then
  26891. cat >>confdefs.h <<_ACEOF
  26892. #define HAVE_UINT_T 1
  26893. _ACEOF
  26894. fi
  26895. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  26896. $as_echo_n "checking for pid_t... " >&6; }
  26897. if test "${ac_cv_type_pid_t+set}" = set; then
  26898. $as_echo_n "(cached) " >&6
  26899. else
  26900. ac_cv_type_pid_t=no
  26901. cat >conftest.$ac_ext <<_ACEOF
  26902. /* confdefs.h. */
  26903. _ACEOF
  26904. cat confdefs.h >>conftest.$ac_ext
  26905. cat >>conftest.$ac_ext <<_ACEOF
  26906. /* end confdefs.h. */
  26907. $ac_includes_default
  26908. int
  26909. main ()
  26910. {
  26911. if (sizeof (pid_t))
  26912. return 0;
  26913. ;
  26914. return 0;
  26915. }
  26916. _ACEOF
  26917. rm -f conftest.$ac_objext
  26918. if { (ac_try="$ac_compile"
  26919. case "(($ac_try" in
  26920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26921. *) ac_try_echo=$ac_try;;
  26922. esac
  26923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26924. $as_echo "$ac_try_echo") >&5
  26925. (eval "$ac_compile") 2>conftest.er1
  26926. ac_status=$?
  26927. grep -v '^ *+' conftest.er1 >conftest.err
  26928. rm -f conftest.er1
  26929. cat conftest.err >&5
  26930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26931. (exit $ac_status); } && {
  26932. test -z "$ac_c_werror_flag" ||
  26933. test ! -s conftest.err
  26934. } && test -s conftest.$ac_objext; then
  26935. cat >conftest.$ac_ext <<_ACEOF
  26936. /* confdefs.h. */
  26937. _ACEOF
  26938. cat confdefs.h >>conftest.$ac_ext
  26939. cat >>conftest.$ac_ext <<_ACEOF
  26940. /* end confdefs.h. */
  26941. $ac_includes_default
  26942. int
  26943. main ()
  26944. {
  26945. if (sizeof ((pid_t)))
  26946. return 0;
  26947. ;
  26948. return 0;
  26949. }
  26950. _ACEOF
  26951. rm -f conftest.$ac_objext
  26952. if { (ac_try="$ac_compile"
  26953. case "(($ac_try" in
  26954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  26955. *) ac_try_echo=$ac_try;;
  26956. esac
  26957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  26958. $as_echo "$ac_try_echo") >&5
  26959. (eval "$ac_compile") 2>conftest.er1
  26960. ac_status=$?
  26961. grep -v '^ *+' conftest.er1 >conftest.err
  26962. rm -f conftest.er1
  26963. cat conftest.err >&5
  26964. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26965. (exit $ac_status); } && {
  26966. test -z "$ac_c_werror_flag" ||
  26967. test ! -s conftest.err
  26968. } && test -s conftest.$ac_objext; then
  26969. :
  26970. else
  26971. $as_echo "$as_me: failed program was:" >&5
  26972. sed 's/^/| /' conftest.$ac_ext >&5
  26973. ac_cv_type_pid_t=yes
  26974. fi
  26975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26976. else
  26977. $as_echo "$as_me: failed program was:" >&5
  26978. sed 's/^/| /' conftest.$ac_ext >&5
  26979. fi
  26980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26981. fi
  26982. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  26983. $as_echo "$ac_cv_type_pid_t" >&6; }
  26984. if test "x$ac_cv_type_pid_t" = x""yes; then
  26985. cat >>confdefs.h <<_ACEOF
  26986. #define HAVE_PID_T 1
  26987. _ACEOF
  26988. fi
  26989. # =====
  26990. # sizes
  26991. # =====
  26992. # The cast to long int works around a bug in the HP C Compiler
  26993. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  26994. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  26995. # This bug is HP SR number 8606223364.
  26996. { $as_echo "$as_me:$LINENO: checking size of char*" >&5
  26997. $as_echo_n "checking size of char*... " >&6; }
  26998. if test "${ac_cv_sizeof_charp+set}" = set; then
  26999. $as_echo_n "(cached) " >&6
  27000. else
  27001. if test "$cross_compiling" = yes; then
  27002. # Depending upon the size, compute the lo and hi bounds.
  27003. cat >conftest.$ac_ext <<_ACEOF
  27004. /* confdefs.h. */
  27005. _ACEOF
  27006. cat confdefs.h >>conftest.$ac_ext
  27007. cat >>conftest.$ac_ext <<_ACEOF
  27008. /* end confdefs.h. */
  27009. $ac_includes_default
  27010. int
  27011. main ()
  27012. {
  27013. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= 0)];
  27014. test_array [0] = 0
  27015. ;
  27016. return 0;
  27017. }
  27018. _ACEOF
  27019. rm -f conftest.$ac_objext
  27020. if { (ac_try="$ac_compile"
  27021. case "(($ac_try" in
  27022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27023. *) ac_try_echo=$ac_try;;
  27024. esac
  27025. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27026. $as_echo "$ac_try_echo") >&5
  27027. (eval "$ac_compile") 2>conftest.er1
  27028. ac_status=$?
  27029. grep -v '^ *+' conftest.er1 >conftest.err
  27030. rm -f conftest.er1
  27031. cat conftest.err >&5
  27032. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27033. (exit $ac_status); } && {
  27034. test -z "$ac_c_werror_flag" ||
  27035. test ! -s conftest.err
  27036. } && test -s conftest.$ac_objext; then
  27037. ac_lo=0 ac_mid=0
  27038. while :; do
  27039. cat >conftest.$ac_ext <<_ACEOF
  27040. /* confdefs.h. */
  27041. _ACEOF
  27042. cat confdefs.h >>conftest.$ac_ext
  27043. cat >>conftest.$ac_ext <<_ACEOF
  27044. /* end confdefs.h. */
  27045. $ac_includes_default
  27046. int
  27047. main ()
  27048. {
  27049. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  27050. test_array [0] = 0
  27051. ;
  27052. return 0;
  27053. }
  27054. _ACEOF
  27055. rm -f conftest.$ac_objext
  27056. if { (ac_try="$ac_compile"
  27057. case "(($ac_try" in
  27058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27059. *) ac_try_echo=$ac_try;;
  27060. esac
  27061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27062. $as_echo "$ac_try_echo") >&5
  27063. (eval "$ac_compile") 2>conftest.er1
  27064. ac_status=$?
  27065. grep -v '^ *+' conftest.er1 >conftest.err
  27066. rm -f conftest.er1
  27067. cat conftest.err >&5
  27068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27069. (exit $ac_status); } && {
  27070. test -z "$ac_c_werror_flag" ||
  27071. test ! -s conftest.err
  27072. } && test -s conftest.$ac_objext; then
  27073. ac_hi=$ac_mid; break
  27074. else
  27075. $as_echo "$as_me: failed program was:" >&5
  27076. sed 's/^/| /' conftest.$ac_ext >&5
  27077. ac_lo=`expr $ac_mid + 1`
  27078. if test $ac_lo -le $ac_mid; then
  27079. ac_lo= ac_hi=
  27080. break
  27081. fi
  27082. ac_mid=`expr 2 '*' $ac_mid + 1`
  27083. fi
  27084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27085. done
  27086. else
  27087. $as_echo "$as_me: failed program was:" >&5
  27088. sed 's/^/| /' conftest.$ac_ext >&5
  27089. cat >conftest.$ac_ext <<_ACEOF
  27090. /* confdefs.h. */
  27091. _ACEOF
  27092. cat confdefs.h >>conftest.$ac_ext
  27093. cat >>conftest.$ac_ext <<_ACEOF
  27094. /* end confdefs.h. */
  27095. $ac_includes_default
  27096. int
  27097. main ()
  27098. {
  27099. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) < 0)];
  27100. test_array [0] = 0
  27101. ;
  27102. return 0;
  27103. }
  27104. _ACEOF
  27105. rm -f conftest.$ac_objext
  27106. if { (ac_try="$ac_compile"
  27107. case "(($ac_try" in
  27108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27109. *) ac_try_echo=$ac_try;;
  27110. esac
  27111. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27112. $as_echo "$ac_try_echo") >&5
  27113. (eval "$ac_compile") 2>conftest.er1
  27114. ac_status=$?
  27115. grep -v '^ *+' conftest.er1 >conftest.err
  27116. rm -f conftest.er1
  27117. cat conftest.err >&5
  27118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27119. (exit $ac_status); } && {
  27120. test -z "$ac_c_werror_flag" ||
  27121. test ! -s conftest.err
  27122. } && test -s conftest.$ac_objext; then
  27123. ac_hi=-1 ac_mid=-1
  27124. while :; do
  27125. cat >conftest.$ac_ext <<_ACEOF
  27126. /* confdefs.h. */
  27127. _ACEOF
  27128. cat confdefs.h >>conftest.$ac_ext
  27129. cat >>conftest.$ac_ext <<_ACEOF
  27130. /* end confdefs.h. */
  27131. $ac_includes_default
  27132. int
  27133. main ()
  27134. {
  27135. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) >= $ac_mid)];
  27136. test_array [0] = 0
  27137. ;
  27138. return 0;
  27139. }
  27140. _ACEOF
  27141. rm -f conftest.$ac_objext
  27142. if { (ac_try="$ac_compile"
  27143. case "(($ac_try" in
  27144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27145. *) ac_try_echo=$ac_try;;
  27146. esac
  27147. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27148. $as_echo "$ac_try_echo") >&5
  27149. (eval "$ac_compile") 2>conftest.er1
  27150. ac_status=$?
  27151. grep -v '^ *+' conftest.er1 >conftest.err
  27152. rm -f conftest.er1
  27153. cat conftest.err >&5
  27154. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27155. (exit $ac_status); } && {
  27156. test -z "$ac_c_werror_flag" ||
  27157. test ! -s conftest.err
  27158. } && test -s conftest.$ac_objext; then
  27159. ac_lo=$ac_mid; break
  27160. else
  27161. $as_echo "$as_me: failed program was:" >&5
  27162. sed 's/^/| /' conftest.$ac_ext >&5
  27163. ac_hi=`expr '(' $ac_mid ')' - 1`
  27164. if test $ac_mid -le $ac_hi; then
  27165. ac_lo= ac_hi=
  27166. break
  27167. fi
  27168. ac_mid=`expr 2 '*' $ac_mid`
  27169. fi
  27170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27171. done
  27172. else
  27173. $as_echo "$as_me: failed program was:" >&5
  27174. sed 's/^/| /' conftest.$ac_ext >&5
  27175. ac_lo= ac_hi=
  27176. fi
  27177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27178. fi
  27179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27180. # Binary search between lo and hi bounds.
  27181. while test "x$ac_lo" != "x$ac_hi"; do
  27182. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27183. cat >conftest.$ac_ext <<_ACEOF
  27184. /* confdefs.h. */
  27185. _ACEOF
  27186. cat confdefs.h >>conftest.$ac_ext
  27187. cat >>conftest.$ac_ext <<_ACEOF
  27188. /* end confdefs.h. */
  27189. $ac_includes_default
  27190. int
  27191. main ()
  27192. {
  27193. static int test_array [1 - 2 * !(((long int) (sizeof (char*))) <= $ac_mid)];
  27194. test_array [0] = 0
  27195. ;
  27196. return 0;
  27197. }
  27198. _ACEOF
  27199. rm -f conftest.$ac_objext
  27200. if { (ac_try="$ac_compile"
  27201. case "(($ac_try" in
  27202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27203. *) ac_try_echo=$ac_try;;
  27204. esac
  27205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27206. $as_echo "$ac_try_echo") >&5
  27207. (eval "$ac_compile") 2>conftest.er1
  27208. ac_status=$?
  27209. grep -v '^ *+' conftest.er1 >conftest.err
  27210. rm -f conftest.er1
  27211. cat conftest.err >&5
  27212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27213. (exit $ac_status); } && {
  27214. test -z "$ac_c_werror_flag" ||
  27215. test ! -s conftest.err
  27216. } && test -s conftest.$ac_objext; then
  27217. ac_hi=$ac_mid
  27218. else
  27219. $as_echo "$as_me: failed program was:" >&5
  27220. sed 's/^/| /' conftest.$ac_ext >&5
  27221. ac_lo=`expr '(' $ac_mid ')' + 1`
  27222. fi
  27223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27224. done
  27225. case $ac_lo in
  27226. ?*) ac_cv_sizeof_charp=$ac_lo;;
  27227. '') if test "$ac_cv_type_charp" = yes; then
  27228. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27229. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27230. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  27231. See \`config.log' for more details." >&5
  27232. $as_echo "$as_me: error: cannot compute sizeof (char*)
  27233. See \`config.log' for more details." >&2;}
  27234. { (exit 77); exit 77; }; }; }
  27235. else
  27236. ac_cv_sizeof_charp=0
  27237. fi ;;
  27238. esac
  27239. else
  27240. cat >conftest.$ac_ext <<_ACEOF
  27241. /* confdefs.h. */
  27242. _ACEOF
  27243. cat confdefs.h >>conftest.$ac_ext
  27244. cat >>conftest.$ac_ext <<_ACEOF
  27245. /* end confdefs.h. */
  27246. $ac_includes_default
  27247. static long int longval () { return (long int) (sizeof (char*)); }
  27248. static unsigned long int ulongval () { return (long int) (sizeof (char*)); }
  27249. #include <stdio.h>
  27250. #include <stdlib.h>
  27251. int
  27252. main ()
  27253. {
  27254. FILE *f = fopen ("conftest.val", "w");
  27255. if (! f)
  27256. return 1;
  27257. if (((long int) (sizeof (char*))) < 0)
  27258. {
  27259. long int i = longval ();
  27260. if (i != ((long int) (sizeof (char*))))
  27261. return 1;
  27262. fprintf (f, "%ld", i);
  27263. }
  27264. else
  27265. {
  27266. unsigned long int i = ulongval ();
  27267. if (i != ((long int) (sizeof (char*))))
  27268. return 1;
  27269. fprintf (f, "%lu", i);
  27270. }
  27271. /* Do not output a trailing newline, as this causes \r\n confusion
  27272. on some platforms. */
  27273. return ferror (f) || fclose (f) != 0;
  27274. ;
  27275. return 0;
  27276. }
  27277. _ACEOF
  27278. rm -f conftest$ac_exeext
  27279. if { (ac_try="$ac_link"
  27280. case "(($ac_try" in
  27281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27282. *) ac_try_echo=$ac_try;;
  27283. esac
  27284. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27285. $as_echo "$ac_try_echo") >&5
  27286. (eval "$ac_link") 2>&5
  27287. ac_status=$?
  27288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27289. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27290. { (case "(($ac_try" in
  27291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27292. *) ac_try_echo=$ac_try;;
  27293. esac
  27294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27295. $as_echo "$ac_try_echo") >&5
  27296. (eval "$ac_try") 2>&5
  27297. ac_status=$?
  27298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27299. (exit $ac_status); }; }; then
  27300. ac_cv_sizeof_charp=`cat conftest.val`
  27301. else
  27302. $as_echo "$as_me: program exited with status $ac_status" >&5
  27303. $as_echo "$as_me: failed program was:" >&5
  27304. sed 's/^/| /' conftest.$ac_ext >&5
  27305. ( exit $ac_status )
  27306. if test "$ac_cv_type_charp" = yes; then
  27307. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27308. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27309. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char*)
  27310. See \`config.log' for more details." >&5
  27311. $as_echo "$as_me: error: cannot compute sizeof (char*)
  27312. See \`config.log' for more details." >&2;}
  27313. { (exit 77); exit 77; }; }; }
  27314. else
  27315. ac_cv_sizeof_charp=0
  27316. fi
  27317. fi
  27318. rm -rf conftest.dSYM
  27319. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27320. fi
  27321. rm -f conftest.val
  27322. fi
  27323. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
  27324. $as_echo "$ac_cv_sizeof_charp" >&6; }
  27325. cat >>confdefs.h <<_ACEOF
  27326. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  27327. _ACEOF
  27328. # The cast to long int works around a bug in the HP C Compiler
  27329. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27330. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27331. # This bug is HP SR number 8606223364.
  27332. { $as_echo "$as_me:$LINENO: checking size of int" >&5
  27333. $as_echo_n "checking size of int... " >&6; }
  27334. if test "${ac_cv_sizeof_int+set}" = set; then
  27335. $as_echo_n "(cached) " >&6
  27336. else
  27337. if test "$cross_compiling" = yes; then
  27338. # Depending upon the size, compute the lo and hi bounds.
  27339. cat >conftest.$ac_ext <<_ACEOF
  27340. /* confdefs.h. */
  27341. _ACEOF
  27342. cat confdefs.h >>conftest.$ac_ext
  27343. cat >>conftest.$ac_ext <<_ACEOF
  27344. /* end confdefs.h. */
  27345. $ac_includes_default
  27346. int
  27347. main ()
  27348. {
  27349. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
  27350. test_array [0] = 0
  27351. ;
  27352. return 0;
  27353. }
  27354. _ACEOF
  27355. rm -f conftest.$ac_objext
  27356. if { (ac_try="$ac_compile"
  27357. case "(($ac_try" in
  27358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27359. *) ac_try_echo=$ac_try;;
  27360. esac
  27361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27362. $as_echo "$ac_try_echo") >&5
  27363. (eval "$ac_compile") 2>conftest.er1
  27364. ac_status=$?
  27365. grep -v '^ *+' conftest.er1 >conftest.err
  27366. rm -f conftest.er1
  27367. cat conftest.err >&5
  27368. $as_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_objext; then
  27373. ac_lo=0 ac_mid=0
  27374. while :; do
  27375. cat >conftest.$ac_ext <<_ACEOF
  27376. /* confdefs.h. */
  27377. _ACEOF
  27378. cat confdefs.h >>conftest.$ac_ext
  27379. cat >>conftest.$ac_ext <<_ACEOF
  27380. /* end confdefs.h. */
  27381. $ac_includes_default
  27382. int
  27383. main ()
  27384. {
  27385. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  27386. test_array [0] = 0
  27387. ;
  27388. return 0;
  27389. }
  27390. _ACEOF
  27391. rm -f conftest.$ac_objext
  27392. if { (ac_try="$ac_compile"
  27393. case "(($ac_try" in
  27394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27395. *) ac_try_echo=$ac_try;;
  27396. esac
  27397. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27398. $as_echo "$ac_try_echo") >&5
  27399. (eval "$ac_compile") 2>conftest.er1
  27400. ac_status=$?
  27401. grep -v '^ *+' conftest.er1 >conftest.err
  27402. rm -f conftest.er1
  27403. cat conftest.err >&5
  27404. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27405. (exit $ac_status); } && {
  27406. test -z "$ac_c_werror_flag" ||
  27407. test ! -s conftest.err
  27408. } && test -s conftest.$ac_objext; then
  27409. ac_hi=$ac_mid; break
  27410. else
  27411. $as_echo "$as_me: failed program was:" >&5
  27412. sed 's/^/| /' conftest.$ac_ext >&5
  27413. ac_lo=`expr $ac_mid + 1`
  27414. if test $ac_lo -le $ac_mid; then
  27415. ac_lo= ac_hi=
  27416. break
  27417. fi
  27418. ac_mid=`expr 2 '*' $ac_mid + 1`
  27419. fi
  27420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27421. done
  27422. else
  27423. $as_echo "$as_me: failed program was:" >&5
  27424. sed 's/^/| /' conftest.$ac_ext >&5
  27425. cat >conftest.$ac_ext <<_ACEOF
  27426. /* confdefs.h. */
  27427. _ACEOF
  27428. cat confdefs.h >>conftest.$ac_ext
  27429. cat >>conftest.$ac_ext <<_ACEOF
  27430. /* end confdefs.h. */
  27431. $ac_includes_default
  27432. int
  27433. main ()
  27434. {
  27435. static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
  27436. test_array [0] = 0
  27437. ;
  27438. return 0;
  27439. }
  27440. _ACEOF
  27441. rm -f conftest.$ac_objext
  27442. if { (ac_try="$ac_compile"
  27443. case "(($ac_try" in
  27444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27445. *) ac_try_echo=$ac_try;;
  27446. esac
  27447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27448. $as_echo "$ac_try_echo") >&5
  27449. (eval "$ac_compile") 2>conftest.er1
  27450. ac_status=$?
  27451. grep -v '^ *+' conftest.er1 >conftest.err
  27452. rm -f conftest.er1
  27453. cat conftest.err >&5
  27454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27455. (exit $ac_status); } && {
  27456. test -z "$ac_c_werror_flag" ||
  27457. test ! -s conftest.err
  27458. } && test -s conftest.$ac_objext; then
  27459. ac_hi=-1 ac_mid=-1
  27460. while :; do
  27461. cat >conftest.$ac_ext <<_ACEOF
  27462. /* confdefs.h. */
  27463. _ACEOF
  27464. cat confdefs.h >>conftest.$ac_ext
  27465. cat >>conftest.$ac_ext <<_ACEOF
  27466. /* end confdefs.h. */
  27467. $ac_includes_default
  27468. int
  27469. main ()
  27470. {
  27471. static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
  27472. test_array [0] = 0
  27473. ;
  27474. return 0;
  27475. }
  27476. _ACEOF
  27477. rm -f conftest.$ac_objext
  27478. if { (ac_try="$ac_compile"
  27479. case "(($ac_try" in
  27480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27481. *) ac_try_echo=$ac_try;;
  27482. esac
  27483. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27484. $as_echo "$ac_try_echo") >&5
  27485. (eval "$ac_compile") 2>conftest.er1
  27486. ac_status=$?
  27487. grep -v '^ *+' conftest.er1 >conftest.err
  27488. rm -f conftest.er1
  27489. cat conftest.err >&5
  27490. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27491. (exit $ac_status); } && {
  27492. test -z "$ac_c_werror_flag" ||
  27493. test ! -s conftest.err
  27494. } && test -s conftest.$ac_objext; then
  27495. ac_lo=$ac_mid; break
  27496. else
  27497. $as_echo "$as_me: failed program was:" >&5
  27498. sed 's/^/| /' conftest.$ac_ext >&5
  27499. ac_hi=`expr '(' $ac_mid ')' - 1`
  27500. if test $ac_mid -le $ac_hi; then
  27501. ac_lo= ac_hi=
  27502. break
  27503. fi
  27504. ac_mid=`expr 2 '*' $ac_mid`
  27505. fi
  27506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27507. done
  27508. else
  27509. $as_echo "$as_me: failed program was:" >&5
  27510. sed 's/^/| /' conftest.$ac_ext >&5
  27511. ac_lo= ac_hi=
  27512. fi
  27513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27514. fi
  27515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27516. # Binary search between lo and hi bounds.
  27517. while test "x$ac_lo" != "x$ac_hi"; do
  27518. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27519. cat >conftest.$ac_ext <<_ACEOF
  27520. /* confdefs.h. */
  27521. _ACEOF
  27522. cat confdefs.h >>conftest.$ac_ext
  27523. cat >>conftest.$ac_ext <<_ACEOF
  27524. /* end confdefs.h. */
  27525. $ac_includes_default
  27526. int
  27527. main ()
  27528. {
  27529. static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
  27530. test_array [0] = 0
  27531. ;
  27532. return 0;
  27533. }
  27534. _ACEOF
  27535. rm -f conftest.$ac_objext
  27536. if { (ac_try="$ac_compile"
  27537. case "(($ac_try" in
  27538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27539. *) ac_try_echo=$ac_try;;
  27540. esac
  27541. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27542. $as_echo "$ac_try_echo") >&5
  27543. (eval "$ac_compile") 2>conftest.er1
  27544. ac_status=$?
  27545. grep -v '^ *+' conftest.er1 >conftest.err
  27546. rm -f conftest.er1
  27547. cat conftest.err >&5
  27548. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27549. (exit $ac_status); } && {
  27550. test -z "$ac_c_werror_flag" ||
  27551. test ! -s conftest.err
  27552. } && test -s conftest.$ac_objext; then
  27553. ac_hi=$ac_mid
  27554. else
  27555. $as_echo "$as_me: failed program was:" >&5
  27556. sed 's/^/| /' conftest.$ac_ext >&5
  27557. ac_lo=`expr '(' $ac_mid ')' + 1`
  27558. fi
  27559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27560. done
  27561. case $ac_lo in
  27562. ?*) ac_cv_sizeof_int=$ac_lo;;
  27563. '') if test "$ac_cv_type_int" = yes; then
  27564. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27565. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27566. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  27567. See \`config.log' for more details." >&5
  27568. $as_echo "$as_me: error: cannot compute sizeof (int)
  27569. See \`config.log' for more details." >&2;}
  27570. { (exit 77); exit 77; }; }; }
  27571. else
  27572. ac_cv_sizeof_int=0
  27573. fi ;;
  27574. esac
  27575. else
  27576. cat >conftest.$ac_ext <<_ACEOF
  27577. /* confdefs.h. */
  27578. _ACEOF
  27579. cat confdefs.h >>conftest.$ac_ext
  27580. cat >>conftest.$ac_ext <<_ACEOF
  27581. /* end confdefs.h. */
  27582. $ac_includes_default
  27583. static long int longval () { return (long int) (sizeof (int)); }
  27584. static unsigned long int ulongval () { return (long int) (sizeof (int)); }
  27585. #include <stdio.h>
  27586. #include <stdlib.h>
  27587. int
  27588. main ()
  27589. {
  27590. FILE *f = fopen ("conftest.val", "w");
  27591. if (! f)
  27592. return 1;
  27593. if (((long int) (sizeof (int))) < 0)
  27594. {
  27595. long int i = longval ();
  27596. if (i != ((long int) (sizeof (int))))
  27597. return 1;
  27598. fprintf (f, "%ld", i);
  27599. }
  27600. else
  27601. {
  27602. unsigned long int i = ulongval ();
  27603. if (i != ((long int) (sizeof (int))))
  27604. return 1;
  27605. fprintf (f, "%lu", i);
  27606. }
  27607. /* Do not output a trailing newline, as this causes \r\n confusion
  27608. on some platforms. */
  27609. return ferror (f) || fclose (f) != 0;
  27610. ;
  27611. return 0;
  27612. }
  27613. _ACEOF
  27614. rm -f conftest$ac_exeext
  27615. if { (ac_try="$ac_link"
  27616. case "(($ac_try" in
  27617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27618. *) ac_try_echo=$ac_try;;
  27619. esac
  27620. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27621. $as_echo "$ac_try_echo") >&5
  27622. (eval "$ac_link") 2>&5
  27623. ac_status=$?
  27624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27625. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27626. { (case "(($ac_try" in
  27627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27628. *) ac_try_echo=$ac_try;;
  27629. esac
  27630. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27631. $as_echo "$ac_try_echo") >&5
  27632. (eval "$ac_try") 2>&5
  27633. ac_status=$?
  27634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27635. (exit $ac_status); }; }; then
  27636. ac_cv_sizeof_int=`cat conftest.val`
  27637. else
  27638. $as_echo "$as_me: program exited with status $ac_status" >&5
  27639. $as_echo "$as_me: failed program was:" >&5
  27640. sed 's/^/| /' conftest.$ac_ext >&5
  27641. ( exit $ac_status )
  27642. if test "$ac_cv_type_int" = yes; then
  27643. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27644. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27645. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  27646. See \`config.log' for more details." >&5
  27647. $as_echo "$as_me: error: cannot compute sizeof (int)
  27648. See \`config.log' for more details." >&2;}
  27649. { (exit 77); exit 77; }; }; }
  27650. else
  27651. ac_cv_sizeof_int=0
  27652. fi
  27653. fi
  27654. rm -rf conftest.dSYM
  27655. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27656. fi
  27657. rm -f conftest.val
  27658. fi
  27659. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  27660. $as_echo "$ac_cv_sizeof_int" >&6; }
  27661. cat >>confdefs.h <<_ACEOF
  27662. #define SIZEOF_INT $ac_cv_sizeof_int
  27663. _ACEOF
  27664. # The cast to long int works around a bug in the HP C Compiler
  27665. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  27666. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  27667. # This bug is HP SR number 8606223364.
  27668. { $as_echo "$as_me:$LINENO: checking size of long" >&5
  27669. $as_echo_n "checking size of long... " >&6; }
  27670. if test "${ac_cv_sizeof_long+set}" = set; then
  27671. $as_echo_n "(cached) " >&6
  27672. else
  27673. if test "$cross_compiling" = yes; then
  27674. # Depending upon the size, compute the lo and hi bounds.
  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. $ac_includes_default
  27682. int
  27683. main ()
  27684. {
  27685. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
  27686. test_array [0] = 0
  27687. ;
  27688. return 0;
  27689. }
  27690. _ACEOF
  27691. rm -f conftest.$ac_objext
  27692. if { (ac_try="$ac_compile"
  27693. case "(($ac_try" in
  27694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27695. *) ac_try_echo=$ac_try;;
  27696. esac
  27697. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27698. $as_echo "$ac_try_echo") >&5
  27699. (eval "$ac_compile") 2>conftest.er1
  27700. ac_status=$?
  27701. grep -v '^ *+' conftest.er1 >conftest.err
  27702. rm -f conftest.er1
  27703. cat conftest.err >&5
  27704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27705. (exit $ac_status); } && {
  27706. test -z "$ac_c_werror_flag" ||
  27707. test ! -s conftest.err
  27708. } && test -s conftest.$ac_objext; then
  27709. ac_lo=0 ac_mid=0
  27710. while :; do
  27711. cat >conftest.$ac_ext <<_ACEOF
  27712. /* confdefs.h. */
  27713. _ACEOF
  27714. cat confdefs.h >>conftest.$ac_ext
  27715. cat >>conftest.$ac_ext <<_ACEOF
  27716. /* end confdefs.h. */
  27717. $ac_includes_default
  27718. int
  27719. main ()
  27720. {
  27721. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  27722. test_array [0] = 0
  27723. ;
  27724. return 0;
  27725. }
  27726. _ACEOF
  27727. rm -f conftest.$ac_objext
  27728. if { (ac_try="$ac_compile"
  27729. case "(($ac_try" in
  27730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27731. *) ac_try_echo=$ac_try;;
  27732. esac
  27733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27734. $as_echo "$ac_try_echo") >&5
  27735. (eval "$ac_compile") 2>conftest.er1
  27736. ac_status=$?
  27737. grep -v '^ *+' conftest.er1 >conftest.err
  27738. rm -f conftest.er1
  27739. cat conftest.err >&5
  27740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27741. (exit $ac_status); } && {
  27742. test -z "$ac_c_werror_flag" ||
  27743. test ! -s conftest.err
  27744. } && test -s conftest.$ac_objext; then
  27745. ac_hi=$ac_mid; break
  27746. else
  27747. $as_echo "$as_me: failed program was:" >&5
  27748. sed 's/^/| /' conftest.$ac_ext >&5
  27749. ac_lo=`expr $ac_mid + 1`
  27750. if test $ac_lo -le $ac_mid; then
  27751. ac_lo= ac_hi=
  27752. break
  27753. fi
  27754. ac_mid=`expr 2 '*' $ac_mid + 1`
  27755. fi
  27756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27757. done
  27758. else
  27759. $as_echo "$as_me: failed program was:" >&5
  27760. sed 's/^/| /' conftest.$ac_ext >&5
  27761. cat >conftest.$ac_ext <<_ACEOF
  27762. /* confdefs.h. */
  27763. _ACEOF
  27764. cat confdefs.h >>conftest.$ac_ext
  27765. cat >>conftest.$ac_ext <<_ACEOF
  27766. /* end confdefs.h. */
  27767. $ac_includes_default
  27768. int
  27769. main ()
  27770. {
  27771. static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
  27772. test_array [0] = 0
  27773. ;
  27774. return 0;
  27775. }
  27776. _ACEOF
  27777. rm -f conftest.$ac_objext
  27778. if { (ac_try="$ac_compile"
  27779. case "(($ac_try" in
  27780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27781. *) ac_try_echo=$ac_try;;
  27782. esac
  27783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27784. $as_echo "$ac_try_echo") >&5
  27785. (eval "$ac_compile") 2>conftest.er1
  27786. ac_status=$?
  27787. grep -v '^ *+' conftest.er1 >conftest.err
  27788. rm -f conftest.er1
  27789. cat conftest.err >&5
  27790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27791. (exit $ac_status); } && {
  27792. test -z "$ac_c_werror_flag" ||
  27793. test ! -s conftest.err
  27794. } && test -s conftest.$ac_objext; then
  27795. ac_hi=-1 ac_mid=-1
  27796. while :; do
  27797. cat >conftest.$ac_ext <<_ACEOF
  27798. /* confdefs.h. */
  27799. _ACEOF
  27800. cat confdefs.h >>conftest.$ac_ext
  27801. cat >>conftest.$ac_ext <<_ACEOF
  27802. /* end confdefs.h. */
  27803. $ac_includes_default
  27804. int
  27805. main ()
  27806. {
  27807. static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
  27808. test_array [0] = 0
  27809. ;
  27810. return 0;
  27811. }
  27812. _ACEOF
  27813. rm -f conftest.$ac_objext
  27814. if { (ac_try="$ac_compile"
  27815. case "(($ac_try" in
  27816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27817. *) ac_try_echo=$ac_try;;
  27818. esac
  27819. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27820. $as_echo "$ac_try_echo") >&5
  27821. (eval "$ac_compile") 2>conftest.er1
  27822. ac_status=$?
  27823. grep -v '^ *+' conftest.er1 >conftest.err
  27824. rm -f conftest.er1
  27825. cat conftest.err >&5
  27826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27827. (exit $ac_status); } && {
  27828. test -z "$ac_c_werror_flag" ||
  27829. test ! -s conftest.err
  27830. } && test -s conftest.$ac_objext; then
  27831. ac_lo=$ac_mid; break
  27832. else
  27833. $as_echo "$as_me: failed program was:" >&5
  27834. sed 's/^/| /' conftest.$ac_ext >&5
  27835. ac_hi=`expr '(' $ac_mid ')' - 1`
  27836. if test $ac_mid -le $ac_hi; then
  27837. ac_lo= ac_hi=
  27838. break
  27839. fi
  27840. ac_mid=`expr 2 '*' $ac_mid`
  27841. fi
  27842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27843. done
  27844. else
  27845. $as_echo "$as_me: failed program was:" >&5
  27846. sed 's/^/| /' conftest.$ac_ext >&5
  27847. ac_lo= ac_hi=
  27848. fi
  27849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27850. fi
  27851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27852. # Binary search between lo and hi bounds.
  27853. while test "x$ac_lo" != "x$ac_hi"; do
  27854. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  27855. cat >conftest.$ac_ext <<_ACEOF
  27856. /* confdefs.h. */
  27857. _ACEOF
  27858. cat confdefs.h >>conftest.$ac_ext
  27859. cat >>conftest.$ac_ext <<_ACEOF
  27860. /* end confdefs.h. */
  27861. $ac_includes_default
  27862. int
  27863. main ()
  27864. {
  27865. static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
  27866. test_array [0] = 0
  27867. ;
  27868. return 0;
  27869. }
  27870. _ACEOF
  27871. rm -f conftest.$ac_objext
  27872. if { (ac_try="$ac_compile"
  27873. case "(($ac_try" in
  27874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27875. *) ac_try_echo=$ac_try;;
  27876. esac
  27877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27878. $as_echo "$ac_try_echo") >&5
  27879. (eval "$ac_compile") 2>conftest.er1
  27880. ac_status=$?
  27881. grep -v '^ *+' conftest.er1 >conftest.err
  27882. rm -f conftest.er1
  27883. cat conftest.err >&5
  27884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27885. (exit $ac_status); } && {
  27886. test -z "$ac_c_werror_flag" ||
  27887. test ! -s conftest.err
  27888. } && test -s conftest.$ac_objext; then
  27889. ac_hi=$ac_mid
  27890. else
  27891. $as_echo "$as_me: failed program was:" >&5
  27892. sed 's/^/| /' conftest.$ac_ext >&5
  27893. ac_lo=`expr '(' $ac_mid ')' + 1`
  27894. fi
  27895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27896. done
  27897. case $ac_lo in
  27898. ?*) ac_cv_sizeof_long=$ac_lo;;
  27899. '') if test "$ac_cv_type_long" = yes; then
  27900. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27901. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27902. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27903. See \`config.log' for more details." >&5
  27904. $as_echo "$as_me: error: cannot compute sizeof (long)
  27905. See \`config.log' for more details." >&2;}
  27906. { (exit 77); exit 77; }; }; }
  27907. else
  27908. ac_cv_sizeof_long=0
  27909. fi ;;
  27910. esac
  27911. else
  27912. cat >conftest.$ac_ext <<_ACEOF
  27913. /* confdefs.h. */
  27914. _ACEOF
  27915. cat confdefs.h >>conftest.$ac_ext
  27916. cat >>conftest.$ac_ext <<_ACEOF
  27917. /* end confdefs.h. */
  27918. $ac_includes_default
  27919. static long int longval () { return (long int) (sizeof (long)); }
  27920. static unsigned long int ulongval () { return (long int) (sizeof (long)); }
  27921. #include <stdio.h>
  27922. #include <stdlib.h>
  27923. int
  27924. main ()
  27925. {
  27926. FILE *f = fopen ("conftest.val", "w");
  27927. if (! f)
  27928. return 1;
  27929. if (((long int) (sizeof (long))) < 0)
  27930. {
  27931. long int i = longval ();
  27932. if (i != ((long int) (sizeof (long))))
  27933. return 1;
  27934. fprintf (f, "%ld", i);
  27935. }
  27936. else
  27937. {
  27938. unsigned long int i = ulongval ();
  27939. if (i != ((long int) (sizeof (long))))
  27940. return 1;
  27941. fprintf (f, "%lu", i);
  27942. }
  27943. /* Do not output a trailing newline, as this causes \r\n confusion
  27944. on some platforms. */
  27945. return ferror (f) || fclose (f) != 0;
  27946. ;
  27947. return 0;
  27948. }
  27949. _ACEOF
  27950. rm -f conftest$ac_exeext
  27951. if { (ac_try="$ac_link"
  27952. case "(($ac_try" in
  27953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27954. *) ac_try_echo=$ac_try;;
  27955. esac
  27956. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27957. $as_echo "$ac_try_echo") >&5
  27958. (eval "$ac_link") 2>&5
  27959. ac_status=$?
  27960. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27961. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  27962. { (case "(($ac_try" in
  27963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  27964. *) ac_try_echo=$ac_try;;
  27965. esac
  27966. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  27967. $as_echo "$ac_try_echo") >&5
  27968. (eval "$ac_try") 2>&5
  27969. ac_status=$?
  27970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27971. (exit $ac_status); }; }; then
  27972. ac_cv_sizeof_long=`cat conftest.val`
  27973. else
  27974. $as_echo "$as_me: program exited with status $ac_status" >&5
  27975. $as_echo "$as_me: failed program was:" >&5
  27976. sed 's/^/| /' conftest.$ac_ext >&5
  27977. ( exit $ac_status )
  27978. if test "$ac_cv_type_long" = yes; then
  27979. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  27980. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27981. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  27982. See \`config.log' for more details." >&5
  27983. $as_echo "$as_me: error: cannot compute sizeof (long)
  27984. See \`config.log' for more details." >&2;}
  27985. { (exit 77); exit 77; }; }; }
  27986. else
  27987. ac_cv_sizeof_long=0
  27988. fi
  27989. fi
  27990. rm -rf conftest.dSYM
  27991. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  27992. fi
  27993. rm -f conftest.val
  27994. fi
  27995. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  27996. $as_echo "$ac_cv_sizeof_long" >&6; }
  27997. cat >>confdefs.h <<_ACEOF
  27998. #define SIZEOF_LONG $ac_cv_sizeof_long
  27999. _ACEOF
  28000. # The cast to long int works around a bug in the HP C Compiler
  28001. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  28002. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  28003. # This bug is HP SR number 8606223364.
  28004. { $as_echo "$as_me:$LINENO: checking size of short" >&5
  28005. $as_echo_n "checking size of short... " >&6; }
  28006. if test "${ac_cv_sizeof_short+set}" = set; then
  28007. $as_echo_n "(cached) " >&6
  28008. else
  28009. if test "$cross_compiling" = yes; then
  28010. # Depending upon the size, compute the lo and hi bounds.
  28011. cat >conftest.$ac_ext <<_ACEOF
  28012. /* confdefs.h. */
  28013. _ACEOF
  28014. cat confdefs.h >>conftest.$ac_ext
  28015. cat >>conftest.$ac_ext <<_ACEOF
  28016. /* end confdefs.h. */
  28017. $ac_includes_default
  28018. int
  28019. main ()
  28020. {
  28021. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
  28022. test_array [0] = 0
  28023. ;
  28024. return 0;
  28025. }
  28026. _ACEOF
  28027. rm -f conftest.$ac_objext
  28028. if { (ac_try="$ac_compile"
  28029. case "(($ac_try" in
  28030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28031. *) ac_try_echo=$ac_try;;
  28032. esac
  28033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28034. $as_echo "$ac_try_echo") >&5
  28035. (eval "$ac_compile") 2>conftest.er1
  28036. ac_status=$?
  28037. grep -v '^ *+' conftest.er1 >conftest.err
  28038. rm -f conftest.er1
  28039. cat conftest.err >&5
  28040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28041. (exit $ac_status); } && {
  28042. test -z "$ac_c_werror_flag" ||
  28043. test ! -s conftest.err
  28044. } && test -s conftest.$ac_objext; then
  28045. ac_lo=0 ac_mid=0
  28046. while :; do
  28047. cat >conftest.$ac_ext <<_ACEOF
  28048. /* confdefs.h. */
  28049. _ACEOF
  28050. cat confdefs.h >>conftest.$ac_ext
  28051. cat >>conftest.$ac_ext <<_ACEOF
  28052. /* end confdefs.h. */
  28053. $ac_includes_default
  28054. int
  28055. main ()
  28056. {
  28057. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  28058. test_array [0] = 0
  28059. ;
  28060. return 0;
  28061. }
  28062. _ACEOF
  28063. rm -f conftest.$ac_objext
  28064. if { (ac_try="$ac_compile"
  28065. case "(($ac_try" in
  28066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28067. *) ac_try_echo=$ac_try;;
  28068. esac
  28069. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28070. $as_echo "$ac_try_echo") >&5
  28071. (eval "$ac_compile") 2>conftest.er1
  28072. ac_status=$?
  28073. grep -v '^ *+' conftest.er1 >conftest.err
  28074. rm -f conftest.er1
  28075. cat conftest.err >&5
  28076. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28077. (exit $ac_status); } && {
  28078. test -z "$ac_c_werror_flag" ||
  28079. test ! -s conftest.err
  28080. } && test -s conftest.$ac_objext; then
  28081. ac_hi=$ac_mid; break
  28082. else
  28083. $as_echo "$as_me: failed program was:" >&5
  28084. sed 's/^/| /' conftest.$ac_ext >&5
  28085. ac_lo=`expr $ac_mid + 1`
  28086. if test $ac_lo -le $ac_mid; then
  28087. ac_lo= ac_hi=
  28088. break
  28089. fi
  28090. ac_mid=`expr 2 '*' $ac_mid + 1`
  28091. fi
  28092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28093. done
  28094. else
  28095. $as_echo "$as_me: failed program was:" >&5
  28096. sed 's/^/| /' conftest.$ac_ext >&5
  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. $ac_includes_default
  28104. int
  28105. main ()
  28106. {
  28107. static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
  28108. test_array [0] = 0
  28109. ;
  28110. return 0;
  28111. }
  28112. _ACEOF
  28113. rm -f conftest.$ac_objext
  28114. if { (ac_try="$ac_compile"
  28115. case "(($ac_try" in
  28116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28117. *) ac_try_echo=$ac_try;;
  28118. esac
  28119. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28120. $as_echo "$ac_try_echo") >&5
  28121. (eval "$ac_compile") 2>conftest.er1
  28122. ac_status=$?
  28123. grep -v '^ *+' conftest.er1 >conftest.err
  28124. rm -f conftest.er1
  28125. cat conftest.err >&5
  28126. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28127. (exit $ac_status); } && {
  28128. test -z "$ac_c_werror_flag" ||
  28129. test ! -s conftest.err
  28130. } && test -s conftest.$ac_objext; then
  28131. ac_hi=-1 ac_mid=-1
  28132. while :; do
  28133. cat >conftest.$ac_ext <<_ACEOF
  28134. /* confdefs.h. */
  28135. _ACEOF
  28136. cat confdefs.h >>conftest.$ac_ext
  28137. cat >>conftest.$ac_ext <<_ACEOF
  28138. /* end confdefs.h. */
  28139. $ac_includes_default
  28140. int
  28141. main ()
  28142. {
  28143. static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
  28144. test_array [0] = 0
  28145. ;
  28146. return 0;
  28147. }
  28148. _ACEOF
  28149. rm -f conftest.$ac_objext
  28150. if { (ac_try="$ac_compile"
  28151. case "(($ac_try" in
  28152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28153. *) ac_try_echo=$ac_try;;
  28154. esac
  28155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28156. $as_echo "$ac_try_echo") >&5
  28157. (eval "$ac_compile") 2>conftest.er1
  28158. ac_status=$?
  28159. grep -v '^ *+' conftest.er1 >conftest.err
  28160. rm -f conftest.er1
  28161. cat conftest.err >&5
  28162. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28163. (exit $ac_status); } && {
  28164. test -z "$ac_c_werror_flag" ||
  28165. test ! -s conftest.err
  28166. } && test -s conftest.$ac_objext; then
  28167. ac_lo=$ac_mid; break
  28168. else
  28169. $as_echo "$as_me: failed program was:" >&5
  28170. sed 's/^/| /' conftest.$ac_ext >&5
  28171. ac_hi=`expr '(' $ac_mid ')' - 1`
  28172. if test $ac_mid -le $ac_hi; then
  28173. ac_lo= ac_hi=
  28174. break
  28175. fi
  28176. ac_mid=`expr 2 '*' $ac_mid`
  28177. fi
  28178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28179. done
  28180. else
  28181. $as_echo "$as_me: failed program was:" >&5
  28182. sed 's/^/| /' conftest.$ac_ext >&5
  28183. ac_lo= ac_hi=
  28184. fi
  28185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28186. fi
  28187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28188. # Binary search between lo and hi bounds.
  28189. while test "x$ac_lo" != "x$ac_hi"; do
  28190. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  28191. cat >conftest.$ac_ext <<_ACEOF
  28192. /* confdefs.h. */
  28193. _ACEOF
  28194. cat confdefs.h >>conftest.$ac_ext
  28195. cat >>conftest.$ac_ext <<_ACEOF
  28196. /* end confdefs.h. */
  28197. $ac_includes_default
  28198. int
  28199. main ()
  28200. {
  28201. static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
  28202. test_array [0] = 0
  28203. ;
  28204. return 0;
  28205. }
  28206. _ACEOF
  28207. rm -f conftest.$ac_objext
  28208. if { (ac_try="$ac_compile"
  28209. case "(($ac_try" in
  28210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28211. *) ac_try_echo=$ac_try;;
  28212. esac
  28213. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28214. $as_echo "$ac_try_echo") >&5
  28215. (eval "$ac_compile") 2>conftest.er1
  28216. ac_status=$?
  28217. grep -v '^ *+' conftest.er1 >conftest.err
  28218. rm -f conftest.er1
  28219. cat conftest.err >&5
  28220. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28221. (exit $ac_status); } && {
  28222. test -z "$ac_c_werror_flag" ||
  28223. test ! -s conftest.err
  28224. } && test -s conftest.$ac_objext; then
  28225. ac_hi=$ac_mid
  28226. else
  28227. $as_echo "$as_me: failed program was:" >&5
  28228. sed 's/^/| /' conftest.$ac_ext >&5
  28229. ac_lo=`expr '(' $ac_mid ')' + 1`
  28230. fi
  28231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28232. done
  28233. case $ac_lo in
  28234. ?*) ac_cv_sizeof_short=$ac_lo;;
  28235. '') if test "$ac_cv_type_short" = yes; then
  28236. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28237. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28238. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  28239. See \`config.log' for more details." >&5
  28240. $as_echo "$as_me: error: cannot compute sizeof (short)
  28241. See \`config.log' for more details." >&2;}
  28242. { (exit 77); exit 77; }; }; }
  28243. else
  28244. ac_cv_sizeof_short=0
  28245. fi ;;
  28246. esac
  28247. else
  28248. cat >conftest.$ac_ext <<_ACEOF
  28249. /* confdefs.h. */
  28250. _ACEOF
  28251. cat confdefs.h >>conftest.$ac_ext
  28252. cat >>conftest.$ac_ext <<_ACEOF
  28253. /* end confdefs.h. */
  28254. $ac_includes_default
  28255. static long int longval () { return (long int) (sizeof (short)); }
  28256. static unsigned long int ulongval () { return (long int) (sizeof (short)); }
  28257. #include <stdio.h>
  28258. #include <stdlib.h>
  28259. int
  28260. main ()
  28261. {
  28262. FILE *f = fopen ("conftest.val", "w");
  28263. if (! f)
  28264. return 1;
  28265. if (((long int) (sizeof (short))) < 0)
  28266. {
  28267. long int i = longval ();
  28268. if (i != ((long int) (sizeof (short))))
  28269. return 1;
  28270. fprintf (f, "%ld", i);
  28271. }
  28272. else
  28273. {
  28274. unsigned long int i = ulongval ();
  28275. if (i != ((long int) (sizeof (short))))
  28276. return 1;
  28277. fprintf (f, "%lu", i);
  28278. }
  28279. /* Do not output a trailing newline, as this causes \r\n confusion
  28280. on some platforms. */
  28281. return ferror (f) || fclose (f) != 0;
  28282. ;
  28283. return 0;
  28284. }
  28285. _ACEOF
  28286. rm -f 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28293. $as_echo "$ac_try_echo") >&5
  28294. (eval "$ac_link") 2>&5
  28295. ac_status=$?
  28296. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28297. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  28298. { (case "(($ac_try" in
  28299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28300. *) ac_try_echo=$ac_try;;
  28301. esac
  28302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28303. $as_echo "$ac_try_echo") >&5
  28304. (eval "$ac_try") 2>&5
  28305. ac_status=$?
  28306. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28307. (exit $ac_status); }; }; then
  28308. ac_cv_sizeof_short=`cat conftest.val`
  28309. else
  28310. $as_echo "$as_me: program exited with status $ac_status" >&5
  28311. $as_echo "$as_me: failed program was:" >&5
  28312. sed 's/^/| /' conftest.$ac_ext >&5
  28313. ( exit $ac_status )
  28314. if test "$ac_cv_type_short" = yes; then
  28315. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  28316. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28317. { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  28318. See \`config.log' for more details." >&5
  28319. $as_echo "$as_me: error: cannot compute sizeof (short)
  28320. See \`config.log' for more details." >&2;}
  28321. { (exit 77); exit 77; }; }; }
  28322. else
  28323. ac_cv_sizeof_short=0
  28324. fi
  28325. fi
  28326. rm -rf conftest.dSYM
  28327. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  28328. fi
  28329. rm -f conftest.val
  28330. fi
  28331. { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  28332. $as_echo "$ac_cv_sizeof_short" >&6; }
  28333. cat >>confdefs.h <<_ACEOF
  28334. #define SIZEOF_SHORT $ac_cv_sizeof_short
  28335. _ACEOF
  28336. # ----------------------------------------------------------------------
  28337. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  28338. # ----------------------------------------------------------------------
  28339. { $as_echo "$as_me:$LINENO: checking for pathfind in -lgen" >&5
  28340. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  28341. if test "${ac_cv_lib_gen_pathfind+set}" = set; then
  28342. $as_echo_n "(cached) " >&6
  28343. else
  28344. ac_check_lib_save_LIBS=$LIBS
  28345. LIBS="-lgen $LIBS"
  28346. cat >conftest.$ac_ext <<_ACEOF
  28347. /* confdefs.h. */
  28348. _ACEOF
  28349. cat confdefs.h >>conftest.$ac_ext
  28350. cat >>conftest.$ac_ext <<_ACEOF
  28351. /* end confdefs.h. */
  28352. /* Override any GCC internal prototype to avoid an error.
  28353. Use char because int might match the return type of a GCC
  28354. builtin and then its argument prototype would still apply. */
  28355. #ifdef __cplusplus
  28356. extern "C"
  28357. #endif
  28358. char pathfind ();
  28359. int
  28360. main ()
  28361. {
  28362. return pathfind ();
  28363. ;
  28364. return 0;
  28365. }
  28366. _ACEOF
  28367. rm -f conftest.$ac_objext conftest$ac_exeext
  28368. if { (ac_try="$ac_link"
  28369. case "(($ac_try" in
  28370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28371. *) ac_try_echo=$ac_try;;
  28372. esac
  28373. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28374. $as_echo "$ac_try_echo") >&5
  28375. (eval "$ac_link") 2>conftest.er1
  28376. ac_status=$?
  28377. grep -v '^ *+' conftest.er1 >conftest.err
  28378. rm -f conftest.er1
  28379. cat conftest.err >&5
  28380. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28381. (exit $ac_status); } && {
  28382. test -z "$ac_c_werror_flag" ||
  28383. test ! -s conftest.err
  28384. } && test -s conftest$ac_exeext && {
  28385. test "$cross_compiling" = yes ||
  28386. $as_test_x conftest$ac_exeext
  28387. }; then
  28388. ac_cv_lib_gen_pathfind=yes
  28389. else
  28390. $as_echo "$as_me: failed program was:" >&5
  28391. sed 's/^/| /' conftest.$ac_ext >&5
  28392. ac_cv_lib_gen_pathfind=no
  28393. fi
  28394. rm -rf conftest.dSYM
  28395. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28396. conftest$ac_exeext conftest.$ac_ext
  28397. LIBS=$ac_check_lib_save_LIBS
  28398. fi
  28399. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_pathfind" >&5
  28400. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  28401. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then
  28402. cat >>confdefs.h <<_ACEOF
  28403. #define HAVE_LIBGEN 1
  28404. _ACEOF
  28405. LIBS="-lgen $LIBS"
  28406. fi
  28407. for ac_func in vprintf
  28408. do
  28409. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28410. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28411. $as_echo_n "checking for $ac_func... " >&6; }
  28412. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28413. $as_echo_n "(cached) " >&6
  28414. else
  28415. cat >conftest.$ac_ext <<_ACEOF
  28416. /* confdefs.h. */
  28417. _ACEOF
  28418. cat confdefs.h >>conftest.$ac_ext
  28419. cat >>conftest.$ac_ext <<_ACEOF
  28420. /* end confdefs.h. */
  28421. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28422. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28423. #define $ac_func innocuous_$ac_func
  28424. /* System header to define __stub macros and hopefully few prototypes,
  28425. which can conflict with char $ac_func (); below.
  28426. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28427. <limits.h> exists even on freestanding compilers. */
  28428. #ifdef __STDC__
  28429. # include <limits.h>
  28430. #else
  28431. # include <assert.h>
  28432. #endif
  28433. #undef $ac_func
  28434. /* Override any GCC internal prototype to avoid an error.
  28435. Use char because int might match the return type of a GCC
  28436. builtin and then its argument prototype would still apply. */
  28437. #ifdef __cplusplus
  28438. extern "C"
  28439. #endif
  28440. char $ac_func ();
  28441. /* The GNU C library defines this for functions which it implements
  28442. to always fail with ENOSYS. Some functions are actually named
  28443. something starting with __ and the normal name is an alias. */
  28444. #if defined __stub_$ac_func || defined __stub___$ac_func
  28445. choke me
  28446. #endif
  28447. int
  28448. main ()
  28449. {
  28450. return $ac_func ();
  28451. ;
  28452. return 0;
  28453. }
  28454. _ACEOF
  28455. rm -f conftest.$ac_objext conftest$ac_exeext
  28456. if { (ac_try="$ac_link"
  28457. case "(($ac_try" in
  28458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28459. *) ac_try_echo=$ac_try;;
  28460. esac
  28461. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28462. $as_echo "$ac_try_echo") >&5
  28463. (eval "$ac_link") 2>conftest.er1
  28464. ac_status=$?
  28465. grep -v '^ *+' conftest.er1 >conftest.err
  28466. rm -f conftest.er1
  28467. cat conftest.err >&5
  28468. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28469. (exit $ac_status); } && {
  28470. test -z "$ac_c_werror_flag" ||
  28471. test ! -s conftest.err
  28472. } && test -s conftest$ac_exeext && {
  28473. test "$cross_compiling" = yes ||
  28474. $as_test_x conftest$ac_exeext
  28475. }; then
  28476. eval "$as_ac_var=yes"
  28477. else
  28478. $as_echo "$as_me: failed program was:" >&5
  28479. sed 's/^/| /' conftest.$ac_ext >&5
  28480. eval "$as_ac_var=no"
  28481. fi
  28482. rm -rf conftest.dSYM
  28483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28484. conftest$ac_exeext conftest.$ac_ext
  28485. fi
  28486. ac_res=`eval 'as_val=${'$as_ac_var'}
  28487. $as_echo "$as_val"'`
  28488. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28489. $as_echo "$ac_res" >&6; }
  28490. as_val=`eval 'as_val=${'$as_ac_var'}
  28491. $as_echo "$as_val"'`
  28492. if test "x$as_val" = x""yes; then
  28493. cat >>confdefs.h <<_ACEOF
  28494. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28495. _ACEOF
  28496. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  28497. $as_echo_n "checking for _doprnt... " >&6; }
  28498. if test "${ac_cv_func__doprnt+set}" = set; then
  28499. $as_echo_n "(cached) " >&6
  28500. else
  28501. cat >conftest.$ac_ext <<_ACEOF
  28502. /* confdefs.h. */
  28503. _ACEOF
  28504. cat confdefs.h >>conftest.$ac_ext
  28505. cat >>conftest.$ac_ext <<_ACEOF
  28506. /* end confdefs.h. */
  28507. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  28508. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28509. #define _doprnt innocuous__doprnt
  28510. /* System header to define __stub macros and hopefully few prototypes,
  28511. which can conflict with char _doprnt (); below.
  28512. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28513. <limits.h> exists even on freestanding compilers. */
  28514. #ifdef __STDC__
  28515. # include <limits.h>
  28516. #else
  28517. # include <assert.h>
  28518. #endif
  28519. #undef _doprnt
  28520. /* Override any GCC internal prototype to avoid an error.
  28521. Use char because int might match the return type of a GCC
  28522. builtin and then its argument prototype would still apply. */
  28523. #ifdef __cplusplus
  28524. extern "C"
  28525. #endif
  28526. char _doprnt ();
  28527. /* The GNU C library defines this for functions which it implements
  28528. to always fail with ENOSYS. Some functions are actually named
  28529. something starting with __ and the normal name is an alias. */
  28530. #if defined __stub__doprnt || defined __stub____doprnt
  28531. choke me
  28532. #endif
  28533. int
  28534. main ()
  28535. {
  28536. return _doprnt ();
  28537. ;
  28538. return 0;
  28539. }
  28540. _ACEOF
  28541. rm -f conftest.$ac_objext conftest$ac_exeext
  28542. if { (ac_try="$ac_link"
  28543. case "(($ac_try" in
  28544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28545. *) ac_try_echo=$ac_try;;
  28546. esac
  28547. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28548. $as_echo "$ac_try_echo") >&5
  28549. (eval "$ac_link") 2>conftest.er1
  28550. ac_status=$?
  28551. grep -v '^ *+' conftest.er1 >conftest.err
  28552. rm -f conftest.er1
  28553. cat conftest.err >&5
  28554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28555. (exit $ac_status); } && {
  28556. test -z "$ac_c_werror_flag" ||
  28557. test ! -s conftest.err
  28558. } && test -s conftest$ac_exeext && {
  28559. test "$cross_compiling" = yes ||
  28560. $as_test_x conftest$ac_exeext
  28561. }; then
  28562. ac_cv_func__doprnt=yes
  28563. else
  28564. $as_echo "$as_me: failed program was:" >&5
  28565. sed 's/^/| /' conftest.$ac_ext >&5
  28566. ac_cv_func__doprnt=no
  28567. fi
  28568. rm -rf conftest.dSYM
  28569. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28570. conftest$ac_exeext conftest.$ac_ext
  28571. fi
  28572. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  28573. $as_echo "$ac_cv_func__doprnt" >&6; }
  28574. if test "x$ac_cv_func__doprnt" = x""yes; then
  28575. cat >>confdefs.h <<\_ACEOF
  28576. #define HAVE_DOPRNT 1
  28577. _ACEOF
  28578. fi
  28579. fi
  28580. done
  28581. for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
  28582. strrchr strsignal
  28583. do
  28584. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  28585. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  28586. $as_echo_n "checking for $ac_func... " >&6; }
  28587. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  28588. $as_echo_n "(cached) " >&6
  28589. else
  28590. cat >conftest.$ac_ext <<_ACEOF
  28591. /* confdefs.h. */
  28592. _ACEOF
  28593. cat confdefs.h >>conftest.$ac_ext
  28594. cat >>conftest.$ac_ext <<_ACEOF
  28595. /* end confdefs.h. */
  28596. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  28597. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28598. #define $ac_func innocuous_$ac_func
  28599. /* System header to define __stub macros and hopefully few prototypes,
  28600. which can conflict with char $ac_func (); below.
  28601. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28602. <limits.h> exists even on freestanding compilers. */
  28603. #ifdef __STDC__
  28604. # include <limits.h>
  28605. #else
  28606. # include <assert.h>
  28607. #endif
  28608. #undef $ac_func
  28609. /* Override any GCC internal prototype to avoid an error.
  28610. Use char because int might match the return type of a GCC
  28611. builtin and then its argument prototype would still apply. */
  28612. #ifdef __cplusplus
  28613. extern "C"
  28614. #endif
  28615. char $ac_func ();
  28616. /* The GNU C library defines this for functions which it implements
  28617. to always fail with ENOSYS. Some functions are actually named
  28618. something starting with __ and the normal name is an alias. */
  28619. #if defined __stub_$ac_func || defined __stub___$ac_func
  28620. choke me
  28621. #endif
  28622. int
  28623. main ()
  28624. {
  28625. return $ac_func ();
  28626. ;
  28627. return 0;
  28628. }
  28629. _ACEOF
  28630. rm -f conftest.$ac_objext conftest$ac_exeext
  28631. if { (ac_try="$ac_link"
  28632. case "(($ac_try" in
  28633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28634. *) ac_try_echo=$ac_try;;
  28635. esac
  28636. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  28637. $as_echo "$ac_try_echo") >&5
  28638. (eval "$ac_link") 2>conftest.er1
  28639. ac_status=$?
  28640. grep -v '^ *+' conftest.er1 >conftest.err
  28641. rm -f conftest.er1
  28642. cat conftest.err >&5
  28643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28644. (exit $ac_status); } && {
  28645. test -z "$ac_c_werror_flag" ||
  28646. test ! -s conftest.err
  28647. } && test -s conftest$ac_exeext && {
  28648. test "$cross_compiling" = yes ||
  28649. $as_test_x conftest$ac_exeext
  28650. }; then
  28651. eval "$as_ac_var=yes"
  28652. else
  28653. $as_echo "$as_me: failed program was:" >&5
  28654. sed 's/^/| /' conftest.$ac_ext >&5
  28655. eval "$as_ac_var=no"
  28656. fi
  28657. rm -rf conftest.dSYM
  28658. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28659. conftest$ac_exeext conftest.$ac_ext
  28660. fi
  28661. ac_res=`eval 'as_val=${'$as_ac_var'}
  28662. $as_echo "$as_val"'`
  28663. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  28664. $as_echo "$ac_res" >&6; }
  28665. as_val=`eval 'as_val=${'$as_ac_var'}
  28666. $as_echo "$as_val"'`
  28667. if test "x$as_val" = x""yes; then
  28668. cat >>confdefs.h <<_ACEOF
  28669. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  28670. _ACEOF
  28671. fi
  28672. done
  28673. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  28674. fi
  28675. fi
  28676. # end of AC_DEFUN of LIBOPTS_CHECK
  28677. ac_config_files="$ac_config_files Makefile doxygen.cfg lib/Makefile docs/Makefile src/Makefile src/common/Makefile src/tcpedit/Makefile src/fragroute/Makefile src/defines.h test/Makefile test/config scripts/Makefile"
  28678. cat >confcache <<\_ACEOF
  28679. # This file is a shell script that caches the results of configure
  28680. # tests run on this system so they can be shared between configure
  28681. # scripts and configure runs, see configure's option --config-cache.
  28682. # It is not useful on other systems. If it contains results you don't
  28683. # want to keep, you may remove or edit it.
  28684. #
  28685. # config.status only pays attention to the cache file if you give it
  28686. # the --recheck option to rerun configure.
  28687. #
  28688. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  28689. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  28690. # following values.
  28691. _ACEOF
  28692. # The following way of writing the cache mishandles newlines in values,
  28693. # but we know of no workaround that is simple, portable, and efficient.
  28694. # So, we kill variables containing newlines.
  28695. # Ultrix sh set writes to stderr and can't be redirected directly,
  28696. # and sets the high bit in the cache file unless we assign to the vars.
  28697. (
  28698. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  28699. eval ac_val=\$$ac_var
  28700. case $ac_val in #(
  28701. *${as_nl}*)
  28702. case $ac_var in #(
  28703. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  28704. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  28705. esac
  28706. case $ac_var in #(
  28707. _ | IFS | as_nl) ;; #(
  28708. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  28709. *) $as_unset $ac_var ;;
  28710. esac ;;
  28711. esac
  28712. done
  28713. (set) 2>&1 |
  28714. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  28715. *${as_nl}ac_space=\ *)
  28716. # `set' does not quote correctly, so add quotes (double-quote
  28717. # substitution turns \\\\ into \\, and sed turns \\ into \).
  28718. sed -n \
  28719. "s/'/'\\\\''/g;
  28720. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  28721. ;; #(
  28722. *)
  28723. # `set' quotes correctly as required by POSIX, so do not add quotes.
  28724. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  28725. ;;
  28726. esac |
  28727. sort
  28728. ) |
  28729. sed '
  28730. /^ac_cv_env_/b end
  28731. t clear
  28732. :clear
  28733. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  28734. t end
  28735. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  28736. :end' >>confcache
  28737. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  28738. if test -w "$cache_file"; then
  28739. test "x$cache_file" != "x/dev/null" &&
  28740. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  28741. $as_echo "$as_me: updating cache $cache_file" >&6;}
  28742. cat confcache >$cache_file
  28743. else
  28744. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  28745. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  28746. fi
  28747. fi
  28748. rm -f confcache
  28749. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  28750. # Let make expand exec_prefix.
  28751. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  28752. DEFS=-DHAVE_CONFIG_H
  28753. ac_libobjs=
  28754. ac_ltlibobjs=
  28755. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  28756. # 1. Remove the extension, and $U if already installed.
  28757. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  28758. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  28759. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  28760. # will be set to the directory where LIBOBJS objects are built.
  28761. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  28762. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  28763. done
  28764. LIBOBJS=$ac_libobjs
  28765. LTLIBOBJS=$ac_ltlibobjs
  28766. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  28767. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  28768. Usually this means the macro was only invoked conditionally." >&5
  28769. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  28770. Usually this means the macro was only invoked conditionally." >&2;}
  28771. { (exit 1); exit 1; }; }
  28772. fi
  28773. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  28774. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  28775. Usually this means the macro was only invoked conditionally." >&5
  28776. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  28777. Usually this means the macro was only invoked conditionally." >&2;}
  28778. { (exit 1); exit 1; }; }
  28779. fi
  28780. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  28781. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  28782. Usually this means the macro was only invoked conditionally." >&5
  28783. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  28784. Usually this means the macro was only invoked conditionally." >&2;}
  28785. { (exit 1); exit 1; }; }
  28786. fi
  28787. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  28788. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  28789. Usually this means the macro was only invoked conditionally." >&5
  28790. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  28791. Usually this means the macro was only invoked conditionally." >&2;}
  28792. { (exit 1); exit 1; }; }
  28793. fi
  28794. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  28795. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  28796. Usually this means the macro was only invoked conditionally." >&5
  28797. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  28798. Usually this means the macro was only invoked conditionally." >&2;}
  28799. { (exit 1); exit 1; }; }
  28800. fi
  28801. if test -z "${SYSTEM_STRLCPY_TRUE}" && test -z "${SYSTEM_STRLCPY_FALSE}"; then
  28802. { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  28803. Usually this means the macro was only invoked conditionally." >&5
  28804. $as_echo "$as_me: error: conditional \"SYSTEM_STRLCPY\" was never defined.
  28805. Usually this means the macro was only invoked conditionally." >&2;}
  28806. { (exit 1); exit 1; }; }
  28807. fi
  28808. if test -z "${WORDS_BIGENDIAN_TRUE}" && test -z "${WORDS_BIGENDIAN_FALSE}"; then
  28809. { { $as_echo "$as_me:$LINENO: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  28810. Usually this means the macro was only invoked conditionally." >&5
  28811. $as_echo "$as_me: error: conditional \"WORDS_BIGENDIAN\" was never defined.
  28812. Usually this means the macro was only invoked conditionally." >&2;}
  28813. { (exit 1); exit 1; }; }
  28814. fi
  28815. if test -z "${COMPILE_TCPBRIDGE_TRUE}" && test -z "${COMPILE_TCPBRIDGE_FALSE}"; then
  28816. { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_TCPBRIDGE\" was never defined.
  28817. Usually this means the macro was only invoked conditionally." >&5
  28818. $as_echo "$as_me: error: conditional \"COMPILE_TCPBRIDGE\" was never defined.
  28819. Usually this means the macro was only invoked conditionally." >&2;}
  28820. { (exit 1); exit 1; }; }
  28821. fi
  28822. if test -z "${COMPILE_FRAGROUTE_TRUE}" && test -z "${COMPILE_FRAGROUTE_FALSE}"; then
  28823. { { $as_echo "$as_me:$LINENO: error: conditional \"COMPILE_FRAGROUTE\" was never defined.
  28824. Usually this means the macro was only invoked conditionally." >&5
  28825. $as_echo "$as_me: error: conditional \"COMPILE_FRAGROUTE\" was never defined.
  28826. Usually this means the macro was only invoked conditionally." >&2;}
  28827. { (exit 1); exit 1; }; }
  28828. fi
  28829. if test -z "${ENABLE_TCPDUMP_TRUE}" && test -z "${ENABLE_TCPDUMP_FALSE}"; then
  28830. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  28831. Usually this means the macro was only invoked conditionally." >&5
  28832. $as_echo "$as_me: error: conditional \"ENABLE_TCPDUMP\" was never defined.
  28833. Usually this means the macro was only invoked conditionally." >&2;}
  28834. { (exit 1); exit 1; }; }
  28835. fi
  28836. if test -z "${ENABLE_OSX_FRAMEWORKS_TRUE}" && test -z "${ENABLE_OSX_FRAMEWORKS_FALSE}"; then
  28837. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  28838. Usually this means the macro was only invoked conditionally." >&5
  28839. $as_echo "$as_me: error: conditional \"ENABLE_OSX_FRAMEWORKS\" was never defined.
  28840. Usually this means the macro was only invoked conditionally." >&2;}
  28841. { (exit 1); exit 1; }; }
  28842. fi
  28843. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  28844. { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  28845. Usually this means the macro was only invoked conditionally." >&5
  28846. $as_echo "$as_me: error: conditional \"INSTALL_LIBOPTS\" was never defined.
  28847. Usually this means the macro was only invoked conditionally." >&2;}
  28848. { (exit 1); exit 1; }; }
  28849. fi
  28850. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  28851. { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_LIBOPTS\" was never defined.
  28852. Usually this means the macro was only invoked conditionally." >&5
  28853. $as_echo "$as_me: error: conditional \"NEED_LIBOPTS\" was never defined.
  28854. Usually this means the macro was only invoked conditionally." >&2;}
  28855. { (exit 1); exit 1; }; }
  28856. fi
  28857. : ${CONFIG_STATUS=./config.status}
  28858. ac_write_fail=0
  28859. ac_clean_files_save=$ac_clean_files
  28860. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  28861. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  28862. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  28863. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28864. #! $SHELL
  28865. # Generated by $as_me.
  28866. # Run this file to recreate the current configuration.
  28867. # Compiler output produced by configure, useful for debugging
  28868. # configure, is in config.log if it exists.
  28869. debug=false
  28870. ac_cs_recheck=false
  28871. ac_cs_silent=false
  28872. SHELL=\${CONFIG_SHELL-$SHELL}
  28873. _ACEOF
  28874. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28875. ## --------------------- ##
  28876. ## M4sh Initialization. ##
  28877. ## --------------------- ##
  28878. # Be more Bourne compatible
  28879. DUALCASE=1; export DUALCASE # for MKS sh
  28880. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  28881. emulate sh
  28882. NULLCMD=:
  28883. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  28884. # is contrary to our usage. Disable this feature.
  28885. alias -g '${1+"$@"}'='"$@"'
  28886. setopt NO_GLOB_SUBST
  28887. else
  28888. case `(set -o) 2>/dev/null` in
  28889. *posix*) set -o posix ;;
  28890. esac
  28891. fi
  28892. # PATH needs CR
  28893. # Avoid depending upon Character Ranges.
  28894. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28895. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  28896. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  28897. as_cr_digits='0123456789'
  28898. as_cr_alnum=$as_cr_Letters$as_cr_digits
  28899. as_nl='
  28900. '
  28901. export as_nl
  28902. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  28903. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  28904. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  28905. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  28906. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  28907. as_echo='printf %s\n'
  28908. as_echo_n='printf %s'
  28909. else
  28910. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  28911. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  28912. as_echo_n='/usr/ucb/echo -n'
  28913. else
  28914. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  28915. as_echo_n_body='eval
  28916. arg=$1;
  28917. case $arg in
  28918. *"$as_nl"*)
  28919. expr "X$arg" : "X\\(.*\\)$as_nl";
  28920. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  28921. esac;
  28922. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  28923. '
  28924. export as_echo_n_body
  28925. as_echo_n='sh -c $as_echo_n_body as_echo'
  28926. fi
  28927. export as_echo_body
  28928. as_echo='sh -c $as_echo_body as_echo'
  28929. fi
  28930. # The user is always right.
  28931. if test "${PATH_SEPARATOR+set}" != set; then
  28932. PATH_SEPARATOR=:
  28933. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  28934. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  28935. PATH_SEPARATOR=';'
  28936. }
  28937. fi
  28938. # Support unset when possible.
  28939. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  28940. as_unset=unset
  28941. else
  28942. as_unset=false
  28943. fi
  28944. # IFS
  28945. # We need space, tab and new line, in precisely that order. Quoting is
  28946. # there to prevent editors from complaining about space-tab.
  28947. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  28948. # splitting by setting IFS to empty value.)
  28949. IFS=" "" $as_nl"
  28950. # Find who we are. Look in the path if we contain no directory separator.
  28951. case $0 in
  28952. *[\\/]* ) as_myself=$0 ;;
  28953. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28954. for as_dir in $PATH
  28955. do
  28956. IFS=$as_save_IFS
  28957. test -z "$as_dir" && as_dir=.
  28958. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  28959. done
  28960. IFS=$as_save_IFS
  28961. ;;
  28962. esac
  28963. # We did not find ourselves, most probably we were run as `sh COMMAND'
  28964. # in which case we are not to be found in the path.
  28965. if test "x$as_myself" = x; then
  28966. as_myself=$0
  28967. fi
  28968. if test ! -f "$as_myself"; then
  28969. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  28970. { (exit 1); exit 1; }
  28971. fi
  28972. # Work around bugs in pre-3.0 UWIN ksh.
  28973. for as_var in ENV MAIL MAILPATH
  28974. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  28975. done
  28976. PS1='$ '
  28977. PS2='> '
  28978. PS4='+ '
  28979. # NLS nuisances.
  28980. LC_ALL=C
  28981. export LC_ALL
  28982. LANGUAGE=C
  28983. export LANGUAGE
  28984. # Required to use basename.
  28985. if expr a : '\(a\)' >/dev/null 2>&1 &&
  28986. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  28987. as_expr=expr
  28988. else
  28989. as_expr=false
  28990. fi
  28991. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  28992. as_basename=basename
  28993. else
  28994. as_basename=false
  28995. fi
  28996. # Name of the executable.
  28997. as_me=`$as_basename -- "$0" ||
  28998. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  28999. X"$0" : 'X\(//\)$' \| \
  29000. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  29001. $as_echo X/"$0" |
  29002. sed '/^.*\/\([^/][^/]*\)\/*$/{
  29003. s//\1/
  29004. q
  29005. }
  29006. /^X\/\(\/\/\)$/{
  29007. s//\1/
  29008. q
  29009. }
  29010. /^X\/\(\/\).*/{
  29011. s//\1/
  29012. q
  29013. }
  29014. s/.*/./; q'`
  29015. # CDPATH.
  29016. $as_unset CDPATH
  29017. as_lineno_1=$LINENO
  29018. as_lineno_2=$LINENO
  29019. test "x$as_lineno_1" != "x$as_lineno_2" &&
  29020. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  29021. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  29022. # uniformly replaced by the line number. The first 'sed' inserts a
  29023. # line-number line after each line using $LINENO; the second 'sed'
  29024. # does the real work. The second script uses 'N' to pair each
  29025. # line-number line with the line containing $LINENO, and appends
  29026. # trailing '-' during substitution so that $LINENO is not a special
  29027. # case at line end.
  29028. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  29029. # scripts with optimization help from Paolo Bonzini. Blame Lee
  29030. # E. McMahon (1931-1989) for sed's syntax. :-)
  29031. sed -n '
  29032. p
  29033. /[$]LINENO/=
  29034. ' <$as_myself |
  29035. sed '
  29036. s/[$]LINENO.*/&-/
  29037. t lineno
  29038. b
  29039. :lineno
  29040. N
  29041. :loop
  29042. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  29043. t loop
  29044. s/-\n.*//
  29045. ' >$as_me.lineno &&
  29046. chmod +x "$as_me.lineno" ||
  29047. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  29048. { (exit 1); exit 1; }; }
  29049. # Don't try to exec as it changes $[0], causing all sort of problems
  29050. # (the dirname of $[0] is not the place where we might find the
  29051. # original and so on. Autoconf is especially sensitive to this).
  29052. . "./$as_me.lineno"
  29053. # Exit status is that of the last command.
  29054. exit
  29055. }
  29056. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  29057. as_dirname=dirname
  29058. else
  29059. as_dirname=false
  29060. fi
  29061. ECHO_C= ECHO_N= ECHO_T=
  29062. case `echo -n x` in
  29063. -n*)
  29064. case `echo 'x\c'` in
  29065. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  29066. *) ECHO_C='\c';;
  29067. esac;;
  29068. *)
  29069. ECHO_N='-n';;
  29070. esac
  29071. if expr a : '\(a\)' >/dev/null 2>&1 &&
  29072. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  29073. as_expr=expr
  29074. else
  29075. as_expr=false
  29076. fi
  29077. rm -f conf$$ conf$$.exe conf$$.file
  29078. if test -d conf$$.dir; then
  29079. rm -f conf$$.dir/conf$$.file
  29080. else
  29081. rm -f conf$$.dir
  29082. mkdir conf$$.dir 2>/dev/null
  29083. fi
  29084. if (echo >conf$$.file) 2>/dev/null; then
  29085. if ln -s conf$$.file conf$$ 2>/dev/null; then
  29086. as_ln_s='ln -s'
  29087. # ... but there are two gotchas:
  29088. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  29089. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  29090. # In both cases, we have to default to `cp -p'.
  29091. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  29092. as_ln_s='cp -p'
  29093. elif ln conf$$.file conf$$ 2>/dev/null; then
  29094. as_ln_s=ln
  29095. else
  29096. as_ln_s='cp -p'
  29097. fi
  29098. else
  29099. as_ln_s='cp -p'
  29100. fi
  29101. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  29102. rmdir conf$$.dir 2>/dev/null
  29103. if mkdir -p . 2>/dev/null; then
  29104. as_mkdir_p=:
  29105. else
  29106. test -d ./-p && rmdir ./-p
  29107. as_mkdir_p=false
  29108. fi
  29109. if test -x / >/dev/null 2>&1; then
  29110. as_test_x='test -x'
  29111. else
  29112. if ls -dL / >/dev/null 2>&1; then
  29113. as_ls_L_option=L
  29114. else
  29115. as_ls_L_option=
  29116. fi
  29117. as_test_x='
  29118. eval sh -c '\''
  29119. if test -d "$1"; then
  29120. test -d "$1/.";
  29121. else
  29122. case $1 in
  29123. -*)set "./$1";;
  29124. esac;
  29125. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  29126. ???[sx]*):;;*)false;;esac;fi
  29127. '\'' sh
  29128. '
  29129. fi
  29130. as_executable_p=$as_test_x
  29131. # Sed expression to map a string onto a valid CPP name.
  29132. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  29133. # Sed expression to map a string onto a valid variable name.
  29134. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  29135. exec 6>&1
  29136. # Save the log message, to keep $[0] and so on meaningful, and to
  29137. # report actual input values of CONFIG_FILES etc. instead of their
  29138. # values after options handling.
  29139. ac_log="
  29140. This file was extended by $as_me, which was
  29141. generated by GNU Autoconf 2.63. Invocation command line was
  29142. CONFIG_FILES = $CONFIG_FILES
  29143. CONFIG_HEADERS = $CONFIG_HEADERS
  29144. CONFIG_LINKS = $CONFIG_LINKS
  29145. CONFIG_COMMANDS = $CONFIG_COMMANDS
  29146. $ $0 $@
  29147. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  29148. "
  29149. _ACEOF
  29150. case $ac_config_files in *"
  29151. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  29152. esac
  29153. case $ac_config_headers in *"
  29154. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  29155. esac
  29156. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29157. # Files that config.status was made for.
  29158. config_files="$ac_config_files"
  29159. config_headers="$ac_config_headers"
  29160. config_commands="$ac_config_commands"
  29161. _ACEOF
  29162. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29163. ac_cs_usage="\
  29164. \`$as_me' instantiates files from templates according to the
  29165. current configuration.
  29166. Usage: $0 [OPTION]... [FILE]...
  29167. -h, --help print this help, then exit
  29168. -V, --version print version number and configuration settings, then exit
  29169. -q, --quiet, --silent
  29170. do not print progress messages
  29171. -d, --debug don't remove temporary files
  29172. --recheck update $as_me by reconfiguring in the same conditions
  29173. --file=FILE[:TEMPLATE]
  29174. instantiate the configuration file FILE
  29175. --header=FILE[:TEMPLATE]
  29176. instantiate the configuration header FILE
  29177. Configuration files:
  29178. $config_files
  29179. Configuration headers:
  29180. $config_headers
  29181. Configuration commands:
  29182. $config_commands
  29183. Report bugs to <bug-autoconf@gnu.org>."
  29184. _ACEOF
  29185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29186. ac_cs_version="\\
  29187. config.status
  29188. configured by $0, generated by GNU Autoconf 2.63,
  29189. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  29190. Copyright (C) 2008 Free Software Foundation, Inc.
  29191. This config.status script is free software; the Free Software Foundation
  29192. gives unlimited permission to copy, distribute and modify it."
  29193. ac_pwd='$ac_pwd'
  29194. srcdir='$srcdir'
  29195. INSTALL='$INSTALL'
  29196. MKDIR_P='$MKDIR_P'
  29197. AWK='$AWK'
  29198. test -n "\$AWK" || AWK=awk
  29199. _ACEOF
  29200. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29201. # The default lists apply if the user does not specify any file.
  29202. ac_need_defaults=:
  29203. while test $# != 0
  29204. do
  29205. case $1 in
  29206. --*=*)
  29207. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  29208. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  29209. ac_shift=:
  29210. ;;
  29211. *)
  29212. ac_option=$1
  29213. ac_optarg=$2
  29214. ac_shift=shift
  29215. ;;
  29216. esac
  29217. case $ac_option in
  29218. # Handling of the options.
  29219. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  29220. ac_cs_recheck=: ;;
  29221. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  29222. $as_echo "$ac_cs_version"; exit ;;
  29223. --debug | --debu | --deb | --de | --d | -d )
  29224. debug=: ;;
  29225. --file | --fil | --fi | --f )
  29226. $ac_shift
  29227. case $ac_optarg in
  29228. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29229. esac
  29230. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  29231. ac_need_defaults=false;;
  29232. --header | --heade | --head | --hea )
  29233. $ac_shift
  29234. case $ac_optarg in
  29235. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29236. esac
  29237. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  29238. ac_need_defaults=false;;
  29239. --he | --h)
  29240. # Conflict between --help and --header
  29241. { $as_echo "$as_me: error: ambiguous option: $1
  29242. Try \`$0 --help' for more information." >&2
  29243. { (exit 1); exit 1; }; };;
  29244. --help | --hel | -h )
  29245. $as_echo "$ac_cs_usage"; exit ;;
  29246. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  29247. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  29248. ac_cs_silent=: ;;
  29249. # This is an error.
  29250. -*) { $as_echo "$as_me: error: unrecognized option: $1
  29251. Try \`$0 --help' for more information." >&2
  29252. { (exit 1); exit 1; }; } ;;
  29253. *) ac_config_targets="$ac_config_targets $1"
  29254. ac_need_defaults=false ;;
  29255. esac
  29256. shift
  29257. done
  29258. ac_configure_extra_args=
  29259. if $ac_cs_silent; then
  29260. exec 6>/dev/null
  29261. ac_configure_extra_args="$ac_configure_extra_args --silent"
  29262. fi
  29263. _ACEOF
  29264. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29265. if \$ac_cs_recheck; then
  29266. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  29267. shift
  29268. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  29269. CONFIG_SHELL='$SHELL'
  29270. export CONFIG_SHELL
  29271. exec "\$@"
  29272. fi
  29273. _ACEOF
  29274. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29275. exec 5>>config.log
  29276. {
  29277. echo
  29278. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  29279. ## Running $as_me. ##
  29280. _ASBOX
  29281. $as_echo "$ac_log"
  29282. } >&5
  29283. _ACEOF
  29284. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29285. #
  29286. # INIT-COMMANDS
  29287. #
  29288. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  29289. # The HP-UX ksh and POSIX shell print the target directory to stdout
  29290. # if CDPATH is set.
  29291. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  29292. sed_quote_subst='$sed_quote_subst'
  29293. double_quote_subst='$double_quote_subst'
  29294. delay_variable_subst='$delay_variable_subst'
  29295. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  29296. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  29297. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  29298. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  29299. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  29300. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  29301. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  29302. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  29303. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  29304. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  29305. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  29306. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  29307. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  29308. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  29309. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  29310. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  29311. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  29312. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  29313. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  29314. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  29315. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  29316. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  29317. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  29318. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  29319. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  29320. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  29321. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29322. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29323. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  29324. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  29325. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  29326. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  29327. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  29328. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  29329. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  29330. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29331. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29332. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29333. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  29334. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  29335. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  29336. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  29337. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  29338. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  29339. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  29340. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  29341. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  29342. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  29343. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  29344. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  29345. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29346. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  29347. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  29348. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  29349. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  29350. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  29351. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  29352. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  29353. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  29354. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  29355. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  29356. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  29357. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29358. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29359. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  29360. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  29361. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29362. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29363. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  29364. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29365. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29366. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29367. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29368. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29369. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29370. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  29371. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29372. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  29373. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29374. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  29375. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  29376. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  29377. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  29378. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  29379. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  29380. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  29381. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  29382. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  29383. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  29384. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  29385. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29386. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  29387. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  29388. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29389. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29390. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  29391. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  29392. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  29393. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  29394. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  29395. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  29396. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  29397. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29398. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29399. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29400. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29401. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29402. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  29403. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  29404. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  29405. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29406. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  29407. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  29408. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  29409. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  29410. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  29411. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  29412. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  29413. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  29414. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  29415. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  29416. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  29417. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  29418. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  29419. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29420. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29421. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29422. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29423. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29424. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29425. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29426. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29427. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29428. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29429. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29430. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29431. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29432. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29433. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29434. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29435. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29436. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29437. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29438. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29439. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29440. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29441. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29442. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29443. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29444. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29445. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29446. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29447. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29448. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29449. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29450. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29451. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29452. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29453. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29454. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29455. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29456. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29457. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29458. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29459. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29460. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29461. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29462. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29463. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29464. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29465. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  29466. LTCC='$LTCC'
  29467. LTCFLAGS='$LTCFLAGS'
  29468. compiler='$compiler_DEFAULT'
  29469. # Quote evaled strings.
  29470. for var in SED \
  29471. GREP \
  29472. EGREP \
  29473. FGREP \
  29474. LD \
  29475. NM \
  29476. LN_S \
  29477. lt_SP2NL \
  29478. lt_NL2SP \
  29479. reload_flag \
  29480. OBJDUMP \
  29481. deplibs_check_method \
  29482. file_magic_cmd \
  29483. AR \
  29484. AR_FLAGS \
  29485. STRIP \
  29486. RANLIB \
  29487. CC \
  29488. CFLAGS \
  29489. compiler \
  29490. lt_cv_sys_global_symbol_pipe \
  29491. lt_cv_sys_global_symbol_to_cdecl \
  29492. lt_cv_sys_global_symbol_to_c_name_address \
  29493. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  29494. SHELL \
  29495. ECHO \
  29496. lt_prog_compiler_no_builtin_flag \
  29497. lt_prog_compiler_wl \
  29498. lt_prog_compiler_pic \
  29499. lt_prog_compiler_static \
  29500. lt_cv_prog_compiler_c_o \
  29501. need_locks \
  29502. DSYMUTIL \
  29503. NMEDIT \
  29504. LIPO \
  29505. OTOOL \
  29506. OTOOL64 \
  29507. shrext_cmds \
  29508. export_dynamic_flag_spec \
  29509. whole_archive_flag_spec \
  29510. compiler_needs_object \
  29511. with_gnu_ld \
  29512. allow_undefined_flag \
  29513. no_undefined_flag \
  29514. hardcode_libdir_flag_spec \
  29515. hardcode_libdir_flag_spec_ld \
  29516. hardcode_libdir_separator \
  29517. fix_srcfile_path \
  29518. exclude_expsyms \
  29519. include_expsyms \
  29520. file_list_spec \
  29521. variables_saved_for_relink \
  29522. libname_spec \
  29523. library_names_spec \
  29524. soname_spec \
  29525. finish_eval \
  29526. old_striplib \
  29527. striplib \
  29528. compiler_lib_search_dirs \
  29529. predep_objects \
  29530. postdep_objects \
  29531. predeps \
  29532. postdeps \
  29533. compiler_lib_search_path \
  29534. LD_CXX \
  29535. compiler_CXX \
  29536. lt_prog_compiler_no_builtin_flag_CXX \
  29537. lt_prog_compiler_wl_CXX \
  29538. lt_prog_compiler_pic_CXX \
  29539. lt_prog_compiler_static_CXX \
  29540. lt_cv_prog_compiler_c_o_CXX \
  29541. export_dynamic_flag_spec_CXX \
  29542. whole_archive_flag_spec_CXX \
  29543. compiler_needs_object_CXX \
  29544. with_gnu_ld_CXX \
  29545. allow_undefined_flag_CXX \
  29546. no_undefined_flag_CXX \
  29547. hardcode_libdir_flag_spec_CXX \
  29548. hardcode_libdir_flag_spec_ld_CXX \
  29549. hardcode_libdir_separator_CXX \
  29550. fix_srcfile_path_CXX \
  29551. exclude_expsyms_CXX \
  29552. include_expsyms_CXX \
  29553. file_list_spec_CXX \
  29554. compiler_lib_search_dirs_CXX \
  29555. predep_objects_CXX \
  29556. postdep_objects_CXX \
  29557. predeps_CXX \
  29558. postdeps_CXX \
  29559. compiler_lib_search_path_CXX; do
  29560. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  29561. *[\\\\\\\`\\"\\\$]*)
  29562. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  29563. ;;
  29564. *)
  29565. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29566. ;;
  29567. esac
  29568. done
  29569. # Double-quote double-evaled strings.
  29570. for var in reload_cmds \
  29571. old_postinstall_cmds \
  29572. old_postuninstall_cmds \
  29573. old_archive_cmds \
  29574. extract_expsyms_cmds \
  29575. old_archive_from_new_cmds \
  29576. old_archive_from_expsyms_cmds \
  29577. archive_cmds \
  29578. archive_expsym_cmds \
  29579. module_cmds \
  29580. module_expsym_cmds \
  29581. export_symbols_cmds \
  29582. prelink_cmds \
  29583. postinstall_cmds \
  29584. postuninstall_cmds \
  29585. finish_cmds \
  29586. sys_lib_search_path_spec \
  29587. sys_lib_dlsearch_path_spec \
  29588. old_archive_cmds_CXX \
  29589. old_archive_from_new_cmds_CXX \
  29590. old_archive_from_expsyms_cmds_CXX \
  29591. archive_cmds_CXX \
  29592. archive_expsym_cmds_CXX \
  29593. module_cmds_CXX \
  29594. module_expsym_cmds_CXX \
  29595. export_symbols_cmds_CXX \
  29596. prelink_cmds_CXX; do
  29597. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  29598. *[\\\\\\\`\\"\\\$]*)
  29599. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  29600. ;;
  29601. *)
  29602. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  29603. ;;
  29604. esac
  29605. done
  29606. # Fix-up fallback echo if it was mangled by the above quoting rules.
  29607. case \$lt_ECHO in
  29608. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  29609. ;;
  29610. esac
  29611. ac_aux_dir='$ac_aux_dir'
  29612. xsi_shell='$xsi_shell'
  29613. lt_shell_append='$lt_shell_append'
  29614. # See if we are running on zsh, and set the options which allow our
  29615. # commands through without removal of \ escapes INIT.
  29616. if test -n "\${ZSH_VERSION+set}" ; then
  29617. setopt NO_GLOB_SUBST
  29618. fi
  29619. PACKAGE='$PACKAGE'
  29620. VERSION='$VERSION'
  29621. TIMESTAMP='$TIMESTAMP'
  29622. RM='$RM'
  29623. ofile='$ofile'
  29624. _ACEOF
  29625. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29626. # Handling of arguments.
  29627. for ac_config_target in $ac_config_targets
  29628. do
  29629. case $ac_config_target in
  29630. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  29631. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  29632. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  29633. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  29634. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  29635. "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
  29636. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  29637. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  29638. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  29639. "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  29640. "src/tcpedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcpedit/Makefile" ;;
  29641. "src/fragroute/Makefile") CONFIG_FILES="$CONFIG_FILES src/fragroute/Makefile" ;;
  29642. "src/defines.h") CONFIG_FILES="$CONFIG_FILES src/defines.h" ;;
  29643. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  29644. "test/config") CONFIG_FILES="$CONFIG_FILES test/config" ;;
  29645. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  29646. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  29647. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  29648. { (exit 1); exit 1; }; };;
  29649. esac
  29650. done
  29651. # If the user did not use the arguments to specify the items to instantiate,
  29652. # then the envvar interface is used. Set only those that are not.
  29653. # We use the long form for the default assignment because of an extremely
  29654. # bizarre bug on SunOS 4.1.3.
  29655. if $ac_need_defaults; then
  29656. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  29657. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  29658. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  29659. fi
  29660. # Have a temporary directory for convenience. Make it in the build tree
  29661. # simply because there is no reason against having it here, and in addition,
  29662. # creating and moving files from /tmp can sometimes cause problems.
  29663. # Hook for its removal unless debugging.
  29664. # Note that there is a small window in which the directory will not be cleaned:
  29665. # after its creation but before its name has been assigned to `$tmp'.
  29666. $debug ||
  29667. {
  29668. tmp=
  29669. trap 'exit_status=$?
  29670. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  29671. ' 0
  29672. trap '{ (exit 1); exit 1; }' 1 2 13 15
  29673. }
  29674. # Create a (secure) tmp directory for tmp files.
  29675. {
  29676. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  29677. test -n "$tmp" && test -d "$tmp"
  29678. } ||
  29679. {
  29680. tmp=./conf$$-$RANDOM
  29681. (umask 077 && mkdir "$tmp")
  29682. } ||
  29683. {
  29684. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  29685. { (exit 1); exit 1; }
  29686. }
  29687. # Set up the scripts for CONFIG_FILES section.
  29688. # No need to generate them if there are no CONFIG_FILES.
  29689. # This happens for instance with `./config.status config.h'.
  29690. if test -n "$CONFIG_FILES"; then
  29691. ac_cr=' '
  29692. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  29693. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  29694. ac_cs_awk_cr='\\r'
  29695. else
  29696. ac_cs_awk_cr=$ac_cr
  29697. fi
  29698. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  29699. _ACEOF
  29700. {
  29701. echo "cat >conf$$subs.awk <<_ACEOF" &&
  29702. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  29703. echo "_ACEOF"
  29704. } >conf$$subs.sh ||
  29705. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29706. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29707. { (exit 1); exit 1; }; }
  29708. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  29709. ac_delim='%!_!# '
  29710. for ac_last_try in false false false false false :; do
  29711. . ./conf$$subs.sh ||
  29712. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29713. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29714. { (exit 1); exit 1; }; }
  29715. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  29716. if test $ac_delim_n = $ac_delim_num; then
  29717. break
  29718. elif $ac_last_try; then
  29719. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  29720. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  29721. { (exit 1); exit 1; }; }
  29722. else
  29723. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29724. fi
  29725. done
  29726. rm -f conf$$subs.sh
  29727. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29728. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  29729. _ACEOF
  29730. sed -n '
  29731. h
  29732. s/^/S["/; s/!.*/"]=/
  29733. p
  29734. g
  29735. s/^[^!]*!//
  29736. :repl
  29737. t repl
  29738. s/'"$ac_delim"'$//
  29739. t delim
  29740. :nl
  29741. h
  29742. s/\(.\{148\}\).*/\1/
  29743. t more1
  29744. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  29745. p
  29746. n
  29747. b repl
  29748. :more1
  29749. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29750. p
  29751. g
  29752. s/.\{148\}//
  29753. t nl
  29754. :delim
  29755. h
  29756. s/\(.\{148\}\).*/\1/
  29757. t more2
  29758. s/["\\]/\\&/g; s/^/"/; s/$/"/
  29759. p
  29760. b
  29761. :more2
  29762. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29763. p
  29764. g
  29765. s/.\{148\}//
  29766. t delim
  29767. ' <conf$$subs.awk | sed '
  29768. /^[^""]/{
  29769. N
  29770. s/\n//
  29771. }
  29772. ' >>$CONFIG_STATUS || ac_write_fail=1
  29773. rm -f conf$$subs.awk
  29774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29775. _ACAWK
  29776. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  29777. for (key in S) S_is_set[key] = 1
  29778. FS = ""
  29779. }
  29780. {
  29781. line = $ 0
  29782. nfields = split(line, field, "@")
  29783. substed = 0
  29784. len = length(field[1])
  29785. for (i = 2; i < nfields; i++) {
  29786. key = field[i]
  29787. keylen = length(key)
  29788. if (S_is_set[key]) {
  29789. value = S[key]
  29790. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  29791. len += length(value) + length(field[++i])
  29792. substed = 1
  29793. } else
  29794. len += 1 + keylen
  29795. }
  29796. print line
  29797. }
  29798. _ACAWK
  29799. _ACEOF
  29800. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29801. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  29802. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  29803. else
  29804. cat
  29805. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  29806. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  29807. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  29808. { (exit 1); exit 1; }; }
  29809. _ACEOF
  29810. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  29811. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  29812. # trailing colons and then remove the whole line if VPATH becomes empty
  29813. # (actually we leave an empty line to preserve line numbers).
  29814. if test "x$srcdir" = x.; then
  29815. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  29816. s/:*\$(srcdir):*/:/
  29817. s/:*\${srcdir}:*/:/
  29818. s/:*@srcdir@:*/:/
  29819. s/^\([^=]*=[ ]*\):*/\1/
  29820. s/:*$//
  29821. s/^[^=]*=[ ]*$//
  29822. }'
  29823. fi
  29824. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29825. fi # test -n "$CONFIG_FILES"
  29826. # Set up the scripts for CONFIG_HEADERS section.
  29827. # No need to generate them if there are no CONFIG_HEADERS.
  29828. # This happens for instance with `./config.status Makefile'.
  29829. if test -n "$CONFIG_HEADERS"; then
  29830. cat >"$tmp/defines.awk" <<\_ACAWK ||
  29831. BEGIN {
  29832. _ACEOF
  29833. # Transform confdefs.h into an awk script `defines.awk', embedded as
  29834. # here-document in config.status, that substitutes the proper values into
  29835. # config.h.in to produce config.h.
  29836. # Create a delimiter string that does not exist in confdefs.h, to ease
  29837. # handling of long lines.
  29838. ac_delim='%!_!# '
  29839. for ac_last_try in false false :; do
  29840. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  29841. if test -z "$ac_t"; then
  29842. break
  29843. elif $ac_last_try; then
  29844. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  29845. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  29846. { (exit 1); exit 1; }; }
  29847. else
  29848. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29849. fi
  29850. done
  29851. # For the awk script, D is an array of macro values keyed by name,
  29852. # likewise P contains macro parameters if any. Preserve backslash
  29853. # newline sequences.
  29854. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  29855. sed -n '
  29856. s/.\{148\}/&'"$ac_delim"'/g
  29857. t rset
  29858. :rset
  29859. s/^[ ]*#[ ]*define[ ][ ]*/ /
  29860. t def
  29861. d
  29862. :def
  29863. s/\\$//
  29864. t bsnl
  29865. s/["\\]/\\&/g
  29866. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  29867. D["\1"]=" \3"/p
  29868. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  29869. d
  29870. :bsnl
  29871. s/["\\]/\\&/g
  29872. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  29873. D["\1"]=" \3\\\\\\n"\\/p
  29874. t cont
  29875. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  29876. t cont
  29877. d
  29878. :cont
  29879. n
  29880. s/.\{148\}/&'"$ac_delim"'/g
  29881. t clear
  29882. :clear
  29883. s/\\$//
  29884. t bsnlc
  29885. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  29886. d
  29887. :bsnlc
  29888. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  29889. b cont
  29890. ' <confdefs.h | sed '
  29891. s/'"$ac_delim"'/"\\\
  29892. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  29893. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29894. for (key in D) D_is_set[key] = 1
  29895. FS = ""
  29896. }
  29897. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  29898. line = \$ 0
  29899. split(line, arg, " ")
  29900. if (arg[1] == "#") {
  29901. defundef = arg[2]
  29902. mac1 = arg[3]
  29903. } else {
  29904. defundef = substr(arg[1], 2)
  29905. mac1 = arg[2]
  29906. }
  29907. split(mac1, mac2, "(") #)
  29908. macro = mac2[1]
  29909. prefix = substr(line, 1, index(line, defundef) - 1)
  29910. if (D_is_set[macro]) {
  29911. # Preserve the white space surrounding the "#".
  29912. print prefix "define", macro P[macro] D[macro]
  29913. next
  29914. } else {
  29915. # Replace #undef with comments. This is necessary, for example,
  29916. # in the case of _POSIX_SOURCE, which is predefined and required
  29917. # on some systems where configure will not decide to define it.
  29918. if (defundef == "undef") {
  29919. print "/*", prefix defundef, macro, "*/"
  29920. next
  29921. }
  29922. }
  29923. }
  29924. { print }
  29925. _ACAWK
  29926. _ACEOF
  29927. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29928. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  29929. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  29930. { (exit 1); exit 1; }; }
  29931. fi # test -n "$CONFIG_HEADERS"
  29932. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  29933. shift
  29934. for ac_tag
  29935. do
  29936. case $ac_tag in
  29937. :[FHLC]) ac_mode=$ac_tag; continue;;
  29938. esac
  29939. case $ac_mode$ac_tag in
  29940. :[FHL]*:*);;
  29941. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  29942. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  29943. { (exit 1); exit 1; }; };;
  29944. :[FH]-) ac_tag=-:-;;
  29945. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  29946. esac
  29947. ac_save_IFS=$IFS
  29948. IFS=:
  29949. set x $ac_tag
  29950. IFS=$ac_save_IFS
  29951. shift
  29952. ac_file=$1
  29953. shift
  29954. case $ac_mode in
  29955. :L) ac_source=$1;;
  29956. :[FH])
  29957. ac_file_inputs=
  29958. for ac_f
  29959. do
  29960. case $ac_f in
  29961. -) ac_f="$tmp/stdin";;
  29962. *) # Look for the file first in the build tree, then in the source tree
  29963. # (if the path is not absolute). The absolute path cannot be DOS-style,
  29964. # because $ac_f cannot contain `:'.
  29965. test -f "$ac_f" ||
  29966. case $ac_f in
  29967. [\\/$]*) false;;
  29968. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  29969. esac ||
  29970. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  29971. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  29972. { (exit 1); exit 1; }; };;
  29973. esac
  29974. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  29975. ac_file_inputs="$ac_file_inputs '$ac_f'"
  29976. done
  29977. # Let's still pretend it is `configure' which instantiates (i.e., don't
  29978. # use $as_me), people would be surprised to read:
  29979. # /* config.h. Generated by config.status. */
  29980. configure_input='Generated from '`
  29981. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  29982. `' by configure.'
  29983. if test x"$ac_file" != x-; then
  29984. configure_input="$ac_file. $configure_input"
  29985. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  29986. $as_echo "$as_me: creating $ac_file" >&6;}
  29987. fi
  29988. # Neutralize special characters interpreted by sed in replacement strings.
  29989. case $configure_input in #(
  29990. *\&* | *\|* | *\\* )
  29991. ac_sed_conf_input=`$as_echo "$configure_input" |
  29992. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  29993. *) ac_sed_conf_input=$configure_input;;
  29994. esac
  29995. case $ac_tag in
  29996. *:-:* | *:-) cat >"$tmp/stdin" \
  29997. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  29998. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  29999. { (exit 1); exit 1; }; } ;;
  30000. esac
  30001. ;;
  30002. esac
  30003. ac_dir=`$as_dirname -- "$ac_file" ||
  30004. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30005. X"$ac_file" : 'X\(//\)[^/]' \| \
  30006. X"$ac_file" : 'X\(//\)$' \| \
  30007. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  30008. $as_echo X"$ac_file" |
  30009. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30010. s//\1/
  30011. q
  30012. }
  30013. /^X\(\/\/\)[^/].*/{
  30014. s//\1/
  30015. q
  30016. }
  30017. /^X\(\/\/\)$/{
  30018. s//\1/
  30019. q
  30020. }
  30021. /^X\(\/\).*/{
  30022. s//\1/
  30023. q
  30024. }
  30025. s/.*/./; q'`
  30026. { as_dir="$ac_dir"
  30027. case $as_dir in #(
  30028. -*) as_dir=./$as_dir;;
  30029. esac
  30030. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  30031. as_dirs=
  30032. while :; do
  30033. case $as_dir in #(
  30034. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  30035. *) as_qdir=$as_dir;;
  30036. esac
  30037. as_dirs="'$as_qdir' $as_dirs"
  30038. as_dir=`$as_dirname -- "$as_dir" ||
  30039. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30040. X"$as_dir" : 'X\(//\)[^/]' \| \
  30041. X"$as_dir" : 'X\(//\)$' \| \
  30042. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  30043. $as_echo X"$as_dir" |
  30044. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30045. s//\1/
  30046. q
  30047. }
  30048. /^X\(\/\/\)[^/].*/{
  30049. s//\1/
  30050. q
  30051. }
  30052. /^X\(\/\/\)$/{
  30053. s//\1/
  30054. q
  30055. }
  30056. /^X\(\/\).*/{
  30057. s//\1/
  30058. q
  30059. }
  30060. s/.*/./; q'`
  30061. test -d "$as_dir" && break
  30062. done
  30063. test -z "$as_dirs" || eval "mkdir $as_dirs"
  30064. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  30065. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  30066. { (exit 1); exit 1; }; }; }
  30067. ac_builddir=.
  30068. case "$ac_dir" in
  30069. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30070. *)
  30071. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  30072. # A ".." for each directory in $ac_dir_suffix.
  30073. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  30074. case $ac_top_builddir_sub in
  30075. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30076. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  30077. esac ;;
  30078. esac
  30079. ac_abs_top_builddir=$ac_pwd
  30080. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  30081. # for backward compatibility:
  30082. ac_top_builddir=$ac_top_build_prefix
  30083. case $srcdir in
  30084. .) # We are building in place.
  30085. ac_srcdir=.
  30086. ac_top_srcdir=$ac_top_builddir_sub
  30087. ac_abs_top_srcdir=$ac_pwd ;;
  30088. [\\/]* | ?:[\\/]* ) # Absolute name.
  30089. ac_srcdir=$srcdir$ac_dir_suffix;
  30090. ac_top_srcdir=$srcdir
  30091. ac_abs_top_srcdir=$srcdir ;;
  30092. *) # Relative name.
  30093. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  30094. ac_top_srcdir=$ac_top_build_prefix$srcdir
  30095. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  30096. esac
  30097. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  30098. case $ac_mode in
  30099. :F)
  30100. #
  30101. # CONFIG_FILE
  30102. #
  30103. case $INSTALL in
  30104. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  30105. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  30106. esac
  30107. ac_MKDIR_P=$MKDIR_P
  30108. case $MKDIR_P in
  30109. [\\/$]* | ?:[\\/]* ) ;;
  30110. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  30111. esac
  30112. _ACEOF
  30113. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30114. # If the template does not know about datarootdir, expand it.
  30115. # FIXME: This hack should be removed a few years after 2.60.
  30116. ac_datarootdir_hack=; ac_datarootdir_seen=
  30117. ac_sed_dataroot='
  30118. /datarootdir/ {
  30119. p
  30120. q
  30121. }
  30122. /@datadir@/p
  30123. /@docdir@/p
  30124. /@infodir@/p
  30125. /@localedir@/p
  30126. /@mandir@/p
  30127. '
  30128. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  30129. *datarootdir*) ac_datarootdir_seen=yes;;
  30130. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  30131. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  30132. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  30133. _ACEOF
  30134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30135. ac_datarootdir_hack='
  30136. s&@datadir@&$datadir&g
  30137. s&@docdir@&$docdir&g
  30138. s&@infodir@&$infodir&g
  30139. s&@localedir@&$localedir&g
  30140. s&@mandir@&$mandir&g
  30141. s&\\\${datarootdir}&$datarootdir&g' ;;
  30142. esac
  30143. _ACEOF
  30144. # Neutralize VPATH when `$srcdir' = `.'.
  30145. # Shell code in configure.ac might set extrasub.
  30146. # FIXME: do we really want to maintain this feature?
  30147. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30148. ac_sed_extra="$ac_vpsub
  30149. $extrasub
  30150. _ACEOF
  30151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30152. :t
  30153. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  30154. s|@configure_input@|$ac_sed_conf_input|;t t
  30155. s&@top_builddir@&$ac_top_builddir_sub&;t t
  30156. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  30157. s&@srcdir@&$ac_srcdir&;t t
  30158. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  30159. s&@top_srcdir@&$ac_top_srcdir&;t t
  30160. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  30161. s&@builddir@&$ac_builddir&;t t
  30162. s&@abs_builddir@&$ac_abs_builddir&;t t
  30163. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  30164. s&@INSTALL@&$ac_INSTALL&;t t
  30165. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  30166. $ac_datarootdir_hack
  30167. "
  30168. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  30169. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30170. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30171. { (exit 1); exit 1; }; }
  30172. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  30173. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  30174. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  30175. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30176. which seems to be undefined. Please make sure it is defined." >&5
  30177. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30178. which seems to be undefined. Please make sure it is defined." >&2;}
  30179. rm -f "$tmp/stdin"
  30180. case $ac_file in
  30181. -) cat "$tmp/out" && rm -f "$tmp/out";;
  30182. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  30183. esac \
  30184. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30185. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30186. { (exit 1); exit 1; }; }
  30187. ;;
  30188. :H)
  30189. #
  30190. # CONFIG_HEADER
  30191. #
  30192. if test x"$ac_file" != x-; then
  30193. {
  30194. $as_echo "/* $configure_input */" \
  30195. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  30196. } >"$tmp/config.h" \
  30197. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30198. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30199. { (exit 1); exit 1; }; }
  30200. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  30201. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  30202. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  30203. else
  30204. rm -f "$ac_file"
  30205. mv "$tmp/config.h" "$ac_file" \
  30206. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  30207. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  30208. { (exit 1); exit 1; }; }
  30209. fi
  30210. else
  30211. $as_echo "/* $configure_input */" \
  30212. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  30213. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  30214. $as_echo "$as_me: error: could not create -" >&2;}
  30215. { (exit 1); exit 1; }; }
  30216. fi
  30217. # Compute "$ac_file"'s index in $config_headers.
  30218. _am_arg="$ac_file"
  30219. _am_stamp_count=1
  30220. for _am_header in $config_headers :; do
  30221. case $_am_header in
  30222. $_am_arg | $_am_arg:* )
  30223. break ;;
  30224. * )
  30225. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  30226. esac
  30227. done
  30228. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  30229. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30230. X"$_am_arg" : 'X\(//\)[^/]' \| \
  30231. X"$_am_arg" : 'X\(//\)$' \| \
  30232. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  30233. $as_echo X"$_am_arg" |
  30234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30235. s//\1/
  30236. q
  30237. }
  30238. /^X\(\/\/\)[^/].*/{
  30239. s//\1/
  30240. q
  30241. }
  30242. /^X\(\/\/\)$/{
  30243. s//\1/
  30244. q
  30245. }
  30246. /^X\(\/\).*/{
  30247. s//\1/
  30248. q
  30249. }
  30250. s/.*/./; q'`/stamp-h$_am_stamp_count
  30251. ;;
  30252. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  30253. $as_echo "$as_me: executing $ac_file commands" >&6;}
  30254. ;;
  30255. esac
  30256. case $ac_file$ac_mode in
  30257. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  30258. # are listed without --file. Let's play safe and only enable the eval
  30259. # if we detect the quoting.
  30260. case $CONFIG_FILES in
  30261. *\'*) eval set x "$CONFIG_FILES" ;;
  30262. *) set x $CONFIG_FILES ;;
  30263. esac
  30264. shift
  30265. for mf
  30266. do
  30267. # Strip MF so we end up with the name of the file.
  30268. mf=`echo "$mf" | sed -e 's/:.*$//'`
  30269. # Check whether this is an Automake generated Makefile or not.
  30270. # We used to match only the files named `Makefile.in', but
  30271. # some people rename them; so instead we look at the file content.
  30272. # Grep'ing the first line is not enough: some people post-process
  30273. # each Makefile.in and add a new line on top of each file to say so.
  30274. # Grep'ing the whole file is not good either: AIX grep has a line
  30275. # limit of 2048, but all sed's we know have understand at least 4000.
  30276. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  30277. dirpart=`$as_dirname -- "$mf" ||
  30278. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30279. X"$mf" : 'X\(//\)[^/]' \| \
  30280. X"$mf" : 'X\(//\)$' \| \
  30281. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  30282. $as_echo X"$mf" |
  30283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30284. s//\1/
  30285. q
  30286. }
  30287. /^X\(\/\/\)[^/].*/{
  30288. s//\1/
  30289. q
  30290. }
  30291. /^X\(\/\/\)$/{
  30292. s//\1/
  30293. q
  30294. }
  30295. /^X\(\/\).*/{
  30296. s//\1/
  30297. q
  30298. }
  30299. s/.*/./; q'`
  30300. else
  30301. continue
  30302. fi
  30303. # Extract the definition of DEPDIR, am__include, and am__quote
  30304. # from the Makefile without running `make'.
  30305. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  30306. test -z "$DEPDIR" && continue
  30307. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  30308. test -z "am__include" && continue
  30309. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  30310. # When using ansi2knr, U may be empty or an underscore; expand it
  30311. U=`sed -n 's/^U = //p' < "$mf"`
  30312. # Find all dependency output files, they are included files with
  30313. # $(DEPDIR) in their names. We invoke sed twice because it is the
  30314. # simplest approach to changing $(DEPDIR) to its actual value in the
  30315. # expansion.
  30316. for file in `sed -n "
  30317. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  30318. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  30319. # Make sure the directory exists.
  30320. test -f "$dirpart/$file" && continue
  30321. fdir=`$as_dirname -- "$file" ||
  30322. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30323. X"$file" : 'X\(//\)[^/]' \| \
  30324. X"$file" : 'X\(//\)$' \| \
  30325. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  30326. $as_echo X"$file" |
  30327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30328. s//\1/
  30329. q
  30330. }
  30331. /^X\(\/\/\)[^/].*/{
  30332. s//\1/
  30333. q
  30334. }
  30335. /^X\(\/\/\)$/{
  30336. s//\1/
  30337. q
  30338. }
  30339. /^X\(\/\).*/{
  30340. s//\1/
  30341. q
  30342. }
  30343. s/.*/./; q'`
  30344. { as_dir=$dirpart/$fdir
  30345. case $as_dir in #(
  30346. -*) as_dir=./$as_dir;;
  30347. esac
  30348. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  30349. as_dirs=
  30350. while :; do
  30351. case $as_dir in #(
  30352. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  30353. *) as_qdir=$as_dir;;
  30354. esac
  30355. as_dirs="'$as_qdir' $as_dirs"
  30356. as_dir=`$as_dirname -- "$as_dir" ||
  30357. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30358. X"$as_dir" : 'X\(//\)[^/]' \| \
  30359. X"$as_dir" : 'X\(//\)$' \| \
  30360. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  30361. $as_echo X"$as_dir" |
  30362. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30363. s//\1/
  30364. q
  30365. }
  30366. /^X\(\/\/\)[^/].*/{
  30367. s//\1/
  30368. q
  30369. }
  30370. /^X\(\/\/\)$/{
  30371. s//\1/
  30372. q
  30373. }
  30374. /^X\(\/\).*/{
  30375. s//\1/
  30376. q
  30377. }
  30378. s/.*/./; q'`
  30379. test -d "$as_dir" && break
  30380. done
  30381. test -z "$as_dirs" || eval "mkdir $as_dirs"
  30382. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  30383. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  30384. { (exit 1); exit 1; }; }; }
  30385. # echo "creating $dirpart/$file"
  30386. echo '# dummy' > "$dirpart/$file"
  30387. done
  30388. done
  30389. ;;
  30390. "libtool":C)
  30391. # See if we are running on zsh, and set the options which allow our
  30392. # commands through without removal of \ escapes.
  30393. if test -n "${ZSH_VERSION+set}" ; then
  30394. setopt NO_GLOB_SUBST
  30395. fi
  30396. cfgfile="${ofile}T"
  30397. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  30398. $RM "$cfgfile"
  30399. cat <<_LT_EOF >> "$cfgfile"
  30400. #! $SHELL
  30401. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  30402. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  30403. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30404. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  30405. #
  30406. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30407. # 2006, 2007, 2008 Free Software Foundation, Inc.
  30408. # Written by Gordon Matzigkeit, 1996
  30409. #
  30410. # This file is part of GNU Libtool.
  30411. #
  30412. # GNU Libtool is free software; you can redistribute it and/or
  30413. # modify it under the terms of the GNU General Public License as
  30414. # published by the Free Software Foundation; either version 2 of
  30415. # the License, or (at your option) any later version.
  30416. #
  30417. # As a special exception to the GNU General Public License,
  30418. # if you distribute this file as part of a program or library that
  30419. # is built using GNU Libtool, you may include this file under the
  30420. # same distribution terms that you use for the rest of that program.
  30421. #
  30422. # GNU Libtool is distributed in the hope that it will be useful,
  30423. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  30424. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30425. # GNU General Public License for more details.
  30426. #
  30427. # You should have received a copy of the GNU General Public License
  30428. # along with GNU Libtool; see the file COPYING. If not, a copy
  30429. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  30430. # obtained by writing to the Free Software Foundation, Inc.,
  30431. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  30432. # The names of the tagged configurations supported by this script.
  30433. available_tags="CXX "
  30434. # ### BEGIN LIBTOOL CONFIG
  30435. # Which release of libtool.m4 was used?
  30436. macro_version=$macro_version
  30437. macro_revision=$macro_revision
  30438. # Whether or not to build shared libraries.
  30439. build_libtool_libs=$enable_shared
  30440. # Whether or not to build static libraries.
  30441. build_old_libs=$enable_static
  30442. # What type of objects to build.
  30443. pic_mode=$pic_mode
  30444. # Whether or not to optimize for fast installation.
  30445. fast_install=$enable_fast_install
  30446. # The host system.
  30447. host_alias=$host_alias
  30448. host=$host
  30449. host_os=$host_os
  30450. # The build system.
  30451. build_alias=$build_alias
  30452. build=$build
  30453. build_os=$build_os
  30454. # A sed program that does not truncate output.
  30455. SED=$lt_SED
  30456. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  30457. Xsed="\$SED -e 1s/^X//"
  30458. # A grep program that handles long lines.
  30459. GREP=$lt_GREP
  30460. # An ERE matcher.
  30461. EGREP=$lt_EGREP
  30462. # A literal string matcher.
  30463. FGREP=$lt_FGREP
  30464. # A BSD- or MS-compatible name lister.
  30465. NM=$lt_NM
  30466. # Whether we need soft or hard links.
  30467. LN_S=$lt_LN_S
  30468. # What is the maximum length of a command?
  30469. max_cmd_len=$max_cmd_len
  30470. # Object file suffix (normally "o").
  30471. objext=$ac_objext
  30472. # Executable file suffix (normally "").
  30473. exeext=$exeext
  30474. # whether the shell understands "unset".
  30475. lt_unset=$lt_unset
  30476. # turn spaces into newlines.
  30477. SP2NL=$lt_lt_SP2NL
  30478. # turn newlines into spaces.
  30479. NL2SP=$lt_lt_NL2SP
  30480. # How to create reloadable object files.
  30481. reload_flag=$lt_reload_flag
  30482. reload_cmds=$lt_reload_cmds
  30483. # An object symbol dumper.
  30484. OBJDUMP=$lt_OBJDUMP
  30485. # Method to check whether dependent libraries are shared objects.
  30486. deplibs_check_method=$lt_deplibs_check_method
  30487. # Command to use when deplibs_check_method == "file_magic".
  30488. file_magic_cmd=$lt_file_magic_cmd
  30489. # The archiver.
  30490. AR=$lt_AR
  30491. AR_FLAGS=$lt_AR_FLAGS
  30492. # A symbol stripping program.
  30493. STRIP=$lt_STRIP
  30494. # Commands used to install an old-style archive.
  30495. RANLIB=$lt_RANLIB
  30496. old_postinstall_cmds=$lt_old_postinstall_cmds
  30497. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30498. # A C compiler.
  30499. LTCC=$lt_CC
  30500. # LTCC compiler flags.
  30501. LTCFLAGS=$lt_CFLAGS
  30502. # Take the output of nm and produce a listing of raw symbols and C names.
  30503. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30504. # Transform the output of nm in a proper C declaration.
  30505. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30506. # Transform the output of nm in a C name address pair.
  30507. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30508. # Transform the output of nm in a C name address pair when lib prefix is needed.
  30509. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  30510. # The name of the directory that contains temporary libtool files.
  30511. objdir=$objdir
  30512. # Shell to use when invoking shell scripts.
  30513. SHELL=$lt_SHELL
  30514. # An echo program that does not interpret backslashes.
  30515. ECHO=$lt_ECHO
  30516. # Used to examine libraries when file_magic_cmd begins with "file".
  30517. MAGIC_CMD=$MAGIC_CMD
  30518. # Must we lock files when doing compilation?
  30519. need_locks=$lt_need_locks
  30520. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  30521. DSYMUTIL=$lt_DSYMUTIL
  30522. # Tool to change global to local symbols on Mac OS X.
  30523. NMEDIT=$lt_NMEDIT
  30524. # Tool to manipulate fat objects and archives on Mac OS X.
  30525. LIPO=$lt_LIPO
  30526. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  30527. OTOOL=$lt_OTOOL
  30528. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  30529. OTOOL64=$lt_OTOOL64
  30530. # Old archive suffix (normally "a").
  30531. libext=$libext
  30532. # Shared library suffix (normally ".so").
  30533. shrext_cmds=$lt_shrext_cmds
  30534. # The commands to extract the exported symbol list from a shared archive.
  30535. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30536. # Variables whose values should be saved in libtool wrapper scripts and
  30537. # restored at link time.
  30538. variables_saved_for_relink=$lt_variables_saved_for_relink
  30539. # Do we need the "lib" prefix for modules?
  30540. need_lib_prefix=$need_lib_prefix
  30541. # Do we need a version for libraries?
  30542. need_version=$need_version
  30543. # Library versioning type.
  30544. version_type=$version_type
  30545. # Shared library runtime path variable.
  30546. runpath_var=$runpath_var
  30547. # Shared library path variable.
  30548. shlibpath_var=$shlibpath_var
  30549. # Is shlibpath searched before the hard-coded library search path?
  30550. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30551. # Format of library name prefix.
  30552. libname_spec=$lt_libname_spec
  30553. # List of archive names. First name is the real one, the rest are links.
  30554. # The last name is the one that the linker finds with -lNAME
  30555. library_names_spec=$lt_library_names_spec
  30556. # The coded name of the library, if different from the real name.
  30557. soname_spec=$lt_soname_spec
  30558. # Command to use after installation of a shared archive.
  30559. postinstall_cmds=$lt_postinstall_cmds
  30560. # Command to use after uninstallation of a shared archive.
  30561. postuninstall_cmds=$lt_postuninstall_cmds
  30562. # Commands used to finish a libtool library installation in a directory.
  30563. finish_cmds=$lt_finish_cmds
  30564. # As "finish_cmds", except a single script fragment to be evaled but
  30565. # not shown.
  30566. finish_eval=$lt_finish_eval
  30567. # Whether we should hardcode library paths into libraries.
  30568. hardcode_into_libs=$hardcode_into_libs
  30569. # Compile-time system search path for libraries.
  30570. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30571. # Run-time system search path for libraries.
  30572. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30573. # Whether dlopen is supported.
  30574. dlopen_support=$enable_dlopen
  30575. # Whether dlopen of programs is supported.
  30576. dlopen_self=$enable_dlopen_self
  30577. # Whether dlopen of statically linked programs is supported.
  30578. dlopen_self_static=$enable_dlopen_self_static
  30579. # Commands to strip libraries.
  30580. old_striplib=$lt_old_striplib
  30581. striplib=$lt_striplib
  30582. # The linker used to build libraries.
  30583. LD=$lt_LD
  30584. # Commands used to build an old-style archive.
  30585. old_archive_cmds=$lt_old_archive_cmds
  30586. # A language specific compiler.
  30587. CC=$lt_compiler
  30588. # Is the compiler the GNU compiler?
  30589. with_gcc=$GCC
  30590. # Compiler flag to turn off builtin functions.
  30591. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  30592. # How to pass a linker flag through the compiler.
  30593. wl=$lt_lt_prog_compiler_wl
  30594. # Additional compiler flags for building library objects.
  30595. pic_flag=$lt_lt_prog_compiler_pic
  30596. # Compiler flag to prevent dynamic linking.
  30597. link_static_flag=$lt_lt_prog_compiler_static
  30598. # Does compiler simultaneously support -c and -o options?
  30599. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  30600. # Whether or not to add -lc for building shared libraries.
  30601. build_libtool_need_lc=$archive_cmds_need_lc
  30602. # Whether or not to disallow shared libs when runtime libs are static.
  30603. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  30604. # Compiler flag to allow reflexive dlopens.
  30605. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  30606. # Compiler flag to generate shared objects directly from archives.
  30607. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  30608. # Whether the compiler copes with passing no objects directly.
  30609. compiler_needs_object=$lt_compiler_needs_object
  30610. # Create an old-style archive from a shared archive.
  30611. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  30612. # Create a temporary old-style archive to link instead of a shared archive.
  30613. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  30614. # Commands used to build a shared archive.
  30615. archive_cmds=$lt_archive_cmds
  30616. archive_expsym_cmds=$lt_archive_expsym_cmds
  30617. # Commands used to build a loadable module if different from building
  30618. # a shared archive.
  30619. module_cmds=$lt_module_cmds
  30620. module_expsym_cmds=$lt_module_expsym_cmds
  30621. # Whether we are building with GNU ld or not.
  30622. with_gnu_ld=$lt_with_gnu_ld
  30623. # Flag that allows shared libraries with undefined symbols to be built.
  30624. allow_undefined_flag=$lt_allow_undefined_flag
  30625. # Flag that enforces no undefined symbols.
  30626. no_undefined_flag=$lt_no_undefined_flag
  30627. # Flag to hardcode \$libdir into a binary during linking.
  30628. # This must work even if \$libdir does not exist
  30629. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  30630. # If ld is used when linking, flag to hardcode \$libdir into a binary
  30631. # during linking. This must work even if \$libdir does not exist.
  30632. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  30633. # Whether we need a single "-rpath" flag with a separated argument.
  30634. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30635. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30636. # DIR into the resulting binary.
  30637. hardcode_direct=$hardcode_direct
  30638. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30639. # DIR into the resulting binary and the resulting library dependency is
  30640. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  30641. # library is relocated.
  30642. hardcode_direct_absolute=$hardcode_direct_absolute
  30643. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  30644. # into the resulting binary.
  30645. hardcode_minus_L=$hardcode_minus_L
  30646. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  30647. # into the resulting binary.
  30648. hardcode_shlibpath_var=$hardcode_shlibpath_var
  30649. # Set to "yes" if building a shared library automatically hardcodes DIR
  30650. # into the library and all subsequent libraries and executables linked
  30651. # against it.
  30652. hardcode_automatic=$hardcode_automatic
  30653. # Set to yes if linker adds runtime paths of dependent libraries
  30654. # to runtime path list.
  30655. inherit_rpath=$inherit_rpath
  30656. # Whether libtool must link a program against all its dependency libraries.
  30657. link_all_deplibs=$link_all_deplibs
  30658. # Fix the shell variable \$srcfile for the compiler.
  30659. fix_srcfile_path=$lt_fix_srcfile_path
  30660. # Set to "yes" if exported symbols are required.
  30661. always_export_symbols=$always_export_symbols
  30662. # The commands to list exported symbols.
  30663. export_symbols_cmds=$lt_export_symbols_cmds
  30664. # Symbols that should not be listed in the preloaded symbols.
  30665. exclude_expsyms=$lt_exclude_expsyms
  30666. # Symbols that must always be exported.
  30667. include_expsyms=$lt_include_expsyms
  30668. # Commands necessary for linking programs (against libraries) with templates.
  30669. prelink_cmds=$lt_prelink_cmds
  30670. # Specify filename containing input files.
  30671. file_list_spec=$lt_file_list_spec
  30672. # How to hardcode a shared library path into an executable.
  30673. hardcode_action=$hardcode_action
  30674. # The directories searched by this compiler when creating a shared library.
  30675. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  30676. # Dependencies to place before and after the objects being linked to
  30677. # create a shared library.
  30678. predep_objects=$lt_predep_objects
  30679. postdep_objects=$lt_postdep_objects
  30680. predeps=$lt_predeps
  30681. postdeps=$lt_postdeps
  30682. # The library search path used internally by the compiler when linking
  30683. # a shared library.
  30684. compiler_lib_search_path=$lt_compiler_lib_search_path
  30685. # ### END LIBTOOL CONFIG
  30686. _LT_EOF
  30687. case $host_os in
  30688. aix3*)
  30689. cat <<\_LT_EOF >> "$cfgfile"
  30690. # AIX sometimes has problems with the GCC collect2 program. For some
  30691. # reason, if we set the COLLECT_NAMES environment variable, the problems
  30692. # vanish in a puff of smoke.
  30693. if test "X${COLLECT_NAMES+set}" != Xset; then
  30694. COLLECT_NAMES=
  30695. export COLLECT_NAMES
  30696. fi
  30697. _LT_EOF
  30698. ;;
  30699. esac
  30700. ltmain="$ac_aux_dir/ltmain.sh"
  30701. # We use sed instead of cat because bash on DJGPP gets confused if
  30702. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  30703. # text mode, it properly converts lines to CR/LF. This bash problem
  30704. # is reportedly fixed, but why not run on old versions too?
  30705. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  30706. || (rm -f "$cfgfile"; exit 1)
  30707. case $xsi_shell in
  30708. yes)
  30709. cat << \_LT_EOF >> "$cfgfile"
  30710. # func_dirname file append nondir_replacement
  30711. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  30712. # otherwise set result to NONDIR_REPLACEMENT.
  30713. func_dirname ()
  30714. {
  30715. case ${1} in
  30716. */*) func_dirname_result="${1%/*}${2}" ;;
  30717. * ) func_dirname_result="${3}" ;;
  30718. esac
  30719. }
  30720. # func_basename file
  30721. func_basename ()
  30722. {
  30723. func_basename_result="${1##*/}"
  30724. }
  30725. # func_dirname_and_basename file append nondir_replacement
  30726. # perform func_basename and func_dirname in a single function
  30727. # call:
  30728. # dirname: Compute the dirname of FILE. If nonempty,
  30729. # add APPEND to the result, otherwise set result
  30730. # to NONDIR_REPLACEMENT.
  30731. # value returned in "$func_dirname_result"
  30732. # basename: Compute filename of FILE.
  30733. # value retuned in "$func_basename_result"
  30734. # Implementation must be kept synchronized with func_dirname
  30735. # and func_basename. For efficiency, we do not delegate to
  30736. # those functions but instead duplicate the functionality here.
  30737. func_dirname_and_basename ()
  30738. {
  30739. case ${1} in
  30740. */*) func_dirname_result="${1%/*}${2}" ;;
  30741. * ) func_dirname_result="${3}" ;;
  30742. esac
  30743. func_basename_result="${1##*/}"
  30744. }
  30745. # func_stripname prefix suffix name
  30746. # strip PREFIX and SUFFIX off of NAME.
  30747. # PREFIX and SUFFIX must not contain globbing or regex special
  30748. # characters, hashes, percent signs, but SUFFIX may contain a leading
  30749. # dot (in which case that matches only a dot).
  30750. func_stripname ()
  30751. {
  30752. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  30753. # positional parameters, so assign one to ordinary parameter first.
  30754. func_stripname_result=${3}
  30755. func_stripname_result=${func_stripname_result#"${1}"}
  30756. func_stripname_result=${func_stripname_result%"${2}"}
  30757. }
  30758. # func_opt_split
  30759. func_opt_split ()
  30760. {
  30761. func_opt_split_opt=${1%%=*}
  30762. func_opt_split_arg=${1#*=}
  30763. }
  30764. # func_lo2o object
  30765. func_lo2o ()
  30766. {
  30767. case ${1} in
  30768. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  30769. *) func_lo2o_result=${1} ;;
  30770. esac
  30771. }
  30772. # func_xform libobj-or-source
  30773. func_xform ()
  30774. {
  30775. func_xform_result=${1%.*}.lo
  30776. }
  30777. # func_arith arithmetic-term...
  30778. func_arith ()
  30779. {
  30780. func_arith_result=$(( $* ))
  30781. }
  30782. # func_len string
  30783. # STRING may not start with a hyphen.
  30784. func_len ()
  30785. {
  30786. func_len_result=${#1}
  30787. }
  30788. _LT_EOF
  30789. ;;
  30790. *) # Bourne compatible functions.
  30791. cat << \_LT_EOF >> "$cfgfile"
  30792. # func_dirname file append nondir_replacement
  30793. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  30794. # otherwise set result to NONDIR_REPLACEMENT.
  30795. func_dirname ()
  30796. {
  30797. # Extract subdirectory from the argument.
  30798. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  30799. if test "X$func_dirname_result" = "X${1}"; then
  30800. func_dirname_result="${3}"
  30801. else
  30802. func_dirname_result="$func_dirname_result${2}"
  30803. fi
  30804. }
  30805. # func_basename file
  30806. func_basename ()
  30807. {
  30808. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  30809. }
  30810. # func_stripname prefix suffix name
  30811. # strip PREFIX and SUFFIX off of NAME.
  30812. # PREFIX and SUFFIX must not contain globbing or regex special
  30813. # characters, hashes, percent signs, but SUFFIX may contain a leading
  30814. # dot (in which case that matches only a dot).
  30815. # func_strip_suffix prefix name
  30816. func_stripname ()
  30817. {
  30818. case ${2} in
  30819. .*) func_stripname_result=`$ECHO "X${3}" \
  30820. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  30821. *) func_stripname_result=`$ECHO "X${3}" \
  30822. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  30823. esac
  30824. }
  30825. # sed scripts:
  30826. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  30827. my_sed_long_arg='1s/^-[^=]*=//'
  30828. # func_opt_split
  30829. func_opt_split ()
  30830. {
  30831. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  30832. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  30833. }
  30834. # func_lo2o object
  30835. func_lo2o ()
  30836. {
  30837. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  30838. }
  30839. # func_xform libobj-or-source
  30840. func_xform ()
  30841. {
  30842. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  30843. }
  30844. # func_arith arithmetic-term...
  30845. func_arith ()
  30846. {
  30847. func_arith_result=`expr "$@"`
  30848. }
  30849. # func_len string
  30850. # STRING may not start with a hyphen.
  30851. func_len ()
  30852. {
  30853. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  30854. }
  30855. _LT_EOF
  30856. esac
  30857. case $lt_shell_append in
  30858. yes)
  30859. cat << \_LT_EOF >> "$cfgfile"
  30860. # func_append var value
  30861. # Append VALUE to the end of shell variable VAR.
  30862. func_append ()
  30863. {
  30864. eval "$1+=\$2"
  30865. }
  30866. _LT_EOF
  30867. ;;
  30868. *)
  30869. cat << \_LT_EOF >> "$cfgfile"
  30870. # func_append var value
  30871. # Append VALUE to the end of shell variable VAR.
  30872. func_append ()
  30873. {
  30874. eval "$1=\$$1\$2"
  30875. }
  30876. _LT_EOF
  30877. ;;
  30878. esac
  30879. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  30880. || (rm -f "$cfgfile"; exit 1)
  30881. mv -f "$cfgfile" "$ofile" ||
  30882. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  30883. chmod +x "$ofile"
  30884. cat <<_LT_EOF >> "$ofile"
  30885. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  30886. # The linker used to build libraries.
  30887. LD=$lt_LD_CXX
  30888. # Commands used to build an old-style archive.
  30889. old_archive_cmds=$lt_old_archive_cmds_CXX
  30890. # A language specific compiler.
  30891. CC=$lt_compiler_CXX
  30892. # Is the compiler the GNU compiler?
  30893. with_gcc=$GCC_CXX
  30894. # Compiler flag to turn off builtin functions.
  30895. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  30896. # How to pass a linker flag through the compiler.
  30897. wl=$lt_lt_prog_compiler_wl_CXX
  30898. # Additional compiler flags for building library objects.
  30899. pic_flag=$lt_lt_prog_compiler_pic_CXX
  30900. # Compiler flag to prevent dynamic linking.
  30901. link_static_flag=$lt_lt_prog_compiler_static_CXX
  30902. # Does compiler simultaneously support -c and -o options?
  30903. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  30904. # Whether or not to add -lc for building shared libraries.
  30905. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30906. # Whether or not to disallow shared libs when runtime libs are static.
  30907. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30908. # Compiler flag to allow reflexive dlopens.
  30909. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  30910. # Compiler flag to generate shared objects directly from archives.
  30911. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  30912. # Whether the compiler copes with passing no objects directly.
  30913. compiler_needs_object=$lt_compiler_needs_object_CXX
  30914. # Create an old-style archive from a shared archive.
  30915. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  30916. # Create a temporary old-style archive to link instead of a shared archive.
  30917. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  30918. # Commands used to build a shared archive.
  30919. archive_cmds=$lt_archive_cmds_CXX
  30920. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  30921. # Commands used to build a loadable module if different from building
  30922. # a shared archive.
  30923. module_cmds=$lt_module_cmds_CXX
  30924. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  30925. # Whether we are building with GNU ld or not.
  30926. with_gnu_ld=$lt_with_gnu_ld_CXX
  30927. # Flag that allows shared libraries with undefined symbols to be built.
  30928. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  30929. # Flag that enforces no undefined symbols.
  30930. no_undefined_flag=$lt_no_undefined_flag_CXX
  30931. # Flag to hardcode \$libdir into a binary during linking.
  30932. # This must work even if \$libdir does not exist
  30933. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  30934. # If ld is used when linking, flag to hardcode \$libdir into a binary
  30935. # during linking. This must work even if \$libdir does not exist.
  30936. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  30937. # Whether we need a single "-rpath" flag with a separated argument.
  30938. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  30939. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30940. # DIR into the resulting binary.
  30941. hardcode_direct=$hardcode_direct_CXX
  30942. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30943. # DIR into the resulting binary and the resulting library dependency is
  30944. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  30945. # library is relocated.
  30946. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  30947. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  30948. # into the resulting binary.
  30949. hardcode_minus_L=$hardcode_minus_L_CXX
  30950. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  30951. # into the resulting binary.
  30952. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  30953. # Set to "yes" if building a shared library automatically hardcodes DIR
  30954. # into the library and all subsequent libraries and executables linked
  30955. # against it.
  30956. hardcode_automatic=$hardcode_automatic_CXX
  30957. # Set to yes if linker adds runtime paths of dependent libraries
  30958. # to runtime path list.
  30959. inherit_rpath=$inherit_rpath_CXX
  30960. # Whether libtool must link a program against all its dependency libraries.
  30961. link_all_deplibs=$link_all_deplibs_CXX
  30962. # Fix the shell variable \$srcfile for the compiler.
  30963. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  30964. # Set to "yes" if exported symbols are required.
  30965. always_export_symbols=$always_export_symbols_CXX
  30966. # The commands to list exported symbols.
  30967. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  30968. # Symbols that should not be listed in the preloaded symbols.
  30969. exclude_expsyms=$lt_exclude_expsyms_CXX
  30970. # Symbols that must always be exported.
  30971. include_expsyms=$lt_include_expsyms_CXX
  30972. # Commands necessary for linking programs (against libraries) with templates.
  30973. prelink_cmds=$lt_prelink_cmds_CXX
  30974. # Specify filename containing input files.
  30975. file_list_spec=$lt_file_list_spec_CXX
  30976. # How to hardcode a shared library path into an executable.
  30977. hardcode_action=$hardcode_action_CXX
  30978. # The directories searched by this compiler when creating a shared library.
  30979. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  30980. # Dependencies to place before and after the objects being linked to
  30981. # create a shared library.
  30982. predep_objects=$lt_predep_objects_CXX
  30983. postdep_objects=$lt_postdep_objects_CXX
  30984. predeps=$lt_predeps_CXX
  30985. postdeps=$lt_postdeps_CXX
  30986. # The library search path used internally by the compiler when linking
  30987. # a shared library.
  30988. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  30989. # ### END LIBTOOL TAG CONFIG: CXX
  30990. _LT_EOF
  30991. ;;
  30992. esac
  30993. done # for ac_tag
  30994. { (exit 0); exit 0; }
  30995. _ACEOF
  30996. chmod +x $CONFIG_STATUS
  30997. ac_clean_files=$ac_clean_files_save
  30998. test $ac_write_fail = 0 ||
  30999. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  31000. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  31001. { (exit 1); exit 1; }; }
  31002. # configure is writing to config.log, and then calls config.status.
  31003. # config.status does its own redirection, appending to config.log.
  31004. # Unfortunately, on DOS this fails, as config.log is still kept open
  31005. # by configure, so config.status won't be able to write to it; its
  31006. # output is simply discarded. So we exec the FD to /dev/null,
  31007. # effectively closing config.log, so it can be properly (re)opened and
  31008. # appended to by config.status. When coming back to configure, we
  31009. # need to make the FD available again.
  31010. if test "$no_create" != yes; then
  31011. ac_cs_success=:
  31012. ac_config_status_args=
  31013. test "$silent" = yes &&
  31014. ac_config_status_args="$ac_config_status_args --quiet"
  31015. exec 5>/dev/null
  31016. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  31017. exec 5>>config.log
  31018. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  31019. # would make configure fail if this is the last instruction.
  31020. $ac_cs_success || { (exit 1); exit 1; }
  31021. fi
  31022. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  31023. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  31024. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  31025. fi
  31026. # Configuration results
  31027. { $as_echo "$as_me:$LINENO: result: ##########################################################################
  31028. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  31029. ##########################################################################
  31030. libpcap: ${foundpcap} (${libpcap_version})
  31031. libdnet: ${founddnet} (${libdnet_version})
  31032. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  31033. Use libopts tearoff: ${enable_local_libopts}
  31034. 64bit counter support: ${use64bit_counters}
  31035. tcpdump binary path: ${tcpdump_path}
  31036. tcpreplay edit support: ${tcpreplay_edit}
  31037. fragroute support: ${enable_fragroute}
  31038. tcpbridge support: ${enable_tcpbridge}
  31039. Supported Packet Injection Methods (*):
  31040. Linux PF_PACKET: ${have_pf}
  31041. BSD BPF: ${have_bpf}
  31042. libdnet: ${have_libdnet}
  31043. pcap_inject: ${have_pcap_inject}
  31044. pcap_sendpacket: ${have_pcap_sendpacket} **
  31045. * In order of preference; see configure --help to override
  31046. ** Required for tcpbridge
  31047. " >&5
  31048. $as_echo "##########################################################################
  31049. TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION})
  31050. ##########################################################################
  31051. libpcap: ${foundpcap} (${libpcap_version})
  31052. libdnet: ${founddnet} (${libdnet_version})
  31053. autogen: ${AUTOGEN} (${AUTOGEN_VERSION})
  31054. Use libopts tearoff: ${enable_local_libopts}
  31055. 64bit counter support: ${use64bit_counters}
  31056. tcpdump binary path: ${tcpdump_path}
  31057. tcpreplay edit support: ${tcpreplay_edit}
  31058. fragroute support: ${enable_fragroute}
  31059. tcpbridge support: ${enable_tcpbridge}
  31060. Supported Packet Injection Methods (*):
  31061. Linux PF_PACKET: ${have_pf}
  31062. BSD BPF: ${have_bpf}
  31063. libdnet: ${have_libdnet}
  31064. pcap_inject: ${have_pcap_inject}
  31065. pcap_sendpacket: ${have_pcap_sendpacket} **
  31066. * In order of preference; see configure --help to override
  31067. ** Required for tcpbridge
  31068. " >&6; }
  31069. case $host in
  31070. *-apple-darwin*)
  31071. { $as_echo "$as_me:$LINENO: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  31072. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&5
  31073. $as_echo "$as_me: WARNING: Apple OS X versions prior to 10.5 (Leopard) has a serious problem!
  31074. Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details" >&2;}
  31075. ;;
  31076. *-*-cygwin)
  31077. { $as_echo "$as_me:$LINENO: WARNING: Windows/Cygwin support is still somewhat experimental.
  31078. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&5
  31079. $as_echo "$as_me: WARNING: Windows/Cygwin support is still somewhat experimental.
  31080. Please report any bugs! http://tcpreplay.synfin.net/trac/newticket" >&2;}
  31081. ;;
  31082. esac