You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 552KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for PostgreSQL 12devel.
  4. #
  5. # Report bugs to <pgsql-bugs@postgresql.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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. # Copyright (c) 1996-2019, PostgreSQL Global Development Group
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. # Use a proper internal environment variable to ensure we don't fall
  128. # into an infinite loop, continuously re-executing ourselves.
  129. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  130. _as_can_reexec=no; export _as_can_reexec;
  131. # We cannot yet assume a decent shell, so we have to provide a
  132. # neutralization value for shells without unset; and this also
  133. # works around shells that cannot unset nonexistent variables.
  134. # Preserve -v and -x to the replacement shell.
  135. BASH_ENV=/dev/null
  136. ENV=/dev/null
  137. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  138. case $- in # ((((
  139. *v*x* | *x*v* ) as_opts=-vx ;;
  140. *v* ) as_opts=-v ;;
  141. *x* ) as_opts=-x ;;
  142. * ) as_opts= ;;
  143. esac
  144. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  145. # Admittedly, this is quite paranoid, since all the known shells bail
  146. # out after a failed `exec'.
  147. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  148. as_fn_exit 255
  149. fi
  150. # We don't want this to propagate to other subprocesses.
  151. { _as_can_reexec=; unset _as_can_reexec;}
  152. if test "x$CONFIG_SHELL" = x; then
  153. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  154. emulate sh
  155. NULLCMD=:
  156. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  157. # is contrary to our usage. Disable this feature.
  158. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  159. setopt NO_GLOB_SUBST
  160. else
  161. case \`(set -o) 2>/dev/null\` in #(
  162. *posix*) :
  163. set -o posix ;; #(
  164. *) :
  165. ;;
  166. esac
  167. fi
  168. "
  169. as_required="as_fn_return () { (exit \$1); }
  170. as_fn_success () { as_fn_return 0; }
  171. as_fn_failure () { as_fn_return 1; }
  172. as_fn_ret_success () { return 0; }
  173. as_fn_ret_failure () { return 1; }
  174. exitcode=0
  175. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  176. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  177. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  178. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  179. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  180. else
  181. exitcode=1; echo positional parameters were not saved.
  182. fi
  183. test x\$exitcode = x0 || exit 1
  184. test -x / || exit 1"
  185. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  186. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  187. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  188. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  189. test \$(( 1 + 1 )) = 2 || exit 1"
  190. if (eval "$as_required") 2>/dev/null; then :
  191. as_have_required=yes
  192. else
  193. as_have_required=no
  194. fi
  195. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  196. else
  197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  198. as_found=false
  199. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  200. do
  201. IFS=$as_save_IFS
  202. test -z "$as_dir" && as_dir=.
  203. as_found=:
  204. case $as_dir in #(
  205. /*)
  206. for as_base in sh bash ksh sh5; do
  207. # Try only shells that exist, to save several forks.
  208. as_shell=$as_dir/$as_base
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. CONFIG_SHELL=$as_shell as_have_required=yes
  212. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  213. break 2
  214. fi
  215. fi
  216. done;;
  217. esac
  218. as_found=false
  219. done
  220. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  221. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi; }
  224. IFS=$as_save_IFS
  225. if test "x$CONFIG_SHELL" != x; then :
  226. export CONFIG_SHELL
  227. # We cannot yet assume a decent shell, so we have to provide a
  228. # neutralization value for shells without unset; and this also
  229. # works around shells that cannot unset nonexistent variables.
  230. # Preserve -v and -x to the replacement shell.
  231. BASH_ENV=/dev/null
  232. ENV=/dev/null
  233. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  234. case $- in # ((((
  235. *v*x* | *x*v* ) as_opts=-vx ;;
  236. *v* ) as_opts=-v ;;
  237. *x* ) as_opts=-x ;;
  238. * ) as_opts= ;;
  239. esac
  240. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  241. # Admittedly, this is quite paranoid, since all the known shells bail
  242. # out after a failed `exec'.
  243. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  244. exit 255
  245. fi
  246. if test x$as_have_required = xno; then :
  247. $as_echo "$0: This script requires a shell more modern than all"
  248. $as_echo "$0: the shells that I found on your system."
  249. if test x${ZSH_VERSION+set} = xset ; then
  250. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  254. $0: pgsql-bugs@postgresql.org about your system, including
  255. $0: any error possibly output before this message. Then
  256. $0: install a modern shell, or manually run the script
  257. $0: under such a shell if you do have one."
  258. fi
  259. exit 1
  260. fi
  261. fi
  262. fi
  263. SHELL=${CONFIG_SHELL-/bin/sh}
  264. export SHELL
  265. # Unset more variables known to interfere with behavior of common tools.
  266. CLICOLOR_FORCE= GREP_OPTIONS=
  267. unset CLICOLOR_FORCE GREP_OPTIONS
  268. ## --------------------- ##
  269. ## M4sh Shell Functions. ##
  270. ## --------------------- ##
  271. # as_fn_unset VAR
  272. # ---------------
  273. # Portably unset VAR.
  274. as_fn_unset ()
  275. {
  276. { eval $1=; unset $1;}
  277. }
  278. as_unset=as_fn_unset
  279. # as_fn_set_status STATUS
  280. # -----------------------
  281. # Set $? to STATUS, without forking.
  282. as_fn_set_status ()
  283. {
  284. return $1
  285. } # as_fn_set_status
  286. # as_fn_exit STATUS
  287. # -----------------
  288. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  289. as_fn_exit ()
  290. {
  291. set +e
  292. as_fn_set_status $1
  293. exit $1
  294. } # as_fn_exit
  295. # as_fn_mkdir_p
  296. # -------------
  297. # Create "$as_dir" as a directory, including parents if necessary.
  298. as_fn_mkdir_p ()
  299. {
  300. case $as_dir in #(
  301. -*) as_dir=./$as_dir;;
  302. esac
  303. test -d "$as_dir" || eval $as_mkdir_p || {
  304. as_dirs=
  305. while :; do
  306. case $as_dir in #(
  307. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  308. *) as_qdir=$as_dir;;
  309. esac
  310. as_dirs="'$as_qdir' $as_dirs"
  311. as_dir=`$as_dirname -- "$as_dir" ||
  312. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  313. X"$as_dir" : 'X\(//\)[^/]' \| \
  314. X"$as_dir" : 'X\(//\)$' \| \
  315. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  316. $as_echo X"$as_dir" |
  317. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  318. s//\1/
  319. q
  320. }
  321. /^X\(\/\/\)[^/].*/{
  322. s//\1/
  323. q
  324. }
  325. /^X\(\/\/\)$/{
  326. s//\1/
  327. q
  328. }
  329. /^X\(\/\).*/{
  330. s//\1/
  331. q
  332. }
  333. s/.*/./; q'`
  334. test -d "$as_dir" && break
  335. done
  336. test -z "$as_dirs" || eval "mkdir $as_dirs"
  337. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  338. } # as_fn_mkdir_p
  339. # as_fn_executable_p FILE
  340. # -----------------------
  341. # Test if FILE is an executable regular file.
  342. as_fn_executable_p ()
  343. {
  344. test -f "$1" && test -x "$1"
  345. } # as_fn_executable_p
  346. # as_fn_append VAR VALUE
  347. # ----------------------
  348. # Append the text in VALUE to the end of the definition contained in VAR. Take
  349. # advantage of any shell optimizations that allow amortized linear growth over
  350. # repeated appends, instead of the typical quadratic growth present in naive
  351. # implementations.
  352. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  353. eval 'as_fn_append ()
  354. {
  355. eval $1+=\$2
  356. }'
  357. else
  358. as_fn_append ()
  359. {
  360. eval $1=\$$1\$2
  361. }
  362. fi # as_fn_append
  363. # as_fn_arith ARG...
  364. # ------------------
  365. # Perform arithmetic evaluation on the ARGs, and store the result in the
  366. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  367. # must be portable across $(()) and expr.
  368. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  369. eval 'as_fn_arith ()
  370. {
  371. as_val=$(( $* ))
  372. }'
  373. else
  374. as_fn_arith ()
  375. {
  376. as_val=`expr "$@" || test $? -eq 1`
  377. }
  378. fi # as_fn_arith
  379. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  380. # ----------------------------------------
  381. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  382. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  383. # script with STATUS, using 1 if that was 0.
  384. as_fn_error ()
  385. {
  386. as_status=$1; test $as_status -eq 0 && as_status=1
  387. if test "$4"; then
  388. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  389. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  390. fi
  391. $as_echo "$as_me: error: $2" >&2
  392. as_fn_exit $as_status
  393. } # as_fn_error
  394. if expr a : '\(a\)' >/dev/null 2>&1 &&
  395. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  396. as_expr=expr
  397. else
  398. as_expr=false
  399. fi
  400. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  401. as_basename=basename
  402. else
  403. as_basename=false
  404. fi
  405. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  406. as_dirname=dirname
  407. else
  408. as_dirname=false
  409. fi
  410. as_me=`$as_basename -- "$0" ||
  411. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  412. X"$0" : 'X\(//\)$' \| \
  413. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  414. $as_echo X/"$0" |
  415. sed '/^.*\/\([^/][^/]*\)\/*$/{
  416. s//\1/
  417. q
  418. }
  419. /^X\/\(\/\/\)$/{
  420. s//\1/
  421. q
  422. }
  423. /^X\/\(\/\).*/{
  424. s//\1/
  425. q
  426. }
  427. s/.*/./; q'`
  428. # Avoid depending upon Character Ranges.
  429. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  430. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  431. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  432. as_cr_digits='0123456789'
  433. as_cr_alnum=$as_cr_Letters$as_cr_digits
  434. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  435. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  436. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  437. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  438. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  439. sed -n '
  440. p
  441. /[$]LINENO/=
  442. ' <$as_myself |
  443. sed '
  444. s/[$]LINENO.*/&-/
  445. t lineno
  446. b
  447. :lineno
  448. N
  449. :loop
  450. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  451. t loop
  452. s/-\n.*//
  453. ' >$as_me.lineno &&
  454. chmod +x "$as_me.lineno" ||
  455. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  456. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  457. # already done that, so ensure we don't try to do so again and fall
  458. # in an infinite loop. This has already happened in practice.
  459. _as_can_reexec=no; export _as_can_reexec
  460. # Don't try to exec as it changes $[0], causing all sort of problems
  461. # (the dirname of $[0] is not the place where we might find the
  462. # original and so on. Autoconf is especially sensitive to this).
  463. . "./$as_me.lineno"
  464. # Exit status is that of the last command.
  465. exit
  466. }
  467. ECHO_C= ECHO_N= ECHO_T=
  468. case `echo -n x` in #(((((
  469. -n*)
  470. case `echo 'xy\c'` in
  471. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  472. xy) ECHO_C='\c';;
  473. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  474. ECHO_T=' ';;
  475. esac;;
  476. *)
  477. ECHO_N='-n';;
  478. esac
  479. rm -f conf$$ conf$$.exe conf$$.file
  480. if test -d conf$$.dir; then
  481. rm -f conf$$.dir/conf$$.file
  482. else
  483. rm -f conf$$.dir
  484. mkdir conf$$.dir 2>/dev/null
  485. fi
  486. if (echo >conf$$.file) 2>/dev/null; then
  487. if ln -s conf$$.file conf$$ 2>/dev/null; then
  488. as_ln_s='ln -s'
  489. # ... but there are two gotchas:
  490. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  491. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  492. # In both cases, we have to default to `cp -pR'.
  493. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  494. as_ln_s='cp -pR'
  495. elif ln conf$$.file conf$$ 2>/dev/null; then
  496. as_ln_s=ln
  497. else
  498. as_ln_s='cp -pR'
  499. fi
  500. else
  501. as_ln_s='cp -pR'
  502. fi
  503. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  504. rmdir conf$$.dir 2>/dev/null
  505. if mkdir -p . 2>/dev/null; then
  506. as_mkdir_p='mkdir -p "$as_dir"'
  507. else
  508. test -d ./-p && rmdir ./-p
  509. as_mkdir_p=false
  510. fi
  511. as_test_x='test -x'
  512. as_executable_p=as_fn_executable_p
  513. # Sed expression to map a string onto a valid CPP name.
  514. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  515. # Sed expression to map a string onto a valid variable name.
  516. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  517. test -n "$DJDIR" || exec 7<&0 </dev/null
  518. exec 6>&1
  519. # Name of the host.
  520. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  521. # so uname gets run too.
  522. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  523. #
  524. # Initializations.
  525. #
  526. ac_default_prefix=/usr/local
  527. ac_clean_files=
  528. ac_config_libobj_dir=.
  529. LIBOBJS=
  530. cross_compiling=no
  531. subdirs=
  532. MFLAGS=
  533. MAKEFLAGS=
  534. # Identity of this package.
  535. PACKAGE_NAME='PostgreSQL'
  536. PACKAGE_TARNAME='postgresql'
  537. PACKAGE_VERSION='12devel'
  538. PACKAGE_STRING='PostgreSQL 12devel'
  539. PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
  540. PACKAGE_URL=''
  541. ac_unique_file="src/backend/access/common/heaptuple.c"
  542. ac_default_prefix=/usr/local/pgsql
  543. # Factoring default headers for most tests.
  544. ac_includes_default="\
  545. #include <stdio.h>
  546. #ifdef HAVE_SYS_TYPES_H
  547. # include <sys/types.h>
  548. #endif
  549. #ifdef HAVE_SYS_STAT_H
  550. # include <sys/stat.h>
  551. #endif
  552. #ifdef STDC_HEADERS
  553. # include <stdlib.h>
  554. # include <stddef.h>
  555. #else
  556. # ifdef HAVE_STDLIB_H
  557. # include <stdlib.h>
  558. # endif
  559. #endif
  560. #ifdef HAVE_STRING_H
  561. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  562. # include <memory.h>
  563. # endif
  564. # include <string.h>
  565. #endif
  566. #ifdef HAVE_STRINGS_H
  567. # include <strings.h>
  568. #endif
  569. #ifdef HAVE_INTTYPES_H
  570. # include <inttypes.h>
  571. #endif
  572. #ifdef HAVE_STDINT_H
  573. # include <stdint.h>
  574. #endif
  575. #ifdef HAVE_UNISTD_H
  576. # include <unistd.h>
  577. #endif"
  578. ac_subst_vars='LTLIBOBJS
  579. vpath_build
  580. PG_SYSROOT
  581. PG_VERSION_NUM
  582. PROVE
  583. FOP
  584. XSLTPROC
  585. DBTOEPUB
  586. have_docbook
  587. XMLLINT
  588. TCL_SHLIB_LD_LIBS
  589. TCL_SHARED_BUILD
  590. TCL_LIB_SPEC
  591. TCL_LIBS
  592. TCL_INCLUDE_SPEC
  593. TCL_CONFIG_SH
  594. TCLSH
  595. XGETTEXT
  596. MSGMERGE
  597. MSGFMT_FLAGS
  598. MSGFMT
  599. PG_CRC32C_OBJS
  600. CFLAGS_ARMV8_CRC32C
  601. CFLAGS_SSE42
  602. have_win32_dbghelp
  603. LIBOBJS
  604. UUID_LIBS
  605. LDAP_LIBS_BE
  606. LDAP_LIBS_FE
  607. PTHREAD_CFLAGS
  608. PTHREAD_LIBS
  609. PTHREAD_CC
  610. ax_pthread_config
  611. SED
  612. ZIC
  613. python_additional_libs
  614. python_libspec
  615. python_libdir
  616. python_includespec
  617. python_version
  618. python_majorversion
  619. PYTHON
  620. perl_embed_ldflags
  621. perl_embed_ccflags
  622. perl_includespec
  623. perl_useshrplib
  624. perl_privlibexp
  625. perl_archlibexp
  626. PERL
  627. FLEXFLAGS
  628. FLEX
  629. BISONFLAGS
  630. BISON
  631. MKDIR_P
  632. LN_S
  633. TAR
  634. install_bin
  635. INSTALL_DATA
  636. INSTALL_SCRIPT
  637. INSTALL_PROGRAM
  638. WINDRES
  639. DLLWRAP
  640. DLLTOOL
  641. AR
  642. STRIP_SHARED_LIB
  643. STRIP_STATIC_LIB
  644. STRIP
  645. RANLIB
  646. with_gnu_ld
  647. LD
  648. LDFLAGS_SL
  649. LDFLAGS_EX
  650. ELF_SYS
  651. EGREP
  652. GREP
  653. with_zlib
  654. with_system_tzdata
  655. with_libxslt
  656. with_libxml
  657. XML2_CONFIG
  658. UUID_EXTRA_OBJS
  659. with_uuid
  660. with_systemd
  661. with_selinux
  662. with_openssl
  663. with_ldap
  664. with_krb_srvnam
  665. krb_srvtab
  666. with_gssapi
  667. with_python
  668. with_perl
  669. with_tcl
  670. ICU_LIBS
  671. ICU_CFLAGS
  672. PKG_CONFIG_LIBDIR
  673. PKG_CONFIG_PATH
  674. PKG_CONFIG
  675. with_icu
  676. enable_thread_safety
  677. INCLUDES
  678. autodepend
  679. TAS
  680. GCC
  681. CPP
  682. BITCODE_CXXFLAGS
  683. BITCODE_CFLAGS
  684. CFLAGS_VECTOR
  685. LLVM_BINPATH
  686. LLVM_CXXFLAGS
  687. LLVM_CFLAGS
  688. LLVM_CPPFLAGS
  689. LLVM_LIBS
  690. CLANG
  691. LLVM_CONFIG
  692. AWK
  693. with_llvm
  694. SUN_STUDIO_CC
  695. ac_ct_CXX
  696. CXXFLAGS
  697. CXX
  698. OBJEXT
  699. EXEEXT
  700. ac_ct_CC
  701. CPPFLAGS
  702. LDFLAGS
  703. CFLAGS
  704. CC
  705. enable_tap_tests
  706. enable_dtrace
  707. DTRACEFLAGS
  708. DTRACE
  709. enable_coverage
  710. GENHTML
  711. LCOV
  712. GCOV
  713. enable_debug
  714. enable_rpath
  715. default_port
  716. WANTED_LANGUAGES
  717. enable_nls
  718. PORTNAME
  719. host_os
  720. host_vendor
  721. host_cpu
  722. host
  723. build_os
  724. build_vendor
  725. build_cpu
  726. build
  727. PG_MAJORVERSION
  728. configure_args
  729. target_alias
  730. host_alias
  731. build_alias
  732. LIBS
  733. ECHO_T
  734. ECHO_N
  735. ECHO_C
  736. DEFS
  737. mandir
  738. localedir
  739. libdir
  740. psdir
  741. pdfdir
  742. dvidir
  743. htmldir
  744. infodir
  745. docdir
  746. oldincludedir
  747. includedir
  748. localstatedir
  749. sharedstatedir
  750. sysconfdir
  751. datadir
  752. datarootdir
  753. libexecdir
  754. sbindir
  755. bindir
  756. program_transform_name
  757. prefix
  758. exec_prefix
  759. PACKAGE_URL
  760. PACKAGE_BUGREPORT
  761. PACKAGE_STRING
  762. PACKAGE_VERSION
  763. PACKAGE_TARNAME
  764. PACKAGE_NAME
  765. PATH_SEPARATOR
  766. SHELL'
  767. ac_subst_files=''
  768. ac_user_opts='
  769. enable_option_checking
  770. with_extra_version
  771. with_template
  772. with_includes
  773. with_libraries
  774. with_libs
  775. enable_integer_datetimes
  776. enable_nls
  777. with_pgport
  778. enable_rpath
  779. enable_spinlocks
  780. enable_atomics
  781. enable_debug
  782. enable_profiling
  783. enable_coverage
  784. enable_dtrace
  785. enable_tap_tests
  786. with_blocksize
  787. with_segsize
  788. with_wal_blocksize
  789. with_CC
  790. with_llvm
  791. enable_depend
  792. enable_cassert
  793. enable_thread_safety
  794. with_icu
  795. with_tcl
  796. with_tclconfig
  797. with_perl
  798. with_python
  799. with_gssapi
  800. with_krb_srvnam
  801. with_pam
  802. with_bsd_auth
  803. with_ldap
  804. with_bonjour
  805. with_openssl
  806. with_selinux
  807. with_systemd
  808. with_readline
  809. with_libedit_preferred
  810. with_uuid
  811. with_ossp_uuid
  812. with_libxml
  813. with_libxslt
  814. with_system_tzdata
  815. with_zlib
  816. with_gnu_ld
  817. enable_largefile
  818. enable_float4_byval
  819. enable_float8_byval
  820. '
  821. ac_precious_vars='build_alias
  822. host_alias
  823. target_alias
  824. CC
  825. CFLAGS
  826. LDFLAGS
  827. LIBS
  828. CPPFLAGS
  829. CXX
  830. CXXFLAGS
  831. CCC
  832. LLVM_CONFIG
  833. CLANG
  834. CPP
  835. PKG_CONFIG
  836. PKG_CONFIG_PATH
  837. PKG_CONFIG_LIBDIR
  838. ICU_CFLAGS
  839. ICU_LIBS
  840. LDFLAGS_EX
  841. LDFLAGS_SL'
  842. # Initialize some variables set by options.
  843. ac_init_help=
  844. ac_init_version=false
  845. ac_unrecognized_opts=
  846. ac_unrecognized_sep=
  847. # The variables have the same names as the options, with
  848. # dashes changed to underlines.
  849. cache_file=/dev/null
  850. exec_prefix=NONE
  851. no_create=
  852. no_recursion=
  853. prefix=NONE
  854. program_prefix=NONE
  855. program_suffix=NONE
  856. program_transform_name=s,x,x,
  857. silent=
  858. site=
  859. srcdir=
  860. verbose=
  861. x_includes=NONE
  862. x_libraries=NONE
  863. # Installation directory options.
  864. # These are left unexpanded so users can "make install exec_prefix=/foo"
  865. # and all the variables that are supposed to be based on exec_prefix
  866. # by default will actually change.
  867. # Use braces instead of parens because sh, perl, etc. also accept them.
  868. # (The list follows the same order as the GNU Coding Standards.)
  869. bindir='${exec_prefix}/bin'
  870. sbindir='${exec_prefix}/sbin'
  871. libexecdir='${exec_prefix}/libexec'
  872. datarootdir='${prefix}/share'
  873. datadir='${datarootdir}'
  874. sysconfdir='${prefix}/etc'
  875. sharedstatedir='${prefix}/com'
  876. localstatedir='${prefix}/var'
  877. includedir='${prefix}/include'
  878. oldincludedir='/usr/include'
  879. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  880. infodir='${datarootdir}/info'
  881. htmldir='${docdir}'
  882. dvidir='${docdir}'
  883. pdfdir='${docdir}'
  884. psdir='${docdir}'
  885. libdir='${exec_prefix}/lib'
  886. localedir='${datarootdir}/locale'
  887. mandir='${datarootdir}/man'
  888. ac_prev=
  889. ac_dashdash=
  890. for ac_option
  891. do
  892. # If the previous option needs an argument, assign it.
  893. if test -n "$ac_prev"; then
  894. eval $ac_prev=\$ac_option
  895. ac_prev=
  896. continue
  897. fi
  898. case $ac_option in
  899. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  900. *=) ac_optarg= ;;
  901. *) ac_optarg=yes ;;
  902. esac
  903. # Accept the important Cygnus configure options, so we can diagnose typos.
  904. case $ac_dashdash$ac_option in
  905. --)
  906. ac_dashdash=yes ;;
  907. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  908. ac_prev=bindir ;;
  909. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  910. bindir=$ac_optarg ;;
  911. -build | --build | --buil | --bui | --bu)
  912. ac_prev=build_alias ;;
  913. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  914. build_alias=$ac_optarg ;;
  915. -cache-file | --cache-file | --cache-fil | --cache-fi \
  916. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  917. ac_prev=cache_file ;;
  918. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  919. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  920. cache_file=$ac_optarg ;;
  921. --config-cache | -C)
  922. cache_file=config.cache ;;
  923. -datadir | --datadir | --datadi | --datad)
  924. ac_prev=datadir ;;
  925. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  926. datadir=$ac_optarg ;;
  927. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  928. | --dataroo | --dataro | --datar)
  929. ac_prev=datarootdir ;;
  930. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  931. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  932. datarootdir=$ac_optarg ;;
  933. -disable-* | --disable-*)
  934. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  937. as_fn_error $? "invalid feature name: $ac_useropt"
  938. ac_useropt_orig=$ac_useropt
  939. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  940. case $ac_user_opts in
  941. *"
  942. "enable_$ac_useropt"
  943. "*) ;;
  944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  945. ac_unrecognized_sep=', ';;
  946. esac
  947. eval enable_$ac_useropt=no ;;
  948. -docdir | --docdir | --docdi | --doc | --do)
  949. ac_prev=docdir ;;
  950. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  951. docdir=$ac_optarg ;;
  952. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  953. ac_prev=dvidir ;;
  954. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  955. dvidir=$ac_optarg ;;
  956. -enable-* | --enable-*)
  957. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  958. # Reject names that are not valid shell variable names.
  959. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  960. as_fn_error $? "invalid feature name: $ac_useropt"
  961. ac_useropt_orig=$ac_useropt
  962. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  963. case $ac_user_opts in
  964. *"
  965. "enable_$ac_useropt"
  966. "*) ;;
  967. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  968. ac_unrecognized_sep=', ';;
  969. esac
  970. eval enable_$ac_useropt=\$ac_optarg ;;
  971. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  972. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  973. | --exec | --exe | --ex)
  974. ac_prev=exec_prefix ;;
  975. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  976. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  977. | --exec=* | --exe=* | --ex=*)
  978. exec_prefix=$ac_optarg ;;
  979. -gas | --gas | --ga | --g)
  980. # Obsolete; use --with-gas.
  981. with_gas=yes ;;
  982. -help | --help | --hel | --he | -h)
  983. ac_init_help=long ;;
  984. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  985. ac_init_help=recursive ;;
  986. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  987. ac_init_help=short ;;
  988. -host | --host | --hos | --ho)
  989. ac_prev=host_alias ;;
  990. -host=* | --host=* | --hos=* | --ho=*)
  991. host_alias=$ac_optarg ;;
  992. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  993. ac_prev=htmldir ;;
  994. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  995. | --ht=*)
  996. htmldir=$ac_optarg ;;
  997. -includedir | --includedir | --includedi | --included | --include \
  998. | --includ | --inclu | --incl | --inc)
  999. ac_prev=includedir ;;
  1000. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1001. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1002. includedir=$ac_optarg ;;
  1003. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1004. ac_prev=infodir ;;
  1005. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1006. infodir=$ac_optarg ;;
  1007. -libdir | --libdir | --libdi | --libd)
  1008. ac_prev=libdir ;;
  1009. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1010. libdir=$ac_optarg ;;
  1011. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1012. | --libexe | --libex | --libe)
  1013. ac_prev=libexecdir ;;
  1014. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1015. | --libexe=* | --libex=* | --libe=*)
  1016. libexecdir=$ac_optarg ;;
  1017. -localedir | --localedir | --localedi | --localed | --locale)
  1018. ac_prev=localedir ;;
  1019. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1020. localedir=$ac_optarg ;;
  1021. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1022. | --localstate | --localstat | --localsta | --localst | --locals)
  1023. ac_prev=localstatedir ;;
  1024. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1025. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1026. localstatedir=$ac_optarg ;;
  1027. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1028. ac_prev=mandir ;;
  1029. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1030. mandir=$ac_optarg ;;
  1031. -nfp | --nfp | --nf)
  1032. # Obsolete; use --without-fp.
  1033. with_fp=no ;;
  1034. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1035. | --no-cr | --no-c | -n)
  1036. no_create=yes ;;
  1037. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1038. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1039. no_recursion=yes ;;
  1040. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1041. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1042. | --oldin | --oldi | --old | --ol | --o)
  1043. ac_prev=oldincludedir ;;
  1044. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1045. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1046. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1047. oldincludedir=$ac_optarg ;;
  1048. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1049. ac_prev=prefix ;;
  1050. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1051. prefix=$ac_optarg ;;
  1052. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1053. | --program-pre | --program-pr | --program-p)
  1054. ac_prev=program_prefix ;;
  1055. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1056. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1057. program_prefix=$ac_optarg ;;
  1058. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1059. | --program-suf | --program-su | --program-s)
  1060. ac_prev=program_suffix ;;
  1061. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1062. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1063. program_suffix=$ac_optarg ;;
  1064. -program-transform-name | --program-transform-name \
  1065. | --program-transform-nam | --program-transform-na \
  1066. | --program-transform-n | --program-transform- \
  1067. | --program-transform | --program-transfor \
  1068. | --program-transfo | --program-transf \
  1069. | --program-trans | --program-tran \
  1070. | --progr-tra | --program-tr | --program-t)
  1071. ac_prev=program_transform_name ;;
  1072. -program-transform-name=* | --program-transform-name=* \
  1073. | --program-transform-nam=* | --program-transform-na=* \
  1074. | --program-transform-n=* | --program-transform-=* \
  1075. | --program-transform=* | --program-transfor=* \
  1076. | --program-transfo=* | --program-transf=* \
  1077. | --program-trans=* | --program-tran=* \
  1078. | --progr-tra=* | --program-tr=* | --program-t=*)
  1079. program_transform_name=$ac_optarg ;;
  1080. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1081. ac_prev=pdfdir ;;
  1082. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1083. pdfdir=$ac_optarg ;;
  1084. -psdir | --psdir | --psdi | --psd | --ps)
  1085. ac_prev=psdir ;;
  1086. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1087. psdir=$ac_optarg ;;
  1088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1089. | -silent | --silent | --silen | --sile | --sil)
  1090. silent=yes ;;
  1091. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1092. ac_prev=sbindir ;;
  1093. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1094. | --sbi=* | --sb=*)
  1095. sbindir=$ac_optarg ;;
  1096. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1097. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1098. | --sharedst | --shareds | --shared | --share | --shar \
  1099. | --sha | --sh)
  1100. ac_prev=sharedstatedir ;;
  1101. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1102. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1103. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1104. | --sha=* | --sh=*)
  1105. sharedstatedir=$ac_optarg ;;
  1106. -site | --site | --sit)
  1107. ac_prev=site ;;
  1108. -site=* | --site=* | --sit=*)
  1109. site=$ac_optarg ;;
  1110. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1111. ac_prev=srcdir ;;
  1112. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1113. srcdir=$ac_optarg ;;
  1114. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1115. | --syscon | --sysco | --sysc | --sys | --sy)
  1116. ac_prev=sysconfdir ;;
  1117. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1118. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1119. sysconfdir=$ac_optarg ;;
  1120. -target | --target | --targe | --targ | --tar | --ta | --t)
  1121. ac_prev=target_alias ;;
  1122. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1123. target_alias=$ac_optarg ;;
  1124. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1125. verbose=yes ;;
  1126. -version | --version | --versio | --versi | --vers | -V)
  1127. ac_init_version=: ;;
  1128. -with-* | --with-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. as_fn_error $? "invalid package name: $ac_useropt"
  1133. ac_useropt_orig=$ac_useropt
  1134. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1135. case $ac_user_opts in
  1136. *"
  1137. "with_$ac_useropt"
  1138. "*) ;;
  1139. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1140. ac_unrecognized_sep=', ';;
  1141. esac
  1142. eval with_$ac_useropt=\$ac_optarg ;;
  1143. -without-* | --without-*)
  1144. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1145. # Reject names that are not valid shell variable names.
  1146. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1147. as_fn_error $? "invalid package name: $ac_useropt"
  1148. ac_useropt_orig=$ac_useropt
  1149. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1150. case $ac_user_opts in
  1151. *"
  1152. "with_$ac_useropt"
  1153. "*) ;;
  1154. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1155. ac_unrecognized_sep=', ';;
  1156. esac
  1157. eval with_$ac_useropt=no ;;
  1158. --x)
  1159. # Obsolete; use --with-x.
  1160. with_x=yes ;;
  1161. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1162. | --x-incl | --x-inc | --x-in | --x-i)
  1163. ac_prev=x_includes ;;
  1164. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1165. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1166. x_includes=$ac_optarg ;;
  1167. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1168. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1169. ac_prev=x_libraries ;;
  1170. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1171. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1172. x_libraries=$ac_optarg ;;
  1173. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1174. Try \`$0 --help' for more information"
  1175. ;;
  1176. *=*)
  1177. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1178. # Reject names that are not valid shell variable names.
  1179. case $ac_envvar in #(
  1180. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1181. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1182. esac
  1183. eval $ac_envvar=\$ac_optarg
  1184. export $ac_envvar ;;
  1185. *)
  1186. # FIXME: should be removed in autoconf 3.0.
  1187. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1188. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1189. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1190. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1191. ;;
  1192. esac
  1193. done
  1194. if test -n "$ac_prev"; then
  1195. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1196. as_fn_error $? "missing argument to $ac_option"
  1197. fi
  1198. if test -n "$ac_unrecognized_opts"; then
  1199. case $enable_option_checking in
  1200. no) ;;
  1201. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1202. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1203. esac
  1204. fi
  1205. # Check all directory arguments for consistency.
  1206. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1207. datadir sysconfdir sharedstatedir localstatedir includedir \
  1208. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1209. libdir localedir mandir
  1210. do
  1211. eval ac_val=\$$ac_var
  1212. # Remove trailing slashes.
  1213. case $ac_val in
  1214. */ )
  1215. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1216. eval $ac_var=\$ac_val;;
  1217. esac
  1218. # Be sure to have absolute directory names.
  1219. case $ac_val in
  1220. [\\/$]* | ?:[\\/]* ) continue;;
  1221. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1222. esac
  1223. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1224. done
  1225. # There might be people who depend on the old broken behavior: `$host'
  1226. # used to hold the argument of --host etc.
  1227. # FIXME: To remove some day.
  1228. build=$build_alias
  1229. host=$host_alias
  1230. target=$target_alias
  1231. # FIXME: To remove some day.
  1232. if test "x$host_alias" != x; then
  1233. if test "x$build_alias" = x; then
  1234. cross_compiling=maybe
  1235. elif test "x$build_alias" != "x$host_alias"; then
  1236. cross_compiling=yes
  1237. fi
  1238. fi
  1239. ac_tool_prefix=
  1240. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1241. test "$silent" = yes && exec 6>/dev/null
  1242. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1243. ac_ls_di=`ls -di .` &&
  1244. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1245. as_fn_error $? "working directory cannot be determined"
  1246. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1247. as_fn_error $? "pwd does not report name of working directory"
  1248. # Find the source files, if location was not specified.
  1249. if test -z "$srcdir"; then
  1250. ac_srcdir_defaulted=yes
  1251. # Try the directory containing this script, then the parent directory.
  1252. ac_confdir=`$as_dirname -- "$as_myself" ||
  1253. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1254. X"$as_myself" : 'X\(//\)[^/]' \| \
  1255. X"$as_myself" : 'X\(//\)$' \| \
  1256. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1257. $as_echo X"$as_myself" |
  1258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)[^/].*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\).*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. s/.*/./; q'`
  1275. srcdir=$ac_confdir
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. srcdir=..
  1278. fi
  1279. else
  1280. ac_srcdir_defaulted=no
  1281. fi
  1282. if test ! -r "$srcdir/$ac_unique_file"; then
  1283. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1284. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1289. pwd)`
  1290. # When building in place, set srcdir=.
  1291. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1292. srcdir=.
  1293. fi
  1294. # Remove unnecessary trailing slashes from srcdir.
  1295. # Double slashes in file names in object file debugging info
  1296. # mess up M-x gdb in Emacs.
  1297. case $srcdir in
  1298. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1299. esac
  1300. for ac_var in $ac_precious_vars; do
  1301. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_env_${ac_var}_value=\$${ac_var}
  1303. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1305. done
  1306. #
  1307. # Report the --help message.
  1308. #
  1309. if test "$ac_init_help" = "long"; then
  1310. # Omit some internal or obsolete options to make the list less imposing.
  1311. # This message is too long to be a string in the A/UX 3.1 sh.
  1312. cat <<_ACEOF
  1313. \`configure' configures PostgreSQL 12devel to adapt to many kinds of systems.
  1314. Usage: $0 [OPTION]... [VAR=VALUE]...
  1315. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1316. VAR=VALUE. See below for descriptions of some of the useful variables.
  1317. Defaults for the options are specified in brackets.
  1318. Configuration:
  1319. -h, --help display this help and exit
  1320. --help=short display options specific to this package
  1321. --help=recursive display the short help of all the included packages
  1322. -V, --version display version information and exit
  1323. -q, --quiet, --silent do not print \`checking ...' messages
  1324. --cache-file=FILE cache test results in FILE [disabled]
  1325. -C, --config-cache alias for \`--cache-file=config.cache'
  1326. -n, --no-create do not create output files
  1327. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1328. Installation directories:
  1329. --prefix=PREFIX install architecture-independent files in PREFIX
  1330. [$ac_default_prefix]
  1331. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1332. [PREFIX]
  1333. By default, \`make install' will install all the files in
  1334. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1335. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1336. for instance \`--prefix=\$HOME'.
  1337. For better control, use the options below.
  1338. Fine tuning of the installation directories:
  1339. --bindir=DIR user executables [EPREFIX/bin]
  1340. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1341. --libexecdir=DIR program executables [EPREFIX/libexec]
  1342. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1343. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1344. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1345. --libdir=DIR object code libraries [EPREFIX/lib]
  1346. --includedir=DIR C header files [PREFIX/include]
  1347. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1348. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1349. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1350. --infodir=DIR info documentation [DATAROOTDIR/info]
  1351. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1352. --mandir=DIR man documentation [DATAROOTDIR/man]
  1353. --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
  1354. --htmldir=DIR html documentation [DOCDIR]
  1355. --dvidir=DIR dvi documentation [DOCDIR]
  1356. --pdfdir=DIR pdf documentation [DOCDIR]
  1357. --psdir=DIR ps documentation [DOCDIR]
  1358. _ACEOF
  1359. cat <<\_ACEOF
  1360. System types:
  1361. --build=BUILD configure for building on BUILD [guessed]
  1362. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1363. _ACEOF
  1364. fi
  1365. if test -n "$ac_init_help"; then
  1366. case $ac_init_help in
  1367. short | recursive ) echo "Configuration of PostgreSQL 12devel:";;
  1368. esac
  1369. cat <<\_ACEOF
  1370. Optional Features:
  1371. --disable-option-checking ignore unrecognized --enable/--with options
  1372. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1373. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1374. --disable-integer-datetimes
  1375. obsolete option, no longer supported
  1376. --enable-nls[=LANGUAGES]
  1377. enable Native Language Support
  1378. --disable-rpath do not embed shared library search path in
  1379. executables
  1380. --disable-spinlocks do not use spinlocks
  1381. --disable-atomics do not use atomic operations
  1382. --enable-debug build with debugging symbols (-g)
  1383. --enable-profiling build with profiling enabled
  1384. --enable-coverage build with coverage testing instrumentation
  1385. --enable-dtrace build with DTrace support
  1386. --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
  1387. --enable-depend turn on automatic dependency tracking
  1388. --enable-cassert enable assertion checks (for debugging)
  1389. --disable-thread-safety disable thread-safety in client libraries
  1390. --disable-largefile omit support for large files
  1391. --disable-float4-byval disable float4 passed by value
  1392. --disable-float8-byval disable float8 passed by value
  1393. Optional Packages:
  1394. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1395. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1396. --with-extra-version=STRING
  1397. append STRING to version
  1398. --with-template=NAME override operating system template
  1399. --with-includes=DIRS look for additional header files in DIRS
  1400. --with-libraries=DIRS look for additional libraries in DIRS
  1401. --with-libs=DIRS alternative spelling of --with-libraries
  1402. --with-pgport=PORTNUM set default port number [5432]
  1403. --with-blocksize=BLOCKSIZE
  1404. set table block size in kB [8]
  1405. --with-segsize=SEGSIZE set table segment size in GB [1]
  1406. --with-wal-blocksize=BLOCKSIZE
  1407. set WAL block size in kB [8]
  1408. --with-CC=CMD set compiler (deprecated)
  1409. --with-llvm build with LLVM based JIT support
  1410. --with-icu build with ICU support
  1411. --with-tcl build Tcl modules (PL/Tcl)
  1412. --with-tclconfig=DIR tclConfig.sh is in DIR
  1413. --with-perl build Perl modules (PL/Perl)
  1414. --with-python build Python modules (PL/Python)
  1415. --with-gssapi build with GSSAPI support
  1416. --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
  1417. [postgres]
  1418. --with-pam build with PAM support
  1419. --with-bsd-auth build with BSD Authentication support
  1420. --with-ldap build with LDAP support
  1421. --with-bonjour build with Bonjour support
  1422. --with-openssl build with OpenSSL support
  1423. --with-selinux build with SELinux support
  1424. --with-systemd build with systemd support
  1425. --without-readline do not use GNU Readline nor BSD Libedit for editing
  1426. --with-libedit-preferred
  1427. prefer BSD Libedit over GNU Readline
  1428. --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
  1429. --with-ossp-uuid obsolete spelling of --with-uuid=ossp
  1430. --with-libxml build with XML support
  1431. --with-libxslt use XSLT support when building contrib/xml2
  1432. --with-system-tzdata=DIR
  1433. use system time zone data in DIR
  1434. --without-zlib do not use Zlib
  1435. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1436. Some influential environment variables:
  1437. CC C compiler command
  1438. CFLAGS C compiler flags
  1439. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1440. nonstandard directory <lib dir>
  1441. LIBS libraries to pass to the linker, e.g. -l<library>
  1442. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1443. you have headers in a nonstandard directory <include dir>
  1444. CXX C++ compiler command
  1445. CXXFLAGS C++ compiler flags
  1446. LLVM_CONFIG path to llvm-config command
  1447. CLANG path to clang compiler to generate bitcode
  1448. CPP C preprocessor
  1449. PKG_CONFIG path to pkg-config utility
  1450. PKG_CONFIG_PATH
  1451. directories to add to pkg-config's search path
  1452. PKG_CONFIG_LIBDIR
  1453. path overriding pkg-config's built-in search path
  1454. ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
  1455. ICU_LIBS linker flags for ICU, overriding pkg-config
  1456. LDFLAGS_EX extra linker flags for linking executables only
  1457. LDFLAGS_SL extra linker flags for linking shared libraries only
  1458. Use these variables to override the choices made by `configure' or to help
  1459. it to find libraries and programs with nonstandard names/locations.
  1460. Report bugs to <pgsql-bugs@postgresql.org>.
  1461. _ACEOF
  1462. ac_status=$?
  1463. fi
  1464. if test "$ac_init_help" = "recursive"; then
  1465. # If there are subdirs, report their specific --help.
  1466. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1467. test -d "$ac_dir" ||
  1468. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1469. continue
  1470. ac_builddir=.
  1471. case "$ac_dir" in
  1472. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1473. *)
  1474. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1475. # A ".." for each directory in $ac_dir_suffix.
  1476. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1477. case $ac_top_builddir_sub in
  1478. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1479. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1480. esac ;;
  1481. esac
  1482. ac_abs_top_builddir=$ac_pwd
  1483. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1484. # for backward compatibility:
  1485. ac_top_builddir=$ac_top_build_prefix
  1486. case $srcdir in
  1487. .) # We are building in place.
  1488. ac_srcdir=.
  1489. ac_top_srcdir=$ac_top_builddir_sub
  1490. ac_abs_top_srcdir=$ac_pwd ;;
  1491. [\\/]* | ?:[\\/]* ) # Absolute name.
  1492. ac_srcdir=$srcdir$ac_dir_suffix;
  1493. ac_top_srcdir=$srcdir
  1494. ac_abs_top_srcdir=$srcdir ;;
  1495. *) # Relative name.
  1496. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1497. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1498. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1499. esac
  1500. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1501. cd "$ac_dir" || { ac_status=$?; continue; }
  1502. # Check for guested configure.
  1503. if test -f "$ac_srcdir/configure.gnu"; then
  1504. echo &&
  1505. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1506. elif test -f "$ac_srcdir/configure"; then
  1507. echo &&
  1508. $SHELL "$ac_srcdir/configure" --help=recursive
  1509. else
  1510. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1511. fi || ac_status=$?
  1512. cd "$ac_pwd" || { ac_status=$?; break; }
  1513. done
  1514. fi
  1515. test -n "$ac_init_help" && exit $ac_status
  1516. if $ac_init_version; then
  1517. cat <<\_ACEOF
  1518. PostgreSQL configure 12devel
  1519. generated by GNU Autoconf 2.69
  1520. Copyright (C) 2012 Free Software Foundation, Inc.
  1521. This configure script is free software; the Free Software Foundation
  1522. gives unlimited permission to copy, distribute and modify it.
  1523. Copyright (c) 1996-2019, PostgreSQL Global Development Group
  1524. _ACEOF
  1525. exit
  1526. fi
  1527. ## ------------------------ ##
  1528. ## Autoconf initialization. ##
  1529. ## ------------------------ ##
  1530. # ac_fn_c_try_compile LINENO
  1531. # --------------------------
  1532. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1533. ac_fn_c_try_compile ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. rm -f conftest.$ac_objext
  1537. if { { ac_try="$ac_compile"
  1538. case "(($ac_try" in
  1539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1540. *) ac_try_echo=$ac_try;;
  1541. esac
  1542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1543. $as_echo "$ac_try_echo"; } >&5
  1544. (eval "$ac_compile") 2>conftest.err
  1545. ac_status=$?
  1546. if test -s conftest.err; then
  1547. grep -v '^ *+' conftest.err >conftest.er1
  1548. cat conftest.er1 >&5
  1549. mv -f conftest.er1 conftest.err
  1550. fi
  1551. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1552. test $ac_status = 0; } && {
  1553. test -z "$ac_c_werror_flag" ||
  1554. test ! -s conftest.err
  1555. } && test -s conftest.$ac_objext; then :
  1556. ac_retval=0
  1557. else
  1558. $as_echo "$as_me: failed program was:" >&5
  1559. sed 's/^/| /' conftest.$ac_ext >&5
  1560. ac_retval=1
  1561. fi
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. as_fn_set_status $ac_retval
  1564. } # ac_fn_c_try_compile
  1565. # ac_fn_cxx_try_compile LINENO
  1566. # ----------------------------
  1567. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1568. ac_fn_cxx_try_compile ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. rm -f conftest.$ac_objext
  1572. if { { ac_try="$ac_compile"
  1573. case "(($ac_try" in
  1574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1575. *) ac_try_echo=$ac_try;;
  1576. esac
  1577. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1578. $as_echo "$ac_try_echo"; } >&5
  1579. (eval "$ac_compile") 2>conftest.err
  1580. ac_status=$?
  1581. if test -s conftest.err; then
  1582. grep -v '^ *+' conftest.err >conftest.er1
  1583. cat conftest.er1 >&5
  1584. mv -f conftest.er1 conftest.err
  1585. fi
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; } && {
  1588. test -z "$ac_cxx_werror_flag" ||
  1589. test ! -s conftest.err
  1590. } && test -s conftest.$ac_objext; then :
  1591. ac_retval=0
  1592. else
  1593. $as_echo "$as_me: failed program was:" >&5
  1594. sed 's/^/| /' conftest.$ac_ext >&5
  1595. ac_retval=1
  1596. fi
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. as_fn_set_status $ac_retval
  1599. } # ac_fn_cxx_try_compile
  1600. # ac_fn_c_try_link LINENO
  1601. # -----------------------
  1602. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1603. ac_fn_c_try_link ()
  1604. {
  1605. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1606. rm -f conftest.$ac_objext conftest$ac_exeext
  1607. if { { ac_try="$ac_link"
  1608. case "(($ac_try" in
  1609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1610. *) ac_try_echo=$ac_try;;
  1611. esac
  1612. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1613. $as_echo "$ac_try_echo"; } >&5
  1614. (eval "$ac_link") 2>conftest.err
  1615. ac_status=$?
  1616. if test -s conftest.err; then
  1617. grep -v '^ *+' conftest.err >conftest.er1
  1618. cat conftest.er1 >&5
  1619. mv -f conftest.er1 conftest.err
  1620. fi
  1621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1622. test $ac_status = 0; } && {
  1623. test -z "$ac_c_werror_flag" ||
  1624. test ! -s conftest.err
  1625. } && test -s conftest$ac_exeext && {
  1626. test "$cross_compiling" = yes ||
  1627. test -x conftest$ac_exeext
  1628. }; then :
  1629. ac_retval=0
  1630. else
  1631. $as_echo "$as_me: failed program was:" >&5
  1632. sed 's/^/| /' conftest.$ac_ext >&5
  1633. ac_retval=1
  1634. fi
  1635. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1636. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1637. # interfere with the next link command; also delete a directory that is
  1638. # left behind by Apple's compiler. We do this before executing the actions.
  1639. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1640. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1641. as_fn_set_status $ac_retval
  1642. } # ac_fn_c_try_link
  1643. # ac_fn_c_try_cpp LINENO
  1644. # ----------------------
  1645. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1646. ac_fn_c_try_cpp ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1650. case "(($ac_try" in
  1651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1652. *) ac_try_echo=$ac_try;;
  1653. esac
  1654. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1655. $as_echo "$ac_try_echo"; } >&5
  1656. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1657. ac_status=$?
  1658. if test -s conftest.err; then
  1659. grep -v '^ *+' conftest.err >conftest.er1
  1660. cat conftest.er1 >&5
  1661. mv -f conftest.er1 conftest.err
  1662. fi
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; } > conftest.i && {
  1665. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1666. test ! -s conftest.err
  1667. }; then :
  1668. ac_retval=0
  1669. else
  1670. $as_echo "$as_me: failed program was:" >&5
  1671. sed 's/^/| /' conftest.$ac_ext >&5
  1672. ac_retval=1
  1673. fi
  1674. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1675. as_fn_set_status $ac_retval
  1676. } # ac_fn_c_try_cpp
  1677. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1678. # -------------------------------------------------------
  1679. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1680. # the include files in INCLUDES and setting the cache variable VAR
  1681. # accordingly.
  1682. ac_fn_c_check_header_mongrel ()
  1683. {
  1684. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1685. if eval \${$3+:} false; then :
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1687. $as_echo_n "checking for $2... " >&6; }
  1688. if eval \${$3+:} false; then :
  1689. $as_echo_n "(cached) " >&6
  1690. fi
  1691. eval ac_res=\$$3
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1693. $as_echo "$ac_res" >&6; }
  1694. else
  1695. # Is the header compilable?
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1697. $as_echo_n "checking $2 usability... " >&6; }
  1698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1699. /* end confdefs.h. */
  1700. $4
  1701. #include <$2>
  1702. _ACEOF
  1703. if ac_fn_c_try_compile "$LINENO"; then :
  1704. ac_header_compiler=yes
  1705. else
  1706. ac_header_compiler=no
  1707. fi
  1708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1710. $as_echo "$ac_header_compiler" >&6; }
  1711. # Is the header present?
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1713. $as_echo_n "checking $2 presence... " >&6; }
  1714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1715. /* end confdefs.h. */
  1716. #include <$2>
  1717. _ACEOF
  1718. if ac_fn_c_try_cpp "$LINENO"; then :
  1719. ac_header_preproc=yes
  1720. else
  1721. ac_header_preproc=no
  1722. fi
  1723. rm -f conftest.err conftest.i conftest.$ac_ext
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1725. $as_echo "$ac_header_preproc" >&6; }
  1726. # So? What about this header?
  1727. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1728. yes:no: )
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1730. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1732. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1733. ;;
  1734. no:yes:* )
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1736. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1738. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1740. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1742. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1744. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1745. ( $as_echo "## ---------------------------------------- ##
  1746. ## Report this to pgsql-bugs@postgresql.org ##
  1747. ## ---------------------------------------- ##"
  1748. ) | sed "s/^/$as_me: WARNING: /" >&2
  1749. ;;
  1750. esac
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1752. $as_echo_n "checking for $2... " >&6; }
  1753. if eval \${$3+:} false; then :
  1754. $as_echo_n "(cached) " >&6
  1755. else
  1756. eval "$3=\$ac_header_compiler"
  1757. fi
  1758. eval ac_res=\$$3
  1759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1760. $as_echo "$ac_res" >&6; }
  1761. fi
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. } # ac_fn_c_check_header_mongrel
  1764. # ac_fn_c_try_run LINENO
  1765. # ----------------------
  1766. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1767. # that executables *can* be run.
  1768. ac_fn_c_try_run ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. if { { ac_try="$ac_link"
  1772. case "(($ac_try" in
  1773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1774. *) ac_try_echo=$ac_try;;
  1775. esac
  1776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1777. $as_echo "$ac_try_echo"; } >&5
  1778. (eval "$ac_link") 2>&5
  1779. ac_status=$?
  1780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1781. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1782. { { case "(($ac_try" in
  1783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784. *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. $as_echo "$ac_try_echo"; } >&5
  1788. (eval "$ac_try") 2>&5
  1789. ac_status=$?
  1790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1791. test $ac_status = 0; }; }; then :
  1792. ac_retval=0
  1793. else
  1794. $as_echo "$as_me: program exited with status $ac_status" >&5
  1795. $as_echo "$as_me: failed program was:" >&5
  1796. sed 's/^/| /' conftest.$ac_ext >&5
  1797. ac_retval=$ac_status
  1798. fi
  1799. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1800. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1801. as_fn_set_status $ac_retval
  1802. } # ac_fn_c_try_run
  1803. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1804. # -------------------------------------------------------
  1805. # Tests whether HEADER exists and can be compiled using the include files in
  1806. # INCLUDES, setting the cache variable VAR accordingly.
  1807. ac_fn_c_check_header_compile ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1811. $as_echo_n "checking for $2... " >&6; }
  1812. if eval \${$3+:} false; then :
  1813. $as_echo_n "(cached) " >&6
  1814. else
  1815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1816. /* end confdefs.h. */
  1817. $4
  1818. #include <$2>
  1819. _ACEOF
  1820. if ac_fn_c_try_compile "$LINENO"; then :
  1821. eval "$3=yes"
  1822. else
  1823. eval "$3=no"
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_c_check_header_compile
  1832. # ac_fn_c_check_func LINENO FUNC VAR
  1833. # ----------------------------------
  1834. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1835. ac_fn_c_check_func ()
  1836. {
  1837. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1839. $as_echo_n "checking for $2... " >&6; }
  1840. if eval \${$3+:} false; then :
  1841. $as_echo_n "(cached) " >&6
  1842. else
  1843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1844. /* end confdefs.h. */
  1845. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1846. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1847. #define $2 innocuous_$2
  1848. /* System header to define __stub macros and hopefully few prototypes,
  1849. which can conflict with char $2 (); below.
  1850. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1851. <limits.h> exists even on freestanding compilers. */
  1852. #ifdef __STDC__
  1853. # include <limits.h>
  1854. #else
  1855. # include <assert.h>
  1856. #endif
  1857. #undef $2
  1858. /* Override any GCC internal prototype to avoid an error.
  1859. Use char because int might match the return type of a GCC
  1860. builtin and then its argument prototype would still apply. */
  1861. #ifdef __cplusplus
  1862. extern "C"
  1863. #endif
  1864. char $2 ();
  1865. /* The GNU C library defines this for functions which it implements
  1866. to always fail with ENOSYS. Some functions are actually named
  1867. something starting with __ and the normal name is an alias. */
  1868. #if defined __stub_$2 || defined __stub___$2
  1869. choke me
  1870. #endif
  1871. int
  1872. main ()
  1873. {
  1874. return $2 ();
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_link "$LINENO"; then :
  1880. eval "$3=yes"
  1881. else
  1882. eval "$3=no"
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext \
  1885. conftest$ac_exeext conftest.$ac_ext
  1886. fi
  1887. eval ac_res=\$$3
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1889. $as_echo "$ac_res" >&6; }
  1890. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1891. } # ac_fn_c_check_func
  1892. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1893. # -------------------------------------------
  1894. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1895. # variable VAR accordingly.
  1896. ac_fn_c_check_type ()
  1897. {
  1898. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1900. $as_echo_n "checking for $2... " >&6; }
  1901. if eval \${$3+:} false; then :
  1902. $as_echo_n "(cached) " >&6
  1903. else
  1904. eval "$3=no"
  1905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1906. /* end confdefs.h. */
  1907. $4
  1908. int
  1909. main ()
  1910. {
  1911. if (sizeof ($2))
  1912. return 0;
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_c_try_compile "$LINENO"; then :
  1918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1919. /* end confdefs.h. */
  1920. $4
  1921. int
  1922. main ()
  1923. {
  1924. if (sizeof (($2)))
  1925. return 0;
  1926. ;
  1927. return 0;
  1928. }
  1929. _ACEOF
  1930. if ac_fn_c_try_compile "$LINENO"; then :
  1931. else
  1932. eval "$3=yes"
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1935. fi
  1936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1937. fi
  1938. eval ac_res=\$$3
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1940. $as_echo "$ac_res" >&6; }
  1941. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1942. } # ac_fn_c_check_type
  1943. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1944. # ----------------------------------------------------
  1945. # Tries to find if the field MEMBER exists in type AGGR, after including
  1946. # INCLUDES, setting cache variable VAR accordingly.
  1947. ac_fn_c_check_member ()
  1948. {
  1949. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1951. $as_echo_n "checking for $2.$3... " >&6; }
  1952. if eval \${$4+:} false; then :
  1953. $as_echo_n "(cached) " >&6
  1954. else
  1955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1956. /* end confdefs.h. */
  1957. $5
  1958. int
  1959. main ()
  1960. {
  1961. static $2 ac_aggr;
  1962. if (ac_aggr.$3)
  1963. return 0;
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_c_try_compile "$LINENO"; then :
  1969. eval "$4=yes"
  1970. else
  1971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1972. /* end confdefs.h. */
  1973. $5
  1974. int
  1975. main ()
  1976. {
  1977. static $2 ac_aggr;
  1978. if (sizeof ac_aggr.$3)
  1979. return 0;
  1980. ;
  1981. return 0;
  1982. }
  1983. _ACEOF
  1984. if ac_fn_c_try_compile "$LINENO"; then :
  1985. eval "$4=yes"
  1986. else
  1987. eval "$4=no"
  1988. fi
  1989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1990. fi
  1991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1992. fi
  1993. eval ac_res=\$$4
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1995. $as_echo "$ac_res" >&6; }
  1996. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1997. } # ac_fn_c_check_member
  1998. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1999. # --------------------------------------------
  2000. # Tries to find the compile-time value of EXPR in a program that includes
  2001. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2002. # computed
  2003. ac_fn_c_compute_int ()
  2004. {
  2005. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2006. if test "$cross_compiling" = yes; then
  2007. # Depending upon the size, compute the lo and hi bounds.
  2008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2009. /* end confdefs.h. */
  2010. $4
  2011. int
  2012. main ()
  2013. {
  2014. static int test_array [1 - 2 * !(($2) >= 0)];
  2015. test_array [0] = 0;
  2016. return test_array [0];
  2017. ;
  2018. return 0;
  2019. }
  2020. _ACEOF
  2021. if ac_fn_c_try_compile "$LINENO"; then :
  2022. ac_lo=0 ac_mid=0
  2023. while :; do
  2024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2025. /* end confdefs.h. */
  2026. $4
  2027. int
  2028. main ()
  2029. {
  2030. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2031. test_array [0] = 0;
  2032. return test_array [0];
  2033. ;
  2034. return 0;
  2035. }
  2036. _ACEOF
  2037. if ac_fn_c_try_compile "$LINENO"; then :
  2038. ac_hi=$ac_mid; break
  2039. else
  2040. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2041. if test $ac_lo -le $ac_mid; then
  2042. ac_lo= ac_hi=
  2043. break
  2044. fi
  2045. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2046. fi
  2047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2048. done
  2049. else
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $4
  2053. int
  2054. main ()
  2055. {
  2056. static int test_array [1 - 2 * !(($2) < 0)];
  2057. test_array [0] = 0;
  2058. return test_array [0];
  2059. ;
  2060. return 0;
  2061. }
  2062. _ACEOF
  2063. if ac_fn_c_try_compile "$LINENO"; then :
  2064. ac_hi=-1 ac_mid=-1
  2065. while :; do
  2066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2067. /* end confdefs.h. */
  2068. $4
  2069. int
  2070. main ()
  2071. {
  2072. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2073. test_array [0] = 0;
  2074. return test_array [0];
  2075. ;
  2076. return 0;
  2077. }
  2078. _ACEOF
  2079. if ac_fn_c_try_compile "$LINENO"; then :
  2080. ac_lo=$ac_mid; break
  2081. else
  2082. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2083. if test $ac_mid -le $ac_hi; then
  2084. ac_lo= ac_hi=
  2085. break
  2086. fi
  2087. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2088. fi
  2089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2090. done
  2091. else
  2092. ac_lo= ac_hi=
  2093. fi
  2094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. # Binary search between lo and hi bounds.
  2098. while test "x$ac_lo" != "x$ac_hi"; do
  2099. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main ()
  2105. {
  2106. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2107. test_array [0] = 0;
  2108. return test_array [0];
  2109. ;
  2110. return 0;
  2111. }
  2112. _ACEOF
  2113. if ac_fn_c_try_compile "$LINENO"; then :
  2114. ac_hi=$ac_mid
  2115. else
  2116. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2117. fi
  2118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2119. done
  2120. case $ac_lo in #((
  2121. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2122. '') ac_retval=1 ;;
  2123. esac
  2124. else
  2125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2126. /* end confdefs.h. */
  2127. $4
  2128. static long int longval () { return $2; }
  2129. static unsigned long int ulongval () { return $2; }
  2130. #include <stdio.h>
  2131. #include <stdlib.h>
  2132. int
  2133. main ()
  2134. {
  2135. FILE *f = fopen ("conftest.val", "w");
  2136. if (! f)
  2137. return 1;
  2138. if (($2) < 0)
  2139. {
  2140. long int i = longval ();
  2141. if (i != ($2))
  2142. return 1;
  2143. fprintf (f, "%ld", i);
  2144. }
  2145. else
  2146. {
  2147. unsigned long int i = ulongval ();
  2148. if (i != ($2))
  2149. return 1;
  2150. fprintf (f, "%lu", i);
  2151. }
  2152. /* Do not output a trailing newline, as this causes \r\n confusion
  2153. on some platforms. */
  2154. return ferror (f) || fclose (f) != 0;
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. if ac_fn_c_try_run "$LINENO"; then :
  2160. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2161. else
  2162. ac_retval=1
  2163. fi
  2164. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2165. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2166. rm -f conftest.val
  2167. fi
  2168. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2169. as_fn_set_status $ac_retval
  2170. } # ac_fn_c_compute_int
  2171. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2172. # ---------------------------------------------
  2173. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2174. # accordingly.
  2175. ac_fn_c_check_decl ()
  2176. {
  2177. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2178. # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
  2179. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2180. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2182. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2183. if eval \${$3+:} false; then :
  2184. $as_echo_n "(cached) " >&6
  2185. else
  2186. ac_save_werror_flag=$ac_c_werror_flag
  2187. ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
  2188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2189. /* end confdefs.h. */
  2190. $4
  2191. int
  2192. main ()
  2193. {
  2194. #ifndef $as_decl_name
  2195. #ifdef __cplusplus
  2196. (void) $as_decl_use;
  2197. #else
  2198. (void) $as_decl_name;
  2199. #endif
  2200. #endif
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. if ac_fn_c_try_compile "$LINENO"; then :
  2206. eval "$3=yes"
  2207. else
  2208. eval "$3=no"
  2209. fi
  2210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2211. ac_c_werror_flag=$ac_save_werror_flag
  2212. fi
  2213. eval ac_res=\$$3
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2215. $as_echo "$ac_res" >&6; }
  2216. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2217. } # ac_fn_c_check_decl
  2218. cat >config.log <<_ACEOF
  2219. This file contains any messages produced by compilers while
  2220. running configure, to aid debugging if configure makes a mistake.
  2221. It was created by PostgreSQL $as_me 12devel, which was
  2222. generated by GNU Autoconf 2.69. Invocation command line was
  2223. $ $0 $@
  2224. _ACEOF
  2225. exec 5>>config.log
  2226. {
  2227. cat <<_ASUNAME
  2228. ## --------- ##
  2229. ## Platform. ##
  2230. ## --------- ##
  2231. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2232. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2233. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2234. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2235. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2236. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2237. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2238. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2239. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2240. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2241. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2242. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2243. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2244. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2245. _ASUNAME
  2246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2247. for as_dir in $PATH
  2248. do
  2249. IFS=$as_save_IFS
  2250. test -z "$as_dir" && as_dir=.
  2251. $as_echo "PATH: $as_dir"
  2252. done
  2253. IFS=$as_save_IFS
  2254. } >&5
  2255. cat >&5 <<_ACEOF
  2256. ## ----------- ##
  2257. ## Core tests. ##
  2258. ## ----------- ##
  2259. _ACEOF
  2260. # Keep a trace of the command line.
  2261. # Strip out --no-create and --no-recursion so they do not pile up.
  2262. # Strip out --silent because we don't want to record it for future runs.
  2263. # Also quote any args containing shell meta-characters.
  2264. # Make two passes to allow for proper duplicate-argument suppression.
  2265. ac_configure_args=
  2266. ac_configure_args0=
  2267. ac_configure_args1=
  2268. ac_must_keep_next=false
  2269. for ac_pass in 1 2
  2270. do
  2271. for ac_arg
  2272. do
  2273. case $ac_arg in
  2274. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2275. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2276. | -silent | --silent | --silen | --sile | --sil)
  2277. continue ;;
  2278. *\'*)
  2279. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2280. esac
  2281. case $ac_pass in
  2282. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2283. 2)
  2284. as_fn_append ac_configure_args1 " '$ac_arg'"
  2285. if test $ac_must_keep_next = true; then
  2286. ac_must_keep_next=false # Got value, back to normal.
  2287. else
  2288. case $ac_arg in
  2289. *=* | --config-cache | -C | -disable-* | --disable-* \
  2290. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2291. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2292. | -with-* | --with-* | -without-* | --without-* | --x)
  2293. case "$ac_configure_args0 " in
  2294. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2295. esac
  2296. ;;
  2297. -* ) ac_must_keep_next=true ;;
  2298. esac
  2299. fi
  2300. as_fn_append ac_configure_args " '$ac_arg'"
  2301. ;;
  2302. esac
  2303. done
  2304. done
  2305. { ac_configure_args0=; unset ac_configure_args0;}
  2306. { ac_configure_args1=; unset ac_configure_args1;}
  2307. # When interrupted or exit'd, cleanup temporary files, and complete
  2308. # config.log. We remove comments because anyway the quotes in there
  2309. # would cause problems or look ugly.
  2310. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2311. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2312. trap 'exit_status=$?
  2313. # Save into config.log some information that might help in debugging.
  2314. {
  2315. echo
  2316. $as_echo "## ---------------- ##
  2317. ## Cache variables. ##
  2318. ## ---------------- ##"
  2319. echo
  2320. # The following way of writing the cache mishandles newlines in values,
  2321. (
  2322. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2323. eval ac_val=\$$ac_var
  2324. case $ac_val in #(
  2325. *${as_nl}*)
  2326. case $ac_var in #(
  2327. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2328. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2329. esac
  2330. case $ac_var in #(
  2331. _ | IFS | as_nl) ;; #(
  2332. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2333. *) { eval $ac_var=; unset $ac_var;} ;;
  2334. esac ;;
  2335. esac
  2336. done
  2337. (set) 2>&1 |
  2338. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2339. *${as_nl}ac_space=\ *)
  2340. sed -n \
  2341. "s/'\''/'\''\\\\'\'''\''/g;
  2342. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2343. ;; #(
  2344. *)
  2345. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2346. ;;
  2347. esac |
  2348. sort
  2349. )
  2350. echo
  2351. $as_echo "## ----------------- ##
  2352. ## Output variables. ##
  2353. ## ----------------- ##"
  2354. echo
  2355. for ac_var in $ac_subst_vars
  2356. do
  2357. eval ac_val=\$$ac_var
  2358. case $ac_val in
  2359. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2360. esac
  2361. $as_echo "$ac_var='\''$ac_val'\''"
  2362. done | sort
  2363. echo
  2364. if test -n "$ac_subst_files"; then
  2365. $as_echo "## ------------------- ##
  2366. ## File substitutions. ##
  2367. ## ------------------- ##"
  2368. echo
  2369. for ac_var in $ac_subst_files
  2370. do
  2371. eval ac_val=\$$ac_var
  2372. case $ac_val in
  2373. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2374. esac
  2375. $as_echo "$ac_var='\''$ac_val'\''"
  2376. done | sort
  2377. echo
  2378. fi
  2379. if test -s confdefs.h; then
  2380. $as_echo "## ----------- ##
  2381. ## confdefs.h. ##
  2382. ## ----------- ##"
  2383. echo
  2384. cat confdefs.h
  2385. echo
  2386. fi
  2387. test "$ac_signal" != 0 &&
  2388. $as_echo "$as_me: caught signal $ac_signal"
  2389. $as_echo "$as_me: exit $exit_status"
  2390. } >&5
  2391. rm -f core *.core core.conftest.* &&
  2392. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2393. exit $exit_status
  2394. ' 0
  2395. for ac_signal in 1 2 13 15; do
  2396. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2397. done
  2398. ac_signal=0
  2399. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2400. rm -f -r conftest* confdefs.h
  2401. $as_echo "/* confdefs.h */" > confdefs.h
  2402. # Predefined preprocessor variables.
  2403. cat >>confdefs.h <<_ACEOF
  2404. #define PACKAGE_NAME "$PACKAGE_NAME"
  2405. _ACEOF
  2406. cat >>confdefs.h <<_ACEOF
  2407. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2408. _ACEOF
  2409. cat >>confdefs.h <<_ACEOF
  2410. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2411. _ACEOF
  2412. cat >>confdefs.h <<_ACEOF
  2413. #define PACKAGE_STRING "$PACKAGE_STRING"
  2414. _ACEOF
  2415. cat >>confdefs.h <<_ACEOF
  2416. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2417. _ACEOF
  2418. cat >>confdefs.h <<_ACEOF
  2419. #define PACKAGE_URL "$PACKAGE_URL"
  2420. _ACEOF
  2421. # Let the site file select an alternate cache file if it wants to.
  2422. # Prefer an explicitly selected file to automatically selected ones.
  2423. ac_site_file1=NONE
  2424. ac_site_file2=NONE
  2425. if test -n "$CONFIG_SITE"; then
  2426. # We do not want a PATH search for config.site.
  2427. case $CONFIG_SITE in #((
  2428. -*) ac_site_file1=./$CONFIG_SITE;;
  2429. */*) ac_site_file1=$CONFIG_SITE;;
  2430. *) ac_site_file1=./$CONFIG_SITE;;
  2431. esac
  2432. elif test "x$prefix" != xNONE; then
  2433. ac_site_file1=$prefix/share/config.site
  2434. ac_site_file2=$prefix/etc/config.site
  2435. else
  2436. ac_site_file1=$ac_default_prefix/share/config.site
  2437. ac_site_file2=$ac_default_prefix/etc/config.site
  2438. fi
  2439. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2440. do
  2441. test "x$ac_site_file" = xNONE && continue
  2442. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2444. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2445. sed 's/^/| /' "$ac_site_file" >&5
  2446. . "$ac_site_file" \
  2447. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2448. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2449. as_fn_error $? "failed to load site script $ac_site_file
  2450. See \`config.log' for more details" "$LINENO" 5; }
  2451. fi
  2452. done
  2453. if test -r "$cache_file"; then
  2454. # Some versions of bash will fail to source /dev/null (special files
  2455. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2456. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2458. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2459. case $cache_file in
  2460. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2461. *) . "./$cache_file";;
  2462. esac
  2463. fi
  2464. else
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2466. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2467. >$cache_file
  2468. fi
  2469. # Check that the precious variables saved in the cache have kept the same
  2470. # value.
  2471. ac_cache_corrupted=false
  2472. for ac_var in $ac_precious_vars; do
  2473. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2474. eval ac_new_set=\$ac_env_${ac_var}_set
  2475. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2476. eval ac_new_val=\$ac_env_${ac_var}_value
  2477. case $ac_old_set,$ac_new_set in
  2478. set,)
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2480. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2481. ac_cache_corrupted=: ;;
  2482. ,set)
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2484. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2485. ac_cache_corrupted=: ;;
  2486. ,);;
  2487. *)
  2488. if test "x$ac_old_val" != "x$ac_new_val"; then
  2489. # differences in whitespace do not lead to failure.
  2490. ac_old_val_w=`echo x $ac_old_val`
  2491. ac_new_val_w=`echo x $ac_new_val`
  2492. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2494. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2495. ac_cache_corrupted=:
  2496. else
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2498. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2499. eval $ac_var=\$ac_old_val
  2500. fi
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2502. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2504. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2505. fi;;
  2506. esac
  2507. # Pass precious variables to config.status.
  2508. if test "$ac_new_set" = set; then
  2509. case $ac_new_val in
  2510. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2511. *) ac_arg=$ac_var=$ac_new_val ;;
  2512. esac
  2513. case " $ac_configure_args " in
  2514. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2515. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2516. esac
  2517. fi
  2518. done
  2519. if $ac_cache_corrupted; then
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2521. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2523. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2524. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2525. fi
  2526. ## -------------------- ##
  2527. ## Main body of script. ##
  2528. ## -------------------- ##
  2529. ac_ext=c
  2530. ac_cpp='$CPP $CPPFLAGS'
  2531. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2532. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2533. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2534. ac_aux_dir=
  2535. for ac_dir in config "$srcdir"/config; do
  2536. if test -f "$ac_dir/install-sh"; then
  2537. ac_aux_dir=$ac_dir
  2538. ac_install_sh="$ac_aux_dir/install-sh -c"
  2539. break
  2540. elif test -f "$ac_dir/install.sh"; then
  2541. ac_aux_dir=$ac_dir
  2542. ac_install_sh="$ac_aux_dir/install.sh -c"
  2543. break
  2544. elif test -f "$ac_dir/shtool"; then
  2545. ac_aux_dir=$ac_dir
  2546. ac_install_sh="$ac_aux_dir/shtool install -c"
  2547. break
  2548. fi
  2549. done
  2550. if test -z "$ac_aux_dir"; then
  2551. as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
  2552. fi
  2553. # These three variables are undocumented and unsupported,
  2554. # and are intended to be withdrawn in a future Autoconf release.
  2555. # They can cause serious problems if a builder's source tree is in a directory
  2556. # whose full name contains unusual characters.
  2557. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2558. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2559. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2560. configure_args=$ac_configure_args
  2561. PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
  2562. cat >>confdefs.h <<_ACEOF
  2563. #define PG_MAJORVERSION "$PG_MAJORVERSION"
  2564. _ACEOF
  2565. # Check whether --with-extra-version was given.
  2566. if test "${with_extra_version+set}" = set; then :
  2567. withval=$with_extra_version;
  2568. case $withval in
  2569. yes)
  2570. as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
  2571. ;;
  2572. no)
  2573. as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
  2574. ;;
  2575. *)
  2576. PG_VERSION="$PACKAGE_VERSION$withval"
  2577. ;;
  2578. esac
  2579. else
  2580. PG_VERSION="$PACKAGE_VERSION"
  2581. fi
  2582. cat >>confdefs.h <<_ACEOF
  2583. #define PG_VERSION "$PG_VERSION"
  2584. _ACEOF
  2585. # Make sure we can run config.sub.
  2586. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2587. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2589. $as_echo_n "checking build system type... " >&6; }
  2590. if ${ac_cv_build+:} false; then :
  2591. $as_echo_n "(cached) " >&6
  2592. else
  2593. ac_build_alias=$build_alias
  2594. test "x$ac_build_alias" = x &&
  2595. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2596. test "x$ac_build_alias" = x &&
  2597. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2598. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2599. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2600. fi
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2602. $as_echo "$ac_cv_build" >&6; }
  2603. case $ac_cv_build in
  2604. *-*-*) ;;
  2605. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2606. esac
  2607. build=$ac_cv_build
  2608. ac_save_IFS=$IFS; IFS='-'
  2609. set x $ac_cv_build
  2610. shift
  2611. build_cpu=$1
  2612. build_vendor=$2
  2613. shift; shift
  2614. # Remember, the first character of IFS is used to create $*,
  2615. # except with old shells:
  2616. build_os=$*
  2617. IFS=$ac_save_IFS
  2618. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2620. $as_echo_n "checking host system type... " >&6; }
  2621. if ${ac_cv_host+:} false; then :
  2622. $as_echo_n "(cached) " >&6
  2623. else
  2624. if test "x$host_alias" = x; then
  2625. ac_cv_host=$ac_cv_build
  2626. else
  2627. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2628. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2629. fi
  2630. fi
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2632. $as_echo "$ac_cv_host" >&6; }
  2633. case $ac_cv_host in
  2634. *-*-*) ;;
  2635. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2636. esac
  2637. host=$ac_cv_host
  2638. ac_save_IFS=$IFS; IFS='-'
  2639. set x $ac_cv_host
  2640. shift
  2641. host_cpu=$1
  2642. host_vendor=$2
  2643. shift; shift
  2644. # Remember, the first character of IFS is used to create $*,
  2645. # except with old shells:
  2646. host_os=$*
  2647. IFS=$ac_save_IFS
  2648. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2649. template=
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
  2651. $as_echo_n "checking which template to use... " >&6; }
  2652. # Check whether --with-template was given.
  2653. if test "${with_template+set}" = set; then :
  2654. withval=$with_template;
  2655. case $withval in
  2656. yes)
  2657. as_fn_error $? "argument required for --with-template option" "$LINENO" 5
  2658. ;;
  2659. no)
  2660. as_fn_error $? "argument required for --with-template option" "$LINENO" 5
  2661. ;;
  2662. *)
  2663. case $withval in
  2664. list) echo; ls "$srcdir/src/template"; exit;;
  2665. *) if test -f "$srcdir/src/template/$with_template" ; then
  2666. template=$withval
  2667. else
  2668. as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
  2669. fi;;
  2670. esac
  2671. ;;
  2672. esac
  2673. else
  2674. # --with-template not given
  2675. case $host_os in
  2676. aix*) template=aix ;;
  2677. cygwin*) template=cygwin ;;
  2678. darwin*) template=darwin ;;
  2679. dragonfly*) template=netbsd ;;
  2680. freebsd*) template=freebsd ;;
  2681. hpux*) template=hpux ;;
  2682. linux*|gnu*|k*bsd*-gnu)
  2683. template=linux ;;
  2684. mingw*) template=win32 ;;
  2685. netbsd*) template=netbsd ;;
  2686. openbsd*) template=openbsd ;;
  2687. solaris*) template=solaris ;;
  2688. esac
  2689. if test x"$template" = x"" ; then
  2690. as_fn_error $? "
  2691. *******************************************************************
  2692. PostgreSQL has apparently not been ported to your platform yet.
  2693. To try a manual configuration, look into the src/template directory
  2694. for a similar platform and use the '--with-template=' option.
  2695. Please also contact <pgsql-bugs@postgresql.org> to see about
  2696. rectifying this. Include the above 'checking host system type...'
  2697. line.
  2698. *******************************************************************
  2699. " "$LINENO" 5
  2700. fi
  2701. fi
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
  2703. $as_echo "$template" >&6; }
  2704. PORTNAME=$template
  2705. # Initialize default assumption that we do not need separate assembly code
  2706. # for TAS (test-and-set). This can be overridden by the template file
  2707. # when it's executed.
  2708. need_tas=no
  2709. tas_file=dummy.s
  2710. ##
  2711. ## Command line options
  2712. ##
  2713. #
  2714. # Add non-standard directories to the include path
  2715. #
  2716. # Check whether --with-includes was given.
  2717. if test "${with_includes+set}" = set; then :
  2718. withval=$with_includes;
  2719. case $withval in
  2720. yes)
  2721. as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
  2722. ;;
  2723. no)
  2724. as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
  2725. ;;
  2726. *)
  2727. ;;
  2728. esac
  2729. fi
  2730. #
  2731. # Add non-standard directories to the library search path
  2732. #
  2733. # Check whether --with-libraries was given.
  2734. if test "${with_libraries+set}" = set; then :
  2735. withval=$with_libraries;
  2736. case $withval in
  2737. yes)
  2738. as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
  2739. ;;
  2740. no)
  2741. as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
  2742. ;;
  2743. *)
  2744. LIBRARY_DIRS=$withval
  2745. ;;
  2746. esac
  2747. fi
  2748. # Check whether --with-libs was given.
  2749. if test "${with_libs+set}" = set; then :
  2750. withval=$with_libs;
  2751. case $withval in
  2752. yes)
  2753. as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
  2754. ;;
  2755. no)
  2756. as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
  2757. ;;
  2758. *)
  2759. LIBRARY_DIRS=$withval
  2760. ;;
  2761. esac
  2762. fi
  2763. #
  2764. # 64-bit integer date/time storage is now the only option, but to avoid
  2765. # unnecessary breakage of build scripts, continue to accept an explicit
  2766. # "--enable-integer-datetimes" switch.
  2767. #
  2768. # Check whether --enable-integer-datetimes was given.
  2769. if test "${enable_integer_datetimes+set}" = set; then :
  2770. enableval=$enable_integer_datetimes;
  2771. case $enableval in
  2772. yes)
  2773. :
  2774. ;;
  2775. no)
  2776. as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
  2777. ;;
  2778. *)
  2779. as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
  2780. ;;
  2781. esac
  2782. else
  2783. enable_integer_datetimes=yes
  2784. fi
  2785. #
  2786. # NLS
  2787. #
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
  2789. $as_echo_n "checking whether NLS is wanted... " >&6; }
  2790. # Check whether --enable-nls was given.
  2791. if test "${enable_nls+set}" = set; then :
  2792. enableval=$enable_nls;
  2793. case $enableval in
  2794. yes)
  2795. :
  2796. ;;
  2797. no)
  2798. :
  2799. ;;
  2800. *)
  2801. enable_nls=yes
  2802. WANTED_LANGUAGES=$enableval
  2803. ;;
  2804. esac
  2805. else
  2806. enable_nls=no
  2807. fi
  2808. if test "$enable_nls" = yes; then
  2809. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  2810. fi
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
  2812. $as_echo "$enable_nls" >&6; }
  2813. #
  2814. # Default port number (--with-pgport), default 5432
  2815. #
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
  2817. $as_echo_n "checking for default port number... " >&6; }
  2818. # Check whether --with-pgport was given.
  2819. if test "${with_pgport+set}" = set; then :
  2820. withval=$with_pgport;
  2821. case $withval in
  2822. yes)
  2823. as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
  2824. ;;
  2825. no)
  2826. as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
  2827. ;;
  2828. *)
  2829. default_port=$withval
  2830. ;;
  2831. esac
  2832. else
  2833. default_port=5432
  2834. fi
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
  2836. $as_echo "$default_port" >&6; }
  2837. # Need both of these because some places want an integer and some a string
  2838. cat >>confdefs.h <<_ACEOF
  2839. #define DEF_PGPORT ${default_port}
  2840. _ACEOF
  2841. cat >>confdefs.h <<_ACEOF
  2842. #define DEF_PGPORT_STR "${default_port}"
  2843. _ACEOF
  2844. # It's worth validating port; you can get very confusing errors otherwise
  2845. if test x"$default_port" = x""; then
  2846. as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
  2847. elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
  2848. as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
  2849. elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
  2850. as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
  2851. elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
  2852. as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
  2853. fi
  2854. #
  2855. # '-rpath'-like feature can be disabled
  2856. #
  2857. # Check whether --enable-rpath was given.
  2858. if test "${enable_rpath+set}" = set; then :
  2859. enableval=$enable_rpath;
  2860. case $enableval in
  2861. yes)
  2862. :
  2863. ;;
  2864. no)
  2865. :
  2866. ;;
  2867. *)
  2868. as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
  2869. ;;
  2870. esac
  2871. else
  2872. enable_rpath=yes
  2873. fi
  2874. #
  2875. # Spinlocks
  2876. #
  2877. # Check whether --enable-spinlocks was given.
  2878. if test "${enable_spinlocks+set}" = set; then :
  2879. enableval=$enable_spinlocks;
  2880. case $enableval in
  2881. yes)
  2882. :
  2883. ;;
  2884. no)
  2885. :
  2886. ;;
  2887. *)
  2888. as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
  2889. ;;
  2890. esac
  2891. else
  2892. enable_spinlocks=yes
  2893. fi
  2894. #
  2895. # Atomic operations
  2896. #
  2897. # Check whether --enable-atomics was given.
  2898. if test "${enable_atomics+set}" = set; then :
  2899. enableval=$enable_atomics;
  2900. case $enableval in
  2901. yes)
  2902. :
  2903. ;;
  2904. no)
  2905. :
  2906. ;;
  2907. *)
  2908. as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
  2909. ;;
  2910. esac
  2911. else
  2912. enable_atomics=yes
  2913. fi
  2914. #
  2915. # --enable-debug adds -g to compiler flags
  2916. #
  2917. # Check whether --enable-debug was given.
  2918. if test "${enable_debug+set}" = set; then :
  2919. enableval=$enable_debug;
  2920. case $enableval in
  2921. yes)
  2922. :
  2923. ;;
  2924. no)
  2925. :
  2926. ;;
  2927. *)
  2928. as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
  2929. ;;
  2930. esac
  2931. else
  2932. enable_debug=no
  2933. fi
  2934. #
  2935. # --enable-profiling enables gcc profiling
  2936. #
  2937. # Check whether --enable-profiling was given.
  2938. if test "${enable_profiling+set}" = set; then :
  2939. enableval=$enable_profiling;
  2940. case $enableval in
  2941. yes)
  2942. :
  2943. ;;
  2944. no)
  2945. :
  2946. ;;
  2947. *)
  2948. as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
  2949. ;;
  2950. esac
  2951. else
  2952. enable_profiling=no
  2953. fi
  2954. #
  2955. # --enable-coverage enables generation of code coverage metrics with gcov
  2956. #
  2957. # Check whether --enable-coverage was given.
  2958. if test "${enable_coverage+set}" = set; then :
  2959. enableval=$enable_coverage;
  2960. case $enableval in
  2961. yes)
  2962. if test -z "$GCOV"; then
  2963. for ac_prog in gcov
  2964. do
  2965. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2966. set dummy $ac_prog; ac_word=$2
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2968. $as_echo_n "checking for $ac_word... " >&6; }
  2969. if ${ac_cv_path_GCOV+:} false; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. case $GCOV in
  2973. [\\/]* | ?:[\\/]*)
  2974. ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
  2975. ;;
  2976. *)
  2977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2978. for as_dir in $PATH
  2979. do
  2980. IFS=$as_save_IFS
  2981. test -z "$as_dir" && as_dir=.
  2982. for ac_exec_ext in '' $ac_executable_extensions; do
  2983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2984. ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
  2985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2986. break 2
  2987. fi
  2988. done
  2989. done
  2990. IFS=$as_save_IFS
  2991. ;;
  2992. esac
  2993. fi
  2994. GCOV=$ac_cv_path_GCOV
  2995. if test -n "$GCOV"; then
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  2997. $as_echo "$GCOV" >&6; }
  2998. else
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3000. $as_echo "no" >&6; }
  3001. fi
  3002. test -n "$GCOV" && break
  3003. done
  3004. else
  3005. # Report the value of GCOV in configure's output in all cases.
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
  3007. $as_echo_n "checking for GCOV... " >&6; }
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  3009. $as_echo "$GCOV" >&6; }
  3010. fi
  3011. if test -z "$GCOV"; then
  3012. as_fn_error $? "gcov not found" "$LINENO" 5
  3013. fi
  3014. if test -z "$LCOV"; then
  3015. for ac_prog in lcov
  3016. do
  3017. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3018. set dummy $ac_prog; ac_word=$2
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3020. $as_echo_n "checking for $ac_word... " >&6; }
  3021. if ${ac_cv_path_LCOV+:} false; then :
  3022. $as_echo_n "(cached) " >&6
  3023. else
  3024. case $LCOV in
  3025. [\\/]* | ?:[\\/]*)
  3026. ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
  3027. ;;
  3028. *)
  3029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3030. for as_dir in $PATH
  3031. do
  3032. IFS=$as_save_IFS
  3033. test -z "$as_dir" && as_dir=.
  3034. for ac_exec_ext in '' $ac_executable_extensions; do
  3035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3036. ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
  3037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3038. break 2
  3039. fi
  3040. done
  3041. done
  3042. IFS=$as_save_IFS
  3043. ;;
  3044. esac
  3045. fi
  3046. LCOV=$ac_cv_path_LCOV
  3047. if test -n "$LCOV"; then
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  3049. $as_echo "$LCOV" >&6; }
  3050. else
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3052. $as_echo "no" >&6; }
  3053. fi
  3054. test -n "$LCOV" && break
  3055. done
  3056. else
  3057. # Report the value of LCOV in configure's output in all cases.
  3058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
  3059. $as_echo_n "checking for LCOV... " >&6; }
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  3061. $as_echo "$LCOV" >&6; }
  3062. fi
  3063. if test -z "$LCOV"; then
  3064. as_fn_error $? "lcov not found" "$LINENO" 5
  3065. fi
  3066. if test -z "$GENHTML"; then
  3067. for ac_prog in genhtml
  3068. do
  3069. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3070. set dummy $ac_prog; ac_word=$2
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3072. $as_echo_n "checking for $ac_word... " >&6; }
  3073. if ${ac_cv_path_GENHTML+:} false; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. case $GENHTML in
  3077. [\\/]* | ?:[\\/]*)
  3078. ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
  3079. ;;
  3080. *)
  3081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3082. for as_dir in $PATH
  3083. do
  3084. IFS=$as_save_IFS
  3085. test -z "$as_dir" && as_dir=.
  3086. for ac_exec_ext in '' $ac_executable_extensions; do
  3087. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3088. ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
  3089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3090. break 2
  3091. fi
  3092. done
  3093. done
  3094. IFS=$as_save_IFS
  3095. ;;
  3096. esac
  3097. fi
  3098. GENHTML=$ac_cv_path_GENHTML
  3099. if test -n "$GENHTML"; then
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  3101. $as_echo "$GENHTML" >&6; }
  3102. else
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3104. $as_echo "no" >&6; }
  3105. fi
  3106. test -n "$GENHTML" && break
  3107. done
  3108. else
  3109. # Report the value of GENHTML in configure's output in all cases.
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
  3111. $as_echo_n "checking for GENHTML... " >&6; }
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  3113. $as_echo "$GENHTML" >&6; }
  3114. fi
  3115. if test -z "$GENHTML"; then
  3116. as_fn_error $? "genhtml not found" "$LINENO" 5
  3117. fi
  3118. ;;
  3119. no)
  3120. :
  3121. ;;
  3122. *)
  3123. as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
  3124. ;;
  3125. esac
  3126. else
  3127. enable_coverage=no
  3128. fi
  3129. #
  3130. # DTrace
  3131. #
  3132. # Check whether --enable-dtrace was given.
  3133. if test "${enable_dtrace+set}" = set; then :
  3134. enableval=$enable_dtrace;
  3135. case $enableval in
  3136. yes)
  3137. if test -z "$DTRACE"; then
  3138. for ac_prog in dtrace
  3139. do
  3140. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3141. set dummy $ac_prog; ac_word=$2
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3143. $as_echo_n "checking for $ac_word... " >&6; }
  3144. if ${ac_cv_path_DTRACE+:} false; then :
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. case $DTRACE in
  3148. [\\/]* | ?:[\\/]*)
  3149. ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
  3150. ;;
  3151. *)
  3152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3153. for as_dir in $PATH
  3154. do
  3155. IFS=$as_save_IFS
  3156. test -z "$as_dir" && as_dir=.
  3157. for ac_exec_ext in '' $ac_executable_extensions; do
  3158. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3159. ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
  3160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3161. break 2
  3162. fi
  3163. done
  3164. done
  3165. IFS=$as_save_IFS
  3166. ;;
  3167. esac
  3168. fi
  3169. DTRACE=$ac_cv_path_DTRACE
  3170. if test -n "$DTRACE"; then
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
  3172. $as_echo "$DTRACE" >&6; }
  3173. else
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3175. $as_echo "no" >&6; }
  3176. fi
  3177. test -n "$DTRACE" && break
  3178. done
  3179. else
  3180. # Report the value of DTRACE in configure's output in all cases.
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
  3182. $as_echo_n "checking for DTRACE... " >&6; }
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
  3184. $as_echo "$DTRACE" >&6; }
  3185. fi
  3186. if test -z "$DTRACE"; then
  3187. as_fn_error $? "dtrace not found" "$LINENO" 5
  3188. fi
  3189. ;;
  3190. no)
  3191. :
  3192. ;;
  3193. *)
  3194. as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
  3195. ;;
  3196. esac
  3197. else
  3198. enable_dtrace=no
  3199. fi
  3200. #
  3201. # TAP tests
  3202. #
  3203. # Check whether --enable-tap-tests was given.
  3204. if test "${enable_tap_tests+set}" = set; then :
  3205. enableval=$enable_tap_tests;
  3206. case $enableval in
  3207. yes)
  3208. :
  3209. ;;
  3210. no)
  3211. :
  3212. ;;
  3213. *)
  3214. as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
  3215. ;;
  3216. esac
  3217. else
  3218. enable_tap_tests=no
  3219. fi
  3220. #
  3221. # Block size
  3222. #
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
  3224. $as_echo_n "checking for block size... " >&6; }
  3225. # Check whether --with-blocksize was given.
  3226. if test "${with_blocksize+set}" = set; then :
  3227. withval=$with_blocksize;
  3228. case $withval in
  3229. yes)
  3230. as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
  3231. ;;
  3232. no)
  3233. as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
  3234. ;;
  3235. *)
  3236. blocksize=$withval
  3237. ;;
  3238. esac
  3239. else
  3240. blocksize=8
  3241. fi
  3242. case ${blocksize} in
  3243. 1) BLCKSZ=1024;;
  3244. 2) BLCKSZ=2048;;
  3245. 4) BLCKSZ=4096;;
  3246. 8) BLCKSZ=8192;;
  3247. 16) BLCKSZ=16384;;
  3248. 32) BLCKSZ=32768;;
  3249. *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
  3250. esac
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
  3252. $as_echo "${blocksize}kB" >&6; }
  3253. cat >>confdefs.h <<_ACEOF
  3254. #define BLCKSZ ${BLCKSZ}
  3255. _ACEOF
  3256. #
  3257. # Relation segment size
  3258. #
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
  3260. $as_echo_n "checking for segment size... " >&6; }
  3261. # Check whether --with-segsize was given.
  3262. if test "${with_segsize+set}" = set; then :
  3263. withval=$with_segsize;
  3264. case $withval in
  3265. yes)
  3266. as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
  3267. ;;
  3268. no)
  3269. as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
  3270. ;;
  3271. *)
  3272. segsize=$withval
  3273. ;;
  3274. esac
  3275. else
  3276. segsize=1
  3277. fi
  3278. # this expression is set up to avoid unnecessary integer overflow
  3279. # blocksize is already guaranteed to be a factor of 1024
  3280. RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
  3281. test $? -eq 0 || exit 1
  3282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
  3283. $as_echo "${segsize}GB" >&6; }
  3284. cat >>confdefs.h <<_ACEOF
  3285. #define RELSEG_SIZE ${RELSEG_SIZE}
  3286. _ACEOF
  3287. #
  3288. # WAL block size
  3289. #
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
  3291. $as_echo_n "checking for WAL block size... " >&6; }
  3292. # Check whether --with-wal-blocksize was given.
  3293. if test "${with_wal_blocksize+set}" = set; then :
  3294. withval=$with_wal_blocksize;
  3295. case $withval in
  3296. yes)
  3297. as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
  3298. ;;
  3299. no)
  3300. as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
  3301. ;;
  3302. *)
  3303. wal_blocksize=$withval
  3304. ;;
  3305. esac
  3306. else
  3307. wal_blocksize=8
  3308. fi
  3309. case ${wal_blocksize} in
  3310. 1) XLOG_BLCKSZ=1024;;
  3311. 2) XLOG_BLCKSZ=2048;;
  3312. 4) XLOG_BLCKSZ=4096;;
  3313. 8) XLOG_BLCKSZ=8192;;
  3314. 16) XLOG_BLCKSZ=16384;;
  3315. 32) XLOG_BLCKSZ=32768;;
  3316. 64) XLOG_BLCKSZ=65536;;
  3317. *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
  3318. esac
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
  3320. $as_echo "${wal_blocksize}kB" >&6; }
  3321. cat >>confdefs.h <<_ACEOF
  3322. #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
  3323. _ACEOF
  3324. #
  3325. # C compiler
  3326. #
  3327. # For historical reasons you can also use --with-CC to specify the C compiler
  3328. # to use, although the standard way to do this is to set the CC environment
  3329. # variable.
  3330. # Check whether --with-CC was given.
  3331. if test "${with_CC+set}" = set; then :
  3332. withval=$with_CC;
  3333. case $withval in
  3334. yes)
  3335. as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
  3336. ;;
  3337. no)
  3338. as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
  3339. ;;
  3340. *)
  3341. CC=$with_CC
  3342. ;;
  3343. esac
  3344. fi
  3345. case $template in
  3346. aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
  3347. *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
  3348. esac
  3349. ac_ext=c
  3350. ac_cpp='$CPP $CPPFLAGS'
  3351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3354. if test -n "$ac_tool_prefix"; then
  3355. for ac_prog in $pgac_cc_list
  3356. do
  3357. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3358. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3360. $as_echo_n "checking for $ac_word... " >&6; }
  3361. if ${ac_cv_prog_CC+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. if test -n "$CC"; then
  3365. ac_cv_prog_CC="$CC" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3374. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. fi
  3382. fi
  3383. CC=$ac_cv_prog_CC
  3384. if test -n "$CC"; then
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3386. $as_echo "$CC" >&6; }
  3387. else
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3389. $as_echo "no" >&6; }
  3390. fi
  3391. test -n "$CC" && break
  3392. done
  3393. fi
  3394. if test -z "$CC"; then
  3395. ac_ct_CC=$CC
  3396. for ac_prog in $pgac_cc_list
  3397. do
  3398. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3399. set dummy $ac_prog; ac_word=$2
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3401. $as_echo_n "checking for $ac_word... " >&6; }
  3402. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. if test -n "$ac_ct_CC"; then
  3406. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3407. else
  3408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3409. for as_dir in $PATH
  3410. do
  3411. IFS=$as_save_IFS
  3412. test -z "$as_dir" && as_dir=.
  3413. for ac_exec_ext in '' $ac_executable_extensions; do
  3414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3415. ac_cv_prog_ac_ct_CC="$ac_prog"
  3416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3417. break 2
  3418. fi
  3419. done
  3420. done
  3421. IFS=$as_save_IFS
  3422. fi
  3423. fi
  3424. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3425. if test -n "$ac_ct_CC"; then
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3427. $as_echo "$ac_ct_CC" >&6; }
  3428. else
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3430. $as_echo "no" >&6; }
  3431. fi
  3432. test -n "$ac_ct_CC" && break
  3433. done
  3434. if test "x$ac_ct_CC" = x; then
  3435. CC=""
  3436. else
  3437. case $cross_compiling:$ac_tool_warned in
  3438. yes:)
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3441. ac_tool_warned=yes ;;
  3442. esac
  3443. CC=$ac_ct_CC
  3444. fi
  3445. fi
  3446. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3448. as_fn_error $? "no acceptable C compiler found in \$PATH
  3449. See \`config.log' for more details" "$LINENO" 5; }
  3450. # Provide some information about the compiler.
  3451. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3452. set X $ac_compile
  3453. ac_compiler=$2
  3454. for ac_option in --version -v -V -qversion; do
  3455. { { ac_try="$ac_compiler $ac_option >&5"
  3456. case "(($ac_try" in
  3457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3458. *) ac_try_echo=$ac_try;;
  3459. esac
  3460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3461. $as_echo "$ac_try_echo"; } >&5
  3462. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3463. ac_status=$?
  3464. if test -s conftest.err; then
  3465. sed '10a\
  3466. ... rest of stderr output deleted ...
  3467. 10q' conftest.err >conftest.er1
  3468. cat conftest.er1 >&5
  3469. fi
  3470. rm -f conftest.er1 conftest.err
  3471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3472. test $ac_status = 0; }
  3473. done
  3474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3475. /* end confdefs.h. */
  3476. int
  3477. main ()
  3478. {
  3479. ;
  3480. return 0;
  3481. }
  3482. _ACEOF
  3483. ac_clean_files_save=$ac_clean_files
  3484. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3485. # Try to create an executable without -o first, disregard a.out.
  3486. # It will help us diagnose broken compilers, and finding out an intuition
  3487. # of exeext.
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3489. $as_echo_n "checking whether the C compiler works... " >&6; }
  3490. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3491. # The possible output files:
  3492. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3493. ac_rmfiles=
  3494. for ac_file in $ac_files
  3495. do
  3496. case $ac_file in
  3497. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3498. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3499. esac
  3500. done
  3501. rm -f $ac_rmfiles
  3502. if { { ac_try="$ac_link_default"
  3503. case "(($ac_try" in
  3504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3505. *) ac_try_echo=$ac_try;;
  3506. esac
  3507. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3508. $as_echo "$ac_try_echo"; } >&5
  3509. (eval "$ac_link_default") 2>&5
  3510. ac_status=$?
  3511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3512. test $ac_status = 0; }; then :
  3513. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3514. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3515. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3516. # so that the user can short-circuit this test for compilers unknown to
  3517. # Autoconf.
  3518. for ac_file in $ac_files ''
  3519. do
  3520. test -f "$ac_file" || continue
  3521. case $ac_file in
  3522. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3523. ;;
  3524. [ab].out )
  3525. # We found the default executable, but exeext='' is most
  3526. # certainly right.
  3527. break;;
  3528. *.* )
  3529. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3530. then :; else
  3531. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3532. fi
  3533. # We set ac_cv_exeext here because the later test for it is not
  3534. # safe: cross compilers may not add the suffix if given an `-o'
  3535. # argument, so we may need to know it at that point already.
  3536. # Even if this section looks crufty: it has the advantage of
  3537. # actually working.
  3538. break;;
  3539. * )
  3540. break;;
  3541. esac
  3542. done
  3543. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3544. else
  3545. ac_file=''
  3546. fi
  3547. if test -z "$ac_file"; then :
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3549. $as_echo "no" >&6; }
  3550. $as_echo "$as_me: failed program was:" >&5
  3551. sed 's/^/| /' conftest.$ac_ext >&5
  3552. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3553. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3554. as_fn_error 77 "C compiler cannot create executables
  3555. See \`config.log' for more details" "$LINENO" 5; }
  3556. else
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3558. $as_echo "yes" >&6; }
  3559. fi
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3561. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3563. $as_echo "$ac_file" >&6; }
  3564. ac_exeext=$ac_cv_exeext
  3565. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3566. ac_clean_files=$ac_clean_files_save
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3568. $as_echo_n "checking for suffix of executables... " >&6; }
  3569. if { { ac_try="$ac_link"
  3570. case "(($ac_try" in
  3571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3572. *) ac_try_echo=$ac_try;;
  3573. esac
  3574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3575. $as_echo "$ac_try_echo"; } >&5
  3576. (eval "$ac_link") 2>&5
  3577. ac_status=$?
  3578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3579. test $ac_status = 0; }; then :
  3580. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3581. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3582. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3583. # `rm'.
  3584. for ac_file in conftest.exe conftest conftest.*; do
  3585. test -f "$ac_file" || continue
  3586. case $ac_file in
  3587. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3588. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3589. break;;
  3590. * ) break;;
  3591. esac
  3592. done
  3593. else
  3594. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3595. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3596. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3597. See \`config.log' for more details" "$LINENO" 5; }
  3598. fi
  3599. rm -f conftest conftest$ac_cv_exeext
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3601. $as_echo "$ac_cv_exeext" >&6; }
  3602. rm -f conftest.$ac_ext
  3603. EXEEXT=$ac_cv_exeext
  3604. ac_exeext=$EXEEXT
  3605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3606. /* end confdefs.h. */
  3607. #include <stdio.h>
  3608. int
  3609. main ()
  3610. {
  3611. FILE *f = fopen ("conftest.out", "w");
  3612. return ferror (f) || fclose (f) != 0;
  3613. ;
  3614. return 0;
  3615. }
  3616. _ACEOF
  3617. ac_clean_files="$ac_clean_files conftest.out"
  3618. # Check that the compiler produces executables we can run. If not, either
  3619. # the compiler is broken, or we cross compile.
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3621. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3622. if test "$cross_compiling" != yes; then
  3623. { { ac_try="$ac_link"
  3624. case "(($ac_try" in
  3625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3626. *) ac_try_echo=$ac_try;;
  3627. esac
  3628. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3629. $as_echo "$ac_try_echo"; } >&5
  3630. (eval "$ac_link") 2>&5
  3631. ac_status=$?
  3632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3633. test $ac_status = 0; }
  3634. if { ac_try='./conftest$ac_cv_exeext'
  3635. { { case "(($ac_try" in
  3636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3637. *) ac_try_echo=$ac_try;;
  3638. esac
  3639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3640. $as_echo "$ac_try_echo"; } >&5
  3641. (eval "$ac_try") 2>&5
  3642. ac_status=$?
  3643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3644. test $ac_status = 0; }; }; then
  3645. cross_compiling=no
  3646. else
  3647. if test "$cross_compiling" = maybe; then
  3648. cross_compiling=yes
  3649. else
  3650. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3651. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3652. as_fn_error $? "cannot run C compiled programs.
  3653. If you meant to cross compile, use \`--host'.
  3654. See \`config.log' for more details" "$LINENO" 5; }
  3655. fi
  3656. fi
  3657. fi
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3659. $as_echo "$cross_compiling" >&6; }
  3660. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3661. ac_clean_files=$ac_clean_files_save
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3663. $as_echo_n "checking for suffix of object files... " >&6; }
  3664. if ${ac_cv_objext+:} false; then :
  3665. $as_echo_n "(cached) " >&6
  3666. else
  3667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3668. /* end confdefs.h. */
  3669. int
  3670. main ()
  3671. {
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. rm -f conftest.o conftest.obj
  3677. if { { ac_try="$ac_compile"
  3678. case "(($ac_try" in
  3679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3680. *) ac_try_echo=$ac_try;;
  3681. esac
  3682. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3683. $as_echo "$ac_try_echo"; } >&5
  3684. (eval "$ac_compile") 2>&5
  3685. ac_status=$?
  3686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3687. test $ac_status = 0; }; then :
  3688. for ac_file in conftest.o conftest.obj conftest.*; do
  3689. test -f "$ac_file" || continue;
  3690. case $ac_file in
  3691. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3692. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3693. break;;
  3694. esac
  3695. done
  3696. else
  3697. $as_echo "$as_me: failed program was:" >&5
  3698. sed 's/^/| /' conftest.$ac_ext >&5
  3699. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3700. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3701. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3702. See \`config.log' for more details" "$LINENO" 5; }
  3703. fi
  3704. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3705. fi
  3706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3707. $as_echo "$ac_cv_objext" >&6; }
  3708. OBJEXT=$ac_cv_objext
  3709. ac_objext=$OBJEXT
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3711. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3712. if ${ac_cv_c_compiler_gnu+:} false; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. int
  3718. main ()
  3719. {
  3720. #ifndef __GNUC__
  3721. choke me
  3722. #endif
  3723. ;
  3724. return 0;
  3725. }
  3726. _ACEOF
  3727. if ac_fn_c_try_compile "$LINENO"; then :
  3728. ac_compiler_gnu=yes
  3729. else
  3730. ac_compiler_gnu=no
  3731. fi
  3732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3733. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3736. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3737. if test $ac_compiler_gnu = yes; then
  3738. GCC=yes
  3739. else
  3740. GCC=
  3741. fi
  3742. ac_test_CFLAGS=${CFLAGS+set}
  3743. ac_save_CFLAGS=$CFLAGS
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3745. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3746. if ${ac_cv_prog_cc_g+:} false; then :
  3747. $as_echo_n "(cached) " >&6
  3748. else
  3749. ac_save_c_werror_flag=$ac_c_werror_flag
  3750. ac_c_werror_flag=yes
  3751. ac_cv_prog_cc_g=no
  3752. CFLAGS="-g"
  3753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3754. /* end confdefs.h. */
  3755. int
  3756. main ()
  3757. {
  3758. ;
  3759. return 0;
  3760. }
  3761. _ACEOF
  3762. if ac_fn_c_try_compile "$LINENO"; then :
  3763. ac_cv_prog_cc_g=yes
  3764. else
  3765. CFLAGS=""
  3766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3767. /* end confdefs.h. */
  3768. int
  3769. main ()
  3770. {
  3771. ;
  3772. return 0;
  3773. }
  3774. _ACEOF
  3775. if ac_fn_c_try_compile "$LINENO"; then :
  3776. else
  3777. ac_c_werror_flag=$ac_save_c_werror_flag
  3778. CFLAGS="-g"
  3779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3780. /* end confdefs.h. */
  3781. int
  3782. main ()
  3783. {
  3784. ;
  3785. return 0;
  3786. }
  3787. _ACEOF
  3788. if ac_fn_c_try_compile "$LINENO"; then :
  3789. ac_cv_prog_cc_g=yes
  3790. fi
  3791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3792. fi
  3793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3794. fi
  3795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3796. ac_c_werror_flag=$ac_save_c_werror_flag
  3797. fi
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3799. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3800. if test "$ac_test_CFLAGS" = set; then
  3801. CFLAGS=$ac_save_CFLAGS
  3802. elif test $ac_cv_prog_cc_g = yes; then
  3803. if test "$GCC" = yes; then
  3804. CFLAGS="-g -O2"
  3805. else
  3806. CFLAGS="-g"
  3807. fi
  3808. else
  3809. if test "$GCC" = yes; then
  3810. CFLAGS="-O2"
  3811. else
  3812. CFLAGS=
  3813. fi
  3814. fi
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3816. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3817. if ${ac_cv_prog_cc_c89+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. ac_cv_prog_cc_c89=no
  3821. ac_save_CC=$CC
  3822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3823. /* end confdefs.h. */
  3824. #include <stdarg.h>
  3825. #include <stdio.h>
  3826. struct stat;
  3827. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3828. struct buf { int x; };
  3829. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3830. static char *e (p, i)
  3831. char **p;
  3832. int i;
  3833. {
  3834. return p[i];
  3835. }
  3836. static char *f (char * (*g) (char **, int), char **p, ...)
  3837. {
  3838. char *s;
  3839. va_list v;
  3840. va_start (v,p);
  3841. s = g (p, va_arg (v,int));
  3842. va_end (v);
  3843. return s;
  3844. }
  3845. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3846. function prototypes and stuff, but not '\xHH' hex character constants.
  3847. These don't provoke an error unfortunately, instead are silently treated
  3848. as 'x'. The following induces an error, until -std is added to get
  3849. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3850. array size at least. It's necessary to write '\x00'==0 to get something
  3851. that's true only with -std. */
  3852. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3853. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3854. inside strings and character constants. */
  3855. #define FOO(x) 'x'
  3856. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3857. int test (int i, double x);
  3858. struct s1 {int (*f) (int a);};
  3859. struct s2 {int (*f) (double a);};
  3860. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3861. int argc;
  3862. char **argv;
  3863. int
  3864. main ()
  3865. {
  3866. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3867. ;
  3868. return 0;
  3869. }
  3870. _ACEOF
  3871. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3872. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3873. do
  3874. CC="$ac_save_CC $ac_arg"
  3875. if ac_fn_c_try_compile "$LINENO"; then :
  3876. ac_cv_prog_cc_c89=$ac_arg
  3877. fi
  3878. rm -f core conftest.err conftest.$ac_objext
  3879. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3880. done
  3881. rm -f conftest.$ac_ext
  3882. CC=$ac_save_CC
  3883. fi
  3884. # AC_CACHE_VAL
  3885. case "x$ac_cv_prog_cc_c89" in
  3886. x)
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3888. $as_echo "none needed" >&6; } ;;
  3889. xno)
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3891. $as_echo "unsupported" >&6; } ;;
  3892. *)
  3893. CC="$CC $ac_cv_prog_cc_c89"
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3895. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3896. esac
  3897. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3898. fi
  3899. ac_ext=c
  3900. ac_cpp='$CPP $CPPFLAGS'
  3901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3905. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3906. if ${ac_cv_prog_cc_c99+:} false; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. ac_cv_prog_cc_c99=no
  3910. ac_save_CC=$CC
  3911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3912. /* end confdefs.h. */
  3913. #include <stdarg.h>
  3914. #include <stdbool.h>
  3915. #include <stdlib.h>
  3916. #include <wchar.h>
  3917. #include <stdio.h>
  3918. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3919. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3920. #define showlist(...) puts (#__VA_ARGS__)
  3921. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3922. static void
  3923. test_varargs_macros (void)
  3924. {
  3925. int x = 1234;
  3926. int y = 5678;
  3927. debug ("Flag");
  3928. debug ("X = %d\n", x);
  3929. showlist (The first, second, and third items.);
  3930. report (x>y, "x is %d but y is %d", x, y);
  3931. }
  3932. // Check long long types.
  3933. #define BIG64 18446744073709551615ull
  3934. #define BIG32 4294967295ul
  3935. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3936. #if !BIG_OK
  3937. your preprocessor is broken;
  3938. #endif
  3939. #if BIG_OK
  3940. #else
  3941. your preprocessor is broken;
  3942. #endif
  3943. static long long int bignum = -9223372036854775807LL;
  3944. static unsigned long long int ubignum = BIG64;
  3945. struct incomplete_array
  3946. {
  3947. int datasize;
  3948. double data[];
  3949. };
  3950. struct named_init {
  3951. int number;
  3952. const wchar_t *name;
  3953. double average;
  3954. };
  3955. typedef const char *ccp;
  3956. static inline int
  3957. test_restrict (ccp restrict text)
  3958. {
  3959. // See if C++-style comments work.
  3960. // Iterate through items via the restricted pointer.
  3961. // Also check for declarations in for loops.
  3962. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3963. continue;
  3964. return 0;
  3965. }
  3966. // Check varargs and va_copy.
  3967. static void
  3968. test_varargs (const char *format, ...)
  3969. {
  3970. va_list args;
  3971. va_start (args, format);
  3972. va_list args_copy;
  3973. va_copy (args_copy, args);
  3974. const char *str;
  3975. int number;
  3976. float fnumber;
  3977. while (*format)
  3978. {
  3979. switch (*format++)
  3980. {
  3981. case 's': // string
  3982. str = va_arg (args_copy, const char *);
  3983. break;
  3984. case 'd': // int
  3985. number = va_arg (args_copy, int);
  3986. break;
  3987. case 'f': // float
  3988. fnumber = va_arg (args_copy, double);
  3989. break;
  3990. default:
  3991. break;
  3992. }
  3993. }
  3994. va_end (args_copy);
  3995. va_end (args);
  3996. }
  3997. int
  3998. main ()
  3999. {
  4000. // Check bool.
  4001. _Bool success = false;
  4002. // Check restrict.
  4003. if (test_restrict ("String literal") == 0)
  4004. success = true;
  4005. char *restrict newvar = "Another string";
  4006. // Check varargs.
  4007. test_varargs ("s, d' f .", "string", 65, 34.234);
  4008. test_varargs_macros ();
  4009. // Check flexible array members.
  4010. struct incomplete_array *ia =
  4011. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4012. ia->datasize = 10;
  4013. for (int i = 0; i < ia->datasize; ++i)
  4014. ia->data[i] = i * 1.234;
  4015. // Check named initializers.
  4016. struct named_init ni = {
  4017. .number = 34,
  4018. .name = L"Test wide string",
  4019. .average = 543.34343,
  4020. };
  4021. ni.number = 58;
  4022. int dynamic_array[ni.number];
  4023. dynamic_array[ni.number - 1] = 543;
  4024. // work around unused variable warnings
  4025. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4026. || dynamic_array[ni.number - 1] != 543);
  4027. ;
  4028. return 0;
  4029. }
  4030. _ACEOF
  4031. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4032. do
  4033. CC="$ac_save_CC $ac_arg"
  4034. if ac_fn_c_try_compile "$LINENO"; then :
  4035. ac_cv_prog_cc_c99=$ac_arg
  4036. fi
  4037. rm -f core conftest.err conftest.$ac_objext
  4038. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4039. done
  4040. rm -f conftest.$ac_ext
  4041. CC=$ac_save_CC
  4042. fi
  4043. # AC_CACHE_VAL
  4044. case "x$ac_cv_prog_cc_c99" in
  4045. x)
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4047. $as_echo "none needed" >&6; } ;;
  4048. xno)
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4050. $as_echo "unsupported" >&6; } ;;
  4051. *)
  4052. CC="$CC $ac_cv_prog_cc_c99"
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4054. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4055. esac
  4056. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4057. fi
  4058. # Error out if the compiler does not support C99, as the codebase
  4059. # relies on that.
  4060. if test "$ac_cv_prog_cc_c99" = no; then
  4061. as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
  4062. fi
  4063. ac_ext=cpp
  4064. ac_cpp='$CXXCPP $CPPFLAGS'
  4065. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4066. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4067. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4068. if test -z "$CXX"; then
  4069. if test -n "$CCC"; then
  4070. CXX=$CCC
  4071. else
  4072. if test -n "$ac_tool_prefix"; then
  4073. for ac_prog in $pgac_cxx_list
  4074. do
  4075. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4076. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4078. $as_echo_n "checking for $ac_word... " >&6; }
  4079. if ${ac_cv_prog_CXX+:} false; then :
  4080. $as_echo_n "(cached) " >&6
  4081. else
  4082. if test -n "$CXX"; then
  4083. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4084. else
  4085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4086. for as_dir in $PATH
  4087. do
  4088. IFS=$as_save_IFS
  4089. test -z "$as_dir" && as_dir=.
  4090. for ac_exec_ext in '' $ac_executable_extensions; do
  4091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4092. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4094. break 2
  4095. fi
  4096. done
  4097. done
  4098. IFS=$as_save_IFS
  4099. fi
  4100. fi
  4101. CXX=$ac_cv_prog_CXX
  4102. if test -n "$CXX"; then
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4104. $as_echo "$CXX" >&6; }
  4105. else
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4107. $as_echo "no" >&6; }
  4108. fi
  4109. test -n "$CXX" && break
  4110. done
  4111. fi
  4112. if test -z "$CXX"; then
  4113. ac_ct_CXX=$CXX
  4114. for ac_prog in $pgac_cxx_list
  4115. do
  4116. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4117. set dummy $ac_prog; ac_word=$2
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4119. $as_echo_n "checking for $ac_word... " >&6; }
  4120. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4121. $as_echo_n "(cached) " >&6
  4122. else
  4123. if test -n "$ac_ct_CXX"; then
  4124. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4125. else
  4126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4127. for as_dir in $PATH
  4128. do
  4129. IFS=$as_save_IFS
  4130. test -z "$as_dir" && as_dir=.
  4131. for ac_exec_ext in '' $ac_executable_extensions; do
  4132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4133. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4135. break 2
  4136. fi
  4137. done
  4138. done
  4139. IFS=$as_save_IFS
  4140. fi
  4141. fi
  4142. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4143. if test -n "$ac_ct_CXX"; then
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4145. $as_echo "$ac_ct_CXX" >&6; }
  4146. else
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4148. $as_echo "no" >&6; }
  4149. fi
  4150. test -n "$ac_ct_CXX" && break
  4151. done
  4152. if test "x$ac_ct_CXX" = x; then
  4153. CXX="g++"
  4154. else
  4155. case $cross_compiling:$ac_tool_warned in
  4156. yes:)
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4159. ac_tool_warned=yes ;;
  4160. esac
  4161. CXX=$ac_ct_CXX
  4162. fi
  4163. fi
  4164. fi
  4165. fi
  4166. # Provide some information about the compiler.
  4167. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4168. set X $ac_compile
  4169. ac_compiler=$2
  4170. for ac_option in --version -v -V -qversion; do
  4171. { { ac_try="$ac_compiler $ac_option >&5"
  4172. case "(($ac_try" in
  4173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4174. *) ac_try_echo=$ac_try;;
  4175. esac
  4176. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4177. $as_echo "$ac_try_echo"; } >&5
  4178. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4179. ac_status=$?
  4180. if test -s conftest.err; then
  4181. sed '10a\
  4182. ... rest of stderr output deleted ...
  4183. 10q' conftest.err >conftest.er1
  4184. cat conftest.er1 >&5
  4185. fi
  4186. rm -f conftest.er1 conftest.err
  4187. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4188. test $ac_status = 0; }
  4189. done
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4191. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4192. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4196. /* end confdefs.h. */
  4197. int
  4198. main ()
  4199. {
  4200. #ifndef __GNUC__
  4201. choke me
  4202. #endif
  4203. ;
  4204. return 0;
  4205. }
  4206. _ACEOF
  4207. if ac_fn_cxx_try_compile "$LINENO"; then :
  4208. ac_compiler_gnu=yes
  4209. else
  4210. ac_compiler_gnu=no
  4211. fi
  4212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4213. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4214. fi
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4216. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4217. if test $ac_compiler_gnu = yes; then
  4218. GXX=yes
  4219. else
  4220. GXX=
  4221. fi
  4222. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4223. ac_save_CXXFLAGS=$CXXFLAGS
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4225. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4226. if ${ac_cv_prog_cxx_g+:} false; then :
  4227. $as_echo_n "(cached) " >&6
  4228. else
  4229. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4230. ac_cxx_werror_flag=yes
  4231. ac_cv_prog_cxx_g=no
  4232. CXXFLAGS="-g"
  4233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4234. /* end confdefs.h. */
  4235. int
  4236. main ()
  4237. {
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. if ac_fn_cxx_try_compile "$LINENO"; then :
  4243. ac_cv_prog_cxx_g=yes
  4244. else
  4245. CXXFLAGS=""
  4246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4247. /* end confdefs.h. */
  4248. int
  4249. main ()
  4250. {
  4251. ;
  4252. return 0;
  4253. }
  4254. _ACEOF
  4255. if ac_fn_cxx_try_compile "$LINENO"; then :
  4256. else
  4257. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4258. CXXFLAGS="-g"
  4259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4260. /* end confdefs.h. */
  4261. int
  4262. main ()
  4263. {
  4264. ;
  4265. return 0;
  4266. }
  4267. _ACEOF
  4268. if ac_fn_cxx_try_compile "$LINENO"; then :
  4269. ac_cv_prog_cxx_g=yes
  4270. fi
  4271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4272. fi
  4273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4274. fi
  4275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4276. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4277. fi
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4279. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4280. if test "$ac_test_CXXFLAGS" = set; then
  4281. CXXFLAGS=$ac_save_CXXFLAGS
  4282. elif test $ac_cv_prog_cxx_g = yes; then
  4283. if test "$GXX" = yes; then
  4284. CXXFLAGS="-g -O2"
  4285. else
  4286. CXXFLAGS="-g"
  4287. fi
  4288. else
  4289. if test "$GXX" = yes; then
  4290. CXXFLAGS="-O2"
  4291. else
  4292. CXXFLAGS=
  4293. fi
  4294. fi
  4295. ac_ext=c
  4296. ac_cpp='$CPP $CPPFLAGS'
  4297. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4298. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4299. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4300. # Check if it's Intel's compiler, which (usually) pretends to be gcc,
  4301. # but has idiosyncrasies of its own. We assume icc will define
  4302. # __INTEL_COMPILER regardless of CFLAGS.
  4303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4304. /* end confdefs.h. */
  4305. int
  4306. main ()
  4307. {
  4308. #ifndef __INTEL_COMPILER
  4309. choke me
  4310. #endif
  4311. ;
  4312. return 0;
  4313. }
  4314. _ACEOF
  4315. if ac_fn_c_try_compile "$LINENO"; then :
  4316. ICC=yes
  4317. else
  4318. ICC=no
  4319. fi
  4320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4321. # Check if it's Sun Studio compiler. We assume that
  4322. # __SUNPRO_C will be defined for Sun Studio compilers
  4323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4324. /* end confdefs.h. */
  4325. int
  4326. main ()
  4327. {
  4328. #ifndef __SUNPRO_C
  4329. choke me
  4330. #endif
  4331. ;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. if ac_fn_c_try_compile "$LINENO"; then :
  4336. SUN_STUDIO_CC=yes
  4337. else
  4338. SUN_STUDIO_CC=no
  4339. fi
  4340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4341. #
  4342. # LLVM
  4343. #
  4344. # Checked early because subsequent tests depend on it.
  4345. # Check whether --with-llvm was given.
  4346. if test "${with_llvm+set}" = set; then :
  4347. withval=$with_llvm;
  4348. case $withval in
  4349. yes)
  4350. $as_echo "#define USE_LLVM 1" >>confdefs.h
  4351. ;;
  4352. no)
  4353. :
  4354. ;;
  4355. *)
  4356. as_fn_error $? "no argument expected for --with-llvm option" "$LINENO" 5
  4357. ;;
  4358. esac
  4359. else
  4360. with_llvm=no
  4361. fi
  4362. for ac_prog in gawk mawk nawk awk
  4363. do
  4364. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4365. set dummy $ac_prog; ac_word=$2
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4367. $as_echo_n "checking for $ac_word... " >&6; }
  4368. if ${ac_cv_prog_AWK+:} false; then :
  4369. $as_echo_n "(cached) " >&6
  4370. else
  4371. if test -n "$AWK"; then
  4372. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4373. else
  4374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4375. for as_dir in $PATH
  4376. do
  4377. IFS=$as_save_IFS
  4378. test -z "$as_dir" && as_dir=.
  4379. for ac_exec_ext in '' $ac_executable_extensions; do
  4380. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4381. ac_cv_prog_AWK="$ac_prog"
  4382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4383. break 2
  4384. fi
  4385. done
  4386. done
  4387. IFS=$as_save_IFS
  4388. fi
  4389. fi
  4390. AWK=$ac_cv_prog_AWK
  4391. if test -n "$AWK"; then
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4393. $as_echo "$AWK" >&6; }
  4394. else
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4396. $as_echo "no" >&6; }
  4397. fi
  4398. test -n "$AWK" && break
  4399. done
  4400. if test "$with_llvm" = yes; then :
  4401. if test -z "$LLVM_CONFIG"; then
  4402. for ac_prog in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
  4403. do
  4404. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4405. set dummy $ac_prog; ac_word=$2
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4407. $as_echo_n "checking for $ac_word... " >&6; }
  4408. if ${ac_cv_path_LLVM_CONFIG+:} false; then :
  4409. $as_echo_n "(cached) " >&6
  4410. else
  4411. case $LLVM_CONFIG in
  4412. [\\/]* | ?:[\\/]*)
  4413. ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
  4414. ;;
  4415. *)
  4416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4417. for as_dir in $PATH
  4418. do
  4419. IFS=$as_save_IFS
  4420. test -z "$as_dir" && as_dir=.
  4421. for ac_exec_ext in '' $ac_executable_extensions; do
  4422. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4423. ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4425. break 2
  4426. fi
  4427. done
  4428. done
  4429. IFS=$as_save_IFS
  4430. ;;
  4431. esac
  4432. fi
  4433. LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
  4434. if test -n "$LLVM_CONFIG"; then
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
  4436. $as_echo "$LLVM_CONFIG" >&6; }
  4437. else
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4439. $as_echo "no" >&6; }
  4440. fi
  4441. test -n "$LLVM_CONFIG" && break
  4442. done
  4443. else
  4444. # Report the value of LLVM_CONFIG in configure's output in all cases.
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
  4446. $as_echo_n "checking for LLVM_CONFIG... " >&6; }
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
  4448. $as_echo "$LLVM_CONFIG" >&6; }
  4449. fi
  4450. # no point continuing if llvm wasn't found
  4451. if test -z "$LLVM_CONFIG"; then
  4452. as_fn_error $? "llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
  4453. fi
  4454. # check if detected $LLVM_CONFIG is executable
  4455. pgac_llvm_version="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
  4456. if test "x$pgac_llvm_version" = "xno"; then
  4457. as_fn_error $? "$LLVM_CONFIG does not work" "$LINENO" 5
  4458. fi
  4459. # and whether the version is supported
  4460. if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
  4461. as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
  4462. fi
  4463. # need clang to create some bitcode files
  4464. if test -z "$CLANG"; then
  4465. for ac_prog in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
  4466. do
  4467. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4468. set dummy $ac_prog; ac_word=$2
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4470. $as_echo_n "checking for $ac_word... " >&6; }
  4471. if ${ac_cv_path_CLANG+:} false; then :
  4472. $as_echo_n "(cached) " >&6
  4473. else
  4474. case $CLANG in
  4475. [\\/]* | ?:[\\/]*)
  4476. ac_cv_path_CLANG="$CLANG" # Let the user override the test with a path.
  4477. ;;
  4478. *)
  4479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4480. for as_dir in $PATH
  4481. do
  4482. IFS=$as_save_IFS
  4483. test -z "$as_dir" && as_dir=.
  4484. for ac_exec_ext in '' $ac_executable_extensions; do
  4485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4486. ac_cv_path_CLANG="$as_dir/$ac_word$ac_exec_ext"
  4487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4488. break 2
  4489. fi
  4490. done
  4491. done
  4492. IFS=$as_save_IFS
  4493. ;;
  4494. esac
  4495. fi
  4496. CLANG=$ac_cv_path_CLANG
  4497. if test -n "$CLANG"; then
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
  4499. $as_echo "$CLANG" >&6; }
  4500. else
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4502. $as_echo "no" >&6; }
  4503. fi
  4504. test -n "$CLANG" && break
  4505. done
  4506. else
  4507. # Report the value of CLANG in configure's output in all cases.
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
  4509. $as_echo_n "checking for CLANG... " >&6; }
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
  4511. $as_echo "$CLANG" >&6; }
  4512. fi
  4513. if test -z "$CLANG"; then
  4514. as_fn_error $? "clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
  4515. fi
  4516. # make sure clang is executable
  4517. if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
  4518. as_fn_error $? "$CLANG does not work" "$LINENO" 5
  4519. fi
  4520. # Could check clang version, but it doesn't seem that
  4521. # important. Systems with a new enough LLVM version are usually
  4522. # going to have a decent clang version too. It's also not entirely
  4523. # clear what the minimum version is.
  4524. # Collect compiler flags necessary to build the LLVM dependent
  4525. # shared library.
  4526. for pgac_option in `$LLVM_CONFIG --cppflags`; do
  4527. case $pgac_option in
  4528. -I*|-D*) LLVM_CPPFLAGS="$pgac_option $LLVM_CPPFLAGS";;
  4529. esac
  4530. done
  4531. for pgac_option in `$LLVM_CONFIG --ldflags`; do
  4532. case $pgac_option in
  4533. -L*) LDFLAGS="$LDFLAGS $pgac_option";;
  4534. esac
  4535. done
  4536. # ABI influencing options, standard influencing options
  4537. for pgac_option in `$LLVM_CONFIG --cxxflags`; do
  4538. case $pgac_option in
  4539. -fno-rtti*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
  4540. -std=*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
  4541. esac
  4542. done
  4543. # Look for components we're interested in, collect necessary
  4544. # libs. As some components are optional, we can't just list all of
  4545. # them as it'd raise an error.
  4546. pgac_components='';
  4547. for pgac_component in `$LLVM_CONFIG --components`; do
  4548. case $pgac_component in
  4549. engine) pgac_components="$pgac_components $pgac_component";;
  4550. debuginfodwarf) pgac_components="$pgac_components $pgac_component";;
  4551. orcjit) pgac_components="$pgac_components $pgac_component";;
  4552. passes) pgac_components="$pgac_components $pgac_component";;
  4553. perfjitevents) pgac_components="$pgac_components $pgac_component";;
  4554. esac
  4555. done;
  4556. # And then get the libraries that need to be linked in for the
  4557. # selected components. They're large libraries, we only want to
  4558. # link them into the LLVM using shared library.
  4559. for pgac_option in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
  4560. case $pgac_option in
  4561. -l*) LLVM_LIBS="$LLVM_LIBS $pgac_option";;
  4562. esac
  4563. done
  4564. LLVM_BINPATH=`$LLVM_CONFIG --bindir`
  4565. # LLVM_CONFIG, CLANG are already output via AC_ARG_VAR
  4566. fi # fi
  4567. unset CFLAGS
  4568. unset CXXFLAGS
  4569. #
  4570. # Read the template
  4571. #
  4572. . "$srcdir/src/template/$template" || exit
  4573. # C[XX]FLAGS are selected so:
  4574. # If the user specifies something in the environment, that is used.
  4575. # else: If the template file set something, that is used.
  4576. # else: If coverage was enabled, don't set anything.
  4577. # else: If the compiler is GCC, then we use -O2.
  4578. # else: If the compiler is something else, then we use -O, unless debugging.
  4579. if test "$ac_env_CFLAGS_set" = set; then
  4580. CFLAGS=$ac_env_CFLAGS_value
  4581. elif test "${CFLAGS+set}" = set; then
  4582. : # (keep what template set)
  4583. elif test "$enable_coverage" = yes; then
  4584. : # no optimization by default
  4585. elif test "$GCC" = yes; then
  4586. CFLAGS="-O2"
  4587. else
  4588. # if the user selected debug mode, don't use -O
  4589. if test "$enable_debug" != yes; then
  4590. CFLAGS="-O"
  4591. fi
  4592. fi
  4593. if test "$ac_env_CXXFLAGS_set" = set; then
  4594. CXXFLAGS=$ac_env_CXXFLAGS_value
  4595. elif test "${CXXFLAGS+set}" = set; then
  4596. : # (keep what template set)
  4597. elif test "$enable_coverage" = yes; then
  4598. : # no optimization by default
  4599. elif test "$GCC" = yes; then
  4600. CXXFLAGS="-O2"
  4601. else
  4602. # if the user selected debug mode, don't use -O
  4603. if test "$enable_debug" != yes; then
  4604. CXXFLAGS="-O"
  4605. fi
  4606. fi
  4607. # When generating bitcode (for inlining) we always want to use -O2
  4608. # even when --enable-debug is specified. The bitcode it's not going to
  4609. # be used for line-by-line debugging, and JIT inlining doesn't work
  4610. # without at least -O1 (otherwise clang will emit 'noinline'
  4611. # attributes everywhere), which is bad for testing. Still allow the
  4612. # environment to override if done explicitly.
  4613. if test "$ac_env_BITCODE_CFLAGS_set" = set; then
  4614. BITCODE_CFLAGS=$ac_env_BITCODE_CFLAGS_value
  4615. else
  4616. BITCODE_CFLAGS="-O2 $BITCODE_CFLAGS"
  4617. fi
  4618. if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
  4619. BITCODE_CXXFLAGS=$ac_env_BITCODE_CXXFLAGS_value
  4620. else
  4621. BITCODE_CXXFLAGS="-O2 $BITCODE_CXXFLAGS"
  4622. fi
  4623. # C[XX]FLAGS we determined above will be added back at the end
  4624. user_CFLAGS=$CFLAGS
  4625. CFLAGS=""
  4626. user_CXXFLAGS=$CXXFLAGS
  4627. CXXFLAGS=""
  4628. user_BITCODE_CFLAGS=$BITCODE_CFLAGS
  4629. BITCODE_CFLAGS=""
  4630. user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
  4631. BITCODE_CXXFLAGS=""
  4632. # set CFLAGS_VECTOR from the environment, if available
  4633. if test "$ac_env_CFLAGS_VECTOR_set" = set; then
  4634. CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
  4635. fi
  4636. # Some versions of GCC support some additional useful warning flags.
  4637. # Check whether they are supported, and add them to CFLAGS if so.
  4638. # ICC pretends to be GCC but it's lying; it doesn't support these flags,
  4639. # but has its own. Also check other compiler-specific flags here.
  4640. if test "$GCC" = yes -a "$ICC" = no; then
  4641. CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
  4642. CXXFLAGS="-Wall -Wpointer-arith"
  4643. # These work in some but not all gcc versions
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
  4645. $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
  4646. if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. pgac_save_CFLAGS=$CFLAGS
  4650. pgac_save_CC=$CC
  4651. CC=${CC}
  4652. CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
  4653. ac_save_c_werror_flag=$ac_c_werror_flag
  4654. ac_c_werror_flag=yes
  4655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4656. /* end confdefs.h. */
  4657. int
  4658. main ()
  4659. {
  4660. ;
  4661. return 0;
  4662. }
  4663. _ACEOF
  4664. if ac_fn_c_try_compile "$LINENO"; then :
  4665. pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=yes
  4666. else
  4667. pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=no
  4668. fi
  4669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4670. ac_c_werror_flag=$ac_save_c_werror_flag
  4671. CFLAGS="$pgac_save_CFLAGS"
  4672. CC="$pgac_save_CC"
  4673. fi
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
  4675. $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
  4676. if test x"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x"yes"; then
  4677. CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
  4678. fi
  4679. # -Wdeclaration-after-statement isn't applicable for C++
  4680. # Really don't want VLAs to be used in our dialect of C
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
  4682. $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
  4683. if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. pgac_save_CFLAGS=$CFLAGS
  4687. pgac_save_CC=$CC
  4688. CC=${CC}
  4689. CFLAGS="${CFLAGS} -Werror=vla"
  4690. ac_save_c_werror_flag=$ac_c_werror_flag
  4691. ac_c_werror_flag=yes
  4692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4693. /* end confdefs.h. */
  4694. int
  4695. main ()
  4696. {
  4697. ;
  4698. return 0;
  4699. }
  4700. _ACEOF
  4701. if ac_fn_c_try_compile "$LINENO"; then :
  4702. pgac_cv_prog_CC_cflags__Werror_vla=yes
  4703. else
  4704. pgac_cv_prog_CC_cflags__Werror_vla=no
  4705. fi
  4706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. ac_c_werror_flag=$ac_save_c_werror_flag
  4708. CFLAGS="$pgac_save_CFLAGS"
  4709. CC="$pgac_save_CC"
  4710. fi
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
  4712. $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
  4713. if test x"$pgac_cv_prog_CC_cflags__Werror_vla" = x"yes"; then
  4714. CFLAGS="${CFLAGS} -Werror=vla"
  4715. fi
  4716. # -Wvla is not applicable for C++
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
  4718. $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
  4719. if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. pgac_save_CFLAGS=$CFLAGS
  4723. pgac_save_CC=$CC
  4724. CC=${CC}
  4725. CFLAGS="${CFLAGS} -Wendif-labels"
  4726. ac_save_c_werror_flag=$ac_c_werror_flag
  4727. ac_c_werror_flag=yes
  4728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4729. /* end confdefs.h. */
  4730. int
  4731. main ()
  4732. {
  4733. ;
  4734. return 0;
  4735. }
  4736. _ACEOF
  4737. if ac_fn_c_try_compile "$LINENO"; then :
  4738. pgac_cv_prog_CC_cflags__Wendif_labels=yes
  4739. else
  4740. pgac_cv_prog_CC_cflags__Wendif_labels=no
  4741. fi
  4742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4743. ac_c_werror_flag=$ac_save_c_werror_flag
  4744. CFLAGS="$pgac_save_CFLAGS"
  4745. CC="$pgac_save_CC"
  4746. fi
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
  4748. $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
  4749. if test x"$pgac_cv_prog_CC_cflags__Wendif_labels" = x"yes"; then
  4750. CFLAGS="${CFLAGS} -Wendif-labels"
  4751. fi
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
  4753. $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
  4754. if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false; then :
  4755. $as_echo_n "(cached) " >&6
  4756. else
  4757. pgac_save_CXXFLAGS=$CXXFLAGS
  4758. pgac_save_CXX=$CXX
  4759. CXX=${CXX}
  4760. CXXFLAGS="${CXXFLAGS} -Wendif-labels"
  4761. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4762. ac_cxx_werror_flag=yes
  4763. ac_ext=cpp
  4764. ac_cpp='$CXXCPP $CPPFLAGS'
  4765. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4766. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4767. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4769. /* end confdefs.h. */
  4770. int
  4771. main ()
  4772. {
  4773. ;
  4774. return 0;
  4775. }
  4776. _ACEOF
  4777. if ac_fn_cxx_try_compile "$LINENO"; then :
  4778. pgac_cv_prog_CXX_cxxflags__Wendif_labels=yes
  4779. else
  4780. pgac_cv_prog_CXX_cxxflags__Wendif_labels=no
  4781. fi
  4782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4783. ac_ext=c
  4784. ac_cpp='$CPP $CPPFLAGS'
  4785. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4786. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4787. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4788. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4789. CXXFLAGS="$pgac_save_CXXFLAGS"
  4790. CXX="$pgac_save_CXX"
  4791. fi
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
  4793. $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
  4794. if test x"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x"yes"; then
  4795. CXXFLAGS="${CXXFLAGS} -Wendif-labels"
  4796. fi
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
  4798. $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
  4799. if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. pgac_save_CFLAGS=$CFLAGS
  4803. pgac_save_CC=$CC
  4804. CC=${CC}
  4805. CFLAGS="${CFLAGS} -Wmissing-format-attribute"
  4806. ac_save_c_werror_flag=$ac_c_werror_flag
  4807. ac_c_werror_flag=yes
  4808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4809. /* end confdefs.h. */
  4810. int
  4811. main ()
  4812. {
  4813. ;
  4814. return 0;
  4815. }
  4816. _ACEOF
  4817. if ac_fn_c_try_compile "$LINENO"; then :
  4818. pgac_cv_prog_CC_cflags__Wmissing_format_attribute=yes
  4819. else
  4820. pgac_cv_prog_CC_cflags__Wmissing_format_attribute=no
  4821. fi
  4822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4823. ac_c_werror_flag=$ac_save_c_werror_flag
  4824. CFLAGS="$pgac_save_CFLAGS"
  4825. CC="$pgac_save_CC"
  4826. fi
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
  4828. $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
  4829. if test x"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x"yes"; then
  4830. CFLAGS="${CFLAGS} -Wmissing-format-attribute"
  4831. fi
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
  4833. $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
  4834. if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. pgac_save_CXXFLAGS=$CXXFLAGS
  4838. pgac_save_CXX=$CXX
  4839. CXX=${CXX}
  4840. CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
  4841. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4842. ac_cxx_werror_flag=yes
  4843. ac_ext=cpp
  4844. ac_cpp='$CXXCPP $CPPFLAGS'
  4845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4849. /* end confdefs.h. */
  4850. int
  4851. main ()
  4852. {
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. if ac_fn_cxx_try_compile "$LINENO"; then :
  4858. pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=yes
  4859. else
  4860. pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=no
  4861. fi
  4862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4863. ac_ext=c
  4864. ac_cpp='$CPP $CPPFLAGS'
  4865. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4866. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4867. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4868. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4869. CXXFLAGS="$pgac_save_CXXFLAGS"
  4870. CXX="$pgac_save_CXX"
  4871. fi
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
  4873. $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
  4874. if test x"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x"yes"; then
  4875. CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
  4876. fi
  4877. # This was included in -Wall/-Wformat in older GCC versions
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
  4879. $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
  4880. if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. pgac_save_CFLAGS=$CFLAGS
  4884. pgac_save_CC=$CC
  4885. CC=${CC}
  4886. CFLAGS="${CFLAGS} -Wformat-security"
  4887. ac_save_c_werror_flag=$ac_c_werror_flag
  4888. ac_c_werror_flag=yes
  4889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4890. /* end confdefs.h. */
  4891. int
  4892. main ()
  4893. {
  4894. ;
  4895. return 0;
  4896. }
  4897. _ACEOF
  4898. if ac_fn_c_try_compile "$LINENO"; then :
  4899. pgac_cv_prog_CC_cflags__Wformat_security=yes
  4900. else
  4901. pgac_cv_prog_CC_cflags__Wformat_security=no
  4902. fi
  4903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4904. ac_c_werror_flag=$ac_save_c_werror_flag
  4905. CFLAGS="$pgac_save_CFLAGS"
  4906. CC="$pgac_save_CC"
  4907. fi
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
  4909. $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
  4910. if test x"$pgac_cv_prog_CC_cflags__Wformat_security" = x"yes"; then
  4911. CFLAGS="${CFLAGS} -Wformat-security"
  4912. fi
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
  4914. $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
  4915. if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. pgac_save_CXXFLAGS=$CXXFLAGS
  4919. pgac_save_CXX=$CXX
  4920. CXX=${CXX}
  4921. CXXFLAGS="${CXXFLAGS} -Wformat-security"
  4922. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4923. ac_cxx_werror_flag=yes
  4924. ac_ext=cpp
  4925. ac_cpp='$CXXCPP $CPPFLAGS'
  4926. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4927. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4928. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4930. /* end confdefs.h. */
  4931. int
  4932. main ()
  4933. {
  4934. ;
  4935. return 0;
  4936. }
  4937. _ACEOF
  4938. if ac_fn_cxx_try_compile "$LINENO"; then :
  4939. pgac_cv_prog_CXX_cxxflags__Wformat_security=yes
  4940. else
  4941. pgac_cv_prog_CXX_cxxflags__Wformat_security=no
  4942. fi
  4943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4944. ac_ext=c
  4945. ac_cpp='$CPP $CPPFLAGS'
  4946. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4947. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4948. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4949. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4950. CXXFLAGS="$pgac_save_CXXFLAGS"
  4951. CXX="$pgac_save_CXX"
  4952. fi
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
  4954. $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
  4955. if test x"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x"yes"; then
  4956. CXXFLAGS="${CXXFLAGS} -Wformat-security"
  4957. fi
  4958. # Disable strict-aliasing rules; needed for gcc 3.3+
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
  4960. $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
  4961. if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then :
  4962. $as_echo_n "(cached) " >&6
  4963. else
  4964. pgac_save_CFLAGS=$CFLAGS
  4965. pgac_save_CC=$CC
  4966. CC=${CC}
  4967. CFLAGS="${CFLAGS} -fno-strict-aliasing"
  4968. ac_save_c_werror_flag=$ac_c_werror_flag
  4969. ac_c_werror_flag=yes
  4970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4971. /* end confdefs.h. */
  4972. int
  4973. main ()
  4974. {
  4975. ;
  4976. return 0;
  4977. }
  4978. _ACEOF
  4979. if ac_fn_c_try_compile "$LINENO"; then :
  4980. pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes
  4981. else
  4982. pgac_cv_prog_CC_cflags__fno_strict_aliasing=no
  4983. fi
  4984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4985. ac_c_werror_flag=$ac_save_c_werror_flag
  4986. CFLAGS="$pgac_save_CFLAGS"
  4987. CC="$pgac_save_CC"
  4988. fi
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
  4990. $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
  4991. if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then
  4992. CFLAGS="${CFLAGS} -fno-strict-aliasing"
  4993. fi
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
  4995. $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
  4996. if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. pgac_save_CXXFLAGS=$CXXFLAGS
  5000. pgac_save_CXX=$CXX
  5001. CXX=${CXX}
  5002. CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
  5003. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5004. ac_cxx_werror_flag=yes
  5005. ac_ext=cpp
  5006. ac_cpp='$CXXCPP $CPPFLAGS'
  5007. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5008. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5009. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5011. /* end confdefs.h. */
  5012. int
  5013. main ()
  5014. {
  5015. ;
  5016. return 0;
  5017. }
  5018. _ACEOF
  5019. if ac_fn_cxx_try_compile "$LINENO"; then :
  5020. pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes
  5021. else
  5022. pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no
  5023. fi
  5024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5025. ac_ext=c
  5026. ac_cpp='$CPP $CPPFLAGS'
  5027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5030. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5031. CXXFLAGS="$pgac_save_CXXFLAGS"
  5032. CXX="$pgac_save_CXX"
  5033. fi
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
  5035. $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
  5036. if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then
  5037. CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
  5038. fi
  5039. # Disable optimizations that assume no overflow; needed for gcc 4.3+
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
  5041. $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
  5042. if ${pgac_cv_prog_CC_cflags__fwrapv+:} false; then :
  5043. $as_echo_n "(cached) " >&6
  5044. else
  5045. pgac_save_CFLAGS=$CFLAGS
  5046. pgac_save_CC=$CC
  5047. CC=${CC}
  5048. CFLAGS="${CFLAGS} -fwrapv"
  5049. ac_save_c_werror_flag=$ac_c_werror_flag
  5050. ac_c_werror_flag=yes
  5051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5052. /* end confdefs.h. */
  5053. int
  5054. main ()
  5055. {
  5056. ;
  5057. return 0;
  5058. }
  5059. _ACEOF
  5060. if ac_fn_c_try_compile "$LINENO"; then :
  5061. pgac_cv_prog_CC_cflags__fwrapv=yes
  5062. else
  5063. pgac_cv_prog_CC_cflags__fwrapv=no
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5066. ac_c_werror_flag=$ac_save_c_werror_flag
  5067. CFLAGS="$pgac_save_CFLAGS"
  5068. CC="$pgac_save_CC"
  5069. fi
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
  5071. $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
  5072. if test x"$pgac_cv_prog_CC_cflags__fwrapv" = x"yes"; then
  5073. CFLAGS="${CFLAGS} -fwrapv"
  5074. fi
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
  5076. $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
  5077. if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. pgac_save_CXXFLAGS=$CXXFLAGS
  5081. pgac_save_CXX=$CXX
  5082. CXX=${CXX}
  5083. CXXFLAGS="${CXXFLAGS} -fwrapv"
  5084. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5085. ac_cxx_werror_flag=yes
  5086. ac_ext=cpp
  5087. ac_cpp='$CXXCPP $CPPFLAGS'
  5088. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5089. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5090. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5092. /* end confdefs.h. */
  5093. int
  5094. main ()
  5095. {
  5096. ;
  5097. return 0;
  5098. }
  5099. _ACEOF
  5100. if ac_fn_cxx_try_compile "$LINENO"; then :
  5101. pgac_cv_prog_CXX_cxxflags__fwrapv=yes
  5102. else
  5103. pgac_cv_prog_CXX_cxxflags__fwrapv=no
  5104. fi
  5105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5106. ac_ext=c
  5107. ac_cpp='$CPP $CPPFLAGS'
  5108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5111. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5112. CXXFLAGS="$pgac_save_CXXFLAGS"
  5113. CXX="$pgac_save_CXX"
  5114. fi
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
  5116. $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
  5117. if test x"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x"yes"; then
  5118. CXXFLAGS="${CXXFLAGS} -fwrapv"
  5119. fi
  5120. # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
  5122. $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
  5123. if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. pgac_save_CFLAGS=$CFLAGS
  5127. pgac_save_CC=$CC
  5128. CC=${CC}
  5129. CFLAGS="${CFLAGS} -fexcess-precision=standard"
  5130. ac_save_c_werror_flag=$ac_c_werror_flag
  5131. ac_c_werror_flag=yes
  5132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5133. /* end confdefs.h. */
  5134. int
  5135. main ()
  5136. {
  5137. ;
  5138. return 0;
  5139. }
  5140. _ACEOF
  5141. if ac_fn_c_try_compile "$LINENO"; then :
  5142. pgac_cv_prog_CC_cflags__fexcess_precision_standard=yes
  5143. else
  5144. pgac_cv_prog_CC_cflags__fexcess_precision_standard=no
  5145. fi
  5146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5147. ac_c_werror_flag=$ac_save_c_werror_flag
  5148. CFLAGS="$pgac_save_CFLAGS"
  5149. CC="$pgac_save_CC"
  5150. fi
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
  5152. $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
  5153. if test x"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x"yes"; then
  5154. CFLAGS="${CFLAGS} -fexcess-precision=standard"
  5155. fi
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
  5157. $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
  5158. if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. pgac_save_CXXFLAGS=$CXXFLAGS
  5162. pgac_save_CXX=$CXX
  5163. CXX=${CXX}
  5164. CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
  5165. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5166. ac_cxx_werror_flag=yes
  5167. ac_ext=cpp
  5168. ac_cpp='$CXXCPP $CPPFLAGS'
  5169. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5170. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5171. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5173. /* end confdefs.h. */
  5174. int
  5175. main ()
  5176. {
  5177. ;
  5178. return 0;
  5179. }
  5180. _ACEOF
  5181. if ac_fn_cxx_try_compile "$LINENO"; then :
  5182. pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=yes
  5183. else
  5184. pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=no
  5185. fi
  5186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5187. ac_ext=c
  5188. ac_cpp='$CPP $CPPFLAGS'
  5189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5192. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5193. CXXFLAGS="$pgac_save_CXXFLAGS"
  5194. CXX="$pgac_save_CXX"
  5195. fi
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
  5197. $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
  5198. if test x"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x"yes"; then
  5199. CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
  5200. fi
  5201. # Optimization flags for specific files that benefit from vectorization
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
  5203. $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
  5204. if ${pgac_cv_prog_CC_cflags__funroll_loops+:} fa