configure 180 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for MCT 2.8.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. test -n "$DJDIR" || exec 7<&0 </dev/null
  486. exec 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='MCT'
  504. PACKAGE_TARNAME='mct'
  505. PACKAGE_VERSION='2.8'
  506. PACKAGE_STRING='MCT 2.8'
  507. PACKAGE_BUGREPORT=''
  508. PACKAGE_URL=''
  509. # Factoring default headers for most tests.
  510. ac_includes_default="\
  511. #include <stdio.h>
  512. #ifdef HAVE_SYS_TYPES_H
  513. # include <sys/types.h>
  514. #endif
  515. #ifdef HAVE_SYS_STAT_H
  516. # include <sys/stat.h>
  517. #endif
  518. #ifdef STDC_HEADERS
  519. # include <stdlib.h>
  520. # include <stddef.h>
  521. #else
  522. # ifdef HAVE_STDLIB_H
  523. # include <stdlib.h>
  524. # endif
  525. #endif
  526. #ifdef HAVE_STRING_H
  527. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  528. # include <memory.h>
  529. # endif
  530. # include <string.h>
  531. #endif
  532. #ifdef HAVE_STRINGS_H
  533. # include <strings.h>
  534. #endif
  535. #ifdef HAVE_INTTYPES_H
  536. # include <inttypes.h>
  537. #endif
  538. #ifdef HAVE_STDINT_H
  539. # include <stdint.h>
  540. #endif
  541. #ifdef HAVE_UNISTD_H
  542. # include <unistd.h>
  543. #endif"
  544. ac_subst_vars='LTLIBOBJS
  545. LIBOBJS
  546. CPPDEFS
  547. CRULE
  548. FCLIBS
  549. FC_DEFINE
  550. FCFLAGS_F
  551. MPISERPATH
  552. MPIFC
  553. FCFLAGS_F90
  554. ac_ct_FC
  555. EGREP
  556. GREP
  557. CPP
  558. OBJEXT
  559. EXEEXT
  560. ac_ct_CC
  561. CPPFLAGS
  562. LDFLAGS
  563. CC
  564. PYTHONOPTS
  565. PYTHON
  566. FORT_SIZE
  567. COMPILER_ROOT
  568. BABELROOT
  569. AR
  570. INCLUDEPATH
  571. INCLUDEFLAG
  572. ENDIAN
  573. BIT64
  574. REAL8
  575. OPT
  576. DEBUG
  577. CFLAGS
  578. PROGFCFLAGS
  579. FCFLAGS
  580. FC
  581. FPPFLAGS
  582. FPP
  583. MPIHEADER
  584. MPILIBS
  585. target_alias
  586. host_alias
  587. build_alias
  588. LIBS
  589. ECHO_T
  590. ECHO_N
  591. ECHO_C
  592. DEFS
  593. mandir
  594. localedir
  595. libdir
  596. psdir
  597. pdfdir
  598. dvidir
  599. htmldir
  600. infodir
  601. docdir
  602. oldincludedir
  603. includedir
  604. localstatedir
  605. sharedstatedir
  606. sysconfdir
  607. datadir
  608. datarootdir
  609. libexecdir
  610. sbindir
  611. bindir
  612. program_transform_name
  613. prefix
  614. exec_prefix
  615. PACKAGE_URL
  616. PACKAGE_BUGREPORT
  617. PACKAGE_STRING
  618. PACKAGE_VERSION
  619. PACKAGE_TARNAME
  620. PACKAGE_NAME
  621. PATH_SEPARATOR
  622. SHELL'
  623. ac_subst_files=''
  624. ac_user_opts='
  625. enable_option_checking
  626. enable_mpiserial
  627. enable_debugging
  628. enable_selectedrealkind
  629. enable_sequence
  630. enable_babel
  631. '
  632. ac_precious_vars='build_alias
  633. host_alias
  634. target_alias
  635. MPILIBS
  636. MPIHEADER
  637. FPP
  638. FPPFLAGS
  639. FC
  640. FCFLAGS
  641. PROGFCFLAGS
  642. CFLAGS
  643. DEBUG
  644. OPT
  645. REAL8
  646. BIT64
  647. ENDIAN
  648. INCLUDEFLAG
  649. INCLUDEPATH
  650. AR
  651. BABELROOT
  652. COMPILER_ROOT
  653. FORT_SIZE
  654. CC
  655. LDFLAGS
  656. LIBS
  657. CPPFLAGS
  658. CPP
  659. MPIFC'
  660. # Initialize some variables set by options.
  661. ac_init_help=
  662. ac_init_version=false
  663. ac_unrecognized_opts=
  664. ac_unrecognized_sep=
  665. # The variables have the same names as the options, with
  666. # dashes changed to underlines.
  667. cache_file=/dev/null
  668. exec_prefix=NONE
  669. no_create=
  670. no_recursion=
  671. prefix=NONE
  672. program_prefix=NONE
  673. program_suffix=NONE
  674. program_transform_name=s,x,x,
  675. silent=
  676. site=
  677. srcdir=
  678. verbose=
  679. x_includes=NONE
  680. x_libraries=NONE
  681. # Installation directory options.
  682. # These are left unexpanded so users can "make install exec_prefix=/foo"
  683. # and all the variables that are supposed to be based on exec_prefix
  684. # by default will actually change.
  685. # Use braces instead of parens because sh, perl, etc. also accept them.
  686. # (The list follows the same order as the GNU Coding Standards.)
  687. bindir='${exec_prefix}/bin'
  688. sbindir='${exec_prefix}/sbin'
  689. libexecdir='${exec_prefix}/libexec'
  690. datarootdir='${prefix}/share'
  691. datadir='${datarootdir}'
  692. sysconfdir='${prefix}/etc'
  693. sharedstatedir='${prefix}/com'
  694. localstatedir='${prefix}/var'
  695. includedir='${prefix}/include'
  696. oldincludedir='/usr/include'
  697. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  698. infodir='${datarootdir}/info'
  699. htmldir='${docdir}'
  700. dvidir='${docdir}'
  701. pdfdir='${docdir}'
  702. psdir='${docdir}'
  703. libdir='${exec_prefix}/lib'
  704. localedir='${datarootdir}/locale'
  705. mandir='${datarootdir}/man'
  706. ac_prev=
  707. ac_dashdash=
  708. for ac_option
  709. do
  710. # If the previous option needs an argument, assign it.
  711. if test -n "$ac_prev"; then
  712. eval $ac_prev=\$ac_option
  713. ac_prev=
  714. continue
  715. fi
  716. case $ac_option in
  717. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  718. *) ac_optarg=yes ;;
  719. esac
  720. # Accept the important Cygnus configure options, so we can diagnose typos.
  721. case $ac_dashdash$ac_option in
  722. --)
  723. ac_dashdash=yes ;;
  724. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  725. ac_prev=bindir ;;
  726. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  727. bindir=$ac_optarg ;;
  728. -build | --build | --buil | --bui | --bu)
  729. ac_prev=build_alias ;;
  730. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  731. build_alias=$ac_optarg ;;
  732. -cache-file | --cache-file | --cache-fil | --cache-fi \
  733. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  734. ac_prev=cache_file ;;
  735. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  736. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  737. cache_file=$ac_optarg ;;
  738. --config-cache | -C)
  739. cache_file=config.cache ;;
  740. -datadir | --datadir | --datadi | --datad)
  741. ac_prev=datadir ;;
  742. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  743. datadir=$ac_optarg ;;
  744. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  745. | --dataroo | --dataro | --datar)
  746. ac_prev=datarootdir ;;
  747. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  748. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  749. datarootdir=$ac_optarg ;;
  750. -disable-* | --disable-*)
  751. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  752. # Reject names that are not valid shell variable names.
  753. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  754. as_fn_error "invalid feature name: $ac_useropt"
  755. ac_useropt_orig=$ac_useropt
  756. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  757. case $ac_user_opts in
  758. *"
  759. "enable_$ac_useropt"
  760. "*) ;;
  761. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  762. ac_unrecognized_sep=', ';;
  763. esac
  764. eval enable_$ac_useropt=no ;;
  765. -docdir | --docdir | --docdi | --doc | --do)
  766. ac_prev=docdir ;;
  767. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  768. docdir=$ac_optarg ;;
  769. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  770. ac_prev=dvidir ;;
  771. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  772. dvidir=$ac_optarg ;;
  773. -enable-* | --enable-*)
  774. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  775. # Reject names that are not valid shell variable names.
  776. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  777. as_fn_error "invalid feature name: $ac_useropt"
  778. ac_useropt_orig=$ac_useropt
  779. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  780. case $ac_user_opts in
  781. *"
  782. "enable_$ac_useropt"
  783. "*) ;;
  784. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  785. ac_unrecognized_sep=', ';;
  786. esac
  787. eval enable_$ac_useropt=\$ac_optarg ;;
  788. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  789. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  790. | --exec | --exe | --ex)
  791. ac_prev=exec_prefix ;;
  792. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  793. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  794. | --exec=* | --exe=* | --ex=*)
  795. exec_prefix=$ac_optarg ;;
  796. -gas | --gas | --ga | --g)
  797. # Obsolete; use --with-gas.
  798. with_gas=yes ;;
  799. -help | --help | --hel | --he | -h)
  800. ac_init_help=long ;;
  801. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  802. ac_init_help=recursive ;;
  803. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  804. ac_init_help=short ;;
  805. -host | --host | --hos | --ho)
  806. ac_prev=host_alias ;;
  807. -host=* | --host=* | --hos=* | --ho=*)
  808. host_alias=$ac_optarg ;;
  809. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  810. ac_prev=htmldir ;;
  811. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  812. | --ht=*)
  813. htmldir=$ac_optarg ;;
  814. -includedir | --includedir | --includedi | --included | --include \
  815. | --includ | --inclu | --incl | --inc)
  816. ac_prev=includedir ;;
  817. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  818. | --includ=* | --inclu=* | --incl=* | --inc=*)
  819. includedir=$ac_optarg ;;
  820. -infodir | --infodir | --infodi | --infod | --info | --inf)
  821. ac_prev=infodir ;;
  822. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  823. infodir=$ac_optarg ;;
  824. -libdir | --libdir | --libdi | --libd)
  825. ac_prev=libdir ;;
  826. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  827. libdir=$ac_optarg ;;
  828. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  829. | --libexe | --libex | --libe)
  830. ac_prev=libexecdir ;;
  831. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  832. | --libexe=* | --libex=* | --libe=*)
  833. libexecdir=$ac_optarg ;;
  834. -localedir | --localedir | --localedi | --localed | --locale)
  835. ac_prev=localedir ;;
  836. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  837. localedir=$ac_optarg ;;
  838. -localstatedir | --localstatedir | --localstatedi | --localstated \
  839. | --localstate | --localstat | --localsta | --localst | --locals)
  840. ac_prev=localstatedir ;;
  841. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  842. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  843. localstatedir=$ac_optarg ;;
  844. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  845. ac_prev=mandir ;;
  846. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  847. mandir=$ac_optarg ;;
  848. -nfp | --nfp | --nf)
  849. # Obsolete; use --without-fp.
  850. with_fp=no ;;
  851. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  852. | --no-cr | --no-c | -n)
  853. no_create=yes ;;
  854. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  855. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  856. no_recursion=yes ;;
  857. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  858. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  859. | --oldin | --oldi | --old | --ol | --o)
  860. ac_prev=oldincludedir ;;
  861. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  862. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  863. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  864. oldincludedir=$ac_optarg ;;
  865. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  866. ac_prev=prefix ;;
  867. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  868. prefix=$ac_optarg ;;
  869. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  870. | --program-pre | --program-pr | --program-p)
  871. ac_prev=program_prefix ;;
  872. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  873. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  874. program_prefix=$ac_optarg ;;
  875. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  876. | --program-suf | --program-su | --program-s)
  877. ac_prev=program_suffix ;;
  878. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  879. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  880. program_suffix=$ac_optarg ;;
  881. -program-transform-name | --program-transform-name \
  882. | --program-transform-nam | --program-transform-na \
  883. | --program-transform-n | --program-transform- \
  884. | --program-transform | --program-transfor \
  885. | --program-transfo | --program-transf \
  886. | --program-trans | --program-tran \
  887. | --progr-tra | --program-tr | --program-t)
  888. ac_prev=program_transform_name ;;
  889. -program-transform-name=* | --program-transform-name=* \
  890. | --program-transform-nam=* | --program-transform-na=* \
  891. | --program-transform-n=* | --program-transform-=* \
  892. | --program-transform=* | --program-transfor=* \
  893. | --program-transfo=* | --program-transf=* \
  894. | --program-trans=* | --program-tran=* \
  895. | --progr-tra=* | --program-tr=* | --program-t=*)
  896. program_transform_name=$ac_optarg ;;
  897. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  898. ac_prev=pdfdir ;;
  899. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  900. pdfdir=$ac_optarg ;;
  901. -psdir | --psdir | --psdi | --psd | --ps)
  902. ac_prev=psdir ;;
  903. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  904. psdir=$ac_optarg ;;
  905. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  906. | -silent | --silent | --silen | --sile | --sil)
  907. silent=yes ;;
  908. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  909. ac_prev=sbindir ;;
  910. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  911. | --sbi=* | --sb=*)
  912. sbindir=$ac_optarg ;;
  913. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  914. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  915. | --sharedst | --shareds | --shared | --share | --shar \
  916. | --sha | --sh)
  917. ac_prev=sharedstatedir ;;
  918. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  919. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  920. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  921. | --sha=* | --sh=*)
  922. sharedstatedir=$ac_optarg ;;
  923. -site | --site | --sit)
  924. ac_prev=site ;;
  925. -site=* | --site=* | --sit=*)
  926. site=$ac_optarg ;;
  927. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  928. ac_prev=srcdir ;;
  929. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  930. srcdir=$ac_optarg ;;
  931. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  932. | --syscon | --sysco | --sysc | --sys | --sy)
  933. ac_prev=sysconfdir ;;
  934. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  935. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  936. sysconfdir=$ac_optarg ;;
  937. -target | --target | --targe | --targ | --tar | --ta | --t)
  938. ac_prev=target_alias ;;
  939. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  940. target_alias=$ac_optarg ;;
  941. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  942. verbose=yes ;;
  943. -version | --version | --versio | --versi | --vers | -V)
  944. ac_init_version=: ;;
  945. -with-* | --with-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. as_fn_error "invalid package name: $ac_useropt"
  950. ac_useropt_orig=$ac_useropt
  951. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  952. case $ac_user_opts in
  953. *"
  954. "with_$ac_useropt"
  955. "*) ;;
  956. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  957. ac_unrecognized_sep=', ';;
  958. esac
  959. eval with_$ac_useropt=\$ac_optarg ;;
  960. -without-* | --without-*)
  961. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  962. # Reject names that are not valid shell variable names.
  963. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  964. as_fn_error "invalid package name: $ac_useropt"
  965. ac_useropt_orig=$ac_useropt
  966. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  967. case $ac_user_opts in
  968. *"
  969. "with_$ac_useropt"
  970. "*) ;;
  971. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  972. ac_unrecognized_sep=', ';;
  973. esac
  974. eval with_$ac_useropt=no ;;
  975. --x)
  976. # Obsolete; use --with-x.
  977. with_x=yes ;;
  978. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  979. | --x-incl | --x-inc | --x-in | --x-i)
  980. ac_prev=x_includes ;;
  981. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  982. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  983. x_includes=$ac_optarg ;;
  984. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  985. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  986. ac_prev=x_libraries ;;
  987. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  988. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  989. x_libraries=$ac_optarg ;;
  990. -*) as_fn_error "unrecognized option: \`$ac_option'
  991. Try \`$0 --help' for more information."
  992. ;;
  993. *=*)
  994. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  995. # Reject names that are not valid shell variable names.
  996. case $ac_envvar in #(
  997. '' | [0-9]* | *[!_$as_cr_alnum]* )
  998. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  999. esac
  1000. eval $ac_envvar=\$ac_optarg
  1001. export $ac_envvar ;;
  1002. *)
  1003. # FIXME: should be removed in autoconf 3.0.
  1004. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1005. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1006. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1007. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1008. ;;
  1009. esac
  1010. done
  1011. if test -n "$ac_prev"; then
  1012. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1013. as_fn_error "missing argument to $ac_option"
  1014. fi
  1015. if test -n "$ac_unrecognized_opts"; then
  1016. case $enable_option_checking in
  1017. no) ;;
  1018. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1019. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1020. esac
  1021. fi
  1022. # Check all directory arguments for consistency.
  1023. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1024. datadir sysconfdir sharedstatedir localstatedir includedir \
  1025. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1026. libdir localedir mandir
  1027. do
  1028. eval ac_val=\$$ac_var
  1029. # Remove trailing slashes.
  1030. case $ac_val in
  1031. */ )
  1032. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1033. eval $ac_var=\$ac_val;;
  1034. esac
  1035. # Be sure to have absolute directory names.
  1036. case $ac_val in
  1037. [\\/$]* | ?:[\\/]* ) continue;;
  1038. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1039. esac
  1040. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1041. done
  1042. # There might be people who depend on the old broken behavior: `$host'
  1043. # used to hold the argument of --host etc.
  1044. # FIXME: To remove some day.
  1045. build=$build_alias
  1046. host=$host_alias
  1047. target=$target_alias
  1048. # FIXME: To remove some day.
  1049. if test "x$host_alias" != x; then
  1050. if test "x$build_alias" = x; then
  1051. cross_compiling=maybe
  1052. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1053. If a cross compiler is detected then cross compile mode will be used." >&2
  1054. elif test "x$build_alias" != "x$host_alias"; then
  1055. cross_compiling=yes
  1056. fi
  1057. fi
  1058. ac_tool_prefix=
  1059. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1060. test "$silent" = yes && exec 6>/dev/null
  1061. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1062. ac_ls_di=`ls -di .` &&
  1063. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1064. as_fn_error "working directory cannot be determined"
  1065. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1066. as_fn_error "pwd does not report name of working directory"
  1067. # Find the source files, if location was not specified.
  1068. if test -z "$srcdir"; then
  1069. ac_srcdir_defaulted=yes
  1070. # Try the directory containing this script, then the parent directory.
  1071. ac_confdir=`$as_dirname -- "$as_myself" ||
  1072. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1073. X"$as_myself" : 'X\(//\)[^/]' \| \
  1074. X"$as_myself" : 'X\(//\)$' \| \
  1075. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1076. $as_echo X"$as_myself" |
  1077. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1078. s//\1/
  1079. q
  1080. }
  1081. /^X\(\/\/\)[^/].*/{
  1082. s//\1/
  1083. q
  1084. }
  1085. /^X\(\/\/\)$/{
  1086. s//\1/
  1087. q
  1088. }
  1089. /^X\(\/\).*/{
  1090. s//\1/
  1091. q
  1092. }
  1093. s/.*/./; q'`
  1094. srcdir=$ac_confdir
  1095. if test ! -r "$srcdir/$ac_unique_file"; then
  1096. srcdir=..
  1097. fi
  1098. else
  1099. ac_srcdir_defaulted=no
  1100. fi
  1101. if test ! -r "$srcdir/$ac_unique_file"; then
  1102. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1103. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1104. fi
  1105. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1106. ac_abs_confdir=`(
  1107. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1108. pwd)`
  1109. # When building in place, set srcdir=.
  1110. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1111. srcdir=.
  1112. fi
  1113. # Remove unnecessary trailing slashes from srcdir.
  1114. # Double slashes in file names in object file debugging info
  1115. # mess up M-x gdb in Emacs.
  1116. case $srcdir in
  1117. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1118. esac
  1119. for ac_var in $ac_precious_vars; do
  1120. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1121. eval ac_env_${ac_var}_value=\$${ac_var}
  1122. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1123. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1124. done
  1125. #
  1126. # Report the --help message.
  1127. #
  1128. if test "$ac_init_help" = "long"; then
  1129. # Omit some internal or obsolete options to make the list less imposing.
  1130. # This message is too long to be a string in the A/UX 3.1 sh.
  1131. cat <<_ACEOF
  1132. \`configure' configures MCT 2.8 to adapt to many kinds of systems.
  1133. Usage: $0 [OPTION]... [VAR=VALUE]...
  1134. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1135. VAR=VALUE. See below for descriptions of some of the useful variables.
  1136. Defaults for the options are specified in brackets.
  1137. Configuration:
  1138. -h, --help display this help and exit
  1139. --help=short display options specific to this package
  1140. --help=recursive display the short help of all the included packages
  1141. -V, --version display version information and exit
  1142. -q, --quiet, --silent do not print \`checking...' messages
  1143. --cache-file=FILE cache test results in FILE [disabled]
  1144. -C, --config-cache alias for \`--cache-file=config.cache'
  1145. -n, --no-create do not create output files
  1146. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1147. Installation directories:
  1148. --prefix=PREFIX install architecture-independent files in PREFIX
  1149. [$ac_default_prefix]
  1150. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1151. [PREFIX]
  1152. By default, \`make install' will install all the files in
  1153. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1154. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1155. for instance \`--prefix=\$HOME'.
  1156. For better control, use the options below.
  1157. Fine tuning of the installation directories:
  1158. --bindir=DIR user executables [EPREFIX/bin]
  1159. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1160. --libexecdir=DIR program executables [EPREFIX/libexec]
  1161. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1162. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1163. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1164. --libdir=DIR object code libraries [EPREFIX/lib]
  1165. --includedir=DIR C header files [PREFIX/include]
  1166. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1167. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1168. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1169. --infodir=DIR info documentation [DATAROOTDIR/info]
  1170. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1171. --mandir=DIR man documentation [DATAROOTDIR/man]
  1172. --docdir=DIR documentation root [DATAROOTDIR/doc/mct]
  1173. --htmldir=DIR html documentation [DOCDIR]
  1174. --dvidir=DIR dvi documentation [DOCDIR]
  1175. --pdfdir=DIR pdf documentation [DOCDIR]
  1176. --psdir=DIR ps documentation [DOCDIR]
  1177. _ACEOF
  1178. cat <<\_ACEOF
  1179. _ACEOF
  1180. fi
  1181. if test -n "$ac_init_help"; then
  1182. case $ac_init_help in
  1183. short | recursive ) echo "Configuration of MCT 2.8:";;
  1184. esac
  1185. cat <<\_ACEOF
  1186. Optional Features:
  1187. --disable-option-checking ignore unrecognized --enable/--with options
  1188. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1189. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1190. --enable-mpiserial Use the included MPI replacement library for single
  1191. processor
  1192. --enable-debugging Use the debugging flag and disable the optimization
  1193. flag
  1194. --enable-selectedrealkind
  1195. define single precision and double precision numbers
  1196. using the selected_real_kind function. Default uses
  1197. the kind inquiry function.
  1198. --enable-sequence Modify MCT types to make them contiguous in memory.
  1199. --enable-babel Supply this option if you plan on building the Babel
  1200. bindings to MCT
  1201. Some influential environment variables:
  1202. MPILIBS MPI library command line invocation
  1203. MPIHEADER MPI header include path with INCLUDEFLAG
  1204. FPP C-preprocessor for Fortran source code
  1205. FPPFLAGS C-preprocessing flags for Fortran source code
  1206. FC The Fortran compiler
  1207. FCFLAGS User-defined Fortran compiler flags
  1208. PROGFCFLAGS User-defined Fortran compiler flags for example programs
  1209. CFLAGS Customized C source compilation flags
  1210. DEBUG Fortran compiler flag for generating symbolic debugging
  1211. information
  1212. OPT Fortran compiler flag for optimization level
  1213. REAL8 Fortran compiler flag for setting the default REAL size to
  1214. REAL(KIND=8)
  1215. BIT64 Fortran compiler flag for generating 64-bit objects
  1216. ENDIAN Fortran compiler flag for converting big-endian to little-endian
  1217. INCLUDEFLAG Fortran compiler flag for specifying module search path
  1218. INCLUDEPATH Additional library and module paths with INCLUDEFLAG
  1219. AR Archive command
  1220. BABELROOT Root directory of your Babel installation. i.e.:
  1221. $BABELROOT/bin/babel $BABELROOT/lib/libsidl.so
  1222. COMPILER_ROOT
  1223. Root directory of your FORTRAN compiler
  1224. FORT_SIZE Number of bits in Fortran real and double kind
  1225. CC C compiler command
  1226. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1227. nonstandard directory <lib dir>
  1228. LIBS libraries to pass to the linker, e.g. -l<library>
  1229. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1230. you have headers in a nonstandard directory <include dir>
  1231. CPP C preprocessor
  1232. MPIFC MPI Fortran compiler command
  1233. Use these variables to override the choices made by `configure' or to help
  1234. it to find libraries and programs with nonstandard names/locations.
  1235. Report bugs to the package provider.
  1236. _ACEOF
  1237. ac_status=$?
  1238. fi
  1239. if test "$ac_init_help" = "recursive"; then
  1240. # If there are subdirs, report their specific --help.
  1241. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1242. test -d "$ac_dir" ||
  1243. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1244. continue
  1245. ac_builddir=.
  1246. case "$ac_dir" in
  1247. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1248. *)
  1249. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1250. # A ".." for each directory in $ac_dir_suffix.
  1251. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1252. case $ac_top_builddir_sub in
  1253. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1254. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1255. esac ;;
  1256. esac
  1257. ac_abs_top_builddir=$ac_pwd
  1258. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1259. # for backward compatibility:
  1260. ac_top_builddir=$ac_top_build_prefix
  1261. case $srcdir in
  1262. .) # We are building in place.
  1263. ac_srcdir=.
  1264. ac_top_srcdir=$ac_top_builddir_sub
  1265. ac_abs_top_srcdir=$ac_pwd ;;
  1266. [\\/]* | ?:[\\/]* ) # Absolute name.
  1267. ac_srcdir=$srcdir$ac_dir_suffix;
  1268. ac_top_srcdir=$srcdir
  1269. ac_abs_top_srcdir=$srcdir ;;
  1270. *) # Relative name.
  1271. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1272. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1273. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1274. esac
  1275. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1276. cd "$ac_dir" || { ac_status=$?; continue; }
  1277. # Check for guested configure.
  1278. if test -f "$ac_srcdir/configure.gnu"; then
  1279. echo &&
  1280. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1281. elif test -f "$ac_srcdir/configure"; then
  1282. echo &&
  1283. $SHELL "$ac_srcdir/configure" --help=recursive
  1284. else
  1285. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1286. fi || ac_status=$?
  1287. cd "$ac_pwd" || { ac_status=$?; break; }
  1288. done
  1289. fi
  1290. test -n "$ac_init_help" && exit $ac_status
  1291. if $ac_init_version; then
  1292. cat <<\_ACEOF
  1293. MCT configure 2.8
  1294. generated by GNU Autoconf 2.65
  1295. Copyright (C) 2009 Free Software Foundation, Inc.
  1296. This configure script is free software; the Free Software Foundation
  1297. gives unlimited permission to copy, distribute and modify it.
  1298. _ACEOF
  1299. exit
  1300. fi
  1301. ## ------------------------ ##
  1302. ## Autoconf initialization. ##
  1303. ## ------------------------ ##
  1304. # ac_fn_c_try_compile LINENO
  1305. # --------------------------
  1306. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1307. ac_fn_c_try_compile ()
  1308. {
  1309. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1310. rm -f conftest.$ac_objext
  1311. if { { ac_try="$ac_compile"
  1312. case "(($ac_try" in
  1313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1314. *) ac_try_echo=$ac_try;;
  1315. esac
  1316. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1317. $as_echo "$ac_try_echo"; } >&5
  1318. (eval "$ac_compile") 2>conftest.err
  1319. ac_status=$?
  1320. if test -s conftest.err; then
  1321. grep -v '^ *+' conftest.err >conftest.er1
  1322. cat conftest.er1 >&5
  1323. mv -f conftest.er1 conftest.err
  1324. fi
  1325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1326. test $ac_status = 0; } && {
  1327. test -z "$ac_c_werror_flag" ||
  1328. test ! -s conftest.err
  1329. } && test -s conftest.$ac_objext; then :
  1330. ac_retval=0
  1331. else
  1332. $as_echo "$as_me: failed program was:" >&5
  1333. sed 's/^/| /' conftest.$ac_ext >&5
  1334. ac_retval=1
  1335. fi
  1336. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1337. as_fn_set_status $ac_retval
  1338. } # ac_fn_c_try_compile
  1339. # ac_fn_c_try_run LINENO
  1340. # ----------------------
  1341. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1342. # that executables *can* be run.
  1343. ac_fn_c_try_run ()
  1344. {
  1345. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1346. if { { ac_try="$ac_link"
  1347. case "(($ac_try" in
  1348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1349. *) ac_try_echo=$ac_try;;
  1350. esac
  1351. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1352. $as_echo "$ac_try_echo"; } >&5
  1353. (eval "$ac_link") 2>&5
  1354. ac_status=$?
  1355. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1356. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1357. { { case "(($ac_try" in
  1358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1359. *) ac_try_echo=$ac_try;;
  1360. esac
  1361. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1362. $as_echo "$ac_try_echo"; } >&5
  1363. (eval "$ac_try") 2>&5
  1364. ac_status=$?
  1365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1366. test $ac_status = 0; }; }; then :
  1367. ac_retval=0
  1368. else
  1369. $as_echo "$as_me: program exited with status $ac_status" >&5
  1370. $as_echo "$as_me: failed program was:" >&5
  1371. sed 's/^/| /' conftest.$ac_ext >&5
  1372. ac_retval=$ac_status
  1373. fi
  1374. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1375. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1376. as_fn_set_status $ac_retval
  1377. } # ac_fn_c_try_run
  1378. # ac_fn_c_try_cpp LINENO
  1379. # ----------------------
  1380. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1381. ac_fn_c_try_cpp ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1385. case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1392. ac_status=$?
  1393. if test -s conftest.err; then
  1394. grep -v '^ *+' conftest.err >conftest.er1
  1395. cat conftest.er1 >&5
  1396. mv -f conftest.er1 conftest.err
  1397. fi
  1398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1399. test $ac_status = 0; } >/dev/null && {
  1400. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1401. test ! -s conftest.err
  1402. }; then :
  1403. ac_retval=0
  1404. else
  1405. $as_echo "$as_me: failed program was:" >&5
  1406. sed 's/^/| /' conftest.$ac_ext >&5
  1407. ac_retval=1
  1408. fi
  1409. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_c_try_cpp
  1412. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1413. # -------------------------------------------------------
  1414. # Tests whether HEADER exists and can be compiled using the include files in
  1415. # INCLUDES, setting the cache variable VAR accordingly.
  1416. ac_fn_c_check_header_compile ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1420. $as_echo_n "checking for $2... " >&6; }
  1421. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1422. $as_echo_n "(cached) " >&6
  1423. else
  1424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1425. /* end confdefs.h. */
  1426. $4
  1427. #include <$2>
  1428. _ACEOF
  1429. if ac_fn_c_try_compile "$LINENO"; then :
  1430. eval "$3=yes"
  1431. else
  1432. eval "$3=no"
  1433. fi
  1434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1435. fi
  1436. eval ac_res=\$$3
  1437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1438. $as_echo "$ac_res" >&6; }
  1439. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1440. } # ac_fn_c_check_header_compile
  1441. # ac_fn_fc_try_compile LINENO
  1442. # ---------------------------
  1443. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1444. ac_fn_fc_try_compile ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. rm -f conftest.$ac_objext
  1448. if { { ac_try="$ac_compile"
  1449. case "(($ac_try" in
  1450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1451. *) ac_try_echo=$ac_try;;
  1452. esac
  1453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1454. $as_echo "$ac_try_echo"; } >&5
  1455. (eval "$ac_compile") 2>conftest.err
  1456. ac_status=$?
  1457. if test -s conftest.err; then
  1458. grep -v '^ *+' conftest.err >conftest.er1
  1459. cat conftest.er1 >&5
  1460. mv -f conftest.er1 conftest.err
  1461. fi
  1462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1463. test $ac_status = 0; } && {
  1464. test -z "$ac_fc_werror_flag" ||
  1465. test ! -s conftest.err
  1466. } && test -s conftest.$ac_objext; then :
  1467. ac_retval=0
  1468. else
  1469. $as_echo "$as_me: failed program was:" >&5
  1470. sed 's/^/| /' conftest.$ac_ext >&5
  1471. ac_retval=1
  1472. fi
  1473. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1474. as_fn_set_status $ac_retval
  1475. } # ac_fn_fc_try_compile
  1476. # ac_fn_fc_try_link LINENO
  1477. # ------------------------
  1478. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1479. ac_fn_fc_try_link ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. rm -f conftest.$ac_objext conftest$ac_exeext
  1483. if { { ac_try="$ac_link"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_link") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && {
  1499. test -z "$ac_fc_werror_flag" ||
  1500. test ! -s conftest.err
  1501. } && test -s conftest$ac_exeext && {
  1502. test "$cross_compiling" = yes ||
  1503. $as_test_x conftest$ac_exeext
  1504. }; then :
  1505. ac_retval=0
  1506. else
  1507. $as_echo "$as_me: failed program was:" >&5
  1508. sed 's/^/| /' conftest.$ac_ext >&5
  1509. ac_retval=1
  1510. fi
  1511. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1512. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1513. # interfere with the next link command; also delete a directory that is
  1514. # left behind by Apple's compiler. We do this before executing the actions.
  1515. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1516. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1517. as_fn_set_status $ac_retval
  1518. } # ac_fn_fc_try_link
  1519. # ac_fn_c_try_link LINENO
  1520. # -----------------------
  1521. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1522. ac_fn_c_try_link ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. rm -f conftest.$ac_objext conftest$ac_exeext
  1526. if { { ac_try="$ac_link"
  1527. case "(($ac_try" in
  1528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1529. *) ac_try_echo=$ac_try;;
  1530. esac
  1531. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1532. $as_echo "$ac_try_echo"; } >&5
  1533. (eval "$ac_link") 2>conftest.err
  1534. ac_status=$?
  1535. if test -s conftest.err; then
  1536. grep -v '^ *+' conftest.err >conftest.er1
  1537. cat conftest.er1 >&5
  1538. mv -f conftest.er1 conftest.err
  1539. fi
  1540. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1541. test $ac_status = 0; } && {
  1542. test -z "$ac_c_werror_flag" ||
  1543. test ! -s conftest.err
  1544. } && test -s conftest$ac_exeext && {
  1545. test "$cross_compiling" = yes ||
  1546. $as_test_x conftest$ac_exeext
  1547. }; then :
  1548. ac_retval=0
  1549. else
  1550. $as_echo "$as_me: failed program was:" >&5
  1551. sed 's/^/| /' conftest.$ac_ext >&5
  1552. ac_retval=1
  1553. fi
  1554. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1555. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1556. # interfere with the next link command; also delete a directory that is
  1557. # left behind by Apple's compiler. We do this before executing the actions.
  1558. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1559. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1560. as_fn_set_status $ac_retval
  1561. } # ac_fn_c_try_link
  1562. cat >config.log <<_ACEOF
  1563. This file contains any messages produced by compilers while
  1564. running configure, to aid debugging if configure makes a mistake.
  1565. It was created by MCT $as_me 2.8, which was
  1566. generated by GNU Autoconf 2.65. Invocation command line was
  1567. $ $0 $@
  1568. _ACEOF
  1569. exec 5>>config.log
  1570. {
  1571. cat <<_ASUNAME
  1572. ## --------- ##
  1573. ## Platform. ##
  1574. ## --------- ##
  1575. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1576. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1577. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1578. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1579. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1580. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1581. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1582. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1583. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1584. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1585. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1586. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1587. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1588. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1589. _ASUNAME
  1590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1591. for as_dir in $PATH
  1592. do
  1593. IFS=$as_save_IFS
  1594. test -z "$as_dir" && as_dir=.
  1595. $as_echo "PATH: $as_dir"
  1596. done
  1597. IFS=$as_save_IFS
  1598. } >&5
  1599. cat >&5 <<_ACEOF
  1600. ## ----------- ##
  1601. ## Core tests. ##
  1602. ## ----------- ##
  1603. _ACEOF
  1604. # Keep a trace of the command line.
  1605. # Strip out --no-create and --no-recursion so they do not pile up.
  1606. # Strip out --silent because we don't want to record it for future runs.
  1607. # Also quote any args containing shell meta-characters.
  1608. # Make two passes to allow for proper duplicate-argument suppression.
  1609. ac_configure_args=
  1610. ac_configure_args0=
  1611. ac_configure_args1=
  1612. ac_must_keep_next=false
  1613. for ac_pass in 1 2
  1614. do
  1615. for ac_arg
  1616. do
  1617. case $ac_arg in
  1618. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1619. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1620. | -silent | --silent | --silen | --sile | --sil)
  1621. continue ;;
  1622. *\'*)
  1623. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1624. esac
  1625. case $ac_pass in
  1626. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1627. 2)
  1628. as_fn_append ac_configure_args1 " '$ac_arg'"
  1629. if test $ac_must_keep_next = true; then
  1630. ac_must_keep_next=false # Got value, back to normal.
  1631. else
  1632. case $ac_arg in
  1633. *=* | --config-cache | -C | -disable-* | --disable-* \
  1634. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1635. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1636. | -with-* | --with-* | -without-* | --without-* | --x)
  1637. case "$ac_configure_args0 " in
  1638. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1639. esac
  1640. ;;
  1641. -* ) ac_must_keep_next=true ;;
  1642. esac
  1643. fi
  1644. as_fn_append ac_configure_args " '$ac_arg'"
  1645. ;;
  1646. esac
  1647. done
  1648. done
  1649. { ac_configure_args0=; unset ac_configure_args0;}
  1650. { ac_configure_args1=; unset ac_configure_args1;}
  1651. # When interrupted or exit'd, cleanup temporary files, and complete
  1652. # config.log. We remove comments because anyway the quotes in there
  1653. # would cause problems or look ugly.
  1654. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1655. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1656. trap 'exit_status=$?
  1657. # Save into config.log some information that might help in debugging.
  1658. {
  1659. echo
  1660. cat <<\_ASBOX
  1661. ## ---------------- ##
  1662. ## Cache variables. ##
  1663. ## ---------------- ##
  1664. _ASBOX
  1665. echo
  1666. # The following way of writing the cache mishandles newlines in values,
  1667. (
  1668. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1669. eval ac_val=\$$ac_var
  1670. case $ac_val in #(
  1671. *${as_nl}*)
  1672. case $ac_var in #(
  1673. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1674. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1675. esac
  1676. case $ac_var in #(
  1677. _ | IFS | as_nl) ;; #(
  1678. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1679. *) { eval $ac_var=; unset $ac_var;} ;;
  1680. esac ;;
  1681. esac
  1682. done
  1683. (set) 2>&1 |
  1684. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1685. *${as_nl}ac_space=\ *)
  1686. sed -n \
  1687. "s/'\''/'\''\\\\'\'''\''/g;
  1688. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1689. ;; #(
  1690. *)
  1691. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1692. ;;
  1693. esac |
  1694. sort
  1695. )
  1696. echo
  1697. cat <<\_ASBOX
  1698. ## ----------------- ##
  1699. ## Output variables. ##
  1700. ## ----------------- ##
  1701. _ASBOX
  1702. echo
  1703. for ac_var in $ac_subst_vars
  1704. do
  1705. eval ac_val=\$$ac_var
  1706. case $ac_val in
  1707. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1708. esac
  1709. $as_echo "$ac_var='\''$ac_val'\''"
  1710. done | sort
  1711. echo
  1712. if test -n "$ac_subst_files"; then
  1713. cat <<\_ASBOX
  1714. ## ------------------- ##
  1715. ## File substitutions. ##
  1716. ## ------------------- ##
  1717. _ASBOX
  1718. echo
  1719. for ac_var in $ac_subst_files
  1720. do
  1721. eval ac_val=\$$ac_var
  1722. case $ac_val in
  1723. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1724. esac
  1725. $as_echo "$ac_var='\''$ac_val'\''"
  1726. done | sort
  1727. echo
  1728. fi
  1729. if test -s confdefs.h; then
  1730. cat <<\_ASBOX
  1731. ## ----------- ##
  1732. ## confdefs.h. ##
  1733. ## ----------- ##
  1734. _ASBOX
  1735. echo
  1736. cat confdefs.h
  1737. echo
  1738. fi
  1739. test "$ac_signal" != 0 &&
  1740. $as_echo "$as_me: caught signal $ac_signal"
  1741. $as_echo "$as_me: exit $exit_status"
  1742. } >&5
  1743. rm -f core *.core core.conftest.* &&
  1744. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1745. exit $exit_status
  1746. ' 0
  1747. for ac_signal in 1 2 13 15; do
  1748. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1749. done
  1750. ac_signal=0
  1751. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1752. rm -f -r conftest* confdefs.h
  1753. $as_echo "/* confdefs.h */" > confdefs.h
  1754. # Predefined preprocessor variables.
  1755. cat >>confdefs.h <<_ACEOF
  1756. #define PACKAGE_NAME "$PACKAGE_NAME"
  1757. _ACEOF
  1758. cat >>confdefs.h <<_ACEOF
  1759. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1760. _ACEOF
  1761. cat >>confdefs.h <<_ACEOF
  1762. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1763. _ACEOF
  1764. cat >>confdefs.h <<_ACEOF
  1765. #define PACKAGE_STRING "$PACKAGE_STRING"
  1766. _ACEOF
  1767. cat >>confdefs.h <<_ACEOF
  1768. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1769. _ACEOF
  1770. cat >>confdefs.h <<_ACEOF
  1771. #define PACKAGE_URL "$PACKAGE_URL"
  1772. _ACEOF
  1773. # Let the site file select an alternate cache file if it wants to.
  1774. # Prefer an explicitly selected file to automatically selected ones.
  1775. ac_site_file1=NONE
  1776. ac_site_file2=NONE
  1777. if test -n "$CONFIG_SITE"; then
  1778. ac_site_file1=$CONFIG_SITE
  1779. elif test "x$prefix" != xNONE; then
  1780. ac_site_file1=$prefix/share/config.site
  1781. ac_site_file2=$prefix/etc/config.site
  1782. else
  1783. ac_site_file1=$ac_default_prefix/share/config.site
  1784. ac_site_file2=$ac_default_prefix/etc/config.site
  1785. fi
  1786. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1787. do
  1788. test "x$ac_site_file" = xNONE && continue
  1789. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1791. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1792. sed 's/^/| /' "$ac_site_file" >&5
  1793. . "$ac_site_file"
  1794. fi
  1795. done
  1796. if test -r "$cache_file"; then
  1797. # Some versions of bash will fail to source /dev/null (special files
  1798. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1799. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1801. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1802. case $cache_file in
  1803. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1804. *) . "./$cache_file";;
  1805. esac
  1806. fi
  1807. else
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1809. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1810. >$cache_file
  1811. fi
  1812. # Check that the precious variables saved in the cache have kept the same
  1813. # value.
  1814. ac_cache_corrupted=false
  1815. for ac_var in $ac_precious_vars; do
  1816. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1817. eval ac_new_set=\$ac_env_${ac_var}_set
  1818. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1819. eval ac_new_val=\$ac_env_${ac_var}_value
  1820. case $ac_old_set,$ac_new_set in
  1821. set,)
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1823. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1824. ac_cache_corrupted=: ;;
  1825. ,set)
  1826. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1827. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1828. ac_cache_corrupted=: ;;
  1829. ,);;
  1830. *)
  1831. if test "x$ac_old_val" != "x$ac_new_val"; then
  1832. # differences in whitespace do not lead to failure.
  1833. ac_old_val_w=`echo x $ac_old_val`
  1834. ac_new_val_w=`echo x $ac_new_val`
  1835. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1837. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1838. ac_cache_corrupted=:
  1839. else
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1841. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1842. eval $ac_var=\$ac_old_val
  1843. fi
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1845. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1847. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1848. fi;;
  1849. esac
  1850. # Pass precious variables to config.status.
  1851. if test "$ac_new_set" = set; then
  1852. case $ac_new_val in
  1853. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1854. *) ac_arg=$ac_var=$ac_new_val ;;
  1855. esac
  1856. case " $ac_configure_args " in
  1857. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1858. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1859. esac
  1860. fi
  1861. done
  1862. if $ac_cache_corrupted; then
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1864. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1866. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1867. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1868. fi
  1869. ## -------------------- ##
  1870. ## Main body of script. ##
  1871. ## -------------------- ##
  1872. ac_ext=c
  1873. ac_cpp='$CPP $CPPFLAGS'
  1874. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1875. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1876. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1877. # PROCESS THE FOLLOWING MAKEFILES
  1878. ac_config_files="$ac_config_files Makefile.conf"
  1879. ac_config_headers="$ac_config_headers config.h"
  1880. # DECLARE PACKAGE OPTIONS
  1881. # Check whether --enable-mpiserial was given.
  1882. if test "${enable_mpiserial+set}" = set; then :
  1883. enableval=$enable_mpiserial; DONOTCHECKMPI="DONOTCHECKMPI"
  1884. fi
  1885. # Check whether --enable-debugging was given.
  1886. if test "${enable_debugging+set}" = set; then :
  1887. enableval=$enable_debugging; DEBUGGING="ENABLED"
  1888. fi
  1889. # Check whether --enable-selectedrealkind was given.
  1890. if test "${enable_selectedrealkind+set}" = set; then :
  1891. enableval=$enable_selectedrealkind; SRKDEF="SELECTEDREALKIND"
  1892. fi
  1893. # Check whether --enable-sequence was given.
  1894. if test "${enable_sequence+set}" = set; then :
  1895. enableval=$enable_sequence; SRKDEF="SEQUENCE"
  1896. fi
  1897. # Check whether --enable-babel was given.
  1898. if test "${enable_babel+set}" = set; then :
  1899. enableval=$enable_babel; SRKDEF="SEQUENCE"
  1900. fi
  1901. # DECLARE THE FOLLOWING PRECIOUS VARIABLES
  1902. # INCLUDE BABELROOT and COMPILER_ROOT in Makefile.conf(autoconf output)
  1903. # SET TEMPORARY VARIABLES
  1904. # OS AND PLATFORM NAME
  1905. test "$osname"=NONE && osname=`uname -s`
  1906. test "$machinename"=NONE && machinename=`uname -m`
  1907. fullhostname=`hostname -f`
  1908. # HARDCODE SPECIFIC MACHINES FOR EXTRAORDINARY CIRCUMSTANCES
  1909. # CHECK IF WE ARE ON THE EARTH SIMULATOR
  1910. ES="NO"
  1911. if echo $osname | grep -i esos >/dev/null 2>&1; then
  1912. ES="YES"
  1913. fi
  1914. if echo $osname | grep -i hp-ux >/dev/null 2>&1; then
  1915. if test "$ac_hostname" = "moon"; then
  1916. ES="YES"
  1917. # TELLS CONFIGURE NOT TO RUN ANY TESTS THAT REQUIRE EXECUTION
  1918. cross_compiling="yes"
  1919. fi
  1920. fi
  1921. if test "$ES" = "YES"; then
  1922. echo "Using preset configuration values for the Earth Simulator"
  1923. if test -z "$CC"; then
  1924. CC="escc"
  1925. fi
  1926. if test -z "$FC"; then
  1927. FC="esf90"
  1928. fi
  1929. if test -z "$MPIFC"; then
  1930. MPIFC="esmpif90"
  1931. fi
  1932. if test -z "$AR"; then
  1933. AR="esar cqs"
  1934. fi
  1935. if test -z "FPP"; then
  1936. FPPFLAGS=" "
  1937. fi
  1938. if test -z "$FCFLAGS"; then
  1939. FCFLAGS="-EP -Wf'-pvctl fullmsg -L fmtlist transform map'"
  1940. fi
  1941. if test -z "$OPT"; then
  1942. OPT="-C vopt"
  1943. fi
  1944. if test -z "$CPPDEFS"; then
  1945. CPPDEFS="-DESVEC"
  1946. fi
  1947. fi
  1948. # Check if we are on the ANL BG/P
  1949. if echo $fullhostname | egrep -q '.\.(challenger|intrepid)\.alcf\.anl\.gov'
  1950. then if test -z "$FC"; then
  1951. FC=bgxlf90_r
  1952. fi
  1953. if test -z "$MPIFC"; then
  1954. MPIFC=mpixlf90_r
  1955. fi
  1956. if test -z "$CC"; then
  1957. CC=mpixlc_r
  1958. fi
  1959. fi
  1960. # START TESTS
  1961. # CHECK FOR THE C COMPILER
  1962. ac_ext=c
  1963. ac_cpp='$CPP $CPPFLAGS'
  1964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1967. if test -n "$ac_tool_prefix"; then
  1968. for ac_prog in cc
  1969. do
  1970. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1971. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1973. $as_echo_n "checking for $ac_word... " >&6; }
  1974. if test "${ac_cv_prog_CC+set}" = set; then :
  1975. $as_echo_n "(cached) " >&6
  1976. else
  1977. if test -n "$CC"; then
  1978. ac_cv_prog_CC="$CC" # Let the user override the test.
  1979. else
  1980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1981. for as_dir in $PATH
  1982. do
  1983. IFS=$as_save_IFS
  1984. test -z "$as_dir" && as_dir=.
  1985. for ac_exec_ext in '' $ac_executable_extensions; do
  1986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1987. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1989. break 2
  1990. fi
  1991. done
  1992. done
  1993. IFS=$as_save_IFS
  1994. fi
  1995. fi
  1996. CC=$ac_cv_prog_CC
  1997. if test -n "$CC"; then
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1999. $as_echo "$CC" >&6; }
  2000. else
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2002. $as_echo "no" >&6; }
  2003. fi
  2004. test -n "$CC" && break
  2005. done
  2006. fi
  2007. if test -z "$CC"; then
  2008. ac_ct_CC=$CC
  2009. for ac_prog in cc
  2010. do
  2011. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2012. set dummy $ac_prog; ac_word=$2
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2014. $as_echo_n "checking for $ac_word... " >&6; }
  2015. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2016. $as_echo_n "(cached) " >&6
  2017. else
  2018. if test -n "$ac_ct_CC"; then
  2019. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2020. else
  2021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2022. for as_dir in $PATH
  2023. do
  2024. IFS=$as_save_IFS
  2025. test -z "$as_dir" && as_dir=.
  2026. for ac_exec_ext in '' $ac_executable_extensions; do
  2027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2028. ac_cv_prog_ac_ct_CC="$ac_prog"
  2029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2030. break 2
  2031. fi
  2032. done
  2033. done
  2034. IFS=$as_save_IFS
  2035. fi
  2036. fi
  2037. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2038. if test -n "$ac_ct_CC"; then
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2040. $as_echo "$ac_ct_CC" >&6; }
  2041. else
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2043. $as_echo "no" >&6; }
  2044. fi
  2045. test -n "$ac_ct_CC" && break
  2046. done
  2047. if test "x$ac_ct_CC" = x; then
  2048. CC=""
  2049. else
  2050. case $cross_compiling:$ac_tool_warned in
  2051. yes:)
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2053. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2054. ac_tool_warned=yes ;;
  2055. esac
  2056. CC=$ac_ct_CC
  2057. fi
  2058. fi
  2059. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2061. as_fn_error "no acceptable C compiler found in \$PATH
  2062. See \`config.log' for more details." "$LINENO" 5; }
  2063. # Provide some information about the compiler.
  2064. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2065. set X $ac_compile
  2066. ac_compiler=$2
  2067. for ac_option in --version -v -V -qversion; do
  2068. { { ac_try="$ac_compiler $ac_option >&5"
  2069. case "(($ac_try" in
  2070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2071. *) ac_try_echo=$ac_try;;
  2072. esac
  2073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2074. $as_echo "$ac_try_echo"; } >&5
  2075. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2076. ac_status=$?
  2077. if test -s conftest.err; then
  2078. sed '10a\
  2079. ... rest of stderr output deleted ...
  2080. 10q' conftest.err >conftest.er1
  2081. cat conftest.er1 >&5
  2082. fi
  2083. rm -f conftest.er1 conftest.err
  2084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2085. test $ac_status = 0; }
  2086. done
  2087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2088. /* end confdefs.h. */
  2089. int
  2090. main ()
  2091. {
  2092. ;
  2093. return 0;
  2094. }
  2095. _ACEOF
  2096. ac_clean_files_save=$ac_clean_files
  2097. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2098. # Try to create an executable without -o first, disregard a.out.
  2099. # It will help us diagnose broken compilers, and finding out an intuition
  2100. # of exeext.
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2102. $as_echo_n "checking whether the C compiler works... " >&6; }
  2103. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2104. # The possible output files:
  2105. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2106. ac_rmfiles=
  2107. for ac_file in $ac_files
  2108. do
  2109. case $ac_file in
  2110. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2111. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2112. esac
  2113. done
  2114. rm -f $ac_rmfiles
  2115. if { { ac_try="$ac_link_default"
  2116. case "(($ac_try" in
  2117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2118. *) ac_try_echo=$ac_try;;
  2119. esac
  2120. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2121. $as_echo "$ac_try_echo"; } >&5
  2122. (eval "$ac_link_default") 2>&5
  2123. ac_status=$?
  2124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2125. test $ac_status = 0; }; then :
  2126. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2127. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2128. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2129. # so that the user can short-circuit this test for compilers unknown to
  2130. # Autoconf.
  2131. for ac_file in $ac_files ''
  2132. do
  2133. test -f "$ac_file" || continue
  2134. case $ac_file in
  2135. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2136. ;;
  2137. [ab].out )
  2138. # We found the default executable, but exeext='' is most
  2139. # certainly right.
  2140. break;;
  2141. *.* )
  2142. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2143. then :; else
  2144. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2145. fi
  2146. # We set ac_cv_exeext here because the later test for it is not
  2147. # safe: cross compilers may not add the suffix if given an `-o'
  2148. # argument, so we may need to know it at that point already.
  2149. # Even if this section looks crufty: it has the advantage of
  2150. # actually working.
  2151. break;;
  2152. * )
  2153. break;;
  2154. esac
  2155. done
  2156. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2157. else
  2158. ac_file=''
  2159. fi
  2160. if test -z "$ac_file"; then :
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2162. $as_echo "no" >&6; }
  2163. $as_echo "$as_me: failed program was:" >&5
  2164. sed 's/^/| /' conftest.$ac_ext >&5
  2165. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2166. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2167. { as_fn_set_status 77
  2168. as_fn_error "C compiler cannot create executables
  2169. See \`config.log' for more details." "$LINENO" 5; }; }
  2170. else
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2172. $as_echo "yes" >&6; }
  2173. fi
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2175. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2177. $as_echo "$ac_file" >&6; }
  2178. ac_exeext=$ac_cv_exeext
  2179. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2180. ac_clean_files=$ac_clean_files_save
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2182. $as_echo_n "checking for suffix of executables... " >&6; }
  2183. if { { ac_try="$ac_link"
  2184. case "(($ac_try" in
  2185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2186. *) ac_try_echo=$ac_try;;
  2187. esac
  2188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2189. $as_echo "$ac_try_echo"; } >&5
  2190. (eval "$ac_link") 2>&5
  2191. ac_status=$?
  2192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2193. test $ac_status = 0; }; then :
  2194. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2195. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2196. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2197. # `rm'.
  2198. for ac_file in conftest.exe conftest conftest.*; do
  2199. test -f "$ac_file" || continue
  2200. case $ac_file in
  2201. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2202. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2203. break;;
  2204. * ) break;;
  2205. esac
  2206. done
  2207. else
  2208. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2209. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2210. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2211. See \`config.log' for more details." "$LINENO" 5; }
  2212. fi
  2213. rm -f conftest conftest$ac_cv_exeext
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2215. $as_echo "$ac_cv_exeext" >&6; }
  2216. rm -f conftest.$ac_ext
  2217. EXEEXT=$ac_cv_exeext
  2218. ac_exeext=$EXEEXT
  2219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2220. /* end confdefs.h. */
  2221. #include <stdio.h>
  2222. int
  2223. main ()
  2224. {
  2225. FILE *f = fopen ("conftest.out", "w");
  2226. return ferror (f) || fclose (f) != 0;
  2227. ;
  2228. return 0;
  2229. }
  2230. _ACEOF
  2231. ac_clean_files="$ac_clean_files conftest.out"
  2232. # Check that the compiler produces executables we can run. If not, either
  2233. # the compiler is broken, or we cross compile.
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2235. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2236. if test "$cross_compiling" != yes; then
  2237. { { ac_try="$ac_link"
  2238. case "(($ac_try" in
  2239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2240. *) ac_try_echo=$ac_try;;
  2241. esac
  2242. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2243. $as_echo "$ac_try_echo"; } >&5
  2244. (eval "$ac_link") 2>&5
  2245. ac_status=$?
  2246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2247. test $ac_status = 0; }
  2248. if { ac_try='./conftest$ac_cv_exeext'
  2249. { { case "(($ac_try" in
  2250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2251. *) ac_try_echo=$ac_try;;
  2252. esac
  2253. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2254. $as_echo "$ac_try_echo"; } >&5
  2255. (eval "$ac_try") 2>&5
  2256. ac_status=$?
  2257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2258. test $ac_status = 0; }; }; then
  2259. cross_compiling=no
  2260. else
  2261. if test "$cross_compiling" = maybe; then
  2262. cross_compiling=yes
  2263. else
  2264. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2265. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2266. as_fn_error "cannot run C compiled programs.
  2267. If you meant to cross compile, use \`--host'.
  2268. See \`config.log' for more details." "$LINENO" 5; }
  2269. fi
  2270. fi
  2271. fi
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2273. $as_echo "$cross_compiling" >&6; }
  2274. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2275. ac_clean_files=$ac_clean_files_save
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2277. $as_echo_n "checking for suffix of object files... " >&6; }
  2278. if test "${ac_cv_objext+set}" = set; then :
  2279. $as_echo_n "(cached) " >&6
  2280. else
  2281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2282. /* end confdefs.h. */
  2283. int
  2284. main ()
  2285. {
  2286. ;
  2287. return 0;
  2288. }
  2289. _ACEOF
  2290. rm -f conftest.o conftest.obj
  2291. if { { ac_try="$ac_compile"
  2292. case "(($ac_try" in
  2293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2294. *) ac_try_echo=$ac_try;;
  2295. esac
  2296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2297. $as_echo "$ac_try_echo"; } >&5
  2298. (eval "$ac_compile") 2>&5
  2299. ac_status=$?
  2300. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2301. test $ac_status = 0; }; then :
  2302. for ac_file in conftest.o conftest.obj conftest.*; do
  2303. test -f "$ac_file" || continue;
  2304. case $ac_file in
  2305. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2306. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2307. break;;
  2308. esac
  2309. done
  2310. else
  2311. $as_echo "$as_me: failed program was:" >&5
  2312. sed 's/^/| /' conftest.$ac_ext >&5
  2313. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2314. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2315. as_fn_error "cannot compute suffix of object files: cannot compile
  2316. See \`config.log' for more details." "$LINENO" 5; }
  2317. fi
  2318. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2319. fi
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2321. $as_echo "$ac_cv_objext" >&6; }
  2322. OBJEXT=$ac_cv_objext
  2323. ac_objext=$OBJEXT
  2324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2325. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2326. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2327. $as_echo_n "(cached) " >&6
  2328. else
  2329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2330. /* end confdefs.h. */
  2331. int
  2332. main ()
  2333. {
  2334. #ifndef __GNUC__
  2335. choke me
  2336. #endif
  2337. ;
  2338. return 0;
  2339. }
  2340. _ACEOF
  2341. if ac_fn_c_try_compile "$LINENO"; then :
  2342. ac_compiler_gnu=yes
  2343. else
  2344. ac_compiler_gnu=no
  2345. fi
  2346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2347. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2348. fi
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2350. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2351. if test $ac_compiler_gnu = yes; then
  2352. GCC=yes
  2353. else
  2354. GCC=
  2355. fi
  2356. ac_test_CFLAGS=${CFLAGS+set}
  2357. ac_save_CFLAGS=$CFLAGS
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2359. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2360. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2361. $as_echo_n "(cached) " >&6
  2362. else
  2363. ac_save_c_werror_flag=$ac_c_werror_flag
  2364. ac_c_werror_flag=yes
  2365. ac_cv_prog_cc_g=no
  2366. CFLAGS="-g"
  2367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2368. /* end confdefs.h. */
  2369. int
  2370. main ()
  2371. {
  2372. ;
  2373. return 0;
  2374. }
  2375. _ACEOF
  2376. if ac_fn_c_try_compile "$LINENO"; then :
  2377. ac_cv_prog_cc_g=yes
  2378. else
  2379. CFLAGS=""
  2380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2381. /* end confdefs.h. */
  2382. int
  2383. main ()
  2384. {
  2385. ;
  2386. return 0;
  2387. }
  2388. _ACEOF
  2389. if ac_fn_c_try_compile "$LINENO"; then :
  2390. else
  2391. ac_c_werror_flag=$ac_save_c_werror_flag
  2392. CFLAGS="-g"
  2393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2394. /* end confdefs.h. */
  2395. int
  2396. main ()
  2397. {
  2398. ;
  2399. return 0;
  2400. }
  2401. _ACEOF
  2402. if ac_fn_c_try_compile "$LINENO"; then :
  2403. ac_cv_prog_cc_g=yes
  2404. fi
  2405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2406. fi
  2407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2408. fi
  2409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2410. ac_c_werror_flag=$ac_save_c_werror_flag
  2411. fi
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2413. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2414. if test "$ac_test_CFLAGS" = set; then
  2415. CFLAGS=$ac_save_CFLAGS
  2416. elif test $ac_cv_prog_cc_g = yes; then
  2417. if test "$GCC" = yes; then
  2418. CFLAGS="-g -O2"
  2419. else
  2420. CFLAGS="-g"
  2421. fi
  2422. else
  2423. if test "$GCC" = yes; then
  2424. CFLAGS="-O2"
  2425. else
  2426. CFLAGS=
  2427. fi
  2428. fi
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2430. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2431. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2432. $as_echo_n "(cached) " >&6
  2433. else
  2434. ac_cv_prog_cc_c89=no
  2435. ac_save_CC=$CC
  2436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2437. /* end confdefs.h. */
  2438. #include <stdarg.h>
  2439. #include <stdio.h>
  2440. #include <sys/types.h>
  2441. #include <sys/stat.h>
  2442. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2443. struct buf { int x; };
  2444. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2445. static char *e (p, i)
  2446. char **p;
  2447. int i;
  2448. {
  2449. return p[i];
  2450. }
  2451. static char *f (char * (*g) (char **, int), char **p, ...)
  2452. {
  2453. char *s;
  2454. va_list v;
  2455. va_start (v,p);
  2456. s = g (p, va_arg (v,int));
  2457. va_end (v);
  2458. return s;
  2459. }
  2460. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2461. function prototypes and stuff, but not '\xHH' hex character constants.
  2462. These don't provoke an error unfortunately, instead are silently treated
  2463. as 'x'. The following induces an error, until -std is added to get
  2464. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2465. array size at least. It's necessary to write '\x00'==0 to get something
  2466. that's true only with -std. */
  2467. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2468. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2469. inside strings and character constants. */
  2470. #define FOO(x) 'x'
  2471. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2472. int test (int i, double x);
  2473. struct s1 {int (*f) (int a);};
  2474. struct s2 {int (*f) (double a);};
  2475. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2476. int argc;
  2477. char **argv;
  2478. int
  2479. main ()
  2480. {
  2481. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2482. ;
  2483. return 0;
  2484. }
  2485. _ACEOF
  2486. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2487. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2488. do
  2489. CC="$ac_save_CC $ac_arg"
  2490. if ac_fn_c_try_compile "$LINENO"; then :
  2491. ac_cv_prog_cc_c89=$ac_arg
  2492. fi
  2493. rm -f core conftest.err conftest.$ac_objext
  2494. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2495. done
  2496. rm -f conftest.$ac_ext
  2497. CC=$ac_save_CC
  2498. fi
  2499. # AC_CACHE_VAL
  2500. case "x$ac_cv_prog_cc_c89" in
  2501. x)
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2503. $as_echo "none needed" >&6; } ;;
  2504. xno)
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2506. $as_echo "unsupported" >&6; } ;;
  2507. *)
  2508. CC="$CC $ac_cv_prog_cc_c89"
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2510. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2511. esac
  2512. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2513. fi
  2514. ac_ext=c
  2515. ac_cpp='$CPP $CPPFLAGS'
  2516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2519. # CHECK FOR BYTE ORDERING
  2520. ac_ext=c
  2521. ac_cpp='$CPP $CPPFLAGS'
  2522. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2523. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2524. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2526. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2527. # On Suns, sometimes $CPP names a directory.
  2528. if test -n "$CPP" && test -d "$CPP"; then
  2529. CPP=
  2530. fi
  2531. if test -z "$CPP"; then
  2532. if test "${ac_cv_prog_CPP+set}" = set; then :
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. # Double quotes because CPP needs to be expanded
  2536. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2537. do
  2538. ac_preproc_ok=false
  2539. for ac_c_preproc_warn_flag in '' yes
  2540. do
  2541. # Use a header file that comes with gcc, so configuring glibc
  2542. # with a fresh cross-compiler works.
  2543. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2544. # <limits.h> exists even on freestanding compilers.
  2545. # On the NeXT, cc -E runs the code through the compiler's parser,
  2546. # not just through cpp. "Syntax error" is here to catch this case.
  2547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2548. /* end confdefs.h. */
  2549. #ifdef __STDC__
  2550. # include <limits.h>
  2551. #else
  2552. # include <assert.h>
  2553. #endif
  2554. Syntax error
  2555. _ACEOF
  2556. if ac_fn_c_try_cpp "$LINENO"; then :
  2557. else
  2558. # Broken: fails on valid input.
  2559. continue
  2560. fi
  2561. rm -f conftest.err conftest.$ac_ext
  2562. # OK, works on sane cases. Now check whether nonexistent headers
  2563. # can be detected and how.
  2564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2565. /* end confdefs.h. */
  2566. #include <ac_nonexistent.h>
  2567. _ACEOF
  2568. if ac_fn_c_try_cpp "$LINENO"; then :
  2569. # Broken: success on invalid input.
  2570. continue
  2571. else
  2572. # Passes both tests.
  2573. ac_preproc_ok=:
  2574. break
  2575. fi
  2576. rm -f conftest.err conftest.$ac_ext
  2577. done
  2578. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2579. rm -f conftest.err conftest.$ac_ext
  2580. if $ac_preproc_ok; then :
  2581. break
  2582. fi
  2583. done
  2584. ac_cv_prog_CPP=$CPP
  2585. fi
  2586. CPP=$ac_cv_prog_CPP
  2587. else
  2588. ac_cv_prog_CPP=$CPP
  2589. fi
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2591. $as_echo "$CPP" >&6; }
  2592. ac_preproc_ok=false
  2593. for ac_c_preproc_warn_flag in '' yes
  2594. do
  2595. # Use a header file that comes with gcc, so configuring glibc
  2596. # with a fresh cross-compiler works.
  2597. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2598. # <limits.h> exists even on freestanding compilers.
  2599. # On the NeXT, cc -E runs the code through the compiler's parser,
  2600. # not just through cpp. "Syntax error" is here to catch this case.
  2601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2602. /* end confdefs.h. */
  2603. #ifdef __STDC__
  2604. # include <limits.h>
  2605. #else
  2606. # include <assert.h>
  2607. #endif
  2608. Syntax error
  2609. _ACEOF
  2610. if ac_fn_c_try_cpp "$LINENO"; then :
  2611. else
  2612. # Broken: fails on valid input.
  2613. continue
  2614. fi
  2615. rm -f conftest.err conftest.$ac_ext
  2616. # OK, works on sane cases. Now check whether nonexistent headers
  2617. # can be detected and how.
  2618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2619. /* end confdefs.h. */
  2620. #include <ac_nonexistent.h>
  2621. _ACEOF
  2622. if ac_fn_c_try_cpp "$LINENO"; then :
  2623. # Broken: success on invalid input.
  2624. continue
  2625. else
  2626. # Passes both tests.
  2627. ac_preproc_ok=:
  2628. break
  2629. fi
  2630. rm -f conftest.err conftest.$ac_ext
  2631. done
  2632. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2633. rm -f conftest.err conftest.$ac_ext
  2634. if $ac_preproc_ok; then :
  2635. else
  2636. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2637. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2638. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  2639. See \`config.log' for more details." "$LINENO" 5; }
  2640. fi
  2641. ac_ext=c
  2642. ac_cpp='$CPP $CPPFLAGS'
  2643. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2644. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2645. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2647. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2648. if test "${ac_cv_path_GREP+set}" = set; then :
  2649. $as_echo_n "(cached) " >&6
  2650. else
  2651. if test -z "$GREP"; then
  2652. ac_path_GREP_found=false
  2653. # Loop through the user's path and test for each of PROGNAME-LIST
  2654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2655. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2656. do
  2657. IFS=$as_save_IFS
  2658. test -z "$as_dir" && as_dir=.
  2659. for ac_prog in grep ggrep; do
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2662. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2663. # Check for GNU ac_path_GREP and select it if it is found.
  2664. # Check for GNU $ac_path_GREP
  2665. case `"$ac_path_GREP" --version 2>&1` in
  2666. *GNU*)
  2667. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2668. *)
  2669. ac_count=0
  2670. $as_echo_n 0123456789 >"conftest.in"
  2671. while :
  2672. do
  2673. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2674. mv "conftest.tmp" "conftest.in"
  2675. cp "conftest.in" "conftest.nl"
  2676. $as_echo 'GREP' >> "conftest.nl"
  2677. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2678. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2679. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2680. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2681. # Best one so far, save it but keep looking for a better one
  2682. ac_cv_path_GREP="$ac_path_GREP"
  2683. ac_path_GREP_max=$ac_count
  2684. fi
  2685. # 10*(2^10) chars as input seems more than enough
  2686. test $ac_count -gt 10 && break
  2687. done
  2688. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2689. esac
  2690. $ac_path_GREP_found && break 3
  2691. done
  2692. done
  2693. done
  2694. IFS=$as_save_IFS
  2695. if test -z "$ac_cv_path_GREP"; then
  2696. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2697. fi
  2698. else
  2699. ac_cv_path_GREP=$GREP
  2700. fi
  2701. fi
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2703. $as_echo "$ac_cv_path_GREP" >&6; }
  2704. GREP="$ac_cv_path_GREP"
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2706. $as_echo_n "checking for egrep... " >&6; }
  2707. if test "${ac_cv_path_EGREP+set}" = set; then :
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2711. then ac_cv_path_EGREP="$GREP -E"
  2712. else
  2713. if test -z "$EGREP"; then
  2714. ac_path_EGREP_found=false
  2715. # Loop through the user's path and test for each of PROGNAME-LIST
  2716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2717. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2718. do
  2719. IFS=$as_save_IFS
  2720. test -z "$as_dir" && as_dir=.
  2721. for ac_prog in egrep; do
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2724. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2725. # Check for GNU ac_path_EGREP and select it if it is found.
  2726. # Check for GNU $ac_path_EGREP
  2727. case `"$ac_path_EGREP" --version 2>&1` in
  2728. *GNU*)
  2729. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2730. *)
  2731. ac_count=0
  2732. $as_echo_n 0123456789 >"conftest.in"
  2733. while :
  2734. do
  2735. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2736. mv "conftest.tmp" "conftest.in"
  2737. cp "conftest.in" "conftest.nl"
  2738. $as_echo 'EGREP' >> "conftest.nl"
  2739. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2740. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2741. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2742. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2743. # Best one so far, save it but keep looking for a better one
  2744. ac_cv_path_EGREP="$ac_path_EGREP"
  2745. ac_path_EGREP_max=$ac_count
  2746. fi
  2747. # 10*(2^10) chars as input seems more than enough
  2748. test $ac_count -gt 10 && break
  2749. done
  2750. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2751. esac
  2752. $ac_path_EGREP_found && break 3
  2753. done
  2754. done
  2755. done
  2756. IFS=$as_save_IFS
  2757. if test -z "$ac_cv_path_EGREP"; then
  2758. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2759. fi
  2760. else
  2761. ac_cv_path_EGREP=$EGREP
  2762. fi
  2763. fi
  2764. fi
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2766. $as_echo "$ac_cv_path_EGREP" >&6; }
  2767. EGREP="$ac_cv_path_EGREP"
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  2769. $as_echo_n "checking for ANSI C header files... " >&6; }
  2770. if test "${ac_cv_header_stdc+set}" = set; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2774. /* end confdefs.h. */
  2775. #include <stdlib.h>
  2776. #include <stdarg.h>
  2777. #include <string.h>
  2778. #include <float.h>
  2779. int
  2780. main ()
  2781. {
  2782. ;
  2783. return 0;
  2784. }
  2785. _ACEOF
  2786. if ac_fn_c_try_compile "$LINENO"; then :
  2787. ac_cv_header_stdc=yes
  2788. else
  2789. ac_cv_header_stdc=no
  2790. fi
  2791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2792. if test $ac_cv_header_stdc = yes; then
  2793. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2795. /* end confdefs.h. */
  2796. #include <string.h>
  2797. _ACEOF
  2798. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2799. $EGREP "memchr" >/dev/null 2>&1; then :
  2800. else
  2801. ac_cv_header_stdc=no
  2802. fi
  2803. rm -f conftest*
  2804. fi
  2805. if test $ac_cv_header_stdc = yes; then
  2806. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2808. /* end confdefs.h. */
  2809. #include <stdlib.h>
  2810. _ACEOF
  2811. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2812. $EGREP "free" >/dev/null 2>&1; then :
  2813. else
  2814. ac_cv_header_stdc=no
  2815. fi
  2816. rm -f conftest*
  2817. fi
  2818. if test $ac_cv_header_stdc = yes; then
  2819. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2820. if test "$cross_compiling" = yes; then :
  2821. :
  2822. else
  2823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2824. /* end confdefs.h. */
  2825. #include <ctype.h>
  2826. #include <stdlib.h>
  2827. #if ((' ' & 0x0FF) == 0x020)
  2828. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2829. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2830. #else
  2831. # define ISLOWER(c) \
  2832. (('a' <= (c) && (c) <= 'i') \
  2833. || ('j' <= (c) && (c) <= 'r') \
  2834. || ('s' <= (c) && (c) <= 'z'))
  2835. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2836. #endif
  2837. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2838. int
  2839. main ()
  2840. {
  2841. int i;
  2842. for (i = 0; i < 256; i++)
  2843. if (XOR (islower (i), ISLOWER (i))
  2844. || toupper (i) != TOUPPER (i))
  2845. return 2;
  2846. return 0;
  2847. }
  2848. _ACEOF
  2849. if ac_fn_c_try_run "$LINENO"; then :
  2850. else
  2851. ac_cv_header_stdc=no
  2852. fi
  2853. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2854. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2855. fi
  2856. fi
  2857. fi
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  2859. $as_echo "$ac_cv_header_stdc" >&6; }
  2860. if test $ac_cv_header_stdc = yes; then
  2861. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  2862. fi
  2863. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2864. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2865. inttypes.h stdint.h unistd.h
  2866. do :
  2867. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2868. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  2869. "
  2870. eval as_val=\$$as_ac_Header
  2871. if test "x$as_val" = x""yes; then :
  2872. cat >>confdefs.h <<_ACEOF
  2873. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2874. _ACEOF
  2875. fi
  2876. done
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  2878. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  2879. if test "${ac_cv_c_bigendian+set}" = set; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. ac_cv_c_bigendian=unknown
  2883. # See if we're dealing with a universal compiler.
  2884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end confdefs.h. */
  2886. #ifndef __APPLE_CC__
  2887. not a universal capable compiler
  2888. #endif
  2889. typedef int dummy;
  2890. _ACEOF
  2891. if ac_fn_c_try_compile "$LINENO"; then :
  2892. # Check for potential -arch flags. It is not universal unless
  2893. # there are at least two -arch flags with different values.
  2894. ac_arch=
  2895. ac_prev=
  2896. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  2897. if test -n "$ac_prev"; then
  2898. case $ac_word in
  2899. i?86 | x86_64 | ppc | ppc64)
  2900. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  2901. ac_arch=$ac_word
  2902. else
  2903. ac_cv_c_bigendian=universal
  2904. break
  2905. fi
  2906. ;;
  2907. esac
  2908. ac_prev=
  2909. elif test "x$ac_word" = "x-arch"; then
  2910. ac_prev=arch
  2911. fi
  2912. done
  2913. fi
  2914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2915. if test $ac_cv_c_bigendian = unknown; then
  2916. # See if sys/param.h defines the BYTE_ORDER macro.
  2917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2918. /* end confdefs.h. */
  2919. #include <sys/types.h>
  2920. #include <sys/param.h>
  2921. int
  2922. main ()
  2923. {
  2924. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  2925. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  2926. && LITTLE_ENDIAN)
  2927. bogus endian macros
  2928. #endif
  2929. ;
  2930. return 0;
  2931. }
  2932. _ACEOF
  2933. if ac_fn_c_try_compile "$LINENO"; then :
  2934. # It does; now see whether it defined to BIG_ENDIAN or not.
  2935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2936. /* end confdefs.h. */
  2937. #include <sys/types.h>
  2938. #include <sys/param.h>
  2939. int
  2940. main ()
  2941. {
  2942. #if BYTE_ORDER != BIG_ENDIAN
  2943. not big endian
  2944. #endif
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. if ac_fn_c_try_compile "$LINENO"; then :
  2950. ac_cv_c_bigendian=yes
  2951. else
  2952. ac_cv_c_bigendian=no
  2953. fi
  2954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2957. fi
  2958. if test $ac_cv_c_bigendian = unknown; then
  2959. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  2960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2961. /* end confdefs.h. */
  2962. #include <limits.h>
  2963. int
  2964. main ()
  2965. {
  2966. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  2967. bogus endian macros
  2968. #endif
  2969. ;
  2970. return 0;
  2971. }
  2972. _ACEOF
  2973. if ac_fn_c_try_compile "$LINENO"; then :
  2974. # It does; now see whether it defined to _BIG_ENDIAN or not.
  2975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2976. /* end confdefs.h. */
  2977. #include <limits.h>
  2978. int
  2979. main ()
  2980. {
  2981. #ifndef _BIG_ENDIAN
  2982. not big endian
  2983. #endif
  2984. ;
  2985. return 0;
  2986. }
  2987. _ACEOF
  2988. if ac_fn_c_try_compile "$LINENO"; then :
  2989. ac_cv_c_bigendian=yes
  2990. else
  2991. ac_cv_c_bigendian=no
  2992. fi
  2993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2994. fi
  2995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2996. fi
  2997. if test $ac_cv_c_bigendian = unknown; then
  2998. # Compile a test program.
  2999. if test "$cross_compiling" = yes; then :
  3000. # Try to guess by grepping values from an object file.
  3001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3002. /* end confdefs.h. */
  3003. short int ascii_mm[] =
  3004. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  3005. short int ascii_ii[] =
  3006. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  3007. int use_ascii (int i) {
  3008. return ascii_mm[i] + ascii_ii[i];
  3009. }
  3010. short int ebcdic_ii[] =
  3011. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  3012. short int ebcdic_mm[] =
  3013. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  3014. int use_ebcdic (int i) {
  3015. return ebcdic_mm[i] + ebcdic_ii[i];
  3016. }
  3017. extern int foo;
  3018. int
  3019. main ()
  3020. {
  3021. return use_ascii (foo) == use_ebcdic (foo);
  3022. ;
  3023. return 0;
  3024. }
  3025. _ACEOF
  3026. if ac_fn_c_try_compile "$LINENO"; then :
  3027. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  3028. ac_cv_c_bigendian=yes
  3029. fi
  3030. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  3031. if test "$ac_cv_c_bigendian" = unknown; then
  3032. ac_cv_c_bigendian=no
  3033. else
  3034. # finding both strings is unlikely to happen, but who knows?
  3035. ac_cv_c_bigendian=unknown
  3036. fi
  3037. fi
  3038. fi
  3039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3040. else
  3041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3042. /* end confdefs.h. */
  3043. $ac_includes_default
  3044. int
  3045. main ()
  3046. {
  3047. /* Are we little or big endian? From Harbison&Steele. */
  3048. union
  3049. {
  3050. long int l;
  3051. char c[sizeof (long int)];
  3052. } u;
  3053. u.l = 1;
  3054. return u.c[sizeof (long int) - 1] == 1;
  3055. ;
  3056. return 0;
  3057. }
  3058. _ACEOF
  3059. if ac_fn_c_try_run "$LINENO"; then :
  3060. ac_cv_c_bigendian=no
  3061. else
  3062. ac_cv_c_bigendian=yes
  3063. fi
  3064. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3065. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3066. fi
  3067. fi
  3068. fi
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  3070. $as_echo "$ac_cv_c_bigendian" >&6; }
  3071. case $ac_cv_c_bigendian in #(
  3072. yes)
  3073. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  3074. ;; #(
  3075. no)
  3076. ;; #(
  3077. universal)
  3078. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  3079. ;; #(
  3080. *)
  3081. as_fn_error "unknown endianness
  3082. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  3083. esac
  3084. # CHECK FOR THE FORTRAN COMPILER
  3085. # RLJ- specify the order, include PathScale and do not search for F77
  3086. ac_ext=${ac_fc_srcext-f}
  3087. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3088. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3089. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3090. if test -n "$ac_tool_prefix"; then
  3091. for ac_prog in xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc g95 xlf90 pgf90 pathf90 epcf90 pghpf
  3092. do
  3093. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3094. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3096. $as_echo_n "checking for $ac_word... " >&6; }
  3097. if test "${ac_cv_prog_FC+set}" = set; then :
  3098. $as_echo_n "(cached) " >&6
  3099. else
  3100. if test -n "$FC"; then
  3101. ac_cv_prog_FC="$FC" # Let the user override the test.
  3102. else
  3103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3104. for as_dir in $PATH
  3105. do
  3106. IFS=$as_save_IFS
  3107. test -z "$as_dir" && as_dir=.
  3108. for ac_exec_ext in '' $ac_executable_extensions; do
  3109. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3110. ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
  3111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3112. break 2
  3113. fi
  3114. done
  3115. done
  3116. IFS=$as_save_IFS
  3117. fi
  3118. fi
  3119. FC=$ac_cv_prog_FC
  3120. if test -n "$FC"; then
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
  3122. $as_echo "$FC" >&6; }
  3123. else
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3125. $as_echo "no" >&6; }
  3126. fi
  3127. test -n "$FC" && break
  3128. done
  3129. fi
  3130. if test -z "$FC"; then
  3131. ac_ct_FC=$FC
  3132. for ac_prog in xlf95 pgf95 ifort gfortran pathf95 ftn lf95 f95 fort ifc efc g95 xlf90 pgf90 pathf90 epcf90 pghpf
  3133. do
  3134. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3135. set dummy $ac_prog; ac_word=$2
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3137. $as_echo_n "checking for $ac_word... " >&6; }
  3138. if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
  3139. $as_echo_n "(cached) " >&6
  3140. else
  3141. if test -n "$ac_ct_FC"; then
  3142. ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
  3143. else
  3144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3145. for as_dir in $PATH
  3146. do
  3147. IFS=$as_save_IFS
  3148. test -z "$as_dir" && as_dir=.
  3149. for ac_exec_ext in '' $ac_executable_extensions; do
  3150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3151. ac_cv_prog_ac_ct_FC="$ac_prog"
  3152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3153. break 2
  3154. fi
  3155. done
  3156. done
  3157. IFS=$as_save_IFS
  3158. fi
  3159. fi
  3160. ac_ct_FC=$ac_cv_prog_ac_ct_FC
  3161. if test -n "$ac_ct_FC"; then
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
  3163. $as_echo "$ac_ct_FC" >&6; }
  3164. else
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3166. $as_echo "no" >&6; }
  3167. fi
  3168. test -n "$ac_ct_FC" && break
  3169. done
  3170. if test "x$ac_ct_FC" = x; then
  3171. FC=""
  3172. else
  3173. case $cross_compiling:$ac_tool_warned in
  3174. yes:)
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3176. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3177. ac_tool_warned=yes ;;
  3178. esac
  3179. FC=$ac_ct_FC
  3180. fi
  3181. fi
  3182. # Provide some information about the compiler.
  3183. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
  3184. set X $ac_compile
  3185. ac_compiler=$2
  3186. for ac_option in --version -v -V -qversion; do
  3187. { { ac_try="$ac_compiler $ac_option >&5"
  3188. case "(($ac_try" in
  3189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3190. *) ac_try_echo=$ac_try;;
  3191. esac
  3192. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3193. $as_echo "$ac_try_echo"; } >&5
  3194. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3195. ac_status=$?
  3196. if test -s conftest.err; then
  3197. sed '10a\
  3198. ... rest of stderr output deleted ...
  3199. 10q' conftest.err >conftest.er1
  3200. cat conftest.er1 >&5
  3201. fi
  3202. rm -f conftest.er1 conftest.err
  3203. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3204. test $ac_status = 0; }
  3205. done
  3206. rm -f a.out
  3207. # If we don't use `.F' as extension, the preprocessor is not run on the
  3208. # input file. (Note that this only needs to work for GNU compilers.)
  3209. ac_save_ext=$ac_ext
  3210. ac_ext=F
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
  3212. $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
  3213. if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
  3214. $as_echo_n "(cached) " >&6
  3215. else
  3216. cat > conftest.$ac_ext <<_ACEOF
  3217. program main
  3218. #ifndef __GNUC__
  3219. choke me
  3220. #endif
  3221. end
  3222. _ACEOF
  3223. if ac_fn_fc_try_compile "$LINENO"; then :
  3224. ac_compiler_gnu=yes
  3225. else
  3226. ac_compiler_gnu=no
  3227. fi
  3228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3229. ac_cv_fc_compiler_gnu=$ac_compiler_gnu
  3230. fi
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
  3232. $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
  3233. ac_ext=$ac_save_ext
  3234. ac_test_FCFLAGS=${FCFLAGS+set}
  3235. ac_save_FCFLAGS=$FCFLAGS
  3236. FCFLAGS=
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
  3238. $as_echo_n "checking whether $FC accepts -g... " >&6; }
  3239. if test "${ac_cv_prog_fc_g+set}" = set; then :
  3240. $as_echo_n "(cached) " >&6
  3241. else
  3242. FCFLAGS=-g
  3243. cat > conftest.$ac_ext <<_ACEOF
  3244. program main
  3245. end
  3246. _ACEOF
  3247. if ac_fn_fc_try_compile "$LINENO"; then :
  3248. ac_cv_prog_fc_g=yes
  3249. else
  3250. ac_cv_prog_fc_g=no
  3251. fi
  3252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3253. fi
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
  3255. $as_echo "$ac_cv_prog_fc_g" >&6; }
  3256. if test "$ac_test_FCFLAGS" = set; then
  3257. FCFLAGS=$ac_save_FCFLAGS
  3258. elif test $ac_cv_prog_fc_g = yes; then
  3259. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  3260. FCFLAGS="-g -O2"
  3261. else
  3262. FCFLAGS="-g"
  3263. fi
  3264. else
  3265. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  3266. FCFLAGS="-O2"
  3267. else
  3268. FCFLAGS=
  3269. fi
  3270. fi
  3271. ac_ext=c
  3272. ac_cpp='$CPP $CPPFLAGS'
  3273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3276. # CHECK FOR MPI LIBRARIES
  3277. ac_ext=${ac_fc_srcext-f}
  3278. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3279. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3280. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3281. ac_ext=${ac_fc_srcext-f}
  3282. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3283. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3284. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .F90 files" >&5
  3286. $as_echo_n "checking for Fortran flag to compile .F90 files... " >&6; }
  3287. if test "${ac_cv_fc_srcext_F90+set}" = set; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. ac_ext=F90
  3291. ac_fcflags_srcext_save=$ac_fcflags_srcext
  3292. ac_fcflags_srcext=
  3293. ac_cv_fc_srcext_F90=unknown
  3294. for ac_flag in none -qsuffix=f=F90 -Tf; do
  3295. test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
  3296. cat > conftest.$ac_ext <<_ACEOF
  3297. program main
  3298. end
  3299. _ACEOF
  3300. if ac_fn_fc_try_compile "$LINENO"; then :
  3301. ac_cv_fc_srcext_F90=$ac_flag; break
  3302. fi
  3303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3304. done
  3305. rm -f conftest.$ac_objext conftest.F90
  3306. ac_fcflags_srcext=$ac_fcflags_srcext_save
  3307. fi
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_F90" >&5
  3309. $as_echo "$ac_cv_fc_srcext_F90" >&6; }
  3310. if test "x$ac_cv_fc_srcext_F90" = xunknown; then
  3311. as_fn_error "Fortran could not compile .F90 files" "$LINENO" 5
  3312. else
  3313. ac_fc_srcext=F90
  3314. if test "x$ac_cv_fc_srcext_F90" = xnone; then
  3315. ac_fcflags_srcext=""
  3316. FCFLAGS_F90=""
  3317. else
  3318. ac_fcflags_srcext=$ac_cv_fc_srcext_F90
  3319. FCFLAGS_F90=$ac_cv_fc_srcext_F90
  3320. fi
  3321. fi
  3322. ac_ext=${ac_fc_srcext-f}
  3323. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3324. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3325. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3326. OLDFCFLAGS="$FCFLAGS"
  3327. if test -n "$MPIHEADER"; then
  3328. FCFLAGS="$FCFLAGS $MPIHEADER"
  3329. fi
  3330. # CHECK MPI BY DEFAULT
  3331. if test -z "$DONOTCHECKMPI"; then
  3332. for ac_prog in mpif90 hf90 mpxlf90 mpxlf95 mpf90 cmpifc cmpif90c
  3333. do
  3334. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3335. set dummy $ac_prog; ac_word=$2
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3337. $as_echo_n "checking for $ac_word... " >&6; }
  3338. if test "${ac_cv_prog_MPIFC+set}" = set; then :
  3339. $as_echo_n "(cached) " >&6
  3340. else
  3341. if test -n "$MPIFC"; then
  3342. ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test.
  3343. else
  3344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3345. for as_dir in $PATH
  3346. do
  3347. IFS=$as_save_IFS
  3348. test -z "$as_dir" && as_dir=.
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3351. ac_cv_prog_MPIFC="$ac_prog"
  3352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. fi
  3359. fi
  3360. MPIFC=$ac_cv_prog_MPIFC
  3361. if test -n "$MPIFC"; then
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5
  3363. $as_echo "$MPIFC" >&6; }
  3364. else
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3366. $as_echo "no" >&6; }
  3367. fi
  3368. test -n "$MPIFC" && break
  3369. done
  3370. test -n "$MPIFC" || MPIFC="$FC"
  3371. acx_mpi_save_FC="$FC"
  3372. FC="$MPIFC"
  3373. if test x = x"$MPILIBS"; then
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init" >&5
  3375. $as_echo_n "checking for MPI_Init... " >&6; }
  3376. cat > conftest.$ac_ext <<_ACEOF
  3377. program main
  3378. call MPI_Init
  3379. end
  3380. _ACEOF
  3381. if ac_fn_fc_try_link "$LINENO"; then :
  3382. MPILIBS=" "
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3384. $as_echo "yes" >&6; }
  3385. else
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3387. $as_echo "no" >&6; }
  3388. fi
  3389. rm -f core conftest.err conftest.$ac_objext \
  3390. conftest$ac_exeext conftest.$ac_ext
  3391. fi
  3392. if test x = x"$MPILIBS"; then
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lfmpi" >&5
  3394. $as_echo_n "checking for MPI_Init in -lfmpi... " >&6; }
  3395. if test "${ac_cv_lib_fmpi_MPI_Init+set}" = set; then :
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. ac_check_lib_save_LIBS=$LIBS
  3399. LIBS="-lfmpi $LIBS"
  3400. cat > conftest.$ac_ext <<_ACEOF
  3401. program main
  3402. call MPI_Init
  3403. end
  3404. _ACEOF
  3405. if ac_fn_fc_try_link "$LINENO"; then :
  3406. ac_cv_lib_fmpi_MPI_Init=yes
  3407. else
  3408. ac_cv_lib_fmpi_MPI_Init=no
  3409. fi
  3410. rm -f core conftest.err conftest.$ac_objext \
  3411. conftest$ac_exeext conftest.$ac_ext
  3412. LIBS=$ac_check_lib_save_LIBS
  3413. fi
  3414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmpi_MPI_Init" >&5
  3415. $as_echo "$ac_cv_lib_fmpi_MPI_Init" >&6; }
  3416. if test "x$ac_cv_lib_fmpi_MPI_Init" = x""yes; then :
  3417. MPILIBS="-lfmpi"
  3418. fi
  3419. fi
  3420. if test x = x"$MPILIBS"; then
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpichf90" >&5
  3422. $as_echo_n "checking for MPI_Init in -lmpichf90... " >&6; }
  3423. if test "${ac_cv_lib_mpichf90_MPI_Init+set}" = set; then :
  3424. $as_echo_n "(cached) " >&6
  3425. else
  3426. ac_check_lib_save_LIBS=$LIBS
  3427. LIBS="-lmpichf90 $LIBS"
  3428. cat > conftest.$ac_ext <<_ACEOF
  3429. program main
  3430. call MPI_Init
  3431. end
  3432. _ACEOF
  3433. if ac_fn_fc_try_link "$LINENO"; then :
  3434. ac_cv_lib_mpichf90_MPI_Init=yes
  3435. else
  3436. ac_cv_lib_mpichf90_MPI_Init=no
  3437. fi
  3438. rm -f core conftest.err conftest.$ac_objext \
  3439. conftest$ac_exeext conftest.$ac_ext
  3440. LIBS=$ac_check_lib_save_LIBS
  3441. fi
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpichf90_MPI_Init" >&5
  3443. $as_echo "$ac_cv_lib_mpichf90_MPI_Init" >&6; }
  3444. if test "x$ac_cv_lib_mpichf90_MPI_Init" = x""yes; then :
  3445. MPILIBS="-lmpichf90"
  3446. fi
  3447. fi
  3448. if test x = x"$MPILIBS"; then
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
  3450. $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
  3451. if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
  3452. $as_echo_n "(cached) " >&6
  3453. else
  3454. ac_check_lib_save_LIBS=$LIBS
  3455. LIBS="-lmpi $LIBS"
  3456. cat > conftest.$ac_ext <<_ACEOF
  3457. program main
  3458. call MPI_Init
  3459. end
  3460. _ACEOF
  3461. if ac_fn_fc_try_link "$LINENO"; then :
  3462. ac_cv_lib_mpi_MPI_Init=yes
  3463. else
  3464. ac_cv_lib_mpi_MPI_Init=no
  3465. fi
  3466. rm -f core conftest.err conftest.$ac_objext \
  3467. conftest$ac_exeext conftest.$ac_ext
  3468. LIBS=$ac_check_lib_save_LIBS
  3469. fi
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
  3471. $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
  3472. if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
  3473. MPILIBS="-lmpi"
  3474. fi
  3475. fi
  3476. if test x = x"$MPILIBS"; then
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
  3478. $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
  3479. if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
  3480. $as_echo_n "(cached) " >&6
  3481. else
  3482. ac_check_lib_save_LIBS=$LIBS
  3483. LIBS="-lmpich $LIBS"
  3484. cat > conftest.$ac_ext <<_ACEOF
  3485. program main
  3486. call MPI_Init
  3487. end
  3488. _ACEOF
  3489. if ac_fn_fc_try_link "$LINENO"; then :
  3490. ac_cv_lib_mpich_MPI_Init=yes
  3491. else
  3492. ac_cv_lib_mpich_MPI_Init=no
  3493. fi
  3494. rm -f core conftest.err conftest.$ac_objext \
  3495. conftest$ac_exeext conftest.$ac_ext
  3496. LIBS=$ac_check_lib_save_LIBS
  3497. fi
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
  3499. $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
  3500. if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
  3501. MPILIBS="-lmpich"
  3502. fi
  3503. fi
  3504. if test x != x"$MPILIBS"; then
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpif.h" >&5
  3506. $as_echo_n "checking for mpif.h... " >&6; }
  3507. cat > conftest.$ac_ext <<_ACEOF
  3508. program main
  3509. include 'mpif.h'
  3510. end
  3511. _ACEOF
  3512. if ac_fn_fc_try_compile "$LINENO"; then :
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3514. $as_echo "yes" >&6; }
  3515. else
  3516. MPILIBS=""
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3518. $as_echo "no" >&6; }
  3519. fi
  3520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3521. fi
  3522. FC="$acx_mpi_save_FC"
  3523. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  3524. if test x = x"$MPILIBS"; then
  3525. :
  3526. else
  3527. $as_echo "#define HAVE_MPI 1" >>confdefs.h
  3528. :
  3529. fi
  3530. fi
  3531. # DONT CHECK MPI IF SERIALMPI OPTION IS ENABLED
  3532. if test -n "$DONOTCHECKMPI"; then
  3533. echo "MPISERIAL ENABLED: BYPASSING MPI CHECK"
  3534. if test -z "$MPIFC"; then
  3535. MPIFC=$FC
  3536. fi
  3537. if test -z "$FORT_SIZE"; then
  3538. FORT_SIZE="real4double8"
  3539. echo "FORT_SIZE IS PRESET TO $FORT_SIZE"
  3540. fi
  3541. abs_top_builddir=`pwd`
  3542. MPISERPATH=$abs_top_builddir/mpi-serial
  3543. MPIHEADER=-I$MPISERPATH
  3544. MPILIBS="-L$MPISERPATH -lmpi-serial"
  3545. fi
  3546. FCFLAGS="$OLDFCFLAGS"
  3547. # A HACK TO FIX ACX_MPI TO GET MPILIBS TO BE AN EMPTY STRING
  3548. if test "$MPILIBS" = " "; then
  3549. MPILIBS=""
  3550. fi
  3551. # SET FC TO MPIFC. IF MPILIBS IS PRESENT, SET FC TO FC.
  3552. if test -z "$FC"; then
  3553. FC=$MPIFC
  3554. if test "$FC" != "$MPIFC"; then
  3555. if test -n "$MPILIBS"; then
  3556. FC=$FC
  3557. fi
  3558. fi
  3559. fi
  3560. # FOR SANITY, CHECK THAT FILENAME EXTENSION FOR FC IS CONSISTENT WITH FC
  3561. OLDFC="$FC"
  3562. FC="$FC"
  3563. cat > conftest.$ac_ext <<_ACEOF
  3564. subroutine oof()
  3565. return
  3566. end
  3567. _ACEOF
  3568. if ac_fn_fc_try_compile "$LINENO"; then :
  3569. else
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&5
  3571. $as_echo "$as_me: WARNING: $FC FAILED TO COMPILE FILENAME EXTENSION $ac_ext" >&2;}
  3572. fi
  3573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3574. FC="$OLDFC"
  3575. # CHECK HOW TO GET THE COMPILER VERSION.
  3576. echo "Checking Compiler Version"
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the version output from $FC" >&5
  3578. $as_echo_n "checking how to get the version output from $FC... " >&6; }
  3579. if test "${ac_cv_prog_fc_version+set}" = set; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. cat > conftest.$ac_ext <<_ACEOF
  3583. program main
  3584. end
  3585. _ACEOF
  3586. if ac_fn_fc_try_compile "$LINENO"; then :
  3587. ac_cv_prog_fc_version=
  3588. # Try some options frequently used verbose output
  3589. for ac_version in -V -version --version +version -qversion; do
  3590. ac_ext=${ac_fc_srcext-f}
  3591. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3592. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3593. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3594. cat > conftest.$ac_ext <<_ACEOF
  3595. program main
  3596. end
  3597. _ACEOF
  3598. # Compile and link our simple test program by passing a flag (argument
  3599. # 1 to this macro) to the Fortran 90 compiler in order to get "version" output
  3600. ac_save_FCFLAGS=$FCFLAGS
  3601. FCFLAGS="$FCFLAGS $ac_version"
  3602. (eval echo $as_me:4030: \"$ac_link\") >&5
  3603. ac_fc_version_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
  3604. echo "$ac_fc_version_output" >&5
  3605. FCFLAGS=$ac_save_FCFLAGS
  3606. rm -f conftest.*
  3607. ac_ext=${ac_fc_srcext-f}
  3608. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3609. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3610. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3611. # look for "copyright" constructs in the output
  3612. for ac_arg in $ac_fc_version_output; do
  3613. case $ac_arg in
  3614. COPYRIGHT | copyright | Copyright | '(c)' | '(C)' | Compiler | Compilers | Version | Version:)
  3615. ac_cv_prog_fc_version=$ac_version
  3616. break 2 ;;
  3617. esac
  3618. done
  3619. done
  3620. if test -z "$ac_cv_prog_fc_version"; then
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain version information from $FC" >&5
  3622. $as_echo "$as_me: WARNING: cannot determine how to obtain version information from $FC" >&2;}
  3623. fi
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
  3626. $as_echo "$as_me: WARNING: compilation failed" >&2;}
  3627. fi
  3628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3629. fi
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_version" >&5
  3631. $as_echo "$ac_cv_prog_fc_version" >&6; }
  3632. ac_ext=c
  3633. ac_cpp='$CPP $CPPFLAGS'
  3634. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3635. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3636. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3637. # Check how to use the cpp with fortran
  3638. ac_ext=${ac_fc_srcext-f}
  3639. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3640. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3641. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3642. ac_fc_pp_define_srcext_save=$ac_fc_srcext
  3643. ac_ext=${ac_fc_srcext-f}
  3644. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3645. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3646. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile preprocessed .F files" >&5
  3648. $as_echo_n "checking for Fortran flag to compile preprocessed .F files... " >&6; }
  3649. if test "${ac_cv_fc_pp_srcext_F+set}" = set; then :
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. ac_ext=F
  3653. ac_fcflags_pp_srcext_save=$ac_fcflags_srcext
  3654. ac_fcflags_srcext=
  3655. ac_cv_fc_pp_srcext_F=unknown
  3656. case $ac_ext in #(
  3657. [fF]77) ac_try=f77-cpp-input;; #(
  3658. *) ac_try=f95-cpp-input;;
  3659. esac
  3660. for ac_flag in none -ftpp -fpp -Tf "-fpp -Tf" -xpp=fpp -Mpreprocess "-e Z" \
  3661. -cpp -xpp=cpp -qsuffix=cpp=F "-x $ac_try" +cpp -Cpp; do
  3662. test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
  3663. cat > conftest.$ac_ext <<_ACEOF
  3664. program main
  3665. #if 0
  3666. #include <ac_nonexistent.h>
  3667. choke me
  3668. #endif
  3669. end
  3670. _ACEOF
  3671. if ac_fn_fc_try_compile "$LINENO"; then :
  3672. cat > conftest.$ac_ext <<_ACEOF
  3673. program main
  3674. #if 1
  3675. #include <ac_nonexistent.h>
  3676. choke me
  3677. #endif
  3678. end
  3679. _ACEOF
  3680. if ac_fn_fc_try_compile "$LINENO"; then :
  3681. else
  3682. ac_cv_fc_pp_srcext_F=$ac_flag; break
  3683. fi
  3684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3685. fi
  3686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3687. done
  3688. rm -f conftest.$ac_objext conftest.F
  3689. ac_fcflags_srcext=$ac_fcflags_pp_srcext_save
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_srcext_F" >&5
  3692. $as_echo "$ac_cv_fc_pp_srcext_F" >&6; }
  3693. if test "x$ac_cv_fc_pp_srcext_F" = xunknown; then
  3694. as_fn_error "Fortran could not compile preprocessed .F files" "$LINENO" 5
  3695. else
  3696. ac_fc_srcext=F
  3697. if test "x$ac_cv_fc_pp_srcext_F" = xnone; then
  3698. ac_fcflags_srcext=""
  3699. FCFLAGS_F=""
  3700. else
  3701. ac_fcflags_srcext=$ac_cv_fc_pp_srcext_F
  3702. FCFLAGS_F=$ac_cv_fc_pp_srcext_F
  3703. fi
  3704. fi
  3705. ac_ext=${ac_fc_srcext-f}
  3706. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3707. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3708. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define symbols for preprocessed Fortran" >&5
  3710. $as_echo_n "checking how to define symbols for preprocessed Fortran... " >&6; }
  3711. if test "${ac_cv_fc_pp_define+set}" = set; then :
  3712. $as_echo_n "(cached) " >&6
  3713. else
  3714. ac_fc_pp_define_srcext_save=$ac_fc_srcext
  3715. ac_cv_fc_pp_define=unknown
  3716. ac_fc_pp_define_FCFLAGS_save=$FCFLAGS
  3717. for ac_flag in -D -WF,-D -Wp,-D -Wc,-D
  3718. do
  3719. FCFLAGS="$ac_fc_pp_define_FCFLAGS_save ${ac_flag}FOOBAR ${ac_flag}ZORK=42"
  3720. cat > conftest.$ac_ext <<_ACEOF
  3721. program main
  3722. #ifndef FOOBAR
  3723. choke me
  3724. #endif
  3725. #if ZORK != 42
  3726. choke me
  3727. #endif
  3728. end
  3729. _ACEOF
  3730. if ac_fn_fc_try_compile "$LINENO"; then :
  3731. ac_cv_fc_pp_define=$ac_flag
  3732. fi
  3733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3734. test x"$ac_cv_fc_pp_define" != xunknown && break
  3735. done
  3736. FCFLAGS=$ac_fc_pp_define_FCFLAGS_save
  3737. fi
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_pp_define" >&5
  3739. $as_echo "$ac_cv_fc_pp_define" >&6; }
  3740. ac_fc_srcext=$ac_fc_pp_define_srcext_save
  3741. if test "x$ac_cv_fc_pp_define" = xunknown; then
  3742. FC_DEFINE=
  3743. { as_fn_set_status 77
  3744. as_fn_error "Fortran does not allow to define preprocessor symbols" "$LINENO" 5; }
  3745. else
  3746. FC_DEFINE=$ac_cv_fc_pp_define
  3747. fi
  3748. ac_ext=c
  3749. ac_cpp='$CPP $CPPFLAGS'
  3750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3753. # CHECK HOW TO NAME MANGLE C FUNCTIONS SO THAT IT CAN BE CALLED FROM FORTRAN
  3754. OLDFC="$FC"
  3755. ac_ext=${ac_fc_srcext-f}
  3756. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  3757. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  3758. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
  3760. $as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
  3761. if test "${ac_cv_prog_fc_v+set}" = set; then :
  3762. $as_echo_n "(cached) " >&6
  3763. else
  3764. cat > conftest.$ac_ext <<_ACEOF
  3765. program main
  3766. end
  3767. _ACEOF
  3768. if ac_fn_fc_try_compile "$LINENO"; then :
  3769. ac_cv_prog_fc_v=
  3770. # Try some options frequently used verbose output
  3771. for ac_verb in -v -verbose --verbose -V -\#\#\#; do
  3772. cat > conftest.$ac_ext <<_ACEOF
  3773. program main
  3774. end
  3775. _ACEOF
  3776. # Compile and link our simple test program by passing a flag (argument
  3777. # 1 to this macro) to the Fortran compiler in order to get
  3778. # "verbose" output that we can then parse for the Fortran linker
  3779. # flags.
  3780. ac_save_FCFLAGS=$FCFLAGS
  3781. FCFLAGS="$FCFLAGS $ac_verb"
  3782. eval "set x $ac_link"
  3783. shift
  3784. $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
  3785. # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
  3786. # LIBRARY_PATH; skip all such settings.
  3787. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
  3788. grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
  3789. $as_echo "$ac_fc_v_output" >&5
  3790. FCFLAGS=$ac_save_FCFLAGS
  3791. rm -rf conftest*
  3792. # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
  3793. # /foo, /bar, and /baz are search directories for the Fortran linker.
  3794. # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
  3795. ac_fc_v_output="`echo $ac_fc_v_output |
  3796. grep 'LPATH is:' |
  3797. sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
  3798. # FIXME: we keep getting bitten by quoted arguments; a more general fix
  3799. # that detects unbalanced quotes in FLIBS should be implemented
  3800. # and (ugh) tested at some point.
  3801. case $ac_fc_v_output in
  3802. # If we are using xlf then replace all the commas with spaces.
  3803. *xlfentry*)
  3804. ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
  3805. # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
  3806. # $LIBS confuse us, and the libraries appear later in the output anyway).
  3807. *mGLOB_options_string*)
  3808. ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
  3809. # Portland Group compiler has singly- or doubly-quoted -cmdline argument
  3810. # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
  3811. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
  3812. *-cmdline\ * | *-ignore\ * | *-def\ *)
  3813. ac_fc_v_output=`echo $ac_fc_v_output | sed "\
  3814. s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
  3815. s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
  3816. s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
  3817. # If we are using Cray Fortran then delete quotes.
  3818. *cft90*)
  3819. ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
  3820. esac
  3821. # look for -l* and *.a constructs in the output
  3822. for ac_arg in $ac_fc_v_output; do
  3823. case $ac_arg in
  3824. [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
  3825. ac_cv_prog_fc_v=$ac_verb
  3826. break 2 ;;
  3827. esac
  3828. done
  3829. done
  3830. if test -z "$ac_cv_prog_fc_v"; then
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
  3832. $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
  3833. fi
  3834. else
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
  3836. $as_echo "$as_me: WARNING: compilation failed" >&2;}
  3837. fi
  3838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3839. fi
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
  3841. $as_echo "$ac_cv_prog_fc_v" >&6; }
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
  3843. $as_echo_n "checking for Fortran libraries of $FC... " >&6; }
  3844. if test "${ac_cv_fc_libs+set}" = set; then :
  3845. $as_echo_n "(cached) " >&6
  3846. else
  3847. if test "x$FCLIBS" != "x"; then
  3848. ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
  3849. else
  3850. cat > conftest.$ac_ext <<_ACEOF
  3851. program main
  3852. end
  3853. _ACEOF
  3854. # Compile and link our simple test program by passing a flag (argument
  3855. # 1 to this macro) to the Fortran compiler in order to get
  3856. # "verbose" output that we can then parse for the Fortran linker
  3857. # flags.
  3858. ac_save_FCFLAGS=$FCFLAGS
  3859. FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
  3860. eval "set x $ac_link"
  3861. shift
  3862. $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
  3863. # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
  3864. # LIBRARY_PATH; skip all such settings.
  3865. ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
  3866. grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
  3867. $as_echo "$ac_fc_v_output" >&5
  3868. FCFLAGS=$ac_save_FCFLAGS
  3869. rm -rf conftest*
  3870. # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
  3871. # /foo, /bar, and /baz are search directories for the Fortran linker.
  3872. # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
  3873. ac_fc_v_output="`echo $ac_fc_v_output |
  3874. grep 'LPATH is:' |
  3875. sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
  3876. # FIXME: we keep getting bitten by quoted arguments; a more general fix
  3877. # that detects unbalanced quotes in FLIBS should be implemented
  3878. # and (ugh) tested at some point.
  3879. case $ac_fc_v_output in
  3880. # If we are using xlf then replace all the commas with spaces.
  3881. *xlfentry*)
  3882. ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
  3883. # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
  3884. # $LIBS confuse us, and the libraries appear later in the output anyway).
  3885. *mGLOB_options_string*)
  3886. ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
  3887. # Portland Group compiler has singly- or doubly-quoted -cmdline argument
  3888. # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
  3889. # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
  3890. *-cmdline\ * | *-ignore\ * | *-def\ *)
  3891. ac_fc_v_output=`echo $ac_fc_v_output | sed "\
  3892. s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
  3893. s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
  3894. s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
  3895. # If we are using Cray Fortran then delete quotes.
  3896. *cft90*)
  3897. ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
  3898. esac
  3899. ac_cv_fc_libs=
  3900. # Save positional arguments (if any)
  3901. ac_save_positional="$@"
  3902. set X $ac_fc_v_output
  3903. while test $# != 1; do
  3904. shift
  3905. ac_arg=$1
  3906. case $ac_arg in
  3907. [\\/]*.a | ?:[\\/]*.a)
  3908. ac_exists=false
  3909. for ac_i in $ac_cv_fc_libs; do
  3910. if test x"$ac_arg" = x"$ac_i"; then
  3911. ac_exists=true
  3912. break
  3913. fi
  3914. done
  3915. if test x"$ac_exists" = xtrue; then :
  3916. else
  3917. ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
  3918. fi
  3919. ;;
  3920. -bI:*)
  3921. ac_exists=false
  3922. for ac_i in $ac_cv_fc_libs; do
  3923. if test x"$ac_arg" = x"$ac_i"; then
  3924. ac_exists=true
  3925. break
  3926. fi
  3927. done
  3928. if test x"$ac_exists" = xtrue; then :
  3929. else
  3930. if test "$ac_compiler_gnu" = yes; then
  3931. for ac_link_opt in $ac_arg; do
  3932. ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
  3933. done
  3934. else
  3935. ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
  3936. fi
  3937. fi
  3938. ;;
  3939. # Ignore these flags.
  3940. -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
  3941. |-LANG:=* | -LIST:* | -LNO:* | -link | -list | -lnuma )
  3942. ;;
  3943. -lkernel32)
  3944. test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
  3945. ;;
  3946. -[LRuYz])
  3947. # These flags, when seen by themselves, take an argument.
  3948. # We remove the space between option and argument and re-iterate
  3949. # unless we find an empty arg or a new option (starting with -)
  3950. case $2 in
  3951. "" | -*);;
  3952. *)
  3953. ac_arg="$ac_arg$2"
  3954. shift; shift
  3955. set X $ac_arg "$@"
  3956. ;;
  3957. esac
  3958. ;;
  3959. -YP,*)
  3960. for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
  3961. ac_exists=false
  3962. for ac_i in $ac_cv_fc_libs; do
  3963. if test x"$ac_j" = x"$ac_i"; then
  3964. ac_exists=true
  3965. break
  3966. fi
  3967. done
  3968. if test x"$ac_exists" = xtrue; then :
  3969. else
  3970. ac_arg="$ac_arg $ac_j"
  3971. ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
  3972. fi
  3973. done
  3974. ;;
  3975. -[lLR]*)
  3976. ac_exists=false
  3977. for ac_i in $ac_cv_fc_libs; do
  3978. if test x"$ac_arg" = x"$ac_i"; then
  3979. ac_exists=true
  3980. break
  3981. fi
  3982. done
  3983. if test x"$ac_exists" = xtrue; then :
  3984. else
  3985. ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
  3986. fi
  3987. ;;
  3988. -zallextract*| -zdefaultextract)
  3989. ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
  3990. ;;
  3991. # Ignore everything else.
  3992. esac
  3993. done
  3994. # restore positional arguments
  3995. set X $ac_save_positional; shift
  3996. # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
  3997. # then we insist that the "run path" must be an absolute path (i.e. it
  3998. # must begin with a "/").
  3999. case `(uname -sr) 2>/dev/null` in
  4000. "SunOS 5"*)
  4001. ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
  4002. sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
  4003. test "x$ac_ld_run_path" != x &&
  4004. if test "$ac_compiler_gnu" = yes; then
  4005. for ac_link_opt in $ac_ld_run_path; do
  4006. ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
  4007. done
  4008. else
  4009. ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
  4010. fi
  4011. ;;
  4012. esac
  4013. fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
  4014. fi
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
  4016. $as_echo "$ac_cv_fc_libs" >&6; }
  4017. FCLIBS="$ac_cv_fc_libs"
  4018. ac_ext=c
  4019. ac_cpp='$CPP $CPPFLAGS'
  4020. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4021. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4022. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4023. ac_ext=${ac_fc_srcext-f}
  4024. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  4025. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  4026. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
  4028. $as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
  4029. if test "${ac_cv_fc_dummy_main+set}" = set; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. ac_fc_dm_save_LIBS=$LIBS
  4033. LIBS="$LIBS $FCLIBS"
  4034. ac_fortran_dm_var=FC_DUMMY_MAIN
  4035. ac_ext=c
  4036. ac_cpp='$CPP $CPPFLAGS'
  4037. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4038. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4039. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4040. # First, try linking without a dummy main:
  4041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4042. /* end confdefs.h. */
  4043. #ifdef FC_DUMMY_MAIN
  4044. #ifndef FC_DUMMY_MAIN_EQ_F77
  4045. # ifdef __cplusplus
  4046. extern "C"
  4047. # endif
  4048. int FC_DUMMY_MAIN() { return 1; }
  4049. #endif
  4050. #endif
  4051. int
  4052. main ()
  4053. {
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. if ac_fn_c_try_link "$LINENO"; then :
  4059. ac_cv_fortran_dummy_main=none
  4060. else
  4061. ac_cv_fortran_dummy_main=unknown
  4062. fi
  4063. rm -f core conftest.err conftest.$ac_objext \
  4064. conftest$ac_exeext conftest.$ac_ext
  4065. if test $ac_cv_fortran_dummy_main = unknown; then
  4066. for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. #define $ac_fortran_dm_var $ac_func
  4070. #ifdef FC_DUMMY_MAIN
  4071. #ifndef FC_DUMMY_MAIN_EQ_F77
  4072. # ifdef __cplusplus
  4073. extern "C"
  4074. # endif
  4075. int FC_DUMMY_MAIN() { return 1; }
  4076. #endif
  4077. #endif
  4078. int
  4079. main ()
  4080. {
  4081. ;
  4082. return 0;
  4083. }
  4084. _ACEOF
  4085. if ac_fn_c_try_link "$LINENO"; then :
  4086. ac_cv_fortran_dummy_main=$ac_func; break
  4087. fi
  4088. rm -f core conftest.err conftest.$ac_objext \
  4089. conftest$ac_exeext conftest.$ac_ext
  4090. done
  4091. fi
  4092. ac_ext=${ac_fc_srcext-f}
  4093. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  4094. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  4095. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  4096. ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
  4097. rm -rf conftest*
  4098. LIBS=$ac_fc_dm_save_LIBS
  4099. fi
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
  4101. $as_echo "$ac_cv_fc_dummy_main" >&6; }
  4102. FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
  4103. if test "$FC_DUMMY_MAIN" != unknown; then :
  4104. if test $FC_DUMMY_MAIN != none; then
  4105. cat >>confdefs.h <<_ACEOF
  4106. #define FC_DUMMY_MAIN $FC_DUMMY_MAIN
  4107. _ACEOF
  4108. if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
  4109. $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
  4110. fi
  4111. fi
  4112. else
  4113. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4114. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4115. as_fn_error "linking to Fortran libraries from C fails
  4116. See \`config.log' for more details." "$LINENO" 5; }
  4117. fi
  4118. ac_ext=c
  4119. ac_cpp='$CPP $CPPFLAGS'
  4120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4123. ac_ext=${ac_fc_srcext-f}
  4124. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  4125. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  4126. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
  4128. $as_echo_n "checking for Fortran name-mangling scheme... " >&6; }
  4129. if test "${ac_cv_fc_mangling+set}" = set; then :
  4130. $as_echo_n "(cached) " >&6
  4131. else
  4132. cat > conftest.$ac_ext <<_ACEOF
  4133. subroutine foobar()
  4134. return
  4135. end
  4136. subroutine foo_bar()
  4137. return
  4138. end
  4139. _ACEOF
  4140. if ac_fn_fc_try_compile "$LINENO"; then :
  4141. mv conftest.$ac_objext cfortran_test.$ac_objext
  4142. ac_save_LIBS=$LIBS
  4143. LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
  4144. ac_ext=c
  4145. ac_cpp='$CPP $CPPFLAGS'
  4146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4149. ac_success=no
  4150. for ac_foobar in foobar FOOBAR; do
  4151. for ac_underscore in "" "_"; do
  4152. ac_func="$ac_foobar$ac_underscore"
  4153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4154. /* end confdefs.h. */
  4155. /* Override any GCC internal prototype to avoid an error.
  4156. Use char because int might match the return type of a GCC
  4157. builtin and then its argument prototype would still apply. */
  4158. #ifdef __cplusplus
  4159. extern "C"
  4160. #endif
  4161. char $ac_func ();
  4162. #ifdef FC_DUMMY_MAIN
  4163. #ifndef FC_DUMMY_MAIN_EQ_F77
  4164. # ifdef __cplusplus
  4165. extern "C"
  4166. # endif
  4167. int FC_DUMMY_MAIN() { return 1; }
  4168. #endif
  4169. #endif
  4170. int
  4171. main ()
  4172. {
  4173. return $ac_func ();
  4174. ;
  4175. return 0;
  4176. }
  4177. _ACEOF
  4178. if ac_fn_c_try_link "$LINENO"; then :
  4179. ac_success=yes; break 2
  4180. fi
  4181. rm -f core conftest.err conftest.$ac_objext \
  4182. conftest$ac_exeext conftest.$ac_ext
  4183. done
  4184. done
  4185. ac_ext=${ac_fc_srcext-f}
  4186. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  4187. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  4188. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  4189. if test "$ac_success" = "yes"; then
  4190. case $ac_foobar in
  4191. foobar)
  4192. ac_case=lower
  4193. ac_foo_bar=foo_bar
  4194. ;;
  4195. FOOBAR)
  4196. ac_case=upper
  4197. ac_foo_bar=FOO_BAR
  4198. ;;
  4199. esac
  4200. ac_ext=c
  4201. ac_cpp='$CPP $CPPFLAGS'
  4202. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4203. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4204. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4205. ac_success_extra=no
  4206. for ac_extra in "" "_"; do
  4207. ac_func="$ac_foo_bar$ac_underscore$ac_extra"
  4208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4209. /* end confdefs.h. */
  4210. /* Override any GCC internal prototype to avoid an error.
  4211. Use char because int might match the return type of a GCC
  4212. builtin and then its argument prototype would still apply. */
  4213. #ifdef __cplusplus
  4214. extern "C"
  4215. #endif
  4216. char $ac_func ();
  4217. #ifdef FC_DUMMY_MAIN
  4218. #ifndef FC_DUMMY_MAIN_EQ_F77
  4219. # ifdef __cplusplus
  4220. extern "C"
  4221. # endif
  4222. int FC_DUMMY_MAIN() { return 1; }
  4223. #endif
  4224. #endif
  4225. int
  4226. main ()
  4227. {
  4228. return $ac_func ();
  4229. ;
  4230. return 0;
  4231. }
  4232. _ACEOF
  4233. if ac_fn_c_try_link "$LINENO"; then :
  4234. ac_success_extra=yes; break
  4235. fi
  4236. rm -f core conftest.err conftest.$ac_objext \
  4237. conftest$ac_exeext conftest.$ac_ext
  4238. done
  4239. ac_ext=${ac_fc_srcext-f}
  4240. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  4241. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  4242. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  4243. if test "$ac_success_extra" = "yes"; then
  4244. ac_cv_fc_mangling="$ac_case case"
  4245. if test -z "$ac_underscore"; then
  4246. ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
  4247. else
  4248. ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
  4249. fi
  4250. if test -z "$ac_extra"; then
  4251. ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
  4252. else
  4253. ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
  4254. fi
  4255. else
  4256. ac_cv_fc_mangling="unknown"
  4257. fi
  4258. else
  4259. ac_cv_fc_mangling="unknown"
  4260. fi
  4261. LIBS=$ac_save_LIBS
  4262. rm -rf conftest*
  4263. rm -f cfortran_test*
  4264. else
  4265. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4267. as_fn_error "cannot compile a simple Fortran program
  4268. See \`config.log' for more details." "$LINENO" 5; }
  4269. fi
  4270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4271. fi
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
  4273. $as_echo "$ac_cv_fc_mangling" >&6; }
  4274. ac_ext=c
  4275. ac_cpp='$CPP $CPPFLAGS'
  4276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4279. ac_ext=${ac_fc_srcext-f}
  4280. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  4281. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  4282. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  4283. case $ac_cv_fc_mangling in
  4284. "lower case, no underscore, no extra underscore")
  4285. $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
  4286. $as_echo "#define FC_FUNC_(name,NAME) name" >>confdefs.h
  4287. ;;
  4288. "lower case, no underscore, extra underscore")
  4289. $as_echo "#define FC_FUNC(name,NAME) name" >>confdefs.h
  4290. $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
  4291. ;;
  4292. "lower case, underscore, no extra underscore")
  4293. $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
  4294. $as_echo "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
  4295. ;;
  4296. "lower case, underscore, extra underscore")
  4297. $as_echo "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
  4298. $as_echo "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
  4299. ;;
  4300. "upper case, no underscore, no extra underscore")
  4301. $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
  4302. $as_echo "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
  4303. ;;
  4304. "upper case, no underscore, extra underscore")
  4305. $as_echo "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
  4306. $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
  4307. ;;
  4308. "upper case, underscore, no extra underscore")
  4309. $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
  4310. $as_echo "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
  4311. ;;
  4312. "upper case, underscore, extra underscore")
  4313. $as_echo "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
  4314. $as_echo "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
  4315. ;;
  4316. *)
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
  4318. $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
  4319. ;;
  4320. esac
  4321. ac_ext=c
  4322. ac_cpp='$CPP $CPPFLAGS'
  4323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4326. FC="$OLDFC"
  4327. # CHECK THAT THE FORTRAN COMPILER CAN CORRECTLY PROCESS THESE DIRECTIVES
  4328. # IF NOT, USE THE EXTERNAL C PREPROCESSOR
  4329. OLDFC="$FC"
  4330. defineflag="-Daardvark"
  4331. if test "$OLDFC" = "xlf90"; then
  4332. defineflag="-WF,-Daardvark"
  4333. fi
  4334. if test "$OLDFC" = "frt"; then
  4335. defineflag="-Wp,-Daardvark"
  4336. fi
  4337. FC="$OLDFC"
  4338. # DEFINE VARIABLES ACCORDING TO OS AND COMPILER
  4339. echo "Hostname=$ac_hostname"
  4340. echo "Machine=$machinename"
  4341. echo "OS=$osname"
  4342. # CHECK OS NAME
  4343. if echo $osname | grep -i aix >/dev/null 2>&1; then
  4344. SYSDEF="AIX"
  4345. fi
  4346. if echo $osname | grep -i darwin >/dev/null 2>&1; then
  4347. SYSDEF="DARWIN"
  4348. fi
  4349. if echo $osname | grep -i unix_system_v >/dev/null 2>&1; then
  4350. SYSDEF="UNIXSYSTEMV"
  4351. fi
  4352. if echo $osname | grep -i irix >/dev/null 2>&1; then
  4353. SYSDEF="IRIX"
  4354. fi
  4355. if echo $osname | grep -i irix64 >/dev/null 2>&1; then
  4356. SYSDEF="IRIX64"
  4357. fi
  4358. if echo $osname | grep -i linux >/dev/null 2>&1; then
  4359. SYSDEF="LINUX"
  4360. fi
  4361. if echo $osname | grep -i osf1 >/dev/null 2>&1; then
  4362. SYSDEF="OSF1"
  4363. fi
  4364. if echo $osname | grep -i super >/dev/null 2>&1; then
  4365. SYSDEF="SUPERUX"
  4366. fi
  4367. if echo $osname | grep -i sun >/dev/null 2>&1; then
  4368. SYSDEF="SUNOS"
  4369. fi
  4370. if echo $osname | grep -i t3e >/dev/null 2>&1; then
  4371. SYSDEF="T3E"
  4372. fi
  4373. if echo $osname | grep -i unicos >/dev/null 2>&1; then
  4374. SYSDEF="UNICOS"
  4375. fi
  4376. if test -z "$SYSDEF"; then
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OPERATING SYSTEM UNKNOWN" >&5
  4378. $as_echo "$as_me: WARNING: OPERATING SYSTEM UNKNOWN" >&2;}
  4379. SYSDEF="UNKNOWNOS"
  4380. fi
  4381. # Set the default FCFLAGS for non-gfortran compilers.
  4382. # NOTE: This may change with a new version of autoconf.
  4383. DEFFCFLAGS="-g"
  4384. #####################################################
  4385. # CHECK COMPILER NAME and add specific flags
  4386. if echo $FC | grep xlf >/dev/null 2>&1; then
  4387. echo "Fortran Compiler is XLF"
  4388. CPRDEF="XLF"
  4389. if test -z "$REAL8"; then
  4390. REAL8="-qrealsize=8"
  4391. fi
  4392. if test -z "$OPT"; then
  4393. OPT="-O2 -qarch=auto"
  4394. fi
  4395. if test -z "$DEBUG"; then
  4396. DEBUG="-qdbg"
  4397. fi
  4398. if test "$FCFLAGS" = "$DEFFCFLAGS"; then
  4399. FCFLAGS=""
  4400. fi
  4401. elif echo $FC | grep pgf >/dev/null 2>&1; then
  4402. echo "Fortran Compiler is Portland Group"
  4403. CPRDEF="PGI"
  4404. if test -z "$REAL8"; then
  4405. REAL8="-r8"
  4406. fi
  4407. if test -z "$BIT64"; then
  4408. BIT64="-pc 64"
  4409. fi
  4410. if test "$FCFLAGS" = "$DEFFCFLAGS"; then
  4411. FCFLAGS=""
  4412. fi
  4413. if test -z "$ENDIAN"; then
  4414. ENDIAN="-byteswapio"
  4415. fi
  4416. if test -z "$OPT"; then
  4417. OPT="-O2"
  4418. fi
  4419. if test -z "$DEBUG"; then
  4420. DEBUG="-g"
  4421. fi
  4422. elif echo $FC | grep ftn >/dev/null 2>&1; then
  4423. if echo $ac_fc_version_output | grep -i Portland >/dev/null 2>&1; then
  4424. echo "Fortran Compiler is Portland Group, Cray"
  4425. CPRDEF="PGI"
  4426. SYSDEF="CNLINUX"
  4427. if test -z "$REAL8"; then
  4428. REAL8="-r8"
  4429. fi
  4430. if test -z "$BIT64"; then
  4431. BIT64="-pc 64"
  4432. fi
  4433. if test "$FCFLAGS" = "$DEFFCFLAGS"; then
  4434. FCFLAGS=""
  4435. fi
  4436. if test -z "$ENDIAN"; then
  4437. ENDIAN="-byteswapio"
  4438. fi
  4439. if test -z "$OPT"; then
  4440. OPT="-O2"
  4441. fi
  4442. if test -z "$DEBUG"; then
  4443. DEBUG="-g"
  4444. fi
  4445. fi
  4446. elif echo $FC | grep ifort >/dev/null 2>&1; then
  4447. echo "Fortran Compiler is Intel ifort"
  4448. CPRDEF="INTEL"
  4449. if test -z "$REAL8"; then
  4450. REAL8="-r8"
  4451. fi
  4452. if test "$FCFLAGS" = "$DEFFCFLAGS"; then
  4453. FCFLAGS="-w -ftz"
  4454. fi
  4455. if test -z "$PROGFCFLAGS"; then
  4456. PROGFCFLAGS="-assume byterecl"
  4457. fi
  4458. if test -z "$ENDIAN"; then
  4459. ENDIAN="-convert big_endian"
  4460. fi
  4461. if test -z "$OPT"; then
  4462. OPT="-O2"
  4463. fi
  4464. if test -z "$DEBUG"; then
  4465. DEBUG="-g"
  4466. fi
  4467. elif echo $FC | grep g95 >/dev/null 2>&1; then
  4468. echo "Fortran Compiler is GNU"
  4469. CPRDEF="GNU"
  4470. elif echo $FC | grep gfortran >/dev/null 2>&1; then
  4471. echo "Fortran Compiler is GNU"
  4472. CPRDEF="GNU"
  4473. # For gfortran, default flags are different
  4474. if test "$FCFLAGS" = "-g -O2"; then
  4475. FCFLAGS=""
  4476. fi
  4477. if test -z "$DEBUG"; then
  4478. DEBUG="-g"
  4479. fi
  4480. if test -z "$OPT"; then
  4481. OPT="-O2"
  4482. fi
  4483. ###########################################################
  4484. # the compiler flags below have not been verified recently
  4485. ###########################################################
  4486. elif echo $FC | grep frt >/dev/null 2>&1; then
  4487. echo "Fortran Compiler is UXP/V"
  4488. echo "Suggested additional vectorization flags: -Wv,-s5,-t3,-noalias,-ilfunc,-md"
  4489. CPRDEF="FUJITSU"
  4490. if test -z "$F90FLAGS"; then
  4491. F90FLAGS="-Am -X9"
  4492. fi
  4493. if test -z "$BIT64"; then
  4494. BIT64="-KA64"
  4495. fi
  4496. if test -z "$REAL8"; then
  4497. REAL8="-Ad"
  4498. fi
  4499. elif echo $ac_fc_version_output | grep Lahey >/dev/null 2>&1; then
  4500. echo "Fortran Compiler is Lahey"
  4501. CPRDEF="LAHEY"
  4502. elif echo $FC | grep ifc >/dev/null 2>&1; then
  4503. echo "Fortran Compiler is Intel 7.x or earlier"
  4504. echo "Intel ifc compiler must set the environment variable F_UFMTENDIAN=big to do endian conversion"
  4505. CPRDEF="INTEL"
  4506. if test -z "$REAL8"; then
  4507. REAL8="-r8"
  4508. fi
  4509. if test -z "$F90FLAGS"; then
  4510. F90FLAGS="-w"
  4511. fi
  4512. if test -z "$OPT"; then
  4513. OPT="-O2"
  4514. fi
  4515. elif echo $FC | grep efc >/dev/null 2>&1; then
  4516. echo "Fortran Compiler is Intel 7.x or earlier for IA-64"
  4517. echo "Intel efc compiler must set the environment variable F_UFMTENDIAN=big to do endian conversion"
  4518. CPRDEF="INTEL"
  4519. if test -z "$REAL8"; then
  4520. REAL8="-r8"
  4521. fi
  4522. if test -z "$F90FLAGS"; then
  4523. F90FLAGS="-w -ftz"
  4524. fi
  4525. if test -z "$OPT"; then
  4526. OPT="-O2"
  4527. fi
  4528. elif echo $FC | grep pathf90 >/dev/null 2>&1; then
  4529. echo "Fortran Compiler is PathScale"
  4530. CPRDEF="PATHSC"
  4531. if test -z "$REAL8"; then
  4532. REAL8="-r8"
  4533. fi
  4534. if test -z "$BIT64"; then
  4535. BIT64="-m64"
  4536. fi
  4537. if test -z "$OPT"; then
  4538. OPT="-O2"
  4539. fi
  4540. elif echo $ac_fc_version_output | grep -i nag >/dev/null 2>&1; then
  4541. echo "Fortran Compiler is NAG"
  4542. CPRDEF="NAG"
  4543. if test -z "$F90FLAGS"; then
  4544. F90FLAGS="-dusty -kind=byte"
  4545. fi
  4546. if test -z "$OPT"; then
  4547. OPT="-O2"
  4548. fi
  4549. elif echo $ac_fc_version_output | grep -i absoft >/dev/null 2>&1; then
  4550. echo "Fortran Compiler is Absoft"
  4551. CPRDEF="ABSOFT"
  4552. if test -z "$REAL8"; then
  4553. REAL8="-N113"
  4554. fi
  4555. if test -z "$INCLUDEFLAG"; then
  4556. INCLUDEFLAG="-p"
  4557. fi
  4558. if test -z "$OPT"; then
  4559. OPT="-O2"
  4560. fi
  4561. elif echo $ac_fc_version_output | grep -i workshop >/dev/null 2>&1; then
  4562. echo "Fortran Compiler is Workshop"
  4563. CPRDEF="WORKSHOP"
  4564. if test -z "$INCLUDEFLAG"; then
  4565. INCLUDEFLAG="-M"
  4566. fi
  4567. elif echo $ac_fc_version_output | grep -i mipspro >/dev/null 2>&1; then
  4568. echo "Fortran Compiler is MIPSPro"
  4569. CPRDEF="MIPSPRO"
  4570. EXTRACFLAGS="-64"
  4571. if test -z "$OPT"; then
  4572. OPT="-O3"
  4573. fi
  4574. if test -z "$REAL8"; then
  4575. REAL8="-r8"
  4576. fi
  4577. if test -z "$BIT64"; then
  4578. BIT64="-64"
  4579. fi
  4580. elif echo $ac_fc_version_output | grep -i compaq >/dev/null 2>&1; then
  4581. echo "Fortran Compiler is Compaq"
  4582. CPRDEF="COMPAQ"
  4583. MPILIBS="$MPILIBS -lelan"
  4584. if test -z "$OPT"; then
  4585. OPT="-fast"
  4586. fi
  4587. if test -z "$REAL8"; then
  4588. REAL8="-real_size 64"
  4589. fi
  4590. if test -z "$ENDIAN"; then
  4591. ENDIAN="-convert big_endian"
  4592. fi
  4593. # Compaq Fortran changed its name to HP Fortran.
  4594. # Lets support both versions for now.
  4595. elif echo $ac_fc_version_output | grep HP >/dev/null 2>&1; then
  4596. echo "Fortran Compiler is HP"
  4597. CPRDEF="COMPAQ"
  4598. MPILIBS="$MPILIBS -lelan"
  4599. if test -z "$OPT"; then
  4600. OPT="-fast"
  4601. fi
  4602. if test -z "$REAL8"; then
  4603. REAL8="-real_size 64"
  4604. fi
  4605. if test -z "$ENDIAN"; then
  4606. ENDIAN="-convert big_endian"
  4607. fi
  4608. elif echo $ac_fc_version_output | grep -i sx >/dev/null 2>&1; then
  4609. echo "Fortran Compiler is SX"
  4610. CPRDEF="SX"
  4611. if test -z "$F90FLAGS"; then
  4612. F90FLAGS="-EP -Wf'-pvctl noassoc'"
  4613. fi
  4614. if test -z "$OPT"; then
  4615. OPT="-Chopt"
  4616. fi
  4617. fi
  4618. ###########################################################
  4619. # END of compiler-specific flag setting
  4620. ###########################################################
  4621. CPPDEFS="$CPPDEFS -DSYS$SYSDEF -DCPR$CPRDEF"
  4622. if test -n "$SRKDEF"; then
  4623. CPPDEFS="$CPPDEFS -D$SRKDEF"
  4624. fi
  4625. # IF DEBUGGING ENABLED, DISABLE OPTIMIZATION FLAG
  4626. if test "$DEBUGGING" = "ENABLED"; then
  4627. OPT=""
  4628. else
  4629. DEBUG=""
  4630. fi
  4631. # SET HARDCODED VARIABLES AS A LAST RESORT
  4632. # ALWAYS ENABLE CRULE IN MAKEFILE
  4633. CRULE=.c.o
  4634. # INCLUDE FLAG IF NOT ALREADY SET IS MOST LIKELY -I
  4635. if test -z "$INCLUDEFLAG"; then
  4636. INCLUDEFLAG="-I"
  4637. fi
  4638. # ARCHIVE COMMAND SIMILAR ACROSS ALL PLATFORMS
  4639. if test -z "$AR"; then
  4640. AR="ar cq"
  4641. fi
  4642. echo
  4643. echo Output Variables: {CC=$CC} {CFLAGS=$CFLAGS} \
  4644. {FC=$FC} {FCFLAGS=$FCFLAGS} {PROGFCFLAGS=$PROGFCFLAGS}\
  4645. {CPPDEFS=$CPPDEFS} {OPT=$OPT} {DEBUG=$DEBUG} {REAL8=$REAL8} \
  4646. {BIT64=$BIT64} {ENDIAN=$ENDIAN} {MPIFC=$MPIFC} \
  4647. {MPILIBS=$MPILIBS} {MPIHEADER=$MPIHEADER} \
  4648. {INCLUDEFLAG=$INCLUDEFLAG} {INCLUDEPATH=$INCLUDEPATH} \
  4649. {AR=$AR} {BABELROOT=$BABELROOT} {COMPILER_ROOT=$COMPILER_ROOT} \
  4650. {PYTHON=$PYTHON} {PYTHONOPTS=$PYTHONOPTS} {FORT_SIZE=$FORT_SIZE} {prefix=$prefix} \
  4651. {SRCDIR=$SRCDIR} {FC_DEFINE=$FC_DEFINE}
  4652. echo
  4653. cat >confcache <<\_ACEOF
  4654. # This file is a shell script that caches the results of configure
  4655. # tests run on this system so they can be shared between configure
  4656. # scripts and configure runs, see configure's option --config-cache.
  4657. # It is not useful on other systems. If it contains results you don't
  4658. # want to keep, you may remove or edit it.
  4659. #
  4660. # config.status only pays attention to the cache file if you give it
  4661. # the --recheck option to rerun configure.
  4662. #
  4663. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4664. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4665. # following values.
  4666. _ACEOF
  4667. # The following way of writing the cache mishandles newlines in values,
  4668. # but we know of no workaround that is simple, portable, and efficient.
  4669. # So, we kill variables containing newlines.
  4670. # Ultrix sh set writes to stderr and can't be redirected directly,
  4671. # and sets the high bit in the cache file unless we assign to the vars.
  4672. (
  4673. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4674. eval ac_val=\$$ac_var
  4675. case $ac_val in #(
  4676. *${as_nl}*)
  4677. case $ac_var in #(
  4678. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4679. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4680. esac
  4681. case $ac_var in #(
  4682. _ | IFS | as_nl) ;; #(
  4683. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4684. *) { eval $ac_var=; unset $ac_var;} ;;
  4685. esac ;;
  4686. esac
  4687. done
  4688. (set) 2>&1 |
  4689. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4690. *${as_nl}ac_space=\ *)
  4691. # `set' does not quote correctly, so add quotes: double-quote
  4692. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4693. sed -n \
  4694. "s/'/'\\\\''/g;
  4695. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4696. ;; #(
  4697. *)
  4698. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4699. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4700. ;;
  4701. esac |
  4702. sort
  4703. ) |
  4704. sed '
  4705. /^ac_cv_env_/b end
  4706. t clear
  4707. :clear
  4708. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4709. t end
  4710. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4711. :end' >>confcache
  4712. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4713. if test -w "$cache_file"; then
  4714. test "x$cache_file" != "x/dev/null" &&
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4716. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4717. cat confcache >$cache_file
  4718. else
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4720. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4721. fi
  4722. fi
  4723. rm -f confcache
  4724. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4725. # Let make expand exec_prefix.
  4726. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4727. DEFS=-DHAVE_CONFIG_H
  4728. ac_libobjs=
  4729. ac_ltlibobjs=
  4730. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4731. # 1. Remove the extension, and $U if already installed.
  4732. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4733. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  4734. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4735. # will be set to the directory where LIBOBJS objects are built.
  4736. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4737. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4738. done
  4739. LIBOBJS=$ac_libobjs
  4740. LTLIBOBJS=$ac_ltlibobjs
  4741. : ${CONFIG_STATUS=./config.status}
  4742. ac_write_fail=0
  4743. ac_clean_files_save=$ac_clean_files
  4744. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4746. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4747. as_write_fail=0
  4748. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4749. #! $SHELL
  4750. # Generated by $as_me.
  4751. # Run this file to recreate the current configuration.
  4752. # Compiler output produced by configure, useful for debugging
  4753. # configure, is in config.log if it exists.
  4754. debug=false
  4755. ac_cs_recheck=false
  4756. ac_cs_silent=false
  4757. SHELL=\${CONFIG_SHELL-$SHELL}
  4758. export SHELL
  4759. _ASEOF
  4760. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4761. ## -------------------- ##
  4762. ## M4sh Initialization. ##
  4763. ## -------------------- ##
  4764. # Be more Bourne compatible
  4765. DUALCASE=1; export DUALCASE # for MKS sh
  4766. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  4767. emulate sh
  4768. NULLCMD=:
  4769. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4770. # is contrary to our usage. Disable this feature.
  4771. alias -g '${1+"$@"}'='"$@"'
  4772. setopt NO_GLOB_SUBST
  4773. else
  4774. case `(set -o) 2>/dev/null` in #(
  4775. *posix*) :
  4776. set -o posix ;; #(
  4777. *) :
  4778. ;;
  4779. esac
  4780. fi
  4781. as_nl='
  4782. '
  4783. export as_nl
  4784. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  4785. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4786. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  4787. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  4788. # Prefer a ksh shell builtin over an external printf program on Solaris,
  4789. # but without wasting forks for bash or zsh.
  4790. if test -z "$BASH_VERSION$ZSH_VERSION" \
  4791. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  4792. as_echo='print -r --'
  4793. as_echo_n='print -rn --'
  4794. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  4795. as_echo='printf %s\n'
  4796. as_echo_n='printf %s'
  4797. else
  4798. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  4799. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  4800. as_echo_n='/usr/ucb/echo -n'
  4801. else
  4802. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  4803. as_echo_n_body='eval
  4804. arg=$1;
  4805. case $arg in #(
  4806. *"$as_nl"*)
  4807. expr "X$arg" : "X\\(.*\\)$as_nl";
  4808. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  4809. esac;
  4810. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  4811. '
  4812. export as_echo_n_body
  4813. as_echo_n='sh -c $as_echo_n_body as_echo'
  4814. fi
  4815. export as_echo_body
  4816. as_echo='sh -c $as_echo_body as_echo'
  4817. fi
  4818. # The user is always right.
  4819. if test "${PATH_SEPARATOR+set}" != set; then
  4820. PATH_SEPARATOR=:
  4821. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  4822. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  4823. PATH_SEPARATOR=';'
  4824. }
  4825. fi
  4826. # IFS
  4827. # We need space, tab and new line, in precisely that order. Quoting is
  4828. # there to prevent editors from complaining about space-tab.
  4829. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  4830. # splitting by setting IFS to empty value.)
  4831. IFS=" "" $as_nl"
  4832. # Find who we are. Look in the path if we contain no directory separator.
  4833. case $0 in #((
  4834. *[\\/]* ) as_myself=$0 ;;
  4835. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4836. for as_dir in $PATH
  4837. do
  4838. IFS=$as_save_IFS
  4839. test -z "$as_dir" && as_dir=.
  4840. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4841. done
  4842. IFS=$as_save_IFS
  4843. ;;
  4844. esac
  4845. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4846. # in which case we are not to be found in the path.
  4847. if test "x$as_myself" = x; then
  4848. as_myself=$0
  4849. fi
  4850. if test ! -f "$as_myself"; then
  4851. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  4852. exit 1
  4853. fi
  4854. # Unset variables that we do not need and which cause bugs (e.g. in
  4855. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  4856. # suppresses any "Segmentation fault" message there. '((' could
  4857. # trigger a bug in pdksh 5.2.14.
  4858. for as_var in BASH_ENV ENV MAIL MAILPATH
  4859. do eval test x\${$as_var+set} = xset \
  4860. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  4861. done
  4862. PS1='$ '
  4863. PS2='> '
  4864. PS4='+ '
  4865. # NLS nuisances.
  4866. LC_ALL=C
  4867. export LC_ALL
  4868. LANGUAGE=C
  4869. export LANGUAGE
  4870. # CDPATH.
  4871. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4872. # as_fn_error ERROR [LINENO LOG_FD]
  4873. # ---------------------------------
  4874. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  4875. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  4876. # script with status $?, using 1 if that was 0.
  4877. as_fn_error ()
  4878. {
  4879. as_status=$?; test $as_status -eq 0 && as_status=1
  4880. if test "$3"; then
  4881. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  4882. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  4883. fi
  4884. $as_echo "$as_me: error: $1" >&2
  4885. as_fn_exit $as_status
  4886. } # as_fn_error
  4887. # as_fn_set_status STATUS
  4888. # -----------------------
  4889. # Set $? to STATUS, without forking.
  4890. as_fn_set_status ()
  4891. {
  4892. return $1
  4893. } # as_fn_set_status
  4894. # as_fn_exit STATUS
  4895. # -----------------
  4896. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4897. as_fn_exit ()
  4898. {
  4899. set +e
  4900. as_fn_set_status $1
  4901. exit $1
  4902. } # as_fn_exit
  4903. # as_fn_unset VAR
  4904. # ---------------
  4905. # Portably unset VAR.
  4906. as_fn_unset ()
  4907. {
  4908. { eval $1=; unset $1;}
  4909. }
  4910. as_unset=as_fn_unset
  4911. # as_fn_append VAR VALUE
  4912. # ----------------------
  4913. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4914. # advantage of any shell optimizations that allow amortized linear growth over
  4915. # repeated appends, instead of the typical quadratic growth present in naive
  4916. # implementations.
  4917. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  4918. eval 'as_fn_append ()
  4919. {
  4920. eval $1+=\$2
  4921. }'
  4922. else
  4923. as_fn_append ()
  4924. {
  4925. eval $1=\$$1\$2
  4926. }
  4927. fi # as_fn_append
  4928. # as_fn_arith ARG...
  4929. # ------------------
  4930. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4931. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4932. # must be portable across $(()) and expr.
  4933. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  4934. eval 'as_fn_arith ()
  4935. {
  4936. as_val=$(( $* ))
  4937. }'
  4938. else
  4939. as_fn_arith ()
  4940. {
  4941. as_val=`expr "$@" || test $? -eq 1`
  4942. }
  4943. fi # as_fn_arith
  4944. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4945. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4946. as_expr=expr
  4947. else
  4948. as_expr=false
  4949. fi
  4950. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4951. as_basename=basename
  4952. else
  4953. as_basename=false
  4954. fi
  4955. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4956. as_dirname=dirname
  4957. else
  4958. as_dirname=false
  4959. fi
  4960. as_me=`$as_basename -- "$0" ||
  4961. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4962. X"$0" : 'X\(//\)$' \| \
  4963. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4964. $as_echo X/"$0" |
  4965. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4966. s//\1/
  4967. q
  4968. }
  4969. /^X\/\(\/\/\)$/{
  4970. s//\1/
  4971. q
  4972. }
  4973. /^X\/\(\/\).*/{
  4974. s//\1/
  4975. q
  4976. }
  4977. s/.*/./; q'`
  4978. # Avoid depending upon Character Ranges.
  4979. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4980. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4981. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4982. as_cr_digits='0123456789'
  4983. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4984. ECHO_C= ECHO_N= ECHO_T=
  4985. case `echo -n x` in #(((((
  4986. -n*)
  4987. case `echo 'xy\c'` in
  4988. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4989. xy) ECHO_C='\c';;
  4990. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4991. ECHO_T=' ';;
  4992. esac;;
  4993. *)
  4994. ECHO_N='-n';;
  4995. esac
  4996. rm -f conf$$ conf$$.exe conf$$.file
  4997. if test -d conf$$.dir; then
  4998. rm -f conf$$.dir/conf$$.file
  4999. else
  5000. rm -f conf$$.dir
  5001. mkdir conf$$.dir 2>/dev/null
  5002. fi
  5003. if (echo >conf$$.file) 2>/dev/null; then
  5004. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5005. as_ln_s='ln -s'
  5006. # ... but there are two gotchas:
  5007. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5008. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5009. # In both cases, we have to default to `cp -p'.
  5010. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5011. as_ln_s='cp -p'
  5012. elif ln conf$$.file conf$$ 2>/dev/null; then
  5013. as_ln_s=ln
  5014. else
  5015. as_ln_s='cp -p'
  5016. fi
  5017. else
  5018. as_ln_s='cp -p'
  5019. fi
  5020. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5021. rmdir conf$$.dir 2>/dev/null
  5022. # as_fn_mkdir_p
  5023. # -------------
  5024. # Create "$as_dir" as a directory, including parents if necessary.
  5025. as_fn_mkdir_p ()
  5026. {
  5027. case $as_dir in #(
  5028. -*) as_dir=./$as_dir;;
  5029. esac
  5030. test -d "$as_dir" || eval $as_mkdir_p || {
  5031. as_dirs=
  5032. while :; do
  5033. case $as_dir in #(
  5034. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5035. *) as_qdir=$as_dir;;
  5036. esac
  5037. as_dirs="'$as_qdir' $as_dirs"
  5038. as_dir=`$as_dirname -- "$as_dir" ||
  5039. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5040. X"$as_dir" : 'X\(//\)[^/]' \| \
  5041. X"$as_dir" : 'X\(//\)$' \| \
  5042. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5043. $as_echo X"$as_dir" |
  5044. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5045. s//\1/
  5046. q
  5047. }
  5048. /^X\(\/\/\)[^/].*/{
  5049. s//\1/
  5050. q
  5051. }
  5052. /^X\(\/\/\)$/{
  5053. s//\1/
  5054. q
  5055. }
  5056. /^X\(\/\).*/{
  5057. s//\1/
  5058. q
  5059. }
  5060. s/.*/./; q'`
  5061. test -d "$as_dir" && break
  5062. done
  5063. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5064. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  5065. } # as_fn_mkdir_p
  5066. if mkdir -p . 2>/dev/null; then
  5067. as_mkdir_p='mkdir -p "$as_dir"'
  5068. else
  5069. test -d ./-p && rmdir ./-p
  5070. as_mkdir_p=false
  5071. fi
  5072. if test -x / >/dev/null 2>&1; then
  5073. as_test_x='test -x'
  5074. else
  5075. if ls -dL / >/dev/null 2>&1; then
  5076. as_ls_L_option=L
  5077. else
  5078. as_ls_L_option=
  5079. fi
  5080. as_test_x='
  5081. eval sh -c '\''
  5082. if test -d "$1"; then
  5083. test -d "$1/.";
  5084. else
  5085. case $1 in #(
  5086. -*)set "./$1";;
  5087. esac;
  5088. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  5089. ???[sx]*):;;*)false;;esac;fi
  5090. '\'' sh
  5091. '
  5092. fi
  5093. as_executable_p=$as_test_x
  5094. # Sed expression to map a string onto a valid CPP name.
  5095. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5096. # Sed expression to map a string onto a valid variable name.
  5097. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5098. exec 6>&1
  5099. ## ----------------------------------- ##
  5100. ## Main body of $CONFIG_STATUS script. ##
  5101. ## ----------------------------------- ##
  5102. _ASEOF
  5103. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5104. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5105. # Save the log message, to keep $0 and so on meaningful, and to
  5106. # report actual input values of CONFIG_FILES etc. instead of their
  5107. # values after options handling.
  5108. ac_log="
  5109. This file was extended by MCT $as_me 2.8, which was
  5110. generated by GNU Autoconf 2.65. Invocation command line was
  5111. CONFIG_FILES = $CONFIG_FILES
  5112. CONFIG_HEADERS = $CONFIG_HEADERS
  5113. CONFIG_LINKS = $CONFIG_LINKS
  5114. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5115. $ $0 $@
  5116. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5117. "
  5118. _ACEOF
  5119. case $ac_config_files in *"
  5120. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5121. esac
  5122. case $ac_config_headers in *"
  5123. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5124. esac
  5125. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5126. # Files that config.status was made for.
  5127. config_files="$ac_config_files"
  5128. config_headers="$ac_config_headers"
  5129. _ACEOF
  5130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5131. ac_cs_usage="\
  5132. \`$as_me' instantiates files and other configuration actions
  5133. from templates according to the current configuration. Unless the files
  5134. and actions are specified as TAGs, all are instantiated by default.
  5135. Usage: $0 [OPTION]... [TAG]...
  5136. -h, --help print this help, then exit
  5137. -V, --version print version number and configuration settings, then exit
  5138. --config print configuration, then exit
  5139. -q, --quiet, --silent
  5140. do not print progress messages
  5141. -d, --debug don't remove temporary files
  5142. --recheck update $as_me by reconfiguring in the same conditions
  5143. --file=FILE[:TEMPLATE]
  5144. instantiate the configuration file FILE
  5145. --header=FILE[:TEMPLATE]
  5146. instantiate the configuration header FILE
  5147. Configuration files:
  5148. $config_files
  5149. Configuration headers:
  5150. $config_headers
  5151. Report bugs to the package provider."
  5152. _ACEOF
  5153. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5154. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  5155. ac_cs_version="\\
  5156. MCT config.status 2.8
  5157. configured by $0, generated by GNU Autoconf 2.65,
  5158. with options \\"\$ac_cs_config\\"
  5159. Copyright (C) 2009 Free Software Foundation, Inc.
  5160. This config.status script is free software; the Free Software Foundation
  5161. gives unlimited permission to copy, distribute and modify it."
  5162. ac_pwd='$ac_pwd'
  5163. srcdir='$srcdir'
  5164. test -n "\$AWK" || AWK=awk
  5165. _ACEOF
  5166. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5167. # The default lists apply if the user does not specify any file.
  5168. ac_need_defaults=:
  5169. while test $# != 0
  5170. do
  5171. case $1 in
  5172. --*=*)
  5173. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5174. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5175. ac_shift=:
  5176. ;;
  5177. *)
  5178. ac_option=$1
  5179. ac_optarg=$2
  5180. ac_shift=shift
  5181. ;;
  5182. esac
  5183. case $ac_option in
  5184. # Handling of the options.
  5185. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5186. ac_cs_recheck=: ;;
  5187. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5188. $as_echo "$ac_cs_version"; exit ;;
  5189. --config | --confi | --conf | --con | --co | --c )
  5190. $as_echo "$ac_cs_config"; exit ;;
  5191. --debug | --debu | --deb | --de | --d | -d )
  5192. debug=: ;;
  5193. --file | --fil | --fi | --f )
  5194. $ac_shift
  5195. case $ac_optarg in
  5196. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5197. esac
  5198. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5199. ac_need_defaults=false;;
  5200. --header | --heade | --head | --hea )
  5201. $ac_shift
  5202. case $ac_optarg in
  5203. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5204. esac
  5205. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5206. ac_need_defaults=false;;
  5207. --he | --h)
  5208. # Conflict between --help and --header
  5209. as_fn_error "ambiguous option: \`$1'
  5210. Try \`$0 --help' for more information.";;
  5211. --help | --hel | -h )
  5212. $as_echo "$ac_cs_usage"; exit ;;
  5213. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5214. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5215. ac_cs_silent=: ;;
  5216. # This is an error.
  5217. -*) as_fn_error "unrecognized option: \`$1'
  5218. Try \`$0 --help' for more information." ;;
  5219. *) as_fn_append ac_config_targets " $1"
  5220. ac_need_defaults=false ;;
  5221. esac
  5222. shift
  5223. done
  5224. ac_configure_extra_args=
  5225. if $ac_cs_silent; then
  5226. exec 6>/dev/null
  5227. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5228. fi
  5229. _ACEOF
  5230. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5231. if \$ac_cs_recheck; then
  5232. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5233. shift
  5234. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  5235. CONFIG_SHELL='$SHELL'
  5236. export CONFIG_SHELL
  5237. exec "\$@"
  5238. fi
  5239. _ACEOF
  5240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5241. exec 5>>config.log
  5242. {
  5243. echo
  5244. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5245. ## Running $as_me. ##
  5246. _ASBOX
  5247. $as_echo "$ac_log"
  5248. } >&5
  5249. _ACEOF
  5250. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5251. _ACEOF
  5252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5253. # Handling of arguments.
  5254. for ac_config_target in $ac_config_targets
  5255. do
  5256. case $ac_config_target in
  5257. "Makefile.conf") CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;;
  5258. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5259. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5260. esac
  5261. done
  5262. # If the user did not use the arguments to specify the items to instantiate,
  5263. # then the envvar interface is used. Set only those that are not.
  5264. # We use the long form for the default assignment because of an extremely
  5265. # bizarre bug on SunOS 4.1.3.
  5266. if $ac_need_defaults; then
  5267. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5268. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5269. fi
  5270. # Have a temporary directory for convenience. Make it in the build tree
  5271. # simply because there is no reason against having it here, and in addition,
  5272. # creating and moving files from /tmp can sometimes cause problems.
  5273. # Hook for its removal unless debugging.
  5274. # Note that there is a small window in which the directory will not be cleaned:
  5275. # after its creation but before its name has been assigned to `$tmp'.
  5276. $debug ||
  5277. {
  5278. tmp=
  5279. trap 'exit_status=$?
  5280. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  5281. ' 0
  5282. trap 'as_fn_exit 1' 1 2 13 15
  5283. }
  5284. # Create a (secure) tmp directory for tmp files.
  5285. {
  5286. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5287. test -n "$tmp" && test -d "$tmp"
  5288. } ||
  5289. {
  5290. tmp=./conf$$-$RANDOM
  5291. (umask 077 && mkdir "$tmp")
  5292. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  5293. # Set up the scripts for CONFIG_FILES section.
  5294. # No need to generate them if there are no CONFIG_FILES.
  5295. # This happens for instance with `./config.status config.h'.
  5296. if test -n "$CONFIG_FILES"; then
  5297. ac_cr=`echo X | tr X '\015'`
  5298. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5299. # But we know of no other shell where ac_cr would be empty at this
  5300. # point, so we can use a bashism as a fallback.
  5301. if test "x$ac_cr" = x; then
  5302. eval ac_cr=\$\'\\r\'
  5303. fi
  5304. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5305. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5306. ac_cs_awk_cr='\r'
  5307. else
  5308. ac_cs_awk_cr=$ac_cr
  5309. fi
  5310. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  5311. _ACEOF
  5312. {
  5313. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5314. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5315. echo "_ACEOF"
  5316. } >conf$$subs.sh ||
  5317. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5318. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  5319. ac_delim='%!_!# '
  5320. for ac_last_try in false false false false false :; do
  5321. . ./conf$$subs.sh ||
  5322. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5323. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5324. if test $ac_delim_n = $ac_delim_num; then
  5325. break
  5326. elif $ac_last_try; then
  5327. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  5328. else
  5329. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5330. fi
  5331. done
  5332. rm -f conf$$subs.sh
  5333. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5334. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  5335. _ACEOF
  5336. sed -n '
  5337. h
  5338. s/^/S["/; s/!.*/"]=/
  5339. p
  5340. g
  5341. s/^[^!]*!//
  5342. :repl
  5343. t repl
  5344. s/'"$ac_delim"'$//
  5345. t delim
  5346. :nl
  5347. h
  5348. s/\(.\{148\}\)..*/\1/
  5349. t more1
  5350. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5351. p
  5352. n
  5353. b repl
  5354. :more1
  5355. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5356. p
  5357. g
  5358. s/.\{148\}//
  5359. t nl
  5360. :delim
  5361. h
  5362. s/\(.\{148\}\)..*/\1/
  5363. t more2
  5364. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5365. p
  5366. b
  5367. :more2
  5368. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5369. p
  5370. g
  5371. s/.\{148\}//
  5372. t delim
  5373. ' <conf$$subs.awk | sed '
  5374. /^[^""]/{
  5375. N
  5376. s/\n//
  5377. }
  5378. ' >>$CONFIG_STATUS || ac_write_fail=1
  5379. rm -f conf$$subs.awk
  5380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5381. _ACAWK
  5382. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  5383. for (key in S) S_is_set[key] = 1
  5384. FS = ""
  5385. }
  5386. {
  5387. line = $ 0
  5388. nfields = split(line, field, "@")
  5389. substed = 0
  5390. len = length(field[1])
  5391. for (i = 2; i < nfields; i++) {
  5392. key = field[i]
  5393. keylen = length(key)
  5394. if (S_is_set[key]) {
  5395. value = S[key]
  5396. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5397. len += length(value) + length(field[++i])
  5398. substed = 1
  5399. } else
  5400. len += 1 + keylen
  5401. }
  5402. print line
  5403. }
  5404. _ACAWK
  5405. _ACEOF
  5406. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5407. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5408. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5409. else
  5410. cat
  5411. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  5412. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  5413. _ACEOF
  5414. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5415. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5416. # trailing colons and then remove the whole line if VPATH becomes empty
  5417. # (actually we leave an empty line to preserve line numbers).
  5418. if test "x$srcdir" = x.; then
  5419. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5420. s/:*\$(srcdir):*/:/
  5421. s/:*\${srcdir}:*/:/
  5422. s/:*@srcdir@:*/:/
  5423. s/^\([^=]*=[ ]*\):*/\1/
  5424. s/:*$//
  5425. s/^[^=]*=[ ]*$//
  5426. }'
  5427. fi
  5428. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5429. fi # test -n "$CONFIG_FILES"
  5430. # Set up the scripts for CONFIG_HEADERS section.
  5431. # No need to generate them if there are no CONFIG_HEADERS.
  5432. # This happens for instance with `./config.status Makefile'.
  5433. if test -n "$CONFIG_HEADERS"; then
  5434. cat >"$tmp/defines.awk" <<\_ACAWK ||
  5435. BEGIN {
  5436. _ACEOF
  5437. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5438. # here-document in config.status, that substitutes the proper values into
  5439. # config.h.in to produce config.h.
  5440. # Create a delimiter string that does not exist in confdefs.h, to ease
  5441. # handling of long lines.
  5442. ac_delim='%!_!# '
  5443. for ac_last_try in false false :; do
  5444. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  5445. if test -z "$ac_t"; then
  5446. break
  5447. elif $ac_last_try; then
  5448. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  5449. else
  5450. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5451. fi
  5452. done
  5453. # For the awk script, D is an array of macro values keyed by name,
  5454. # likewise P contains macro parameters if any. Preserve backslash
  5455. # newline sequences.
  5456. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5457. sed -n '
  5458. s/.\{148\}/&'"$ac_delim"'/g
  5459. t rset
  5460. :rset
  5461. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5462. t def
  5463. d
  5464. :def
  5465. s/\\$//
  5466. t bsnl
  5467. s/["\\]/\\&/g
  5468. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5469. D["\1"]=" \3"/p
  5470. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5471. d
  5472. :bsnl
  5473. s/["\\]/\\&/g
  5474. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5475. D["\1"]=" \3\\\\\\n"\\/p
  5476. t cont
  5477. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5478. t cont
  5479. d
  5480. :cont
  5481. n
  5482. s/.\{148\}/&'"$ac_delim"'/g
  5483. t clear
  5484. :clear
  5485. s/\\$//
  5486. t bsnlc
  5487. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5488. d
  5489. :bsnlc
  5490. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5491. b cont
  5492. ' <confdefs.h | sed '
  5493. s/'"$ac_delim"'/"\\\
  5494. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5496. for (key in D) D_is_set[key] = 1
  5497. FS = ""
  5498. }
  5499. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5500. line = \$ 0
  5501. split(line, arg, " ")
  5502. if (arg[1] == "#") {
  5503. defundef = arg[2]
  5504. mac1 = arg[3]
  5505. } else {
  5506. defundef = substr(arg[1], 2)
  5507. mac1 = arg[2]
  5508. }
  5509. split(mac1, mac2, "(") #)
  5510. macro = mac2[1]
  5511. prefix = substr(line, 1, index(line, defundef) - 1)
  5512. if (D_is_set[macro]) {
  5513. # Preserve the white space surrounding the "#".
  5514. print prefix "define", macro P[macro] D[macro]
  5515. next
  5516. } else {
  5517. # Replace #undef with comments. This is necessary, for example,
  5518. # in the case of _POSIX_SOURCE, which is predefined and required
  5519. # on some systems where configure will not decide to define it.
  5520. if (defundef == "undef") {
  5521. print "/*", prefix defundef, macro, "*/"
  5522. next
  5523. }
  5524. }
  5525. }
  5526. { print }
  5527. _ACAWK
  5528. _ACEOF
  5529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5530. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  5531. fi # test -n "$CONFIG_HEADERS"
  5532. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5533. shift
  5534. for ac_tag
  5535. do
  5536. case $ac_tag in
  5537. :[FHLC]) ac_mode=$ac_tag; continue;;
  5538. esac
  5539. case $ac_mode$ac_tag in
  5540. :[FHL]*:*);;
  5541. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5542. :[FH]-) ac_tag=-:-;;
  5543. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5544. esac
  5545. ac_save_IFS=$IFS
  5546. IFS=:
  5547. set x $ac_tag
  5548. IFS=$ac_save_IFS
  5549. shift
  5550. ac_file=$1
  5551. shift
  5552. case $ac_mode in
  5553. :L) ac_source=$1;;
  5554. :[FH])
  5555. ac_file_inputs=
  5556. for ac_f
  5557. do
  5558. case $ac_f in
  5559. -) ac_f="$tmp/stdin";;
  5560. *) # Look for the file first in the build tree, then in the source tree
  5561. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5562. # because $ac_f cannot contain `:'.
  5563. test -f "$ac_f" ||
  5564. case $ac_f in
  5565. [\\/$]*) false;;
  5566. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5567. esac ||
  5568. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5569. esac
  5570. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5571. as_fn_append ac_file_inputs " '$ac_f'"
  5572. done
  5573. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5574. # use $as_me), people would be surprised to read:
  5575. # /* config.h. Generated by config.status. */
  5576. configure_input='Generated from '`
  5577. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5578. `' by configure.'
  5579. if test x"$ac_file" != x-; then
  5580. configure_input="$ac_file. $configure_input"
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5582. $as_echo "$as_me: creating $ac_file" >&6;}
  5583. fi
  5584. # Neutralize special characters interpreted by sed in replacement strings.
  5585. case $configure_input in #(
  5586. *\&* | *\|* | *\\* )
  5587. ac_sed_conf_input=`$as_echo "$configure_input" |
  5588. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5589. *) ac_sed_conf_input=$configure_input;;
  5590. esac
  5591. case $ac_tag in
  5592. *:-:* | *:-) cat >"$tmp/stdin" \
  5593. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  5594. esac
  5595. ;;
  5596. esac
  5597. ac_dir=`$as_dirname -- "$ac_file" ||
  5598. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5599. X"$ac_file" : 'X\(//\)[^/]' \| \
  5600. X"$ac_file" : 'X\(//\)$' \| \
  5601. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5602. $as_echo X"$ac_file" |
  5603. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5604. s//\1/
  5605. q
  5606. }
  5607. /^X\(\/\/\)[^/].*/{
  5608. s//\1/
  5609. q
  5610. }
  5611. /^X\(\/\/\)$/{
  5612. s//\1/
  5613. q
  5614. }
  5615. /^X\(\/\).*/{
  5616. s//\1/
  5617. q
  5618. }
  5619. s/.*/./; q'`
  5620. as_dir="$ac_dir"; as_fn_mkdir_p
  5621. ac_builddir=.
  5622. case "$ac_dir" in
  5623. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5624. *)
  5625. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  5626. # A ".." for each directory in $ac_dir_suffix.
  5627. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5628. case $ac_top_builddir_sub in
  5629. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5630. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5631. esac ;;
  5632. esac
  5633. ac_abs_top_builddir=$ac_pwd
  5634. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5635. # for backward compatibility:
  5636. ac_top_builddir=$ac_top_build_prefix
  5637. case $srcdir in
  5638. .) # We are building in place.
  5639. ac_srcdir=.
  5640. ac_top_srcdir=$ac_top_builddir_sub
  5641. ac_abs_top_srcdir=$ac_pwd ;;
  5642. [\\/]* | ?:[\\/]* ) # Absolute name.
  5643. ac_srcdir=$srcdir$ac_dir_suffix;
  5644. ac_top_srcdir=$srcdir
  5645. ac_abs_top_srcdir=$srcdir ;;
  5646. *) # Relative name.
  5647. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5648. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5649. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5650. esac
  5651. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5652. case $ac_mode in
  5653. :F)
  5654. #
  5655. # CONFIG_FILE
  5656. #
  5657. _ACEOF
  5658. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5659. # If the template does not know about datarootdir, expand it.
  5660. # FIXME: This hack should be removed a few years after 2.60.
  5661. ac_datarootdir_hack=; ac_datarootdir_seen=
  5662. ac_sed_dataroot='
  5663. /datarootdir/ {
  5664. p
  5665. q
  5666. }
  5667. /@datadir@/p
  5668. /@docdir@/p
  5669. /@infodir@/p
  5670. /@localedir@/p
  5671. /@mandir@/p'
  5672. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5673. *datarootdir*) ac_datarootdir_seen=yes;;
  5674. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5676. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5677. _ACEOF
  5678. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5679. ac_datarootdir_hack='
  5680. s&@datadir@&$datadir&g
  5681. s&@docdir@&$docdir&g
  5682. s&@infodir@&$infodir&g
  5683. s&@localedir@&$localedir&g
  5684. s&@mandir@&$mandir&g
  5685. s&\\\${datarootdir}&$datarootdir&g' ;;
  5686. esac
  5687. _ACEOF
  5688. # Neutralize VPATH when `$srcdir' = `.'.
  5689. # Shell code in configure.ac might set extrasub.
  5690. # FIXME: do we really want to maintain this feature?
  5691. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5692. ac_sed_extra="$ac_vpsub
  5693. $extrasub
  5694. _ACEOF
  5695. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5696. :t
  5697. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5698. s|@configure_input@|$ac_sed_conf_input|;t t
  5699. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5700. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5701. s&@srcdir@&$ac_srcdir&;t t
  5702. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5703. s&@top_srcdir@&$ac_top_srcdir&;t t
  5704. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5705. s&@builddir@&$ac_builddir&;t t
  5706. s&@abs_builddir@&$ac_abs_builddir&;t t
  5707. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5708. $ac_datarootdir_hack
  5709. "
  5710. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  5711. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5712. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5713. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  5714. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5716. which seems to be undefined. Please make sure it is defined." >&5
  5717. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5718. which seems to be undefined. Please make sure it is defined." >&2;}
  5719. rm -f "$tmp/stdin"
  5720. case $ac_file in
  5721. -) cat "$tmp/out" && rm -f "$tmp/out";;
  5722. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  5723. esac \
  5724. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5725. ;;
  5726. :H)
  5727. #
  5728. # CONFIG_HEADER
  5729. #
  5730. if test x"$ac_file" != x-; then
  5731. {
  5732. $as_echo "/* $configure_input */" \
  5733. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  5734. } >"$tmp/config.h" \
  5735. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5736. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5738. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  5739. else
  5740. rm -f "$ac_file"
  5741. mv "$tmp/config.h" "$ac_file" \
  5742. || as_fn_error "could not create $ac_file" "$LINENO" 5
  5743. fi
  5744. else
  5745. $as_echo "/* $configure_input */" \
  5746. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  5747. || as_fn_error "could not create -" "$LINENO" 5
  5748. fi
  5749. ;;
  5750. esac
  5751. done # for ac_tag
  5752. as_fn_exit 0
  5753. _ACEOF
  5754. ac_clean_files=$ac_clean_files_save
  5755. test $ac_write_fail = 0 ||
  5756. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5757. # configure is writing to config.log, and then calls config.status.
  5758. # config.status does its own redirection, appending to config.log.
  5759. # Unfortunately, on DOS this fails, as config.log is still kept open
  5760. # by configure, so config.status won't be able to write to it; its
  5761. # output is simply discarded. So we exec the FD to /dev/null,
  5762. # effectively closing config.log, so it can be properly (re)opened and
  5763. # appended to by config.status. When coming back to configure, we
  5764. # need to make the FD available again.
  5765. if test "$no_create" != yes; then
  5766. ac_cs_success=:
  5767. ac_config_status_args=
  5768. test "$silent" = yes &&
  5769. ac_config_status_args="$ac_config_status_args --quiet"
  5770. exec 5>/dev/null
  5771. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5772. exec 5>>config.log
  5773. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5774. # would make configure fail if this is the last instruction.
  5775. $ac_cs_success || as_fn_exit $?
  5776. fi
  5777. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5779. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  5780. fi
  5781. echo Please check the Makefile.conf
  5782. echo Have a nice day!
  5783. # test -z is true for empty strings
  5784. # test -n is true for non-empty strings