configure.gm4 161 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.56.
  4. #
  5. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  6. # Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. # Support unset when possible.
  23. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. as_mkdir_p=false
  200. fi
  201. as_executable_p="test -f"
  202. # Sed expression to map a string onto a valid CPP name.
  203. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  204. # Sed expression to map a string onto a valid variable name.
  205. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  206. # IFS
  207. # We need space, tab and new line, in precisely that order.
  208. as_nl='
  209. '
  210. IFS=" $as_nl"
  211. # CDPATH.
  212. $as_unset CDPATH
  213. # Name of the host.
  214. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  215. # so uname gets run too.
  216. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  217. exec 6>&1
  218. #
  219. # Initializations.
  220. #
  221. ac_default_prefix=/usr/local
  222. ac_config_libobj_dir=.
  223. cross_compiling=no
  224. subdirs=
  225. MFLAGS=
  226. MAKEFLAGS=
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. # Maximum number of lines to put in a shell here document.
  229. # This variable seems obsolete. It should probably be removed, and
  230. # only ac_max_sed_lines should be used.
  231. : ${ac_max_here_lines=38}
  232. # Identity of this package.
  233. PACKAGE_NAME=
  234. PACKAGE_TARNAME=
  235. PACKAGE_VERSION=
  236. PACKAGE_STRING=
  237. PACKAGE_BUGREPORT=
  238. ac_unique_file="src/m4.c"
  239. # Factoring default headers for most tests.
  240. ac_includes_default="\
  241. #include <stdio.h>
  242. #if HAVE_SYS_TYPES_H
  243. # include <sys/types.h>
  244. #endif
  245. #if HAVE_SYS_STAT_H
  246. # include <sys/stat.h>
  247. #endif
  248. #if STDC_HEADERS
  249. # include <stdlib.h>
  250. # include <stddef.h>
  251. #else
  252. # if HAVE_STDLIB_H
  253. # include <stdlib.h>
  254. # endif
  255. #endif
  256. #if HAVE_STRING_H
  257. # if !STDC_HEADERS && HAVE_MEMORY_H
  258. # include <memory.h>
  259. # endif
  260. # include <string.h>
  261. #endif
  262. #if HAVE_STRINGS_H
  263. # include <strings.h>
  264. #endif
  265. #if HAVE_INTTYPES_H
  266. # include <inttypes.h>
  267. #else
  268. # if HAVE_STDINT_H
  269. # include <stdint.h>
  270. # endif
  271. #endif
  272. #if HAVE_UNISTD_H
  273. # include <unistd.h>
  274. #endif"
  275. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PRODUCT VERSION AWK CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS LTLIBOBJS'
  276. ac_subst_files=''
  277. # Initialize some variables set by options.
  278. ac_init_help=
  279. ac_init_version=false
  280. # The variables have the same names as the options, with
  281. # dashes changed to underlines.
  282. cache_file=/dev/null
  283. exec_prefix=NONE
  284. no_create=
  285. no_recursion=
  286. prefix=NONE
  287. program_prefix=NONE
  288. program_suffix=NONE
  289. program_transform_name=s,x,x,
  290. silent=
  291. site=
  292. srcdir=
  293. verbose=
  294. x_includes=NONE
  295. x_libraries=NONE
  296. # Installation directory options.
  297. # These are left unexpanded so users can "make install exec_prefix=/foo"
  298. # and all the variables that are supposed to be based on exec_prefix
  299. # by default will actually change.
  300. # Use braces instead of parens because sh, perl, etc. also accept them.
  301. bindir='${exec_prefix}/bin'
  302. sbindir='${exec_prefix}/sbin'
  303. libexecdir='${exec_prefix}/libexec'
  304. datadir='${prefix}/share'
  305. sysconfdir='${prefix}/etc'
  306. sharedstatedir='${prefix}/com'
  307. localstatedir='${prefix}/var'
  308. libdir='${exec_prefix}/lib'
  309. includedir='${prefix}/include'
  310. oldincludedir='/usr/include'
  311. infodir='${prefix}/info'
  312. mandir='${prefix}/man'
  313. ac_prev=
  314. for ac_option
  315. do
  316. # If the previous option needs an argument, assign it.
  317. if test -n "$ac_prev"; then
  318. eval "$ac_prev=\$ac_option"
  319. ac_prev=
  320. continue
  321. fi
  322. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  323. # Accept the important Cygnus configure options, so we can diagnose typos.
  324. case $ac_option in
  325. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  326. ac_prev=bindir ;;
  327. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  328. bindir=$ac_optarg ;;
  329. -build | --build | --buil | --bui | --bu)
  330. ac_prev=build_alias ;;
  331. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  332. build_alias=$ac_optarg ;;
  333. -cache-file | --cache-file | --cache-fil | --cache-fi \
  334. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  335. ac_prev=cache_file ;;
  336. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  337. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  338. cache_file=$ac_optarg ;;
  339. --config-cache | -C)
  340. cache_file=config.cache ;;
  341. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  342. ac_prev=datadir ;;
  343. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  344. | --da=*)
  345. datadir=$ac_optarg ;;
  346. -disable-* | --disable-*)
  347. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  348. # Reject names that are not valid shell variable names.
  349. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  350. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  351. { (exit 1); exit 1; }; }
  352. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  353. eval "enable_$ac_feature=no" ;;
  354. -enable-* | --enable-*)
  355. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  356. # Reject names that are not valid shell variable names.
  357. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  358. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  359. { (exit 1); exit 1; }; }
  360. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  361. case $ac_option in
  362. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  363. *) ac_optarg=yes ;;
  364. esac
  365. eval "enable_$ac_feature='$ac_optarg'" ;;
  366. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  367. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  368. | --exec | --exe | --ex)
  369. ac_prev=exec_prefix ;;
  370. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  371. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  372. | --exec=* | --exe=* | --ex=*)
  373. exec_prefix=$ac_optarg ;;
  374. -gas | --gas | --ga | --g)
  375. # Obsolete; use --with-gas.
  376. with_gas=yes ;;
  377. -help | --help | --hel | --he | -h)
  378. ac_init_help=long ;;
  379. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  380. ac_init_help=recursive ;;
  381. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  382. ac_init_help=short ;;
  383. -host | --host | --hos | --ho)
  384. ac_prev=host_alias ;;
  385. -host=* | --host=* | --hos=* | --ho=*)
  386. host_alias=$ac_optarg ;;
  387. -includedir | --includedir | --includedi | --included | --include \
  388. | --includ | --inclu | --incl | --inc)
  389. ac_prev=includedir ;;
  390. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  391. | --includ=* | --inclu=* | --incl=* | --inc=*)
  392. includedir=$ac_optarg ;;
  393. -infodir | --infodir | --infodi | --infod | --info | --inf)
  394. ac_prev=infodir ;;
  395. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  396. infodir=$ac_optarg ;;
  397. -libdir | --libdir | --libdi | --libd)
  398. ac_prev=libdir ;;
  399. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  400. libdir=$ac_optarg ;;
  401. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  402. | --libexe | --libex | --libe)
  403. ac_prev=libexecdir ;;
  404. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  405. | --libexe=* | --libex=* | --libe=*)
  406. libexecdir=$ac_optarg ;;
  407. -localstatedir | --localstatedir | --localstatedi | --localstated \
  408. | --localstate | --localstat | --localsta | --localst \
  409. | --locals | --local | --loca | --loc | --lo)
  410. ac_prev=localstatedir ;;
  411. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  412. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  413. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  414. localstatedir=$ac_optarg ;;
  415. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  416. ac_prev=mandir ;;
  417. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  418. mandir=$ac_optarg ;;
  419. -nfp | --nfp | --nf)
  420. # Obsolete; use --without-fp.
  421. with_fp=no ;;
  422. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  423. | --no-cr | --no-c | -n)
  424. no_create=yes ;;
  425. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  426. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  427. no_recursion=yes ;;
  428. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  429. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  430. | --oldin | --oldi | --old | --ol | --o)
  431. ac_prev=oldincludedir ;;
  432. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  433. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  434. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  435. oldincludedir=$ac_optarg ;;
  436. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  437. ac_prev=prefix ;;
  438. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  439. prefix=$ac_optarg ;;
  440. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  441. | --program-pre | --program-pr | --program-p)
  442. ac_prev=program_prefix ;;
  443. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  444. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  445. program_prefix=$ac_optarg ;;
  446. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  447. | --program-suf | --program-su | --program-s)
  448. ac_prev=program_suffix ;;
  449. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  450. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  451. program_suffix=$ac_optarg ;;
  452. -program-transform-name | --program-transform-name \
  453. | --program-transform-nam | --program-transform-na \
  454. | --program-transform-n | --program-transform- \
  455. | --program-transform | --program-transfor \
  456. | --program-transfo | --program-transf \
  457. | --program-trans | --program-tran \
  458. | --progr-tra | --program-tr | --program-t)
  459. ac_prev=program_transform_name ;;
  460. -program-transform-name=* | --program-transform-name=* \
  461. | --program-transform-nam=* | --program-transform-na=* \
  462. | --program-transform-n=* | --program-transform-=* \
  463. | --program-transform=* | --program-transfor=* \
  464. | --program-transfo=* | --program-transf=* \
  465. | --program-trans=* | --program-tran=* \
  466. | --progr-tra=* | --program-tr=* | --program-t=*)
  467. program_transform_name=$ac_optarg ;;
  468. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  469. | -silent | --silent | --silen | --sile | --sil)
  470. silent=yes ;;
  471. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  472. ac_prev=sbindir ;;
  473. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  474. | --sbi=* | --sb=*)
  475. sbindir=$ac_optarg ;;
  476. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  477. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  478. | --sharedst | --shareds | --shared | --share | --shar \
  479. | --sha | --sh)
  480. ac_prev=sharedstatedir ;;
  481. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  482. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  483. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  484. | --sha=* | --sh=*)
  485. sharedstatedir=$ac_optarg ;;
  486. -site | --site | --sit)
  487. ac_prev=site ;;
  488. -site=* | --site=* | --sit=*)
  489. site=$ac_optarg ;;
  490. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  491. ac_prev=srcdir ;;
  492. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  493. srcdir=$ac_optarg ;;
  494. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  495. | --syscon | --sysco | --sysc | --sys | --sy)
  496. ac_prev=sysconfdir ;;
  497. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  498. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  499. sysconfdir=$ac_optarg ;;
  500. -target | --target | --targe | --targ | --tar | --ta | --t)
  501. ac_prev=target_alias ;;
  502. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  503. target_alias=$ac_optarg ;;
  504. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  505. verbose=yes ;;
  506. -version | --version | --versio | --versi | --vers | -V)
  507. ac_init_version=: ;;
  508. -with-* | --with-*)
  509. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  510. # Reject names that are not valid shell variable names.
  511. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  512. { echo "$as_me: error: invalid package name: $ac_package" >&2
  513. { (exit 1); exit 1; }; }
  514. ac_package=`echo $ac_package| sed 's/-/_/g'`
  515. case $ac_option in
  516. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  517. *) ac_optarg=yes ;;
  518. esac
  519. eval "with_$ac_package='$ac_optarg'" ;;
  520. -without-* | --without-*)
  521. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  522. # Reject names that are not valid shell variable names.
  523. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  524. { echo "$as_me: error: invalid package name: $ac_package" >&2
  525. { (exit 1); exit 1; }; }
  526. ac_package=`echo $ac_package | sed 's/-/_/g'`
  527. eval "with_$ac_package=no" ;;
  528. --x)
  529. # Obsolete; use --with-x.
  530. with_x=yes ;;
  531. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  532. | --x-incl | --x-inc | --x-in | --x-i)
  533. ac_prev=x_includes ;;
  534. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  535. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  536. x_includes=$ac_optarg ;;
  537. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  538. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  539. ac_prev=x_libraries ;;
  540. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  541. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  542. x_libraries=$ac_optarg ;;
  543. -*) { echo "$as_me: error: unrecognized option: $ac_option
  544. Try \`$0 --help' for more information." >&2
  545. { (exit 1); exit 1; }; }
  546. ;;
  547. *=*)
  548. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  549. # Reject names that are not valid shell variable names.
  550. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  551. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  552. { (exit 1); exit 1; }; }
  553. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  554. eval "$ac_envvar='$ac_optarg'"
  555. export $ac_envvar ;;
  556. *)
  557. # FIXME: should be removed in autoconf 3.0.
  558. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  559. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  560. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  561. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  562. ;;
  563. esac
  564. done
  565. if test -n "$ac_prev"; then
  566. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  567. { echo "$as_me: error: missing argument to $ac_option" >&2
  568. { (exit 1); exit 1; }; }
  569. fi
  570. # Be sure to have absolute paths.
  571. for ac_var in exec_prefix prefix
  572. do
  573. eval ac_val=$`echo $ac_var`
  574. case $ac_val in
  575. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  576. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  577. { (exit 1); exit 1; }; };;
  578. esac
  579. done
  580. # Be sure to have absolute paths.
  581. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  582. localstatedir libdir includedir oldincludedir infodir mandir
  583. do
  584. eval ac_val=$`echo $ac_var`
  585. case $ac_val in
  586. [\\/$]* | ?:[\\/]* ) ;;
  587. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  588. { (exit 1); exit 1; }; };;
  589. esac
  590. done
  591. # There might be people who depend on the old broken behavior: `$host'
  592. # used to hold the argument of --host etc.
  593. # FIXME: To remove some day.
  594. build=$build_alias
  595. host=$host_alias
  596. target=$target_alias
  597. # FIXME: To remove some day.
  598. if test "x$host_alias" != x; then
  599. if test "x$build_alias" = x; then
  600. cross_compiling=maybe
  601. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  602. If a cross compiler is detected then cross compile mode will be used." >&2
  603. elif test "x$build_alias" != "x$host_alias"; then
  604. cross_compiling=yes
  605. fi
  606. fi
  607. ac_tool_prefix=
  608. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  609. test "$silent" = yes && exec 6>/dev/null
  610. # Find the source files, if location was not specified.
  611. if test -z "$srcdir"; then
  612. ac_srcdir_defaulted=yes
  613. # Try the directory containing this script, then its parent.
  614. ac_confdir=`(dirname "$0") 2>/dev/null ||
  615. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  616. X"$0" : 'X\(//\)[^/]' \| \
  617. X"$0" : 'X\(//\)$' \| \
  618. X"$0" : 'X\(/\)' \| \
  619. . : '\(.\)' 2>/dev/null ||
  620. echo X"$0" |
  621. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  622. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  623. /^X\(\/\/\)$/{ s//\1/; q; }
  624. /^X\(\/\).*/{ s//\1/; q; }
  625. s/.*/./; q'`
  626. srcdir=$ac_confdir
  627. if test ! -r $srcdir/$ac_unique_file; then
  628. srcdir=..
  629. fi
  630. else
  631. ac_srcdir_defaulted=no
  632. fi
  633. if test ! -r $srcdir/$ac_unique_file; then
  634. if test "$ac_srcdir_defaulted" = yes; then
  635. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  636. { (exit 1); exit 1; }; }
  637. else
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  639. { (exit 1); exit 1; }; }
  640. fi
  641. fi
  642. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  643. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  644. { (exit 1); exit 1; }; }
  645. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  646. ac_env_build_alias_set=${build_alias+set}
  647. ac_env_build_alias_value=$build_alias
  648. ac_cv_env_build_alias_set=${build_alias+set}
  649. ac_cv_env_build_alias_value=$build_alias
  650. ac_env_host_alias_set=${host_alias+set}
  651. ac_env_host_alias_value=$host_alias
  652. ac_cv_env_host_alias_set=${host_alias+set}
  653. ac_cv_env_host_alias_value=$host_alias
  654. ac_env_target_alias_set=${target_alias+set}
  655. ac_env_target_alias_value=$target_alias
  656. ac_cv_env_target_alias_set=${target_alias+set}
  657. ac_cv_env_target_alias_value=$target_alias
  658. ac_env_CC_set=${CC+set}
  659. ac_env_CC_value=$CC
  660. ac_cv_env_CC_set=${CC+set}
  661. ac_cv_env_CC_value=$CC
  662. ac_env_CFLAGS_set=${CFLAGS+set}
  663. ac_env_CFLAGS_value=$CFLAGS
  664. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  665. ac_cv_env_CFLAGS_value=$CFLAGS
  666. ac_env_LDFLAGS_set=${LDFLAGS+set}
  667. ac_env_LDFLAGS_value=$LDFLAGS
  668. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  669. ac_cv_env_LDFLAGS_value=$LDFLAGS
  670. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  671. ac_env_CPPFLAGS_value=$CPPFLAGS
  672. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  673. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  674. ac_env_CPP_set=${CPP+set}
  675. ac_env_CPP_value=$CPP
  676. ac_cv_env_CPP_set=${CPP+set}
  677. ac_cv_env_CPP_value=$CPP
  678. #
  679. # Report the --help message.
  680. #
  681. if test "$ac_init_help" = "long"; then
  682. # Omit some internal or obsolete options to make the list less imposing.
  683. # This message is too long to be a string in the A/UX 3.1 sh.
  684. cat <<_ACEOF
  685. \`configure' configures this package to adapt to many kinds of systems.
  686. Usage: $0 [OPTION]... [VAR=VALUE]...
  687. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  688. VAR=VALUE. See below for descriptions of some of the useful variables.
  689. Defaults for the options are specified in brackets.
  690. Configuration:
  691. -h, --help display this help and exit
  692. --help=short display options specific to this package
  693. --help=recursive display the short help of all the included packages
  694. -V, --version display version information and exit
  695. -q, --quiet, --silent do not print \`checking...' messages
  696. --cache-file=FILE cache test results in FILE [disabled]
  697. -C, --config-cache alias for \`--cache-file=config.cache'
  698. -n, --no-create do not create output files
  699. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  700. _ACEOF
  701. cat <<_ACEOF
  702. Installation directories:
  703. --prefix=PREFIX install architecture-independent files in PREFIX
  704. [$ac_default_prefix]
  705. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  706. [PREFIX]
  707. By default, \`make install' will install all the files in
  708. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  709. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  710. for instance \`--prefix=\$HOME'.
  711. For better control, use the options below.
  712. Fine tuning of the installation directories:
  713. --bindir=DIR user executables [EPREFIX/bin]
  714. --sbindir=DIR system admin executables [EPREFIX/sbin]
  715. --libexecdir=DIR program executables [EPREFIX/libexec]
  716. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  717. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  718. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  719. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  720. --libdir=DIR object code libraries [EPREFIX/lib]
  721. --includedir=DIR C header files [PREFIX/include]
  722. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  723. --infodir=DIR info documentation [PREFIX/info]
  724. --mandir=DIR man documentation [PREFIX/man]
  725. _ACEOF
  726. cat <<\_ACEOF
  727. Program names:
  728. --program-prefix=PREFIX prepend PREFIX to installed program names
  729. --program-suffix=SUFFIX append SUFFIX to installed program names
  730. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  731. _ACEOF
  732. fi
  733. if test -n "$ac_init_help"; then
  734. cat <<\_ACEOF
  735. Optional Features:
  736. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  737. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  738. --enable-changeword enable -W and changeword() builtin
  739. Optional Packages:
  740. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  741. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  742. --with-dmalloc use dmalloc, as in dmalloc.tar.gz from
  743. @/ftp.antaire.com:antaire/src/dmalloc.
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  785. # absolute.
  786. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  787. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  788. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  789. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  790. cd $ac_dir
  791. # Check for guested configure; otherwise get Cygnus style configure.
  792. if test -f $ac_srcdir/configure.gnu; then
  793. echo
  794. $SHELL $ac_srcdir/configure.gnu --help=recursive
  795. elif test -f $ac_srcdir/configure; then
  796. echo
  797. $SHELL $ac_srcdir/configure --help=recursive
  798. elif test -f $ac_srcdir/configure.ac ||
  799. test -f $ac_srcdir/configure.in; then
  800. echo
  801. $ac_configure --help
  802. else
  803. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  804. fi
  805. cd $ac_popdir
  806. done
  807. fi
  808. test -n "$ac_init_help" && exit 0
  809. if $ac_init_version; then
  810. cat <<\_ACEOF
  811. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  812. Free Software Foundation, Inc.
  813. This configure script is free software; the Free Software Foundation
  814. gives unlimited permission to copy, distribute and modify it.
  815. _ACEOF
  816. exit 0
  817. fi
  818. exec 5>config.log
  819. cat >&5 <<_ACEOF
  820. This file contains any messages produced by compilers while
  821. running configure, to aid debugging if configure makes a mistake.
  822. It was created by $as_me, which was
  823. generated by GNU Autoconf 2.56. Invocation command line was
  824. $ $0 $@
  825. _ACEOF
  826. {
  827. cat <<_ASUNAME
  828. ## --------- ##
  829. ## Platform. ##
  830. ## --------- ##
  831. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  832. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  833. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  834. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  835. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  836. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  837. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  838. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  839. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  840. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  841. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  842. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  843. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  844. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  845. _ASUNAME
  846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  847. for as_dir in $PATH
  848. do
  849. IFS=$as_save_IFS
  850. test -z "$as_dir" && as_dir=.
  851. echo "PATH: $as_dir"
  852. done
  853. } >&5
  854. cat >&5 <<_ACEOF
  855. ## ----------- ##
  856. ## Core tests. ##
  857. ## ----------- ##
  858. _ACEOF
  859. # Keep a trace of the command line.
  860. # Strip out --no-create and --no-recursion so they do not pile up.
  861. # Strip out --silent because we don't want to record it for future runs.
  862. # Also quote any args containing shell meta-characters.
  863. # Make two passes to allow for proper duplicate-argument suppression.
  864. ac_configure_args=
  865. ac_configure_args0=
  866. ac_configure_args1=
  867. ac_sep=
  868. ac_must_keep_next=false
  869. for ac_pass in 1 2
  870. do
  871. for ac_arg
  872. do
  873. case $ac_arg in
  874. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  875. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  876. | -silent | --silent | --silen | --sile | --sil)
  877. continue ;;
  878. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  879. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  880. esac
  881. case $ac_pass in
  882. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  883. 2)
  884. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  885. if test $ac_must_keep_next = true; then
  886. ac_must_keep_next=false # Got value, back to normal.
  887. else
  888. case $ac_arg in
  889. *=* | --config-cache | -C | -disable-* | --disable-* \
  890. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  891. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  892. | -with-* | --with-* | -without-* | --without-* | --x)
  893. case "$ac_configure_args0 " in
  894. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  895. esac
  896. ;;
  897. -* ) ac_must_keep_next=true ;;
  898. esac
  899. fi
  900. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  901. # Get rid of the leading space.
  902. ac_sep=" "
  903. ;;
  904. esac
  905. done
  906. done
  907. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  908. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  909. # When interrupted or exit'd, cleanup temporary files, and complete
  910. # config.log. We remove comments because anyway the quotes in there
  911. # would cause problems or look ugly.
  912. # WARNING: Be sure not to use single quotes in there, as some shells,
  913. # such as our DU 5.0 friend, will then `close' the trap.
  914. trap 'exit_status=$?
  915. # Save into config.log some information that might help in debugging.
  916. {
  917. echo
  918. cat <<\_ASBOX
  919. ## ---------------- ##
  920. ## Cache variables. ##
  921. ## ---------------- ##
  922. _ASBOX
  923. echo
  924. # The following way of writing the cache mishandles newlines in values,
  925. {
  926. (set) 2>&1 |
  927. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  928. *ac_space=\ *)
  929. sed -n \
  930. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  931. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  932. ;;
  933. *)
  934. sed -n \
  935. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  936. ;;
  937. esac;
  938. }
  939. echo
  940. cat <<\_ASBOX
  941. ## ----------------- ##
  942. ## Output variables. ##
  943. ## ----------------- ##
  944. _ASBOX
  945. echo
  946. for ac_var in $ac_subst_vars
  947. do
  948. eval ac_val=$`echo $ac_var`
  949. echo "$ac_var='"'"'$ac_val'"'"'"
  950. done | sort
  951. echo
  952. if test -n "$ac_subst_files"; then
  953. cat <<\_ASBOX
  954. ## ------------- ##
  955. ## Output files. ##
  956. ## ------------- ##
  957. _ASBOX
  958. echo
  959. for ac_var in $ac_subst_files
  960. do
  961. eval ac_val=$`echo $ac_var`
  962. echo "$ac_var='"'"'$ac_val'"'"'"
  963. done | sort
  964. echo
  965. fi
  966. if test -s confdefs.h; then
  967. cat <<\_ASBOX
  968. ## ----------- ##
  969. ## confdefs.h. ##
  970. ## ----------- ##
  971. _ASBOX
  972. echo
  973. sed "/^$/d" confdefs.h | sort
  974. echo
  975. fi
  976. test "$ac_signal" != 0 &&
  977. echo "$as_me: caught signal $ac_signal"
  978. echo "$as_me: exit $exit_status"
  979. } >&5
  980. rm -f core core.* *.core &&
  981. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  982. exit $exit_status
  983. ' 0
  984. for ac_signal in 1 2 13 15; do
  985. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  986. done
  987. ac_signal=0
  988. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  989. rm -rf conftest* confdefs.h
  990. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  991. echo >confdefs.h
  992. # Predefined preprocessor variables.
  993. cat >>confdefs.h <<_ACEOF
  994. #define PACKAGE_NAME "$PACKAGE_NAME"
  995. _ACEOF
  996. cat >>confdefs.h <<_ACEOF
  997. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  998. _ACEOF
  999. cat >>confdefs.h <<_ACEOF
  1000. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1001. _ACEOF
  1002. cat >>confdefs.h <<_ACEOF
  1003. #define PACKAGE_STRING "$PACKAGE_STRING"
  1004. _ACEOF
  1005. cat >>confdefs.h <<_ACEOF
  1006. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1007. _ACEOF
  1008. # Let the site file select an alternate cache file if it wants to.
  1009. # Prefer explicitly selected file to automatically selected ones.
  1010. if test -z "$CONFIG_SITE"; then
  1011. if test "x$prefix" != xNONE; then
  1012. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1013. else
  1014. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1015. fi
  1016. fi
  1017. for ac_site_file in $CONFIG_SITE; do
  1018. if test -r "$ac_site_file"; then
  1019. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1020. echo "$as_me: loading site script $ac_site_file" >&6;}
  1021. sed 's/^/| /' "$ac_site_file" >&5
  1022. . "$ac_site_file"
  1023. fi
  1024. done
  1025. if test -r "$cache_file"; then
  1026. # Some versions of bash will fail to source /dev/null (special
  1027. # files actually), so we avoid doing that.
  1028. if test -f "$cache_file"; then
  1029. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1030. echo "$as_me: loading cache $cache_file" >&6;}
  1031. case $cache_file in
  1032. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1033. *) . ./$cache_file;;
  1034. esac
  1035. fi
  1036. else
  1037. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1038. echo "$as_me: creating cache $cache_file" >&6;}
  1039. >$cache_file
  1040. fi
  1041. # Check that the precious variables saved in the cache have kept the same
  1042. # value.
  1043. ac_cache_corrupted=false
  1044. for ac_var in `(set) 2>&1 |
  1045. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1046. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1047. eval ac_new_set=\$ac_env_${ac_var}_set
  1048. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1049. eval ac_new_val="\$ac_env_${ac_var}_value"
  1050. case $ac_old_set,$ac_new_set in
  1051. set,)
  1052. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1053. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1054. ac_cache_corrupted=: ;;
  1055. ,set)
  1056. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1057. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1058. ac_cache_corrupted=: ;;
  1059. ,);;
  1060. *)
  1061. if test "x$ac_old_val" != "x$ac_new_val"; then
  1062. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1063. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1064. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1065. echo "$as_me: former value: $ac_old_val" >&2;}
  1066. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1067. echo "$as_me: current value: $ac_new_val" >&2;}
  1068. ac_cache_corrupted=:
  1069. fi;;
  1070. esac
  1071. # Pass precious variables to config.status.
  1072. if test "$ac_new_set" = set; then
  1073. case $ac_new_val in
  1074. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1075. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1076. *) ac_arg=$ac_var=$ac_new_val ;;
  1077. esac
  1078. case " $ac_configure_args " in
  1079. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1080. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1081. esac
  1082. fi
  1083. done
  1084. if $ac_cache_corrupted; then
  1085. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1086. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1087. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1088. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1089. { (exit 1); exit 1; }; }
  1090. fi
  1091. ac_ext=c
  1092. ac_cpp='$CPP $CPPFLAGS'
  1093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1096. ac_config_headers="$ac_config_headers config.h"
  1097. test "$program_prefix" != NONE &&
  1098. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1099. # Use a double $ so make ignores it.
  1100. test "$program_suffix" != NONE &&
  1101. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1102. # Double any \ or $. echo might interpret backslashes.
  1103. # By default was `s,x,x', remove it if useless.
  1104. cat <<\_ACEOF >conftest.sed
  1105. s/[\\$]/&&/g;s/;s,x,x,$//
  1106. _ACEOF
  1107. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1108. rm conftest.sed
  1109. PRODUCT=m4
  1110. VERSION=1.4
  1111. cat >>confdefs.h <<_ACEOF
  1112. #define PRODUCT "$PRODUCT"
  1113. _ACEOF
  1114. cat >>confdefs.h <<_ACEOF
  1115. #define VERSION "$VERSION"
  1116. _ACEOF
  1117. for ac_prog in gawk mawk nawk awk
  1118. do
  1119. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1120. set dummy $ac_prog; ac_word=$2
  1121. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1122. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1123. if test "${ac_cv_prog_AWK+set}" = set; then
  1124. echo $ECHO_N "(cached) $ECHO_C" >&6
  1125. else
  1126. if test -n "$AWK"; then
  1127. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1128. else
  1129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1130. for as_dir in $PATH
  1131. do
  1132. IFS=$as_save_IFS
  1133. test -z "$as_dir" && as_dir=.
  1134. for ac_exec_ext in '' $ac_executable_extensions; do
  1135. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1136. ac_cv_prog_AWK="$ac_prog"
  1137. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1138. break 2
  1139. fi
  1140. done
  1141. done
  1142. fi
  1143. fi
  1144. AWK=$ac_cv_prog_AWK
  1145. if test -n "$AWK"; then
  1146. echo "$as_me:$LINENO: result: $AWK" >&5
  1147. echo "${ECHO_T}$AWK" >&6
  1148. else
  1149. echo "$as_me:$LINENO: result: no" >&5
  1150. echo "${ECHO_T}no" >&6
  1151. fi
  1152. test -n "$AWK" && break
  1153. done
  1154. ac_ext=c
  1155. ac_cpp='$CPP $CPPFLAGS'
  1156. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1157. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1158. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1159. if test -n "$ac_tool_prefix"; then
  1160. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1161. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1162. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1163. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1164. if test "${ac_cv_prog_CC+set}" = set; then
  1165. echo $ECHO_N "(cached) $ECHO_C" >&6
  1166. else
  1167. if test -n "$CC"; then
  1168. ac_cv_prog_CC="$CC" # Let the user override the test.
  1169. else
  1170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1171. for as_dir in $PATH
  1172. do
  1173. IFS=$as_save_IFS
  1174. test -z "$as_dir" && as_dir=.
  1175. for ac_exec_ext in '' $ac_executable_extensions; do
  1176. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1177. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1178. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1179. break 2
  1180. fi
  1181. done
  1182. done
  1183. fi
  1184. fi
  1185. CC=$ac_cv_prog_CC
  1186. if test -n "$CC"; then
  1187. echo "$as_me:$LINENO: result: $CC" >&5
  1188. echo "${ECHO_T}$CC" >&6
  1189. else
  1190. echo "$as_me:$LINENO: result: no" >&5
  1191. echo "${ECHO_T}no" >&6
  1192. fi
  1193. fi
  1194. if test -z "$ac_cv_prog_CC"; then
  1195. ac_ct_CC=$CC
  1196. # Extract the first word of "gcc", so it can be a program name with args.
  1197. set dummy gcc; ac_word=$2
  1198. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1199. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1200. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1201. echo $ECHO_N "(cached) $ECHO_C" >&6
  1202. else
  1203. if test -n "$ac_ct_CC"; then
  1204. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1205. else
  1206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1207. for as_dir in $PATH
  1208. do
  1209. IFS=$as_save_IFS
  1210. test -z "$as_dir" && as_dir=.
  1211. for ac_exec_ext in '' $ac_executable_extensions; do
  1212. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1213. ac_cv_prog_ac_ct_CC="gcc"
  1214. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1215. break 2
  1216. fi
  1217. done
  1218. done
  1219. fi
  1220. fi
  1221. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1222. if test -n "$ac_ct_CC"; then
  1223. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1224. echo "${ECHO_T}$ac_ct_CC" >&6
  1225. else
  1226. echo "$as_me:$LINENO: result: no" >&5
  1227. echo "${ECHO_T}no" >&6
  1228. fi
  1229. CC=$ac_ct_CC
  1230. else
  1231. CC="$ac_cv_prog_CC"
  1232. fi
  1233. if test -z "$CC"; then
  1234. if test -n "$ac_tool_prefix"; then
  1235. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1236. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1237. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1239. if test "${ac_cv_prog_CC+set}" = set; then
  1240. echo $ECHO_N "(cached) $ECHO_C" >&6
  1241. else
  1242. if test -n "$CC"; then
  1243. ac_cv_prog_CC="$CC" # Let the user override the test.
  1244. else
  1245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1246. for as_dir in $PATH
  1247. do
  1248. IFS=$as_save_IFS
  1249. test -z "$as_dir" && as_dir=.
  1250. for ac_exec_ext in '' $ac_executable_extensions; do
  1251. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1252. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1253. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1254. break 2
  1255. fi
  1256. done
  1257. done
  1258. fi
  1259. fi
  1260. CC=$ac_cv_prog_CC
  1261. if test -n "$CC"; then
  1262. echo "$as_me:$LINENO: result: $CC" >&5
  1263. echo "${ECHO_T}$CC" >&6
  1264. else
  1265. echo "$as_me:$LINENO: result: no" >&5
  1266. echo "${ECHO_T}no" >&6
  1267. fi
  1268. fi
  1269. if test -z "$ac_cv_prog_CC"; then
  1270. ac_ct_CC=$CC
  1271. # Extract the first word of "cc", so it can be a program name with args.
  1272. set dummy cc; ac_word=$2
  1273. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1274. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1275. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1276. echo $ECHO_N "(cached) $ECHO_C" >&6
  1277. else
  1278. if test -n "$ac_ct_CC"; then
  1279. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1280. else
  1281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1282. for as_dir in $PATH
  1283. do
  1284. IFS=$as_save_IFS
  1285. test -z "$as_dir" && as_dir=.
  1286. for ac_exec_ext in '' $ac_executable_extensions; do
  1287. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1288. ac_cv_prog_ac_ct_CC="cc"
  1289. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1290. break 2
  1291. fi
  1292. done
  1293. done
  1294. fi
  1295. fi
  1296. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1297. if test -n "$ac_ct_CC"; then
  1298. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1299. echo "${ECHO_T}$ac_ct_CC" >&6
  1300. else
  1301. echo "$as_me:$LINENO: result: no" >&5
  1302. echo "${ECHO_T}no" >&6
  1303. fi
  1304. CC=$ac_ct_CC
  1305. else
  1306. CC="$ac_cv_prog_CC"
  1307. fi
  1308. fi
  1309. if test -z "$CC"; then
  1310. # Extract the first word of "cc", so it can be a program name with args.
  1311. set dummy cc; ac_word=$2
  1312. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1313. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1314. if test "${ac_cv_prog_CC+set}" = set; then
  1315. echo $ECHO_N "(cached) $ECHO_C" >&6
  1316. else
  1317. if test -n "$CC"; then
  1318. ac_cv_prog_CC="$CC" # Let the user override the test.
  1319. else
  1320. ac_prog_rejected=no
  1321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1322. for as_dir in $PATH
  1323. do
  1324. IFS=$as_save_IFS
  1325. test -z "$as_dir" && as_dir=.
  1326. for ac_exec_ext in '' $ac_executable_extensions; do
  1327. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1328. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1329. ac_prog_rejected=yes
  1330. continue
  1331. fi
  1332. ac_cv_prog_CC="cc"
  1333. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1334. break 2
  1335. fi
  1336. done
  1337. done
  1338. if test $ac_prog_rejected = yes; then
  1339. # We found a bogon in the path, so make sure we never use it.
  1340. set dummy $ac_cv_prog_CC
  1341. shift
  1342. if test $# != 0; then
  1343. # We chose a different compiler from the bogus one.
  1344. # However, it has the same basename, so the bogon will be chosen
  1345. # first if we set CC to just the basename; use the full file name.
  1346. shift
  1347. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1348. fi
  1349. fi
  1350. fi
  1351. fi
  1352. CC=$ac_cv_prog_CC
  1353. if test -n "$CC"; then
  1354. echo "$as_me:$LINENO: result: $CC" >&5
  1355. echo "${ECHO_T}$CC" >&6
  1356. else
  1357. echo "$as_me:$LINENO: result: no" >&5
  1358. echo "${ECHO_T}no" >&6
  1359. fi
  1360. fi
  1361. if test -z "$CC"; then
  1362. if test -n "$ac_tool_prefix"; then
  1363. for ac_prog in cl
  1364. do
  1365. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1366. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1367. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1368. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1369. if test "${ac_cv_prog_CC+set}" = set; then
  1370. echo $ECHO_N "(cached) $ECHO_C" >&6
  1371. else
  1372. if test -n "$CC"; then
  1373. ac_cv_prog_CC="$CC" # Let the user override the test.
  1374. else
  1375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1376. for as_dir in $PATH
  1377. do
  1378. IFS=$as_save_IFS
  1379. test -z "$as_dir" && as_dir=.
  1380. for ac_exec_ext in '' $ac_executable_extensions; do
  1381. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1382. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1383. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1384. break 2
  1385. fi
  1386. done
  1387. done
  1388. fi
  1389. fi
  1390. CC=$ac_cv_prog_CC
  1391. if test -n "$CC"; then
  1392. echo "$as_me:$LINENO: result: $CC" >&5
  1393. echo "${ECHO_T}$CC" >&6
  1394. else
  1395. echo "$as_me:$LINENO: result: no" >&5
  1396. echo "${ECHO_T}no" >&6
  1397. fi
  1398. test -n "$CC" && break
  1399. done
  1400. fi
  1401. if test -z "$CC"; then
  1402. ac_ct_CC=$CC
  1403. for ac_prog in cl
  1404. do
  1405. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1406. set dummy $ac_prog; ac_word=$2
  1407. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1409. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1410. echo $ECHO_N "(cached) $ECHO_C" >&6
  1411. else
  1412. if test -n "$ac_ct_CC"; then
  1413. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1414. else
  1415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1416. for as_dir in $PATH
  1417. do
  1418. IFS=$as_save_IFS
  1419. test -z "$as_dir" && as_dir=.
  1420. for ac_exec_ext in '' $ac_executable_extensions; do
  1421. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1422. ac_cv_prog_ac_ct_CC="$ac_prog"
  1423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1424. break 2
  1425. fi
  1426. done
  1427. done
  1428. fi
  1429. fi
  1430. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1431. if test -n "$ac_ct_CC"; then
  1432. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1433. echo "${ECHO_T}$ac_ct_CC" >&6
  1434. else
  1435. echo "$as_me:$LINENO: result: no" >&5
  1436. echo "${ECHO_T}no" >&6
  1437. fi
  1438. test -n "$ac_ct_CC" && break
  1439. done
  1440. CC=$ac_ct_CC
  1441. fi
  1442. fi
  1443. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1444. See \`config.log' for more details." >&5
  1445. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&2;}
  1447. { (exit 1); exit 1; }; }
  1448. # Provide some information about the compiler.
  1449. echo "$as_me:$LINENO:" \
  1450. "checking for C compiler version" >&5
  1451. ac_compiler=`set X $ac_compile; echo $2`
  1452. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1453. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1454. ac_status=$?
  1455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1456. (exit $ac_status); }
  1457. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1458. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1459. ac_status=$?
  1460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1461. (exit $ac_status); }
  1462. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1463. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1464. ac_status=$?
  1465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1466. (exit $ac_status); }
  1467. cat >conftest.$ac_ext <<_ACEOF
  1468. #line $LINENO "configure"
  1469. /* confdefs.h. */
  1470. _ACEOF
  1471. cat confdefs.h >>conftest.$ac_ext
  1472. cat >>conftest.$ac_ext <<_ACEOF
  1473. /* end confdefs.h. */
  1474. int
  1475. main ()
  1476. {
  1477. ;
  1478. return 0;
  1479. }
  1480. _ACEOF
  1481. ac_clean_files_save=$ac_clean_files
  1482. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1483. # Try to create an executable without -o first, disregard a.out.
  1484. # It will help us diagnose broken compilers, and finding out an intuition
  1485. # of exeext.
  1486. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  1487. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1488. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1489. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1490. (eval $ac_link_default) 2>&5
  1491. ac_status=$?
  1492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1493. (exit $ac_status); }; then
  1494. # Find the output, starting from the most likely. This scheme is
  1495. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1496. # resort.
  1497. # Be careful to initialize this variable, since it used to be cached.
  1498. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1499. ac_cv_exeext=
  1500. # b.out is created by i960 compilers.
  1501. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1502. do
  1503. test -f "$ac_file" || continue
  1504. case $ac_file in
  1505. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1506. ;;
  1507. conftest.$ac_ext )
  1508. # This is the source file.
  1509. ;;
  1510. [ab].out )
  1511. # We found the default executable, but exeext='' is most
  1512. # certainly right.
  1513. break;;
  1514. *.* )
  1515. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1516. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1517. # but it would be cool to find out if it's true. Does anybody
  1518. # maintain Libtool? --akim.
  1519. export ac_cv_exeext
  1520. break;;
  1521. * )
  1522. break;;
  1523. esac
  1524. done
  1525. else
  1526. echo "$as_me: failed program was:" >&5
  1527. sed 's/^/| /' conftest.$ac_ext >&5
  1528. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1529. See \`config.log' for more details." >&5
  1530. echo "$as_me: error: C compiler cannot create executables
  1531. See \`config.log' for more details." >&2;}
  1532. { (exit 77); exit 77; }; }
  1533. fi
  1534. ac_exeext=$ac_cv_exeext
  1535. echo "$as_me:$LINENO: result: $ac_file" >&5
  1536. echo "${ECHO_T}$ac_file" >&6
  1537. # Check the compiler produces executables we can run. If not, either
  1538. # the compiler is broken, or we cross compile.
  1539. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1540. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1541. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1542. # If not cross compiling, check that we can run a simple program.
  1543. if test "$cross_compiling" != yes; then
  1544. if { ac_try='./$ac_file'
  1545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1546. (eval $ac_try) 2>&5
  1547. ac_status=$?
  1548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1549. (exit $ac_status); }; }; then
  1550. cross_compiling=no
  1551. else
  1552. if test "$cross_compiling" = maybe; then
  1553. cross_compiling=yes
  1554. else
  1555. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1556. If you meant to cross compile, use \`--host'.
  1557. See \`config.log' for more details." >&5
  1558. echo "$as_me: error: cannot run C compiled programs.
  1559. If you meant to cross compile, use \`--host'.
  1560. See \`config.log' for more details." >&2;}
  1561. { (exit 1); exit 1; }; }
  1562. fi
  1563. fi
  1564. fi
  1565. echo "$as_me:$LINENO: result: yes" >&5
  1566. echo "${ECHO_T}yes" >&6
  1567. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1568. ac_clean_files=$ac_clean_files_save
  1569. # Check the compiler produces executables we can run. If not, either
  1570. # the compiler is broken, or we cross compile.
  1571. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1572. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1573. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1574. echo "${ECHO_T}$cross_compiling" >&6
  1575. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1576. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1578. (eval $ac_link) 2>&5
  1579. ac_status=$?
  1580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1581. (exit $ac_status); }; then
  1582. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1583. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1584. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1585. # `rm'.
  1586. for ac_file in conftest.exe conftest conftest.*; do
  1587. test -f "$ac_file" || continue
  1588. case $ac_file in
  1589. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1590. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1591. export ac_cv_exeext
  1592. break;;
  1593. * ) break;;
  1594. esac
  1595. done
  1596. else
  1597. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1598. See \`config.log' for more details." >&5
  1599. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1600. See \`config.log' for more details." >&2;}
  1601. { (exit 1); exit 1; }; }
  1602. fi
  1603. rm -f conftest$ac_cv_exeext
  1604. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1605. echo "${ECHO_T}$ac_cv_exeext" >&6
  1606. rm -f conftest.$ac_ext
  1607. EXEEXT=$ac_cv_exeext
  1608. ac_exeext=$EXEEXT
  1609. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1610. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1611. if test "${ac_cv_objext+set}" = set; then
  1612. echo $ECHO_N "(cached) $ECHO_C" >&6
  1613. else
  1614. cat >conftest.$ac_ext <<_ACEOF
  1615. #line $LINENO "configure"
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. #line $LINENO "configure"
  1663. /* confdefs.h. */
  1664. _ACEOF
  1665. cat confdefs.h >>conftest.$ac_ext
  1666. cat >>conftest.$ac_ext <<_ACEOF
  1667. /* end confdefs.h. */
  1668. int
  1669. main ()
  1670. {
  1671. #ifndef __GNUC__
  1672. choke me
  1673. #endif
  1674. ;
  1675. return 0;
  1676. }
  1677. _ACEOF
  1678. rm -f conftest.$ac_objext
  1679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1680. (eval $ac_compile) 2>&5
  1681. ac_status=$?
  1682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1683. (exit $ac_status); } &&
  1684. { ac_try='test -s conftest.$ac_objext'
  1685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1686. (eval $ac_try) 2>&5
  1687. ac_status=$?
  1688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1689. (exit $ac_status); }; }; then
  1690. ac_compiler_gnu=yes
  1691. else
  1692. echo "$as_me: failed program was:" >&5
  1693. sed 's/^/| /' conftest.$ac_ext >&5
  1694. ac_compiler_gnu=no
  1695. fi
  1696. rm -f conftest.$ac_objext conftest.$ac_ext
  1697. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1698. fi
  1699. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1700. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1701. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1702. ac_test_CFLAGS=${CFLAGS+set}
  1703. ac_save_CFLAGS=$CFLAGS
  1704. CFLAGS="-g"
  1705. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1706. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1707. if test "${ac_cv_prog_cc_g+set}" = set; then
  1708. echo $ECHO_N "(cached) $ECHO_C" >&6
  1709. else
  1710. cat >conftest.$ac_ext <<_ACEOF
  1711. #line $LINENO "configure"
  1712. /* confdefs.h. */
  1713. _ACEOF
  1714. cat confdefs.h >>conftest.$ac_ext
  1715. cat >>conftest.$ac_ext <<_ACEOF
  1716. /* end confdefs.h. */
  1717. int
  1718. main ()
  1719. {
  1720. ;
  1721. return 0;
  1722. }
  1723. _ACEOF
  1724. rm -f conftest.$ac_objext
  1725. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1726. (eval $ac_compile) 2>&5
  1727. ac_status=$?
  1728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1729. (exit $ac_status); } &&
  1730. { ac_try='test -s conftest.$ac_objext'
  1731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1732. (eval $ac_try) 2>&5
  1733. ac_status=$?
  1734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1735. (exit $ac_status); }; }; then
  1736. ac_cv_prog_cc_g=yes
  1737. else
  1738. echo "$as_me: failed program was:" >&5
  1739. sed 's/^/| /' conftest.$ac_ext >&5
  1740. ac_cv_prog_cc_g=no
  1741. fi
  1742. rm -f conftest.$ac_objext conftest.$ac_ext
  1743. fi
  1744. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1745. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1746. if test "$ac_test_CFLAGS" = set; then
  1747. CFLAGS=$ac_save_CFLAGS
  1748. elif test $ac_cv_prog_cc_g = yes; then
  1749. if test "$GCC" = yes; then
  1750. CFLAGS="-g -O2"
  1751. else
  1752. CFLAGS="-g"
  1753. fi
  1754. else
  1755. if test "$GCC" = yes; then
  1756. CFLAGS="-O2"
  1757. else
  1758. CFLAGS=
  1759. fi
  1760. fi
  1761. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1762. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1763. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1764. echo $ECHO_N "(cached) $ECHO_C" >&6
  1765. else
  1766. ac_cv_prog_cc_stdc=no
  1767. ac_save_CC=$CC
  1768. cat >conftest.$ac_ext <<_ACEOF
  1769. #line $LINENO "configure"
  1770. /* confdefs.h. */
  1771. _ACEOF
  1772. cat confdefs.h >>conftest.$ac_ext
  1773. cat >>conftest.$ac_ext <<_ACEOF
  1774. /* end confdefs.h. */
  1775. #include <stdarg.h>
  1776. #include <stdio.h>
  1777. #include <sys/types.h>
  1778. #include <sys/stat.h>
  1779. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1780. struct buf { int x; };
  1781. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1782. static char *e (p, i)
  1783. char **p;
  1784. int i;
  1785. {
  1786. return p[i];
  1787. }
  1788. static char *f (char * (*g) (char **, int), char **p, ...)
  1789. {
  1790. char *s;
  1791. va_list v;
  1792. va_start (v,p);
  1793. s = g (p, va_arg (v,int));
  1794. va_end (v);
  1795. return s;
  1796. }
  1797. int test (int i, double x);
  1798. struct s1 {int (*f) (int a);};
  1799. struct s2 {int (*f) (double a);};
  1800. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1801. int argc;
  1802. char **argv;
  1803. int
  1804. main ()
  1805. {
  1806. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1807. ;
  1808. return 0;
  1809. }
  1810. _ACEOF
  1811. # Don't try gcc -ansi; that turns off useful extensions and
  1812. # breaks some systems' header files.
  1813. # AIX -qlanglvl=ansi
  1814. # Ultrix and OSF/1 -std1
  1815. # HP-UX 10.20 and later -Ae
  1816. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1817. # SVR4 -Xc -D__EXTENSIONS__
  1818. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1819. do
  1820. CC="$ac_save_CC $ac_arg"
  1821. rm -f conftest.$ac_objext
  1822. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1823. (eval $ac_compile) 2>&5
  1824. ac_status=$?
  1825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1826. (exit $ac_status); } &&
  1827. { ac_try='test -s conftest.$ac_objext'
  1828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1829. (eval $ac_try) 2>&5
  1830. ac_status=$?
  1831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1832. (exit $ac_status); }; }; then
  1833. ac_cv_prog_cc_stdc=$ac_arg
  1834. break
  1835. else
  1836. echo "$as_me: failed program was:" >&5
  1837. sed 's/^/| /' conftest.$ac_ext >&5
  1838. fi
  1839. rm -f conftest.$ac_objext
  1840. done
  1841. rm -f conftest.$ac_ext conftest.$ac_objext
  1842. CC=$ac_save_CC
  1843. fi
  1844. case "x$ac_cv_prog_cc_stdc" in
  1845. x|xno)
  1846. echo "$as_me:$LINENO: result: none needed" >&5
  1847. echo "${ECHO_T}none needed" >&6 ;;
  1848. *)
  1849. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1850. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1851. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1852. esac
  1853. # Some people use a C++ compiler to compile C. Since we use `exit',
  1854. # in C++ we need to declare it. In case someone uses the same compiler
  1855. # for both compiling C and C++ we need to have the C++ compiler decide
  1856. # the declaration of exit, since it's the most demanding environment.
  1857. cat >conftest.$ac_ext <<_ACEOF
  1858. #ifndef __cplusplus
  1859. choke me
  1860. #endif
  1861. _ACEOF
  1862. rm -f conftest.$ac_objext
  1863. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1864. (eval $ac_compile) 2>&5
  1865. ac_status=$?
  1866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1867. (exit $ac_status); } &&
  1868. { ac_try='test -s conftest.$ac_objext'
  1869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1870. (eval $ac_try) 2>&5
  1871. ac_status=$?
  1872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1873. (exit $ac_status); }; }; then
  1874. for ac_declaration in \
  1875. ''\
  1876. '#include <stdlib.h>' \
  1877. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1878. 'extern "C" void std::exit (int); using std::exit;' \
  1879. 'extern "C" void exit (int) throw ();' \
  1880. 'extern "C" void exit (int);' \
  1881. 'void exit (int);'
  1882. do
  1883. cat >conftest.$ac_ext <<_ACEOF
  1884. #line $LINENO "configure"
  1885. /* confdefs.h. */
  1886. _ACEOF
  1887. cat confdefs.h >>conftest.$ac_ext
  1888. cat >>conftest.$ac_ext <<_ACEOF
  1889. /* end confdefs.h. */
  1890. #include <stdlib.h>
  1891. $ac_declaration
  1892. int
  1893. main ()
  1894. {
  1895. exit (42);
  1896. ;
  1897. return 0;
  1898. }
  1899. _ACEOF
  1900. rm -f conftest.$ac_objext
  1901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1902. (eval $ac_compile) 2>&5
  1903. ac_status=$?
  1904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1905. (exit $ac_status); } &&
  1906. { ac_try='test -s conftest.$ac_objext'
  1907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1908. (eval $ac_try) 2>&5
  1909. ac_status=$?
  1910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1911. (exit $ac_status); }; }; then
  1912. :
  1913. else
  1914. echo "$as_me: failed program was:" >&5
  1915. sed 's/^/| /' conftest.$ac_ext >&5
  1916. continue
  1917. fi
  1918. rm -f conftest.$ac_objext conftest.$ac_ext
  1919. cat >conftest.$ac_ext <<_ACEOF
  1920. #line $LINENO "configure"
  1921. /* confdefs.h. */
  1922. _ACEOF
  1923. cat confdefs.h >>conftest.$ac_ext
  1924. cat >>conftest.$ac_ext <<_ACEOF
  1925. /* end confdefs.h. */
  1926. $ac_declaration
  1927. int
  1928. main ()
  1929. {
  1930. exit (42);
  1931. ;
  1932. return 0;
  1933. }
  1934. _ACEOF
  1935. rm -f conftest.$ac_objext
  1936. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1937. (eval $ac_compile) 2>&5
  1938. ac_status=$?
  1939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1940. (exit $ac_status); } &&
  1941. { ac_try='test -s conftest.$ac_objext'
  1942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1943. (eval $ac_try) 2>&5
  1944. ac_status=$?
  1945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1946. (exit $ac_status); }; }; then
  1947. break
  1948. else
  1949. echo "$as_me: failed program was:" >&5
  1950. sed 's/^/| /' conftest.$ac_ext >&5
  1951. fi
  1952. rm -f conftest.$ac_objext conftest.$ac_ext
  1953. done
  1954. rm -f conftest*
  1955. if test -n "$ac_declaration"; then
  1956. echo '#ifdef __cplusplus' >>confdefs.h
  1957. echo $ac_declaration >>confdefs.h
  1958. echo '#endif' >>confdefs.h
  1959. fi
  1960. else
  1961. echo "$as_me: failed program was:" >&5
  1962. sed 's/^/| /' conftest.$ac_ext >&5
  1963. fi
  1964. rm -f conftest.$ac_objext conftest.$ac_ext
  1965. ac_ext=c
  1966. ac_cpp='$CPP $CPPFLAGS'
  1967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1970. ac_aux_dir=
  1971. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1972. if test -f $ac_dir/install-sh; then
  1973. ac_aux_dir=$ac_dir
  1974. ac_install_sh="$ac_aux_dir/install-sh -c"
  1975. break
  1976. elif test -f $ac_dir/install.sh; then
  1977. ac_aux_dir=$ac_dir
  1978. ac_install_sh="$ac_aux_dir/install.sh -c"
  1979. break
  1980. elif test -f $ac_dir/shtool; then
  1981. ac_aux_dir=$ac_dir
  1982. ac_install_sh="$ac_aux_dir/shtool install -c"
  1983. break
  1984. fi
  1985. done
  1986. if test -z "$ac_aux_dir"; then
  1987. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1988. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1989. { (exit 1); exit 1; }; }
  1990. fi
  1991. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1992. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1993. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1994. # Find a good install program. We prefer a C program (faster),
  1995. # so one script is as good as another. But avoid the broken or
  1996. # incompatible versions:
  1997. # SysV /etc/install, /usr/sbin/install
  1998. # SunOS /usr/etc/install
  1999. # IRIX /sbin/install
  2000. # AIX /bin/install
  2001. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2002. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2003. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2004. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2005. # ./install, which can be erroneously created by make from ./install.sh.
  2006. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2007. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  2008. if test -z "$INSTALL"; then
  2009. if test "${ac_cv_path_install+set}" = set; then
  2010. echo $ECHO_N "(cached) $ECHO_C" >&6
  2011. else
  2012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2013. for as_dir in $PATH
  2014. do
  2015. IFS=$as_save_IFS
  2016. test -z "$as_dir" && as_dir=.
  2017. # Account for people who put trailing slashes in PATH elements.
  2018. case $as_dir/ in
  2019. ./ | .// | /cC/* | \
  2020. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2021. /usr/ucb/* ) ;;
  2022. *)
  2023. # OSF1 and SCO ODT 3.0 have their own names for install.
  2024. # Don't use installbsd from OSF since it installs stuff as root
  2025. # by default.
  2026. for ac_prog in ginstall scoinst install; do
  2027. for ac_exec_ext in '' $ac_executable_extensions; do
  2028. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2029. if test $ac_prog = install &&
  2030. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2031. # AIX install. It has an incompatible calling convention.
  2032. :
  2033. elif test $ac_prog = install &&
  2034. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2035. # program-specific install script used by HP pwplus--don't use.
  2036. :
  2037. else
  2038. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2039. break 3
  2040. fi
  2041. fi
  2042. done
  2043. done
  2044. ;;
  2045. esac
  2046. done
  2047. fi
  2048. if test "${ac_cv_path_install+set}" = set; then
  2049. INSTALL=$ac_cv_path_install
  2050. else
  2051. # As a last resort, use the slow shell script. We don't cache a
  2052. # path for INSTALL within a source directory, because that will
  2053. # break other packages using the cache if that directory is
  2054. # removed, or if the path is relative.
  2055. INSTALL=$ac_install_sh
  2056. fi
  2057. fi
  2058. echo "$as_me:$LINENO: result: $INSTALL" >&5
  2059. echo "${ECHO_T}$INSTALL" >&6
  2060. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2061. # It thinks the first close brace ends the variable substitution.
  2062. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2063. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2064. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2065. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2066. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2067. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  2068. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2069. echo $ECHO_N "(cached) $ECHO_C" >&6
  2070. else
  2071. cat >conftest.make <<\_ACEOF
  2072. all:
  2073. @echo 'ac_maketemp="$(MAKE)"'
  2074. _ACEOF
  2075. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2076. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2077. if test -n "$ac_maketemp"; then
  2078. eval ac_cv_prog_make_${ac_make}_set=yes
  2079. else
  2080. eval ac_cv_prog_make_${ac_make}_set=no
  2081. fi
  2082. rm -f conftest.make
  2083. fi
  2084. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2085. echo "$as_me:$LINENO: result: yes" >&5
  2086. echo "${ECHO_T}yes" >&6
  2087. SET_MAKE=
  2088. else
  2089. echo "$as_me:$LINENO: result: no" >&5
  2090. echo "${ECHO_T}no" >&6
  2091. SET_MAKE="MAKE=${MAKE-make}"
  2092. fi
  2093. if test -n "$ac_tool_prefix"; then
  2094. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  2095. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  2096. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2097. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2098. if test "${ac_cv_prog_RANLIB+set}" = set; then
  2099. echo $ECHO_N "(cached) $ECHO_C" >&6
  2100. else
  2101. if test -n "$RANLIB"; then
  2102. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2103. else
  2104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2105. for as_dir in $PATH
  2106. do
  2107. IFS=$as_save_IFS
  2108. test -z "$as_dir" && as_dir=.
  2109. for ac_exec_ext in '' $ac_executable_extensions; do
  2110. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2111. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  2112. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2113. break 2
  2114. fi
  2115. done
  2116. done
  2117. fi
  2118. fi
  2119. RANLIB=$ac_cv_prog_RANLIB
  2120. if test -n "$RANLIB"; then
  2121. echo "$as_me:$LINENO: result: $RANLIB" >&5
  2122. echo "${ECHO_T}$RANLIB" >&6
  2123. else
  2124. echo "$as_me:$LINENO: result: no" >&5
  2125. echo "${ECHO_T}no" >&6
  2126. fi
  2127. fi
  2128. if test -z "$ac_cv_prog_RANLIB"; then
  2129. ac_ct_RANLIB=$RANLIB
  2130. # Extract the first word of "ranlib", so it can be a program name with args.
  2131. set dummy ranlib; ac_word=$2
  2132. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2133. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2134. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  2135. echo $ECHO_N "(cached) $ECHO_C" >&6
  2136. else
  2137. if test -n "$ac_ct_RANLIB"; then
  2138. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  2139. else
  2140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2141. for as_dir in $PATH
  2142. do
  2143. IFS=$as_save_IFS
  2144. test -z "$as_dir" && as_dir=.
  2145. for ac_exec_ext in '' $ac_executable_extensions; do
  2146. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2147. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2148. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2149. break 2
  2150. fi
  2151. done
  2152. done
  2153. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2154. fi
  2155. fi
  2156. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2157. if test -n "$ac_ct_RANLIB"; then
  2158. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2159. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2160. else
  2161. echo "$as_me:$LINENO: result: no" >&5
  2162. echo "${ECHO_T}no" >&6
  2163. fi
  2164. RANLIB=$ac_ct_RANLIB
  2165. else
  2166. RANLIB="$ac_cv_prog_RANLIB"
  2167. fi
  2168. ac_ext=c
  2169. ac_cpp='$CPP $CPPFLAGS'
  2170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2173. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2174. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2175. # On Suns, sometimes $CPP names a directory.
  2176. if test -n "$CPP" && test -d "$CPP"; then
  2177. CPP=
  2178. fi
  2179. if test -z "$CPP"; then
  2180. if test "${ac_cv_prog_CPP+set}" = set; then
  2181. echo $ECHO_N "(cached) $ECHO_C" >&6
  2182. else
  2183. # Double quotes because CPP needs to be expanded
  2184. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2185. do
  2186. ac_preproc_ok=false
  2187. for ac_c_preproc_warn_flag in '' yes
  2188. do
  2189. # Use a header file that comes with gcc, so configuring glibc
  2190. # with a fresh cross-compiler works.
  2191. # On the NeXT, cc -E runs the code through the compiler's parser,
  2192. # not just through cpp. "Syntax error" is here to catch this case.
  2193. cat >conftest.$ac_ext <<_ACEOF
  2194. #line $LINENO "configure"
  2195. /* confdefs.h. */
  2196. _ACEOF
  2197. cat confdefs.h >>conftest.$ac_ext
  2198. cat >>conftest.$ac_ext <<_ACEOF
  2199. /* end confdefs.h. */
  2200. #include <assert.h>
  2201. Syntax error
  2202. _ACEOF
  2203. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2204. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2205. ac_status=$?
  2206. grep -v '^ *+' conftest.er1 >conftest.err
  2207. rm -f conftest.er1
  2208. cat conftest.err >&5
  2209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2210. (exit $ac_status); } >/dev/null; then
  2211. if test -s conftest.err; then
  2212. ac_cpp_err=$ac_c_preproc_warn_flag
  2213. else
  2214. ac_cpp_err=
  2215. fi
  2216. else
  2217. ac_cpp_err=yes
  2218. fi
  2219. if test -z "$ac_cpp_err"; then
  2220. :
  2221. else
  2222. echo "$as_me: failed program was:" >&5
  2223. sed 's/^/| /' conftest.$ac_ext >&5
  2224. # Broken: fails on valid input.
  2225. continue
  2226. fi
  2227. rm -f conftest.err conftest.$ac_ext
  2228. # OK, works on sane cases. Now check whether non-existent headers
  2229. # can be detected and how.
  2230. cat >conftest.$ac_ext <<_ACEOF
  2231. #line $LINENO "configure"
  2232. /* confdefs.h. */
  2233. _ACEOF
  2234. cat confdefs.h >>conftest.$ac_ext
  2235. cat >>conftest.$ac_ext <<_ACEOF
  2236. /* end confdefs.h. */
  2237. #include <ac_nonexistent.h>
  2238. _ACEOF
  2239. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2240. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2241. ac_status=$?
  2242. grep -v '^ *+' conftest.er1 >conftest.err
  2243. rm -f conftest.er1
  2244. cat conftest.err >&5
  2245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2246. (exit $ac_status); } >/dev/null; then
  2247. if test -s conftest.err; then
  2248. ac_cpp_err=$ac_c_preproc_warn_flag
  2249. else
  2250. ac_cpp_err=
  2251. fi
  2252. else
  2253. ac_cpp_err=yes
  2254. fi
  2255. if test -z "$ac_cpp_err"; then
  2256. # Broken: success on invalid input.
  2257. continue
  2258. else
  2259. echo "$as_me: failed program was:" >&5
  2260. sed 's/^/| /' conftest.$ac_ext >&5
  2261. # Passes both tests.
  2262. ac_preproc_ok=:
  2263. break
  2264. fi
  2265. rm -f conftest.err conftest.$ac_ext
  2266. done
  2267. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2268. rm -f conftest.err conftest.$ac_ext
  2269. if $ac_preproc_ok; then
  2270. break
  2271. fi
  2272. done
  2273. ac_cv_prog_CPP=$CPP
  2274. fi
  2275. CPP=$ac_cv_prog_CPP
  2276. else
  2277. ac_cv_prog_CPP=$CPP
  2278. fi
  2279. echo "$as_me:$LINENO: result: $CPP" >&5
  2280. echo "${ECHO_T}$CPP" >&6
  2281. ac_preproc_ok=false
  2282. for ac_c_preproc_warn_flag in '' yes
  2283. do
  2284. # Use a header file that comes with gcc, so configuring glibc
  2285. # with a fresh cross-compiler works.
  2286. # On the NeXT, cc -E runs the code through the compiler's parser,
  2287. # not just through cpp. "Syntax error" is here to catch this case.
  2288. cat >conftest.$ac_ext <<_ACEOF
  2289. #line $LINENO "configure"
  2290. /* confdefs.h. */
  2291. _ACEOF
  2292. cat confdefs.h >>conftest.$ac_ext
  2293. cat >>conftest.$ac_ext <<_ACEOF
  2294. /* end confdefs.h. */
  2295. #include <assert.h>
  2296. Syntax error
  2297. _ACEOF
  2298. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2299. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2300. ac_status=$?
  2301. grep -v '^ *+' conftest.er1 >conftest.err
  2302. rm -f conftest.er1
  2303. cat conftest.err >&5
  2304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2305. (exit $ac_status); } >/dev/null; then
  2306. if test -s conftest.err; then
  2307. ac_cpp_err=$ac_c_preproc_warn_flag
  2308. else
  2309. ac_cpp_err=
  2310. fi
  2311. else
  2312. ac_cpp_err=yes
  2313. fi
  2314. if test -z "$ac_cpp_err"; then
  2315. :
  2316. else
  2317. echo "$as_me: failed program was:" >&5
  2318. sed 's/^/| /' conftest.$ac_ext >&5
  2319. # Broken: fails on valid input.
  2320. continue
  2321. fi
  2322. rm -f conftest.err conftest.$ac_ext
  2323. # OK, works on sane cases. Now check whether non-existent headers
  2324. # can be detected and how.
  2325. cat >conftest.$ac_ext <<_ACEOF
  2326. #line $LINENO "configure"
  2327. /* confdefs.h. */
  2328. _ACEOF
  2329. cat confdefs.h >>conftest.$ac_ext
  2330. cat >>conftest.$ac_ext <<_ACEOF
  2331. /* end confdefs.h. */
  2332. #include <ac_nonexistent.h>
  2333. _ACEOF
  2334. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2335. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2336. ac_status=$?
  2337. grep -v '^ *+' conftest.er1 >conftest.err
  2338. rm -f conftest.er1
  2339. cat conftest.err >&5
  2340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2341. (exit $ac_status); } >/dev/null; then
  2342. if test -s conftest.err; then
  2343. ac_cpp_err=$ac_c_preproc_warn_flag
  2344. else
  2345. ac_cpp_err=
  2346. fi
  2347. else
  2348. ac_cpp_err=yes
  2349. fi
  2350. if test -z "$ac_cpp_err"; then
  2351. # Broken: success on invalid input.
  2352. continue
  2353. else
  2354. echo "$as_me: failed program was:" >&5
  2355. sed 's/^/| /' conftest.$ac_ext >&5
  2356. # Passes both tests.
  2357. ac_preproc_ok=:
  2358. break
  2359. fi
  2360. rm -f conftest.err conftest.$ac_ext
  2361. done
  2362. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2363. rm -f conftest.err conftest.$ac_ext
  2364. if $ac_preproc_ok; then
  2365. :
  2366. else
  2367. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2368. See \`config.log' for more details." >&5
  2369. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2370. See \`config.log' for more details." >&2;}
  2371. { (exit 1); exit 1; }; }
  2372. fi
  2373. ac_ext=c
  2374. ac_cpp='$CPP $CPPFLAGS'
  2375. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2376. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2377. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2378. echo "$as_me:$LINENO: checking for egrep" >&5
  2379. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2380. if test "${ac_cv_prog_egrep+set}" = set; then
  2381. echo $ECHO_N "(cached) $ECHO_C" >&6
  2382. else
  2383. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2384. then ac_cv_prog_egrep='grep -E'
  2385. else ac_cv_prog_egrep='egrep'
  2386. fi
  2387. fi
  2388. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2389. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2390. EGREP=$ac_cv_prog_egrep
  2391. echo "$as_me:$LINENO: checking for AIX" >&5
  2392. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2393. cat >conftest.$ac_ext <<_ACEOF
  2394. #line $LINENO "configure"
  2395. /* confdefs.h. */
  2396. _ACEOF
  2397. cat confdefs.h >>conftest.$ac_ext
  2398. cat >>conftest.$ac_ext <<_ACEOF
  2399. /* end confdefs.h. */
  2400. #ifdef _AIX
  2401. yes
  2402. #endif
  2403. _ACEOF
  2404. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2405. $EGREP "yes" >/dev/null 2>&1; then
  2406. echo "$as_me:$LINENO: result: yes" >&5
  2407. echo "${ECHO_T}yes" >&6
  2408. cat >>confdefs.h <<\_ACEOF
  2409. #define _ALL_SOURCE 1
  2410. _ACEOF
  2411. else
  2412. echo "$as_me:$LINENO: result: no" >&5
  2413. echo "${ECHO_T}no" >&6
  2414. fi
  2415. rm -f conftest*
  2416. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2417. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2418. if test "${ac_cv_search_strerror+set}" = set; then
  2419. echo $ECHO_N "(cached) $ECHO_C" >&6
  2420. else
  2421. ac_func_search_save_LIBS=$LIBS
  2422. ac_cv_search_strerror=no
  2423. cat >conftest.$ac_ext <<_ACEOF
  2424. #line $LINENO "configure"
  2425. /* confdefs.h. */
  2426. _ACEOF
  2427. cat confdefs.h >>conftest.$ac_ext
  2428. cat >>conftest.$ac_ext <<_ACEOF
  2429. /* end confdefs.h. */
  2430. /* Override any gcc2 internal prototype to avoid an error. */
  2431. #ifdef __cplusplus
  2432. extern "C"
  2433. #endif
  2434. /* We use char because int might match the return type of a gcc2
  2435. builtin and then its argument prototype would still apply. */
  2436. char strerror ();
  2437. int
  2438. main ()
  2439. {
  2440. strerror ();
  2441. ;
  2442. return 0;
  2443. }
  2444. _ACEOF
  2445. rm -f conftest.$ac_objext conftest$ac_exeext
  2446. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2447. (eval $ac_link) 2>&5
  2448. ac_status=$?
  2449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2450. (exit $ac_status); } &&
  2451. { ac_try='test -s conftest$ac_exeext'
  2452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2453. (eval $ac_try) 2>&5
  2454. ac_status=$?
  2455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2456. (exit $ac_status); }; }; then
  2457. ac_cv_search_strerror="none required"
  2458. else
  2459. echo "$as_me: failed program was:" >&5
  2460. sed 's/^/| /' conftest.$ac_ext >&5
  2461. fi
  2462. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2463. if test "$ac_cv_search_strerror" = no; then
  2464. for ac_lib in cposix; do
  2465. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2466. cat >conftest.$ac_ext <<_ACEOF
  2467. #line $LINENO "configure"
  2468. /* confdefs.h. */
  2469. _ACEOF
  2470. cat confdefs.h >>conftest.$ac_ext
  2471. cat >>conftest.$ac_ext <<_ACEOF
  2472. /* end confdefs.h. */
  2473. /* Override any gcc2 internal prototype to avoid an error. */
  2474. #ifdef __cplusplus
  2475. extern "C"
  2476. #endif
  2477. /* We use char because int might match the return type of a gcc2
  2478. builtin and then its argument prototype would still apply. */
  2479. char strerror ();
  2480. int
  2481. main ()
  2482. {
  2483. strerror ();
  2484. ;
  2485. return 0;
  2486. }
  2487. _ACEOF
  2488. rm -f conftest.$ac_objext conftest$ac_exeext
  2489. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2490. (eval $ac_link) 2>&5
  2491. ac_status=$?
  2492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2493. (exit $ac_status); } &&
  2494. { ac_try='test -s conftest$ac_exeext'
  2495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2496. (eval $ac_try) 2>&5
  2497. ac_status=$?
  2498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2499. (exit $ac_status); }; }; then
  2500. ac_cv_search_strerror="-l$ac_lib"
  2501. break
  2502. else
  2503. echo "$as_me: failed program was:" >&5
  2504. sed 's/^/| /' conftest.$ac_ext >&5
  2505. fi
  2506. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2507. done
  2508. fi
  2509. LIBS=$ac_func_search_save_LIBS
  2510. fi
  2511. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2512. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2513. if test "$ac_cv_search_strerror" != no; then
  2514. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2515. fi
  2516. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2517. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2518. if test "${ac_cv_header_stdc+set}" = set; then
  2519. echo $ECHO_N "(cached) $ECHO_C" >&6
  2520. else
  2521. cat >conftest.$ac_ext <<_ACEOF
  2522. #line $LINENO "configure"
  2523. /* confdefs.h. */
  2524. _ACEOF
  2525. cat confdefs.h >>conftest.$ac_ext
  2526. cat >>conftest.$ac_ext <<_ACEOF
  2527. /* end confdefs.h. */
  2528. #include <stdlib.h>
  2529. #include <stdarg.h>
  2530. #include <string.h>
  2531. #include <float.h>
  2532. int
  2533. main ()
  2534. {
  2535. ;
  2536. return 0;
  2537. }
  2538. _ACEOF
  2539. rm -f conftest.$ac_objext
  2540. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2541. (eval $ac_compile) 2>&5
  2542. ac_status=$?
  2543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2544. (exit $ac_status); } &&
  2545. { ac_try='test -s conftest.$ac_objext'
  2546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2547. (eval $ac_try) 2>&5
  2548. ac_status=$?
  2549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2550. (exit $ac_status); }; }; then
  2551. ac_cv_header_stdc=yes
  2552. else
  2553. echo "$as_me: failed program was:" >&5
  2554. sed 's/^/| /' conftest.$ac_ext >&5
  2555. ac_cv_header_stdc=no
  2556. fi
  2557. rm -f conftest.$ac_objext conftest.$ac_ext
  2558. if test $ac_cv_header_stdc = yes; then
  2559. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2560. cat >conftest.$ac_ext <<_ACEOF
  2561. #line $LINENO "configure"
  2562. /* confdefs.h. */
  2563. _ACEOF
  2564. cat confdefs.h >>conftest.$ac_ext
  2565. cat >>conftest.$ac_ext <<_ACEOF
  2566. /* end confdefs.h. */
  2567. #include <string.h>
  2568. _ACEOF
  2569. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2570. $EGREP "memchr" >/dev/null 2>&1; then
  2571. :
  2572. else
  2573. ac_cv_header_stdc=no
  2574. fi
  2575. rm -f conftest*
  2576. fi
  2577. if test $ac_cv_header_stdc = yes; then
  2578. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2579. cat >conftest.$ac_ext <<_ACEOF
  2580. #line $LINENO "configure"
  2581. /* confdefs.h. */
  2582. _ACEOF
  2583. cat confdefs.h >>conftest.$ac_ext
  2584. cat >>conftest.$ac_ext <<_ACEOF
  2585. /* end confdefs.h. */
  2586. #include <stdlib.h>
  2587. _ACEOF
  2588. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2589. $EGREP "free" >/dev/null 2>&1; then
  2590. :
  2591. else
  2592. ac_cv_header_stdc=no
  2593. fi
  2594. rm -f conftest*
  2595. fi
  2596. if test $ac_cv_header_stdc = yes; then
  2597. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2598. if test "$cross_compiling" = yes; then
  2599. :
  2600. else
  2601. cat >conftest.$ac_ext <<_ACEOF
  2602. #line $LINENO "configure"
  2603. /* confdefs.h. */
  2604. _ACEOF
  2605. cat confdefs.h >>conftest.$ac_ext
  2606. cat >>conftest.$ac_ext <<_ACEOF
  2607. /* end confdefs.h. */
  2608. #include <ctype.h>
  2609. #if ((' ' & 0x0FF) == 0x020)
  2610. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2611. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2612. #else
  2613. # define ISLOWER(c) \
  2614. (('a' <= (c) && (c) <= 'i') \
  2615. || ('j' <= (c) && (c) <= 'r') \
  2616. || ('s' <= (c) && (c) <= 'z'))
  2617. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2618. #endif
  2619. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2620. int
  2621. main ()
  2622. {
  2623. int i;
  2624. for (i = 0; i < 256; i++)
  2625. if (XOR (islower (i), ISLOWER (i))
  2626. || toupper (i) != TOUPPER (i))
  2627. exit(2);
  2628. exit (0);
  2629. }
  2630. _ACEOF
  2631. rm -f conftest$ac_exeext
  2632. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2633. (eval $ac_link) 2>&5
  2634. ac_status=$?
  2635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2636. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2638. (eval $ac_try) 2>&5
  2639. ac_status=$?
  2640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2641. (exit $ac_status); }; }; then
  2642. :
  2643. else
  2644. echo "$as_me: program exited with status $ac_status" >&5
  2645. echo "$as_me: failed program was:" >&5
  2646. sed 's/^/| /' conftest.$ac_ext >&5
  2647. ( exit $ac_status )
  2648. ac_cv_header_stdc=no
  2649. fi
  2650. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2651. fi
  2652. fi
  2653. fi
  2654. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2655. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2656. if test $ac_cv_header_stdc = yes; then
  2657. cat >>confdefs.h <<\_ACEOF
  2658. #define STDC_HEADERS 1
  2659. _ACEOF
  2660. fi
  2661. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2662. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2663. inttypes.h stdint.h unistd.h
  2664. do
  2665. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2666. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2667. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2668. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2669. echo $ECHO_N "(cached) $ECHO_C" >&6
  2670. else
  2671. cat >conftest.$ac_ext <<_ACEOF
  2672. #line $LINENO "configure"
  2673. /* confdefs.h. */
  2674. _ACEOF
  2675. cat confdefs.h >>conftest.$ac_ext
  2676. cat >>conftest.$ac_ext <<_ACEOF
  2677. /* end confdefs.h. */
  2678. $ac_includes_default
  2679. #include <$ac_header>
  2680. _ACEOF
  2681. rm -f conftest.$ac_objext
  2682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2683. (eval $ac_compile) 2>&5
  2684. ac_status=$?
  2685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); } &&
  2687. { ac_try='test -s conftest.$ac_objext'
  2688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2689. (eval $ac_try) 2>&5
  2690. ac_status=$?
  2691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2692. (exit $ac_status); }; }; then
  2693. eval "$as_ac_Header=yes"
  2694. else
  2695. echo "$as_me: failed program was:" >&5
  2696. sed 's/^/| /' conftest.$ac_ext >&5
  2697. eval "$as_ac_Header=no"
  2698. fi
  2699. rm -f conftest.$ac_objext conftest.$ac_ext
  2700. fi
  2701. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2702. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2703. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2704. cat >>confdefs.h <<_ACEOF
  2705. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2706. _ACEOF
  2707. fi
  2708. done
  2709. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2710. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2711. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2712. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2713. echo $ECHO_N "(cached) $ECHO_C" >&6
  2714. fi
  2715. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2716. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2717. else
  2718. # Is the header compilable?
  2719. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2720. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2721. cat >conftest.$ac_ext <<_ACEOF
  2722. #line $LINENO "configure"
  2723. /* confdefs.h. */
  2724. _ACEOF
  2725. cat confdefs.h >>conftest.$ac_ext
  2726. cat >>conftest.$ac_ext <<_ACEOF
  2727. /* end confdefs.h. */
  2728. $ac_includes_default
  2729. #include <minix/config.h>
  2730. _ACEOF
  2731. rm -f conftest.$ac_objext
  2732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2733. (eval $ac_compile) 2>&5
  2734. ac_status=$?
  2735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2736. (exit $ac_status); } &&
  2737. { ac_try='test -s conftest.$ac_objext'
  2738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2739. (eval $ac_try) 2>&5
  2740. ac_status=$?
  2741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2742. (exit $ac_status); }; }; then
  2743. ac_header_compiler=yes
  2744. else
  2745. echo "$as_me: failed program was:" >&5
  2746. sed 's/^/| /' conftest.$ac_ext >&5
  2747. ac_header_compiler=no
  2748. fi
  2749. rm -f conftest.$ac_objext conftest.$ac_ext
  2750. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2751. echo "${ECHO_T}$ac_header_compiler" >&6
  2752. # Is the header present?
  2753. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2754. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2755. cat >conftest.$ac_ext <<_ACEOF
  2756. #line $LINENO "configure"
  2757. /* confdefs.h. */
  2758. _ACEOF
  2759. cat confdefs.h >>conftest.$ac_ext
  2760. cat >>conftest.$ac_ext <<_ACEOF
  2761. /* end confdefs.h. */
  2762. #include <minix/config.h>
  2763. _ACEOF
  2764. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2765. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2766. ac_status=$?
  2767. grep -v '^ *+' conftest.er1 >conftest.err
  2768. rm -f conftest.er1
  2769. cat conftest.err >&5
  2770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2771. (exit $ac_status); } >/dev/null; then
  2772. if test -s conftest.err; then
  2773. ac_cpp_err=$ac_c_preproc_warn_flag
  2774. else
  2775. ac_cpp_err=
  2776. fi
  2777. else
  2778. ac_cpp_err=yes
  2779. fi
  2780. if test -z "$ac_cpp_err"; then
  2781. ac_header_preproc=yes
  2782. else
  2783. echo "$as_me: failed program was:" >&5
  2784. sed 's/^/| /' conftest.$ac_ext >&5
  2785. ac_header_preproc=no
  2786. fi
  2787. rm -f conftest.err conftest.$ac_ext
  2788. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2789. echo "${ECHO_T}$ac_header_preproc" >&6
  2790. # So? What about this header?
  2791. case $ac_header_compiler:$ac_header_preproc in
  2792. yes:no )
  2793. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2794. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2795. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2796. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2797. (
  2798. cat <<\_ASBOX
  2799. ## ------------------------------------ ##
  2800. ## Report this to bug-autoconf@gnu.org. ##
  2801. ## ------------------------------------ ##
  2802. _ASBOX
  2803. ) |
  2804. sed "s/^/$as_me: WARNING: /" >&2
  2805. ;;
  2806. no:yes )
  2807. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2808. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2809. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2810. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2811. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2812. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2813. (
  2814. cat <<\_ASBOX
  2815. ## ------------------------------------ ##
  2816. ## Report this to bug-autoconf@gnu.org. ##
  2817. ## ------------------------------------ ##
  2818. _ASBOX
  2819. ) |
  2820. sed "s/^/$as_me: WARNING: /" >&2
  2821. ;;
  2822. esac
  2823. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2824. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2825. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2826. echo $ECHO_N "(cached) $ECHO_C" >&6
  2827. else
  2828. ac_cv_header_minix_config_h=$ac_header_preproc
  2829. fi
  2830. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2831. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2832. fi
  2833. if test $ac_cv_header_minix_config_h = yes; then
  2834. MINIX=yes
  2835. else
  2836. MINIX=
  2837. fi
  2838. if test "$MINIX" = yes; then
  2839. cat >>confdefs.h <<\_ACEOF
  2840. #define _POSIX_SOURCE 1
  2841. _ACEOF
  2842. cat >>confdefs.h <<\_ACEOF
  2843. #define _POSIX_1_SOURCE 2
  2844. _ACEOF
  2845. cat >>confdefs.h <<\_ACEOF
  2846. #define _MINIX 1
  2847. _ACEOF
  2848. fi
  2849. echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
  2850. echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
  2851. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2852. echo $ECHO_N "(cached) $ECHO_C" >&6
  2853. else
  2854. ac_cv_prog_cc_stdc=no
  2855. ac_save_CFLAGS="$CFLAGS"
  2856. # Don't try gcc -ansi; that turns off useful extensions and
  2857. # breaks some systems' header files.
  2858. # AIX -qlanglvl=ansi
  2859. # Ultrix and OSF/1 -std1
  2860. # HP-UX -Aa -D_HPUX_SOURCE
  2861. # SVR4 -Xc
  2862. for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
  2863. do
  2864. CFLAGS="$ac_save_CFLAGS $ac_arg"
  2865. cat >conftest.$ac_ext <<_ACEOF
  2866. #line $LINENO "configure"
  2867. /* confdefs.h. */
  2868. _ACEOF
  2869. cat confdefs.h >>conftest.$ac_ext
  2870. cat >>conftest.$ac_ext <<_ACEOF
  2871. /* end confdefs.h. */
  2872. #if !defined(__STDC__) || __STDC__ != 1
  2873. choke me
  2874. #endif
  2875. int
  2876. main ()
  2877. {
  2878. int test (int i, double x);
  2879. struct s1 {int (*f) (int a);};
  2880. struct s2 {int (*f) (double a);};
  2881. ;
  2882. return 0;
  2883. }
  2884. _ACEOF
  2885. rm -f conftest.$ac_objext
  2886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2887. (eval $ac_compile) 2>&5
  2888. ac_status=$?
  2889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2890. (exit $ac_status); } &&
  2891. { ac_try='test -s conftest.$ac_objext'
  2892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2893. (eval $ac_try) 2>&5
  2894. ac_status=$?
  2895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2896. (exit $ac_status); }; }; then
  2897. ac_cv_prog_cc_stdc="$ac_arg"; break
  2898. else
  2899. echo "$as_me: failed program was:" >&5
  2900. sed 's/^/| /' conftest.$ac_ext >&5
  2901. fi
  2902. rm -f conftest.$ac_objext conftest.$ac_ext
  2903. done
  2904. CFLAGS="$ac_save_CFLAGS"
  2905. fi
  2906. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2907. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2908. case "x$ac_cv_prog_cc_stdc" in
  2909. x|xno) ;;
  2910. *) CC="$CC $ac_cv_prog_cc_stdc" ;;
  2911. esac
  2912. echo "$as_me:$LINENO: checking for function prototypes" >&5
  2913. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  2914. if test "$ac_cv_prog_cc_stdc" != no; then
  2915. echo "$as_me:$LINENO: result: yes" >&5
  2916. echo "${ECHO_T}yes" >&6
  2917. cat >>confdefs.h <<\_ACEOF
  2918. #define PROTOTYPES 1
  2919. _ACEOF
  2920. U= ANSI2KNR=
  2921. else
  2922. echo "$as_me:$LINENO: result: no" >&5
  2923. echo "${ECHO_T}no" >&6
  2924. U=_ ANSI2KNR=ansi2knr
  2925. fi
  2926. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  2927. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  2928. if test "${ac_cv_c_const+set}" = set; then
  2929. echo $ECHO_N "(cached) $ECHO_C" >&6
  2930. else
  2931. cat >conftest.$ac_ext <<_ACEOF
  2932. #line $LINENO "configure"
  2933. /* confdefs.h. */
  2934. _ACEOF
  2935. cat confdefs.h >>conftest.$ac_ext
  2936. cat >>conftest.$ac_ext <<_ACEOF
  2937. /* end confdefs.h. */
  2938. int
  2939. main ()
  2940. {
  2941. /* FIXME: Include the comments suggested by Paul. */
  2942. #ifndef __cplusplus
  2943. /* Ultrix mips cc rejects this. */
  2944. typedef int charset[2];
  2945. const charset x;
  2946. /* SunOS 4.1.1 cc rejects this. */
  2947. char const *const *ccp;
  2948. char **p;
  2949. /* NEC SVR4.0.2 mips cc rejects this. */
  2950. struct point {int x, y;};
  2951. static struct point const zero = {0,0};
  2952. /* AIX XL C 1.02.0.0 rejects this.
  2953. It does not let you subtract one const X* pointer from another in
  2954. an arm of an if-expression whose if-part is not a constant
  2955. expression */
  2956. const char *g = "string";
  2957. ccp = &g + (g ? g-g : 0);
  2958. /* HPUX 7.0 cc rejects these. */
  2959. ++ccp;
  2960. p = (char**) ccp;
  2961. ccp = (char const *const *) p;
  2962. { /* SCO 3.2v4 cc rejects this. */
  2963. char *t;
  2964. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2965. *t++ = 0;
  2966. }
  2967. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2968. int x[] = {25, 17};
  2969. const int *foo = &x[0];
  2970. ++foo;
  2971. }
  2972. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2973. typedef const int *iptr;
  2974. iptr p = 0;
  2975. ++p;
  2976. }
  2977. { /* AIX XL C 1.02.0.0 rejects this saying
  2978. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2979. struct s { int j; const int *ap[3]; };
  2980. struct s *b; b->j = 5;
  2981. }
  2982. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2983. const int foo = 10;
  2984. }
  2985. #endif
  2986. ;
  2987. return 0;
  2988. }
  2989. _ACEOF
  2990. rm -f conftest.$ac_objext
  2991. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2992. (eval $ac_compile) 2>&5
  2993. ac_status=$?
  2994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2995. (exit $ac_status); } &&
  2996. { ac_try='test -s conftest.$ac_objext'
  2997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2998. (eval $ac_try) 2>&5
  2999. ac_status=$?
  3000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3001. (exit $ac_status); }; }; then
  3002. ac_cv_c_const=yes
  3003. else
  3004. echo "$as_me: failed program was:" >&5
  3005. sed 's/^/| /' conftest.$ac_ext >&5
  3006. ac_cv_c_const=no
  3007. fi
  3008. rm -f conftest.$ac_objext conftest.$ac_ext
  3009. fi
  3010. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3011. echo "${ECHO_T}$ac_cv_c_const" >&6
  3012. if test $ac_cv_c_const = no; then
  3013. cat >>confdefs.h <<\_ACEOF
  3014. #define const
  3015. _ACEOF
  3016. fi
  3017. for ac_header in limits.h memory.h siginfo.h string.h unistd.h
  3018. do
  3019. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3020. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3021. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3022. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3023. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3024. echo $ECHO_N "(cached) $ECHO_C" >&6
  3025. fi
  3026. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3027. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3028. else
  3029. # Is the header compilable?
  3030. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3031. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3032. cat >conftest.$ac_ext <<_ACEOF
  3033. #line $LINENO "configure"
  3034. /* confdefs.h. */
  3035. _ACEOF
  3036. cat confdefs.h >>conftest.$ac_ext
  3037. cat >>conftest.$ac_ext <<_ACEOF
  3038. /* end confdefs.h. */
  3039. $ac_includes_default
  3040. #include <$ac_header>
  3041. _ACEOF
  3042. rm -f conftest.$ac_objext
  3043. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3044. (eval $ac_compile) 2>&5
  3045. ac_status=$?
  3046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3047. (exit $ac_status); } &&
  3048. { ac_try='test -s conftest.$ac_objext'
  3049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3050. (eval $ac_try) 2>&5
  3051. ac_status=$?
  3052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3053. (exit $ac_status); }; }; then
  3054. ac_header_compiler=yes
  3055. else
  3056. echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. ac_header_compiler=no
  3059. fi
  3060. rm -f conftest.$ac_objext conftest.$ac_ext
  3061. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3062. echo "${ECHO_T}$ac_header_compiler" >&6
  3063. # Is the header present?
  3064. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3065. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3066. cat >conftest.$ac_ext <<_ACEOF
  3067. #line $LINENO "configure"
  3068. /* confdefs.h. */
  3069. _ACEOF
  3070. cat confdefs.h >>conftest.$ac_ext
  3071. cat >>conftest.$ac_ext <<_ACEOF
  3072. /* end confdefs.h. */
  3073. #include <$ac_header>
  3074. _ACEOF
  3075. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3076. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3077. ac_status=$?
  3078. grep -v '^ *+' conftest.er1 >conftest.err
  3079. rm -f conftest.er1
  3080. cat conftest.err >&5
  3081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3082. (exit $ac_status); } >/dev/null; then
  3083. if test -s conftest.err; then
  3084. ac_cpp_err=$ac_c_preproc_warn_flag
  3085. else
  3086. ac_cpp_err=
  3087. fi
  3088. else
  3089. ac_cpp_err=yes
  3090. fi
  3091. if test -z "$ac_cpp_err"; then
  3092. ac_header_preproc=yes
  3093. else
  3094. echo "$as_me: failed program was:" >&5
  3095. sed 's/^/| /' conftest.$ac_ext >&5
  3096. ac_header_preproc=no
  3097. fi
  3098. rm -f conftest.err conftest.$ac_ext
  3099. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3100. echo "${ECHO_T}$ac_header_preproc" >&6
  3101. # So? What about this header?
  3102. case $ac_header_compiler:$ac_header_preproc in
  3103. yes:no )
  3104. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3105. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3106. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3107. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3108. (
  3109. cat <<\_ASBOX
  3110. ## ------------------------------------ ##
  3111. ## Report this to bug-autoconf@gnu.org. ##
  3112. ## ------------------------------------ ##
  3113. _ASBOX
  3114. ) |
  3115. sed "s/^/$as_me: WARNING: /" >&2
  3116. ;;
  3117. no:yes )
  3118. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3119. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3120. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3121. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3122. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3123. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3124. (
  3125. cat <<\_ASBOX
  3126. ## ------------------------------------ ##
  3127. ## Report this to bug-autoconf@gnu.org. ##
  3128. ## ------------------------------------ ##
  3129. _ASBOX
  3130. ) |
  3131. sed "s/^/$as_me: WARNING: /" >&2
  3132. ;;
  3133. esac
  3134. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3135. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3136. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3137. echo $ECHO_N "(cached) $ECHO_C" >&6
  3138. else
  3139. eval "$as_ac_Header=$ac_header_preproc"
  3140. fi
  3141. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3142. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3143. fi
  3144. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3145. cat >>confdefs.h <<_ACEOF
  3146. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3147. _ACEOF
  3148. fi
  3149. done
  3150. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3151. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3152. if test "${ac_cv_header_stdc+set}" = set; then
  3153. echo $ECHO_N "(cached) $ECHO_C" >&6
  3154. else
  3155. cat >conftest.$ac_ext <<_ACEOF
  3156. #line $LINENO "configure"
  3157. /* confdefs.h. */
  3158. _ACEOF
  3159. cat confdefs.h >>conftest.$ac_ext
  3160. cat >>conftest.$ac_ext <<_ACEOF
  3161. /* end confdefs.h. */
  3162. #include <stdlib.h>
  3163. #include <stdarg.h>
  3164. #include <string.h>
  3165. #include <float.h>
  3166. int
  3167. main ()
  3168. {
  3169. ;
  3170. return 0;
  3171. }
  3172. _ACEOF
  3173. rm -f conftest.$ac_objext
  3174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3175. (eval $ac_compile) 2>&5
  3176. ac_status=$?
  3177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3178. (exit $ac_status); } &&
  3179. { ac_try='test -s conftest.$ac_objext'
  3180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3181. (eval $ac_try) 2>&5
  3182. ac_status=$?
  3183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3184. (exit $ac_status); }; }; then
  3185. ac_cv_header_stdc=yes
  3186. else
  3187. echo "$as_me: failed program was:" >&5
  3188. sed 's/^/| /' conftest.$ac_ext >&5
  3189. ac_cv_header_stdc=no
  3190. fi
  3191. rm -f conftest.$ac_objext conftest.$ac_ext
  3192. if test $ac_cv_header_stdc = yes; then
  3193. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3194. cat >conftest.$ac_ext <<_ACEOF
  3195. #line $LINENO "configure"
  3196. /* confdefs.h. */
  3197. _ACEOF
  3198. cat confdefs.h >>conftest.$ac_ext
  3199. cat >>conftest.$ac_ext <<_ACEOF
  3200. /* end confdefs.h. */
  3201. #include <string.h>
  3202. _ACEOF
  3203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3204. $EGREP "memchr" >/dev/null 2>&1; then
  3205. :
  3206. else
  3207. ac_cv_header_stdc=no
  3208. fi
  3209. rm -f conftest*
  3210. fi
  3211. if test $ac_cv_header_stdc = yes; then
  3212. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3213. cat >conftest.$ac_ext <<_ACEOF
  3214. #line $LINENO "configure"
  3215. /* confdefs.h. */
  3216. _ACEOF
  3217. cat confdefs.h >>conftest.$ac_ext
  3218. cat >>conftest.$ac_ext <<_ACEOF
  3219. /* end confdefs.h. */
  3220. #include <stdlib.h>
  3221. _ACEOF
  3222. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3223. $EGREP "free" >/dev/null 2>&1; then
  3224. :
  3225. else
  3226. ac_cv_header_stdc=no
  3227. fi
  3228. rm -f conftest*
  3229. fi
  3230. if test $ac_cv_header_stdc = yes; then
  3231. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3232. if test "$cross_compiling" = yes; then
  3233. :
  3234. else
  3235. cat >conftest.$ac_ext <<_ACEOF
  3236. #line $LINENO "configure"
  3237. /* confdefs.h. */
  3238. _ACEOF
  3239. cat confdefs.h >>conftest.$ac_ext
  3240. cat >>conftest.$ac_ext <<_ACEOF
  3241. /* end confdefs.h. */
  3242. #include <ctype.h>
  3243. #if ((' ' & 0x0FF) == 0x020)
  3244. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3245. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3246. #else
  3247. # define ISLOWER(c) \
  3248. (('a' <= (c) && (c) <= 'i') \
  3249. || ('j' <= (c) && (c) <= 'r') \
  3250. || ('s' <= (c) && (c) <= 'z'))
  3251. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3252. #endif
  3253. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3254. int
  3255. main ()
  3256. {
  3257. int i;
  3258. for (i = 0; i < 256; i++)
  3259. if (XOR (islower (i), ISLOWER (i))
  3260. || toupper (i) != TOUPPER (i))
  3261. exit(2);
  3262. exit (0);
  3263. }
  3264. _ACEOF
  3265. rm -f conftest$ac_exeext
  3266. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3267. (eval $ac_link) 2>&5
  3268. ac_status=$?
  3269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3270. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3272. (eval $ac_try) 2>&5
  3273. ac_status=$?
  3274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3275. (exit $ac_status); }; }; then
  3276. :
  3277. else
  3278. echo "$as_me: program exited with status $ac_status" >&5
  3279. echo "$as_me: failed program was:" >&5
  3280. sed 's/^/| /' conftest.$ac_ext >&5
  3281. ( exit $ac_status )
  3282. ac_cv_header_stdc=no
  3283. fi
  3284. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3285. fi
  3286. fi
  3287. fi
  3288. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3289. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3290. if test $ac_cv_header_stdc = yes; then
  3291. cat >>confdefs.h <<\_ACEOF
  3292. #define STDC_HEADERS 1
  3293. _ACEOF
  3294. fi
  3295. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  3296. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  3297. if test "${ac_cv_type_signal+set}" = set; then
  3298. echo $ECHO_N "(cached) $ECHO_C" >&6
  3299. else
  3300. cat >conftest.$ac_ext <<_ACEOF
  3301. #line $LINENO "configure"
  3302. /* confdefs.h. */
  3303. _ACEOF
  3304. cat confdefs.h >>conftest.$ac_ext
  3305. cat >>conftest.$ac_ext <<_ACEOF
  3306. /* end confdefs.h. */
  3307. #include <sys/types.h>
  3308. #include <signal.h>
  3309. #ifdef signal
  3310. # undef signal
  3311. #endif
  3312. #ifdef __cplusplus
  3313. extern "C" void (*signal (int, void (*)(int)))(int);
  3314. #else
  3315. void (*signal ()) ();
  3316. #endif
  3317. int
  3318. main ()
  3319. {
  3320. int i;
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. rm -f conftest.$ac_objext
  3326. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3327. (eval $ac_compile) 2>&5
  3328. ac_status=$?
  3329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3330. (exit $ac_status); } &&
  3331. { ac_try='test -s conftest.$ac_objext'
  3332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3333. (eval $ac_try) 2>&5
  3334. ac_status=$?
  3335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); }; }; then
  3337. ac_cv_type_signal=void
  3338. else
  3339. echo "$as_me: failed program was:" >&5
  3340. sed 's/^/| /' conftest.$ac_ext >&5
  3341. ac_cv_type_signal=int
  3342. fi
  3343. rm -f conftest.$ac_objext conftest.$ac_ext
  3344. fi
  3345. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  3346. echo "${ECHO_T}$ac_cv_type_signal" >&6
  3347. cat >>confdefs.h <<_ACEOF
  3348. #define RETSIGTYPE $ac_cv_type_signal
  3349. _ACEOF
  3350. echo "$as_me:$LINENO: checking for size_t" >&5
  3351. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  3352. if test "${ac_cv_type_size_t+set}" = set; then
  3353. echo $ECHO_N "(cached) $ECHO_C" >&6
  3354. else
  3355. cat >conftest.$ac_ext <<_ACEOF
  3356. #line $LINENO "configure"
  3357. /* confdefs.h. */
  3358. _ACEOF
  3359. cat confdefs.h >>conftest.$ac_ext
  3360. cat >>conftest.$ac_ext <<_ACEOF
  3361. /* end confdefs.h. */
  3362. $ac_includes_default
  3363. int
  3364. main ()
  3365. {
  3366. if ((size_t *) 0)
  3367. return 0;
  3368. if (sizeof (size_t))
  3369. return 0;
  3370. ;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. rm -f conftest.$ac_objext
  3375. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3376. (eval $ac_compile) 2>&5
  3377. ac_status=$?
  3378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3379. (exit $ac_status); } &&
  3380. { ac_try='test -s conftest.$ac_objext'
  3381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3382. (eval $ac_try) 2>&5
  3383. ac_status=$?
  3384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3385. (exit $ac_status); }; }; then
  3386. ac_cv_type_size_t=yes
  3387. else
  3388. echo "$as_me: failed program was:" >&5
  3389. sed 's/^/| /' conftest.$ac_ext >&5
  3390. ac_cv_type_size_t=no
  3391. fi
  3392. rm -f conftest.$ac_objext conftest.$ac_ext
  3393. fi
  3394. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3395. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  3396. if test $ac_cv_type_size_t = yes; then
  3397. :
  3398. else
  3399. cat >>confdefs.h <<_ACEOF
  3400. #define size_t unsigned
  3401. _ACEOF
  3402. fi
  3403. for ac_func in mkstemp sigaction sigaltstack sigstack sigvec strerror tmpfile
  3404. do
  3405. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3406. echo "$as_me:$LINENO: checking for $ac_func" >&5
  3407. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3408. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3409. echo $ECHO_N "(cached) $ECHO_C" >&6
  3410. else
  3411. cat >conftest.$ac_ext <<_ACEOF
  3412. #line $LINENO "configure"
  3413. /* confdefs.h. */
  3414. _ACEOF
  3415. cat confdefs.h >>conftest.$ac_ext
  3416. cat >>conftest.$ac_ext <<_ACEOF
  3417. /* end confdefs.h. */
  3418. /* System header to define __stub macros and hopefully few prototypes,
  3419. which can conflict with char $ac_func (); below. */
  3420. #include <assert.h>
  3421. /* Override any gcc2 internal prototype to avoid an error. */
  3422. #ifdef __cplusplus
  3423. extern "C"
  3424. {
  3425. #endif
  3426. /* We use char because int might match the return type of a gcc2
  3427. builtin and then its argument prototype would still apply. */
  3428. char $ac_func ();
  3429. /* The GNU C library defines this for functions which it implements
  3430. to always fail with ENOSYS. Some functions are actually named
  3431. something starting with __ and the normal name is an alias. */
  3432. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3433. choke me
  3434. #else
  3435. char (*f) () = $ac_func;
  3436. #endif
  3437. #ifdef __cplusplus
  3438. }
  3439. #endif
  3440. int
  3441. main ()
  3442. {
  3443. ;
  3444. return 0;
  3445. }
  3446. _ACEOF
  3447. rm -f conftest.$ac_objext conftest$ac_exeext
  3448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3449. (eval $ac_link) 2>&5
  3450. ac_status=$?
  3451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3452. (exit $ac_status); } &&
  3453. { ac_try='test -s conftest$ac_exeext'
  3454. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3455. (eval $ac_try) 2>&5
  3456. ac_status=$?
  3457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3458. (exit $ac_status); }; }; then
  3459. eval "$as_ac_var=yes"
  3460. else
  3461. echo "$as_me: failed program was:" >&5
  3462. sed 's/^/| /' conftest.$ac_ext >&5
  3463. eval "$as_ac_var=no"
  3464. fi
  3465. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3466. fi
  3467. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  3468. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3469. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3470. cat >>confdefs.h <<_ACEOF
  3471. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3472. _ACEOF
  3473. fi
  3474. done
  3475. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  3476. # for constant arguments. Useless!
  3477. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  3478. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  3479. if test "${ac_cv_working_alloca_h+set}" = set; then
  3480. echo $ECHO_N "(cached) $ECHO_C" >&6
  3481. else
  3482. cat >conftest.$ac_ext <<_ACEOF
  3483. #line $LINENO "configure"
  3484. /* confdefs.h. */
  3485. _ACEOF
  3486. cat confdefs.h >>conftest.$ac_ext
  3487. cat >>conftest.$ac_ext <<_ACEOF
  3488. /* end confdefs.h. */
  3489. #include <alloca.h>
  3490. int
  3491. main ()
  3492. {
  3493. char *p = (char *) alloca (2 * sizeof (int));
  3494. ;
  3495. return 0;
  3496. }
  3497. _ACEOF
  3498. rm -f conftest.$ac_objext conftest$ac_exeext
  3499. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3500. (eval $ac_link) 2>&5
  3501. ac_status=$?
  3502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3503. (exit $ac_status); } &&
  3504. { ac_try='test -s conftest$ac_exeext'
  3505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3506. (eval $ac_try) 2>&5
  3507. ac_status=$?
  3508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3509. (exit $ac_status); }; }; then
  3510. ac_cv_working_alloca_h=yes
  3511. else
  3512. echo "$as_me: failed program was:" >&5
  3513. sed 's/^/| /' conftest.$ac_ext >&5
  3514. ac_cv_working_alloca_h=no
  3515. fi
  3516. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3517. fi
  3518. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  3519. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  3520. if test $ac_cv_working_alloca_h = yes; then
  3521. cat >>confdefs.h <<\_ACEOF
  3522. #define HAVE_ALLOCA_H 1
  3523. _ACEOF
  3524. fi
  3525. echo "$as_me:$LINENO: checking for alloca" >&5
  3526. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  3527. if test "${ac_cv_func_alloca_works+set}" = set; then
  3528. echo $ECHO_N "(cached) $ECHO_C" >&6
  3529. else
  3530. cat >conftest.$ac_ext <<_ACEOF
  3531. #line $LINENO "configure"
  3532. /* confdefs.h. */
  3533. _ACEOF
  3534. cat confdefs.h >>conftest.$ac_ext
  3535. cat >>conftest.$ac_ext <<_ACEOF
  3536. /* end confdefs.h. */
  3537. #ifdef __GNUC__
  3538. # define alloca __builtin_alloca
  3539. #else
  3540. # ifdef _MSC_VER
  3541. # include <malloc.h>
  3542. # define alloca _alloca
  3543. # else
  3544. # if HAVE_ALLOCA_H
  3545. # include <alloca.h>
  3546. # else
  3547. # ifdef _AIX
  3548. #pragma alloca
  3549. # else
  3550. # ifndef alloca /* predefined by HP cc +Olibcalls */
  3551. char *alloca ();
  3552. # endif
  3553. # endif
  3554. # endif
  3555. # endif
  3556. #endif
  3557. int
  3558. main ()
  3559. {
  3560. char *p = (char *) alloca (1);
  3561. ;
  3562. return 0;
  3563. }
  3564. _ACEOF
  3565. rm -f conftest.$ac_objext conftest$ac_exeext
  3566. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3567. (eval $ac_link) 2>&5
  3568. ac_status=$?
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); } &&
  3571. { ac_try='test -s conftest$ac_exeext'
  3572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3573. (eval $ac_try) 2>&5
  3574. ac_status=$?
  3575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3576. (exit $ac_status); }; }; then
  3577. ac_cv_func_alloca_works=yes
  3578. else
  3579. echo "$as_me: failed program was:" >&5
  3580. sed 's/^/| /' conftest.$ac_ext >&5
  3581. ac_cv_func_alloca_works=no
  3582. fi
  3583. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3584. fi
  3585. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  3586. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  3587. if test $ac_cv_func_alloca_works = yes; then
  3588. cat >>confdefs.h <<\_ACEOF
  3589. #define HAVE_ALLOCA 1
  3590. _ACEOF
  3591. else
  3592. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  3593. # that cause trouble. Some versions do not even contain alloca or
  3594. # contain a buggy version. If you still want to use their alloca,
  3595. # use ar to extract alloca.o from them instead of compiling alloca.c.
  3596. ALLOCA=alloca.$ac_objext
  3597. cat >>confdefs.h <<\_ACEOF
  3598. #define C_ALLOCA 1
  3599. _ACEOF
  3600. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  3601. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  3602. if test "${ac_cv_os_cray+set}" = set; then
  3603. echo $ECHO_N "(cached) $ECHO_C" >&6
  3604. else
  3605. cat >conftest.$ac_ext <<_ACEOF
  3606. #line $LINENO "configure"
  3607. /* confdefs.h. */
  3608. _ACEOF
  3609. cat confdefs.h >>conftest.$ac_ext
  3610. cat >>conftest.$ac_ext <<_ACEOF
  3611. /* end confdefs.h. */
  3612. #if defined(CRAY) && ! defined(CRAY2)
  3613. webecray
  3614. #else
  3615. wenotbecray
  3616. #endif
  3617. _ACEOF
  3618. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3619. $EGREP "webecray" >/dev/null 2>&1; then
  3620. ac_cv_os_cray=yes
  3621. else
  3622. ac_cv_os_cray=no
  3623. fi
  3624. rm -f conftest*
  3625. fi
  3626. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  3627. echo "${ECHO_T}$ac_cv_os_cray" >&6
  3628. if test $ac_cv_os_cray = yes; then
  3629. for ac_func in _getb67 GETB67 getb67; do
  3630. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3631. echo "$as_me:$LINENO: checking for $ac_func" >&5
  3632. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3633. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3634. echo $ECHO_N "(cached) $ECHO_C" >&6
  3635. else
  3636. cat >conftest.$ac_ext <<_ACEOF
  3637. #line $LINENO "configure"
  3638. /* confdefs.h. */
  3639. _ACEOF
  3640. cat confdefs.h >>conftest.$ac_ext
  3641. cat >>conftest.$ac_ext <<_ACEOF
  3642. /* end confdefs.h. */
  3643. /* System header to define __stub macros and hopefully few prototypes,
  3644. which can conflict with char $ac_func (); below. */
  3645. #include <assert.h>
  3646. /* Override any gcc2 internal prototype to avoid an error. */
  3647. #ifdef __cplusplus
  3648. extern "C"
  3649. {
  3650. #endif
  3651. /* We use char because int might match the return type of a gcc2
  3652. builtin and then its argument prototype would still apply. */
  3653. char $ac_func ();
  3654. /* The GNU C library defines this for functions which it implements
  3655. to always fail with ENOSYS. Some functions are actually named
  3656. something starting with __ and the normal name is an alias. */
  3657. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3658. choke me
  3659. #else
  3660. char (*f) () = $ac_func;
  3661. #endif
  3662. #ifdef __cplusplus
  3663. }
  3664. #endif
  3665. int
  3666. main ()
  3667. {
  3668. ;
  3669. return 0;
  3670. }
  3671. _ACEOF
  3672. rm -f conftest.$ac_objext conftest$ac_exeext
  3673. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3674. (eval $ac_link) 2>&5
  3675. ac_status=$?
  3676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3677. (exit $ac_status); } &&
  3678. { ac_try='test -s conftest$ac_exeext'
  3679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3680. (eval $ac_try) 2>&5
  3681. ac_status=$?
  3682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3683. (exit $ac_status); }; }; then
  3684. eval "$as_ac_var=yes"
  3685. else
  3686. echo "$as_me: failed program was:" >&5
  3687. sed 's/^/| /' conftest.$ac_ext >&5
  3688. eval "$as_ac_var=no"
  3689. fi
  3690. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3691. fi
  3692. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  3693. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3694. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3695. cat >>confdefs.h <<_ACEOF
  3696. #define CRAY_STACKSEG_END $ac_func
  3697. _ACEOF
  3698. break
  3699. fi
  3700. done
  3701. fi
  3702. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  3703. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  3704. if test "${ac_cv_c_stack_direction+set}" = set; then
  3705. echo $ECHO_N "(cached) $ECHO_C" >&6
  3706. else
  3707. if test "$cross_compiling" = yes; then
  3708. ac_cv_c_stack_direction=0
  3709. else
  3710. cat >conftest.$ac_ext <<_ACEOF
  3711. #line $LINENO "configure"
  3712. /* confdefs.h. */
  3713. _ACEOF
  3714. cat confdefs.h >>conftest.$ac_ext
  3715. cat >>conftest.$ac_ext <<_ACEOF
  3716. /* end confdefs.h. */
  3717. int
  3718. find_stack_direction ()
  3719. {
  3720. static char *addr = 0;
  3721. auto char dummy;
  3722. if (addr == 0)
  3723. {
  3724. addr = &dummy;
  3725. return find_stack_direction ();
  3726. }
  3727. else
  3728. return (&dummy > addr) ? 1 : -1;
  3729. }
  3730. int
  3731. main ()
  3732. {
  3733. exit (find_stack_direction () < 0);
  3734. }
  3735. _ACEOF
  3736. rm -f conftest$ac_exeext
  3737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3738. (eval $ac_link) 2>&5
  3739. ac_status=$?
  3740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3741. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3743. (eval $ac_try) 2>&5
  3744. ac_status=$?
  3745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3746. (exit $ac_status); }; }; then
  3747. ac_cv_c_stack_direction=1
  3748. else
  3749. echo "$as_me: program exited with status $ac_status" >&5
  3750. echo "$as_me: failed program was:" >&5
  3751. sed 's/^/| /' conftest.$ac_ext >&5
  3752. ( exit $ac_status )
  3753. ac_cv_c_stack_direction=-1
  3754. fi
  3755. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3756. fi
  3757. fi
  3758. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  3759. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  3760. cat >>confdefs.h <<_ACEOF
  3761. #define STACK_DIRECTION $ac_cv_c_stack_direction
  3762. _ACEOF
  3763. fi
  3764. for ac_func in vprintf
  3765. do
  3766. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3767. echo "$as_me:$LINENO: checking for $ac_func" >&5
  3768. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3769. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3770. echo $ECHO_N "(cached) $ECHO_C" >&6
  3771. else
  3772. cat >conftest.$ac_ext <<_ACEOF
  3773. #line $LINENO "configure"
  3774. /* confdefs.h. */
  3775. _ACEOF
  3776. cat confdefs.h >>conftest.$ac_ext
  3777. cat >>conftest.$ac_ext <<_ACEOF
  3778. /* end confdefs.h. */
  3779. /* System header to define __stub macros and hopefully few prototypes,
  3780. which can conflict with char $ac_func (); below. */
  3781. #include <assert.h>
  3782. /* Override any gcc2 internal prototype to avoid an error. */
  3783. #ifdef __cplusplus
  3784. extern "C"
  3785. {
  3786. #endif
  3787. /* We use char because int might match the return type of a gcc2
  3788. builtin and then its argument prototype would still apply. */
  3789. char $ac_func ();
  3790. /* The GNU C library defines this for functions which it implements
  3791. to always fail with ENOSYS. Some functions are actually named
  3792. something starting with __ and the normal name is an alias. */
  3793. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3794. choke me
  3795. #else
  3796. char (*f) () = $ac_func;
  3797. #endif
  3798. #ifdef __cplusplus
  3799. }
  3800. #endif
  3801. int
  3802. main ()
  3803. {
  3804. ;
  3805. return 0;
  3806. }
  3807. _ACEOF
  3808. rm -f conftest.$ac_objext conftest$ac_exeext
  3809. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3810. (eval $ac_link) 2>&5
  3811. ac_status=$?
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); } &&
  3814. { ac_try='test -s conftest$ac_exeext'
  3815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3816. (eval $ac_try) 2>&5
  3817. ac_status=$?
  3818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819. (exit $ac_status); }; }; then
  3820. eval "$as_ac_var=yes"
  3821. else
  3822. echo "$as_me: failed program was:" >&5
  3823. sed 's/^/| /' conftest.$ac_ext >&5
  3824. eval "$as_ac_var=no"
  3825. fi
  3826. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3827. fi
  3828. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  3829. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3830. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3831. cat >>confdefs.h <<_ACEOF
  3832. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3833. _ACEOF
  3834. echo "$as_me:$LINENO: checking for _doprnt" >&5
  3835. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  3836. if test "${ac_cv_func__doprnt+set}" = set; then
  3837. echo $ECHO_N "(cached) $ECHO_C" >&6
  3838. else
  3839. cat >conftest.$ac_ext <<_ACEOF
  3840. #line $LINENO "configure"
  3841. /* confdefs.h. */
  3842. _ACEOF
  3843. cat confdefs.h >>conftest.$ac_ext
  3844. cat >>conftest.$ac_ext <<_ACEOF
  3845. /* end confdefs.h. */
  3846. /* System header to define __stub macros and hopefully few prototypes,
  3847. which can conflict with char _doprnt (); below. */
  3848. #include <assert.h>
  3849. /* Override any gcc2 internal prototype to avoid an error. */
  3850. #ifdef __cplusplus
  3851. extern "C"
  3852. {
  3853. #endif
  3854. /* We use char because int might match the return type of a gcc2
  3855. builtin and then its argument prototype would still apply. */
  3856. char _doprnt ();
  3857. /* The GNU C library defines this for functions which it implements
  3858. to always fail with ENOSYS. Some functions are actually named
  3859. something starting with __ and the normal name is an alias. */
  3860. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  3861. choke me
  3862. #else
  3863. char (*f) () = _doprnt;
  3864. #endif
  3865. #ifdef __cplusplus
  3866. }
  3867. #endif
  3868. int
  3869. main ()
  3870. {
  3871. ;
  3872. return 0;
  3873. }
  3874. _ACEOF
  3875. rm -f conftest.$ac_objext conftest$ac_exeext
  3876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3877. (eval $ac_link) 2>&5
  3878. ac_status=$?
  3879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3880. (exit $ac_status); } &&
  3881. { ac_try='test -s conftest$ac_exeext'
  3882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3883. (eval $ac_try) 2>&5
  3884. ac_status=$?
  3885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3886. (exit $ac_status); }; }; then
  3887. ac_cv_func__doprnt=yes
  3888. else
  3889. echo "$as_me: failed program was:" >&5
  3890. sed 's/^/| /' conftest.$ac_ext >&5
  3891. ac_cv_func__doprnt=no
  3892. fi
  3893. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3894. fi
  3895. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  3896. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  3897. if test $ac_cv_func__doprnt = yes; then
  3898. cat >>confdefs.h <<\_ACEOF
  3899. #define HAVE_DOPRNT 1
  3900. _ACEOF
  3901. fi
  3902. fi
  3903. done
  3904. for ac_func in strtol
  3905. do
  3906. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3907. echo "$as_me:$LINENO: checking for $ac_func" >&5
  3908. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  3909. if eval "test \"\${$as_ac_var+set}\" = set"; then
  3910. echo $ECHO_N "(cached) $ECHO_C" >&6
  3911. else
  3912. cat >conftest.$ac_ext <<_ACEOF
  3913. #line $LINENO "configure"
  3914. /* confdefs.h. */
  3915. _ACEOF
  3916. cat confdefs.h >>conftest.$ac_ext
  3917. cat >>conftest.$ac_ext <<_ACEOF
  3918. /* end confdefs.h. */
  3919. /* System header to define __stub macros and hopefully few prototypes,
  3920. which can conflict with char $ac_func (); below. */
  3921. #include <assert.h>
  3922. /* Override any gcc2 internal prototype to avoid an error. */
  3923. #ifdef __cplusplus
  3924. extern "C"
  3925. {
  3926. #endif
  3927. /* We use char because int might match the return type of a gcc2
  3928. builtin and then its argument prototype would still apply. */
  3929. char $ac_func ();
  3930. /* The GNU C library defines this for functions which it implements
  3931. to always fail with ENOSYS. Some functions are actually named
  3932. something starting with __ and the normal name is an alias. */
  3933. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3934. choke me
  3935. #else
  3936. char (*f) () = $ac_func;
  3937. #endif
  3938. #ifdef __cplusplus
  3939. }
  3940. #endif
  3941. int
  3942. main ()
  3943. {
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. rm -f conftest.$ac_objext conftest$ac_exeext
  3949. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3950. (eval $ac_link) 2>&5
  3951. ac_status=$?
  3952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3953. (exit $ac_status); } &&
  3954. { ac_try='test -s conftest$ac_exeext'
  3955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3956. (eval $ac_try) 2>&5
  3957. ac_status=$?
  3958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959. (exit $ac_status); }; }; then
  3960. eval "$as_ac_var=yes"
  3961. else
  3962. echo "$as_me: failed program was:" >&5
  3963. sed 's/^/| /' conftest.$ac_ext >&5
  3964. eval "$as_ac_var=no"
  3965. fi
  3966. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  3967. fi
  3968. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  3969. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  3970. if test `eval echo '${'$as_ac_var'}'` = yes; then
  3971. cat >>confdefs.h <<_ACEOF
  3972. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3973. _ACEOF
  3974. else
  3975. LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
  3976. fi
  3977. done
  3978. echo "$as_me:$LINENO: checking ecvt declaration" >&5
  3979. echo $ECHO_N "checking ecvt declaration... $ECHO_C" >&6
  3980. cat >conftest.$ac_ext <<_ACEOF
  3981. #line $LINENO "configure"
  3982. /* confdefs.h. */
  3983. _ACEOF
  3984. cat confdefs.h >>conftest.$ac_ext
  3985. cat >>conftest.$ac_ext <<_ACEOF
  3986. /* end confdefs.h. */
  3987. #include <stdlib.h>
  3988. _ACEOF
  3989. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3990. $EGREP "ecvt" >/dev/null 2>&1; then
  3991. echo "$as_me:$LINENO: result: yes" >&5
  3992. echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
  3993. #define HAVE_EFGCVT 2
  3994. _ACEOF
  3995. else
  3996. echo "$as_me:$LINENO: result: no" >&5
  3997. echo "${ECHO_T}no" >&6;
  3998. for ac_func in ecvt
  3999. do
  4000. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4001. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4002. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4003. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4004. echo $ECHO_N "(cached) $ECHO_C" >&6
  4005. else
  4006. cat >conftest.$ac_ext <<_ACEOF
  4007. #line $LINENO "configure"
  4008. /* confdefs.h. */
  4009. _ACEOF
  4010. cat confdefs.h >>conftest.$ac_ext
  4011. cat >>conftest.$ac_ext <<_ACEOF
  4012. /* end confdefs.h. */
  4013. /* System header to define __stub macros and hopefully few prototypes,
  4014. which can conflict with char $ac_func (); below. */
  4015. #include <assert.h>
  4016. /* Override any gcc2 internal prototype to avoid an error. */
  4017. #ifdef __cplusplus
  4018. extern "C"
  4019. {
  4020. #endif
  4021. /* We use char because int might match the return type of a gcc2
  4022. builtin and then its argument prototype would still apply. */
  4023. char $ac_func ();
  4024. /* The GNU C library defines this for functions which it implements
  4025. to always fail with ENOSYS. Some functions are actually named
  4026. something starting with __ and the normal name is an alias. */
  4027. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4028. choke me
  4029. #else
  4030. char (*f) () = $ac_func;
  4031. #endif
  4032. #ifdef __cplusplus
  4033. }
  4034. #endif
  4035. int
  4036. main ()
  4037. {
  4038. ;
  4039. return 0;
  4040. }
  4041. _ACEOF
  4042. rm -f conftest.$ac_objext conftest$ac_exeext
  4043. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4044. (eval $ac_link) 2>&5
  4045. ac_status=$?
  4046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4047. (exit $ac_status); } &&
  4048. { ac_try='test -s conftest$ac_exeext'
  4049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4050. (eval $ac_try) 2>&5
  4051. ac_status=$?
  4052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4053. (exit $ac_status); }; }; then
  4054. eval "$as_ac_var=yes"
  4055. else
  4056. echo "$as_me: failed program was:" >&5
  4057. sed 's/^/| /' conftest.$ac_ext >&5
  4058. eval "$as_ac_var=no"
  4059. fi
  4060. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  4061. fi
  4062. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4063. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4064. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4065. cat >>confdefs.h <<_ACEOF
  4066. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4067. _ACEOF
  4068. fi
  4069. done
  4070. fi
  4071. rm -f conftest*
  4072. echo "$as_me:$LINENO: checking if changeword is wanted" >&5
  4073. echo $ECHO_N "checking if changeword is wanted... $ECHO_C" >&6
  4074. # Check whether --enable-changeword or --disable-changeword was given.
  4075. if test "${enable_changeword+set}" = set; then
  4076. enableval="$enable_changeword"
  4077. if test "$enableval" = yes; then
  4078. echo "$as_me:$LINENO: result: yes" >&5
  4079. echo "${ECHO_T}yes" >&6
  4080. cat >>confdefs.h <<\_ACEOF
  4081. #define ENABLE_CHANGEWORD 1
  4082. _ACEOF
  4083. else
  4084. echo "$as_me:$LINENO: result: no" >&5
  4085. echo "${ECHO_T}no" >&6
  4086. fi
  4087. else
  4088. echo "$as_me:$LINENO: result: no" >&5
  4089. echo "${ECHO_T}no" >&6
  4090. fi;
  4091. echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
  4092. echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
  4093. # Check whether --with-dmalloc or --without-dmalloc was given.
  4094. if test "${with_dmalloc+set}" = set; then
  4095. withval="$with_dmalloc"
  4096. if test "$withval" = yes; then
  4097. echo "$as_me:$LINENO: result: yes" >&5
  4098. echo "${ECHO_T}yes" >&6
  4099. cat >>confdefs.h <<\_ACEOF
  4100. #define WITH_DMALLOC 1
  4101. _ACEOF
  4102. LIBS="$LIBS -ldmalloc"
  4103. LDFLAGS="$LDFLAGS -g"
  4104. else
  4105. echo "$as_me:$LINENO: result: no" >&5
  4106. echo "${ECHO_T}no" >&6
  4107. fi
  4108. else
  4109. echo "$as_me:$LINENO: result: no" >&5
  4110. echo "${ECHO_T}no" >&6
  4111. fi;
  4112. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile"
  4113. ac_config_commands="$ac_config_commands default"
  4114. cat >confcache <<\_ACEOF
  4115. # This file is a shell script that caches the results of configure
  4116. # tests run on this system so they can be shared between configure
  4117. # scripts and configure runs, see configure's option --config-cache.
  4118. # It is not useful on other systems. If it contains results you don't
  4119. # want to keep, you may remove or edit it.
  4120. #
  4121. # config.status only pays attention to the cache file if you give it
  4122. # the --recheck option to rerun configure.
  4123. #
  4124. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4125. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4126. # following values.
  4127. _ACEOF
  4128. # The following way of writing the cache mishandles newlines in values,
  4129. # but we know of no workaround that is simple, portable, and efficient.
  4130. # So, don't put newlines in cache variables' values.
  4131. # Ultrix sh set writes to stderr and can't be redirected directly,
  4132. # and sets the high bit in the cache file unless we assign to the vars.
  4133. {
  4134. (set) 2>&1 |
  4135. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4136. *ac_space=\ *)
  4137. # `set' does not quote correctly, so add quotes (double-quote
  4138. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4139. sed -n \
  4140. "s/'/'\\\\''/g;
  4141. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4142. ;;
  4143. *)
  4144. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4145. sed -n \
  4146. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4147. ;;
  4148. esac;
  4149. } |
  4150. sed '
  4151. t clear
  4152. : clear
  4153. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4154. t end
  4155. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4156. : end' >>confcache
  4157. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4158. if test -w $cache_file; then
  4159. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  4160. cat confcache >$cache_file
  4161. else
  4162. echo "not updating unwritable cache $cache_file"
  4163. fi
  4164. fi
  4165. rm -f confcache
  4166. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4167. # Let make expand exec_prefix.
  4168. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4169. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  4170. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  4171. # trailing colons and then remove the whole line if VPATH becomes empty
  4172. # (actually we leave an empty line to preserve line numbers).
  4173. if test "x$srcdir" = x.; then
  4174. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  4175. s/:*\$(srcdir):*/:/;
  4176. s/:*\${srcdir}:*/:/;
  4177. s/:*@srcdir@:*/:/;
  4178. s/^\([^=]*=[ ]*\):*/\1/;
  4179. s/:*$//;
  4180. s/^[^=]*=[ ]*$//;
  4181. }'
  4182. fi
  4183. DEFS=-DHAVE_CONFIG_H
  4184. ac_libobjs=
  4185. ac_ltlibobjs=
  4186. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4187. # 1. Remove the extension, and $U if already installed.
  4188. ac_i=`echo "$ac_i" |
  4189. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  4190. # 2. Add them.
  4191. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  4192. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  4193. done
  4194. LIBOBJS=$ac_libobjs
  4195. LTLIBOBJS=$ac_ltlibobjs
  4196. : ${CONFIG_STATUS=./config.status}
  4197. ac_clean_files_save=$ac_clean_files
  4198. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4199. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  4200. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  4201. cat >$CONFIG_STATUS <<_ACEOF
  4202. #! $SHELL
  4203. # Generated by $as_me.
  4204. # Run this file to recreate the current configuration.
  4205. # Compiler output produced by configure, useful for debugging
  4206. # configure, is in config.log if it exists.
  4207. debug=false
  4208. ac_cs_recheck=false
  4209. ac_cs_silent=false
  4210. SHELL=\${CONFIG_SHELL-$SHELL}
  4211. _ACEOF
  4212. cat >>$CONFIG_STATUS <<\_ACEOF
  4213. ## --------------------- ##
  4214. ## M4sh Initialization. ##
  4215. ## --------------------- ##
  4216. # Be Bourne compatible
  4217. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  4218. emulate sh
  4219. NULLCMD=:
  4220. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  4221. # is contrary to our usage. Disable this feature.
  4222. alias -g '${1+"$@"}'='"$@"'
  4223. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  4224. set -o posix
  4225. fi
  4226. # Support unset when possible.
  4227. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  4228. as_unset=unset
  4229. else
  4230. as_unset=false
  4231. fi
  4232. # Work around bugs in pre-3.0 UWIN ksh.
  4233. $as_unset ENV MAIL MAILPATH
  4234. PS1='$ '
  4235. PS2='> '
  4236. PS4='+ '
  4237. # NLS nuisances.
  4238. for as_var in \
  4239. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  4240. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  4241. LC_TELEPHONE LC_TIME
  4242. do
  4243. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  4244. eval $as_var=C; export $as_var
  4245. else
  4246. $as_unset $as_var
  4247. fi
  4248. done
  4249. # Required to use basename.
  4250. if expr a : '\(a\)' >/dev/null 2>&1; then
  4251. as_expr=expr
  4252. else
  4253. as_expr=false
  4254. fi
  4255. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  4256. as_basename=basename
  4257. else
  4258. as_basename=false
  4259. fi
  4260. # Name of the executable.
  4261. as_me=`$as_basename "$0" ||
  4262. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4263. X"$0" : 'X\(//\)$' \| \
  4264. X"$0" : 'X\(/\)$' \| \
  4265. . : '\(.\)' 2>/dev/null ||
  4266. echo X/"$0" |
  4267. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  4268. /^X\/\(\/\/\)$/{ s//\1/; q; }
  4269. /^X\/\(\/\).*/{ s//\1/; q; }
  4270. s/.*/./; q'`
  4271. # PATH needs CR, and LINENO needs CR and PATH.
  4272. # Avoid depending upon Character Ranges.
  4273. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4274. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4275. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4276. as_cr_digits='0123456789'
  4277. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4278. # The user is always right.
  4279. if test "${PATH_SEPARATOR+set}" != set; then
  4280. echo "#! /bin/sh" >conf$$.sh
  4281. echo "exit 0" >>conf$$.sh
  4282. chmod +x conf$$.sh
  4283. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  4284. PATH_SEPARATOR=';'
  4285. else
  4286. PATH_SEPARATOR=:
  4287. fi
  4288. rm -f conf$$.sh
  4289. fi
  4290. as_lineno_1=$LINENO
  4291. as_lineno_2=$LINENO
  4292. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4293. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4294. test "x$as_lineno_3" = "x$as_lineno_2" || {
  4295. # Find who we are. Look in the path if we contain no path at all
  4296. # relative or not.
  4297. case $0 in
  4298. *[\\/]* ) as_myself=$0 ;;
  4299. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4300. for as_dir in $PATH
  4301. do
  4302. IFS=$as_save_IFS
  4303. test -z "$as_dir" && as_dir=.
  4304. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  4305. done
  4306. ;;
  4307. esac
  4308. # We did not find ourselves, most probably we were run as `sh COMMAND'
  4309. # in which case we are not to be found in the path.
  4310. if test "x$as_myself" = x; then
  4311. as_myself=$0
  4312. fi
  4313. if test ! -f "$as_myself"; then
  4314. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  4315. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  4316. { (exit 1); exit 1; }; }
  4317. fi
  4318. case $CONFIG_SHELL in
  4319. '')
  4320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4321. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  4322. do
  4323. IFS=$as_save_IFS
  4324. test -z "$as_dir" && as_dir=.
  4325. for as_base in sh bash ksh sh5; do
  4326. case $as_dir in
  4327. /*)
  4328. if ("$as_dir/$as_base" -c '
  4329. as_lineno_1=$LINENO
  4330. as_lineno_2=$LINENO
  4331. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  4332. test "x$as_lineno_1" != "x$as_lineno_2" &&
  4333. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  4334. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  4335. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  4336. CONFIG_SHELL=$as_dir/$as_base
  4337. export CONFIG_SHELL
  4338. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  4339. fi;;
  4340. esac
  4341. done
  4342. done
  4343. ;;
  4344. esac
  4345. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  4346. # uniformly replaced by the line number. The first 'sed' inserts a
  4347. # line-number line before each line; the second 'sed' does the real
  4348. # work. The second script uses 'N' to pair each line-number line
  4349. # with the numbered line, and appends trailing '-' during
  4350. # substitution so that $LINENO is not a special case at line end.
  4351. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  4352. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  4353. sed '=' <$as_myself |
  4354. sed '
  4355. N
  4356. s,$,-,
  4357. : loop
  4358. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  4359. t loop
  4360. s,-$,,
  4361. s,^['$as_cr_digits']*\n,,
  4362. ' >$as_me.lineno &&
  4363. chmod +x $as_me.lineno ||
  4364. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  4365. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  4366. { (exit 1); exit 1; }; }
  4367. # Don't try to exec as it changes $[0], causing all sort of problems
  4368. # (the dirname of $[0] is not the place where we might find the
  4369. # original and so on. Autoconf is especially sensible to this).
  4370. . ./$as_me.lineno
  4371. # Exit status is that of the last command.
  4372. exit
  4373. }
  4374. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  4375. *c*,-n*) ECHO_N= ECHO_C='
  4376. ' ECHO_T=' ' ;;
  4377. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  4378. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  4379. esac
  4380. if expr a : '\(a\)' >/dev/null 2>&1; then
  4381. as_expr=expr
  4382. else
  4383. as_expr=false
  4384. fi
  4385. rm -f conf$$ conf$$.exe conf$$.file
  4386. echo >conf$$.file
  4387. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4388. # We could just check for DJGPP; but this test a) works b) is more generic
  4389. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  4390. if test -f conf$$.exe; then
  4391. # Don't use ln at all; we don't have any links
  4392. as_ln_s='cp -p'
  4393. else
  4394. as_ln_s='ln -s'
  4395. fi
  4396. elif ln conf$$.file conf$$ 2>/dev/null; then
  4397. as_ln_s=ln
  4398. else
  4399. as_ln_s='cp -p'
  4400. fi
  4401. rm -f conf$$ conf$$.exe conf$$.file
  4402. if mkdir -p . 2>/dev/null; then
  4403. as_mkdir_p=:
  4404. else
  4405. as_mkdir_p=false
  4406. fi
  4407. as_executable_p="test -f"
  4408. # Sed expression to map a string onto a valid CPP name.
  4409. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  4410. # Sed expression to map a string onto a valid variable name.
  4411. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  4412. # IFS
  4413. # We need space, tab and new line, in precisely that order.
  4414. as_nl='
  4415. '
  4416. IFS=" $as_nl"
  4417. # CDPATH.
  4418. $as_unset CDPATH
  4419. exec 6>&1
  4420. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  4421. # report actual input values of CONFIG_FILES etc. instead of their
  4422. # values after options handling. Logging --version etc. is OK.
  4423. exec 5>>config.log
  4424. {
  4425. echo
  4426. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4427. ## Running $as_me. ##
  4428. _ASBOX
  4429. } >&5
  4430. cat >&5 <<_CSEOF
  4431. This file was extended by $as_me, which was
  4432. generated by GNU Autoconf 2.56. Invocation command line was
  4433. CONFIG_FILES = $CONFIG_FILES
  4434. CONFIG_HEADERS = $CONFIG_HEADERS
  4435. CONFIG_LINKS = $CONFIG_LINKS
  4436. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4437. $ $0 $@
  4438. _CSEOF
  4439. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  4440. echo >&5
  4441. _ACEOF
  4442. # Files that config.status was made for.
  4443. if test -n "$ac_config_files"; then
  4444. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  4445. fi
  4446. if test -n "$ac_config_headers"; then
  4447. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  4448. fi
  4449. if test -n "$ac_config_links"; then
  4450. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  4451. fi
  4452. if test -n "$ac_config_commands"; then
  4453. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  4454. fi
  4455. cat >>$CONFIG_STATUS <<\_ACEOF
  4456. ac_cs_usage="\
  4457. \`$as_me' instantiates files from templates according to the
  4458. current configuration.
  4459. Usage: $0 [OPTIONS] [FILE]...
  4460. -h, --help print this help, then exit
  4461. -V, --version print version number, then exit
  4462. -q, --quiet do not print progress messages
  4463. -d, --debug don't remove temporary files
  4464. --recheck update $as_me by reconfiguring in the same conditions
  4465. --file=FILE[:TEMPLATE]
  4466. instantiate the configuration file FILE
  4467. --header=FILE[:TEMPLATE]
  4468. instantiate the configuration header FILE
  4469. Configuration files:
  4470. $config_files
  4471. Configuration headers:
  4472. $config_headers
  4473. Configuration commands:
  4474. $config_commands
  4475. Report bugs to <bug-autoconf@gnu.org>."
  4476. _ACEOF
  4477. cat >>$CONFIG_STATUS <<_ACEOF
  4478. ac_cs_version="\\
  4479. config.status
  4480. configured by $0, generated by GNU Autoconf 2.56,
  4481. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  4482. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  4483. Free Software Foundation, Inc.
  4484. This config.status script is free software; the Free Software Foundation
  4485. gives unlimited permission to copy, distribute and modify it."
  4486. srcdir=$srcdir
  4487. INSTALL="$INSTALL"
  4488. _ACEOF
  4489. cat >>$CONFIG_STATUS <<\_ACEOF
  4490. # If no file are specified by the user, then we need to provide default
  4491. # value. By we need to know if files were specified by the user.
  4492. ac_need_defaults=:
  4493. while test $# != 0
  4494. do
  4495. case $1 in
  4496. --*=*)
  4497. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  4498. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  4499. ac_shift=:
  4500. ;;
  4501. -*)
  4502. ac_option=$1
  4503. ac_optarg=$2
  4504. ac_shift=shift
  4505. ;;
  4506. *) # This is not an option, so the user has probably given explicit
  4507. # arguments.
  4508. ac_option=$1
  4509. ac_need_defaults=false;;
  4510. esac
  4511. case $ac_option in
  4512. # Handling of the options.
  4513. _ACEOF
  4514. cat >>$CONFIG_STATUS <<\_ACEOF
  4515. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4516. ac_cs_recheck=: ;;
  4517. --version | --vers* | -V )
  4518. echo "$ac_cs_version"; exit 0 ;;
  4519. --he | --h)
  4520. # Conflict between --help and --header
  4521. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  4522. Try \`$0 --help' for more information." >&5
  4523. echo "$as_me: error: ambiguous option: $1
  4524. Try \`$0 --help' for more information." >&2;}
  4525. { (exit 1); exit 1; }; };;
  4526. --help | --hel | -h )
  4527. echo "$ac_cs_usage"; exit 0 ;;
  4528. --debug | --d* | -d )
  4529. debug=: ;;
  4530. --file | --fil | --fi | --f )
  4531. $ac_shift
  4532. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  4533. ac_need_defaults=false;;
  4534. --header | --heade | --head | --hea )
  4535. $ac_shift
  4536. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  4537. ac_need_defaults=false;;
  4538. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4539. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4540. ac_cs_silent=: ;;
  4541. # This is an error.
  4542. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  4543. Try \`$0 --help' for more information." >&5
  4544. echo "$as_me: error: unrecognized option: $1
  4545. Try \`$0 --help' for more information." >&2;}
  4546. { (exit 1); exit 1; }; } ;;
  4547. *) ac_config_targets="$ac_config_targets $1" ;;
  4548. esac
  4549. shift
  4550. done
  4551. ac_configure_extra_args=
  4552. if $ac_cs_silent; then
  4553. exec 6>/dev/null
  4554. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4555. fi
  4556. _ACEOF
  4557. cat >>$CONFIG_STATUS <<_ACEOF
  4558. if \$ac_cs_recheck; then
  4559. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  4560. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4561. fi
  4562. _ACEOF
  4563. cat >>$CONFIG_STATUS <<\_ACEOF
  4564. for ac_config_target in $ac_config_targets
  4565. do
  4566. case "$ac_config_target" in
  4567. # Handling of arguments.
  4568. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4569. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  4570. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  4571. "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  4572. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  4573. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  4574. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  4575. { (exit 1); exit 1; }; };;
  4576. esac
  4577. done
  4578. # If the user did not use the arguments to specify the items to instantiate,
  4579. # then the envvar interface is used. Set only those that are not.
  4580. # We use the long form for the default assignment because of an extremely
  4581. # bizarre bug on SunOS 4.1.3.
  4582. if $ac_need_defaults; then
  4583. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4584. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  4585. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  4586. fi
  4587. # Have a temporary directory for convenience. Make it in the build tree
  4588. # simply because there is no reason to put it here, and in addition,
  4589. # creating and moving files from /tmp can sometimes cause problems.
  4590. # Create a temporary directory, and hook for its removal unless debugging.
  4591. $debug ||
  4592. {
  4593. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4594. trap '{ (exit 1); exit 1; }' 1 2 13 15
  4595. }
  4596. # Create a (secure) tmp directory for tmp files.
  4597. {
  4598. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  4599. test -n "$tmp" && test -d "$tmp"
  4600. } ||
  4601. {
  4602. tmp=./confstat$$-$RANDOM
  4603. (umask 077 && mkdir $tmp)
  4604. } ||
  4605. {
  4606. echo "$me: cannot create a temporary directory in ." >&2
  4607. { (exit 1); exit 1; }
  4608. }
  4609. _ACEOF
  4610. cat >>$CONFIG_STATUS <<_ACEOF
  4611. #
  4612. # CONFIG_FILES section.
  4613. #
  4614. # No need to generate the scripts if there are no CONFIG_FILES.
  4615. # This happens for instance when ./config.status config.h
  4616. if test -n "\$CONFIG_FILES"; then
  4617. # Protect against being on the right side of a sed subst in config.status.
  4618. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  4619. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  4620. s,@SHELL@,$SHELL,;t t
  4621. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  4622. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  4623. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  4624. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  4625. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  4626. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  4627. s,@exec_prefix@,$exec_prefix,;t t
  4628. s,@prefix@,$prefix,;t t
  4629. s,@program_transform_name@,$program_transform_name,;t t
  4630. s,@bindir@,$bindir,;t t
  4631. s,@sbindir@,$sbindir,;t t
  4632. s,@libexecdir@,$libexecdir,;t t
  4633. s,@datadir@,$datadir,;t t
  4634. s,@sysconfdir@,$sysconfdir,;t t
  4635. s,@sharedstatedir@,$sharedstatedir,;t t
  4636. s,@localstatedir@,$localstatedir,;t t
  4637. s,@libdir@,$libdir,;t t
  4638. s,@includedir@,$includedir,;t t
  4639. s,@oldincludedir@,$oldincludedir,;t t
  4640. s,@infodir@,$infodir,;t t
  4641. s,@mandir@,$mandir,;t t
  4642. s,@build_alias@,$build_alias,;t t
  4643. s,@host_alias@,$host_alias,;t t
  4644. s,@target_alias@,$target_alias,;t t
  4645. s,@DEFS@,$DEFS,;t t
  4646. s,@ECHO_C@,$ECHO_C,;t t
  4647. s,@ECHO_N@,$ECHO_N,;t t
  4648. s,@ECHO_T@,$ECHO_T,;t t
  4649. s,@LIBS@,$LIBS,;t t
  4650. s,@PRODUCT@,$PRODUCT,;t t
  4651. s,@VERSION@,$VERSION,;t t
  4652. s,@AWK@,$AWK,;t t
  4653. s,@CC@,$CC,;t t
  4654. s,@CFLAGS@,$CFLAGS,;t t
  4655. s,@LDFLAGS@,$LDFLAGS,;t t
  4656. s,@CPPFLAGS@,$CPPFLAGS,;t t
  4657. s,@ac_ct_CC@,$ac_ct_CC,;t t
  4658. s,@EXEEXT@,$EXEEXT,;t t
  4659. s,@OBJEXT@,$OBJEXT,;t t
  4660. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  4661. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  4662. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  4663. s,@SET_MAKE@,$SET_MAKE,;t t
  4664. s,@RANLIB@,$RANLIB,;t t
  4665. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  4666. s,@CPP@,$CPP,;t t
  4667. s,@EGREP@,$EGREP,;t t
  4668. s,@U@,$U,;t t
  4669. s,@ANSI2KNR@,$ANSI2KNR,;t t
  4670. s,@ALLOCA@,$ALLOCA,;t t
  4671. s,@LIBOBJS@,$LIBOBJS,;t t
  4672. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  4673. CEOF
  4674. _ACEOF
  4675. cat >>$CONFIG_STATUS <<\_ACEOF
  4676. # Split the substitutions into bite-sized pieces for seds with
  4677. # small command number limits, like on Digital OSF/1 and HP-UX.
  4678. ac_max_sed_lines=48
  4679. ac_sed_frag=1 # Number of current file.
  4680. ac_beg=1 # First line for current file.
  4681. ac_end=$ac_max_sed_lines # Line after last line for current file.
  4682. ac_more_lines=:
  4683. ac_sed_cmds=
  4684. while $ac_more_lines; do
  4685. if test $ac_beg -gt 1; then
  4686. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4687. else
  4688. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  4689. fi
  4690. if test ! -s $tmp/subs.frag; then
  4691. ac_more_lines=false
  4692. else
  4693. # The purpose of the label and of the branching condition is to
  4694. # speed up the sed processing (if there are no `@' at all, there
  4695. # is no need to browse any of the substitutions).
  4696. # These are the two extra sed commands mentioned above.
  4697. (echo ':t
  4698. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  4699. if test -z "$ac_sed_cmds"; then
  4700. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  4701. else
  4702. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  4703. fi
  4704. ac_sed_frag=`expr $ac_sed_frag + 1`
  4705. ac_beg=$ac_end
  4706. ac_end=`expr $ac_end + $ac_max_sed_lines`
  4707. fi
  4708. done
  4709. if test -z "$ac_sed_cmds"; then
  4710. ac_sed_cmds=cat
  4711. fi
  4712. fi # test -n "$CONFIG_FILES"
  4713. _ACEOF
  4714. cat >>$CONFIG_STATUS <<\_ACEOF
  4715. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  4716. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4717. case $ac_file in
  4718. - | *:- | *:-:* ) # input from stdin
  4719. cat >$tmp/stdin
  4720. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4721. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4722. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4723. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4724. * ) ac_file_in=$ac_file.in ;;
  4725. esac
  4726. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  4727. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  4728. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4729. X"$ac_file" : 'X\(//\)[^/]' \| \
  4730. X"$ac_file" : 'X\(//\)$' \| \
  4731. X"$ac_file" : 'X\(/\)' \| \
  4732. . : '\(.\)' 2>/dev/null ||
  4733. echo X"$ac_file" |
  4734. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4735. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4736. /^X\(\/\/\)$/{ s//\1/; q; }
  4737. /^X\(\/\).*/{ s//\1/; q; }
  4738. s/.*/./; q'`
  4739. { if $as_mkdir_p; then
  4740. mkdir -p "$ac_dir"
  4741. else
  4742. as_dir="$ac_dir"
  4743. as_dirs=
  4744. while test ! -d "$as_dir"; do
  4745. as_dirs="$as_dir $as_dirs"
  4746. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  4747. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4748. X"$as_dir" : 'X\(//\)[^/]' \| \
  4749. X"$as_dir" : 'X\(//\)$' \| \
  4750. X"$as_dir" : 'X\(/\)' \| \
  4751. . : '\(.\)' 2>/dev/null ||
  4752. echo X"$as_dir" |
  4753. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4754. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4755. /^X\(\/\/\)$/{ s//\1/; q; }
  4756. /^X\(\/\).*/{ s//\1/; q; }
  4757. s/.*/./; q'`
  4758. done
  4759. test ! -n "$as_dirs" || mkdir $as_dirs
  4760. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  4761. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  4762. { (exit 1); exit 1; }; }; }
  4763. ac_builddir=.
  4764. if test "$ac_dir" != .; then
  4765. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4766. # A "../" for each directory in $ac_dir_suffix.
  4767. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  4768. else
  4769. ac_dir_suffix= ac_top_builddir=
  4770. fi
  4771. case $srcdir in
  4772. .) # No --srcdir option. We are building in place.
  4773. ac_srcdir=.
  4774. if test -z "$ac_top_builddir"; then
  4775. ac_top_srcdir=.
  4776. else
  4777. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  4778. fi ;;
  4779. [\\/]* | ?:[\\/]* ) # Absolute path.
  4780. ac_srcdir=$srcdir$ac_dir_suffix;
  4781. ac_top_srcdir=$srcdir ;;
  4782. *) # Relative path.
  4783. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  4784. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  4785. esac
  4786. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  4787. # absolute.
  4788. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  4789. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  4790. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  4791. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  4792. case $INSTALL in
  4793. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  4794. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  4795. esac
  4796. if test x"$ac_file" != x-; then
  4797. { echo "$as_me:$LINENO: creating $ac_file" >&5
  4798. echo "$as_me: creating $ac_file" >&6;}
  4799. rm -f "$ac_file"
  4800. fi
  4801. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4802. # use $as_me), people would be surprised to read:
  4803. # /* config.h. Generated by config.status. */
  4804. if test x"$ac_file" = x-; then
  4805. configure_input=
  4806. else
  4807. configure_input="$ac_file. "
  4808. fi
  4809. configure_input=$configure_input"Generated from `echo $ac_file_in |
  4810. sed 's,.*/,,'` by configure."
  4811. # First look for the input files in the build tree, otherwise in the
  4812. # src tree.
  4813. ac_file_inputs=`IFS=:
  4814. for f in $ac_file_in; do
  4815. case $f in
  4816. -) echo $tmp/stdin ;;
  4817. [\\/$]*)
  4818. # Absolute (can't be DOS-style, as IFS=:)
  4819. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4820. echo "$as_me: error: cannot find input file: $f" >&2;}
  4821. { (exit 1); exit 1; }; }
  4822. echo $f;;
  4823. *) # Relative
  4824. if test -f "$f"; then
  4825. # Build tree
  4826. echo $f
  4827. elif test -f "$srcdir/$f"; then
  4828. # Source tree
  4829. echo $srcdir/$f
  4830. else
  4831. # /dev/null tree
  4832. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4833. echo "$as_me: error: cannot find input file: $f" >&2;}
  4834. { (exit 1); exit 1; }; }
  4835. fi;;
  4836. esac
  4837. done` || { (exit 1); exit 1; }
  4838. _ACEOF
  4839. cat >>$CONFIG_STATUS <<_ACEOF
  4840. sed "$ac_vpsub
  4841. $extrasub
  4842. _ACEOF
  4843. cat >>$CONFIG_STATUS <<\_ACEOF
  4844. :t
  4845. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4846. s,@configure_input@,$configure_input,;t t
  4847. s,@srcdir@,$ac_srcdir,;t t
  4848. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  4849. s,@top_srcdir@,$ac_top_srcdir,;t t
  4850. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  4851. s,@builddir@,$ac_builddir,;t t
  4852. s,@abs_builddir@,$ac_abs_builddir,;t t
  4853. s,@top_builddir@,$ac_top_builddir,;t t
  4854. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  4855. s,@INSTALL@,$ac_INSTALL,;t t
  4856. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  4857. rm -f $tmp/stdin
  4858. if test x"$ac_file" != x-; then
  4859. mv $tmp/out $ac_file
  4860. else
  4861. cat $tmp/out
  4862. rm -f $tmp/out
  4863. fi
  4864. done
  4865. _ACEOF
  4866. cat >>$CONFIG_STATUS <<\_ACEOF
  4867. #
  4868. # CONFIG_HEADER section.
  4869. #
  4870. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  4871. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  4872. #
  4873. # ac_d sets the value in "#define NAME VALUE" lines.
  4874. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  4875. ac_dB='[ ].*$,\1#\2'
  4876. ac_dC=' '
  4877. ac_dD=',;t'
  4878. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  4879. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  4880. ac_uB='$,\1#\2define\3'
  4881. ac_uC=' '
  4882. ac_uD=',;t'
  4883. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  4884. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  4885. case $ac_file in
  4886. - | *:- | *:-:* ) # input from stdin
  4887. cat >$tmp/stdin
  4888. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4889. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4890. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  4891. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  4892. * ) ac_file_in=$ac_file.in ;;
  4893. esac
  4894. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  4895. echo "$as_me: creating $ac_file" >&6;}
  4896. # First look for the input files in the build tree, otherwise in the
  4897. # src tree.
  4898. ac_file_inputs=`IFS=:
  4899. for f in $ac_file_in; do
  4900. case $f in
  4901. -) echo $tmp/stdin ;;
  4902. [\\/$]*)
  4903. # Absolute (can't be DOS-style, as IFS=:)
  4904. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4905. echo "$as_me: error: cannot find input file: $f" >&2;}
  4906. { (exit 1); exit 1; }; }
  4907. echo $f;;
  4908. *) # Relative
  4909. if test -f "$f"; then
  4910. # Build tree
  4911. echo $f
  4912. elif test -f "$srcdir/$f"; then
  4913. # Source tree
  4914. echo $srcdir/$f
  4915. else
  4916. # /dev/null tree
  4917. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  4918. echo "$as_me: error: cannot find input file: $f" >&2;}
  4919. { (exit 1); exit 1; }; }
  4920. fi;;
  4921. esac
  4922. done` || { (exit 1); exit 1; }
  4923. # Remove the trailing spaces.
  4924. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  4925. _ACEOF
  4926. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  4927. # `conftest.undefs', that substitutes the proper values into
  4928. # config.h.in to produce config.h. The first handles `#define'
  4929. # templates, and the second `#undef' templates.
  4930. # And first: Protect against being on the right side of a sed subst in
  4931. # config.status. Protect against being in an unquoted here document
  4932. # in config.status.
  4933. rm -f conftest.defines conftest.undefs
  4934. # Using a here document instead of a string reduces the quoting nightmare.
  4935. # Putting comments in sed scripts is not portable.
  4936. #
  4937. # `end' is used to avoid that the second main sed command (meant for
  4938. # 0-ary CPP macros) applies to n-ary macro definitions.
  4939. # See the Autoconf documentation for `clear'.
  4940. cat >confdef2sed.sed <<\_ACEOF
  4941. s/[\\&,]/\\&/g
  4942. s,[\\$`],\\&,g
  4943. t clear
  4944. : clear
  4945. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  4946. t end
  4947. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  4948. : end
  4949. _ACEOF
  4950. # If some macros were called several times there might be several times
  4951. # the same #defines, which is useless. Nevertheless, we may not want to
  4952. # sort them, since we want the *last* AC-DEFINE to be honored.
  4953. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  4954. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  4955. rm -f confdef2sed.sed
  4956. # This sed command replaces #undef with comments. This is necessary, for
  4957. # example, in the case of _POSIX_SOURCE, which is predefined and required
  4958. # on some systems where configure will not decide to define it.
  4959. cat >>conftest.undefs <<\_ACEOF
  4960. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  4961. _ACEOF
  4962. # Break up conftest.defines because some shells have a limit on the size
  4963. # of here documents, and old seds have small limits too (100 cmds).
  4964. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  4965. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  4966. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  4967. echo ' :' >>$CONFIG_STATUS
  4968. rm -f conftest.tail
  4969. while grep . conftest.defines >/dev/null
  4970. do
  4971. # Write a limited-size here document to $tmp/defines.sed.
  4972. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  4973. # Speed up: don't consider the non `#define' lines.
  4974. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  4975. # Work around the forget-to-reset-the-flag bug.
  4976. echo 't clr' >>$CONFIG_STATUS
  4977. echo ': clr' >>$CONFIG_STATUS
  4978. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  4979. echo 'CEOF
  4980. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  4981. rm -f $tmp/in
  4982. mv $tmp/out $tmp/in
  4983. ' >>$CONFIG_STATUS
  4984. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  4985. rm -f conftest.defines
  4986. mv conftest.tail conftest.defines
  4987. done
  4988. rm -f conftest.defines
  4989. echo ' fi # grep' >>$CONFIG_STATUS
  4990. echo >>$CONFIG_STATUS
  4991. # Break up conftest.undefs because some shells have a limit on the size
  4992. # of here documents, and old seds have small limits too (100 cmds).
  4993. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  4994. rm -f conftest.tail
  4995. while grep . conftest.undefs >/dev/null
  4996. do
  4997. # Write a limited-size here document to $tmp/undefs.sed.
  4998. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  4999. # Speed up: don't consider the non `#undef'
  5000. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  5001. # Work around the forget-to-reset-the-flag bug.
  5002. echo 't clr' >>$CONFIG_STATUS
  5003. echo ': clr' >>$CONFIG_STATUS
  5004. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  5005. echo 'CEOF
  5006. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  5007. rm -f $tmp/in
  5008. mv $tmp/out $tmp/in
  5009. ' >>$CONFIG_STATUS
  5010. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  5011. rm -f conftest.undefs
  5012. mv conftest.tail conftest.undefs
  5013. done
  5014. rm -f conftest.undefs
  5015. cat >>$CONFIG_STATUS <<\_ACEOF
  5016. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5017. # use $as_me), people would be surprised to read:
  5018. # /* config.h. Generated by config.status. */
  5019. if test x"$ac_file" = x-; then
  5020. echo "/* Generated by configure. */" >$tmp/config.h
  5021. else
  5022. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  5023. fi
  5024. cat $tmp/in >>$tmp/config.h
  5025. rm -f $tmp/in
  5026. if test x"$ac_file" != x-; then
  5027. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  5028. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  5029. echo "$as_me: $ac_file is unchanged" >&6;}
  5030. else
  5031. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  5032. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5033. X"$ac_file" : 'X\(//\)[^/]' \| \
  5034. X"$ac_file" : 'X\(//\)$' \| \
  5035. X"$ac_file" : 'X\(/\)' \| \
  5036. . : '\(.\)' 2>/dev/null ||
  5037. echo X"$ac_file" |
  5038. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5039. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5040. /^X\(\/\/\)$/{ s//\1/; q; }
  5041. /^X\(\/\).*/{ s//\1/; q; }
  5042. s/.*/./; q'`
  5043. { if $as_mkdir_p; then
  5044. mkdir -p "$ac_dir"
  5045. else
  5046. as_dir="$ac_dir"
  5047. as_dirs=
  5048. while test ! -d "$as_dir"; do
  5049. as_dirs="$as_dir $as_dirs"
  5050. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  5051. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5052. X"$as_dir" : 'X\(//\)[^/]' \| \
  5053. X"$as_dir" : 'X\(//\)$' \| \
  5054. X"$as_dir" : 'X\(/\)' \| \
  5055. . : '\(.\)' 2>/dev/null ||
  5056. echo X"$as_dir" |
  5057. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5058. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5059. /^X\(\/\/\)$/{ s//\1/; q; }
  5060. /^X\(\/\).*/{ s//\1/; q; }
  5061. s/.*/./; q'`
  5062. done
  5063. test ! -n "$as_dirs" || mkdir $as_dirs
  5064. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  5065. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  5066. { (exit 1); exit 1; }; }; }
  5067. rm -f $ac_file
  5068. mv $tmp/config.h $ac_file
  5069. fi
  5070. else
  5071. cat $tmp/config.h
  5072. rm -f $tmp/config.h
  5073. fi
  5074. done
  5075. _ACEOF
  5076. cat >>$CONFIG_STATUS <<\_ACEOF
  5077. #
  5078. # CONFIG_COMMANDS section.
  5079. #
  5080. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  5081. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  5082. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  5083. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  5084. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5085. X"$ac_dest" : 'X\(//\)[^/]' \| \
  5086. X"$ac_dest" : 'X\(//\)$' \| \
  5087. X"$ac_dest" : 'X\(/\)' \| \
  5088. . : '\(.\)' 2>/dev/null ||
  5089. echo X"$ac_dest" |
  5090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  5091. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  5092. /^X\(\/\/\)$/{ s//\1/; q; }
  5093. /^X\(\/\).*/{ s//\1/; q; }
  5094. s/.*/./; q'`
  5095. ac_builddir=.
  5096. if test "$ac_dir" != .; then
  5097. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5098. # A "../" for each directory in $ac_dir_suffix.
  5099. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  5100. else
  5101. ac_dir_suffix= ac_top_builddir=
  5102. fi
  5103. case $srcdir in
  5104. .) # No --srcdir option. We are building in place.
  5105. ac_srcdir=.
  5106. if test -z "$ac_top_builddir"; then
  5107. ac_top_srcdir=.
  5108. else
  5109. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  5110. fi ;;
  5111. [\\/]* | ?:[\\/]* ) # Absolute path.
  5112. ac_srcdir=$srcdir$ac_dir_suffix;
  5113. ac_top_srcdir=$srcdir ;;
  5114. *) # Relative path.
  5115. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  5116. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  5117. esac
  5118. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  5119. # absolute.
  5120. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  5121. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  5122. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  5123. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  5124. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  5125. echo "$as_me: executing $ac_dest commands" >&6;}
  5126. case $ac_dest in
  5127. default ) test -z "$CONFIG_HEADERS" || date > stamp-h ;;
  5128. esac
  5129. done
  5130. _ACEOF
  5131. cat >>$CONFIG_STATUS <<\_ACEOF
  5132. { (exit 0); exit 0; }
  5133. _ACEOF
  5134. chmod +x $CONFIG_STATUS
  5135. ac_clean_files=$ac_clean_files_save
  5136. # configure is writing to config.log, and then calls config.status.
  5137. # config.status does its own redirection, appending to config.log.
  5138. # Unfortunately, on DOS this fails, as config.log is still kept open
  5139. # by configure, so config.status won't be able to write to it; its
  5140. # output is simply discarded. So we exec the FD to /dev/null,
  5141. # effectively closing config.log, so it can be properly (re)opened and
  5142. # appended to by config.status. When coming back to configure, we
  5143. # need to make the FD available again.
  5144. if test "$no_create" != yes; then
  5145. ac_cs_success=:
  5146. ac_config_status_args=
  5147. test "$silent" = yes &&
  5148. ac_config_status_args="$ac_config_status_args --quiet"
  5149. exec 5>/dev/null
  5150. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5151. exec 5>>config.log
  5152. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5153. # would make configure fail if this is the last instruction.
  5154. $ac_cs_success || { (exit 1); exit 1; }
  5155. fi