configure 143 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  185. if (eval "$as_required") 2>/dev/null; then :
  186. as_have_required=yes
  187. else
  188. as_have_required=no
  189. fi
  190. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  191. else
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. as_found=false
  194. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir/$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  206. CONFIG_SHELL=$as_shell as_have_required=yes
  207. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  216. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  217. CONFIG_SHELL=$SHELL as_have_required=yes
  218. fi; }
  219. IFS=$as_save_IFS
  220. if test "x$CONFIG_SHELL" != x; then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed `exec'.
  238. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno; then :
  242. $as_echo "$0: This script requires a shell more modern than all"
  243. $as_echo "$0: the shells that I found on your system."
  244. if test x${ZSH_VERSION+set} = xset ; then
  245. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  246. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  247. else
  248. $as_echo "$0: Please tell [email protected] about your system,
  249. $0: including any error possibly output before this
  250. $0: message. Then install a modern shell, or manually run
  251. $0: the script under such a shell if you do have one."
  252. fi
  253. exit 1
  254. fi
  255. fi
  256. fi
  257. SHELL=${CONFIG_SHELL-/bin/sh}
  258. export SHELL
  259. # Unset more variables known to interfere with behavior of common tools.
  260. CLICOLOR_FORCE= GREP_OPTIONS=
  261. unset CLICOLOR_FORCE GREP_OPTIONS
  262. ## --------------------- ##
  263. ## M4sh Shell Functions. ##
  264. ## --------------------- ##
  265. # as_fn_unset VAR
  266. # ---------------
  267. # Portably unset VAR.
  268. as_fn_unset ()
  269. {
  270. { eval $1=; unset $1;}
  271. }
  272. as_unset=as_fn_unset
  273. # as_fn_set_status STATUS
  274. # -----------------------
  275. # Set $? to STATUS, without forking.
  276. as_fn_set_status ()
  277. {
  278. return $1
  279. } # as_fn_set_status
  280. # as_fn_exit STATUS
  281. # -----------------
  282. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  283. as_fn_exit ()
  284. {
  285. set +e
  286. as_fn_set_status $1
  287. exit $1
  288. } # as_fn_exit
  289. # as_fn_mkdir_p
  290. # -------------
  291. # Create "$as_dir" as a directory, including parents if necessary.
  292. as_fn_mkdir_p ()
  293. {
  294. case $as_dir in #(
  295. -*) as_dir=./$as_dir;;
  296. esac
  297. test -d "$as_dir" || eval $as_mkdir_p || {
  298. as_dirs=
  299. while :; do
  300. case $as_dir in #(
  301. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  302. *) as_qdir=$as_dir;;
  303. esac
  304. as_dirs="'$as_qdir' $as_dirs"
  305. as_dir=`$as_dirname -- "$as_dir" ||
  306. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  307. X"$as_dir" : 'X\(//\)[^/]' \| \
  308. X"$as_dir" : 'X\(//\)$' \| \
  309. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  310. $as_echo X"$as_dir" |
  311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  312. s//\1/
  313. q
  314. }
  315. /^X\(\/\/\)[^/].*/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\).*/{
  324. s//\1/
  325. q
  326. }
  327. s/.*/./; q'`
  328. test -d "$as_dir" && break
  329. done
  330. test -z "$as_dirs" || eval "mkdir $as_dirs"
  331. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  332. } # as_fn_mkdir_p
  333. # as_fn_executable_p FILE
  334. # -----------------------
  335. # Test if FILE is an executable regular file.
  336. as_fn_executable_p ()
  337. {
  338. test -f "$1" && test -x "$1"
  339. } # as_fn_executable_p
  340. # as_fn_append VAR VALUE
  341. # ----------------------
  342. # Append the text in VALUE to the end of the definition contained in VAR. Take
  343. # advantage of any shell optimizations that allow amortized linear growth over
  344. # repeated appends, instead of the typical quadratic growth present in naive
  345. # implementations.
  346. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  347. eval 'as_fn_append ()
  348. {
  349. eval $1+=\$2
  350. }'
  351. else
  352. as_fn_append ()
  353. {
  354. eval $1=\$$1\$2
  355. }
  356. fi # as_fn_append
  357. # as_fn_arith ARG...
  358. # ------------------
  359. # Perform arithmetic evaluation on the ARGs, and store the result in the
  360. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  361. # must be portable across $(()) and expr.
  362. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  363. eval 'as_fn_arith ()
  364. {
  365. as_val=$(( $* ))
  366. }'
  367. else
  368. as_fn_arith ()
  369. {
  370. as_val=`expr "$@" || test $? -eq 1`
  371. }
  372. fi # as_fn_arith
  373. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  374. # ----------------------------------------
  375. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  376. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  377. # script with STATUS, using 1 if that was 0.
  378. as_fn_error ()
  379. {
  380. as_status=$1; test $as_status -eq 0 && as_status=1
  381. if test "$4"; then
  382. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  383. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  384. fi
  385. $as_echo "$as_me: error: $2" >&2
  386. as_fn_exit $as_status
  387. } # as_fn_error
  388. if expr a : '\(a\)' >/dev/null 2>&1 &&
  389. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  390. as_expr=expr
  391. else
  392. as_expr=false
  393. fi
  394. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  395. as_basename=basename
  396. else
  397. as_basename=false
  398. fi
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. as_me=`$as_basename -- "$0" ||
  405. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  406. X"$0" : 'X\(//\)$' \| \
  407. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  408. $as_echo X/"$0" |
  409. sed '/^.*\/\([^/][^/]*\)\/*$/{
  410. s//\1/
  411. q
  412. }
  413. /^X\/\(\/\/\)$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\).*/{
  418. s//\1/
  419. q
  420. }
  421. s/.*/./; q'`
  422. # Avoid depending upon Character Ranges.
  423. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  424. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  425. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  426. as_cr_digits='0123456789'
  427. as_cr_alnum=$as_cr_Letters$as_cr_digits
  428. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  429. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  430. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  431. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  432. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  433. sed -n '
  434. p
  435. /[$]LINENO/=
  436. ' <$as_myself |
  437. sed '
  438. s/[$]LINENO.*/&-/
  439. t lineno
  440. b
  441. :lineno
  442. N
  443. :loop
  444. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  445. t loop
  446. s/-\n.*//
  447. ' >$as_me.lineno &&
  448. chmod +x "$as_me.lineno" ||
  449. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  450. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  451. # already done that, so ensure we don't try to do so again and fall
  452. # in an infinite loop. This has already happened in practice.
  453. _as_can_reexec=no; export _as_can_reexec
  454. # Don't try to exec as it changes $[0], causing all sort of problems
  455. # (the dirname of $[0] is not the place where we might find the
  456. # original and so on. Autoconf is especially sensitive to this).
  457. . "./$as_me.lineno"
  458. # Exit status is that of the last command.
  459. exit
  460. }
  461. ECHO_C= ECHO_N= ECHO_T=
  462. case `echo -n x` in #(((((
  463. -n*)
  464. case `echo 'xy\c'` in
  465. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  466. xy) ECHO_C='\c';;
  467. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  468. ECHO_T=' ';;
  469. esac;;
  470. *)
  471. ECHO_N='-n';;
  472. esac
  473. rm -f conf$$ conf$$.exe conf$$.file
  474. if test -d conf$$.dir; then
  475. rm -f conf$$.dir/conf$$.file
  476. else
  477. rm -f conf$$.dir
  478. mkdir conf$$.dir 2>/dev/null
  479. fi
  480. if (echo >conf$$.file) 2>/dev/null; then
  481. if ln -s conf$$.file conf$$ 2>/dev/null; then
  482. as_ln_s='ln -s'
  483. # ... but there are two gotchas:
  484. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  485. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  486. # In both cases, we have to default to `cp -pR'.
  487. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  488. as_ln_s='cp -pR'
  489. elif ln conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s=ln
  491. else
  492. as_ln_s='cp -pR'
  493. fi
  494. else
  495. as_ln_s='cp -pR'
  496. fi
  497. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  498. rmdir conf$$.dir 2>/dev/null
  499. if mkdir -p . 2>/dev/null; then
  500. as_mkdir_p='mkdir -p "$as_dir"'
  501. else
  502. test -d ./-p && rmdir ./-p
  503. as_mkdir_p=false
  504. fi
  505. as_test_x='test -x'
  506. as_executable_p=as_fn_executable_p
  507. # Sed expression to map a string onto a valid CPP name.
  508. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  509. # Sed expression to map a string onto a valid variable name.
  510. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  511. test -n "$DJDIR" || exec 7<&0 </dev/null
  512. exec 6>&1
  513. # Name of the host.
  514. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  515. # so uname gets run too.
  516. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  517. #
  518. # Initializations.
  519. #
  520. ac_default_prefix=/usr/local
  521. ac_clean_files=
  522. ac_config_libobj_dir=.
  523. LIBOBJS=
  524. cross_compiling=no
  525. subdirs=
  526. MFLAGS=
  527. MAKEFLAGS=
  528. # Identity of this package.
  529. PACKAGE_NAME=
  530. PACKAGE_TARNAME=
  531. PACKAGE_VERSION=
  532. PACKAGE_STRING=
  533. PACKAGE_BUGREPORT=
  534. PACKAGE_URL=
  535. ac_unique_file="README"
  536. ac_subst_vars='LTLIBOBJS
  537. LIBOBJS
  538. SDL_TTF_LIB
  539. XLIB
  540. GLESLIB
  541. GLLIB
  542. CPP
  543. XMKMF
  544. SDL_CONFIG
  545. SDL_LIBS
  546. SDL_CFLAGS
  547. PKG_CONFIG_LIBDIR
  548. PKG_CONFIG_PATH
  549. PKG_CONFIG
  550. ISUNIX
  551. ISWINDOWS
  552. ISMACOSX
  553. MATHLIB
  554. EXE
  555. OSMESA_CONFIG
  556. OBJEXT
  557. EXEEXT
  558. ac_ct_CC
  559. CPPFLAGS
  560. LDFLAGS
  561. CFLAGS
  562. CC
  563. host_os
  564. host_vendor
  565. host_cpu
  566. host
  567. build_os
  568. build_vendor
  569. build_cpu
  570. build
  571. target_alias
  572. host_alias
  573. build_alias
  574. LIBS
  575. ECHO_T
  576. ECHO_N
  577. ECHO_C
  578. DEFS
  579. mandir
  580. localedir
  581. libdir
  582. psdir
  583. pdfdir
  584. dvidir
  585. htmldir
  586. infodir
  587. docdir
  588. oldincludedir
  589. includedir
  590. localstatedir
  591. sharedstatedir
  592. sysconfdir
  593. datadir
  594. datarootdir
  595. libexecdir
  596. sbindir
  597. bindir
  598. program_transform_name
  599. prefix
  600. exec_prefix
  601. PACKAGE_URL
  602. PACKAGE_BUGREPORT
  603. PACKAGE_STRING
  604. PACKAGE_VERSION
  605. PACKAGE_TARNAME
  606. PACKAGE_NAME
  607. PATH_SEPARATOR
  608. SHELL'
  609. ac_subst_files=''
  610. ac_user_opts='
  611. enable_option_checking
  612. with_sdl_prefix
  613. with_sdl_exec_prefix
  614. enable_sdltest
  615. with_x
  616. '
  617. ac_precious_vars='build_alias
  618. host_alias
  619. target_alias
  620. CC
  621. CFLAGS
  622. LDFLAGS
  623. LIBS
  624. CPPFLAGS
  625. PKG_CONFIG
  626. PKG_CONFIG_PATH
  627. PKG_CONFIG_LIBDIR
  628. SDL_CFLAGS
  629. SDL_LIBS
  630. XMKMF
  631. CPP'
  632. # Initialize some variables set by options.
  633. ac_init_help=
  634. ac_init_version=false
  635. ac_unrecognized_opts=
  636. ac_unrecognized_sep=
  637. # The variables have the same names as the options, with
  638. # dashes changed to underlines.
  639. cache_file=/dev/null
  640. exec_prefix=NONE
  641. no_create=
  642. no_recursion=
  643. prefix=NONE
  644. program_prefix=NONE
  645. program_suffix=NONE
  646. program_transform_name=s,x,x,
  647. silent=
  648. site=
  649. srcdir=
  650. verbose=
  651. x_includes=NONE
  652. x_libraries=NONE
  653. # Installation directory options.
  654. # These are left unexpanded so users can "make install exec_prefix=/foo"
  655. # and all the variables that are supposed to be based on exec_prefix
  656. # by default will actually change.
  657. # Use braces instead of parens because sh, perl, etc. also accept them.
  658. # (The list follows the same order as the GNU Coding Standards.)
  659. bindir='${exec_prefix}/bin'
  660. sbindir='${exec_prefix}/sbin'
  661. libexecdir='${exec_prefix}/libexec'
  662. datarootdir='${prefix}/share'
  663. datadir='${datarootdir}'
  664. sysconfdir='${prefix}/etc'
  665. sharedstatedir='${prefix}/com'
  666. localstatedir='${prefix}/var'
  667. includedir='${prefix}/include'
  668. oldincludedir='/usr/include'
  669. docdir='${datarootdir}/doc/${PACKAGE}'
  670. infodir='${datarootdir}/info'
  671. htmldir='${docdir}'
  672. dvidir='${docdir}'
  673. pdfdir='${docdir}'
  674. psdir='${docdir}'
  675. libdir='${exec_prefix}/lib'
  676. localedir='${datarootdir}/locale'
  677. mandir='${datarootdir}/man'
  678. ac_prev=
  679. ac_dashdash=
  680. for ac_option
  681. do
  682. # If the previous option needs an argument, assign it.
  683. if test -n "$ac_prev"; then
  684. eval $ac_prev=\$ac_option
  685. ac_prev=
  686. continue
  687. fi
  688. case $ac_option in
  689. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  690. *=) ac_optarg= ;;
  691. *) ac_optarg=yes ;;
  692. esac
  693. # Accept the important Cygnus configure options, so we can diagnose typos.
  694. case $ac_dashdash$ac_option in
  695. --)
  696. ac_dashdash=yes ;;
  697. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  698. ac_prev=bindir ;;
  699. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  700. bindir=$ac_optarg ;;
  701. -build | --build | --buil | --bui | --bu)
  702. ac_prev=build_alias ;;
  703. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  704. build_alias=$ac_optarg ;;
  705. -cache-file | --cache-file | --cache-fil | --cache-fi \
  706. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  707. ac_prev=cache_file ;;
  708. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  709. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  710. cache_file=$ac_optarg ;;
  711. --config-cache | -C)
  712. cache_file=config.cache ;;
  713. -datadir | --datadir | --datadi | --datad)
  714. ac_prev=datadir ;;
  715. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  716. datadir=$ac_optarg ;;
  717. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  718. | --dataroo | --dataro | --datar)
  719. ac_prev=datarootdir ;;
  720. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  721. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  722. datarootdir=$ac_optarg ;;
  723. -disable-* | --disable-*)
  724. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  725. # Reject names that are not valid shell variable names.
  726. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  727. as_fn_error $? "invalid feature name: $ac_useropt"
  728. ac_useropt_orig=$ac_useropt
  729. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  730. case $ac_user_opts in
  731. *"
  732. "enable_$ac_useropt"
  733. "*) ;;
  734. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  735. ac_unrecognized_sep=', ';;
  736. esac
  737. eval enable_$ac_useropt=no ;;
  738. -docdir | --docdir | --docdi | --doc | --do)
  739. ac_prev=docdir ;;
  740. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  741. docdir=$ac_optarg ;;
  742. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  743. ac_prev=dvidir ;;
  744. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  745. dvidir=$ac_optarg ;;
  746. -enable-* | --enable-*)
  747. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  748. # Reject names that are not valid shell variable names.
  749. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  750. as_fn_error $? "invalid feature name: $ac_useropt"
  751. ac_useropt_orig=$ac_useropt
  752. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  753. case $ac_user_opts in
  754. *"
  755. "enable_$ac_useropt"
  756. "*) ;;
  757. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  758. ac_unrecognized_sep=', ';;
  759. esac
  760. eval enable_$ac_useropt=\$ac_optarg ;;
  761. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  762. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  763. | --exec | --exe | --ex)
  764. ac_prev=exec_prefix ;;
  765. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  766. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  767. | --exec=* | --exe=* | --ex=*)
  768. exec_prefix=$ac_optarg ;;
  769. -gas | --gas | --ga | --g)
  770. # Obsolete; use --with-gas.
  771. with_gas=yes ;;
  772. -help | --help | --hel | --he | -h)
  773. ac_init_help=long ;;
  774. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  775. ac_init_help=recursive ;;
  776. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  777. ac_init_help=short ;;
  778. -host | --host | --hos | --ho)
  779. ac_prev=host_alias ;;
  780. -host=* | --host=* | --hos=* | --ho=*)
  781. host_alias=$ac_optarg ;;
  782. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  783. ac_prev=htmldir ;;
  784. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  785. | --ht=*)
  786. htmldir=$ac_optarg ;;
  787. -includedir | --includedir | --includedi | --included | --include \
  788. | --includ | --inclu | --incl | --inc)
  789. ac_prev=includedir ;;
  790. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  791. | --includ=* | --inclu=* | --incl=* | --inc=*)
  792. includedir=$ac_optarg ;;
  793. -infodir | --infodir | --infodi | --infod | --info | --inf)
  794. ac_prev=infodir ;;
  795. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  796. infodir=$ac_optarg ;;
  797. -libdir | --libdir | --libdi | --libd)
  798. ac_prev=libdir ;;
  799. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  800. libdir=$ac_optarg ;;
  801. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  802. | --libexe | --libex | --libe)
  803. ac_prev=libexecdir ;;
  804. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  805. | --libexe=* | --libex=* | --libe=*)
  806. libexecdir=$ac_optarg ;;
  807. -localedir | --localedir | --localedi | --localed | --locale)
  808. ac_prev=localedir ;;
  809. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  810. localedir=$ac_optarg ;;
  811. -localstatedir | --localstatedir | --localstatedi | --localstated \
  812. | --localstate | --localstat | --localsta | --localst | --locals)
  813. ac_prev=localstatedir ;;
  814. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  815. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  816. localstatedir=$ac_optarg ;;
  817. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  818. ac_prev=mandir ;;
  819. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  820. mandir=$ac_optarg ;;
  821. -nfp | --nfp | --nf)
  822. # Obsolete; use --without-fp.
  823. with_fp=no ;;
  824. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  825. | --no-cr | --no-c | -n)
  826. no_create=yes ;;
  827. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  828. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  829. no_recursion=yes ;;
  830. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  831. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  832. | --oldin | --oldi | --old | --ol | --o)
  833. ac_prev=oldincludedir ;;
  834. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  835. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  836. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  837. oldincludedir=$ac_optarg ;;
  838. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  839. ac_prev=prefix ;;
  840. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  841. prefix=$ac_optarg ;;
  842. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  843. | --program-pre | --program-pr | --program-p)
  844. ac_prev=program_prefix ;;
  845. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  846. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  847. program_prefix=$ac_optarg ;;
  848. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  849. | --program-suf | --program-su | --program-s)
  850. ac_prev=program_suffix ;;
  851. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  852. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  853. program_suffix=$ac_optarg ;;
  854. -program-transform-name | --program-transform-name \
  855. | --program-transform-nam | --program-transform-na \
  856. | --program-transform-n | --program-transform- \
  857. | --program-transform | --program-transfor \
  858. | --program-transfo | --program-transf \
  859. | --program-trans | --program-tran \
  860. | --progr-tra | --program-tr | --program-t)
  861. ac_prev=program_transform_name ;;
  862. -program-transform-name=* | --program-transform-name=* \
  863. | --program-transform-nam=* | --program-transform-na=* \
  864. | --program-transform-n=* | --program-transform-=* \
  865. | --program-transform=* | --program-transfor=* \
  866. | --program-transfo=* | --program-transf=* \
  867. | --program-trans=* | --program-tran=* \
  868. | --progr-tra=* | --program-tr=* | --program-t=*)
  869. program_transform_name=$ac_optarg ;;
  870. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  871. ac_prev=pdfdir ;;
  872. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  873. pdfdir=$ac_optarg ;;
  874. -psdir | --psdir | --psdi | --psd | --ps)
  875. ac_prev=psdir ;;
  876. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  877. psdir=$ac_optarg ;;
  878. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  879. | -silent | --silent | --silen | --sile | --sil)
  880. silent=yes ;;
  881. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  882. ac_prev=sbindir ;;
  883. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  884. | --sbi=* | --sb=*)
  885. sbindir=$ac_optarg ;;
  886. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  887. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  888. | --sharedst | --shareds | --shared | --share | --shar \
  889. | --sha | --sh)
  890. ac_prev=sharedstatedir ;;
  891. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  892. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  893. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  894. | --sha=* | --sh=*)
  895. sharedstatedir=$ac_optarg ;;
  896. -site | --site | --sit)
  897. ac_prev=site ;;
  898. -site=* | --site=* | --sit=*)
  899. site=$ac_optarg ;;
  900. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  901. ac_prev=srcdir ;;
  902. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  903. srcdir=$ac_optarg ;;
  904. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  905. | --syscon | --sysco | --sysc | --sys | --sy)
  906. ac_prev=sysconfdir ;;
  907. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  908. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  909. sysconfdir=$ac_optarg ;;
  910. -target | --target | --targe | --targ | --tar | --ta | --t)
  911. ac_prev=target_alias ;;
  912. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  913. target_alias=$ac_optarg ;;
  914. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  915. verbose=yes ;;
  916. -version | --version | --versio | --versi | --vers | -V)
  917. ac_init_version=: ;;
  918. -with-* | --with-*)
  919. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  920. # Reject names that are not valid shell variable names.
  921. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  922. as_fn_error $? "invalid package name: $ac_useropt"
  923. ac_useropt_orig=$ac_useropt
  924. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  925. case $ac_user_opts in
  926. *"
  927. "with_$ac_useropt"
  928. "*) ;;
  929. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  930. ac_unrecognized_sep=', ';;
  931. esac
  932. eval with_$ac_useropt=\$ac_optarg ;;
  933. -without-* | --without-*)
  934. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  935. # Reject names that are not valid shell variable names.
  936. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  937. as_fn_error $? "invalid package name: $ac_useropt"
  938. ac_useropt_orig=$ac_useropt
  939. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  940. case $ac_user_opts in
  941. *"
  942. "with_$ac_useropt"
  943. "*) ;;
  944. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  945. ac_unrecognized_sep=', ';;
  946. esac
  947. eval with_$ac_useropt=no ;;
  948. --x)
  949. # Obsolete; use --with-x.
  950. with_x=yes ;;
  951. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  952. | --x-incl | --x-inc | --x-in | --x-i)
  953. ac_prev=x_includes ;;
  954. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  955. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  956. x_includes=$ac_optarg ;;
  957. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  958. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  959. ac_prev=x_libraries ;;
  960. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  961. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  962. x_libraries=$ac_optarg ;;
  963. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  964. Try \`$0 --help' for more information"
  965. ;;
  966. *=*)
  967. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  968. # Reject names that are not valid shell variable names.
  969. case $ac_envvar in #(
  970. '' | [0-9]* | *[!_$as_cr_alnum]* )
  971. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  972. esac
  973. eval $ac_envvar=\$ac_optarg
  974. export $ac_envvar ;;
  975. *)
  976. # FIXME: should be removed in autoconf 3.0.
  977. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  978. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  979. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  980. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  981. ;;
  982. esac
  983. done
  984. if test -n "$ac_prev"; then
  985. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  986. as_fn_error $? "missing argument to $ac_option"
  987. fi
  988. if test -n "$ac_unrecognized_opts"; then
  989. case $enable_option_checking in
  990. no) ;;
  991. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  992. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  993. esac
  994. fi
  995. # Check all directory arguments for consistency.
  996. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  997. datadir sysconfdir sharedstatedir localstatedir includedir \
  998. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  999. libdir localedir mandir
  1000. do
  1001. eval ac_val=\$$ac_var
  1002. # Remove trailing slashes.
  1003. case $ac_val in
  1004. */ )
  1005. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1006. eval $ac_var=\$ac_val;;
  1007. esac
  1008. # Be sure to have absolute directory names.
  1009. case $ac_val in
  1010. [\\/$]* | ?:[\\/]* ) continue;;
  1011. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1012. esac
  1013. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1014. done
  1015. # There might be people who depend on the old broken behavior: `$host'
  1016. # used to hold the argument of --host etc.
  1017. # FIXME: To remove some day.
  1018. build=$build_alias
  1019. host=$host_alias
  1020. target=$target_alias
  1021. # FIXME: To remove some day.
  1022. if test "x$host_alias" != x; then
  1023. if test "x$build_alias" = x; then
  1024. cross_compiling=maybe
  1025. elif test "x$build_alias" != "x$host_alias"; then
  1026. cross_compiling=yes
  1027. fi
  1028. fi
  1029. ac_tool_prefix=
  1030. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1031. test "$silent" = yes && exec 6>/dev/null
  1032. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1033. ac_ls_di=`ls -di .` &&
  1034. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1035. as_fn_error $? "working directory cannot be determined"
  1036. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1037. as_fn_error $? "pwd does not report name of working directory"
  1038. # Find the source files, if location was not specified.
  1039. if test -z "$srcdir"; then
  1040. ac_srcdir_defaulted=yes
  1041. # Try the directory containing this script, then the parent directory.
  1042. ac_confdir=`$as_dirname -- "$as_myself" ||
  1043. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1044. X"$as_myself" : 'X\(//\)[^/]' \| \
  1045. X"$as_myself" : 'X\(//\)$' \| \
  1046. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1047. $as_echo X"$as_myself" |
  1048. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1049. s//\1/
  1050. q
  1051. }
  1052. /^X\(\/\/\)[^/].*/{
  1053. s//\1/
  1054. q
  1055. }
  1056. /^X\(\/\/\)$/{
  1057. s//\1/
  1058. q
  1059. }
  1060. /^X\(\/\).*/{
  1061. s//\1/
  1062. q
  1063. }
  1064. s/.*/./; q'`
  1065. srcdir=$ac_confdir
  1066. if test ! -r "$srcdir/$ac_unique_file"; then
  1067. srcdir=..
  1068. fi
  1069. else
  1070. ac_srcdir_defaulted=no
  1071. fi
  1072. if test ! -r "$srcdir/$ac_unique_file"; then
  1073. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1074. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1075. fi
  1076. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1077. ac_abs_confdir=`(
  1078. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1079. pwd)`
  1080. # When building in place, set srcdir=.
  1081. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1082. srcdir=.
  1083. fi
  1084. # Remove unnecessary trailing slashes from srcdir.
  1085. # Double slashes in file names in object file debugging info
  1086. # mess up M-x gdb in Emacs.
  1087. case $srcdir in
  1088. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1089. esac
  1090. for ac_var in $ac_precious_vars; do
  1091. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1092. eval ac_env_${ac_var}_value=\$${ac_var}
  1093. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1094. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1095. done
  1096. #
  1097. # Report the --help message.
  1098. #
  1099. if test "$ac_init_help" = "long"; then
  1100. # Omit some internal or obsolete options to make the list less imposing.
  1101. # This message is too long to be a string in the A/UX 3.1 sh.
  1102. cat <<_ACEOF
  1103. \`configure' configures this package to adapt to many kinds of systems.
  1104. Usage: $0 [OPTION]... [VAR=VALUE]...
  1105. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1106. VAR=VALUE. See below for descriptions of some of the useful variables.
  1107. Defaults for the options are specified in brackets.
  1108. Configuration:
  1109. -h, --help display this help and exit
  1110. --help=short display options specific to this package
  1111. --help=recursive display the short help of all the included packages
  1112. -V, --version display version information and exit
  1113. -q, --quiet, --silent do not print \`checking ...' messages
  1114. --cache-file=FILE cache test results in FILE [disabled]
  1115. -C, --config-cache alias for \`--cache-file=config.cache'
  1116. -n, --no-create do not create output files
  1117. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1118. Installation directories:
  1119. --prefix=PREFIX install architecture-independent files in PREFIX
  1120. [$ac_default_prefix]
  1121. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1122. [PREFIX]
  1123. By default, \`make install' will install all the files in
  1124. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1125. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1126. for instance \`--prefix=\$HOME'.
  1127. For better control, use the options below.
  1128. Fine tuning of the installation directories:
  1129. --bindir=DIR user executables [EPREFIX/bin]
  1130. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1131. --libexecdir=DIR program executables [EPREFIX/libexec]
  1132. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1133. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1134. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1135. --libdir=DIR object code libraries [EPREFIX/lib]
  1136. --includedir=DIR C header files [PREFIX/include]
  1137. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1138. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1139. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1140. --infodir=DIR info documentation [DATAROOTDIR/info]
  1141. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1142. --mandir=DIR man documentation [DATAROOTDIR/man]
  1143. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1144. --htmldir=DIR html documentation [DOCDIR]
  1145. --dvidir=DIR dvi documentation [DOCDIR]
  1146. --pdfdir=DIR pdf documentation [DOCDIR]
  1147. --psdir=DIR ps documentation [DOCDIR]
  1148. _ACEOF
  1149. cat <<\_ACEOF
  1150. X features:
  1151. --x-includes=DIR X include files are in DIR
  1152. --x-libraries=DIR X library files are in DIR
  1153. System types:
  1154. --build=BUILD configure for building on BUILD [guessed]
  1155. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1156. _ACEOF
  1157. fi
  1158. if test -n "$ac_init_help"; then
  1159. cat <<\_ACEOF
  1160. Optional Features:
  1161. --disable-option-checking ignore unrecognized --enable/--with options
  1162. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1163. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1164. --disable-sdltest Do not try to compile and run a test SDL program
  1165. Optional Packages:
  1166. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1167. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1168. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1169. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1170. --with-x use the X Window System
  1171. Some influential environment variables:
  1172. CC C compiler command
  1173. CFLAGS C compiler flags
  1174. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1175. nonstandard directory <lib dir>
  1176. LIBS libraries to pass to the linker, e.g. -l<library>
  1177. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1178. you have headers in a nonstandard directory <include dir>
  1179. PKG_CONFIG path to pkg-config utility
  1180. PKG_CONFIG_PATH
  1181. directories to add to pkg-config's search path
  1182. PKG_CONFIG_LIBDIR
  1183. path overriding pkg-config's built-in search path
  1184. SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
  1185. SDL_LIBS linker flags for SDL, overriding pkg-config
  1186. XMKMF Path to xmkmf, Makefile generator for X Window System
  1187. CPP C preprocessor
  1188. Use these variables to override the choices made by `configure' or to help
  1189. it to find libraries and programs with nonstandard names/locations.
  1190. Report bugs to the package provider.
  1191. _ACEOF
  1192. ac_status=$?
  1193. fi
  1194. if test "$ac_init_help" = "recursive"; then
  1195. # If there are subdirs, report their specific --help.
  1196. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1197. test -d "$ac_dir" ||
  1198. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1199. continue
  1200. ac_builddir=.
  1201. case "$ac_dir" in
  1202. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1203. *)
  1204. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1205. # A ".." for each directory in $ac_dir_suffix.
  1206. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1207. case $ac_top_builddir_sub in
  1208. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1209. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1210. esac ;;
  1211. esac
  1212. ac_abs_top_builddir=$ac_pwd
  1213. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1214. # for backward compatibility:
  1215. ac_top_builddir=$ac_top_build_prefix
  1216. case $srcdir in
  1217. .) # We are building in place.
  1218. ac_srcdir=.
  1219. ac_top_srcdir=$ac_top_builddir_sub
  1220. ac_abs_top_srcdir=$ac_pwd ;;
  1221. [\\/]* | ?:[\\/]* ) # Absolute name.
  1222. ac_srcdir=$srcdir$ac_dir_suffix;
  1223. ac_top_srcdir=$srcdir
  1224. ac_abs_top_srcdir=$srcdir ;;
  1225. *) # Relative name.
  1226. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1227. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1228. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1229. esac
  1230. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1231. cd "$ac_dir" || { ac_status=$?; continue; }
  1232. # Check for guested configure.
  1233. if test -f "$ac_srcdir/configure.gnu"; then
  1234. echo &&
  1235. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1236. elif test -f "$ac_srcdir/configure"; then
  1237. echo &&
  1238. $SHELL "$ac_srcdir/configure" --help=recursive
  1239. else
  1240. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1241. fi || ac_status=$?
  1242. cd "$ac_pwd" || { ac_status=$?; break; }
  1243. done
  1244. fi
  1245. test -n "$ac_init_help" && exit $ac_status
  1246. if $ac_init_version; then
  1247. cat <<\_ACEOF
  1248. configure
  1249. generated by GNU Autoconf 2.69
  1250. Copyright (C) 2012 Free Software Foundation, Inc.
  1251. This configure script is free software; the Free Software Foundation
  1252. gives unlimited permission to copy, distribute and modify it.
  1253. _ACEOF
  1254. exit
  1255. fi
  1256. ## ------------------------ ##
  1257. ## Autoconf initialization. ##
  1258. ## ------------------------ ##
  1259. # ac_fn_c_try_compile LINENO
  1260. # --------------------------
  1261. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1262. ac_fn_c_try_compile ()
  1263. {
  1264. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1265. rm -f conftest.$ac_objext
  1266. if { { ac_try="$ac_compile"
  1267. case "(($ac_try" in
  1268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1269. *) ac_try_echo=$ac_try;;
  1270. esac
  1271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1272. $as_echo "$ac_try_echo"; } >&5
  1273. (eval "$ac_compile") 2>conftest.err
  1274. ac_status=$?
  1275. if test -s conftest.err; then
  1276. grep -v '^ *+' conftest.err >conftest.er1
  1277. cat conftest.er1 >&5
  1278. mv -f conftest.er1 conftest.err
  1279. fi
  1280. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1281. test $ac_status = 0; } && {
  1282. test -z "$ac_c_werror_flag" ||
  1283. test ! -s conftest.err
  1284. } && test -s conftest.$ac_objext; then :
  1285. ac_retval=0
  1286. else
  1287. $as_echo "$as_me: failed program was:" >&5
  1288. sed 's/^/| /' conftest.$ac_ext >&5
  1289. ac_retval=1
  1290. fi
  1291. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1292. as_fn_set_status $ac_retval
  1293. } # ac_fn_c_try_compile
  1294. # ac_fn_c_try_run LINENO
  1295. # ----------------------
  1296. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1297. # that executables *can* be run.
  1298. ac_fn_c_try_run ()
  1299. {
  1300. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1301. if { { ac_try="$ac_link"
  1302. case "(($ac_try" in
  1303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1304. *) ac_try_echo=$ac_try;;
  1305. esac
  1306. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1307. $as_echo "$ac_try_echo"; } >&5
  1308. (eval "$ac_link") 2>&5
  1309. ac_status=$?
  1310. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1311. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1312. { { case "(($ac_try" in
  1313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1314. *) ac_try_echo=$ac_try;;
  1315. esac
  1316. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1317. $as_echo "$ac_try_echo"; } >&5
  1318. (eval "$ac_try") 2>&5
  1319. ac_status=$?
  1320. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1321. test $ac_status = 0; }; }; then :
  1322. ac_retval=0
  1323. else
  1324. $as_echo "$as_me: program exited with status $ac_status" >&5
  1325. $as_echo "$as_me: failed program was:" >&5
  1326. sed 's/^/| /' conftest.$ac_ext >&5
  1327. ac_retval=$ac_status
  1328. fi
  1329. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1330. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1331. as_fn_set_status $ac_retval
  1332. } # ac_fn_c_try_run
  1333. # ac_fn_c_try_link LINENO
  1334. # -----------------------
  1335. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1336. ac_fn_c_try_link ()
  1337. {
  1338. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1339. rm -f conftest.$ac_objext conftest$ac_exeext
  1340. if { { ac_try="$ac_link"
  1341. case "(($ac_try" in
  1342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1343. *) ac_try_echo=$ac_try;;
  1344. esac
  1345. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1346. $as_echo "$ac_try_echo"; } >&5
  1347. (eval "$ac_link") 2>conftest.err
  1348. ac_status=$?
  1349. if test -s conftest.err; then
  1350. grep -v '^ *+' conftest.err >conftest.er1
  1351. cat conftest.er1 >&5
  1352. mv -f conftest.er1 conftest.err
  1353. fi
  1354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1355. test $ac_status = 0; } && {
  1356. test -z "$ac_c_werror_flag" ||
  1357. test ! -s conftest.err
  1358. } && test -s conftest$ac_exeext && {
  1359. test "$cross_compiling" = yes ||
  1360. test -x conftest$ac_exeext
  1361. }; then :
  1362. ac_retval=0
  1363. else
  1364. $as_echo "$as_me: failed program was:" >&5
  1365. sed 's/^/| /' conftest.$ac_ext >&5
  1366. ac_retval=1
  1367. fi
  1368. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1369. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1370. # interfere with the next link command; also delete a directory that is
  1371. # left behind by Apple's compiler. We do this before executing the actions.
  1372. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1373. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1374. as_fn_set_status $ac_retval
  1375. } # ac_fn_c_try_link
  1376. # ac_fn_c_try_cpp LINENO
  1377. # ----------------------
  1378. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1379. ac_fn_c_try_cpp ()
  1380. {
  1381. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1382. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1383. case "(($ac_try" in
  1384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1385. *) ac_try_echo=$ac_try;;
  1386. esac
  1387. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1388. $as_echo "$ac_try_echo"; } >&5
  1389. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1390. ac_status=$?
  1391. if test -s conftest.err; then
  1392. grep -v '^ *+' conftest.err >conftest.er1
  1393. cat conftest.er1 >&5
  1394. mv -f conftest.er1 conftest.err
  1395. fi
  1396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1397. test $ac_status = 0; } > conftest.i && {
  1398. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1399. test ! -s conftest.err
  1400. }; then :
  1401. ac_retval=0
  1402. else
  1403. $as_echo "$as_me: failed program was:" >&5
  1404. sed 's/^/| /' conftest.$ac_ext >&5
  1405. ac_retval=1
  1406. fi
  1407. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1408. as_fn_set_status $ac_retval
  1409. } # ac_fn_c_try_cpp
  1410. cat >config.log <<_ACEOF
  1411. This file contains any messages produced by compilers while
  1412. running configure, to aid debugging if configure makes a mistake.
  1413. It was created by $as_me, which was
  1414. generated by GNU Autoconf 2.69. Invocation command line was
  1415. $ $0 $@
  1416. _ACEOF
  1417. exec 5>>config.log
  1418. {
  1419. cat <<_ASUNAME
  1420. ## --------- ##
  1421. ## Platform. ##
  1422. ## --------- ##
  1423. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1424. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1425. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1426. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1427. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1428. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1429. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1430. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1431. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1432. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1433. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1434. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1435. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1436. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1437. _ASUNAME
  1438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1439. for as_dir in $PATH
  1440. do
  1441. IFS=$as_save_IFS
  1442. test -z "$as_dir" && as_dir=.
  1443. $as_echo "PATH: $as_dir"
  1444. done
  1445. IFS=$as_save_IFS
  1446. } >&5
  1447. cat >&5 <<_ACEOF
  1448. ## ----------- ##
  1449. ## Core tests. ##
  1450. ## ----------- ##
  1451. _ACEOF
  1452. # Keep a trace of the command line.
  1453. # Strip out --no-create and --no-recursion so they do not pile up.
  1454. # Strip out --silent because we don't want to record it for future runs.
  1455. # Also quote any args containing shell meta-characters.
  1456. # Make two passes to allow for proper duplicate-argument suppression.
  1457. ac_configure_args=
  1458. ac_configure_args0=
  1459. ac_configure_args1=
  1460. ac_must_keep_next=false
  1461. for ac_pass in 1 2
  1462. do
  1463. for ac_arg
  1464. do
  1465. case $ac_arg in
  1466. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1467. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1468. | -silent | --silent | --silen | --sile | --sil)
  1469. continue ;;
  1470. *\'*)
  1471. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1472. esac
  1473. case $ac_pass in
  1474. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1475. 2)
  1476. as_fn_append ac_configure_args1 " '$ac_arg'"
  1477. if test $ac_must_keep_next = true; then
  1478. ac_must_keep_next=false # Got value, back to normal.
  1479. else
  1480. case $ac_arg in
  1481. *=* | --config-cache | -C | -disable-* | --disable-* \
  1482. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1483. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1484. | -with-* | --with-* | -without-* | --without-* | --x)
  1485. case "$ac_configure_args0 " in
  1486. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1487. esac
  1488. ;;
  1489. -* ) ac_must_keep_next=true ;;
  1490. esac
  1491. fi
  1492. as_fn_append ac_configure_args " '$ac_arg'"
  1493. ;;
  1494. esac
  1495. done
  1496. done
  1497. { ac_configure_args0=; unset ac_configure_args0;}
  1498. { ac_configure_args1=; unset ac_configure_args1;}
  1499. # When interrupted or exit'd, cleanup temporary files, and complete
  1500. # config.log. We remove comments because anyway the quotes in there
  1501. # would cause problems or look ugly.
  1502. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1503. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1504. trap 'exit_status=$?
  1505. # Save into config.log some information that might help in debugging.
  1506. {
  1507. echo
  1508. $as_echo "## ---------------- ##
  1509. ## Cache variables. ##
  1510. ## ---------------- ##"
  1511. echo
  1512. # The following way of writing the cache mishandles newlines in values,
  1513. (
  1514. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1515. eval ac_val=\$$ac_var
  1516. case $ac_val in #(
  1517. *${as_nl}*)
  1518. case $ac_var in #(
  1519. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1520. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1521. esac
  1522. case $ac_var in #(
  1523. _ | IFS | as_nl) ;; #(
  1524. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1525. *) { eval $ac_var=; unset $ac_var;} ;;
  1526. esac ;;
  1527. esac
  1528. done
  1529. (set) 2>&1 |
  1530. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1531. *${as_nl}ac_space=\ *)
  1532. sed -n \
  1533. "s/'\''/'\''\\\\'\'''\''/g;
  1534. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1535. ;; #(
  1536. *)
  1537. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1538. ;;
  1539. esac |
  1540. sort
  1541. )
  1542. echo
  1543. $as_echo "## ----------------- ##
  1544. ## Output variables. ##
  1545. ## ----------------- ##"
  1546. echo
  1547. for ac_var in $ac_subst_vars
  1548. do
  1549. eval ac_val=\$$ac_var
  1550. case $ac_val in
  1551. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1552. esac
  1553. $as_echo "$ac_var='\''$ac_val'\''"
  1554. done | sort
  1555. echo
  1556. if test -n "$ac_subst_files"; then
  1557. $as_echo "## ------------------- ##
  1558. ## File substitutions. ##
  1559. ## ------------------- ##"
  1560. echo
  1561. for ac_var in $ac_subst_files
  1562. do
  1563. eval ac_val=\$$ac_var
  1564. case $ac_val in
  1565. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1566. esac
  1567. $as_echo "$ac_var='\''$ac_val'\''"
  1568. done | sort
  1569. echo
  1570. fi
  1571. if test -s confdefs.h; then
  1572. $as_echo "## ----------- ##
  1573. ## confdefs.h. ##
  1574. ## ----------- ##"
  1575. echo
  1576. cat confdefs.h
  1577. echo
  1578. fi
  1579. test "$ac_signal" != 0 &&
  1580. $as_echo "$as_me: caught signal $ac_signal"
  1581. $as_echo "$as_me: exit $exit_status"
  1582. } >&5
  1583. rm -f core *.core core.conftest.* &&
  1584. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1585. exit $exit_status
  1586. ' 0
  1587. for ac_signal in 1 2 13 15; do
  1588. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1589. done
  1590. ac_signal=0
  1591. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1592. rm -f -r conftest* confdefs.h
  1593. $as_echo "/* confdefs.h */" > confdefs.h
  1594. # Predefined preprocessor variables.
  1595. cat >>confdefs.h <<_ACEOF
  1596. #define PACKAGE_NAME "$PACKAGE_NAME"
  1597. _ACEOF
  1598. cat >>confdefs.h <<_ACEOF
  1599. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1600. _ACEOF
  1601. cat >>confdefs.h <<_ACEOF
  1602. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1603. _ACEOF
  1604. cat >>confdefs.h <<_ACEOF
  1605. #define PACKAGE_STRING "$PACKAGE_STRING"
  1606. _ACEOF
  1607. cat >>confdefs.h <<_ACEOF
  1608. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1609. _ACEOF
  1610. cat >>confdefs.h <<_ACEOF
  1611. #define PACKAGE_URL "$PACKAGE_URL"
  1612. _ACEOF
  1613. # Let the site file select an alternate cache file if it wants to.
  1614. # Prefer an explicitly selected file to automatically selected ones.
  1615. ac_site_file1=NONE
  1616. ac_site_file2=NONE
  1617. if test -n "$CONFIG_SITE"; then
  1618. # We do not want a PATH search for config.site.
  1619. case $CONFIG_SITE in #((
  1620. -*) ac_site_file1=./$CONFIG_SITE;;
  1621. */*) ac_site_file1=$CONFIG_SITE;;
  1622. *) ac_site_file1=./$CONFIG_SITE;;
  1623. esac
  1624. elif test "x$prefix" != xNONE; then
  1625. ac_site_file1=$prefix/share/config.site
  1626. ac_site_file2=$prefix/etc/config.site
  1627. else
  1628. ac_site_file1=$ac_default_prefix/share/config.site
  1629. ac_site_file2=$ac_default_prefix/etc/config.site
  1630. fi
  1631. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1632. do
  1633. test "x$ac_site_file" = xNONE && continue
  1634. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1636. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1637. sed 's/^/| /' "$ac_site_file" >&5
  1638. . "$ac_site_file" \
  1639. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1641. as_fn_error $? "failed to load site script $ac_site_file
  1642. See \`config.log' for more details" "$LINENO" 5; }
  1643. fi
  1644. done
  1645. if test -r "$cache_file"; then
  1646. # Some versions of bash will fail to source /dev/null (special files
  1647. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1648. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1650. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1651. case $cache_file in
  1652. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1653. *) . "./$cache_file";;
  1654. esac
  1655. fi
  1656. else
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1658. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1659. >$cache_file
  1660. fi
  1661. # Check that the precious variables saved in the cache have kept the same
  1662. # value.
  1663. ac_cache_corrupted=false
  1664. for ac_var in $ac_precious_vars; do
  1665. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1666. eval ac_new_set=\$ac_env_${ac_var}_set
  1667. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1668. eval ac_new_val=\$ac_env_${ac_var}_value
  1669. case $ac_old_set,$ac_new_set in
  1670. set,)
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1672. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1673. ac_cache_corrupted=: ;;
  1674. ,set)
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1676. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1677. ac_cache_corrupted=: ;;
  1678. ,);;
  1679. *)
  1680. if test "x$ac_old_val" != "x$ac_new_val"; then
  1681. # differences in whitespace do not lead to failure.
  1682. ac_old_val_w=`echo x $ac_old_val`
  1683. ac_new_val_w=`echo x $ac_new_val`
  1684. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1686. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1687. ac_cache_corrupted=:
  1688. else
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1690. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1691. eval $ac_var=\$ac_old_val
  1692. fi
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1694. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1696. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1697. fi;;
  1698. esac
  1699. # Pass precious variables to config.status.
  1700. if test "$ac_new_set" = set; then
  1701. case $ac_new_val in
  1702. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1703. *) ac_arg=$ac_var=$ac_new_val ;;
  1704. esac
  1705. case " $ac_configure_args " in
  1706. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1707. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1708. esac
  1709. fi
  1710. done
  1711. if $ac_cache_corrupted; then
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1715. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1716. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1717. fi
  1718. ## -------------------- ##
  1719. ## Main body of script. ##
  1720. ## -------------------- ##
  1721. ac_ext=c
  1722. ac_cpp='$CPP $CPPFLAGS'
  1723. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1724. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1725. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1726. ac_aux_dir=
  1727. for ac_dir in $srcdir/../build-scripts; do
  1728. if test -f "$ac_dir/install-sh"; then
  1729. ac_aux_dir=$ac_dir
  1730. ac_install_sh="$ac_aux_dir/install-sh -c"
  1731. break
  1732. elif test -f "$ac_dir/install.sh"; then
  1733. ac_aux_dir=$ac_dir
  1734. ac_install_sh="$ac_aux_dir/install.sh -c"
  1735. break
  1736. elif test -f "$ac_dir/shtool"; then
  1737. ac_aux_dir=$ac_dir
  1738. ac_install_sh="$ac_aux_dir/shtool install -c"
  1739. break
  1740. fi
  1741. done
  1742. if test -z "$ac_aux_dir"; then
  1743. as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5
  1744. fi
  1745. # These three variables are undocumented and unsupported,
  1746. # and are intended to be withdrawn in a future Autoconf release.
  1747. # They can cause serious problems if a builder's source tree is in a directory
  1748. # whose full name contains unusual characters.
  1749. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1750. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1751. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1752. # Make sure we can run config.sub.
  1753. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1754. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  1756. $as_echo_n "checking build system type... " >&6; }
  1757. if ${ac_cv_build+:} false; then :
  1758. $as_echo_n "(cached) " >&6
  1759. else
  1760. ac_build_alias=$build_alias
  1761. test "x$ac_build_alias" = x &&
  1762. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1763. test "x$ac_build_alias" = x &&
  1764. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  1765. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1766. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  1767. fi
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  1769. $as_echo "$ac_cv_build" >&6; }
  1770. case $ac_cv_build in
  1771. *-*-*) ;;
  1772. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  1773. esac
  1774. build=$ac_cv_build
  1775. ac_save_IFS=$IFS; IFS='-'
  1776. set x $ac_cv_build
  1777. shift
  1778. build_cpu=$1
  1779. build_vendor=$2
  1780. shift; shift
  1781. # Remember, the first character of IFS is used to create $*,
  1782. # except with old shells:
  1783. build_os=$*
  1784. IFS=$ac_save_IFS
  1785. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  1787. $as_echo_n "checking host system type... " >&6; }
  1788. if ${ac_cv_host+:} false; then :
  1789. $as_echo_n "(cached) " >&6
  1790. else
  1791. if test "x$host_alias" = x; then
  1792. ac_cv_host=$ac_cv_build
  1793. else
  1794. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1795. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  1796. fi
  1797. fi
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  1799. $as_echo "$ac_cv_host" >&6; }
  1800. case $ac_cv_host in
  1801. *-*-*) ;;
  1802. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  1803. esac
  1804. host=$ac_cv_host
  1805. ac_save_IFS=$IFS; IFS='-'
  1806. set x $ac_cv_host
  1807. shift
  1808. host_cpu=$1
  1809. host_vendor=$2
  1810. shift; shift
  1811. # Remember, the first character of IFS is used to create $*,
  1812. # except with old shells:
  1813. host_os=$*
  1814. IFS=$ac_save_IFS
  1815. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1816. ac_ext=c
  1817. ac_cpp='$CPP $CPPFLAGS'
  1818. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1819. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1820. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1821. if test -n "$ac_tool_prefix"; then
  1822. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1823. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1825. $as_echo_n "checking for $ac_word... " >&6; }
  1826. if ${ac_cv_prog_CC+:} false; then :
  1827. $as_echo_n "(cached) " >&6
  1828. else
  1829. if test -n "$CC"; then
  1830. ac_cv_prog_CC="$CC" # Let the user override the test.
  1831. else
  1832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1833. for as_dir in $PATH
  1834. do
  1835. IFS=$as_save_IFS
  1836. test -z "$as_dir" && as_dir=.
  1837. for ac_exec_ext in '' $ac_executable_extensions; do
  1838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1839. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1841. break 2
  1842. fi
  1843. done
  1844. done
  1845. IFS=$as_save_IFS
  1846. fi
  1847. fi
  1848. CC=$ac_cv_prog_CC
  1849. if test -n "$CC"; then
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1851. $as_echo "$CC" >&6; }
  1852. else
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1854. $as_echo "no" >&6; }
  1855. fi
  1856. fi
  1857. if test -z "$ac_cv_prog_CC"; then
  1858. ac_ct_CC=$CC
  1859. # Extract the first word of "gcc", so it can be a program name with args.
  1860. set dummy gcc; ac_word=$2
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1862. $as_echo_n "checking for $ac_word... " >&6; }
  1863. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. if test -n "$ac_ct_CC"; then
  1867. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1868. else
  1869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1870. for as_dir in $PATH
  1871. do
  1872. IFS=$as_save_IFS
  1873. test -z "$as_dir" && as_dir=.
  1874. for ac_exec_ext in '' $ac_executable_extensions; do
  1875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1876. ac_cv_prog_ac_ct_CC="gcc"
  1877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1878. break 2
  1879. fi
  1880. done
  1881. done
  1882. IFS=$as_save_IFS
  1883. fi
  1884. fi
  1885. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1886. if test -n "$ac_ct_CC"; then
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1888. $as_echo "$ac_ct_CC" >&6; }
  1889. else
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1891. $as_echo "no" >&6; }
  1892. fi
  1893. if test "x$ac_ct_CC" = x; then
  1894. CC=""
  1895. else
  1896. case $cross_compiling:$ac_tool_warned in
  1897. yes:)
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1900. ac_tool_warned=yes ;;
  1901. esac
  1902. CC=$ac_ct_CC
  1903. fi
  1904. else
  1905. CC="$ac_cv_prog_CC"
  1906. fi
  1907. if test -z "$CC"; then
  1908. if test -n "$ac_tool_prefix"; then
  1909. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1910. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1912. $as_echo_n "checking for $ac_word... " >&6; }
  1913. if ${ac_cv_prog_CC+:} false; then :
  1914. $as_echo_n "(cached) " >&6
  1915. else
  1916. if test -n "$CC"; then
  1917. ac_cv_prog_CC="$CC" # Let the user override the test.
  1918. else
  1919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1920. for as_dir in $PATH
  1921. do
  1922. IFS=$as_save_IFS
  1923. test -z "$as_dir" && as_dir=.
  1924. for ac_exec_ext in '' $ac_executable_extensions; do
  1925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1926. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1927. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1928. break 2
  1929. fi
  1930. done
  1931. done
  1932. IFS=$as_save_IFS
  1933. fi
  1934. fi
  1935. CC=$ac_cv_prog_CC
  1936. if test -n "$CC"; then
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1938. $as_echo "$CC" >&6; }
  1939. else
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1941. $as_echo "no" >&6; }
  1942. fi
  1943. fi
  1944. fi
  1945. if test -z "$CC"; then
  1946. # Extract the first word of "cc", so it can be a program name with args.
  1947. set dummy cc; ac_word=$2
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1949. $as_echo_n "checking for $ac_word... " >&6; }
  1950. if ${ac_cv_prog_CC+:} false; then :
  1951. $as_echo_n "(cached) " >&6
  1952. else
  1953. if test -n "$CC"; then
  1954. ac_cv_prog_CC="$CC" # Let the user override the test.
  1955. else
  1956. ac_prog_rejected=no
  1957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1958. for as_dir in $PATH
  1959. do
  1960. IFS=$as_save_IFS
  1961. test -z "$as_dir" && as_dir=.
  1962. for ac_exec_ext in '' $ac_executable_extensions; do
  1963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1964. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1965. ac_prog_rejected=yes
  1966. continue
  1967. fi
  1968. ac_cv_prog_CC="cc"
  1969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1970. break 2
  1971. fi
  1972. done
  1973. done
  1974. IFS=$as_save_IFS
  1975. if test $ac_prog_rejected = yes; then
  1976. # We found a bogon in the path, so make sure we never use it.
  1977. set dummy $ac_cv_prog_CC
  1978. shift
  1979. if test $# != 0; then
  1980. # We chose a different compiler from the bogus one.
  1981. # However, it has the same basename, so the bogon will be chosen
  1982. # first if we set CC to just the basename; use the full file name.
  1983. shift
  1984. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1985. fi
  1986. fi
  1987. fi
  1988. fi
  1989. CC=$ac_cv_prog_CC
  1990. if test -n "$CC"; then
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1992. $as_echo "$CC" >&6; }
  1993. else
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1995. $as_echo "no" >&6; }
  1996. fi
  1997. fi
  1998. if test -z "$CC"; then
  1999. if test -n "$ac_tool_prefix"; then
  2000. for ac_prog in cl.exe
  2001. do
  2002. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2003. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2005. $as_echo_n "checking for $ac_word... " >&6; }
  2006. if ${ac_cv_prog_CC+:} false; then :
  2007. $as_echo_n "(cached) " >&6
  2008. else
  2009. if test -n "$CC"; then
  2010. ac_cv_prog_CC="$CC" # Let the user override the test.
  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. for ac_exec_ext in '' $ac_executable_extensions; do
  2018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2019. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2021. break 2
  2022. fi
  2023. done
  2024. done
  2025. IFS=$as_save_IFS
  2026. fi
  2027. fi
  2028. CC=$ac_cv_prog_CC
  2029. if test -n "$CC"; then
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2031. $as_echo "$CC" >&6; }
  2032. else
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2034. $as_echo "no" >&6; }
  2035. fi
  2036. test -n "$CC" && break
  2037. done
  2038. fi
  2039. if test -z "$CC"; then
  2040. ac_ct_CC=$CC
  2041. for ac_prog in cl.exe
  2042. do
  2043. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2044. set dummy $ac_prog; ac_word=$2
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2046. $as_echo_n "checking for $ac_word... " >&6; }
  2047. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2048. $as_echo_n "(cached) " >&6
  2049. else
  2050. if test -n "$ac_ct_CC"; then
  2051. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2052. else
  2053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2054. for as_dir in $PATH
  2055. do
  2056. IFS=$as_save_IFS
  2057. test -z "$as_dir" && as_dir=.
  2058. for ac_exec_ext in '' $ac_executable_extensions; do
  2059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2060. ac_cv_prog_ac_ct_CC="$ac_prog"
  2061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2062. break 2
  2063. fi
  2064. done
  2065. done
  2066. IFS=$as_save_IFS
  2067. fi
  2068. fi
  2069. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2070. if test -n "$ac_ct_CC"; then
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2072. $as_echo "$ac_ct_CC" >&6; }
  2073. else
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2075. $as_echo "no" >&6; }
  2076. fi
  2077. test -n "$ac_ct_CC" && break
  2078. done
  2079. if test "x$ac_ct_CC" = x; then
  2080. CC=""
  2081. else
  2082. case $cross_compiling:$ac_tool_warned in
  2083. yes:)
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2085. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2086. ac_tool_warned=yes ;;
  2087. esac
  2088. CC=$ac_ct_CC
  2089. fi
  2090. fi
  2091. fi
  2092. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2093. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2094. as_fn_error $? "no acceptable C compiler found in \$PATH
  2095. See \`config.log' for more details" "$LINENO" 5; }
  2096. # Provide some information about the compiler.
  2097. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2098. set X $ac_compile
  2099. ac_compiler=$2
  2100. for ac_option in --version -v -V -qversion; do
  2101. { { ac_try="$ac_compiler $ac_option >&5"
  2102. case "(($ac_try" in
  2103. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2104. *) ac_try_echo=$ac_try;;
  2105. esac
  2106. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2107. $as_echo "$ac_try_echo"; } >&5
  2108. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2109. ac_status=$?
  2110. if test -s conftest.err; then
  2111. sed '10a\
  2112. ... rest of stderr output deleted ...
  2113. 10q' conftest.err >conftest.er1
  2114. cat conftest.er1 >&5
  2115. fi
  2116. rm -f conftest.er1 conftest.err
  2117. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2118. test $ac_status = 0; }
  2119. done
  2120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2121. /* end confdefs.h. */
  2122. int
  2123. main ()
  2124. {
  2125. ;
  2126. return 0;
  2127. }
  2128. _ACEOF
  2129. ac_clean_files_save=$ac_clean_files
  2130. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2131. # Try to create an executable without -o first, disregard a.out.
  2132. # It will help us diagnose broken compilers, and finding out an intuition
  2133. # of exeext.
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2135. $as_echo_n "checking whether the C compiler works... " >&6; }
  2136. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2137. # The possible output files:
  2138. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2139. ac_rmfiles=
  2140. for ac_file in $ac_files
  2141. do
  2142. case $ac_file in
  2143. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2144. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2145. esac
  2146. done
  2147. rm -f $ac_rmfiles
  2148. if { { ac_try="$ac_link_default"
  2149. case "(($ac_try" in
  2150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2151. *) ac_try_echo=$ac_try;;
  2152. esac
  2153. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2154. $as_echo "$ac_try_echo"; } >&5
  2155. (eval "$ac_link_default") 2>&5
  2156. ac_status=$?
  2157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2158. test $ac_status = 0; }; then :
  2159. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2160. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2161. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2162. # so that the user can short-circuit this test for compilers unknown to
  2163. # Autoconf.
  2164. for ac_file in $ac_files ''
  2165. do
  2166. test -f "$ac_file" || continue
  2167. case $ac_file in
  2168. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2169. ;;
  2170. [ab].out )
  2171. # We found the default executable, but exeext='' is most
  2172. # certainly right.
  2173. break;;
  2174. *.* )
  2175. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2176. then :; else
  2177. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2178. fi
  2179. # We set ac_cv_exeext here because the later test for it is not
  2180. # safe: cross compilers may not add the suffix if given an `-o'
  2181. # argument, so we may need to know it at that point already.
  2182. # Even if this section looks crufty: it has the advantage of
  2183. # actually working.
  2184. break;;
  2185. * )
  2186. break;;
  2187. esac
  2188. done
  2189. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2190. else
  2191. ac_file=''
  2192. fi
  2193. if test -z "$ac_file"; then :
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2195. $as_echo "no" >&6; }
  2196. $as_echo "$as_me: failed program was:" >&5
  2197. sed 's/^/| /' conftest.$ac_ext >&5
  2198. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2200. as_fn_error 77 "C compiler cannot create executables
  2201. See \`config.log' for more details" "$LINENO" 5; }
  2202. else
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2204. $as_echo "yes" >&6; }
  2205. fi
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2207. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2209. $as_echo "$ac_file" >&6; }
  2210. ac_exeext=$ac_cv_exeext
  2211. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2212. ac_clean_files=$ac_clean_files_save
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2214. $as_echo_n "checking for suffix of executables... " >&6; }
  2215. if { { ac_try="$ac_link"
  2216. case "(($ac_try" in
  2217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2218. *) ac_try_echo=$ac_try;;
  2219. esac
  2220. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2221. $as_echo "$ac_try_echo"; } >&5
  2222. (eval "$ac_link") 2>&5
  2223. ac_status=$?
  2224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2225. test $ac_status = 0; }; then :
  2226. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2227. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2228. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2229. # `rm'.
  2230. for ac_file in conftest.exe conftest conftest.*; do
  2231. test -f "$ac_file" || continue
  2232. case $ac_file in
  2233. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2234. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2235. break;;
  2236. * ) break;;
  2237. esac
  2238. done
  2239. else
  2240. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2242. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2243. See \`config.log' for more details" "$LINENO" 5; }
  2244. fi
  2245. rm -f conftest conftest$ac_cv_exeext
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2247. $as_echo "$ac_cv_exeext" >&6; }
  2248. rm -f conftest.$ac_ext
  2249. EXEEXT=$ac_cv_exeext
  2250. ac_exeext=$EXEEXT
  2251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2252. /* end confdefs.h. */
  2253. #include <stdio.h>
  2254. int
  2255. main ()
  2256. {
  2257. FILE *f = fopen ("conftest.out", "w");
  2258. return ferror (f) || fclose (f) != 0;
  2259. ;
  2260. return 0;
  2261. }
  2262. _ACEOF
  2263. ac_clean_files="$ac_clean_files conftest.out"
  2264. # Check that the compiler produces executables we can run. If not, either
  2265. # the compiler is broken, or we cross compile.
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2267. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2268. if test "$cross_compiling" != yes; then
  2269. { { ac_try="$ac_link"
  2270. case "(($ac_try" in
  2271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2272. *) ac_try_echo=$ac_try;;
  2273. esac
  2274. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2275. $as_echo "$ac_try_echo"; } >&5
  2276. (eval "$ac_link") 2>&5
  2277. ac_status=$?
  2278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2279. test $ac_status = 0; }
  2280. if { ac_try='./conftest$ac_cv_exeext'
  2281. { { case "(($ac_try" in
  2282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2283. *) ac_try_echo=$ac_try;;
  2284. esac
  2285. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2286. $as_echo "$ac_try_echo"; } >&5
  2287. (eval "$ac_try") 2>&5
  2288. ac_status=$?
  2289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2290. test $ac_status = 0; }; }; then
  2291. cross_compiling=no
  2292. else
  2293. if test "$cross_compiling" = maybe; then
  2294. cross_compiling=yes
  2295. else
  2296. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2298. as_fn_error $? "cannot run C compiled programs.
  2299. If you meant to cross compile, use \`--host'.
  2300. See \`config.log' for more details" "$LINENO" 5; }
  2301. fi
  2302. fi
  2303. fi
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2305. $as_echo "$cross_compiling" >&6; }
  2306. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2307. ac_clean_files=$ac_clean_files_save
  2308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2309. $as_echo_n "checking for suffix of object files... " >&6; }
  2310. if ${ac_cv_objext+:} false; then :
  2311. $as_echo_n "(cached) " >&6
  2312. else
  2313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2314. /* end confdefs.h. */
  2315. int
  2316. main ()
  2317. {
  2318. ;
  2319. return 0;
  2320. }
  2321. _ACEOF
  2322. rm -f conftest.o conftest.obj
  2323. if { { ac_try="$ac_compile"
  2324. case "(($ac_try" in
  2325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2326. *) ac_try_echo=$ac_try;;
  2327. esac
  2328. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2329. $as_echo "$ac_try_echo"; } >&5
  2330. (eval "$ac_compile") 2>&5
  2331. ac_status=$?
  2332. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2333. test $ac_status = 0; }; then :
  2334. for ac_file in conftest.o conftest.obj conftest.*; do
  2335. test -f "$ac_file" || continue;
  2336. case $ac_file in
  2337. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2338. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2339. break;;
  2340. esac
  2341. done
  2342. else
  2343. $as_echo "$as_me: failed program was:" >&5
  2344. sed 's/^/| /' conftest.$ac_ext >&5
  2345. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2346. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2347. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2348. See \`config.log' for more details" "$LINENO" 5; }
  2349. fi
  2350. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2351. fi
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2353. $as_echo "$ac_cv_objext" >&6; }
  2354. OBJEXT=$ac_cv_objext
  2355. ac_objext=$OBJEXT
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2357. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2358. if ${ac_cv_c_compiler_gnu+:} false; then :
  2359. $as_echo_n "(cached) " >&6
  2360. else
  2361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2362. /* end confdefs.h. */
  2363. int
  2364. main ()
  2365. {
  2366. #ifndef __GNUC__
  2367. choke me
  2368. #endif
  2369. ;
  2370. return 0;
  2371. }
  2372. _ACEOF
  2373. if ac_fn_c_try_compile "$LINENO"; then :
  2374. ac_compiler_gnu=yes
  2375. else
  2376. ac_compiler_gnu=no
  2377. fi
  2378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2379. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2380. fi
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2382. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2383. if test $ac_compiler_gnu = yes; then
  2384. GCC=yes
  2385. else
  2386. GCC=
  2387. fi
  2388. ac_test_CFLAGS=${CFLAGS+set}
  2389. ac_save_CFLAGS=$CFLAGS
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2391. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2392. if ${ac_cv_prog_cc_g+:} false; then :
  2393. $as_echo_n "(cached) " >&6
  2394. else
  2395. ac_save_c_werror_flag=$ac_c_werror_flag
  2396. ac_c_werror_flag=yes
  2397. ac_cv_prog_cc_g=no
  2398. CFLAGS="-g"
  2399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2400. /* end confdefs.h. */
  2401. int
  2402. main ()
  2403. {
  2404. ;
  2405. return 0;
  2406. }
  2407. _ACEOF
  2408. if ac_fn_c_try_compile "$LINENO"; then :
  2409. ac_cv_prog_cc_g=yes
  2410. else
  2411. CFLAGS=""
  2412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2413. /* end confdefs.h. */
  2414. int
  2415. main ()
  2416. {
  2417. ;
  2418. return 0;
  2419. }
  2420. _ACEOF
  2421. if ac_fn_c_try_compile "$LINENO"; then :
  2422. else
  2423. ac_c_werror_flag=$ac_save_c_werror_flag
  2424. CFLAGS="-g"
  2425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2426. /* end confdefs.h. */
  2427. int
  2428. main ()
  2429. {
  2430. ;
  2431. return 0;
  2432. }
  2433. _ACEOF
  2434. if ac_fn_c_try_compile "$LINENO"; then :
  2435. ac_cv_prog_cc_g=yes
  2436. fi
  2437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2438. fi
  2439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2440. fi
  2441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2442. ac_c_werror_flag=$ac_save_c_werror_flag
  2443. fi
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2445. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2446. if test "$ac_test_CFLAGS" = set; then
  2447. CFLAGS=$ac_save_CFLAGS
  2448. elif test $ac_cv_prog_cc_g = yes; then
  2449. if test "$GCC" = yes; then
  2450. CFLAGS="-g -O2"
  2451. else
  2452. CFLAGS="-g"
  2453. fi
  2454. else
  2455. if test "$GCC" = yes; then
  2456. CFLAGS="-O2"
  2457. else
  2458. CFLAGS=
  2459. fi
  2460. fi
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2462. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2463. if ${ac_cv_prog_cc_c89+:} false; then :
  2464. $as_echo_n "(cached) " >&6
  2465. else
  2466. ac_cv_prog_cc_c89=no
  2467. ac_save_CC=$CC
  2468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2469. /* end confdefs.h. */
  2470. #include <stdarg.h>
  2471. #include <stdio.h>
  2472. struct stat;
  2473. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2474. struct buf { int x; };
  2475. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2476. static char *e (p, i)
  2477. char **p;
  2478. int i;
  2479. {
  2480. return p[i];
  2481. }
  2482. static char *f (char * (*g) (char **, int), char **p, ...)
  2483. {
  2484. char *s;
  2485. va_list v;
  2486. va_start (v,p);
  2487. s = g (p, va_arg (v,int));
  2488. va_end (v);
  2489. return s;
  2490. }
  2491. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2492. function prototypes and stuff, but not '\xHH' hex character constants.
  2493. These don't provoke an error unfortunately, instead are silently treated
  2494. as 'x'. The following induces an error, until -std is added to get
  2495. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2496. array size at least. It's necessary to write '\x00'==0 to get something
  2497. that's true only with -std. */
  2498. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2499. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2500. inside strings and character constants. */
  2501. #define FOO(x) 'x'
  2502. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2503. int test (int i, double x);
  2504. struct s1 {int (*f) (int a);};
  2505. struct s2 {int (*f) (double a);};
  2506. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2507. int argc;
  2508. char **argv;
  2509. int
  2510. main ()
  2511. {
  2512. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2513. ;
  2514. return 0;
  2515. }
  2516. _ACEOF
  2517. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2518. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2519. do
  2520. CC="$ac_save_CC $ac_arg"
  2521. if ac_fn_c_try_compile "$LINENO"; then :
  2522. ac_cv_prog_cc_c89=$ac_arg
  2523. fi
  2524. rm -f core conftest.err conftest.$ac_objext
  2525. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2526. done
  2527. rm -f conftest.$ac_ext
  2528. CC=$ac_save_CC
  2529. fi
  2530. # AC_CACHE_VAL
  2531. case "x$ac_cv_prog_cc_c89" in
  2532. x)
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2534. $as_echo "none needed" >&6; } ;;
  2535. xno)
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2537. $as_echo "unsupported" >&6; } ;;
  2538. *)
  2539. CC="$CC $ac_cv_prog_cc_c89"
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2541. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2542. esac
  2543. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2544. fi
  2545. ac_ext=c
  2546. ac_cpp='$CPP $CPPFLAGS'
  2547. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2548. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2549. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  2551. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  2552. if ${ac_cv_c_const+:} false; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2556. /* end confdefs.h. */
  2557. int
  2558. main ()
  2559. {
  2560. #ifndef __cplusplus
  2561. /* Ultrix mips cc rejects this sort of thing. */
  2562. typedef int charset[2];
  2563. const charset cs = { 0, 0 };
  2564. /* SunOS 4.1.1 cc rejects this. */
  2565. char const *const *pcpcc;
  2566. char **ppc;
  2567. /* NEC SVR4.0.2 mips cc rejects this. */
  2568. struct point {int x, y;};
  2569. static struct point const zero = {0,0};
  2570. /* AIX XL C 1.02.0.0 rejects this.
  2571. It does not let you subtract one const X* pointer from another in
  2572. an arm of an if-expression whose if-part is not a constant
  2573. expression */
  2574. const char *g = "string";
  2575. pcpcc = &g + (g ? g-g : 0);
  2576. /* HPUX 7.0 cc rejects these. */
  2577. ++pcpcc;
  2578. ppc = (char**) pcpcc;
  2579. pcpcc = (char const *const *) ppc;
  2580. { /* SCO 3.2v4 cc rejects this sort of thing. */
  2581. char tx;
  2582. char *t = &tx;
  2583. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2584. *t++ = 0;
  2585. if (s) return 0;
  2586. }
  2587. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2588. int x[] = {25, 17};
  2589. const int *foo = &x[0];
  2590. ++foo;
  2591. }
  2592. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2593. typedef const int *iptr;
  2594. iptr p = 0;
  2595. ++p;
  2596. }
  2597. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  2598. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2599. struct s { int j; const int *ap[3]; } bx;
  2600. struct s *b = &bx; b->j = 5;
  2601. }
  2602. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2603. const int foo = 10;
  2604. if (!foo) return 0;
  2605. }
  2606. return !cs[0] && !zero.x;
  2607. #endif
  2608. ;
  2609. return 0;
  2610. }
  2611. _ACEOF
  2612. if ac_fn_c_try_compile "$LINENO"; then :
  2613. ac_cv_c_const=yes
  2614. else
  2615. ac_cv_c_const=no
  2616. fi
  2617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2618. fi
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  2620. $as_echo "$ac_cv_c_const" >&6; }
  2621. if test $ac_cv_c_const = no; then
  2622. $as_echo "#define const /**/" >>confdefs.h
  2623. fi
  2624. ISUNIX="false"
  2625. ISWINDOWS="false"
  2626. ISMACOSX="false"
  2627. case "$host" in
  2628. *-*-cygwin* | *-*-mingw32*)
  2629. ISWINDOWS="true"
  2630. EXE=".exe"
  2631. MATHLIB=""
  2632. SYS_GL_LIBS="-lopengl32"
  2633. ;;
  2634. *-*-beos* | *-*-haiku*)
  2635. EXE=""
  2636. MATHLIB=""
  2637. SYS_GL_LIBS="-lGL"
  2638. ;;
  2639. *-*-darwin* )
  2640. ISMACOSX="true"
  2641. EXE=""
  2642. MATHLIB=""
  2643. SYS_GL_LIBS="-Wl,-framework,OpenGL"
  2644. ;;
  2645. *-*-aix*)
  2646. ISUNIX="true"
  2647. EXE=""
  2648. if test x$ac_cv_c_compiler_gnu = xyes; then
  2649. CFLAGS="-mthreads"
  2650. fi
  2651. SYS_GL_LIBS=""
  2652. ;;
  2653. *-*-mint*)
  2654. EXE=""
  2655. MATHLIB=""
  2656. # Extract the first word of "osmesa-config", so it can be a program name with args.
  2657. set dummy osmesa-config; ac_word=$2
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2659. $as_echo_n "checking for $ac_word... " >&6; }
  2660. if ${ac_cv_path_OSMESA_CONFIG+:} false; then :
  2661. $as_echo_n "(cached) " >&6
  2662. else
  2663. case $OSMESA_CONFIG in
  2664. [\\/]* | ?:[\\/]*)
  2665. ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
  2666. ;;
  2667. *)
  2668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2669. for as_dir in $PATH
  2670. do
  2671. IFS=$as_save_IFS
  2672. test -z "$as_dir" && as_dir=.
  2673. for ac_exec_ext in '' $ac_executable_extensions; do
  2674. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2675. ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2677. break 2
  2678. fi
  2679. done
  2680. done
  2681. IFS=$as_save_IFS
  2682. test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
  2683. ;;
  2684. esac
  2685. fi
  2686. OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
  2687. if test -n "$OSMESA_CONFIG"; then
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5
  2689. $as_echo "$OSMESA_CONFIG" >&6; }
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. fi
  2694. if test "x$OSMESA_CONFIG" = "xyes"; then
  2695. OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
  2696. OSMESA_LIBS=`$OSMESA_CONFIG --libs`
  2697. CFLAGS="$CFLAGS $OSMESA_CFLAGS"
  2698. SYS_GL_LIBS="$OSMESA_LIBS"
  2699. else
  2700. SYS_GL_LIBS="-lOSMesa"
  2701. fi
  2702. ;;
  2703. *-*-qnx*)
  2704. EXE=""
  2705. MATHLIB=""
  2706. SYS_GL_LIBS="-lGLES_CM"
  2707. ;;
  2708. *)
  2709. ISUNIX="true"
  2710. EXE=""
  2711. MATHLIB="-lm"
  2712. SYS_GL_LIBS="-lGL"
  2713. ;;
  2714. esac
  2715. SDL_VERSION=2.0.0
  2716. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  2717. if test -n "$ac_tool_prefix"; then
  2718. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  2719. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. case $PKG_CONFIG in
  2726. [\\/]* | ?:[\\/]*)
  2727. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  2728. ;;
  2729. *)
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2737. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. IFS=$as_save_IFS
  2744. ;;
  2745. esac
  2746. fi
  2747. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  2748. if test -n "$PKG_CONFIG"; then
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  2750. $as_echo "$PKG_CONFIG" >&6; }
  2751. else
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2753. $as_echo "no" >&6; }
  2754. fi
  2755. fi
  2756. if test -z "$ac_cv_path_PKG_CONFIG"; then
  2757. ac_pt_PKG_CONFIG=$PKG_CONFIG
  2758. # Extract the first word of "pkg-config", so it can be a program name with args.
  2759. set dummy pkg-config; ac_word=$2
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2761. $as_echo_n "checking for $ac_word... " >&6; }
  2762. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. case $ac_pt_PKG_CONFIG in
  2766. [\\/]* | ?:[\\/]*)
  2767. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  2768. ;;
  2769. *)
  2770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2771. for as_dir in $PATH
  2772. do
  2773. IFS=$as_save_IFS
  2774. test -z "$as_dir" && as_dir=.
  2775. for ac_exec_ext in '' $ac_executable_extensions; do
  2776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2777. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2779. break 2
  2780. fi
  2781. done
  2782. done
  2783. IFS=$as_save_IFS
  2784. ;;
  2785. esac
  2786. fi
  2787. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  2788. if test -n "$ac_pt_PKG_CONFIG"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  2790. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. if test "x$ac_pt_PKG_CONFIG" = x; then
  2796. PKG_CONFIG=""
  2797. else
  2798. case $cross_compiling:$ac_tool_warned in
  2799. yes:)
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2802. ac_tool_warned=yes ;;
  2803. esac
  2804. PKG_CONFIG=$ac_pt_PKG_CONFIG
  2805. fi
  2806. else
  2807. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  2808. fi
  2809. fi
  2810. if test -n "$PKG_CONFIG"; then
  2811. _pkg_min_version=0.9.0
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  2813. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  2814. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2816. $as_echo "yes" >&6; }
  2817. else
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2819. $as_echo "no" >&6; }
  2820. PKG_CONFIG=""
  2821. fi
  2822. fi
  2823. # Check whether --with-sdl-prefix was given.
  2824. if test "${with_sdl_prefix+set}" = set; then :
  2825. withval=$with_sdl_prefix; sdl_prefix="$withval"
  2826. else
  2827. sdl_prefix=""
  2828. fi
  2829. # Check whether --with-sdl-exec-prefix was given.
  2830. if test "${with_sdl_exec_prefix+set}" = set; then :
  2831. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  2832. else
  2833. sdl_exec_prefix=""
  2834. fi
  2835. # Check whether --enable-sdltest was given.
  2836. if test "${enable_sdltest+set}" = set; then :
  2837. enableval=$enable_sdltest;
  2838. else
  2839. enable_sdltest=yes
  2840. fi
  2841. min_sdl_version=$SDL_VERSION
  2842. if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
  2843. pkg_failed=no
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
  2845. $as_echo_n "checking for SDL... " >&6; }
  2846. if test -n "$SDL_CFLAGS"; then
  2847. pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
  2848. elif test -n "$PKG_CONFIG"; then
  2849. if test -n "$PKG_CONFIG" && \
  2850. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2851. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2852. ac_status=$?
  2853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2854. test $ac_status = 0; }; then
  2855. pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
  2856. else
  2857. pkg_failed=yes
  2858. fi
  2859. else
  2860. pkg_failed=untried
  2861. fi
  2862. if test -n "$SDL_LIBS"; then
  2863. pkg_cv_SDL_LIBS="$SDL_LIBS"
  2864. elif test -n "$PKG_CONFIG"; then
  2865. if test -n "$PKG_CONFIG" && \
  2866. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
  2867. ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
  2868. ac_status=$?
  2869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2870. test $ac_status = 0; }; then
  2871. pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
  2872. else
  2873. pkg_failed=yes
  2874. fi
  2875. else
  2876. pkg_failed=untried
  2877. fi
  2878. if test $pkg_failed = yes; then
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2880. $as_echo "no" >&6; }
  2881. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  2882. _pkg_short_errors_supported=yes
  2883. else
  2884. _pkg_short_errors_supported=no
  2885. fi
  2886. if test $_pkg_short_errors_supported = yes; then
  2887. SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl2 >= $min_sdl_version" 2>&1`
  2888. else
  2889. SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl2 >= $min_sdl_version" 2>&1`
  2890. fi
  2891. # Put the nasty error message in config.log where it belongs
  2892. echo "$SDL_PKG_ERRORS" >&5
  2893. sdl_pc=no
  2894. elif test $pkg_failed = untried; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2896. $as_echo "no" >&6; }
  2897. sdl_pc=no
  2898. else
  2899. SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
  2900. SDL_LIBS=$pkg_cv_SDL_LIBS
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2902. $as_echo "yes" >&6; }
  2903. sdl_pc=yes
  2904. fi
  2905. else
  2906. sdl_pc=no
  2907. if test x$sdl_exec_prefix != x ; then
  2908. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  2909. if test x${SDL_CONFIG+set} != xset ; then
  2910. SDL_CONFIG=$sdl_exec_prefix/bin/sdl2-config
  2911. fi
  2912. fi
  2913. if test x$sdl_prefix != x ; then
  2914. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  2915. if test x${SDL_CONFIG+set} != xset ; then
  2916. SDL_CONFIG=$sdl_prefix/bin/sdl2-config
  2917. fi
  2918. fi
  2919. fi
  2920. if test "x$sdl_pc" = xyes ; then
  2921. no_sdl=""
  2922. SDL_CONFIG="pkg-config sdl2"
  2923. else
  2924. as_save_PATH="$PATH"
  2925. if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
  2926. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  2927. fi
  2928. # Extract the first word of "sdl2-config", so it can be a program name with args.
  2929. set dummy sdl2-config; ac_word=$2
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2931. $as_echo_n "checking for $ac_word... " >&6; }
  2932. if ${ac_cv_path_SDL_CONFIG+:} false; then :
  2933. $as_echo_n "(cached) " >&6
  2934. else
  2935. case $SDL_CONFIG in
  2936. [\\/]* | ?:[\\/]*)
  2937. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  2938. ;;
  2939. *)
  2940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2941. for as_dir in $PATH
  2942. do
  2943. IFS=$as_save_IFS
  2944. test -z "$as_dir" && as_dir=.
  2945. for ac_exec_ext in '' $ac_executable_extensions; do
  2946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2947. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2949. break 2
  2950. fi
  2951. done
  2952. done
  2953. IFS=$as_save_IFS
  2954. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  2955. ;;
  2956. esac
  2957. fi
  2958. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  2959. if test -n "$SDL_CONFIG"; then
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  2961. $as_echo "$SDL_CONFIG" >&6; }
  2962. else
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2964. $as_echo "no" >&6; }
  2965. fi
  2966. PATH="$as_save_PATH"
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  2968. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  2969. no_sdl=""
  2970. if test "$SDL_CONFIG" = "no" ; then
  2971. no_sdl=yes
  2972. else
  2973. SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
  2974. SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
  2975. sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
  2976. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2977. sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
  2978. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2979. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  2980. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2981. if test "x$enable_sdltest" = "xyes" ; then
  2982. ac_save_CFLAGS="$CFLAGS"
  2983. ac_save_CXXFLAGS="$CXXFLAGS"
  2984. ac_save_LIBS="$LIBS"
  2985. CFLAGS="$CFLAGS $SDL_CFLAGS"
  2986. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  2987. LIBS="$LIBS $SDL_LIBS"
  2988. rm -f conf.sdltest
  2989. if test "$cross_compiling" = yes; then :
  2990. echo $ac_n "cross compiling; assumed OK... $ac_c"
  2991. else
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. #include <stdio.h>
  2995. #include <stdlib.h>
  2996. #include <string.h>
  2997. #include "SDL.h"
  2998. char*
  2999. my_strdup (char *str)
  3000. {
  3001. char *new_str;
  3002. if (str)
  3003. {
  3004. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  3005. strcpy (new_str, str);
  3006. }
  3007. else
  3008. new_str = NULL;
  3009. return new_str;
  3010. }
  3011. int main (int argc, char *argv[])
  3012. {
  3013. int major, minor, micro;
  3014. char *tmp_version;
  3015. /* This hangs on some systems (?)
  3016. system ("touch conf.sdltest");
  3017. */
  3018. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  3019. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3020. tmp_version = my_strdup("$min_sdl_version");
  3021. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3022. printf("%s, bad version string\n", "$min_sdl_version");
  3023. exit(1);
  3024. }
  3025. if (($sdl_major_version > major) ||
  3026. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  3027. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  3028. {
  3029. return 0;
  3030. }
  3031. else
  3032. {
  3033. printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  3034. printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
  3035. printf("*** best to upgrade to the required version.\n");
  3036. printf("*** If sdl2-config was wrong, set the environment variable SDL_CONFIG\n");
  3037. printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
  3038. printf("*** config.cache before re-running configure\n");
  3039. return 1;
  3040. }
  3041. }
  3042. _ACEOF
  3043. if ac_fn_c_try_run "$LINENO"; then :
  3044. else
  3045. no_sdl=yes
  3046. fi
  3047. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3048. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3049. fi
  3050. CFLAGS="$ac_save_CFLAGS"
  3051. CXXFLAGS="$ac_save_CXXFLAGS"
  3052. LIBS="$ac_save_LIBS"
  3053. fi
  3054. fi
  3055. if test "x$no_sdl" = x ; then
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3057. $as_echo "yes" >&6; }
  3058. else
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3060. $as_echo "no" >&6; }
  3061. fi
  3062. fi
  3063. if test "x$no_sdl" = x ; then
  3064. :
  3065. else
  3066. if test "$SDL_CONFIG" = "no" ; then
  3067. echo "*** The sdl2-config script installed by SDL could not be found"
  3068. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  3069. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  3070. echo "*** full path to sdl2-config."
  3071. else
  3072. if test -f conf.sdltest ; then
  3073. :
  3074. else
  3075. echo "*** Could not run SDL test program, checking why..."
  3076. CFLAGS="$CFLAGS $SDL_CFLAGS"
  3077. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  3078. LIBS="$LIBS $SDL_LIBS"
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. #include <stdio.h>
  3082. #include "SDL.h"
  3083. int main(int argc, char *argv[])
  3084. { return 0; }
  3085. #undef main
  3086. #define main K_and_R_C_main
  3087. int
  3088. main ()
  3089. {
  3090. return 0;
  3091. ;
  3092. return 0;
  3093. }
  3094. _ACEOF
  3095. if ac_fn_c_try_link "$LINENO"; then :
  3096. echo "*** The test program compiled, but did not run. This usually means"
  3097. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  3098. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  3099. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  3100. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  3101. echo "*** is required on your system"
  3102. echo "***"
  3103. echo "*** If you have an old version installed, it is best to remove it, although"
  3104. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  3105. else
  3106. echo "*** The test program failed to compile or link. See the file config.log for the"
  3107. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  3108. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  3109. echo "*** may want to edit the sdl2-config script: $SDL_CONFIG"
  3110. fi
  3111. rm -f core conftest.err conftest.$ac_objext \
  3112. conftest$ac_exeext conftest.$ac_ext
  3113. CFLAGS="$ac_save_CFLAGS"
  3114. CXXFLAGS="$ac_save_CXXFLAGS"
  3115. LIBS="$ac_save_LIBS"
  3116. fi
  3117. fi
  3118. SDL_CFLAGS=""
  3119. SDL_LIBS=""
  3120. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  3121. fi
  3122. rm -f conf.sdltest
  3123. CFLAGS="$CFLAGS $SDL_CFLAGS"
  3124. LIBS="$LIBS -lSDL2_test $SDL_LIBS"
  3125. ac_ext=c
  3126. ac_cpp='$CPP $CPPFLAGS'
  3127. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3128. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3129. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3131. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3132. # On Suns, sometimes $CPP names a directory.
  3133. if test -n "$CPP" && test -d "$CPP"; then
  3134. CPP=
  3135. fi
  3136. if test -z "$CPP"; then
  3137. if ${ac_cv_prog_CPP+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. # Double quotes because CPP needs to be expanded
  3141. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3142. do
  3143. ac_preproc_ok=false
  3144. for ac_c_preproc_warn_flag in '' yes
  3145. do
  3146. # Use a header file that comes with gcc, so configuring glibc
  3147. # with a fresh cross-compiler works.
  3148. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3149. # <limits.h> exists even on freestanding compilers.
  3150. # On the NeXT, cc -E runs the code through the compiler's parser,
  3151. # not just through cpp. "Syntax error" is here to catch this case.
  3152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3153. /* end confdefs.h. */
  3154. #ifdef __STDC__
  3155. # include <limits.h>
  3156. #else
  3157. # include <assert.h>
  3158. #endif
  3159. Syntax error
  3160. _ACEOF
  3161. if ac_fn_c_try_cpp "$LINENO"; then :
  3162. else
  3163. # Broken: fails on valid input.
  3164. continue
  3165. fi
  3166. rm -f conftest.err conftest.i conftest.$ac_ext
  3167. # OK, works on sane cases. Now check whether nonexistent headers
  3168. # can be detected and how.
  3169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3170. /* end confdefs.h. */
  3171. #include <ac_nonexistent.h>
  3172. _ACEOF
  3173. if ac_fn_c_try_cpp "$LINENO"; then :
  3174. # Broken: success on invalid input.
  3175. continue
  3176. else
  3177. # Passes both tests.
  3178. ac_preproc_ok=:
  3179. break
  3180. fi
  3181. rm -f conftest.err conftest.i conftest.$ac_ext
  3182. done
  3183. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3184. rm -f conftest.i conftest.err conftest.$ac_ext
  3185. if $ac_preproc_ok; then :
  3186. break
  3187. fi
  3188. done
  3189. ac_cv_prog_CPP=$CPP
  3190. fi
  3191. CPP=$ac_cv_prog_CPP
  3192. else
  3193. ac_cv_prog_CPP=$CPP
  3194. fi
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3196. $as_echo "$CPP" >&6; }
  3197. ac_preproc_ok=false
  3198. for ac_c_preproc_warn_flag in '' yes
  3199. do
  3200. # Use a header file that comes with gcc, so configuring glibc
  3201. # with a fresh cross-compiler works.
  3202. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3203. # <limits.h> exists even on freestanding compilers.
  3204. # On the NeXT, cc -E runs the code through the compiler's parser,
  3205. # not just through cpp. "Syntax error" is here to catch this case.
  3206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3207. /* end confdefs.h. */
  3208. #ifdef __STDC__
  3209. # include <limits.h>
  3210. #else
  3211. # include <assert.h>
  3212. #endif
  3213. Syntax error
  3214. _ACEOF
  3215. if ac_fn_c_try_cpp "$LINENO"; then :
  3216. else
  3217. # Broken: fails on valid input.
  3218. continue
  3219. fi
  3220. rm -f conftest.err conftest.i conftest.$ac_ext
  3221. # OK, works on sane cases. Now check whether nonexistent headers
  3222. # can be detected and how.
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. #include <ac_nonexistent.h>
  3226. _ACEOF
  3227. if ac_fn_c_try_cpp "$LINENO"; then :
  3228. # Broken: success on invalid input.
  3229. continue
  3230. else
  3231. # Passes both tests.
  3232. ac_preproc_ok=:
  3233. break
  3234. fi
  3235. rm -f conftest.err conftest.i conftest.$ac_ext
  3236. done
  3237. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3238. rm -f conftest.i conftest.err conftest.$ac_ext
  3239. if $ac_preproc_ok; then :
  3240. else
  3241. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3242. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3243. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3244. See \`config.log' for more details" "$LINENO" 5; }
  3245. fi
  3246. ac_ext=c
  3247. ac_cpp='$CPP $CPPFLAGS'
  3248. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3249. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3250. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  3252. $as_echo_n "checking for X... " >&6; }
  3253. # Check whether --with-x was given.
  3254. if test "${with_x+set}" = set; then :
  3255. withval=$with_x;
  3256. fi
  3257. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  3258. if test "x$with_x" = xno; then
  3259. # The user explicitly disabled X.
  3260. have_x=disabled
  3261. else
  3262. case $x_includes,$x_libraries in #(
  3263. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  3264. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  3265. $as_echo_n "(cached) " >&6
  3266. else
  3267. # One or both of the vars are not set, and there is no cached value.
  3268. ac_x_includes=no ac_x_libraries=no
  3269. rm -f -r conftest.dir
  3270. if mkdir conftest.dir; then
  3271. cd conftest.dir
  3272. cat >Imakefile <<'_ACEOF'
  3273. incroot:
  3274. @echo incroot='${INCROOT}'
  3275. usrlibdir:
  3276. @echo usrlibdir='${USRLIBDIR}'
  3277. libdir:
  3278. @echo libdir='${LIBDIR}'
  3279. _ACEOF
  3280. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  3281. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3282. for ac_var in incroot usrlibdir libdir; do
  3283. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  3284. done
  3285. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  3286. for ac_extension in a so sl dylib la dll; do
  3287. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  3288. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  3289. ac_im_usrlibdir=$ac_im_libdir; break
  3290. fi
  3291. done
  3292. # Screen out bogus values from the imake configuration. They are
  3293. # bogus both because they are the default anyway, and because
  3294. # using them would break gcc on systems where it needs fixed includes.
  3295. case $ac_im_incroot in
  3296. /usr/include) ac_x_includes= ;;
  3297. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  3298. esac
  3299. case $ac_im_usrlibdir in
  3300. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  3301. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  3302. esac
  3303. fi
  3304. cd ..
  3305. rm -f -r conftest.dir
  3306. fi
  3307. # Standard set of common directories for X headers.
  3308. # Check X11 before X11Rn because it is often a symlink to the current release.
  3309. ac_x_header_dirs='
  3310. /usr/X11/include
  3311. /usr/X11R7/include
  3312. /usr/X11R6/include
  3313. /usr/X11R5/include
  3314. /usr/X11R4/include
  3315. /usr/include/X11
  3316. /usr/include/X11R7
  3317. /usr/include/X11R6
  3318. /usr/include/X11R5
  3319. /usr/include/X11R4
  3320. /usr/local/X11/include
  3321. /usr/local/X11R7/include
  3322. /usr/local/X11R6/include
  3323. /usr/local/X11R5/include
  3324. /usr/local/X11R4/include
  3325. /usr/local/include/X11
  3326. /usr/local/include/X11R7
  3327. /usr/local/include/X11R6
  3328. /usr/local/include/X11R5
  3329. /usr/local/include/X11R4
  3330. /usr/X386/include
  3331. /usr/x386/include
  3332. /usr/XFree86/include/X11
  3333. /usr/include
  3334. /usr/local/include
  3335. /usr/unsupported/include
  3336. /usr/athena/include
  3337. /usr/local/x11r5/include
  3338. /usr/lpp/Xamples/include
  3339. /usr/openwin/include
  3340. /usr/openwin/share/include'
  3341. if test "$ac_x_includes" = no; then
  3342. # Guess where to find include files, by looking for Xlib.h.
  3343. # First, try using that file with no special directory specified.
  3344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3345. /* end confdefs.h. */
  3346. #include <X11/Xlib.h>
  3347. _ACEOF
  3348. if ac_fn_c_try_cpp "$LINENO"; then :
  3349. # We can compile using X headers with no special include directory.
  3350. ac_x_includes=
  3351. else
  3352. for ac_dir in $ac_x_header_dirs; do
  3353. if test -r "$ac_dir/X11/Xlib.h"; then
  3354. ac_x_includes=$ac_dir
  3355. break
  3356. fi
  3357. done
  3358. fi
  3359. rm -f conftest.err conftest.i conftest.$ac_ext
  3360. fi # $ac_x_includes = no
  3361. if test "$ac_x_libraries" = no; then
  3362. # Check for the libraries.
  3363. # See if we find them without any special options.
  3364. # Don't add to $LIBS permanently.
  3365. ac_save_LIBS=$LIBS
  3366. LIBS="-lX11 $LIBS"
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. #include <X11/Xlib.h>
  3370. int
  3371. main ()
  3372. {
  3373. XrmInitialize ()
  3374. ;
  3375. return 0;
  3376. }
  3377. _ACEOF
  3378. if ac_fn_c_try_link "$LINENO"; then :
  3379. LIBS=$ac_save_LIBS
  3380. # We can link X programs with no special library path.
  3381. ac_x_libraries=
  3382. else
  3383. LIBS=$ac_save_LIBS
  3384. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  3385. do
  3386. # Don't even attempt the hair of trying to link an X program!
  3387. for ac_extension in a so sl dylib la dll; do
  3388. if test -r "$ac_dir/libX11.$ac_extension"; then
  3389. ac_x_libraries=$ac_dir
  3390. break 2
  3391. fi
  3392. done
  3393. done
  3394. fi
  3395. rm -f core conftest.err conftest.$ac_objext \
  3396. conftest$ac_exeext conftest.$ac_ext
  3397. fi # $ac_x_libraries = no
  3398. case $ac_x_includes,$ac_x_libraries in #(
  3399. no,* | *,no | *\'*)
  3400. # Didn't find X, or a directory has "'" in its name.
  3401. ac_cv_have_x="have_x=no";; #(
  3402. *)
  3403. # Record where we found X for the cache.
  3404. ac_cv_have_x="have_x=yes\
  3405. ac_x_includes='$ac_x_includes'\
  3406. ac_x_libraries='$ac_x_libraries'"
  3407. esac
  3408. fi
  3409. ;; #(
  3410. *) have_x=yes;;
  3411. esac
  3412. eval "$ac_cv_have_x"
  3413. fi # $with_x != no
  3414. if test "$have_x" != yes; then
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  3416. $as_echo "$have_x" >&6; }
  3417. no_x=yes
  3418. else
  3419. # If each of the values was on the command line, it overrides each guess.
  3420. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3421. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3422. # Update the cache value to reflect the command line values.
  3423. ac_cv_have_x="have_x=yes\
  3424. ac_x_includes='$x_includes'\
  3425. ac_x_libraries='$x_libraries'"
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  3427. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  3428. fi
  3429. if test x$have_x = xyes; then
  3430. if test x$ac_x_includes = xno || test "x$ac_x_includes" = xNone || test "x$ac_x_includes" = x; then
  3431. :
  3432. else
  3433. CFLAGS="$CFLAGS -I$ac_x_includes"
  3434. fi
  3435. if test x$ac_x_libraries = xno || test "x$ac_x_libraries" = xNone; then
  3436. :
  3437. else
  3438. if test "x$ac_x_libraries" = x; then
  3439. XPATH=""
  3440. XLIB="-lX11"
  3441. else
  3442. XPATH="-L$ac_x_libraries"
  3443. XLIB="-L$ac_x_libraries -lX11"
  3444. fi
  3445. fi
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5
  3448. $as_echo_n "checking for OpenGL support... " >&6; }
  3449. have_opengl=no
  3450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3451. /* end confdefs.h. */
  3452. #include "SDL_opengl.h"
  3453. int
  3454. main ()
  3455. {
  3456. ;
  3457. return 0;
  3458. }
  3459. _ACEOF
  3460. if ac_fn_c_try_compile "$LINENO"; then :
  3461. have_opengl=yes
  3462. fi
  3463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5
  3465. $as_echo "$have_opengl" >&6; }
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5
  3467. $as_echo_n "checking for OpenGL ES support... " >&6; }
  3468. have_opengles=no
  3469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3470. /* end confdefs.h. */
  3471. #if defined (__IPHONEOS__)
  3472. #include <OpenGLES/ES1/gl.h>
  3473. #else
  3474. #include <GLES/gl.h>
  3475. #endif /* __QNXNTO__ */
  3476. int
  3477. main ()
  3478. {
  3479. ;
  3480. return 0;
  3481. }
  3482. _ACEOF
  3483. if ac_fn_c_try_compile "$LINENO"; then :
  3484. have_opengles=yes
  3485. fi
  3486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5
  3488. $as_echo "$have_opengles" >&6; }
  3489. GLLIB=""
  3490. GLESLIB=""
  3491. if test x$have_opengles = xyes; then
  3492. CFLAGS="$CFLAGS -DHAVE_OPENGLES"
  3493. GLESLIB="$XPATH -lGLESv1_CM"
  3494. fi
  3495. if test x$have_opengl = xyes; then
  3496. CFLAGS="$CFLAGS -DHAVE_OPENGL"
  3497. GLLIB="$XPATH $SYS_GL_LIBS"
  3498. fi
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL2_ttf" >&5
  3500. $as_echo_n "checking for TTF_Init in -lSDL2_ttf... " >&6; }
  3501. if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then :
  3502. $as_echo_n "(cached) " >&6
  3503. else
  3504. ac_check_lib_save_LIBS=$LIBS
  3505. LIBS="-lSDL2_ttf $LIBS"
  3506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3507. /* end confdefs.h. */
  3508. /* Override any GCC internal prototype to avoid an error.
  3509. Use char because int might match the return type of a GCC
  3510. builtin and then its argument prototype would still apply. */
  3511. #ifdef __cplusplus
  3512. extern "C"
  3513. #endif
  3514. char TTF_Init ();
  3515. int
  3516. main ()
  3517. {
  3518. return TTF_Init ();
  3519. ;
  3520. return 0;
  3521. }
  3522. _ACEOF
  3523. if ac_fn_c_try_link "$LINENO"; then :
  3524. ac_cv_lib_SDL2_ttf_TTF_Init=yes
  3525. else
  3526. ac_cv_lib_SDL2_ttf_TTF_Init=no
  3527. fi
  3528. rm -f core conftest.err conftest.$ac_objext \
  3529. conftest$ac_exeext conftest.$ac_ext
  3530. LIBS=$ac_check_lib_save_LIBS
  3531. fi
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_TTF_Init" >&5
  3533. $as_echo "$ac_cv_lib_SDL2_ttf_TTF_Init" >&6; }
  3534. if test "x$ac_cv_lib_SDL2_ttf_TTF_Init" = xyes; then :
  3535. have_SDL_ttf=yes
  3536. fi
  3537. if test x$have_SDL_ttf = xyes; then
  3538. CFLAGS="$CFLAGS -DHAVE_SDL_TTF"
  3539. SDL_TTF_LIB="-lSDL2_ttf"
  3540. fi
  3541. ac_config_files="$ac_config_files Makefile"
  3542. cat >confcache <<\_ACEOF
  3543. # This file is a shell script that caches the results of configure
  3544. # tests run on this system so they can be shared between configure
  3545. # scripts and configure runs, see configure's option --config-cache.
  3546. # It is not useful on other systems. If it contains results you don't
  3547. # want to keep, you may remove or edit it.
  3548. #
  3549. # config.status only pays attention to the cache file if you give it
  3550. # the --recheck option to rerun configure.
  3551. #
  3552. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3553. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3554. # following values.
  3555. _ACEOF
  3556. # The following way of writing the cache mishandles newlines in values,
  3557. # but we know of no workaround that is simple, portable, and efficient.
  3558. # So, we kill variables containing newlines.
  3559. # Ultrix sh set writes to stderr and can't be redirected directly,
  3560. # and sets the high bit in the cache file unless we assign to the vars.
  3561. (
  3562. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3563. eval ac_val=\$$ac_var
  3564. case $ac_val in #(
  3565. *${as_nl}*)
  3566. case $ac_var in #(
  3567. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3568. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3569. esac
  3570. case $ac_var in #(
  3571. _ | IFS | as_nl) ;; #(
  3572. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3573. *) { eval $ac_var=; unset $ac_var;} ;;
  3574. esac ;;
  3575. esac
  3576. done
  3577. (set) 2>&1 |
  3578. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3579. *${as_nl}ac_space=\ *)
  3580. # `set' does not quote correctly, so add quotes: double-quote
  3581. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3582. sed -n \
  3583. "s/'/'\\\\''/g;
  3584. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3585. ;; #(
  3586. *)
  3587. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3588. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3589. ;;
  3590. esac |
  3591. sort
  3592. ) |
  3593. sed '
  3594. /^ac_cv_env_/b end
  3595. t clear
  3596. :clear
  3597. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3598. t end
  3599. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3600. :end' >>confcache
  3601. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3602. if test -w "$cache_file"; then
  3603. if test "x$cache_file" != "x/dev/null"; then
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3605. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3606. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3607. cat confcache >"$cache_file"
  3608. else
  3609. case $cache_file in #(
  3610. */* | ?:*)
  3611. mv -f confcache "$cache_file"$$ &&
  3612. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3613. *)
  3614. mv -f confcache "$cache_file" ;;
  3615. esac
  3616. fi
  3617. fi
  3618. else
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3620. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3621. fi
  3622. fi
  3623. rm -f confcache
  3624. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3625. # Let make expand exec_prefix.
  3626. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3627. # Transform confdefs.h into DEFS.
  3628. # Protect against shell expansion while executing Makefile rules.
  3629. # Protect against Makefile macro expansion.
  3630. #
  3631. # If the first sed substitution is executed (which looks for macros that
  3632. # take arguments), then branch to the quote section. Otherwise,
  3633. # look for a macro that doesn't take arguments.
  3634. ac_script='
  3635. :mline
  3636. /\\$/{
  3637. N
  3638. s,\\\n,,
  3639. b mline
  3640. }
  3641. t clear
  3642. :clear
  3643. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3644. t quote
  3645. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  3646. t quote
  3647. b any
  3648. :quote
  3649. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  3650. s/\[/\\&/g
  3651. s/\]/\\&/g
  3652. s/\$/$$/g
  3653. H
  3654. :any
  3655. ${
  3656. g
  3657. s/^\n//
  3658. s/\n/ /g
  3659. p
  3660. }
  3661. '
  3662. DEFS=`sed -n "$ac_script" confdefs.h`
  3663. ac_libobjs=
  3664. ac_ltlibobjs=
  3665. U=
  3666. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3667. # 1. Remove the extension, and $U if already installed.
  3668. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3669. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3670. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3671. # will be set to the directory where LIBOBJS objects are built.
  3672. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3673. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3674. done
  3675. LIBOBJS=$ac_libobjs
  3676. LTLIBOBJS=$ac_ltlibobjs
  3677. : "${CONFIG_STATUS=./config.status}"
  3678. ac_write_fail=0
  3679. ac_clean_files_save=$ac_clean_files
  3680. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3681. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3682. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3683. as_write_fail=0
  3684. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3685. #! $SHELL
  3686. # Generated by $as_me.
  3687. # Run this file to recreate the current configuration.
  3688. # Compiler output produced by configure, useful for debugging
  3689. # configure, is in config.log if it exists.
  3690. debug=false
  3691. ac_cs_recheck=false
  3692. ac_cs_silent=false
  3693. SHELL=\${CONFIG_SHELL-$SHELL}
  3694. export SHELL
  3695. _ASEOF
  3696. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  3697. ## -------------------- ##
  3698. ## M4sh Initialization. ##
  3699. ## -------------------- ##
  3700. # Be more Bourne compatible
  3701. DUALCASE=1; export DUALCASE # for MKS sh
  3702. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  3703. emulate sh
  3704. NULLCMD=:
  3705. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3706. # is contrary to our usage. Disable this feature.
  3707. alias -g '${1+"$@"}'='"$@"'
  3708. setopt NO_GLOB_SUBST
  3709. else
  3710. case `(set -o) 2>/dev/null` in #(
  3711. *posix*) :
  3712. set -o posix ;; #(
  3713. *) :
  3714. ;;
  3715. esac
  3716. fi
  3717. as_nl='
  3718. '
  3719. export as_nl
  3720. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  3721. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3722. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3723. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3724. # Prefer a ksh shell builtin over an external printf program on Solaris,
  3725. # but without wasting forks for bash or zsh.
  3726. if test -z "$BASH_VERSION$ZSH_VERSION" \
  3727. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  3728. as_echo='print -r --'
  3729. as_echo_n='print -rn --'
  3730. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3731. as_echo='printf %s\n'
  3732. as_echo_n='printf %s'
  3733. else
  3734. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3735. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3736. as_echo_n='/usr/ucb/echo -n'
  3737. else
  3738. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3739. as_echo_n_body='eval
  3740. arg=$1;
  3741. case $arg in #(
  3742. *"$as_nl"*)
  3743. expr "X$arg" : "X\\(.*\\)$as_nl";
  3744. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3745. esac;
  3746. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3747. '
  3748. export as_echo_n_body
  3749. as_echo_n='sh -c $as_echo_n_body as_echo'
  3750. fi
  3751. export as_echo_body
  3752. as_echo='sh -c $as_echo_body as_echo'
  3753. fi
  3754. # The user is always right.
  3755. if test "${PATH_SEPARATOR+set}" != set; then
  3756. PATH_SEPARATOR=:
  3757. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3758. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3759. PATH_SEPARATOR=';'
  3760. }
  3761. fi
  3762. # IFS
  3763. # We need space, tab and new line, in precisely that order. Quoting is
  3764. # there to prevent editors from complaining about space-tab.
  3765. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3766. # splitting by setting IFS to empty value.)
  3767. IFS=" "" $as_nl"
  3768. # Find who we are. Look in the path if we contain no directory separator.
  3769. as_myself=
  3770. case $0 in #((
  3771. *[\\/]* ) as_myself=$0 ;;
  3772. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3773. for as_dir in $PATH
  3774. do
  3775. IFS=$as_save_IFS
  3776. test -z "$as_dir" && as_dir=.
  3777. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3778. done
  3779. IFS=$as_save_IFS
  3780. ;;
  3781. esac
  3782. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3783. # in which case we are not to be found in the path.
  3784. if test "x$as_myself" = x; then
  3785. as_myself=$0
  3786. fi
  3787. if test ! -f "$as_myself"; then
  3788. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3789. exit 1
  3790. fi
  3791. # Unset variables that we do not need and which cause bugs (e.g. in
  3792. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  3793. # suppresses any "Segmentation fault" message there. '((' could
  3794. # trigger a bug in pdksh 5.2.14.
  3795. for as_var in BASH_ENV ENV MAIL MAILPATH
  3796. do eval test x\${$as_var+set} = xset \
  3797. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  3798. done
  3799. PS1='$ '
  3800. PS2='> '
  3801. PS4='+ '
  3802. # NLS nuisances.
  3803. LC_ALL=C
  3804. export LC_ALL
  3805. LANGUAGE=C
  3806. export LANGUAGE
  3807. # CDPATH.
  3808. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3809. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  3810. # ----------------------------------------
  3811. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  3812. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  3813. # script with STATUS, using 1 if that was 0.
  3814. as_fn_error ()
  3815. {
  3816. as_status=$1; test $as_status -eq 0 && as_status=1
  3817. if test "$4"; then
  3818. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3819. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  3820. fi
  3821. $as_echo "$as_me: error: $2" >&2
  3822. as_fn_exit $as_status
  3823. } # as_fn_error
  3824. # as_fn_set_status STATUS
  3825. # -----------------------
  3826. # Set $? to STATUS, without forking.
  3827. as_fn_set_status ()
  3828. {
  3829. return $1
  3830. } # as_fn_set_status
  3831. # as_fn_exit STATUS
  3832. # -----------------
  3833. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  3834. as_fn_exit ()
  3835. {
  3836. set +e
  3837. as_fn_set_status $1
  3838. exit $1
  3839. } # as_fn_exit
  3840. # as_fn_unset VAR
  3841. # ---------------
  3842. # Portably unset VAR.
  3843. as_fn_unset ()
  3844. {
  3845. { eval $1=; unset $1;}
  3846. }
  3847. as_unset=as_fn_unset
  3848. # as_fn_append VAR VALUE
  3849. # ----------------------
  3850. # Append the text in VALUE to the end of the definition contained in VAR. Take
  3851. # advantage of any shell optimizations that allow amortized linear growth over
  3852. # repeated appends, instead of the typical quadratic growth present in naive
  3853. # implementations.
  3854. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  3855. eval 'as_fn_append ()
  3856. {
  3857. eval $1+=\$2
  3858. }'
  3859. else
  3860. as_fn_append ()
  3861. {
  3862. eval $1=\$$1\$2
  3863. }
  3864. fi # as_fn_append
  3865. # as_fn_arith ARG...
  3866. # ------------------
  3867. # Perform arithmetic evaluation on the ARGs, and store the result in the
  3868. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  3869. # must be portable across $(()) and expr.
  3870. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  3871. eval 'as_fn_arith ()
  3872. {
  3873. as_val=$(( $* ))
  3874. }'
  3875. else
  3876. as_fn_arith ()
  3877. {
  3878. as_val=`expr "$@" || test $? -eq 1`
  3879. }
  3880. fi # as_fn_arith
  3881. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3882. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3883. as_expr=expr
  3884. else
  3885. as_expr=false
  3886. fi
  3887. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  3888. as_basename=basename
  3889. else
  3890. as_basename=false
  3891. fi
  3892. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  3893. as_dirname=dirname
  3894. else
  3895. as_dirname=false
  3896. fi
  3897. as_me=`$as_basename -- "$0" ||
  3898. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3899. X"$0" : 'X\(//\)$' \| \
  3900. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3901. $as_echo X/"$0" |
  3902. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3903. s//\1/
  3904. q
  3905. }
  3906. /^X\/\(\/\/\)$/{
  3907. s//\1/
  3908. q
  3909. }
  3910. /^X\/\(\/\).*/{
  3911. s//\1/
  3912. q
  3913. }
  3914. s/.*/./; q'`
  3915. # Avoid depending upon Character Ranges.
  3916. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3917. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3918. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3919. as_cr_digits='0123456789'
  3920. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3921. ECHO_C= ECHO_N= ECHO_T=
  3922. case `echo -n x` in #(((((
  3923. -n*)
  3924. case `echo 'xy\c'` in
  3925. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  3926. xy) ECHO_C='\c';;
  3927. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  3928. ECHO_T=' ';;
  3929. esac;;
  3930. *)
  3931. ECHO_N='-n';;
  3932. esac
  3933. rm -f conf$$ conf$$.exe conf$$.file
  3934. if test -d conf$$.dir; then
  3935. rm -f conf$$.dir/conf$$.file
  3936. else
  3937. rm -f conf$$.dir
  3938. mkdir conf$$.dir 2>/dev/null
  3939. fi
  3940. if (echo >conf$$.file) 2>/dev/null; then
  3941. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3942. as_ln_s='ln -s'
  3943. # ... but there are two gotchas:
  3944. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3945. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3946. # In both cases, we have to default to `cp -pR'.
  3947. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3948. as_ln_s='cp -pR'
  3949. elif ln conf$$.file conf$$ 2>/dev/null; then
  3950. as_ln_s=ln
  3951. else
  3952. as_ln_s='cp -pR'
  3953. fi
  3954. else
  3955. as_ln_s='cp -pR'
  3956. fi
  3957. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  3958. rmdir conf$$.dir 2>/dev/null
  3959. # as_fn_mkdir_p
  3960. # -------------
  3961. # Create "$as_dir" as a directory, including parents if necessary.
  3962. as_fn_mkdir_p ()
  3963. {
  3964. case $as_dir in #(
  3965. -*) as_dir=./$as_dir;;
  3966. esac
  3967. test -d "$as_dir" || eval $as_mkdir_p || {
  3968. as_dirs=
  3969. while :; do
  3970. case $as_dir in #(
  3971. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  3972. *) as_qdir=$as_dir;;
  3973. esac
  3974. as_dirs="'$as_qdir' $as_dirs"
  3975. as_dir=`$as_dirname -- "$as_dir" ||
  3976. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3977. X"$as_dir" : 'X\(//\)[^/]' \| \
  3978. X"$as_dir" : 'X\(//\)$' \| \
  3979. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  3980. $as_echo X"$as_dir" |
  3981. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3982. s//\1/
  3983. q
  3984. }
  3985. /^X\(\/\/\)[^/].*/{
  3986. s//\1/
  3987. q
  3988. }
  3989. /^X\(\/\/\)$/{
  3990. s//\1/
  3991. q
  3992. }
  3993. /^X\(\/\).*/{
  3994. s//\1/
  3995. q
  3996. }
  3997. s/.*/./; q'`
  3998. test -d "$as_dir" && break
  3999. done
  4000. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4001. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4002. } # as_fn_mkdir_p
  4003. if mkdir -p . 2>/dev/null; then
  4004. as_mkdir_p='mkdir -p "$as_dir"'
  4005. else
  4006. test -d ./-p && rmdir ./-p
  4007. as_mkdir_p=false
  4008. fi
  4009. # as_fn_executable_p FILE
  4010. # -----------------------
  4011. # Test if FILE is an executable regular file.
  4012. as_fn_executable_p ()
  4013. {
  4014. test -f "$1" && test -x "$1"
  4015. } # as_fn_executable_p
  4016. as_test_x='test -x'
  4017. as_executable_p=as_fn_executable_p
  4018. # Sed expression to map a string onto a valid CPP name.
  4019. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4020. # Sed expression to map a string onto a valid variable name.
  4021. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4022. exec 6>&1
  4023. ## ----------------------------------- ##
  4024. ## Main body of $CONFIG_STATUS script. ##
  4025. ## ----------------------------------- ##
  4026. _ASEOF
  4027. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4028. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4029. # Save the log message, to keep $0 and so on meaningful, and to
  4030. # report actual input values of CONFIG_FILES etc. instead of their
  4031. # values after options handling.
  4032. ac_log="
  4033. This file was extended by $as_me, which was
  4034. generated by GNU Autoconf 2.69. Invocation command line was
  4035. CONFIG_FILES = $CONFIG_FILES
  4036. CONFIG_HEADERS = $CONFIG_HEADERS
  4037. CONFIG_LINKS = $CONFIG_LINKS
  4038. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4039. $ $0 $@
  4040. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4041. "
  4042. _ACEOF
  4043. case $ac_config_files in *"
  4044. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4045. esac
  4046. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4047. # Files that config.status was made for.
  4048. config_files="$ac_config_files"
  4049. _ACEOF
  4050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4051. ac_cs_usage="\
  4052. \`$as_me' instantiates files and other configuration actions
  4053. from templates according to the current configuration. Unless the files
  4054. and actions are specified as TAGs, all are instantiated by default.
  4055. Usage: $0 [OPTION]... [TAG]...
  4056. -h, --help print this help, then exit
  4057. -V, --version print version number and configuration settings, then exit
  4058. --config print configuration, then exit
  4059. -q, --quiet, --silent
  4060. do not print progress messages
  4061. -d, --debug don't remove temporary files
  4062. --recheck update $as_me by reconfiguring in the same conditions
  4063. --file=FILE[:TEMPLATE]
  4064. instantiate the configuration file FILE
  4065. Configuration files:
  4066. $config_files
  4067. Report bugs to the package provider."
  4068. _ACEOF
  4069. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4070. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  4071. ac_cs_version="\\
  4072. config.status
  4073. configured by $0, generated by GNU Autoconf 2.69,
  4074. with options \\"\$ac_cs_config\\"
  4075. Copyright (C) 2012 Free Software Foundation, Inc.
  4076. This config.status script is free software; the Free Software Foundation
  4077. gives unlimited permission to copy, distribute and modify it."
  4078. ac_pwd='$ac_pwd'
  4079. srcdir='$srcdir'
  4080. test -n "\$AWK" || AWK=awk
  4081. _ACEOF
  4082. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4083. # The default lists apply if the user does not specify any file.
  4084. ac_need_defaults=:
  4085. while test $# != 0
  4086. do
  4087. case $1 in
  4088. --*=?*)
  4089. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4090. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4091. ac_shift=:
  4092. ;;
  4093. --*=)
  4094. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4095. ac_optarg=
  4096. ac_shift=:
  4097. ;;
  4098. *)
  4099. ac_option=$1
  4100. ac_optarg=$2
  4101. ac_shift=shift
  4102. ;;
  4103. esac
  4104. case $ac_option in
  4105. # Handling of the options.
  4106. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4107. ac_cs_recheck=: ;;
  4108. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4109. $as_echo "$ac_cs_version"; exit ;;
  4110. --config | --confi | --conf | --con | --co | --c )
  4111. $as_echo "$ac_cs_config"; exit ;;
  4112. --debug | --debu | --deb | --de | --d | -d )
  4113. debug=: ;;
  4114. --file | --fil | --fi | --f )
  4115. $ac_shift
  4116. case $ac_optarg in
  4117. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4118. '') as_fn_error $? "missing file argument" ;;
  4119. esac
  4120. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4121. ac_need_defaults=false;;
  4122. --he | --h | --help | --hel | -h )
  4123. $as_echo "$ac_cs_usage"; exit ;;
  4124. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4125. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4126. ac_cs_silent=: ;;
  4127. # This is an error.
  4128. -*) as_fn_error $? "unrecognized option: \`$1'
  4129. Try \`$0 --help' for more information." ;;
  4130. *) as_fn_append ac_config_targets " $1"
  4131. ac_need_defaults=false ;;
  4132. esac
  4133. shift
  4134. done
  4135. ac_configure_extra_args=
  4136. if $ac_cs_silent; then
  4137. exec 6>/dev/null
  4138. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4139. fi
  4140. _ACEOF
  4141. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4142. if \$ac_cs_recheck; then
  4143. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4144. shift
  4145. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  4146. CONFIG_SHELL='$SHELL'
  4147. export CONFIG_SHELL
  4148. exec "\$@"
  4149. fi
  4150. _ACEOF
  4151. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4152. exec 5>>config.log
  4153. {
  4154. echo
  4155. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4156. ## Running $as_me. ##
  4157. _ASBOX
  4158. $as_echo "$ac_log"
  4159. } >&5
  4160. _ACEOF
  4161. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4162. _ACEOF
  4163. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4164. # Handling of arguments.
  4165. for ac_config_target in $ac_config_targets
  4166. do
  4167. case $ac_config_target in
  4168. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4169. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4170. esac
  4171. done
  4172. # If the user did not use the arguments to specify the items to instantiate,
  4173. # then the envvar interface is used. Set only those that are not.
  4174. # We use the long form for the default assignment because of an extremely
  4175. # bizarre bug on SunOS 4.1.3.
  4176. if $ac_need_defaults; then
  4177. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  4178. fi
  4179. # Have a temporary directory for convenience. Make it in the build tree
  4180. # simply because there is no reason against having it here, and in addition,
  4181. # creating and moving files from /tmp can sometimes cause problems.
  4182. # Hook for its removal unless debugging.
  4183. # Note that there is a small window in which the directory will not be cleaned:
  4184. # after its creation but before its name has been assigned to `$tmp'.
  4185. $debug ||
  4186. {
  4187. tmp= ac_tmp=
  4188. trap 'exit_status=$?
  4189. : "${ac_tmp:=$tmp}"
  4190. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4191. ' 0
  4192. trap 'as_fn_exit 1' 1 2 13 15
  4193. }
  4194. # Create a (secure) tmp directory for tmp files.
  4195. {
  4196. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4197. test -d "$tmp"
  4198. } ||
  4199. {
  4200. tmp=./conf$$-$RANDOM
  4201. (umask 077 && mkdir "$tmp")
  4202. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4203. ac_tmp=$tmp
  4204. # Set up the scripts for CONFIG_FILES section.
  4205. # No need to generate them if there are no CONFIG_FILES.
  4206. # This happens for instance with `./config.status config.h'.
  4207. if test -n "$CONFIG_FILES"; then
  4208. ac_cr=`echo X | tr X '\015'`
  4209. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4210. # But we know of no other shell where ac_cr would be empty at this
  4211. # point, so we can use a bashism as a fallback.
  4212. if test "x$ac_cr" = x; then
  4213. eval ac_cr=\$\'\\r\'
  4214. fi
  4215. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4216. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4217. ac_cs_awk_cr='\\r'
  4218. else
  4219. ac_cs_awk_cr=$ac_cr
  4220. fi
  4221. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4222. _ACEOF
  4223. {
  4224. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4225. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4226. echo "_ACEOF"
  4227. } >conf$$subs.sh ||
  4228. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4229. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4230. ac_delim='%!_!# '
  4231. for ac_last_try in false false false false false :; do
  4232. . ./conf$$subs.sh ||
  4233. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4234. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4235. if test $ac_delim_n = $ac_delim_num; then
  4236. break
  4237. elif $ac_last_try; then
  4238. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4239. else
  4240. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4241. fi
  4242. done
  4243. rm -f conf$$subs.sh
  4244. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4245. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4246. _ACEOF
  4247. sed -n '
  4248. h
  4249. s/^/S["/; s/!.*/"]=/
  4250. p
  4251. g
  4252. s/^[^!]*!//
  4253. :repl
  4254. t repl
  4255. s/'"$ac_delim"'$//
  4256. t delim
  4257. :nl
  4258. h
  4259. s/\(.\{148\}\)..*/\1/
  4260. t more1
  4261. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4262. p
  4263. n
  4264. b repl
  4265. :more1
  4266. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4267. p
  4268. g
  4269. s/.\{148\}//
  4270. t nl
  4271. :delim
  4272. h
  4273. s/\(.\{148\}\)..*/\1/
  4274. t more2
  4275. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4276. p
  4277. b
  4278. :more2
  4279. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4280. p
  4281. g
  4282. s/.\{148\}//
  4283. t delim
  4284. ' <conf$$subs.awk | sed '
  4285. /^[^""]/{
  4286. N
  4287. s/\n//
  4288. }
  4289. ' >>$CONFIG_STATUS || ac_write_fail=1
  4290. rm -f conf$$subs.awk
  4291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4292. _ACAWK
  4293. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4294. for (key in S) S_is_set[key] = 1
  4295. FS = ""
  4296. }
  4297. {
  4298. line = $ 0
  4299. nfields = split(line, field, "@")
  4300. substed = 0
  4301. len = length(field[1])
  4302. for (i = 2; i < nfields; i++) {
  4303. key = field[i]
  4304. keylen = length(key)
  4305. if (S_is_set[key]) {
  4306. value = S[key]
  4307. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4308. len += length(value) + length(field[++i])
  4309. substed = 1
  4310. } else
  4311. len += 1 + keylen
  4312. }
  4313. print line
  4314. }
  4315. _ACAWK
  4316. _ACEOF
  4317. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4318. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4319. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4320. else
  4321. cat
  4322. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4323. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4324. _ACEOF
  4325. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4326. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4327. # trailing colons and then remove the whole line if VPATH becomes empty
  4328. # (actually we leave an empty line to preserve line numbers).
  4329. if test "x$srcdir" = x.; then
  4330. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4331. h
  4332. s///
  4333. s/^/:/
  4334. s/[ ]*$/:/
  4335. s/:\$(srcdir):/:/g
  4336. s/:\${srcdir}:/:/g
  4337. s/:@srcdir@:/:/g
  4338. s/^:*//
  4339. s/:*$//
  4340. x
  4341. s/\(=[ ]*\).*/\1/
  4342. G
  4343. s/\n//
  4344. s/^[^=]*=[ ]*$//
  4345. }'
  4346. fi
  4347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4348. fi # test -n "$CONFIG_FILES"
  4349. eval set X " :F $CONFIG_FILES "
  4350. shift
  4351. for ac_tag
  4352. do
  4353. case $ac_tag in
  4354. :[FHLC]) ac_mode=$ac_tag; continue;;
  4355. esac
  4356. case $ac_mode$ac_tag in
  4357. :[FHL]*:*);;
  4358. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  4359. :[FH]-) ac_tag=-:-;;
  4360. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4361. esac
  4362. ac_save_IFS=$IFS
  4363. IFS=:
  4364. set x $ac_tag
  4365. IFS=$ac_save_IFS
  4366. shift
  4367. ac_file=$1
  4368. shift
  4369. case $ac_mode in
  4370. :L) ac_source=$1;;
  4371. :[FH])
  4372. ac_file_inputs=
  4373. for ac_f
  4374. do
  4375. case $ac_f in
  4376. -) ac_f="$ac_tmp/stdin";;
  4377. *) # Look for the file first in the build tree, then in the source tree
  4378. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4379. # because $ac_f cannot contain `:'.
  4380. test -f "$ac_f" ||
  4381. case $ac_f in
  4382. [\\/$]*) false;;
  4383. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4384. esac ||
  4385. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  4386. esac
  4387. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4388. as_fn_append ac_file_inputs " '$ac_f'"
  4389. done
  4390. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4391. # use $as_me), people would be surprised to read:
  4392. # /* config.h. Generated by config.status. */
  4393. configure_input='Generated from '`
  4394. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4395. `' by configure.'
  4396. if test x"$ac_file" != x-; then
  4397. configure_input="$ac_file. $configure_input"
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  4399. $as_echo "$as_me: creating $ac_file" >&6;}
  4400. fi
  4401. # Neutralize special characters interpreted by sed in replacement strings.
  4402. case $configure_input in #(
  4403. *\&* | *\|* | *\\* )
  4404. ac_sed_conf_input=`$as_echo "$configure_input" |
  4405. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  4406. *) ac_sed_conf_input=$configure_input;;
  4407. esac
  4408. case $ac_tag in
  4409. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  4410. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  4411. esac
  4412. ;;
  4413. esac
  4414. ac_dir=`$as_dirname -- "$ac_file" ||
  4415. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4416. X"$ac_file" : 'X\(//\)[^/]' \| \
  4417. X"$ac_file" : 'X\(//\)$' \| \
  4418. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4419. $as_echo X"$ac_file" |
  4420. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4421. s//\1/
  4422. q
  4423. }
  4424. /^X\(\/\/\)[^/].*/{
  4425. s//\1/
  4426. q
  4427. }
  4428. /^X\(\/\/\)$/{
  4429. s//\1/
  4430. q
  4431. }
  4432. /^X\(\/\).*/{
  4433. s//\1/
  4434. q
  4435. }
  4436. s/.*/./; q'`
  4437. as_dir="$ac_dir"; as_fn_mkdir_p
  4438. ac_builddir=.
  4439. case "$ac_dir" in
  4440. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4441. *)
  4442. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  4443. # A ".." for each directory in $ac_dir_suffix.
  4444. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  4445. case $ac_top_builddir_sub in
  4446. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4447. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4448. esac ;;
  4449. esac
  4450. ac_abs_top_builddir=$ac_pwd
  4451. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4452. # for backward compatibility:
  4453. ac_top_builddir=$ac_top_build_prefix
  4454. case $srcdir in
  4455. .) # We are building in place.
  4456. ac_srcdir=.
  4457. ac_top_srcdir=$ac_top_builddir_sub
  4458. ac_abs_top_srcdir=$ac_pwd ;;
  4459. [\\/]* | ?:[\\/]* ) # Absolute name.
  4460. ac_srcdir=$srcdir$ac_dir_suffix;
  4461. ac_top_srcdir=$srcdir
  4462. ac_abs_top_srcdir=$srcdir ;;
  4463. *) # Relative name.
  4464. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4465. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4466. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4467. esac
  4468. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4469. case $ac_mode in
  4470. :F)
  4471. #
  4472. # CONFIG_FILE
  4473. #
  4474. _ACEOF
  4475. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4476. # If the template does not know about datarootdir, expand it.
  4477. # FIXME: This hack should be removed a few years after 2.60.
  4478. ac_datarootdir_hack=; ac_datarootdir_seen=
  4479. ac_sed_dataroot='
  4480. /datarootdir/ {
  4481. p
  4482. q
  4483. }
  4484. /@datadir@/p
  4485. /@docdir@/p
  4486. /@infodir@/p
  4487. /@localedir@/p
  4488. /@mandir@/p'
  4489. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  4490. *datarootdir*) ac_datarootdir_seen=yes;;
  4491. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4493. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4494. _ACEOF
  4495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4496. ac_datarootdir_hack='
  4497. s&@datadir@&$datadir&g
  4498. s&@docdir@&$docdir&g
  4499. s&@infodir@&$infodir&g
  4500. s&@localedir@&$localedir&g
  4501. s&@mandir@&$mandir&g
  4502. s&\\\${datarootdir}&$datarootdir&g' ;;
  4503. esac
  4504. _ACEOF
  4505. # Neutralize VPATH when `$srcdir' = `.'.
  4506. # Shell code in configure.ac might set extrasub.
  4507. # FIXME: do we really want to maintain this feature?
  4508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4509. ac_sed_extra="$ac_vpsub
  4510. $extrasub
  4511. _ACEOF
  4512. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4513. :t
  4514. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4515. s|@configure_input@|$ac_sed_conf_input|;t t
  4516. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4517. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  4518. s&@srcdir@&$ac_srcdir&;t t
  4519. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4520. s&@top_srcdir@&$ac_top_srcdir&;t t
  4521. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4522. s&@builddir@&$ac_builddir&;t t
  4523. s&@abs_builddir@&$ac_abs_builddir&;t t
  4524. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4525. $ac_datarootdir_hack
  4526. "
  4527. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  4528. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4529. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4530. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  4531. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  4532. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4534. which seems to be undefined. Please make sure it is defined" >&5
  4535. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4536. which seems to be undefined. Please make sure it is defined" >&2;}
  4537. rm -f "$ac_tmp/stdin"
  4538. case $ac_file in
  4539. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  4540. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  4541. esac \
  4542. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4543. ;;
  4544. esac
  4545. done # for ac_tag
  4546. as_fn_exit 0
  4547. _ACEOF
  4548. ac_clean_files=$ac_clean_files_save
  4549. test $ac_write_fail = 0 ||
  4550. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  4551. # configure is writing to config.log, and then calls config.status.
  4552. # config.status does its own redirection, appending to config.log.
  4553. # Unfortunately, on DOS this fails, as config.log is still kept open
  4554. # by configure, so config.status won't be able to write to it; its
  4555. # output is simply discarded. So we exec the FD to /dev/null,
  4556. # effectively closing config.log, so it can be properly (re)opened and
  4557. # appended to by config.status. When coming back to configure, we
  4558. # need to make the FD available again.
  4559. if test "$no_create" != yes; then
  4560. ac_cs_success=:
  4561. ac_config_status_args=
  4562. test "$silent" = yes &&
  4563. ac_config_status_args="$ac_config_status_args --quiet"
  4564. exec 5>/dev/null
  4565. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4566. exec 5>>config.log
  4567. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4568. # would make configure fail if this is the last instruction.
  4569. $ac_cs_success || as_fn_exit 1
  4570. fi
  4571. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4572. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4573. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4574. fi