configure 150 KB

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